hfs 0.50.0 → 0.50.2
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/admin/assets/index-331e16eb.js +807 -0
- package/admin/assets/{index-8b462908.css → index-bb75b3fc.css} +1 -1
- package/admin/assets/{sha512-6a9f6c0b.js → sha512-43126276.js} +1 -1
- package/admin/index.html +2 -2
- package/package.json +1 -1
- package/src/api.net.js +1 -1
- package/src/api.plugins.js +2 -3
- package/src/const.js +1 -1
- package/src/cross-const.js +2 -1
- package/src/github.js +25 -20
- package/src/listen.js +22 -23
- package/src/plugins.js +7 -4
- package/admin/assets/index-f70432fb.js +0 -807
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
var G7=Object.defineProperty,K7=Object.defineProperties;var q7=Object.getOwnPropertyDescriptors;var Om=Object.getOwnPropertySymbols;var hT=Object.prototype.hasOwnProperty,mT=Object.prototype.propertyIsEnumerable;var L1=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},ms=Math.pow,F1=(e,t,n)=>t in e?G7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Se=(e,t)=>{for(var n in t||(t={}))hT.call(t,n)&&F1(e,n,t[n]);if(Om)for(var n of Om(t))mT.call(t,n)&&F1(e,n,t[n]);return e},ht=(e,t)=>K7(e,q7(t));var Ft=(e,t)=>{var n={};for(var r in e)hT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Om)for(var r of Om(e))t.indexOf(r)<0&&mT.call(e,r)&&(n[r]=e[r]);return n};var mi=(e,t,n)=>(F1(e,typeof t!="symbol"?t+"":t,n),n);var rt=(e,t,n)=>new Promise((r,o)=>{var s=a=>{try{l(n.next(a))}catch(u){o(u)}},i=a=>{try{l(n.throw(a))}catch(u){o(u)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,i);l((n=n.apply(e,t)).next())}),Y7=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[L1("asyncIterator")],n=!1,r,o={};return t==null?(t=e[L1("iterator")](),r=s=>o[s]=i=>t[s](i)):(t=t.call(e),r=s=>o[s]=i=>{if(n){if(n=!1,s==="throw")throw i;return i}return n=!0,{done:!1,value:new Y7(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[L1("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function Q7(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 s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{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 s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var LD={exports:{}},Ut={};/**
|
|
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 vh=Symbol.for("react.element"),X7=Symbol.for("react.portal"),Z7=Symbol.for("react.fragment"),J7=Symbol.for("react.strict_mode"),eU=Symbol.for("react.profiler"),tU=Symbol.for("react.provider"),nU=Symbol.for("react.context"),rU=Symbol.for("react.forward_ref"),oU=Symbol.for("react.suspense"),sU=Symbol.for("react.memo"),iU=Symbol.for("react.lazy"),gT=Symbol.iterator;function lU(e){return e===null||typeof e!="object"?null:(e=gT&&e[gT]||e["@@iterator"],typeof e=="function"?e:null)}var FD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ND=Object.assign,BD={};function _d(e,t,n){this.props=e,this.context=t,this.refs=BD,this.updater=n||FD}_d.prototype.isReactComponent={};_d.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")};_d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zD(){}zD.prototype=_d.prototype;function pS(e,t,n){this.props=e,this.context=t,this.refs=BD,this.updater=n||FD}var hS=pS.prototype=new zD;hS.constructor=pS;ND(hS,_d.prototype);hS.isPureReactComponent=!0;var vT=Array.isArray,VD=Object.prototype.hasOwnProperty,mS={current:null},jD={key:!0,ref:!0,__self:!0,__source:!0};function HD(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)VD.call(t,r)&&!jD.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:vh,type:e,key:s,ref:i,props:o,_owner:mS.current}}function aU(e,t){return{$$typeof:vh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gS(e){return typeof e=="object"&&e!==null&&e.$$typeof===vh}function cU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yT=/\/+/g;function N1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cU(""+e.key):t.toString(36)}function Cg(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case vh:case X7:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+N1(i,0):r,vT(o)?(n="",e!=null&&(n=e.replace(yT,"$&/")+"/"),Cg(o,t,n,"",function(u){return u})):o!=null&&(gS(o)&&(o=aU(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(yT,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",vT(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+N1(s,l);i+=Cg(s,t,n,a,o)}else if(a=lU(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+N1(s,l++),i+=Cg(s,t,n,a,o);else if(s==="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 i}function Dm(e,t,n){if(e==null)return e;var r=[],o=0;return Cg(e,r,"","",function(s){return t.call(n,s,o++)}),r}function uU(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 uo={current:null},xg={transition:null},dU={ReactCurrentDispatcher:uo,ReactCurrentBatchConfig:xg,ReactCurrentOwner:mS};Ut.Children={map:Dm,forEach:function(e,t,n){Dm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dm(e,function(){t++}),t},toArray:function(e){return Dm(e,function(t){return t})||[]},only:function(e){if(!gS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=_d;Ut.Fragment=Z7;Ut.Profiler=eU;Ut.PureComponent=pS;Ut.StrictMode=J7;Ut.Suspense=oU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dU;Ut.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=ND({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=mS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)VD.call(t,a)&&!jD.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:vh,type:e.type,key:o,ref:s,props:r,_owner:i}};Ut.createContext=function(e){return e={$$typeof:nU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tU,_context:e},e.Consumer=e};Ut.createElement=HD;Ut.createFactory=function(e){var t=HD.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:rU,render:e}};Ut.isValidElement=gS;Ut.lazy=function(e){return{$$typeof:iU,_payload:{_status:-1,_result:e},_init:uU}};Ut.memo=function(e,t){return{$$typeof:sU,type:e,compare:t===void 0?null:t}};Ut.startTransition=function(e){var t=xg.transition;xg.transition={};try{e()}finally{xg.transition=t}};Ut.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ut.useCallback=function(e,t){return uo.current.useCallback(e,t)};Ut.useContext=function(e){return uo.current.useContext(e)};Ut.useDebugValue=function(){};Ut.useDeferredValue=function(e){return uo.current.useDeferredValue(e)};Ut.useEffect=function(e,t){return uo.current.useEffect(e,t)};Ut.useId=function(){return uo.current.useId()};Ut.useImperativeHandle=function(e,t,n){return uo.current.useImperativeHandle(e,t,n)};Ut.useInsertionEffect=function(e,t){return uo.current.useInsertionEffect(e,t)};Ut.useLayoutEffect=function(e,t){return uo.current.useLayoutEffect(e,t)};Ut.useMemo=function(e,t){return uo.current.useMemo(e,t)};Ut.useReducer=function(e,t,n){return uo.current.useReducer(e,t,n)};Ut.useRef=function(e){return uo.current.useRef(e)};Ut.useState=function(e){return uo.current.useState(e)};Ut.useSyncExternalStore=function(e,t,n){return uo.current.useSyncExternalStore(e,t,n)};Ut.useTransition=function(){return uo.current.useTransition()};Ut.version="18.2.0";LD.exports=Ut;var c=LD.exports;const lo=Ni(c),hc=Q7({__proto__:null,default:lo},[c]);var UD={exports:{}},es={},WD={exports:{}},GD={};/**
|
|
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(D,N){var H=D.length;D.push(N);e:for(;0<H;){var K=H-1>>>1,Y=D[K];if(0<o(Y,N))D[K]=N,D[H]=Y,H=K;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var N=D[0],H=D.pop();if(H!==N){D[0]=H;e:for(var K=0,Y=D.length,Z=Y>>>1;K<Z;){var Q=2*(K+1)-1,X=D[Q],J=Q+1,ne=D[J];if(0>o(X,H))J<Y&&0>o(ne,X)?(D[K]=ne,D[J]=H,K=J):(D[K]=X,D[Q]=H,K=Q);else if(J<Y&&0>o(ne,H))D[K]=ne,D[J]=H,K=J;else break e}}return N}function o(D,N){var H=D.sortIndex-N.sortIndex;return H!==0?H:D.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],f=1,p=null,g=3,v=!1,y=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(D){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=D)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function k(D){if(m=!1,S(D),!y)if(n(a)!==null)y=!0,F(M);else{var N=n(u);N!==null&&z(k,N.startTime-D)}}function M(D,N){y=!1,m&&(m=!1,b(T),T=-1),v=!0;var H=g;try{for(S(N),p=n(a);p!==null&&(!(p.expirationTime>N)||D&&!R());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var Y=K(p.expirationTime<=N);N=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(a)&&r(a),S(N)}else r(a);p=n(a)}if(p!==null)var Z=!0;else{var Q=n(u);Q!==null&&z(k,Q.startTime-N),Z=!1}return Z}finally{p=null,g=H,v=!1}}var I=!1,E=null,T=-1,L=5,O=-1;function R(){return!(e.unstable_now()-O<L)}function V(){if(E!==null){var D=e.unstable_now();O=D;var N=!0;try{N=E(!0,D)}finally{N?j():(I=!1,E=null)}}else I=!1}var j;if(typeof w=="function")j=function(){w(V)};else if(typeof MessageChannel!="undefined"){var _=new MessageChannel,A=_.port2;_.port1.onmessage=V,j=function(){A.postMessage(null)}}else j=function(){C(V,0)};function F(D){E=D,I||(I=!0,j())}function z(D,N){T=C(function(){D(e.unstable_now())},N)}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(D){D.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,F(M))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(g){case 1:case 2:case 3:var N=3;break;default:N=g}var H=g;g=N;try{return D()}finally{g=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,N){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var H=g;g=D;try{return N()}finally{g=H}},e.unstable_scheduleCallback=function(D,N,H){var K=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,D){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=H+Y,D={id:f++,callback:N,priorityLevel:D,startTime:H,expirationTime:Y,sortIndex:-1},H>K?(D.sortIndex=H,t(u,D),n(a)===null&&D===n(u)&&(m?(b(T),T=-1):m=!0,z(k,H-K))):(D.sortIndex=Y,t(a,D),y||v||(y=!0,F(M))),D},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(D){var N=g;return function(){var H=g;g=N;try{return D.apply(this,arguments)}finally{g=H}}}})(GD);WD.exports=GD;var fU=WD.exports;/**
|
|
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 KD=c,qo=fU;function He(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 qD=new Set,Ep={};function Oc(e,t){sd(e,t),sd(e+"Capture",t)}function sd(e,t){for(Ep[e]=t,e=0;e<t.length;e++)qD.add(t[e])}var dl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),lC=Object.prototype.hasOwnProperty,pU=/^[: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]*$/,bT={},wT={};function hU(e){return lC.call(wT,e)?!0:lC.call(bT,e)?!1:pU.test(e)?wT[e]=!0:(bT[e]=!0,!1)}function mU(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 gU(e,t,n,r){if(t===null||typeof t=="undefined"||mU(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 fo(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new fo(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){Lr[e]=new fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var vS=/[\-:]([a-z])/g;function yS(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(vS,yS);Lr[t]=new fo(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(vS,yS);Lr[t]=new fo(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(vS,yS);Lr[t]=new fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function bS(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gU(t,n,o,r)&&(n=null),r||o===null?hU(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 bl=KD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Am=Symbol.for("react.element"),ku=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),wS=Symbol.for("react.strict_mode"),aC=Symbol.for("react.profiler"),YD=Symbol.for("react.provider"),QD=Symbol.for("react.context"),CS=Symbol.for("react.forward_ref"),cC=Symbol.for("react.suspense"),uC=Symbol.for("react.suspense_list"),xS=Symbol.for("react.memo"),Hl=Symbol.for("react.lazy"),XD=Symbol.for("react.offscreen"),CT=Symbol.iterator;function Cf(e){return e===null||typeof e!="object"?null:(e=CT&&e[CT]||e["@@iterator"],typeof e=="function"?e:null)}var Vn=Object.assign,B1;function Wf(e){if(B1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B1=t&&t[1]||""}return`
|
|
26
|
+
`+B1+e}var z1=!1;function V1(e,t){if(!e||z1)return"";z1=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
27
|
+
`),s=r.stack.split(`
|
|
28
|
+
`),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
|
|
29
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{z1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wf(e):""}function vU(e){switch(e.tag){case 5:return Wf(e.type);case 16:return Wf("Lazy");case 13:return Wf("Suspense");case 19:return Wf("SuspenseList");case 0:case 2:case 15:return e=V1(e.type,!1),e;case 11:return e=V1(e.type.render,!1),e;case 1:return e=V1(e.type,!0),e;default:return""}}function dC(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 Iu:return"Fragment";case ku:return"Portal";case aC:return"Profiler";case wS:return"StrictMode";case cC:return"Suspense";case uC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QD:return(e.displayName||"Context")+".Consumer";case YD:return(e._context.displayName||"Context")+".Provider";case CS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xS:return t=e.displayName||null,t!==null?t:dC(e.type)||"Memo";case Hl:t=e._payload,e=e._init;try{return dC(e(t))}catch(n){}}return null}function yU(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 dC(t);case 8:return t===wS?"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 va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ZD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bU(e){var t=ZD(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lm(e){e._valueTracker||(e._valueTracker=bU(e))}function JD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ZD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xg(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 fC(e,t){var n=t.checked;return Vn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function xT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=va(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 eA(e,t){t=t.checked,t!=null&&bS(e,"checked",t,!1)}function pC(e,t){eA(e,t);var n=va(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")?hC(e,t.type,n):t.hasOwnProperty("defaultValue")&&hC(e,t.type,va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ST(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 hC(e,t,n){(t!=="number"||Xg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gf=Array.isArray;function Hu(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=""+va(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 mC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return Vn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function PT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(He(92));if(Gf(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:va(n)}}function tA(e,t){var n=va(t.value),r=va(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 kT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nA(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 gC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fm,rA=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(Fm=Fm||document.createElement("div"),Fm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var op={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},wU=["Webkit","ms","Moz","O"];Object.keys(op).forEach(function(e){wU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),op[t]=op[e]})});function oA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||op.hasOwnProperty(e)&&op[e]?(""+t).trim():t+"px"}function sA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=oA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CU=Vn({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 vC(e,t){if(t){if(CU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(He(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(He(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(He(61))}if(t.style!=null&&typeof t.style!="object")throw Error(He(62))}}function yC(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 bC=null;function SS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wC=null,Uu=null,Wu=null;function IT(e){if(e=wh(e)){if(typeof wC!="function")throw Error(He(280));var t=e.stateNode;t&&(t=my(t),wC(e.stateNode,e.type,t))}}function iA(e){Uu?Wu?Wu.push(e):Wu=[e]:Uu=e}function lA(){if(Uu){var e=Uu,t=Wu;if(Wu=Uu=null,IT(e),t)for(e=0;e<t.length;e++)IT(t[e])}}function aA(e,t){return e(t)}function cA(){}var j1=!1;function uA(e,t,n){if(j1)return e(t,n);j1=!0;try{return aA(e,t,n)}finally{j1=!1,(Uu!==null||Wu!==null)&&(cA(),lA())}}function Tp(e,t){var n=e.stateNode;if(n===null)return null;var r=my(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(He(231,t,typeof n));return n}var CC=!1;if(dl)try{var xf={};Object.defineProperty(xf,"passive",{get:function(){CC=!0}}),window.addEventListener("test",xf,xf),window.removeEventListener("test",xf,xf)}catch(e){CC=!1}function xU(e,t,n,r,o,s,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var sp=!1,Zg=null,Jg=!1,xC=null,SU={onError:function(e){sp=!0,Zg=e}};function PU(e,t,n,r,o,s,i,l,a){sp=!1,Zg=null,xU.apply(SU,arguments)}function kU(e,t,n,r,o,s,i,l,a){if(PU.apply(this,arguments),sp){if(sp){var u=Zg;sp=!1,Zg=null}else throw Error(He(198));Jg||(Jg=!0,xC=u)}}function Dc(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 dA(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 ET(e){if(Dc(e)!==e)throw Error(He(188))}function IU(e){var t=e.alternate;if(!t){if(t=Dc(e),t===null)throw Error(He(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return ET(o),e;if(s===r)return ET(o),t;s=s.sibling}throw Error(He(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(He(189))}}if(n.alternate!==r)throw Error(He(190))}if(n.tag!==3)throw Error(He(188));return n.stateNode.current===n?e:t}function fA(e){return e=IU(e),e!==null?pA(e):null}function pA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pA(e);if(t!==null)return t;e=e.sibling}return null}var hA=qo.unstable_scheduleCallback,MT=qo.unstable_cancelCallback,EU=qo.unstable_shouldYield,MU=qo.unstable_requestPaint,Jn=qo.unstable_now,TU=qo.unstable_getCurrentPriorityLevel,PS=qo.unstable_ImmediatePriority,mA=qo.unstable_UserBlockingPriority,ev=qo.unstable_NormalPriority,_U=qo.unstable_LowPriority,gA=qo.unstable_IdlePriority,dy=null,Pi=null;function $U(e){if(Pi&&typeof Pi.onCommitFiberRoot=="function")try{Pi.onCommitFiberRoot(dy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ri=Math.clz32?Math.clz32:DU,RU=Math.log,OU=Math.LN2;function DU(e){return e>>>=0,e===0?32:31-(RU(e)/OU|0)|0}var Nm=64,Bm=4194304;function Kf(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 tv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Kf(l):(s&=i,s!==0&&(r=Kf(s)))}else i=n&~o,i!==0?r=Kf(i):s!==0&&(r=Kf(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&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-ri(t),o=1<<n,r|=e[n],t&=~o;return r}function AU(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 LU(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-ri(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=AU(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function SC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vA(){var e=Nm;return Nm<<=1,!(Nm&4194240)&&(Nm=64),e}function H1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ri(t),e[t]=n}function FU(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-ri(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function kS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ri(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var dn=0;function yA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bA,IS,wA,CA,xA,PC=!1,zm=[],oa=null,sa=null,ia=null,_p=new Map,$p=new Map,ql=[],NU="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 TT(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":_p.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$p.delete(t.pointerId)}}function Sf(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=wh(t),t!==null&&IS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function BU(e,t,n,r,o){switch(t){case"focusin":return oa=Sf(oa,e,t,n,r,o),!0;case"dragenter":return sa=Sf(sa,e,t,n,r,o),!0;case"mouseover":return ia=Sf(ia,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return _p.set(s,Sf(_p.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,$p.set(s,Sf($p.get(s)||null,e,t,n,r,o)),!0}return!1}function SA(e){var t=Ja(e.target);if(t!==null){var n=Dc(t);if(n!==null){if(t=n.tag,t===13){if(t=dA(n),t!==null){e.blockedOn=t,xA(e.priority,function(){wA(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 Sg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=kC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bC=r,n.target.dispatchEvent(r),bC=null}else return t=wh(n),t!==null&&IS(t),e.blockedOn=n,!1;t.shift()}return!0}function _T(e,t,n){Sg(e)&&n.delete(t)}function zU(){PC=!1,oa!==null&&Sg(oa)&&(oa=null),sa!==null&&Sg(sa)&&(sa=null),ia!==null&&Sg(ia)&&(ia=null),_p.forEach(_T),$p.forEach(_T)}function Pf(e,t){e.blockedOn===t&&(e.blockedOn=null,PC||(PC=!0,qo.unstable_scheduleCallback(qo.unstable_NormalPriority,zU)))}function Rp(e){function t(o){return Pf(o,e)}if(0<zm.length){Pf(zm[0],e);for(var n=1;n<zm.length;n++){var r=zm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(oa!==null&&Pf(oa,e),sa!==null&&Pf(sa,e),ia!==null&&Pf(ia,e),_p.forEach(t),$p.forEach(t),n=0;n<ql.length;n++)r=ql[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ql.length&&(n=ql[0],n.blockedOn===null);)SA(n),n.blockedOn===null&&ql.shift()}var Gu=bl.ReactCurrentBatchConfig,nv=!0;function VU(e,t,n,r){var o=dn,s=Gu.transition;Gu.transition=null;try{dn=1,ES(e,t,n,r)}finally{dn=o,Gu.transition=s}}function jU(e,t,n,r){var o=dn,s=Gu.transition;Gu.transition=null;try{dn=4,ES(e,t,n,r)}finally{dn=o,Gu.transition=s}}function ES(e,t,n,r){if(nv){var o=kC(e,t,n,r);if(o===null)J1(e,t,r,rv,n),TT(e,r);else if(BU(o,e,t,n,r))r.stopPropagation();else if(TT(e,r),t&4&&-1<NU.indexOf(e)){for(;o!==null;){var s=wh(o);if(s!==null&&bA(s),s=kC(e,t,n,r),s===null&&J1(e,t,r,rv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else J1(e,t,r,null,n)}}var rv=null;function kC(e,t,n,r){if(rv=null,e=SS(r),e=Ja(e),e!==null)if(t=Dc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dA(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 rv=e,null}function PA(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(TU()){case PS:return 1;case mA:return 4;case ev:case _U:return 16;case gA:return 536870912;default:return 16}default:return 16}}var Xl=null,MS=null,Pg=null;function kA(){if(Pg)return Pg;var e,t=MS,n=t.length,r,o="value"in Xl?Xl.value:Xl.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Pg=o.slice(e,1<r?1-r:void 0)}function kg(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 Vm(){return!0}function $T(){return!1}function ts(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Vm:$T,this.isPropagationStopped=$T,this}return Vn(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=Vm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vm)},persist:function(){},isPersistent:Vm}),t}var $d={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},TS=ts($d),bh=Vn({},$d,{view:0,detail:0}),HU=ts(bh),U1,W1,kf,fy=Vn({},bh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_S,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!==kf&&(kf&&e.type==="mousemove"?(U1=e.screenX-kf.screenX,W1=e.screenY-kf.screenY):W1=U1=0,kf=e),U1)},movementY:function(e){return"movementY"in e?e.movementY:W1}}),RT=ts(fy),UU=Vn({},fy,{dataTransfer:0}),WU=ts(UU),GU=Vn({},bh,{relatedTarget:0}),G1=ts(GU),KU=Vn({},$d,{animationName:0,elapsedTime:0,pseudoElement:0}),qU=ts(KU),YU=Vn({},$d,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QU=ts(YU),XU=Vn({},$d,{data:0}),OT=ts(XU),ZU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JU={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"},eW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eW[e])?!!t[e]:!1}function _S(){return tW}var nW=Vn({},bh,{key:function(e){if(e.key){var t=ZU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_S,charCode:function(e){return e.type==="keypress"?kg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rW=ts(nW),oW=Vn({},fy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),DT=ts(oW),sW=Vn({},bh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_S}),iW=ts(sW),lW=Vn({},$d,{propertyName:0,elapsedTime:0,pseudoElement:0}),aW=ts(lW),cW=Vn({},fy,{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}),uW=ts(cW),dW=[9,13,27,32],$S=dl&&"CompositionEvent"in window,ip=null;dl&&"documentMode"in document&&(ip=document.documentMode);var fW=dl&&"TextEvent"in window&&!ip,IA=dl&&(!$S||ip&&8<ip&&11>=ip),AT=String.fromCharCode(32),LT=!1;function EA(e,t){switch(e){case"keyup":return dW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eu=!1;function pW(e,t){switch(e){case"compositionend":return MA(t);case"keypress":return t.which!==32?null:(LT=!0,AT);case"textInput":return e=t.data,e===AT&<?null:e;default:return null}}function hW(e,t){if(Eu)return e==="compositionend"||!$S&&EA(e,t)?(e=kA(),Pg=MS=Xl=null,Eu=!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 IA&&t.locale!=="ko"?null:t.data;default:return null}}var mW={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 FT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mW[e.type]:t==="textarea"}function TA(e,t,n,r){iA(r),t=ov(t,"onChange"),0<t.length&&(n=new TS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lp=null,Op=null;function gW(e){zA(e,0)}function py(e){var t=_u(e);if(JD(t))return e}function vW(e,t){if(e==="change")return t}var _A=!1;if(dl){var K1;if(dl){var q1="oninput"in document;if(!q1){var NT=document.createElement("div");NT.setAttribute("oninput","return;"),q1=typeof NT.oninput=="function"}K1=q1}else K1=!1;_A=K1&&(!document.documentMode||9<document.documentMode)}function BT(){lp&&(lp.detachEvent("onpropertychange",$A),Op=lp=null)}function $A(e){if(e.propertyName==="value"&&py(Op)){var t=[];TA(t,Op,e,SS(e)),uA(gW,t)}}function yW(e,t,n){e==="focusin"?(BT(),lp=t,Op=n,lp.attachEvent("onpropertychange",$A)):e==="focusout"&&BT()}function bW(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return py(Op)}function wW(e,t){if(e==="click")return py(t)}function CW(e,t){if(e==="input"||e==="change")return py(t)}function xW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var li=typeof Object.is=="function"?Object.is:xW;function Dp(e,t){if(li(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(!lC.call(t,o)||!li(e[o],t[o]))return!1}return!0}function zT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function VT(e,t){var n=zT(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=zT(n)}}function RA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?RA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OA(){for(var e=window,t=Xg();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=Xg(e.document)}return t}function RS(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 SW(e){var t=OA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&RA(n.ownerDocument.documentElement,n)){if(r!==null&&RS(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=VT(n,s);var i=VT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 PW=dl&&"documentMode"in document&&11>=document.documentMode,Mu=null,IC=null,ap=null,EC=!1;function jT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;EC||Mu==null||Mu!==Xg(r)||(r=Mu,"selectionStart"in r&&RS(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}),ap&&Dp(ap,r)||(ap=r,r=ov(IC,"onSelect"),0<r.length&&(t=new TS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mu)))}function jm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tu={animationend:jm("Animation","AnimationEnd"),animationiteration:jm("Animation","AnimationIteration"),animationstart:jm("Animation","AnimationStart"),transitionend:jm("Transition","TransitionEnd")},Y1={},DA={};dl&&(DA=document.createElement("div").style,"AnimationEvent"in window||(delete Tu.animationend.animation,delete Tu.animationiteration.animation,delete Tu.animationstart.animation),"TransitionEvent"in window||delete Tu.transitionend.transition);function hy(e){if(Y1[e])return Y1[e];if(!Tu[e])return e;var t=Tu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in DA)return Y1[e]=t[n];return e}var AA=hy("animationend"),LA=hy("animationiteration"),FA=hy("animationstart"),NA=hy("transitionend"),BA=new Map,HT="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 Ia(e,t){BA.set(e,t),Oc(t,[e])}for(var Q1=0;Q1<HT.length;Q1++){var X1=HT[Q1],kW=X1.toLowerCase(),IW=X1[0].toUpperCase()+X1.slice(1);Ia(kW,"on"+IW)}Ia(AA,"onAnimationEnd");Ia(LA,"onAnimationIteration");Ia(FA,"onAnimationStart");Ia("dblclick","onDoubleClick");Ia("focusin","onFocus");Ia("focusout","onBlur");Ia(NA,"onTransitionEnd");sd("onMouseEnter",["mouseout","mouseover"]);sd("onMouseLeave",["mouseout","mouseover"]);sd("onPointerEnter",["pointerout","pointerover"]);sd("onPointerLeave",["pointerout","pointerover"]);Oc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Oc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Oc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Oc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Oc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Oc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qf="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(" "),EW=new Set("cancel close invalid load scroll toggle".split(" ").concat(qf));function UT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kU(r,t,void 0,e),e.currentTarget=null}function zA(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 s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;UT(o,l,u),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;UT(o,l,u),s=a}}}if(Jg)throw e=xC,Jg=!1,xC=null,e}function In(e,t){var n=t[RC];n===void 0&&(n=t[RC]=new Set);var r=e+"__bubble";n.has(r)||(VA(t,e,2,!1),n.add(r))}function Z1(e,t,n){var r=0;t&&(r|=4),VA(n,e,r,t)}var Hm="_reactListening"+Math.random().toString(36).slice(2);function Ap(e){if(!e[Hm]){e[Hm]=!0,qD.forEach(function(n){n!=="selectionchange"&&(EW.has(n)||Z1(n,!1,e),Z1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hm]||(t[Hm]=!0,Z1("selectionchange",!1,t))}}function VA(e,t,n,r){switch(PA(t)){case 1:var o=VU;break;case 4:o=jU;break;default:o=ES}n=o.bind(null,t,n,e),o=void 0,!CC||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 J1(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;l!==null;){if(i=Ja(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}uA(function(){var u=s,f=SS(n),p=[];e:{var g=BA.get(e);if(g!==void 0){var v=TS,y=e;switch(e){case"keypress":if(kg(n)===0)break e;case"keydown":case"keyup":v=rW;break;case"focusin":y="focus",v=G1;break;case"focusout":y="blur",v=G1;break;case"beforeblur":case"afterblur":v=G1;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=RT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=WU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=iW;break;case AA:case LA:case FA:v=qU;break;case NA:v=aW;break;case"scroll":v=HU;break;case"wheel":v=uW;break;case"copy":case"cut":case"paste":v=QU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=DT}var m=(t&4)!==0,C=!m&&e==="scroll",b=m?g!==null?g+"Capture":null:g;m=[];for(var w=u,S;w!==null;){S=w;var k=S.stateNode;if(S.tag===5&&k!==null&&(S=k,b!==null&&(k=Tp(w,b),k!=null&&m.push(Lp(w,k,S)))),C)break;w=w.return}0<m.length&&(g=new v(g,y,null,n,f),p.push({event:g,listeners:m}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==bC&&(y=n.relatedTarget||n.fromElement)&&(Ja(y)||y[fl]))break e;if((v||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?Ja(y):null,y!==null&&(C=Dc(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=u),v!==y)){if(m=RT,k="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(m=DT,k="onPointerLeave",b="onPointerEnter",w="pointer"),C=v==null?g:_u(v),S=y==null?g:_u(y),g=new m(k,w+"leave",v,n,f),g.target=C,g.relatedTarget=S,k=null,Ja(f)===u&&(m=new m(b,w+"enter",y,n,f),m.target=S,m.relatedTarget=C,k=m),C=k,v&&y)t:{for(m=v,b=y,w=0,S=m;S;S=ru(S))w++;for(S=0,k=b;k;k=ru(k))S++;for(;0<w-S;)m=ru(m),w--;for(;0<S-w;)b=ru(b),S--;for(;w--;){if(m===b||b!==null&&m===b.alternate)break t;m=ru(m),b=ru(b)}m=null}else m=null;v!==null&&WT(p,g,v,m,!1),y!==null&&C!==null&&WT(p,C,y,m,!0)}}e:{if(g=u?_u(u):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var M=vW;else if(FT(g))if(_A)M=CW;else{M=bW;var I=yW}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(M=wW);if(M&&(M=M(e,u))){TA(p,M,n,f);break e}I&&I(e,g,u),e==="focusout"&&(I=g._wrapperState)&&I.controlled&&g.type==="number"&&hC(g,"number",g.value)}switch(I=u?_u(u):window,e){case"focusin":(FT(I)||I.contentEditable==="true")&&(Mu=I,IC=u,ap=null);break;case"focusout":ap=IC=Mu=null;break;case"mousedown":EC=!0;break;case"contextmenu":case"mouseup":case"dragend":EC=!1,jT(p,n,f);break;case"selectionchange":if(PW)break;case"keydown":case"keyup":jT(p,n,f)}var E;if($S)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Eu?EA(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(IA&&n.locale!=="ko"&&(Eu||T!=="onCompositionStart"?T==="onCompositionEnd"&&Eu&&(E=kA()):(Xl=f,MS="value"in Xl?Xl.value:Xl.textContent,Eu=!0)),I=ov(u,T),0<I.length&&(T=new OT(T,e,null,n,f),p.push({event:T,listeners:I}),E?T.data=E:(E=MA(n),E!==null&&(T.data=E)))),(E=fW?pW(e,n):hW(e,n))&&(u=ov(u,"onBeforeInput"),0<u.length&&(f=new OT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=E))}zA(p,t)})}function Lp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ov(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Tp(e,n),s!=null&&r.unshift(Lp(e,s,o)),s=Tp(e,t),s!=null&&r.push(Lp(e,s,o))),e=e.return}return r}function ru(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function WT(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=Tp(n,s),a!=null&&i.unshift(Lp(n,a,l))):o||(a=Tp(n,s),a!=null&&i.push(Lp(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var MW=/\r\n?/g,TW=/\u0000|\uFFFD/g;function GT(e){return(typeof e=="string"?e:""+e).replace(MW,`
|
|
30
|
+
`).replace(TW,"")}function Um(e,t,n){if(t=GT(t),GT(e)!==t&&n)throw Error(He(425))}function sv(){}var MC=null,TC=null;function _C(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 $C=typeof setTimeout=="function"?setTimeout:void 0,_W=typeof clearTimeout=="function"?clearTimeout:void 0,KT=typeof Promise=="function"?Promise:void 0,$W=typeof queueMicrotask=="function"?queueMicrotask:typeof KT!="undefined"?function(e){return KT.resolve(null).then(e).catch(RW)}:$C;function RW(e){setTimeout(function(){throw e})}function ew(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),Rp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Rp(t)}function la(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 qT(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 Rd=Math.random().toString(36).slice(2),xi="__reactFiber$"+Rd,Fp="__reactProps$"+Rd,fl="__reactContainer$"+Rd,RC="__reactEvents$"+Rd,OW="__reactListeners$"+Rd,DW="__reactHandles$"+Rd;function Ja(e){var t=e[xi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fl]||n[xi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qT(e);e!==null;){if(n=e[xi])return n;e=qT(e)}return t}e=n,n=e.parentNode}return null}function wh(e){return e=e[xi]||e[fl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _u(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function my(e){return e[Fp]||null}var OC=[],$u=-1;function Ea(e){return{current:e}}function Mn(e){0>$u||(e.current=OC[$u],OC[$u]=null,$u--)}function xn(e,t){$u++,OC[$u]=e.current,e.current=t}var ya={},Yr=Ea(ya),Po=Ea(!1),mc=ya;function id(e,t){var n=e.type.contextTypes;if(!n)return ya;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ko(e){return e=e.childContextTypes,e!=null}function iv(){Mn(Po),Mn(Yr)}function YT(e,t,n){if(Yr.current!==ya)throw Error(He(168));xn(Yr,t),xn(Po,n)}function jA(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(He(108,yU(e)||"Unknown",o));return Vn({},n,r)}function lv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ya,mc=Yr.current,xn(Yr,e),xn(Po,Po.current),!0}function QT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=jA(e,t,mc),r.__reactInternalMemoizedMergedChildContext=e,Mn(Po),Mn(Yr),xn(Yr,e)):Mn(Po),xn(Po,n)}var tl=null,gy=!1,tw=!1;function HA(e){tl===null?tl=[e]:tl.push(e)}function AW(e){gy=!0,HA(e)}function Ma(){if(!tw&&tl!==null){tw=!0;var e=0,t=dn;try{var n=tl;for(dn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tl=null,gy=!1}catch(o){throw tl!==null&&(tl=tl.slice(e+1)),hA(PS,Ma),o}finally{dn=t,tw=!1}}return null}var Ru=[],Ou=0,av=null,cv=0,Ss=[],Ps=0,gc=null,ol=1,sl="";function qa(e,t){Ru[Ou++]=cv,Ru[Ou++]=av,av=e,cv=t}function UA(e,t,n){Ss[Ps++]=ol,Ss[Ps++]=sl,Ss[Ps++]=gc,gc=e;var r=ol;e=sl;var o=32-ri(r)-1;r&=~(1<<o),n+=1;var s=32-ri(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,ol=1<<32-ri(t)+o|n<<o|r,sl=s+e}else ol=1<<s|n<<o|r,sl=e}function OS(e){e.return!==null&&(qa(e,1),UA(e,1,0))}function DS(e){for(;e===av;)av=Ru[--Ou],Ru[Ou]=null,cv=Ru[--Ou],Ru[Ou]=null;for(;e===gc;)gc=Ss[--Ps],Ss[Ps]=null,sl=Ss[--Ps],Ss[Ps]=null,ol=Ss[--Ps],Ss[Ps]=null}var Wo=null,Uo=null,Dn=!1,Xs=null;function WA(e,t){var n=Is(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 XT(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,Wo=e,Uo=la(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wo=e,Uo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gc!==null?{id:ol,overflow:sl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Is(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Wo=e,Uo=null,!0):!1;default:return!1}}function DC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function AC(e){if(Dn){var t=Uo;if(t){var n=t;if(!XT(e,t)){if(DC(e))throw Error(He(418));t=la(n.nextSibling);var r=Wo;t&&XT(e,t)?WA(r,n):(e.flags=e.flags&-4097|2,Dn=!1,Wo=e)}}else{if(DC(e))throw Error(He(418));e.flags=e.flags&-4097|2,Dn=!1,Wo=e}}}function ZT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wo=e}function Wm(e){if(e!==Wo)return!1;if(!Dn)return ZT(e),Dn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_C(e.type,e.memoizedProps)),t&&(t=Uo)){if(DC(e))throw GA(),Error(He(418));for(;t;)WA(e,t),t=la(t.nextSibling)}if(ZT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Uo=la(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Uo=null}}else Uo=Wo?la(e.stateNode.nextSibling):null;return!0}function GA(){for(var e=Uo;e;)e=la(e.nextSibling)}function ld(){Uo=Wo=null,Dn=!1}function AS(e){Xs===null?Xs=[e]:Xs.push(e)}var LW=bl.ReactCurrentBatchConfig;function qs(e,t){if(e&&e.defaultProps){t=Vn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var uv=Ea(null),dv=null,Du=null,LS=null;function FS(){LS=Du=dv=null}function NS(e){var t=uv.current;Mn(uv),e._currentValue=t}function LC(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 Ku(e,t){dv=e,LS=Du=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(So=!0),e.firstContext=null)}function $s(e){var t=e._currentValue;if(LS!==e)if(e={context:e,memoizedValue:t,next:null},Du===null){if(dv===null)throw Error(He(308));Du=e,dv.dependencies={lanes:0,firstContext:e}}else Du=Du.next=e;return t}var ec=null;function BS(e){ec===null?ec=[e]:ec.push(e)}function KA(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,BS(t)):(n.next=o.next,o.next=n),t.interleaved=n,pl(e,r)}function pl(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 Ul=!1;function zS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qA(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 al(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function aa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pl(e,n)}return o=r.interleaved,o===null?(t.next=t,BS(r)):(t.next=o.next,o.next=t),r.interleaved=t,pl(e,n)}function Ig(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,kS(e,n)}}function JT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 fv(e,t,n,r){var o=e.updateQueue;Ul=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=u=a=null,l=s;do{var g=l.lane,v=l.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(g=t,v=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){p=y.call(v,p,g);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,g=typeof y=="function"?y.call(v,p,g):y,g==null)break e;p=Vn({},p,g);break e;case 2:Ul=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else v={eventTime:v,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=v,a=p):f=f.next=v,i|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(1);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);yc|=i,e.lanes=i,e.memoizedState=p}}function e_(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(He(191,o));o.call(r)}}}var YA=new KD.Component().refs;function FC(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Vn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vy={isMounted:function(e){return(e=e._reactInternals)?Dc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=co(),o=ua(e),s=al(r,o);s.payload=t,n!=null&&(s.callback=n),t=aa(e,s,o),t!==null&&(oi(t,e,o,r),Ig(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=co(),o=ua(e),s=al(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=aa(e,s,o),t!==null&&(oi(t,e,o,r),Ig(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=co(),r=ua(e),o=al(n,r);o.tag=2,t!=null&&(o.callback=t),t=aa(e,o,r),t!==null&&(oi(t,e,r,n),Ig(t,e,r))}};function t_(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Dp(n,r)||!Dp(o,s):!0}function QA(e,t,n){var r=!1,o=ya,s=t.contextType;return typeof s=="object"&&s!==null?s=$s(s):(o=ko(t)?mc:Yr.current,r=t.contextTypes,s=(r=r!=null)?id(e,o):ya),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function n_(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&&vy.enqueueReplaceState(t,t.state,null)}function NC(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=YA,zS(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=$s(s):(s=ko(t)?mc:Yr.current,o.context=id(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(FC(e,t,s,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&&vy.enqueueReplaceState(o,o.state,null),fv(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function If(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(He(309));var r=n.stateNode}if(!r)throw Error(He(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;l===YA&&(l=o.refs={}),i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(He(284));if(!n._owner)throw Error(He(290,e))}return e}function Gm(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function r_(e){var t=e._init;return t(e._payload)}function XA(e){function t(b,w){if(e){var S=b.deletions;S===null?(b.deletions=[w],b.flags|=16):S.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function o(b,w){return b=da(b,w),b.index=0,b.sibling=null,b}function s(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags|=2,w):S):(b.flags|=2,w)):(b.flags|=1048576,w)}function i(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,w,S,k){return w===null||w.tag!==6?(w=aw(S,b.mode,k),w.return=b,w):(w=o(w,S),w.return=b,w)}function a(b,w,S,k){var M=S.type;return M===Iu?f(b,w,S.props.children,k,S.key):w!==null&&(w.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Hl&&r_(M)===w.type)?(k=o(w,S.props),k.ref=If(b,w,S),k.return=b,k):(k=Rg(S.type,S.key,S.props,null,b.mode,k),k.ref=If(b,w,S),k.return=b,k)}function u(b,w,S,k){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=cw(S,b.mode,k),w.return=b,w):(w=o(w,S.children||[]),w.return=b,w)}function f(b,w,S,k,M){return w===null||w.tag!==7?(w=ic(S,b.mode,k,M),w.return=b,w):(w=o(w,S),w.return=b,w)}function p(b,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=aw(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Am:return S=Rg(w.type,w.key,w.props,null,b.mode,S),S.ref=If(b,null,w),S.return=b,S;case ku:return w=cw(w,b.mode,S),w.return=b,w;case Hl:var k=w._init;return p(b,k(w._payload),S)}if(Gf(w)||Cf(w))return w=ic(w,b.mode,S,null),w.return=b,w;Gm(b,w)}return null}function g(b,w,S,k){var M=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return M!==null?null:l(b,w,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Am:return S.key===M?a(b,w,S,k):null;case ku:return S.key===M?u(b,w,S,k):null;case Hl:return M=S._init,g(b,w,M(S._payload),k)}if(Gf(S)||Cf(S))return M!==null?null:f(b,w,S,k,null);Gm(b,S)}return null}function v(b,w,S,k,M){if(typeof k=="string"&&k!==""||typeof k=="number")return b=b.get(S)||null,l(w,b,""+k,M);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Am:return b=b.get(k.key===null?S:k.key)||null,a(w,b,k,M);case ku:return b=b.get(k.key===null?S:k.key)||null,u(w,b,k,M);case Hl:var I=k._init;return v(b,w,S,I(k._payload),M)}if(Gf(k)||Cf(k))return b=b.get(S)||null,f(w,b,k,M,null);Gm(w,k)}return null}function y(b,w,S,k){for(var M=null,I=null,E=w,T=w=0,L=null;E!==null&&T<S.length;T++){E.index>T?(L=E,E=null):L=E.sibling;var O=g(b,E,S[T],k);if(O===null){E===null&&(E=L);break}e&&E&&O.alternate===null&&t(b,E),w=s(O,w,T),I===null?M=O:I.sibling=O,I=O,E=L}if(T===S.length)return n(b,E),Dn&&qa(b,T),M;if(E===null){for(;T<S.length;T++)E=p(b,S[T],k),E!==null&&(w=s(E,w,T),I===null?M=E:I.sibling=E,I=E);return Dn&&qa(b,T),M}for(E=r(b,E);T<S.length;T++)L=v(E,b,T,S[T],k),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),w=s(L,w,T),I===null?M=L:I.sibling=L,I=L);return e&&E.forEach(function(R){return t(b,R)}),Dn&&qa(b,T),M}function m(b,w,S,k){var M=Cf(S);if(typeof M!="function")throw Error(He(150));if(S=M.call(S),S==null)throw Error(He(151));for(var I=M=null,E=w,T=w=0,L=null,O=S.next();E!==null&&!O.done;T++,O=S.next()){E.index>T?(L=E,E=null):L=E.sibling;var R=g(b,E,O.value,k);if(R===null){E===null&&(E=L);break}e&&E&&R.alternate===null&&t(b,E),w=s(R,w,T),I===null?M=R:I.sibling=R,I=R,E=L}if(O.done)return n(b,E),Dn&&qa(b,T),M;if(E===null){for(;!O.done;T++,O=S.next())O=p(b,O.value,k),O!==null&&(w=s(O,w,T),I===null?M=O:I.sibling=O,I=O);return Dn&&qa(b,T),M}for(E=r(b,E);!O.done;T++,O=S.next())O=v(E,b,T,O.value,k),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?T:O.key),w=s(O,w,T),I===null?M=O:I.sibling=O,I=O);return e&&E.forEach(function(V){return t(b,V)}),Dn&&qa(b,T),M}function C(b,w,S,k){if(typeof S=="object"&&S!==null&&S.type===Iu&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Am:e:{for(var M=S.key,I=w;I!==null;){if(I.key===M){if(M=S.type,M===Iu){if(I.tag===7){n(b,I.sibling),w=o(I,S.props.children),w.return=b,b=w;break e}}else if(I.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Hl&&r_(M)===I.type){n(b,I.sibling),w=o(I,S.props),w.ref=If(b,I,S),w.return=b,b=w;break e}n(b,I);break}else t(b,I);I=I.sibling}S.type===Iu?(w=ic(S.props.children,b.mode,k,S.key),w.return=b,b=w):(k=Rg(S.type,S.key,S.props,null,b.mode,k),k.ref=If(b,w,S),k.return=b,b=k)}return i(b);case ku:e:{for(I=S.key;w!==null;){if(w.key===I)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(b,w.sibling),w=o(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=cw(S,b.mode,k),w.return=b,b=w}return i(b);case Hl:return I=S._init,C(b,w,I(S._payload),k)}if(Gf(S))return y(b,w,S,k);if(Cf(S))return m(b,w,S,k);Gm(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,S),w.return=b,b=w):(n(b,w),w=aw(S,b.mode,k),w.return=b,b=w),i(b)):n(b,w)}return C}var ad=XA(!0),ZA=XA(!1),Ch={},ki=Ea(Ch),Np=Ea(Ch),Bp=Ea(Ch);function tc(e){if(e===Ch)throw Error(He(174));return e}function VS(e,t){switch(xn(Bp,t),xn(Np,e),xn(ki,Ch),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gC(t,e)}Mn(ki),xn(ki,t)}function cd(){Mn(ki),Mn(Np),Mn(Bp)}function JA(e){tc(Bp.current);var t=tc(ki.current),n=gC(t,e.type);t!==n&&(xn(Np,e),xn(ki,n))}function jS(e){Np.current===e&&(Mn(ki),Mn(Np))}var Nn=Ea(0);function pv(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 nw=[];function HS(){for(var e=0;e<nw.length;e++)nw[e]._workInProgressVersionPrimary=null;nw.length=0}var Eg=bl.ReactCurrentDispatcher,rw=bl.ReactCurrentBatchConfig,vc=0,zn=null,ur=null,Cr=null,hv=!1,cp=!1,zp=0,FW=0;function zr(){throw Error(He(321))}function US(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!li(e[n],t[n]))return!1;return!0}function WS(e,t,n,r,o,s){if(vc=s,zn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eg.current=e===null||e.memoizedState===null?VW:jW,e=n(r,o),cp){s=0;do{if(cp=!1,zp=0,25<=s)throw Error(He(301));s+=1,Cr=ur=null,t.updateQueue=null,Eg.current=HW,e=n(r,o)}while(cp)}if(Eg.current=mv,t=ur!==null&&ur.next!==null,vc=0,Cr=ur=zn=null,hv=!1,t)throw Error(He(300));return e}function GS(){var e=zp!==0;return zp=0,e}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?zn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Rs(){if(ur===null){var e=zn.alternate;e=e!==null?e.memoizedState:null}else e=ur.next;var t=Cr===null?zn.memoizedState:Cr.next;if(t!==null)Cr=t,ur=e;else{if(e===null)throw Error(He(310));ur=e,e={memoizedState:ur.memoizedState,baseState:ur.baseState,baseQueue:ur.baseQueue,queue:ur.queue,next:null},Cr===null?zn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function Vp(e,t){return typeof t=="function"?t(e):t}function ow(e){var t=Rs(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=ur,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,a=null,u=s;do{var f=u.lane;if((vc&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=p,i=r):a=a.next=p,zn.lanes|=f,yc|=f}u=u.next}while(u!==null&&u!==s);a===null?i=r:a.next=l,li(r,t.memoizedState)||(So=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,zn.lanes|=s,yc|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sw(e){var t=Rs(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);li(s,t.memoizedState)||(So=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function eL(){}function tL(e,t){var n=zn,r=Rs(),o=t(),s=!li(r.memoizedState,o);if(s&&(r.memoizedState=o,So=!0),r=r.queue,KS(oL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,jp(9,rL.bind(null,n,r,o,t),void 0,null),xr===null)throw Error(He(349));vc&30||nL(n,t,o)}return o}function nL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zn.updateQueue,t===null?(t={lastEffect:null,stores:null},zn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rL(e,t,n,r){t.value=n,t.getSnapshot=r,sL(t)&&iL(e)}function oL(e,t,n){return n(function(){sL(t)&&iL(e)})}function sL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!li(e,n)}catch(r){return!0}}function iL(e){var t=pl(e,1);t!==null&&oi(t,e,1,-1)}function o_(e){var t=vi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vp,lastRenderedState:e},t.queue=e,e=e.dispatch=zW.bind(null,zn,e),[t.memoizedState,e]}function jp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=zn.updateQueue,t===null?(t={lastEffect:null,stores:null},zn.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 lL(){return Rs().memoizedState}function Mg(e,t,n,r){var o=vi();zn.flags|=e,o.memoizedState=jp(1|t,n,void 0,r===void 0?null:r)}function yy(e,t,n,r){var o=Rs();r=r===void 0?null:r;var s=void 0;if(ur!==null){var i=ur.memoizedState;if(s=i.destroy,r!==null&&US(r,i.deps)){o.memoizedState=jp(t,n,s,r);return}}zn.flags|=e,o.memoizedState=jp(1|t,n,s,r)}function s_(e,t){return Mg(8390656,8,e,t)}function KS(e,t){return yy(2048,8,e,t)}function aL(e,t){return yy(4,2,e,t)}function cL(e,t){return yy(4,4,e,t)}function uL(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 dL(e,t,n){return n=n!=null?n.concat([e]):null,yy(4,4,uL.bind(null,t,e),n)}function qS(){}function fL(e,t){var n=Rs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&US(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pL(e,t){var n=Rs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&US(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hL(e,t,n){return vc&21?(li(n,t)||(n=vA(),zn.lanes|=n,yc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,So=!0),e.memoizedState=n)}function NW(e,t){var n=dn;dn=n!==0&&4>n?n:4,e(!0);var r=rw.transition;rw.transition={};try{e(!1),t()}finally{dn=n,rw.transition=r}}function mL(){return Rs().memoizedState}function BW(e,t,n){var r=ua(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gL(e))vL(t,n);else if(n=KA(e,t,n,r),n!==null){var o=co();oi(n,e,r,o),yL(n,t,r)}}function zW(e,t,n){var r=ua(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gL(e))vL(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,li(l,i)){var a=t.interleaved;a===null?(o.next=o,BS(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(u){}finally{}n=KA(e,t,o,r),n!==null&&(o=co(),oi(n,e,r,o),yL(n,t,r))}}function gL(e){var t=e.alternate;return e===zn||t!==null&&t===zn}function vL(e,t){cp=hv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kS(e,n)}}var mv={readContext:$s,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},VW={readContext:$s,useCallback:function(e,t){return vi().memoizedState=[e,t===void 0?null:t],e},useContext:$s,useEffect:s_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mg(4194308,4,uL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mg(4,2,e,t)},useMemo:function(e,t){var n=vi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vi();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=BW.bind(null,zn,e),[r.memoizedState,e]},useRef:function(e){var t=vi();return e={current:e},t.memoizedState=e},useState:o_,useDebugValue:qS,useDeferredValue:function(e){return vi().memoizedState=e},useTransition:function(){var e=o_(!1),t=e[0];return e=NW.bind(null,e[1]),vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zn,o=vi();if(Dn){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),xr===null)throw Error(He(349));vc&30||nL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,s_(oL.bind(null,r,s,e),[e]),r.flags|=2048,jp(9,rL.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=vi(),t=xr.identifierPrefix;if(Dn){var n=sl,r=ol;n=(r&~(1<<32-ri(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=FW++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jW={readContext:$s,useCallback:fL,useContext:$s,useEffect:KS,useImperativeHandle:dL,useInsertionEffect:aL,useLayoutEffect:cL,useMemo:pL,useReducer:ow,useRef:lL,useState:function(){return ow(Vp)},useDebugValue:qS,useDeferredValue:function(e){var t=Rs();return hL(t,ur.memoizedState,e)},useTransition:function(){var e=ow(Vp)[0],t=Rs().memoizedState;return[e,t]},useMutableSource:eL,useSyncExternalStore:tL,useId:mL,unstable_isNewReconciler:!1},HW={readContext:$s,useCallback:fL,useContext:$s,useEffect:KS,useImperativeHandle:dL,useInsertionEffect:aL,useLayoutEffect:cL,useMemo:pL,useReducer:sw,useRef:lL,useState:function(){return sw(Vp)},useDebugValue:qS,useDeferredValue:function(e){var t=Rs();return ur===null?t.memoizedState=e:hL(t,ur.memoizedState,e)},useTransition:function(){var e=sw(Vp)[0],t=Rs().memoizedState;return[e,t]},useMutableSource:eL,useSyncExternalStore:tL,useId:mL,unstable_isNewReconciler:!1};function ud(e,t){try{var n="",r=t;do n+=vU(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
31
|
+
Error generating stack: `+s.message+`
|
|
32
|
+
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function iw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function BC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var UW=typeof WeakMap=="function"?WeakMap:Map;function bL(e,t,n){n=al(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vv||(vv=!0,YC=r),BC(e,t)},n}function wL(e,t,n){n=al(-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(){BC(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){BC(e,t),typeof r!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function i_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new UW;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=oG.bind(null,e,t,n),t.then(e,e))}function l_(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 a_(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=al(-1,1),t.tag=2,aa(n,t,1))),n.lanes|=1),e)}var WW=bl.ReactCurrentOwner,So=!1;function no(e,t,n,r){t.child=e===null?ZA(t,null,n,r):ad(t,e.child,n,r)}function c_(e,t,n,r,o){n=n.render;var s=t.ref;return Ku(t,o),r=WS(e,t,n,r,s,o),n=GS(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hl(e,t,o)):(Dn&&n&&OS(t),t.flags|=1,no(e,t,r,o),t.child)}function u_(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!nP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,CL(e,t,s,r,o)):(e=Rg(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Dp,n(i,r)&&e.ref===t.ref)return hl(e,t,o)}return t.flags|=1,e=da(s,r),e.ref=t.ref,e.return=t,t.child=e}function CL(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Dp(s,r)&&e.ref===t.ref)if(So=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(So=!0);else return t.lanes=e.lanes,hl(e,t,o)}return zC(e,t,n,r,o)}function xL(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xn(Lu,No),No|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xn(Lu,No),No|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xn(Lu,No),No|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xn(Lu,No),No|=r;return no(e,t,o,n),t.child}function SL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zC(e,t,n,r,o){var s=ko(n)?mc:Yr.current;return s=id(t,s),Ku(t,o),n=WS(e,t,n,r,s,o),r=GS(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hl(e,t,o)):(Dn&&r&&OS(t),t.flags|=1,no(e,t,n,o),t.child)}function d_(e,t,n,r,o){if(ko(n)){var s=!0;lv(t)}else s=!1;if(Ku(t,o),t.stateNode===null)Tg(e,t),QA(t,n,r),NC(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=$s(u):(u=ko(n)?mc:Yr.current,u=id(t,u));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&n_(t,i,r,u),Ul=!1;var g=t.memoizedState;i.state=g,fv(t,r,i,o),a=t.memoizedState,l!==r||g!==a||Po.current||Ul?(typeof f=="function"&&(FC(t,n,f,r),a=t.memoizedState),(l=Ul||t_(t,n,l,r,g,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,qA(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:qs(t.type,l),i.props=u,p=t.pendingProps,g=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=$s(a):(a=ko(n)?mc:Yr.current,a=id(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||g!==a)&&n_(t,i,r,a),Ul=!1,g=t.memoizedState,i.state=g,fv(t,r,i,o);var y=t.memoizedState;l!==p||g!==y||Po.current||Ul?(typeof v=="function"&&(FC(t,n,v,r),y=t.memoizedState),(u=Ul||t_(t,n,u,r,g,y,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return VC(e,t,n,r,s,o)}function VC(e,t,n,r,o,s){SL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&QT(t,n,!1),hl(e,t,s);r=t.stateNode,WW.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ad(t,e.child,null,s),t.child=ad(t,null,l,s)):no(e,t,l,s),t.memoizedState=r.state,o&&QT(t,n,!0),t.child}function PL(e){var t=e.stateNode;t.pendingContext?YT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&YT(e,t.context,!1),VS(e,t.containerInfo)}function f_(e,t,n,r,o){return ld(),AS(o),t.flags|=256,no(e,t,n,r),t.child}var jC={dehydrated:null,treeContext:null,retryLane:0};function HC(e){return{baseLanes:e,cachePool:null,transitions:null}}function kL(e,t,n){var r=t.pendingProps,o=Nn.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xn(Nn,o&1),e===null)return AC(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):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Cy(i,r,0,null),e=ic(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=HC(n),t.memoizedState=jC,e):YS(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return GW(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=da(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=da(l,s):(s=ic(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?HC(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=jC,r}return s=e.child,e=s.sibling,r=da(s,{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 YS(e,t){return t=Cy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Km(e,t,n,r){return r!==null&&AS(r),ad(t,e.child,null,n),e=YS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GW(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=iw(Error(He(422))),Km(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Cy({mode:"visible",children:r.children},o,0,null),s=ic(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ad(t,e.child,null,i),t.child.memoizedState=HC(i),t.memoizedState=jC,s);if(!(t.mode&1))return Km(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(He(419)),r=iw(s,r,void 0),Km(e,t,i,r)}if(l=(i&e.childLanes)!==0,So||l){if(r=xr,r!==null){switch(i&-i){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|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,pl(e,o),oi(r,e,o,-1))}return tP(),r=iw(Error(He(421))),Km(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=sG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Uo=la(o.nextSibling),Wo=t,Dn=!0,Xs=null,e!==null&&(Ss[Ps++]=ol,Ss[Ps++]=sl,Ss[Ps++]=gc,ol=e.id,sl=e.overflow,gc=t),t=YS(t,r.children),t.flags|=4096,t)}function p_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),LC(e.return,t,n)}function lw(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function IL(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(no(e,t,r.children,n),r=Nn.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&&p_(e,n,t);else if(e.tag===19)p_(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(xn(Nn,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&&pv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lw(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lw(t,!0,n,null,s);break;case"together":lw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(He(153));if(t.child!==null){for(e=t.child,n=da(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=da(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KW(e,t,n){switch(t.tag){case 3:PL(t),ld();break;case 5:JA(t);break;case 1:ko(t.type)&&lv(t);break;case 4:VS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xn(uv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xn(Nn,Nn.current&1),t.flags|=128,null):n&t.child.childLanes?kL(e,t,n):(xn(Nn,Nn.current&1),e=hl(e,t,n),e!==null?e.sibling:null);xn(Nn,Nn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return IL(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xn(Nn,Nn.current),r)break;return null;case 22:case 23:return t.lanes=0,xL(e,t,n)}return hl(e,t,n)}var EL,UC,ML,TL;EL=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}};UC=function(){};ML=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,tc(ki.current);var s=null;switch(n){case"input":o=fC(e,o),r=fC(e,r),s=[];break;case"select":o=Vn({},o,{value:void 0}),r=Vn({},r,{value:void 0}),s=[];break;case"textarea":o=mC(e,o),r=mC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=sv)}vC(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ep.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ep.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&In("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};TL=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ef(e,t){if(!Dn)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 Vr(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 qW(e,t,n){var r=t.pendingProps;switch(DS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vr(t),null;case 1:return ko(t.type)&&iv(),Vr(t),null;case 3:return r=t.stateNode,cd(),Mn(Po),Mn(Yr),HS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xs!==null&&(ZC(Xs),Xs=null))),UC(e,t),Vr(t),null;case 5:jS(t);var o=tc(Bp.current);if(n=t.type,e!==null&&t.stateNode!=null)ML(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(He(166));return Vr(t),null}if(e=tc(ki.current),Wm(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[xi]=t,r[Fp]=s,e=(t.mode&1)!==0,n){case"dialog":In("cancel",r),In("close",r);break;case"iframe":case"object":case"embed":In("load",r);break;case"video":case"audio":for(o=0;o<qf.length;o++)In(qf[o],r);break;case"source":In("error",r);break;case"img":case"image":case"link":In("error",r),In("load",r);break;case"details":In("toggle",r);break;case"input":xT(r,s),In("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},In("invalid",r);break;case"textarea":PT(r,s),In("invalid",r)}vC(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Um(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Um(r.textContent,l,e),o=["children",""+l]):Ep.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&In("scroll",r)}switch(n){case"input":Lm(r),ST(r,s,!0);break;case"textarea":Lm(r),kT(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=sv)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[xi]=t,e[Fp]=r,EL(e,t,!1,!1),t.stateNode=e;e:{switch(i=yC(n,r),n){case"dialog":In("cancel",e),In("close",e),o=r;break;case"iframe":case"object":case"embed":In("load",e),o=r;break;case"video":case"audio":for(o=0;o<qf.length;o++)In(qf[o],e);o=r;break;case"source":In("error",e),o=r;break;case"img":case"image":case"link":In("error",e),In("load",e),o=r;break;case"details":In("toggle",e),o=r;break;case"input":xT(e,r),o=fC(e,r),In("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Vn({},r,{value:void 0}),In("invalid",e);break;case"textarea":PT(e,r),o=mC(e,r),In("invalid",e);break;default:o=r}vC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?sA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rA(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Mp(e,a):typeof a=="number"&&Mp(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ep.hasOwnProperty(s)?a!=null&&s==="onScroll"&&In("scroll",e):a!=null&&bS(e,s,a,i))}switch(n){case"input":Lm(e),ST(e,r,!1);break;case"textarea":Lm(e),kT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+va(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Hu(e,!!r.multiple,s,!1):r.defaultValue!=null&&Hu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=sv)}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 Vr(t),null;case 6:if(e&&t.stateNode!=null)TL(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=tc(Bp.current),tc(ki.current),Wm(t)){if(r=t.stateNode,n=t.memoizedProps,r[xi]=t,(s=r.nodeValue!==n)&&(e=Wo,e!==null))switch(e.tag){case 3:Um(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Um(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xi]=t,t.stateNode=r}return Vr(t),null;case 13:if(Mn(Nn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dn&&Uo!==null&&t.mode&1&&!(t.flags&128))GA(),ld(),t.flags|=98560,s=!1;else if(s=Wm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(He(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(He(317));s[xi]=t}else ld(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vr(t),s=!1}else Xs!==null&&(ZC(Xs),Xs=null),s=!0;if(!s)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||Nn.current&1?fr===0&&(fr=3):tP())),t.updateQueue!==null&&(t.flags|=4),Vr(t),null);case 4:return cd(),UC(e,t),e===null&&Ap(t.stateNode.containerInfo),Vr(t),null;case 10:return NS(t.type._context),Vr(t),null;case 17:return ko(t.type)&&iv(),Vr(t),null;case 19:if(Mn(Nn),s=t.memoizedState,s===null)return Vr(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Ef(s,!1);else{if(fr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=pv(e),i!==null){for(t.flags|=128,Ef(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xn(Nn,Nn.current&1|2),t.child}e=e.sibling}s.tail!==null&&Jn()>dd&&(t.flags|=128,r=!0,Ef(s,!1),t.lanes=4194304)}else{if(!r)if(e=pv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ef(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!Dn)return Vr(t),null}else 2*Jn()-s.renderingStartTime>dd&&n!==1073741824&&(t.flags|=128,r=!0,Ef(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Jn(),t.sibling=null,n=Nn.current,xn(Nn,r?n&1|2:n&1),t):(Vr(t),null);case 22:case 23:return eP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?No&1073741824&&(Vr(t),t.subtreeFlags&6&&(t.flags|=8192)):Vr(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function YW(e,t){switch(DS(t),t.tag){case 1:return ko(t.type)&&iv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cd(),Mn(Po),Mn(Yr),HS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jS(t),null;case 13:if(Mn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));ld()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(Nn),null;case 4:return cd(),null;case 10:return NS(t.type._context),null;case 22:case 23:return eP(),null;case 24:return null;default:return null}}var qm=!1,Ur=!1,QW=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Au(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gn(e,t,r)}else n.current=null}function WC(e,t,n){try{n()}catch(r){Gn(e,t,r)}}var h_=!1;function XW(e,t){if(MC=nv,e=OA(),RS(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(k){n=null;break e}var i=0,l=-1,a=-1,u=0,f=0,p=e,g=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=i),g===s&&++f===r&&(a=i),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(TC={focusedElem:e,selectionRange:n},nv=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,C=y.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:qs(t.type,m),C);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(k){Gn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return y=h_,h_=!1,y}function up(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 s=o.destroy;o.destroy=void 0,s!==void 0&&WC(t,n,s)}o=o.next}while(o!==r)}}function by(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 GC(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 _L(e){var t=e.alternate;t!==null&&(e.alternate=null,_L(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xi],delete t[Fp],delete t[RC],delete t[OW],delete t[DW])),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 $L(e){return e.tag===5||e.tag===3||e.tag===4}function m_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$L(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 KC(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=sv));else if(r!==4&&(e=e.child,e!==null))for(KC(e,t,n),e=e.sibling;e!==null;)KC(e,t,n),e=e.sibling}function qC(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(qC(e,t,n),e=e.sibling;e!==null;)qC(e,t,n),e=e.sibling}var $r=null,Qs=!1;function Ol(e,t,n){for(n=n.child;n!==null;)RL(e,t,n),n=n.sibling}function RL(e,t,n){if(Pi&&typeof Pi.onCommitFiberUnmount=="function")try{Pi.onCommitFiberUnmount(dy,n)}catch(l){}switch(n.tag){case 5:Ur||Au(n,t);case 6:var r=$r,o=Qs;$r=null,Ol(e,t,n),$r=r,Qs=o,$r!==null&&(Qs?(e=$r,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$r.removeChild(n.stateNode));break;case 18:$r!==null&&(Qs?(e=$r,n=n.stateNode,e.nodeType===8?ew(e.parentNode,n):e.nodeType===1&&ew(e,n),Rp(e)):ew($r,n.stateNode));break;case 4:r=$r,o=Qs,$r=n.stateNode.containerInfo,Qs=!0,Ol(e,t,n),$r=r,Qs=o;break;case 0:case 11:case 14:case 15:if(!Ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&WC(n,t,i),o=o.next}while(o!==r)}Ol(e,t,n);break;case 1:if(!Ur&&(Au(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Gn(n,t,l)}Ol(e,t,n);break;case 21:Ol(e,t,n);break;case 22:n.mode&1?(Ur=(r=Ur)||n.memoizedState!==null,Ol(e,t,n),Ur=r):Ol(e,t,n);break;default:Ol(e,t,n)}}function g_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new QW),t.forEach(function(r){var o=iG.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gs(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:$r=l.stateNode,Qs=!1;break e;case 3:$r=l.stateNode.containerInfo,Qs=!0;break e;case 4:$r=l.stateNode.containerInfo,Qs=!0;break e}l=l.return}if($r===null)throw Error(He(160));RL(s,i,o),$r=null,Qs=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Gn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)OL(t,e),t=t.sibling}function OL(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gs(t,e),gi(e),r&4){try{up(3,e,e.return),by(3,e)}catch(m){Gn(e,e.return,m)}try{up(5,e,e.return)}catch(m){Gn(e,e.return,m)}}break;case 1:Gs(t,e),gi(e),r&512&&n!==null&&Au(n,n.return);break;case 5:if(Gs(t,e),gi(e),r&512&&n!==null&&Au(n,n.return),e.flags&32){var o=e.stateNode;try{Mp(o,"")}catch(m){Gn(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&eA(o,s),yC(l,i);var u=yC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?sA(o,p):f==="dangerouslySetInnerHTML"?rA(o,p):f==="children"?Mp(o,p):bS(o,f,p,u)}switch(l){case"input":pC(o,s);break;case"textarea":tA(o,s);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Hu(o,!!s.multiple,v,!1):g!==!!s.multiple&&(s.defaultValue!=null?Hu(o,!!s.multiple,s.defaultValue,!0):Hu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Fp]=s}catch(m){Gn(e,e.return,m)}}break;case 6:if(Gs(t,e),gi(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){Gn(e,e.return,m)}}break;case 3:if(Gs(t,e),gi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Rp(t.containerInfo)}catch(m){Gn(e,e.return,m)}break;case 4:Gs(t,e),gi(e);break;case 13:Gs(t,e),gi(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(ZS=Jn())),r&4&&g_(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ur=(u=Ur)||f,Gs(t,e),Ur=u):Gs(t,e),gi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(lt=e,f=e.child;f!==null;){for(p=lt=f;lt!==null;){switch(g=lt,v=g.child,g.tag){case 0:case 11:case 14:case 15:up(4,g,g.return);break;case 1:Au(g,g.return);var y=g.stateNode;if(typeof y.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Gn(r,n,m)}}break;case 5:Au(g,g.return);break;case 22:if(g.memoizedState!==null){y_(p);continue}}v!==null?(v.return=g,lt=v):y_(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=oA("display",i))}catch(m){Gn(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(m){Gn(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Gs(t,e),gi(e),r&4&&g_(e);break;case 21:break;default:Gs(t,e),gi(e)}}function gi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($L(n)){var r=n;break e}n=n.return}throw Error(He(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Mp(o,""),r.flags&=-33);var s=m_(e);qC(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=m_(e);KC(e,l,i);break;default:throw Error(He(161))}}catch(a){Gn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ZW(e,t,n){lt=e,DL(e)}function DL(e,t,n){for(var r=(e.mode&1)!==0;lt!==null;){var o=lt,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||qm;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Ur;l=qm;var u=Ur;if(qm=i,(Ur=a)&&!u)for(lt=o;lt!==null;)i=lt,a=i.child,i.tag===22&&i.memoizedState!==null?b_(o):a!==null?(a.return=i,lt=a):b_(o);for(;s!==null;)lt=s,DL(s),s=s.sibling;lt=o,qm=l,Ur=u}v_(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,lt=s):v_(e)}}function v_(e){for(;lt!==null;){var t=lt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ur||by(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ur)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qs(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&e_(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}e_(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Rp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}Ur||t.flags&512&&GC(t)}catch(g){Gn(t,t.return,g)}}if(t===e){lt=null;break}if(n=t.sibling,n!==null){n.return=t.return,lt=n;break}lt=t.return}}function y_(e){for(;lt!==null;){var t=lt;if(t===e){lt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,lt=n;break}lt=t.return}}function b_(e){for(;lt!==null;){var t=lt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{by(4,t)}catch(a){Gn(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Gn(t,o,a)}}var s=t.return;try{GC(t)}catch(a){Gn(t,s,a)}break;case 5:var i=t.return;try{GC(t)}catch(a){Gn(t,i,a)}}}catch(a){Gn(t,t.return,a)}if(t===e){lt=null;break}var l=t.sibling;if(l!==null){l.return=t.return,lt=l;break}lt=t.return}}var JW=Math.ceil,gv=bl.ReactCurrentDispatcher,QS=bl.ReactCurrentOwner,Es=bl.ReactCurrentBatchConfig,Xt=0,xr=null,lr=null,Ar=0,No=0,Lu=Ea(0),fr=0,Hp=null,yc=0,wy=0,XS=0,dp=null,bo=null,ZS=0,dd=1/0,el=null,vv=!1,YC=null,ca=null,Ym=!1,Zl=null,yv=0,fp=0,QC=null,_g=-1,$g=0;function co(){return Xt&6?Jn():_g!==-1?_g:_g=Jn()}function ua(e){return e.mode&1?Xt&2&&Ar!==0?Ar&-Ar:LW.transition!==null?($g===0&&($g=vA()),$g):(e=dn,e!==0||(e=window.event,e=e===void 0?16:PA(e.type)),e):1}function oi(e,t,n,r){if(50<fp)throw fp=0,QC=null,Error(He(185));yh(e,n,r),(!(Xt&2)||e!==xr)&&(e===xr&&(!(Xt&2)&&(wy|=n),fr===4&&Yl(e,Ar)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(dd=Jn()+500,gy&&Ma()))}function Io(e,t){var n=e.callbackNode;LU(e,t);var r=tv(e,e===xr?Ar:0);if(r===0)n!==null&&MT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&MT(n),t===1)e.tag===0?AW(w_.bind(null,e)):HA(w_.bind(null,e)),$W(function(){!(Xt&6)&&Ma()}),n=null;else{switch(yA(r)){case 1:n=PS;break;case 4:n=mA;break;case 16:n=ev;break;case 536870912:n=gA;break;default:n=ev}n=jL(n,AL.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function AL(e,t){if(_g=-1,$g=0,Xt&6)throw Error(He(327));var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=tv(e,e===xr?Ar:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=bv(e,r);else{t=r;var o=Xt;Xt|=2;var s=FL();(xr!==e||Ar!==t)&&(el=null,dd=Jn()+500,sc(e,t));do try{nG();break}catch(l){LL(e,l)}while(1);FS(),gv.current=s,Xt=o,lr!==null?t=0:(xr=null,Ar=0,t=fr)}if(t!==0){if(t===2&&(o=SC(e),o!==0&&(r=o,t=XC(e,o))),t===1)throw n=Hp,sc(e,0),Yl(e,r),Io(e,Jn()),n;if(t===6)Yl(e,r);else{if(o=e.current.alternate,!(r&30)&&!eG(o)&&(t=bv(e,r),t===2&&(s=SC(e),s!==0&&(r=s,t=XC(e,s))),t===1))throw n=Hp,sc(e,0),Yl(e,r),Io(e,Jn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:Ya(e,bo,el);break;case 3:if(Yl(e,r),(r&130023424)===r&&(t=ZS+500-Jn(),10<t)){if(tv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){co(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$C(Ya.bind(null,e,bo,el),t);break}Ya(e,bo,el);break;case 4:if(Yl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ri(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}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*JW(r/1960))-r,10<r){e.timeoutHandle=$C(Ya.bind(null,e,bo,el),r);break}Ya(e,bo,el);break;case 5:Ya(e,bo,el);break;default:throw Error(He(329))}}}return Io(e,Jn()),e.callbackNode===n?AL.bind(null,e):null}function XC(e,t){var n=dp;return e.current.memoizedState.isDehydrated&&(sc(e,t).flags|=256),e=bv(e,t),e!==2&&(t=bo,bo=n,t!==null&&ZC(t)),e}function ZC(e){bo===null?bo=e:bo.push.apply(bo,e)}function eG(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],s=o.getSnapshot;o=o.value;try{if(!li(s(),o))return!1}catch(i){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 Yl(e,t){for(t&=~XS,t&=~wy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ri(t),r=1<<n;e[n]=-1,t&=~r}}function w_(e){if(Xt&6)throw Error(He(327));qu();var t=tv(e,0);if(!(t&1))return Io(e,Jn()),null;var n=bv(e,t);if(e.tag!==0&&n===2){var r=SC(e);r!==0&&(t=r,n=XC(e,r))}if(n===1)throw n=Hp,sc(e,0),Yl(e,t),Io(e,Jn()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ya(e,bo,el),Io(e,Jn()),null}function JS(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(dd=Jn()+500,gy&&Ma())}}function bc(e){Zl!==null&&Zl.tag===0&&!(Xt&6)&&qu();var t=Xt;Xt|=1;var n=Es.transition,r=dn;try{if(Es.transition=null,dn=1,e)return e()}finally{dn=r,Es.transition=n,Xt=t,!(Xt&6)&&Ma()}}function eP(){No=Lu.current,Mn(Lu)}function sc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_W(n)),lr!==null)for(n=lr.return;n!==null;){var r=n;switch(DS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&iv();break;case 3:cd(),Mn(Po),Mn(Yr),HS();break;case 5:jS(r);break;case 4:cd();break;case 13:Mn(Nn);break;case 19:Mn(Nn);break;case 10:NS(r.type._context);break;case 22:case 23:eP()}n=n.return}if(xr=e,lr=e=da(e.current,null),Ar=No=t,fr=0,Hp=null,XS=wy=yc=0,bo=dp=null,ec!==null){for(t=0;t<ec.length;t++)if(n=ec[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ec=null}return e}function LL(e,t){do{var n=lr;try{if(FS(),Eg.current=mv,hv){for(var r=zn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}hv=!1}if(vc=0,Cr=ur=zn=null,cp=!1,zp=0,QS.current=null,n===null||n.return===null){fr=1,Hp=t,lr=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=Ar,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=l_(i);if(v!==null){v.flags&=-257,a_(v,i,l,s,t),v.mode&1&&i_(s,u,t),t=v,a=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(a),t.updateQueue=m}else y.add(a);break e}else{if(!(t&1)){i_(s,u,t),tP();break e}a=Error(He(426))}}else if(Dn&&l.mode&1){var C=l_(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),a_(C,i,l,s,t),AS(ud(a,l));break e}}s=a=ud(a,l),fr!==4&&(fr=2),dp===null?dp=[s]:dp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var b=bL(s,a,t);JT(s,b);break e;case 1:l=a;var w=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ca===null||!ca.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=wL(s,l,t);JT(s,k);break e}}s=s.return}while(s!==null)}BL(n)}catch(M){t=M,lr===n&&n!==null&&(lr=n=n.return);continue}break}while(1)}function FL(){var e=gv.current;return gv.current=mv,e===null?mv:e}function tP(){(fr===0||fr===3||fr===2)&&(fr=4),xr===null||!(yc&268435455)&&!(wy&268435455)||Yl(xr,Ar)}function bv(e,t){var n=Xt;Xt|=2;var r=FL();(xr!==e||Ar!==t)&&(el=null,sc(e,t));do try{tG();break}catch(o){LL(e,o)}while(1);if(FS(),Xt=n,gv.current=r,lr!==null)throw Error(He(261));return xr=null,Ar=0,fr}function tG(){for(;lr!==null;)NL(lr)}function nG(){for(;lr!==null&&!EU();)NL(lr)}function NL(e){var t=VL(e.alternate,e,No);e.memoizedProps=e.pendingProps,t===null?BL(e):lr=t,QS.current=null}function BL(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YW(n,t),n!==null){n.flags&=32767,lr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fr=6,lr=null;return}}else if(n=qW(n,t,No),n!==null){lr=n;return}if(t=t.sibling,t!==null){lr=t;return}lr=t=e}while(t!==null);fr===0&&(fr=5)}function Ya(e,t,n){var r=dn,o=Es.transition;try{Es.transition=null,dn=1,rG(e,t,n,r)}finally{Es.transition=o,dn=r}return null}function rG(e,t,n,r){do qu();while(Zl!==null);if(Xt&6)throw Error(He(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(He(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(FU(e,s),e===xr&&(lr=xr=null,Ar=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ym||(Ym=!0,jL(ev,function(){return qu(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Es.transition,Es.transition=null;var i=dn;dn=1;var l=Xt;Xt|=4,QS.current=null,XW(e,n),OL(n,e),SW(TC),nv=!!MC,TC=MC=null,e.current=n,ZW(n),MU(),Xt=l,dn=i,Es.transition=s}else e.current=n;if(Ym&&(Ym=!1,Zl=e,yv=o),s=e.pendingLanes,s===0&&(ca=null),$U(n.stateNode),Io(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(vv)throw vv=!1,e=YC,YC=null,e;return yv&1&&e.tag!==0&&qu(),s=e.pendingLanes,s&1?e===QC?fp++:(fp=0,QC=e):fp=0,Ma(),null}function qu(){if(Zl!==null){var e=yA(yv),t=Es.transition,n=dn;try{if(Es.transition=null,dn=16>e?16:e,Zl===null)var r=!1;else{if(e=Zl,Zl=null,yv=0,Xt&6)throw Error(He(331));var o=Xt;for(Xt|=4,lt=e.current;lt!==null;){var s=lt,i=s.child;if(lt.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(lt=u;lt!==null;){var f=lt;switch(f.tag){case 0:case 11:case 15:up(8,f,s)}var p=f.child;if(p!==null)p.return=f,lt=p;else for(;lt!==null;){f=lt;var g=f.sibling,v=f.return;if(_L(f),f===u){lt=null;break}if(g!==null){g.return=v,lt=g;break}lt=v}}}var y=s.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var C=m.sibling;m.sibling=null,m=C}while(m!==null)}}lt=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,lt=i;else e:for(;lt!==null;){if(s=lt,s.flags&2048)switch(s.tag){case 0:case 11:case 15:up(9,s,s.return)}var b=s.sibling;if(b!==null){b.return=s.return,lt=b;break e}lt=s.return}}var w=e.current;for(lt=w;lt!==null;){i=lt;var S=i.child;if(i.subtreeFlags&2064&&S!==null)S.return=i,lt=S;else e:for(i=w;lt!==null;){if(l=lt,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:by(9,l)}}catch(M){Gn(l,l.return,M)}if(l===i){lt=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,lt=k;break e}lt=l.return}}if(Xt=o,Ma(),Pi&&typeof Pi.onPostCommitFiberRoot=="function")try{Pi.onPostCommitFiberRoot(dy,e)}catch(M){}r=!0}return r}finally{dn=n,Es.transition=t}}return!1}function C_(e,t,n){t=ud(n,t),t=bL(e,t,1),e=aa(e,t,1),t=co(),e!==null&&(yh(e,1,t),Io(e,t))}function Gn(e,t,n){if(e.tag===3)C_(e,e,n);else for(;t!==null;){if(t.tag===3){C_(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ca===null||!ca.has(r))){e=ud(n,e),e=wL(t,e,1),t=aa(t,e,1),e=co(),t!==null&&(yh(t,1,e),Io(t,e));break}}t=t.return}}function oG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=co(),e.pingedLanes|=e.suspendedLanes&n,xr===e&&(Ar&n)===n&&(fr===4||fr===3&&(Ar&130023424)===Ar&&500>Jn()-ZS?sc(e,0):XS|=n),Io(e,t)}function zL(e,t){t===0&&(e.mode&1?(t=Bm,Bm<<=1,!(Bm&130023424)&&(Bm=4194304)):t=1);var n=co();e=pl(e,t),e!==null&&(yh(e,t,n),Io(e,n))}function sG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zL(e,n)}function iG(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(He(314))}r!==null&&r.delete(t),zL(e,n)}var VL;VL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Po.current)So=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return So=!1,KW(e,t,n);So=!!(e.flags&131072)}else So=!1,Dn&&t.flags&1048576&&UA(t,cv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tg(e,t),e=t.pendingProps;var o=id(t,Yr.current);Ku(t,n),o=WS(null,t,r,e,o,n);var s=GS();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,ko(r)?(s=!0,lv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zS(t),o.updater=vy,t.stateNode=o,o._reactInternals=t,NC(t,r,e,n),t=VC(null,t,r,!0,s,n)):(t.tag=0,Dn&&s&&OS(t),no(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=aG(r),e=qs(r,e),o){case 0:t=zC(null,t,r,e,n);break e;case 1:t=d_(null,t,r,e,n);break e;case 11:t=c_(null,t,r,e,n);break e;case 14:t=u_(null,t,r,qs(r.type,e),n);break e}throw Error(He(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qs(r,o),zC(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qs(r,o),d_(e,t,r,o,n);case 3:e:{if(PL(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,qA(e,t),fv(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ud(Error(He(423)),t),t=f_(e,t,r,n,o);break e}else if(r!==o){o=ud(Error(He(424)),t),t=f_(e,t,r,n,o);break e}else for(Uo=la(t.stateNode.containerInfo.firstChild),Wo=t,Dn=!0,Xs=null,n=ZA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ld(),r===o){t=hl(e,t,n);break e}no(e,t,r,n)}t=t.child}return t;case 5:return JA(t),e===null&&AC(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,_C(r,o)?i=null:s!==null&&_C(r,s)&&(t.flags|=32),SL(e,t),no(e,t,i,n),t.child;case 6:return e===null&&AC(t),null;case 13:return kL(e,t,n);case 4:return VS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ad(t,null,r,n):no(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qs(r,o),c_(e,t,r,o,n);case 7:return no(e,t,t.pendingProps,n),t.child;case 8:return no(e,t,t.pendingProps.children,n),t.child;case 12:return no(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,xn(uv,r._currentValue),r._currentValue=i,s!==null)if(li(s.value,i)){if(s.children===o.children&&!Po.current){t=hl(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=al(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),LC(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(He(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),LC(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}no(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ku(t,n),o=$s(o),r=r(o),t.flags|=1,no(e,t,r,n),t.child;case 14:return r=t.type,o=qs(r,t.pendingProps),o=qs(r.type,o),u_(e,t,r,o,n);case 15:return CL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qs(r,o),Tg(e,t),t.tag=1,ko(r)?(e=!0,lv(t)):e=!1,Ku(t,n),QA(t,r,o),NC(t,r,o,n),VC(null,t,r,!0,e,n);case 19:return IL(e,t,n);case 22:return xL(e,t,n)}throw Error(He(156,t.tag))};function jL(e,t){return hA(e,t)}function lG(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 Is(e,t,n,r){return new lG(e,t,n,r)}function nP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aG(e){if(typeof e=="function")return nP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===CS)return 11;if(e===xS)return 14}return 2}function da(e,t){var n=e.alternate;return n===null?(n=Is(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 Rg(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")nP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Iu:return ic(n.children,o,s,t);case wS:i=8,o|=8;break;case aC:return e=Is(12,n,t,o|2),e.elementType=aC,e.lanes=s,e;case cC:return e=Is(13,n,t,o),e.elementType=cC,e.lanes=s,e;case uC:return e=Is(19,n,t,o),e.elementType=uC,e.lanes=s,e;case XD:return Cy(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case YD:i=10;break e;case QD:i=9;break e;case CS:i=11;break e;case xS:i=14;break e;case Hl:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=Is(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function ic(e,t,n,r){return e=Is(7,e,r,t),e.lanes=n,e}function Cy(e,t,n,r){return e=Is(22,e,r,t),e.elementType=XD,e.lanes=n,e.stateNode={isHidden:!1},e}function aw(e,t,n){return e=Is(6,e,null,t),e.lanes=n,e}function cw(e,t,n){return t=Is(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cG(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=H1(0),this.expirationTimes=H1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rP(e,t,n,r,o,s,i,l,a){return e=new cG(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Is(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zS(s),e}function uG(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ku,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function HL(e){if(!e)return ya;e=e._reactInternals;e:{if(Dc(e)!==e||e.tag!==1)throw Error(He(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ko(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(He(171))}if(e.tag===1){var n=e.type;if(ko(n))return jA(e,n,t)}return t}function UL(e,t,n,r,o,s,i,l,a){return e=rP(n,r,!0,e,o,s,i,l,a),e.context=HL(null),n=e.current,r=co(),o=ua(n),s=al(r,o),s.callback=t!=null?t:null,aa(n,s,o),e.current.lanes=o,yh(e,o,r),Io(e,r),e}function xy(e,t,n,r){var o=t.current,s=co(),i=ua(o);return n=HL(n),t.context===null?t.context=n:t.pendingContext=n,t=al(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=aa(o,t,i),e!==null&&(oi(e,o,i,s),Ig(e,o,i)),i}function wv(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 x_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function oP(e,t){x_(e,t),(e=e.alternate)&&x_(e,t)}function dG(){return null}var WL=typeof reportError=="function"?reportError:function(e){console.error(e)};function sP(e){this._internalRoot=e}Sy.prototype.render=sP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));xy(e,t,null,null)};Sy.prototype.unmount=sP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bc(function(){xy(null,e,null,null)}),t[fl]=null}};function Sy(e){this._internalRoot=e}Sy.prototype.unstable_scheduleHydration=function(e){if(e){var t=CA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ql.length&&t!==0&&t<ql[n].priority;n++);ql.splice(n,0,e),n===0&&SA(e)}};function iP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Py(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function S_(){}function fG(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=wv(i);s.call(u)}}var i=UL(t,r,e,0,null,!1,!1,"",S_);return e._reactRootContainer=i,e[fl]=i.current,Ap(e.nodeType===8?e.parentNode:e),bc(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=wv(a);l.call(u)}}var a=rP(e,0,!1,null,null,!1,!1,"",S_);return e._reactRootContainer=a,e[fl]=a.current,Ap(e.nodeType===8?e.parentNode:e),bc(function(){xy(t,a,n,r)}),a}function ky(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var a=wv(i);l.call(a)}}xy(t,i,e,o)}else i=fG(n,t,e,o,r);return wv(i)}bA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kf(t.pendingLanes);n!==0&&(kS(t,n|1),Io(t,Jn()),!(Xt&6)&&(dd=Jn()+500,Ma()))}break;case 13:bc(function(){var r=pl(e,1);if(r!==null){var o=co();oi(r,e,1,o)}}),oP(e,1)}};IS=function(e){if(e.tag===13){var t=pl(e,134217728);if(t!==null){var n=co();oi(t,e,134217728,n)}oP(e,134217728)}};wA=function(e){if(e.tag===13){var t=ua(e),n=pl(e,t);if(n!==null){var r=co();oi(n,e,t,r)}oP(e,t)}};CA=function(){return dn};xA=function(e,t){var n=dn;try{return dn=e,t()}finally{dn=n}};wC=function(e,t,n){switch(t){case"input":if(pC(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=my(r);if(!o)throw Error(He(90));JD(r),pC(r,o)}}}break;case"textarea":tA(e,n);break;case"select":t=n.value,t!=null&&Hu(e,!!n.multiple,t,!1)}};aA=JS;cA=bc;var pG={usingClientEntryPoint:!1,Events:[wh,_u,my,iA,lA,JS]},Mf={findFiberByHostInstance:Ja,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hG={bundleType:Mf.bundleType,version:Mf.version,rendererPackageName:Mf.rendererPackageName,rendererConfig:Mf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fA(e),e===null?null:e.stateNode},findFiberByHostInstance:Mf.findFiberByHostInstance||dG,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 Qm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qm.isDisabled&&Qm.supportsFiber)try{dy=Qm.inject(hG),Pi=Qm}catch(e){}}es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pG;es.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!iP(t))throw Error(He(200));return uG(e,t,null,n)};es.createRoot=function(e,t){if(!iP(e))throw Error(He(299));var n=!1,r="",o=WL;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rP(e,1,!1,null,null,n,!1,r,o),e[fl]=t.current,Ap(e.nodeType===8?e.parentNode:e),new sP(t)};es.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(He(188)):(e=Object.keys(e).join(","),Error(He(268,e)));return e=fA(t),e=e===null?null:e.stateNode,e};es.flushSync=function(e){return bc(e)};es.hydrate=function(e,t,n){if(!Py(t))throw Error(He(200));return ky(null,e,t,!0,n)};es.hydrateRoot=function(e,t,n){if(!iP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=WL;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=UL(t,null,e,1,n!=null?n:null,o,!1,s,i),e[fl]=t.current,Ap(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 Sy(t)};es.render=function(e,t,n){if(!Py(t))throw Error(He(200));return ky(null,e,t,!1,n)};es.unmountComponentAtNode=function(e){if(!Py(e))throw Error(He(40));return e._reactRootContainer?(bc(function(){ky(null,null,e,!1,function(){e._reactRootContainer=null,e[fl]=null})}),!0):!1};es.unstable_batchedUpdates=JS;es.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Py(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return ky(e,t,n,!1,r)};es.version="18.2.0-next-9e3b772b8-20220608";function GL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GL)}catch(e){console.error(e)}}GL(),UD.exports=es;var Od=UD.exports;const Xm=Ni(Od);var KL,P_=Od;KL=P_.createRoot,P_.hydrateRoot;const mG="modulepreload",gG=function(e){return"/"+e},k_={},vG=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=gG(s),s in k_)return;k_[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const p=o[f];if(p.href===s&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":mG,i||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),i)return new Promise((f,p)=>{u.addEventListener("load",f),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};var DD;if(!((DD=window.crypto)!=null&&DD.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return rt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const s=(yield vG(()=>import("./sha512-43126276.js").then(i=>i.s),[])).default.arrayBuffer;return s(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
|
|
33
|
+
* @remix-run/router v1.5.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 Up(){return Up=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},Up.apply(this,arguments)}var Jl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jl||(Jl={}));const I_="popstate";function yG(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=Ac(o.location.hash.substr(1));return JC("",{pathname:i,search:l,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let a=o.location.href,u=a.indexOf("#");l=u===-1?a:a.slice(0,u)}return l+"#"+(typeof s=="string"?s:Cv(s))}function r(o,s){Iy(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return wG(t,n,r,e)}function mr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Iy(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function bG(){return Math.random().toString(36).substr(2,8)}function E_(e,t){return{usr:e.state,key:e.key,idx:t}}function JC(e,t,n,r){return n===void 0&&(n=null),Up({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ac(t):t,{state:n,key:t&&t.key||r||bG()})}function Cv(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 Ac(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 wG(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=Jl.Pop,a=null,u=f();u==null&&(u=0,i.replaceState(Up({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=Jl.Pop;let C=f(),b=C==null?null:C-u;u=C,a&&a({action:l,location:m.location,delta:b})}function g(C,b){l=Jl.Push;let w=JC(m.location,C,b);n&&n(w,C),u=f()+1;let S=E_(w,u),k=m.createHref(w);try{i.pushState(S,"",k)}catch(M){o.location.assign(k)}s&&a&&a({action:l,location:m.location,delta:1})}function v(C,b){l=Jl.Replace;let w=JC(m.location,C,b);n&&n(w,C),u=f();let S=E_(w,u),k=m.createHref(w);i.replaceState(S,"",k),s&&a&&a({action:l,location:m.location,delta:0})}function y(C){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof C=="string"?C:Cv(C);return mr(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let m={get action(){return l},get location(){return e(o,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(I_,p),a=C,()=>{o.removeEventListener(I_,p),a=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let b=y(C);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:g,replace:v,go(C){return i.go(C)}};return m}var M_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(M_||(M_={}));function CG(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ac(t):t,o=lP(r.pathname||"/",n);if(o==null)return null;let s=qL(e);xG(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=$G(s[l],DG(o));return i}function qL(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(mr(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=fa([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(mr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),qL(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:TG(u,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of YL(s.path))o(s,i,a)}),t}function YL(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=YL(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function xG(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_G(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const SG=/^:\w+$/,PG=3,kG=2,IG=1,EG=10,MG=-2,T_=e=>e==="*";function TG(e,t){let n=e.split("/"),r=n.length;return n.some(T_)&&(r+=MG),t&&(r+=kG),n.filter(o=>!T_(o)).reduce((o,s)=>o+(SG.test(s)?PG:s===""?IG:EG),r)}function _G(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 $G(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let i=0;i<n.length;++i){let l=n[i],a=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",f=RG({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},u);if(!f)return null;Object.assign(r,f.params);let p=l.route;s.push({params:r,pathname:fa([o,f.pathname]),pathnameBase:NG(fa([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=fa([o,f.pathnameBase]))}return s}function RG(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=OG(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,f,p)=>{if(f==="*"){let g=l[p]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}return u[f]=AG(l[p]||"",f),u},{}),pathname:s,pathnameBase:i,pattern:e}}function OG(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Iy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function DG(e){try{return decodeURI(e)}catch(t){return Iy(!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 AG(e,t){try{return decodeURIComponent(e)}catch(n){return Iy(!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 lP(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 LG(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ac(e):e;return{pathname:n?n.startsWith("/")?n:FG(n,t):t,search:BG(r),hash:zG(o)}}function FG(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 uw(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 QL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function XL(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ac(e):(o=Up({},e),mr(!o.pathname||!o.pathname.includes("?"),uw("?","pathname","search",o)),mr(!o.pathname||!o.pathname.includes("#"),uw("#","pathname","hash",o)),mr(!o.search||!o.search.includes("#"),uw("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let a=LG(o,l),u=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const fa=e=>e.join("/").replace(/\/\/+/g,"/"),NG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ZL=["post","put","patch","delete"];new Set(ZL);const jG=["get",...ZL];new Set(jG);/**
|
|
42
|
+
* React Router v6.10.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 HG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const UG=typeof Object.is=="function"?Object.is:HG,{useState:WG,useEffect:GG,useLayoutEffect:KG,useDebugValue:qG}=hc;function YG(e,t,n){const r=t(),[{inst:o},s]=WG({inst:{value:r,getSnapshot:t}});return KG(()=>{o.value=r,o.getSnapshot=t,dw(o)&&s({inst:o})},[e,r,t]),GG(()=>(dw(o)&&s({inst:o}),e(()=>{dw(o)&&s({inst:o})})),[e]),qG(r),r}function dw(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!UG(n,r)}catch(r){return!0}}function QG(e,t,n){return t()}const XG=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",ZG=!XG,JG=ZG?QG:YG;"useSyncExternalStore"in hc&&(e=>e.useSyncExternalStore)(hc);const JL=c.createContext(null),aP=c.createContext(null),Dd=c.createContext(null),Ey=c.createContext(null),Ad=c.createContext({outlet:null,matches:[]}),eF=c.createContext(null);function ex(){return ex=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},ex.apply(this,arguments)}function eK(e,t){let{relative:n}=t===void 0?{}:t;xh()||mr(!1);let{basename:r,navigator:o}=c.useContext(Dd),{hash:s,pathname:i,search:l}=cP(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:fa([r,i])),o.createHref({pathname:a,search:l,hash:s})}function xh(){return c.useContext(Ey)!=null}function Ld(){return xh()||mr(!1),c.useContext(Ey).location}function tK(){xh()||mr(!1);let{basename:e,navigator:t}=c.useContext(Dd),{matches:n}=c.useContext(Ad),{pathname:r}=Ld(),o=JSON.stringify(QL(n).map(l=>l.pathnameBase)),s=c.useRef(!1);return c.useEffect(()=>{s.current=!0}),c.useCallback(function(l,a){if(a===void 0&&(a={}),!s.current)return;if(typeof l=="number"){t.go(l);return}let u=XL(l,JSON.parse(o),r,a.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:fa([e,u.pathname])),(a.replace?t.replace:t.push)(u,a.state,a)},[e,t,o,r])}function cP(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=c.useContext(Ad),{pathname:o}=Ld(),s=JSON.stringify(QL(r).map(i=>i.pathnameBase));return c.useMemo(()=>XL(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function nK(e,t){xh()||mr(!1);let{navigator:n}=c.useContext(Dd),r=c.useContext(aP),{matches:o}=c.useContext(Ad),s=o[o.length-1],i=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let a=Ld(),u;if(t){var f;let m=typeof t=="string"?Ac(t):t;l==="/"||(f=m.pathname)!=null&&f.startsWith(l)||mr(!1),u=m}else u=a;let p=u.pathname||"/",g=l==="/"?p:p.slice(l.length)||"/",v=CG(e,{pathname:g}),y=iK(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:fa([l,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:fa([l,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,r||void 0);return t&&y?c.createElement(Ey.Provider,{value:{location:ex({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Jl.Pop}},y):y}function rK(){let e=uK(),t=VG(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)"},s=null;return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,s)}class oK extends c.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?c.createElement(Ad.Provider,{value:this.props.routeContext},c.createElement(eF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sK(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(JL);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(Ad.Provider,{value:t},r)}function iK(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 s=r.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));s>=0||mr(!1),r=r.slice(0,Math.min(r.length,s+1))}return r.reduceRight((s,i,l)=>{let a=i.route.id?o==null?void 0:o[i.route.id]:null,u=null;n&&(i.route.ErrorBoundary?u=c.createElement(i.route.ErrorBoundary,null):i.route.errorElement?u=i.route.errorElement:u=c.createElement(rK,null));let f=t.concat(r.slice(0,l+1)),p=()=>{let g=s;return a?g=u:i.route.Component?g=c.createElement(i.route.Component,null):i.route.element&&(g=i.route.element),c.createElement(sK,{match:i,routeContext:{outlet:s,matches:f},children:g})};return n&&(i.route.ErrorBoundary||i.route.errorElement||l===0)?c.createElement(oK,{location:n.location,component:u,error:a,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var __;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(__||(__={}));var xv;(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"})(xv||(xv={}));function lK(e){let t=c.useContext(aP);return t||mr(!1),t}function aK(e){let t=c.useContext(Ad);return t||mr(!1),t}function cK(e){let t=aK(),n=t.matches[t.matches.length-1];return n.route.id||mr(!1),n.route.id}function uK(){var e;let t=c.useContext(eF),n=lK(xv.UseRouteError),r=cK(xv.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function tx(e){mr(!1)}function dK(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jl.Pop,navigator:s,static:i=!1}=e;xh()&&mr(!1);let l=t.replace(/^\/*/,"/"),a=c.useMemo(()=>({basename:l,navigator:s,static:i}),[l,s,i]);typeof r=="string"&&(r=Ac(r));let{pathname:u="/",search:f="",hash:p="",state:g=null,key:v="default"}=r,y=c.useMemo(()=>{let m=lP(u,l);return m==null?null:{location:{pathname:m,search:f,hash:p,state:g,key:v},navigationType:o}},[l,u,f,p,g,v,o]);return y==null?null:c.createElement(Dd.Provider,{value:a},c.createElement(Ey.Provider,{children:n,value:y}))}function fK(e){let{children:t,location:n}=e,r=c.useContext(JL),o=r&&!t?r.router.routes:nx(t);return nK(o,n)}var $_;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})($_||($_={}));new Promise(()=>{});function nx(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let s=[...t,o];if(r.type===c.Fragment){n.push.apply(n,nx(r.props.children,s));return}r.type!==tx&&mr(!1),!r.props.index||!r.props.children||mr(!1);let i={id:r.props.id||s.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&&(i.children=nx(r.props.children,s)),n.push(i)}),n}/**
|
|
51
|
+
* React Router DOM v6.10.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 Sv(){return Sv=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},Sv.apply(this,arguments)}function tF(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function pK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hK(e,t){return e.button===0&&(!t||t==="_self")&&!pK(e)}const mK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],gK=["aria-current","caseSensitive","className","end","style","to","children"];function vK(e){let{basename:t,children:n,window:r}=e,o=c.useRef();o.current==null&&(o.current=yG({window:r,v5Compat:!0}));let s=o.current,[i,l]=c.useState({action:s.action,location:s.location});return c.useLayoutEffect(()=>s.listen(l),[s]),c.createElement(dK,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s})}const yK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",bK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uP=c.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:u,preventScrollReset:f}=t,p=tF(t,mK),{basename:g}=c.useContext(Dd),v,y=!1;if(typeof u=="string"&&bK.test(u)&&(v=u,yK)){let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=lP(S.pathname,g);S.origin===w.origin&&k!=null?u=k+S.search+S.hash:y=!0}let m=eK(u,{relative:o}),C=CK(u,{replace:i,state:l,target:a,preventScrollReset:f,relative:o});function b(w){r&&r(w),w.defaultPrevented||C(w)}return c.createElement("a",Sv({},p,{href:v||m,onClick:y||s?r:b,ref:n,target:a}))}),wK=c.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:a,children:u}=t,f=tF(t,gK),p=cP(a,{relative:f.relative}),g=Ld(),v=c.useContext(aP),{navigator:y}=c.useContext(Dd),m=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=g.pathname,b=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(C=C.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase());let w=C===m||!i&&C.startsWith(m)&&C.charAt(m.length)==="/",S=b!=null&&(b===m||!i&&b.startsWith(m)&&b.charAt(m.length)==="/"),k=w?r:void 0,M;typeof s=="function"?M=s({isActive:w,isPending:S}):M=[s,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let I=typeof l=="function"?l({isActive:w,isPending:S}):l;return c.createElement(uP,Sv({},f,{"aria-current":k,className:M,ref:n,style:I,to:a}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var R_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(R_||(R_={}));var O_;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(O_||(O_={}));function CK(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i}=t===void 0?{}:t,l=tK(),a=Ld(),u=cP(e,{relative:i});return c.useCallback(f=>{if(hK(f,n)){f.preventDefault();let p=r!==void 0?r:Cv(a)===Cv(u);l(e,{replace:p,state:o,preventScrollReset:s,relative:i})}},[a,l,u,r,o,n,e,s,i])}const xK={black:"#000",white:"#fff"},Wp=xK,SK={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"},ou=SK,PK={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"},su=PK,kK={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"},iu=kK,IK={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"},lu=IK,EK={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"},au=EK,MK={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"},Tf=MK,TK={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"},_K=TK;function $K(e,t){return()=>null}function x(){return x=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},x.apply(this,arguments)}function nl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function nF(e){if(!nl(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=nF(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return nl(e)&&nl(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(nl(t[o])&&o in e&&nl(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=nl(t[o])?nF(t[o]):t[o]:r[o]=t[o])}),r}var rF={exports:{}},RK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",OK=RK,DK=OK;function oF(){}function sF(){}sF.resetWarningCache=oF;var AK=function(){function e(r,o,s,i,l,a){if(a!==DK){var u=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 u.name="Invariant Violation",u}}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:sF,resetWarningCache:oF};return n.PropTypes=n,n};rF.exports=AK();var LK=rF.exports;const W=Ni(LK);function ba(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 gn={};/**
|
|
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 dP=Symbol.for("react.element"),fP=Symbol.for("react.portal"),My=Symbol.for("react.fragment"),Ty=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),$y=Symbol.for("react.provider"),Ry=Symbol.for("react.context"),FK=Symbol.for("react.server_context"),Oy=Symbol.for("react.forward_ref"),Dy=Symbol.for("react.suspense"),Ay=Symbol.for("react.suspense_list"),Ly=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),NK=Symbol.for("react.offscreen"),iF;iF=Symbol.for("react.module.reference");function Ns(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dP:switch(e=e.type,e){case My:case _y:case Ty:case Dy:case Ay:return e;default:switch(e=e&&e.$$typeof,e){case FK:case Ry:case Oy:case Fy:case Ly:case $y:return e;default:return t}}case fP:return t}}}gn.ContextConsumer=Ry;gn.ContextProvider=$y;gn.Element=dP;gn.ForwardRef=Oy;gn.Fragment=My;gn.Lazy=Fy;gn.Memo=Ly;gn.Portal=fP;gn.Profiler=_y;gn.StrictMode=Ty;gn.Suspense=Dy;gn.SuspenseList=Ay;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Ns(e)===Ry};gn.isContextProvider=function(e){return Ns(e)===$y};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dP};gn.isForwardRef=function(e){return Ns(e)===Oy};gn.isFragment=function(e){return Ns(e)===My};gn.isLazy=function(e){return Ns(e)===Fy};gn.isMemo=function(e){return Ns(e)===Ly};gn.isPortal=function(e){return Ns(e)===fP};gn.isProfiler=function(e){return Ns(e)===_y};gn.isStrictMode=function(e){return Ns(e)===Ty};gn.isSuspense=function(e){return Ns(e)===Dy};gn.isSuspenseList=function(e){return Ns(e)===Ay};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===My||e===_y||e===Ty||e===Dy||e===Ay||e===NK||typeof e=="object"&&e!==null&&(e.$$typeof===Fy||e.$$typeof===Ly||e.$$typeof===$y||e.$$typeof===Ry||e.$$typeof===Oy||e.$$typeof===iF||e.getModuleId!==void 0)};gn.typeOf=Ns;const BK=W.oneOfType([W.func,W.object]),lF=BK;function xe(e){if(typeof e!="string")throw new Error(ba(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rx(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ta(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function zK(e,t){return()=>null}function pp(e,t){var n,r;return c.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function fn(e){return e&&e.ownerDocument||document}function Yo(e){return fn(e).defaultView||window}function VK(e,t){return()=>null}function Gp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jK=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,Nt=jK;let D_=0;function HK(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect(()=>{t==null&&(D_+=1,n(`mui-${D_}`))},[t]),r}const A_=hc["useId".toString()];function Kt(e){if(A_!==void 0){const t=A_();return e!=null?e:t}return HK(e)}function UK(e,t,n,r,o){return null}function Kr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=c.useRef(e!==void 0),[s,i]=c.useState(t),l=o?e:s,a=c.useCallback(u=>{o||i(u)},[]);return[l,a]}function Ye(e){const t=c.useRef(e);return Nt(()=>{t.current=e}),c.useRef((...n)=>(0,t.current)(...n)).current}function It(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Gp(n,t)})},e)}let Ny=!0,ox=!1,L_;const WK={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 GK(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&WK[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function KK(e){e.metaKey||e.altKey||e.ctrlKey||(Ny=!0)}function fw(){Ny=!1}function qK(){this.visibilityState==="hidden"&&ox&&(Ny=!0)}function YK(e){e.addEventListener("keydown",KK,!0),e.addEventListener("mousedown",fw,!0),e.addEventListener("pointerdown",fw,!0),e.addEventListener("touchstart",fw,!0),e.addEventListener("visibilitychange",qK,!0)}function QK(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Ny||GK(t)}function By(){const e=c.useCallback(o=>{o!=null&&YK(o.ownerDocument)},[]),t=c.useRef(!1);function n(){return t.current?(ox=!0,window.clearTimeout(L_),L_=window.setTimeout(()=>{ox=!1},100),t.current=!1,!0):!1}function r(o){return QK(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function aF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let cu;function cF(){if(cu)return cu;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),cu="reverse",e.scrollLeft>0?cu="default":(e.scrollLeft=1,e.scrollLeft===0&&(cu="negative")),document.body.removeChild(e),cu}function XK(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(cF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const ZK=e=>{const t=c.useRef({});return c.useEffect(()=>{t.current=e}),t.current},pP=ZK;function hP(e,t){const n=x({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=x({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=x({},s),Object.keys(o).forEach(i=>{n[r][i]=hP(o[i],s[i])}))}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((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const F_=e=>e,JK=()=>{let e=F_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=F_}}},eq=JK(),mP=eq,tq={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ke(e,t,n="Mui"){const r=tq[t];return r?`${n}-${r}`:`${mP.generate(e)}-${t}`}function We(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}const wc="$$material";function oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function uF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nq=/^((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)-.*))$/,rq=uF(function(e){return nq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function oq(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 sq(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 iq=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),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(sq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=oq(o);try{s.insertRule(r,s.cssRules.length)}catch(i){}}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}(),jr="-ms-",Pv="-moz-",tn="-webkit-",dF="comm",gP="rule",vP="decl",lq="@import",fF="@keyframes",aq="@layer",cq=Math.abs,zy=String.fromCharCode,uq=Object.assign;function dq(e,t){return Or(e,0)^45?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}function pF(e){return e.trim()}function fq(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function sx(e,t){return e.indexOf(t)}function Or(e,t){return e.charCodeAt(t)|0}function Kp(e,t,n){return e.slice(t,n)}function bi(e){return e.length}function yP(e){return e.length}function Zm(e,t){return t.push(e),e}function pq(e,t){return e.map(t).join("")}var Vy=1,fd=1,hF=0,To=0,ir=0,Fd="";function jy(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Vy,column:fd,length:i,return:""}}function _f(e,t){return uq(jy("",null,null,"",null,null,0),e,{length:-e.length},t)}function hq(){return ir}function mq(){return ir=To>0?Or(Fd,--To):0,fd--,ir===10&&(fd=1,Vy--),ir}function Go(){return ir=To<hF?Or(Fd,To++):0,fd++,ir===10&&(fd=1,Vy++),ir}function Ii(){return Or(Fd,To)}function Og(){return To}function Sh(e,t){return Kp(Fd,e,t)}function qp(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 mF(e){return Vy=fd=1,hF=bi(Fd=e),To=0,[]}function gF(e){return Fd="",e}function Dg(e){return pF(Sh(To-1,ix(e===91?e+2:e===40?e+1:e)))}function gq(e){for(;(ir=Ii())&&ir<33;)Go();return qp(e)>2||qp(ir)>3?"":" "}function vq(e,t){for(;--t&&Go()&&!(ir<48||ir>102||ir>57&&ir<65||ir>70&&ir<97););return Sh(e,Og()+(t<6&&Ii()==32&&Go()==32))}function ix(e){for(;Go();)switch(ir){case e:return To;case 34:case 39:e!==34&&e!==39&&ix(ir);break;case 40:e===41&&ix(e);break;case 92:Go();break}return To}function yq(e,t){for(;Go()&&e+ir!==47+10;)if(e+ir===42+42&&Ii()===47)break;return"/*"+Sh(t,To-1)+"*"+zy(e===47?e:Go())}function bq(e){for(;!qp(Ii());)Go();return Sh(e,To)}function wq(e){return gF(Ag("",null,null,null,[""],e=mF(e),0,[0],e))}function Ag(e,t,n,r,o,s,i,l,a){for(var u=0,f=0,p=i,g=0,v=0,y=0,m=1,C=1,b=1,w=0,S="",k=o,M=s,I=r,E=S;C;)switch(y=w,w=Go()){case 40:if(y!=108&&Or(E,p-1)==58){sx(E+=nn(Dg(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Dg(w);break;case 9:case 10:case 13:case 32:E+=gq(y);break;case 92:E+=vq(Og()-1,7);continue;case 47:switch(Ii()){case 42:case 47:Zm(Cq(yq(Go(),Og()),t,n),a);break;default:E+="/"}break;case 123*m:l[u++]=bi(E)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+f:b==-1&&(E=nn(E,/\f/g,"")),v>0&&bi(E)-p&&Zm(v>32?B_(E+";",r,n,p-1):B_(nn(E," ","")+";",r,n,p-2),a);break;case 59:E+=";";default:if(Zm(I=N_(E,t,n,u,f,o,l,S,k=[],M=[],p),s),w===123)if(f===0)Ag(E,t,I,I,k,s,p,l,M);else switch(g===99&&Or(E,3)===110?100:g){case 100:case 108:case 109:case 115:Ag(e,I,I,r&&Zm(N_(e,I,I,0,0,o,l,S,o,k=[],p),M),o,M,p,l,r?k:M);break;default:Ag(E,I,I,I,[""],M,0,l,M)}}u=f=v=0,m=b=1,S=E="",p=i;break;case 58:p=1+bi(E),v=y;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&mq()==125)continue}switch(E+=zy(w),w*m){case 38:b=f>0?1:(E+="\f",-1);break;case 44:l[u++]=(bi(E)-1)*b,b=1;break;case 64:Ii()===45&&(E+=Dg(Go())),g=Ii(),f=p=bi(S=E+=bq(Og())),w++;break;case 45:y===45&&bi(E)==2&&(m=0)}}return s}function N_(e,t,n,r,o,s,i,l,a,u,f){for(var p=o-1,g=o===0?s:[""],v=yP(g),y=0,m=0,C=0;y<r;++y)for(var b=0,w=Kp(e,p+1,p=cq(m=i[y])),S=e;b<v;++b)(S=pF(m>0?g[b]+" "+w:nn(w,/&\f/g,g[b])))&&(a[C++]=S);return jy(e,t,n,o===0?gP:l,a,u,f)}function Cq(e,t,n){return jy(e,t,n,dF,zy(hq()),Kp(e,2,-2),0)}function B_(e,t,n,r){return jy(e,t,n,vP,Kp(e,0,r),Kp(e,r+1,-1),r)}function Yu(e,t){for(var n="",r=yP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xq(e,t,n,r){switch(e.type){case aq:if(e.children.length)break;case lq:case vP:return e.return=e.return||e.value;case dF:return"";case fF:return e.return=e.value+"{"+Yu(e.children,r)+"}";case gP:e.value=e.props.join(",")}return bi(n=Yu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sq(e){var t=yP(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function Pq(e){return function(t){t.root||(t=t.return)&&e(t)}}var kq=function(t,n,r){for(var o=0,s=0;o=s,s=Ii(),o===38&&s===12&&(n[r]=1),!qp(s);)Go();return Sh(t,To)},Iq=function(t,n){var r=-1,o=44;do switch(qp(o)){case 0:o===38&&Ii()===12&&(n[r]=1),t[r]+=kq(To-1,n,r);break;case 2:t[r]+=Dg(o);break;case 4:if(o===44){t[++r]=Ii()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zy(o)}while(o=Go());return t},Eq=function(t,n){return gF(Iq(mF(t),n))},z_=new WeakMap,Mq=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&&!z_.get(r))&&!o){z_.set(t,!0);for(var s=[],i=Eq(n,s),l=r.props,a=0,u=0;a<i.length;a++)for(var f=0;f<l.length;f++,u++)t.props[u]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},Tq=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function vF(e,t){switch(dq(e,t)){case 5103:return tn+"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 tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tn+e+Pv+e+jr+e+e;case 6828:case 4268:return tn+e+jr+e+e;case 6165:return tn+e+jr+"flex-"+e+e;case 5187:return tn+e+nn(e,/(\w+).+(:[^]+)/,tn+"box-$1$2"+jr+"flex-$1$2")+e;case 5443:return tn+e+jr+"flex-item-"+nn(e,/flex-|-self/,"")+e;case 4675:return tn+e+jr+"flex-line-pack"+nn(e,/align-content|flex-|-self/,"")+e;case 5548:return tn+e+jr+nn(e,"shrink","negative")+e;case 5292:return tn+e+jr+nn(e,"basis","preferred-size")+e;case 6060:return tn+"box-"+nn(e,"-grow","")+tn+e+jr+nn(e,"grow","positive")+e;case 4554:return tn+nn(e,/([^-])(transform)/g,"$1"+tn+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,tn+"$1"),/(image-set)/,tn+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,tn+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,tn+"box-pack:$3"+jr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tn+e+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,tn+"$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(bi(e)-1-t>6)switch(Or(e,t+1)){case 109:if(Or(e,t+4)!==45)break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+tn+"$2-$3$1"+Pv+(Or(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sx(e,"stretch")?vF(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Or(e,t+1)!==115)break;case 6444:switch(Or(e,bi(e)-3-(~sx(e,"!important")&&10))){case 107:return nn(e,":",":"+tn)+e;case 101:return nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tn+(Or(e,14)===45?"inline-":"")+"box$3$1"+tn+"$2$3$1"+jr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return tn+e+jr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tn+e+jr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tn+e+jr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tn+e+jr+e+e}return e}var _q=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case vP:t.return=vF(t.value,t.length);break;case fF:return Yu([_f(t,{value:nn(t.value,"@","@"+tn)})],o);case gP:if(t.length)return pq(t.props,function(s){switch(fq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yu([_f(t,{props:[nn(s,/:(read-\w+)/,":"+Pv+"$1")]})],o);case"::placeholder":return Yu([_f(t,{props:[nn(s,/:(plac\w+)/,":"+tn+"input-$1")]}),_f(t,{props:[nn(s,/:(plac\w+)/,":"+Pv+"$1")]}),_f(t,{props:[nn(s,/:(plac\w+)/,jr+"input-$1")]})],o)}return""})}},$q=[_q],Rq=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(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||$q,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),b=1;b<C.length;b++)s[C[b]]=!0;l.push(m)});var a,u=[Mq,Tq];{var f,p=[xq,Pq(function(m){f.insert(m)})],g=Sq(u.concat(o,p)),v=function(C){return Yu(wq(C),g)};a=function(C,b,w,S){f=w,v(C?C+"{"+b.styles+"}":b.styles),S&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new iq({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return y.sheet.hydrate(l),y},yF={exports:{}},pn={};/** @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 kr=typeof Symbol=="function"&&Symbol.for,bP=kr?Symbol.for("react.element"):60103,wP=kr?Symbol.for("react.portal"):60106,Hy=kr?Symbol.for("react.fragment"):60107,Uy=kr?Symbol.for("react.strict_mode"):60108,Wy=kr?Symbol.for("react.profiler"):60114,Gy=kr?Symbol.for("react.provider"):60109,Ky=kr?Symbol.for("react.context"):60110,CP=kr?Symbol.for("react.async_mode"):60111,qy=kr?Symbol.for("react.concurrent_mode"):60111,Yy=kr?Symbol.for("react.forward_ref"):60112,Qy=kr?Symbol.for("react.suspense"):60113,Oq=kr?Symbol.for("react.suspense_list"):60120,Xy=kr?Symbol.for("react.memo"):60115,Zy=kr?Symbol.for("react.lazy"):60116,Dq=kr?Symbol.for("react.block"):60121,Aq=kr?Symbol.for("react.fundamental"):60117,Lq=kr?Symbol.for("react.responder"):60118,Fq=kr?Symbol.for("react.scope"):60119;function ns(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bP:switch(e=e.type,e){case CP:case qy:case Hy:case Wy:case Uy:case Qy:return e;default:switch(e=e&&e.$$typeof,e){case Ky:case Yy:case Zy:case Xy:case Gy:return e;default:return t}}case wP:return t}}}function bF(e){return ns(e)===qy}pn.AsyncMode=CP;pn.ConcurrentMode=qy;pn.ContextConsumer=Ky;pn.ContextProvider=Gy;pn.Element=bP;pn.ForwardRef=Yy;pn.Fragment=Hy;pn.Lazy=Zy;pn.Memo=Xy;pn.Portal=wP;pn.Profiler=Wy;pn.StrictMode=Uy;pn.Suspense=Qy;pn.isAsyncMode=function(e){return bF(e)||ns(e)===CP};pn.isConcurrentMode=bF;pn.isContextConsumer=function(e){return ns(e)===Ky};pn.isContextProvider=function(e){return ns(e)===Gy};pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bP};pn.isForwardRef=function(e){return ns(e)===Yy};pn.isFragment=function(e){return ns(e)===Hy};pn.isLazy=function(e){return ns(e)===Zy};pn.isMemo=function(e){return ns(e)===Xy};pn.isPortal=function(e){return ns(e)===wP};pn.isProfiler=function(e){return ns(e)===Wy};pn.isStrictMode=function(e){return ns(e)===Uy};pn.isSuspense=function(e){return ns(e)===Qy};pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hy||e===qy||e===Wy||e===Uy||e===Qy||e===Oq||typeof e=="object"&&e!==null&&(e.$$typeof===Zy||e.$$typeof===Xy||e.$$typeof===Gy||e.$$typeof===Ky||e.$$typeof===Yy||e.$$typeof===Aq||e.$$typeof===Lq||e.$$typeof===Fq||e.$$typeof===Dq)};pn.typeOf=ns;yF.exports=pn;var Nq=yF.exports,wF=Nq,Bq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},CF={};CF[wF.ForwardRef]=Bq;CF[wF.Memo]=zq;var Vq=!0;function jq(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var xF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Vq===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},SF=function(t,n,r){xF(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Hq(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 Uq={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},Wq=/[A-Z]|^ms/g,Gq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PF=function(t){return t.charCodeAt(1)===45},V_=function(t){return t!=null&&typeof t!="boolean"},pw=uF(function(e){return PF(e)?e:e.replace(Wq,"-$&").toLowerCase()}),j_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Gq,function(r,o,s){return wi={name:o,styles:s,next:wi},o})}return Uq[t]!==1&&!PF(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yp(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 wi={name:n.name,styles:n.styles,next:wi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)wi={name:r.name,styles:r.styles,next:wi},r=r.next;var o=n.styles+";";return o}return Kq(e,t,n)}case"function":{if(e!==void 0){var s=wi,i=n(e);return wi=s,Yp(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Kq(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Yp(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":V_(i)&&(r+=pw(s)+":"+j_(s,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)V_(i[l])&&(r+=pw(s)+":"+j_(s,i[l])+";");else{var a=Yp(e,t,i);switch(s){case"animation":case"animationName":{r+=pw(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var H_=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wi,xP=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,s="";wi=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=Yp(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=Yp(r,n,t[l]),o&&(s+=i[l]);H_.lastIndex=0;for(var a="",u;(u=H_.exec(s))!==null;)a+="-"+u[1];var f=Hq(s)+a;return{name:f,styles:s,next:wi}},qq=function(t){return t()},kF=hc["useInsertionEffect"]?hc["useInsertionEffect"]:!1,Yq=kF||qq,U_=kF||c.useLayoutEffect,IF=c.createContext(typeof HTMLElement!="undefined"?Rq({key:"css"}):null);IF.Provider;var EF=function(t){return c.forwardRef(function(n,r){var o=c.useContext(IF);return t(n,o,r)})},Jy=c.createContext({}),Qq=EF(function(e,t){var n=e.styles,r=xP([n],void 0,c.useContext(Jy)),o=c.useRef();return U_(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",s),i.hydrate([a])),o.current=[i,l],function(){i.flush()}},[t]),U_(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&SF(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function wa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xP(t)}var Bi=function(){var t=wa.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_"}}},Xq=rq,Zq=function(t){return t!=="theme"},W_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Xq:Zq},G_=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Jq=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return xF(n,r,o),Yq(function(){return SF(n,r,o)}),null},eY=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var l=G_(t,n,r),a=l||W_(o),u=!a("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var g=f.length,v=1;v<g;v++)p.push(f[v],f[0][v])}var y=EF(function(m,C,b){var w=u&&m.as||o,S="",k=[],M=m;if(m.theme==null){M={};for(var I in m)M[I]=m[I];M.theme=c.useContext(Jy)}typeof m.className=="string"?S=jq(C.registered,k,m.className):m.className!=null&&(S=m.className+" ");var E=xP(p.concat(k),C.registered,M);S+=C.key+"-"+E.name,i!==void 0&&(S+=" "+i);var T=u&&l===void 0?W_(w):a,L={};for(var O in m)u&&O==="as"||T(O)&&(L[O]=m[O]);return L.className=S,L.ref=b,c.createElement(c.Fragment,null,c.createElement(Jq,{cache:C,serialized:E,isStringTag:typeof w=="string"}),c.createElement(w,L))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=p,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(m,C){return e(m,x({},n,C,{shouldForwardProp:G_(y,C,!0)})).apply(void 0,p)},y}},tY=["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"],lx=eY.bind();tY.forEach(function(e){lx[e]=lx(e)});var hw={exports:{}},$f={};/**
|
|
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 K_;function nY(){if(K_)return $f;K_=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,a,u){var f,p={},g=null,v=null;u!==void 0&&(g=""+u),a.key!==void 0&&(g=""+a.key),a.ref!==void 0&&(v=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(p[f]=a[f]);if(l&&l.defaultProps)for(f in a=l.defaultProps,a)p[f]===void 0&&(p[f]=a[f]);return{$$typeof:t,type:l,key:g,ref:v,props:p,_owner:o.current}}return $f.Fragment=n,$f.jsx=i,$f.jsxs=i,$f}var q_;function Ze(){return q_||(q_=1,hw.exports=nY()),hw.exports}var $=Ze();function rY(e){return e==null||Object.keys(e).length===0}function oY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(rY(o)?n:o):t;return $.jsx(Qq,{styles:r})}/**
|
|
83
|
+
* @mui/styled-engine v5.14.19
|
|
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 MF(e,t){return lx(e,t)}const sY=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iY=["values","unit","step"],lY=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)=>x({},n,{[r.key]:r.val}),{})};function aY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oe(e,iY),s=lY(t),i=Object.keys(s);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function a(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function u(g,v){const y=i.indexOf(v);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:v)-r/100}${n})`}function f(g){return i.indexOf(g)+1<i.length?u(g,i[i.indexOf(g)+1]):l(g)}function p(g){const v=i.indexOf(g);return v===0?l(i[1]):v===i.length-1?a(i[v]):u(g,i[i.indexOf(g)+1]).replace("@media","@media not all and")}return x({keys:i,values:s,up:l,down:a,between:u,only:f,not:p,unit:n},o)}const cY={borderRadius:4},uY=cY;function hp(e,t){return t?Gr(e,t,{clone:!1}):e}const SP={xs:0,sm:600,md:900,lg:1200,xl:1536},Y_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${SP[e]}px)`};function _o(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Y_;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Y_;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||SP).indexOf(l)!==-1){const a=s.up(l);i[a]=n(t[l],l)}else{const a=l;i[a]=t[a]}return i},{})}return n(t)}function TF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function _F(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function dY(e,...t){const n=TF(e),r=[n,...t].reduce((o,s)=>Gr(o,s),{});return _F(Object.keys(n),r)}function fY(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function lc({values:e,breakpoints:t,base:n}){const r=n||fY(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((i,l,a)=>(Array.isArray(e)?(i[l]=e[a]!=null?e[a]:e[s],s=a):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function pd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function kv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=pd(e,n)||r,t&&(o=t(o,r,e)),o}function nr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],a=i.theme,u=pd(a,r)||{};return _o(i,l,p=>{let g=kv(u,o,p);return p===g&&typeof p=="string"&&(g=kv(u,o,`${t}${p==="default"?"":xe(p)}`,p)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function pY(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hY={m:"margin",p:"padding"},mY={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Q_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gY=pY(e=>{if(e.length>2)if(Q_[e])e=Q_[e];else return[e];const[t,n]=e.split(""),r=hY[t],o=mY[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),PP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...PP,...kP];function Ph(e,t,n,r){var o;const s=(o=pd(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function IP(e){return Ph(e,"spacing",8)}function Cc(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 vY(e,t){return n=>e.reduce((r,o)=>(r[o]=Cc(t,n),r),{})}function yY(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gY(n),s=vY(o,r),i=e[n];return _o(e,i,s)}function $F(e,t){const n=IP(e.theme);return Object.keys(e).map(r=>yY(e,t,r,n)).reduce(hp,{})}function Hn(e){return $F(e,PP)}Hn.propTypes={};Hn.filterProps=PP;function Un(e){return $F(e,kP)}Un.propTypes={};Un.filterProps=kP;function bY(e=8){if(e.mui)return e;const t=IP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function eb(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?hp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ks(e){return typeof e!="number"?e:`${e}px solid`}function Bs(e,t){return nr({prop:e,themeKey:"borders",transform:t})}const wY=Bs("border",ks),CY=Bs("borderTop",ks),xY=Bs("borderRight",ks),SY=Bs("borderBottom",ks),PY=Bs("borderLeft",ks),kY=Bs("borderColor"),IY=Bs("borderTopColor"),EY=Bs("borderRightColor"),MY=Bs("borderBottomColor"),TY=Bs("borderLeftColor"),_Y=Bs("outline",ks),$Y=Bs("outlineColor"),tb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ph(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Cc(t,r)});return _o(e,e.borderRadius,n)}return null};tb.propTypes={};tb.filterProps=["borderRadius"];eb(wY,CY,xY,SY,PY,kY,IY,EY,MY,TY,tb,_Y,$Y);const nb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ph(e.theme,"spacing",8),n=r=>({gap:Cc(t,r)});return _o(e,e.gap,n)}return null};nb.propTypes={};nb.filterProps=["gap"];const rb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ph(e.theme,"spacing",8),n=r=>({columnGap:Cc(t,r)});return _o(e,e.columnGap,n)}return null};rb.propTypes={};rb.filterProps=["columnGap"];const ob=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ph(e.theme,"spacing",8),n=r=>({rowGap:Cc(t,r)});return _o(e,e.rowGap,n)}return null};ob.propTypes={};ob.filterProps=["rowGap"];const RY=nr({prop:"gridColumn"}),OY=nr({prop:"gridRow"}),DY=nr({prop:"gridAutoFlow"}),AY=nr({prop:"gridAutoColumns"}),LY=nr({prop:"gridAutoRows"}),FY=nr({prop:"gridTemplateColumns"}),NY=nr({prop:"gridTemplateRows"}),BY=nr({prop:"gridTemplateAreas"}),zY=nr({prop:"gridArea"});eb(nb,rb,ob,RY,OY,DY,AY,LY,FY,NY,BY,zY);function Qu(e,t){return t==="grey"?t:e}const VY=nr({prop:"color",themeKey:"palette",transform:Qu}),jY=nr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qu}),HY=nr({prop:"backgroundColor",themeKey:"palette",transform:Qu});eb(VY,jY,HY);function jo(e){return e<=1&&e!==0?`${e*100}%`:e}const UY=nr({prop:"width",transform:jo}),EP=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||SP[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:jo(n)}};return _o(e,e.maxWidth,t)}return null};EP.filterProps=["maxWidth"];const WY=nr({prop:"minWidth",transform:jo}),GY=nr({prop:"height",transform:jo}),KY=nr({prop:"maxHeight",transform:jo}),qY=nr({prop:"minHeight",transform:jo});nr({prop:"size",cssProperty:"width",transform:jo});nr({prop:"size",cssProperty:"height",transform:jo});const YY=nr({prop:"boxSizing"});eb(UY,EP,WY,GY,KY,qY,YY);const QY={border:{themeKey:"borders",transform:ks},borderTop:{themeKey:"borders",transform:ks},borderRight:{themeKey:"borders",transform:ks},borderBottom:{themeKey:"borders",transform:ks},borderLeft:{themeKey:"borders",transform:ks},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ks},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tb},color:{themeKey:"palette",transform:Qu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qu},backgroundColor:{themeKey:"palette",transform:Qu},p:{style:Un},pt:{style:Un},pr:{style:Un},pb:{style:Un},pl:{style:Un},px:{style:Un},py:{style:Un},padding:{style:Un},paddingTop:{style:Un},paddingRight:{style:Un},paddingBottom:{style:Un},paddingLeft:{style:Un},paddingX:{style:Un},paddingY:{style:Un},paddingInline:{style:Un},paddingInlineStart:{style:Un},paddingInlineEnd:{style:Un},paddingBlock:{style:Un},paddingBlockStart:{style:Un},paddingBlockEnd:{style:Un},m:{style:Hn},mt:{style:Hn},mr:{style:Hn},mb:{style:Hn},ml:{style:Hn},mx:{style:Hn},my:{style:Hn},margin:{style:Hn},marginTop:{style:Hn},marginRight:{style:Hn},marginBottom:{style:Hn},marginLeft:{style:Hn},marginX:{style:Hn},marginY:{style:Hn},marginInline:{style:Hn},marginInlineStart:{style:Hn},marginInlineEnd:{style:Hn},marginBlock:{style:Hn},marginBlockStart:{style:Hn},marginBlockEnd:{style:Hn},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:nb},rowGap:{style:ob},columnGap:{style:rb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jo},maxWidth:{style:EP},minWidth:{transform:jo},height:{transform:jo},maxHeight:{transform:jo},minHeight:{transform:jo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},sb=QY;function XY(...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 ZY(e,t){return typeof e=="function"?e(t):e}function JY(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:f,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const g=pd(o,u)||{};return p?p(i):_o(i,r,y=>{let m=kv(g,f,y);return y===m&&typeof y=="string"&&(m=kv(g,f,`${n}${y==="default"?"":xe(y)}`,y)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:sb;function l(a){let u=a;if(typeof a=="function")u=a(s);else if(typeof a!="object")return a;if(!u)return null;const f=TF(s.breakpoints),p=Object.keys(f);let g=f;return Object.keys(u).forEach(v=>{const y=ZY(u[v],s);if(y!=null)if(typeof y=="object")if(i[v])g=hp(g,e(v,y,s,i));else{const m=_o({theme:s},y,C=>({[v]:C}));XY(m,y)?g[v]=t({sx:y,theme:s}):g=hp(g,m)}else g=hp(g,e(v,y,s,i))}),_F(p,g)}return Array.isArray(o)?o.map(l):l(o)}return t}const RF=JY();RF.filterProps=["sx"];const ib=RF,eQ=["breakpoints","palette","spacing","shape"];function lb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=oe(e,eQ),l=aY(n),a=bY(o);let u=Gr({breakpoints:l,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:a,shape:x({},uY,s)},i);return u=t.reduce((f,p)=>Gr(f,p),u),u.unstable_sxConfig=x({},sb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return ib({sx:p,theme:this})},u}function tQ(e){return Object.keys(e).length===0}function ab(e=null){const t=c.useContext(Jy);return!t||tQ(t)?e:t}const nQ=lb();function Nd(e=nQ){return ab(e)}function rQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Nd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return $.jsx(oY,{styles:o})}const oQ=["sx"],sQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:sb;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function cb(e){const{sx:t}=e,n=oe(e,oQ),{systemProps:r,otherProps:o}=sQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return nl(l)?x({},r,l):r}:s=x({},r,t),x({},o,{sx:s})}function OF(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=OF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ye(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=OF(e))&&(r&&(r+=" "),r+=t);return r}const iQ=["className","component"];function lQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=MF("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(ib);return c.forwardRef(function(a,u){const f=Nd(n),p=cb(a),{className:g,component:v="div"}=p,y=oe(p,iQ);return $.jsx(s,x({as:v,ref:u,className:ye(g,o?o(r):r),theme:t&&f[t]||f},y))})}const aQ=["variant"];function X_(e){return e.length===0}function DF(e){const{variant:t}=e,n=oe(e,aQ);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=X_(r)?e[o]:xe(e[o]):r+=`${X_(r)?o:xe(o)}${xe(e[o].toString())}`}),r}const cQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function uQ(e){return Object.keys(e).length===0}function dQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const fQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Iv=e=>{const t={};return e&&e.forEach(n=>{const r=DF(n.props);t[r]=n.style}),t},pQ=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Iv(n)},Ev=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(s=>{let i=!0;Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(i=!1)}),i&&o.push(t[DF(s.props)])}),o},hQ=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Ev(e,t,s)};function mp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mQ=lb(),gQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lg({defaultTheme:e,theme:t,themeId:n}){return uQ(t)?e:t[n]||t}function vQ(e){return e?(t,n)=>n[e]:null}const Z_=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(x({},t,{theme:Lg(x({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=Ev(t,Iv(s),s);return[o,...i]}return o};function AF(e={}){const{themeId:t,defaultTheme:n=mQ,rootShouldForwardProp:r=mp,slotShouldForwardProp:o=mp}=e,s=i=>ib(x({},i,{theme:Lg(x({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{sY(i,k=>k.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:g=vQ(gQ(u))}=l,v=oe(l,cQ),y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,m=p||!1;let C,b=mp;u==="Root"||u==="root"?b=r:u?b=o:dQ(i)&&(b=void 0);const w=MF(i,x({shouldForwardProp:b,label:C},v)),S=(k,...M)=>{const I=M?M.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return R=>Z_({styledArg:O,props:R,defaultTheme:n,themeId:t});if(nl(O)){let R=O,V;return O&&O.variants&&(V=O.variants,delete R.variants,R=j=>{let _=O;return Ev(j,Iv(V),V).forEach(F=>{_=Gr(_,F)}),_}),R}return O}):[];let E=k;if(nl(k)){let O;k&&k.variants&&(O=k.variants,delete E.variants,E=R=>{let V=k;return Ev(R,Iv(O),O).forEach(_=>{V=Gr(V,_)}),V})}else typeof k=="function"&&k.__emotion_real!==k&&(E=O=>Z_({styledArg:k,props:O,defaultTheme:n,themeId:t}));a&&g&&I.push(O=>{const R=Lg(x({},O,{defaultTheme:n,themeId:t})),V=fQ(a,R);if(V){const j={};return Object.entries(V).forEach(([_,A])=>{j[_]=typeof A=="function"?A(x({},O,{theme:R})):A}),g(O,j)}return null}),a&&!y&&I.push(O=>{const R=Lg(x({},O,{defaultTheme:n,themeId:t}));return hQ(O,pQ(a,R),R,a)}),m||I.push(s);const T=I.length-M.length;if(Array.isArray(k)&&T>0){const O=new Array(T).fill("");E=[...k,...O],E.raw=[...k.raw,...O]}const L=w(E,...I);return i.muiName&&(L.muiName=i.muiName),L};return w.withConfig&&(S.withConfig=w.withConfig),S}}const yQ=AF(),Ir=yQ;function LF(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:hP(t.components[n].defaultProps,r)}function FF({props:e,name:t,defaultTheme:n,themeId:r}){let o=Nd(n);return r&&(o=o[r]||o),LF({theme:o,name:t,props:e})}function MP(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function bQ(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 xc(e){if(e.type)return e;if(e.charAt(0)==="#")return xc(bQ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ba(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(ba(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function ub(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<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 wQ(e){e=xc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(u,f=(u+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const a=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),ub({type:l,values:a})}function J_(e){e=xc(e);let t=e.type==="hsl"||e.type==="hsla"?xc(wQ(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ms((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function CQ(e,t){const n=J_(e),r=J_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function it(e,t){return e=xc(e),t=MP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ub(e)}function Sc(e,t){if(e=xc(e),t=MP(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 ub(e)}function Pc(e,t){if(e=xc(e),t=MP(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 ub(e)}const xQ=c.createContext(null),NF=xQ;function BF(){return c.useContext(NF)}const SQ=typeof Symbol=="function"&&Symbol.for,PQ=SQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function kQ(e,t){return typeof t=="function"?t(e):x({},e,t)}function IQ(e){const{children:t,theme:n}=e,r=BF(),o=c.useMemo(()=>{const s=r===null?n:kQ(r,n);return s!=null&&(s[PQ]=r!==null),s},[n,r]);return $.jsx(NF.Provider,{value:o,children:t})}const e$={};function t$(e,t,n,r=!1){return c.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?x({},t,{[e]:s}):s;return r?()=>i:i}return e?x({},t,{[e]:n}):x({},t,n)},[e,t,n,r])}function EQ(e){const{children:t,theme:n,themeId:r}=e,o=ab(e$),s=BF()||e$,i=t$(r,o,n),l=t$(r,s,n,!0);return $.jsx(IQ,{theme:l,children:$.jsx(Jy.Provider,{value:i,children:t})})}const MQ=["component","direction","spacing","divider","children","className","useFlexGap"],TQ=lb(),_Q=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $Q(e){return FF({props:e,name:"MuiStack",defaultTheme:TQ})}function RQ(e,t){const n=c.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(c.cloneElement(t,{key:`separator-${s}`})),r),[])}const OQ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],DQ=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},_o({theme:t},lc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=IP(t),o=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),s=lc({values:e.direction,base:o}),i=lc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((a,u,f)=>{if(!s[a]){const g=u>0?s[f[u-1]]:"column";s[a]=g}}),n=Gr(n,_o({theme:t},i,(a,u)=>e.useFlexGap?{gap:Cc(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${OQ(u?s[u]:e.direction)}`]:Cc(r,a)}}))}return n=dY(t.breakpoints,n),n};function AQ(e={}){const{createStyledComponent:t=_Q,useThemeProps:n=$Q,componentName:r="MuiStack"}=e,o=()=>_e({root:["root"]},a=>Ke(r,a),{}),s=t(DQ);return c.forwardRef(function(a,u){const f=n(a),p=cb(f),{component:g="div",direction:v="column",spacing:y=0,divider:m,children:C,className:b,useFlexGap:w=!1}=p,S=oe(p,MQ),k={direction:v,spacing:y,useFlexGap:w},M=o();return $.jsx(s,x({as:g,ownerState:k,ref:u,className:ye(M.root,b)},S,{children:m?RQ(C,m):C}))})}function LQ(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const FQ=["mode","contrastThreshold","tonalOffset"],n$={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:Wp.white,default:Wp.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}},mw={text:{primary:Wp.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:Wp.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 r$(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Pc(e.main,o):t==="dark"&&(e.dark=Sc(e.main,s)))}function NQ(e="light"){return e==="dark"?{main:iu[200],light:iu[50],dark:iu[400]}:{main:iu[700],light:iu[400],dark:iu[800]}}function BQ(e="light"){return e==="dark"?{main:su[200],light:su[50],dark:su[400]}:{main:su[500],light:su[300],dark:su[700]}}function zQ(e="light"){return e==="dark"?{main:ou[500],light:ou[300],dark:ou[700]}:{main:ou[700],light:ou[400],dark:ou[800]}}function VQ(e="light"){return e==="dark"?{main:lu[400],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[500],dark:lu[900]}}function jQ(e="light"){return e==="dark"?{main:au[400],light:au[300],dark:au[700]}:{main:au[800],light:au[500],dark:au[900]}}function HQ(e="light"){return e==="dark"?{main:Tf[400],light:Tf[300],dark:Tf[700]}:{main:"#ed6c02",light:Tf[500],dark:Tf[900]}}function UQ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oe(e,FQ),s=e.primary||NQ(t),i=e.secondary||BQ(t),l=e.error||zQ(t),a=e.info||VQ(t),u=e.success||jQ(t),f=e.warning||HQ(t);function p(m){return CQ(m,mw.text.primary)>=n?mw.text.primary:n$.text.primary}const g=({color:m,name:C,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(m=x({},m),!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(ba(11,C?` (${C})`:"",b));if(typeof m.main!="string")throw new Error(ba(12,C?` (${C})`:"",JSON.stringify(m.main)));return r$(m,"light",w,r),r$(m,"dark",S,r),m.contrastText||(m.contrastText=p(m.main)),m},v={dark:mw,light:n$};return Gr(x({common:x({},Wp),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:a,name:"info"}),success:g({color:u,name:"success"}),grey:_K,contrastThreshold:n,getContrastText:p,augmentColor:g,tonalOffset:r},v[t]),o)}const WQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function GQ(e){return Math.round(e*1e5)/1e5}const o$={textTransform:"uppercase"},s$='"Roboto", "Helvetica", "Arial", sans-serif';function KQ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=s$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:f,pxToRem:p}=n,g=oe(n,WQ),v=o/14,y=p||(b=>`${b/u*v}rem`),m=(b,w,S,k,M)=>x({fontFamily:r,fontWeight:b,fontSize:y(w),lineHeight:S},r===s$?{letterSpacing:`${GQ(k/w)}em`}:{},M,f),C={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,o$),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,o$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(x({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),g,{clone:!1})}const qQ=.2,YQ=.14,QQ=.12;function On(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qQ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YQ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${QQ})`].join(",")}const XQ=["none",On(0,2,1,-1,0,1,1,0,0,1,3,0),On(0,3,1,-2,0,2,2,0,0,1,5,0),On(0,3,3,-2,0,3,4,0,0,1,8,0),On(0,2,4,-1,0,4,5,0,0,1,10,0),On(0,3,5,-1,0,5,8,0,0,1,14,0),On(0,3,5,-1,0,6,10,0,0,1,18,0),On(0,4,5,-2,0,7,10,1,0,2,16,1),On(0,5,5,-3,0,8,10,1,0,3,14,2),On(0,5,6,-3,0,9,12,1,0,3,16,2),On(0,6,6,-3,0,10,14,1,0,4,18,3),On(0,6,7,-4,0,11,15,1,0,4,20,3),On(0,7,8,-4,0,12,17,2,0,5,22,4),On(0,7,8,-4,0,13,19,2,0,5,24,4),On(0,7,9,-4,0,14,21,2,0,5,26,4),On(0,8,9,-5,0,15,22,2,0,6,28,5),On(0,8,10,-5,0,16,24,2,0,6,30,5),On(0,8,11,-5,0,17,26,2,0,6,32,5),On(0,9,11,-5,0,18,28,2,0,7,34,6),On(0,9,12,-6,0,19,29,2,0,7,36,6),On(0,10,13,-6,0,20,31,3,0,8,38,7),On(0,10,13,-6,0,21,33,3,0,8,40,7),On(0,10,14,-6,0,22,35,3,0,8,42,7),On(0,11,14,-7,0,23,36,3,0,9,44,8),On(0,11,15,-7,0,24,38,3,0,9,46,8)],ZQ=XQ,JQ=["duration","easing","delay"],eX={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)"},zF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i$(e){return`${Math.round(e)}ms`}function tX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ms(t,.25)+t/5)*10)}function nX(e){const t=x({},eX,e.easing),n=x({},zF,e.duration);return x({getAutoHeightDuration:tX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return oe(s,JQ),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:i$(i)} ${l} ${typeof a=="string"?a:i$(a)}`).join(",")}},e,{easing:t,duration:n})}const rX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},oX=rX,sX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function TP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=oe(e,sX);if(e.vars)throw new Error(ba(18));const l=UQ(r),a=lb(e);let u=Gr(a,{mixins:LQ(a.breakpoints,n),palette:l,shadows:ZQ.slice(),typography:KQ(l,s),transitions:nX(o),zIndex:x({},oX)});return u=Gr(u,i),u=t.reduce((f,p)=>Gr(f,p),u),u.unstable_sxConfig=x({},sb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return ib({sx:p,theme:this})},u}function iX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lX(e){return parseFloat(e)}const aX=TP(),db=aX;function yn(){const e=Nd(db);return e[wc]||e}function je({props:e,name:t}){return FF({props:e,name:t,defaultTheme:db,themeId:wc})}const Qr=e=>mp(e)&&e!=="classes",cX=mp,uX=AF({themeId:wc,defaultTheme:db,rootShouldForwardProp:Qr}),te=uX,dX=["theme"];function fX(e){let{theme:t}=e,n=oe(e,dX);const r=t[wc];return $.jsx(EQ,x({},n,{themeId:r?wc:void 0,theme:r||t}))}const pX=e=>{let t;return e<1?t=5.11916*ms(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},l$=pX;function hX(e){return Ke("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mX=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gX=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(n)}`]};return _e(o,hX,r)},vX=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${xe(n.color)}`],t[`fontSize${xe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,a,u,f,p,g,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),VF=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24"}=r,v=oe(r,mX),y=c.isValidElement(o)&&o.type==="svg",m=x({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:y}),C={};f||(C.viewBox=g);const b=gX(m);return $.jsxs(vX,x({as:l,className:ye(b.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},C,v,y&&o.props,{ownerState:m,children:[y?o.props.children:o,p?$.jsx("title",{children:p}):null]}))});VF.muiName="SvgIcon";const a$=VF;function bt(e,t){function n(r,o){return $.jsx(a$,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=a$.muiName,c.memo(c.forwardRef(n))}const yX={configure:e=>{mP.configure(e)}},bX=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:rx,createSvgIcon:bt,debounce:Ta,deprecatedPropType:zK,isMuiElement:pp,ownerDocument:fn,ownerWindow:Yo,requirePropFactory:VK,setRef:Gp,unstable_ClassNameGenerator:yX,unstable_useEnhancedEffect:Nt,unstable_useId:Kt,unsupportedProp:UK,useControlled:Kr,useEventCallback:Ye,useForkRef:It,useIsFocusVisible:By},Symbol.toStringTag,{value:"Module"}));function ax(e,t){return ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ax(e,t)}function fb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ax(e,t)}function wX(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function CX(e,t){e.classList?e.classList.add(t):wX(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function c$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function xX(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=c$(e.className,t):e.setAttribute("class",c$(e.className&&e.className.baseVal||"",t))}const u$={disabled:!1},Mv=lo.createContext(null);var jF=function(t){return t.scrollTop},Yf="unmounted",Qa="exited",Xa="entering",bu="entered",cx="exiting",wl=function(e){fb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,a;return s.appearStatus=null,r.in?l?(a=Qa,s.appearStatus=Xa):a=bu:r.unmountOnExit||r.mountOnEnter?a=Yf:a=Qa,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===Yf?{status:Qa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Xa&&i!==bu&&(s=Xa):(i===Xa||i===bu)&&(s=cx)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Xa){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Xm.findDOMNode(this);i&&jF(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qa&&this.setState({status:Yf})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[Xm.findDOMNode(this),l],u=a[0],f=a[1],p=this.getTimeouts(),g=l?p.appear:p.enter;if(!o&&!i||u$.disabled){this.safeSetState({status:bu},function(){s.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Xa},function(){s.props.onEntering(u,f),s.onTransitionEnd(g,function(){s.safeSetState({status:bu},function(){s.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:Xm.findDOMNode(this);if(!s||u$.disabled){this.safeSetState({status:Qa},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:cx},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Qa},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Xm.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=a[0],f=a[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yf)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=oe(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lo.createElement(Mv.Provider,{value:null},typeof i=="function"?i(o,l):lo.cloneElement(lo.Children.only(i),l))},t}(lo.Component);wl.contextType=Mv;wl.propTypes={};function uu(){}wl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uu,onEntering:uu,onEntered:uu,onExit:uu,onExiting:uu,onExited:uu};wl.UNMOUNTED=Yf;wl.EXITED=Qa;wl.ENTERING=Xa;wl.ENTERED=bu;wl.EXITING=cx;const kh=wl;var SX=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return CX(t,r)})},gw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return xX(t,r)})},_P=function(e){fb(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,a)},r.onEntering=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],g=p?"appear":"enter";r.addClass(f,g,"active"),r.props.onEntering&&r.props.onEntering(l,a)},r.onEntered=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],g=p?"appear":"enter";r.removeClasses(f,g),r.addClass(f,g,"done"),r.props.onEntered&&r.props.onEntered(l,a)},r.onExit=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var a=r.resolveArguments(l),u=a[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,a){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,a]},r.getClassNames=function(l){var a=r.props.classNames,u=typeof a=="string",f=u&&a?a+"-":"",p=u?""+f+l:a[l],g=u?p+"-active":a[l+"Active"],v=u?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:g,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(o,s,i){var l=this.getClassNames(s)[i+"ClassName"],a=this.getClassNames("enter"),u=a.doneClassName;s==="appear"&&i==="done"&&u&&(l+=" "+u),i==="active"&&o&&jF(o),l&&(this.appliedClasses[s][i]=l,SX(o,l))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],l=i.base,a=i.active,u=i.done;this.appliedClasses[s]={},l&&gw(o,l),a&&gw(o,a),u&&gw(o,u)},n.render=function(){var o=this.props;o.classNames;var s=oe(o,["classNames"]);return lo.createElement(kh,x({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(lo.Component);_P.defaultProps={classNames:""};_P.propTypes={};const PX=_P;function ux(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $P(e,t){var n=function(s){return t&&c.isValidElement(s)?t(s):s},r=Object.create(null);return e&&c.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function kX(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,l={};for(var a in t){if(r[a])for(i=0;i<r[a].length;i++){var u=r[a][i];l[r[a][i]]=n(u)}l[a]=n(a)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function nc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IX(e,t){return $P(e.children,function(n){return c.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:nc(n,"appear",e),enter:nc(n,"enter",e),exit:nc(n,"exit",e)})})}function EX(e,t,n){var r=$P(e.children),o=kX(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(c.isValidElement(i)){var l=s in t,a=s in r,u=t[s],f=c.isValidElement(u)&&!u.props.in;a&&(!l||f)?o[s]=c.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:nc(i,"exit",e),enter:nc(i,"enter",e)}):!a&&l&&!f?o[s]=c.cloneElement(i,{in:!1}):a&&l&&c.isValidElement(u)&&(o[s]=c.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:nc(i,"exit",e),enter:nc(i,"enter",e)}))}}),o}var MX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},TX={component:"div",childFactory:function(t){return t}},RP=function(e){fb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(ux(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}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,s){var i=s.children,l=s.handleExited,a=s.firstRender;return{children:a?IX(o,l):EX(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=$P(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var a=x({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,l=oe(o,["component","childFactory"]),a=this.state.contextValue,u=MX(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?lo.createElement(Mv.Provider,{value:a},u):lo.createElement(Mv.Provider,{value:a},lo.createElement(s,l,u))},t}(lo.Component);RP.propTypes={};RP.defaultProps=TX;const OP=RP,DP=e=>e.scrollTop;function Ca(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}function _X(e){return Ke("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const $X=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],RX=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return _e(r,_X,n)},OX=te("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})=>x({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&x({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),DX=te("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),AX=te("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),HF=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:l="0px",component:a,easing:u,in:f,onEnter:p,onEntered:g,onEntering:v,onExit:y,onExited:m,onExiting:C,orientation:b="vertical",style:w,timeout:S=zF.standard,TransitionComponent:k=kh}=r,M=oe(r,$X),I=x({},r,{orientation:b,collapsedSize:l}),E=RX(I),T=yn(),L=c.useRef(),O=c.useRef(null),R=c.useRef(),V=typeof l=="number"?`${l}px`:l,j=b==="horizontal",_=j?"width":"height";c.useEffect(()=>()=>{clearTimeout(L.current)},[]);const A=c.useRef(null),F=It(n,A),z=J=>ne=>{if(J){const fe=A.current;ne===void 0?J(fe):J(fe,ne)}},D=()=>O.current?O.current[j?"clientWidth":"clientHeight"]:0,N=z((J,ne)=>{O.current&&j&&(O.current.style.position="absolute"),J.style[_]=V,p&&p(J,ne)}),H=z((J,ne)=>{const fe=D();O.current&&j&&(O.current.style.position="");const{duration:we,easing:Ce}=Ca({style:w,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const ae=T.transitions.getAutoHeightDuration(fe);J.style.transitionDuration=`${ae}ms`,R.current=ae}else J.style.transitionDuration=typeof we=="string"?we:`${we}ms`;J.style[_]=`${fe}px`,J.style.transitionTimingFunction=Ce,v&&v(J,ne)}),K=z((J,ne)=>{J.style[_]="auto",g&&g(J,ne)}),Y=z(J=>{J.style[_]=`${D()}px`,y&&y(J)}),Z=z(m),Q=z(J=>{const ne=D(),{duration:fe,easing:we}=Ca({style:w,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Ce=T.transitions.getAutoHeightDuration(ne);J.style.transitionDuration=`${Ce}ms`,R.current=Ce}else J.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;J.style[_]=V,J.style.transitionTimingFunction=we,C&&C(J)}),X=J=>{S==="auto"&&(L.current=setTimeout(J,R.current||0)),o&&o(A.current,J)};return $.jsx(k,x({in:f,onEnter:N,onEntered:K,onEntering:H,onExit:Y,onExited:Z,onExiting:Q,addEndListener:X,nodeRef:A,timeout:S==="auto"?null:S},M,{children:(J,ne)=>$.jsx(OX,x({as:a,className:ye(E.root,i,{entered:E.entered,exited:!f&&V==="0px"&&E.hidden}[J]),style:x({[j?"minWidth":"minHeight"]:V},w),ownerState:x({},I,{state:J}),ref:F},ne,{children:$.jsx(DX,{ownerState:x({},I,{state:J}),className:E.wrapper,ref:O,children:$.jsx(AX,{ownerState:x({},I,{state:J}),className:E.wrapperInner,children:s})})}))}))});HF.muiSupportAuto=!0;const Tv=HF;function LX(e){return Ke("MuiPaper",e)}We("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 FX=["className","component","elevation","square","variant"],NX=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _e(s,LX,o)},BX=te("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 x({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"&&x({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${it("#fff",l$(t.elevation))}, ${it("#fff",l$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zX=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:a="elevation"}=r,u=oe(r,FX),f=x({},r,{component:s,elevation:i,square:l,variant:a}),p=NX(f);return $.jsx(BX,x({as:s,ownerState:f,className:ye(p.root,o),ref:n},u))}),zs=zX;function VX(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:u}=e,[f,p]=c.useState(!1),g=ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},y=ye(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),c.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,u);return()=>{clearTimeout(m)}}},[a,l,u]),$.jsx("span",{className:g,style:v,children:$.jsx("span",{className:y})})}const jX=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ws=jX,HX=["center","classes","className"];let pb=e=>e,d$,f$,p$,h$;const dx=550,UX=80,WX=Bi(d$||(d$=pb`
|
|
89
|
+
0% {
|
|
90
|
+
transform: scale(0);
|
|
91
|
+
opacity: 0.1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
transform: scale(1);
|
|
96
|
+
opacity: 0.3;
|
|
97
|
+
}
|
|
98
|
+
`)),GX=Bi(f$||(f$=pb`
|
|
99
|
+
0% {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
100% {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
`)),KX=Bi(p$||(p$=pb`
|
|
107
|
+
0% {
|
|
108
|
+
transform: scale(1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
50% {
|
|
112
|
+
transform: scale(0.92);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
100% {
|
|
116
|
+
transform: scale(1);
|
|
117
|
+
}
|
|
118
|
+
`)),qX=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YX=te(VX,{name:"MuiTouchRipple",slot:"Ripple"})(h$||(h$=pb`
|
|
119
|
+
opacity: 0;
|
|
120
|
+
position: absolute;
|
|
121
|
+
|
|
122
|
+
&.${0} {
|
|
123
|
+
opacity: 0.3;
|
|
124
|
+
transform: scale(1);
|
|
125
|
+
animation-name: ${0};
|
|
126
|
+
animation-duration: ${0}ms;
|
|
127
|
+
animation-timing-function: ${0};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.${0} {
|
|
131
|
+
animation-duration: ${0}ms;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& .${0} {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
display: block;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
border-radius: 50%;
|
|
140
|
+
background-color: currentColor;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
& .${0} {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
animation-name: ${0};
|
|
146
|
+
animation-duration: ${0}ms;
|
|
147
|
+
animation-timing-function: ${0};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
& .${0} {
|
|
151
|
+
position: absolute;
|
|
152
|
+
/* @noflip */
|
|
153
|
+
left: 0px;
|
|
154
|
+
top: 0;
|
|
155
|
+
animation-name: ${0};
|
|
156
|
+
animation-duration: 2500ms;
|
|
157
|
+
animation-timing-function: ${0};
|
|
158
|
+
animation-iteration-count: infinite;
|
|
159
|
+
animation-delay: 200ms;
|
|
160
|
+
}
|
|
161
|
+
`),ws.rippleVisible,WX,dx,({theme:e})=>e.transitions.easing.easeInOut,ws.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ws.child,ws.childLeaving,GX,dx,({theme:e})=>e.transitions.easing.easeInOut,ws.childPulsate,KX,({theme:e})=>e.transitions.easing.easeInOut),QX=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=oe(r,HX),[a,u]=c.useState([]),f=c.useRef(0),p=c.useRef(null);c.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const g=c.useRef(!1),v=c.useRef(0),y=c.useRef(null),m=c.useRef(null);c.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const C=c.useCallback(k=>{const{pulsate:M,rippleX:I,rippleY:E,rippleSize:T,cb:L}=k;u(O=>[...O,$.jsx(YX,{classes:{ripple:ye(s.ripple,ws.ripple),rippleVisible:ye(s.rippleVisible,ws.rippleVisible),ripplePulsate:ye(s.ripplePulsate,ws.ripplePulsate),child:ye(s.child,ws.child),childLeaving:ye(s.childLeaving,ws.childLeaving),childPulsate:ye(s.childPulsate,ws.childPulsate)},timeout:dx,pulsate:M,rippleX:I,rippleY:E,rippleSize:T},f.current)]),f.current+=1,p.current=L},[s]),b=c.useCallback((k={},M={},I=()=>{})=>{const{pulsate:E=!1,center:T=o||M.pulsate,fakeElement:L=!1}=M;if((k==null?void 0:k.type)==="mousedown"&&g.current){g.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(g.current=!0);const O=L?null:m.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,j,_;if(T||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)V=Math.round(R.width/2),j=Math.round(R.height/2);else{const{clientX:A,clientY:F}=k.touches&&k.touches.length>0?k.touches[0]:k;V=Math.round(A-R.left),j=Math.round(F-R.top)}if(T)_=Math.sqrt((2*ms(R.width,2)+ms(R.height,2))/3),_%2===0&&(_+=1);else{const A=Math.max(Math.abs((O?O.clientWidth:0)-V),V)*2+2,F=Math.max(Math.abs((O?O.clientHeight:0)-j),j)*2+2;_=Math.sqrt(ms(A,2)+ms(F,2))}k!=null&&k.touches?y.current===null&&(y.current=()=>{C({pulsate:E,rippleX:V,rippleY:j,rippleSize:_,cb:I})},v.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},UX)):C({pulsate:E,rippleX:V,rippleY:j,rippleSize:_,cb:I})},[o,C]),w=c.useCallback(()=>{b({},{pulsate:!0})},[b]),S=c.useCallback((k,M)=>{if(clearTimeout(v.current),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,v.current=setTimeout(()=>{S(k,M)});return}y.current=null,u(I=>I.length>0?I.slice(1):I),p.current=M},[]);return c.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),$.jsx(qX,x({className:ye(ws.root,s.root,i),ref:m},l,{children:$.jsx(OP,{component:null,exit:!0,children:a})}))}),XX=QX;function ZX(e){return Ke("MuiButtonBase",e)}const JX=We("MuiButtonBase",["root","disabled","focusVisible"]),eZ=JX,tZ=["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"],nZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=_e({root:["root",t&&"disabled",n&&"focusVisible"]},ZX,o);return n&&r&&(i.root+=` ${r}`),i},rZ=te("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"},[`&.${eZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:l,component:a="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:y,onClick:m,onContextMenu:C,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:M,onMouseDown:I,onMouseLeave:E,onMouseUp:T,onTouchEnd:L,onTouchMove:O,onTouchStart:R,tabIndex:V=0,TouchRippleProps:j,touchRippleRef:_,type:A}=r,F=oe(r,tZ),z=c.useRef(null),D=c.useRef(null),N=It(D,_),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:Z}=By(),[Q,X]=c.useState(!1);u&&Q&&X(!1),c.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),z.current.focus()}}),[]);const[J,ne]=c.useState(!1);c.useEffect(()=>{ne(!0)},[]);const fe=J&&!f&&!u;c.useEffect(()=>{Q&&g&&!f&&J&&D.current.pulsate()},[f,g,Q,J]);function we(Le,pt,Zt=p){return Ye(Pt=>(pt&&pt(Pt),!Zt&&D.current&&D.current[Le](Pt),!0))}const Ce=we("start",I),ae=we("stop",C),be=we("stop",b),de=we("stop",T),ke=we("stop",Le=>{Q&&Le.preventDefault(),E&&E(Le)}),Ie=we("start",R),le=we("stop",L),Ee=we("stop",O),me=we("stop",Le=>{Y(Le),H.current===!1&&X(!1),y&&y(Le)},!1),Me=Ye(Le=>{z.current||(z.current=Le.currentTarget),K(Le),H.current===!0&&(X(!0),S&&S(Le)),w&&w(Le)}),ue=()=>{const Le=z.current;return a&&a!=="button"&&!(Le.tagName==="A"&&Le.href)},ce=c.useRef(!1),ie=Ye(Le=>{g&&!ce.current&&Q&&D.current&&Le.key===" "&&(ce.current=!0,D.current.stop(Le,()=>{D.current.start(Le)})),Le.target===Le.currentTarget&&ue()&&Le.key===" "&&Le.preventDefault(),k&&k(Le),Le.target===Le.currentTarget&&ue()&&Le.key==="Enter"&&!u&&(Le.preventDefault(),m&&m(Le))}),ge=Ye(Le=>{g&&Le.key===" "&&D.current&&Q&&!Le.defaultPrevented&&(ce.current=!1,D.current.stop(Le,()=>{D.current.pulsate(Le)})),M&&M(Le),m&&Le.target===Le.currentTarget&&ue()&&Le.key===" "&&!Le.defaultPrevented&&m(Le)});let Te=a;Te==="button"&&(F.href||F.to)&&(Te=v);const Ne={};Te==="button"?(Ne.type=A===void 0?"button":A,Ne.disabled=u):(!F.href&&!F.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const Ge=It(n,Z,z),Ve=x({},r,{centerRipple:s,component:a,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:V,focusVisible:Q}),Ue=nZ(Ve);return $.jsxs(rZ,x({as:Te,className:ye(Ue.root,l),ownerState:Ve,onBlur:me,onClick:m,onContextMenu:ae,onFocus:Me,onKeyDown:ie,onKeyUp:ge,onMouseDown:Ce,onMouseLeave:ke,onMouseUp:de,onDragLeave:be,onTouchEnd:le,onTouchMove:Ee,onTouchStart:Ie,ref:Ge,tabIndex:u?-1:V,type:A},Ne,F,{children:[i,fe?$.jsx(XX,x({ref:N,center:s},j)):null]}))}),ai=oZ;function sZ(e){return Ke("MuiAlert",e)}const iZ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),m$=iZ;function lZ(e){return Ke("MuiIconButton",e)}const aZ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cZ=aZ,uZ=["edge","children","className","color","disabled","disableFocusRipple","size"],dZ=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${xe(r)}`,o&&`edge${xe(o)}`,`size${xe(s)}`]};return _e(i,lZ,t)},fZ=te(ai,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${xe(n.color)}`],n.edge&&t[`edge${xe(n.edge)}`],t[`size${xe(n.size)}`]]}})(({theme:e,ownerState:t})=>x({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})`:it(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 x({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&x({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":x({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(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)},{[`&.${cZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:f="medium"}=r,p=oe(r,uZ),g=x({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:f}),v=dZ(g);return $.jsx(fZ,x({className:ye(v.root,i),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:g},p,{children:s}))}),pr=pZ,hZ=bt($.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"),mZ=bt($.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gZ=bt($.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"),vZ=bt($.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"),UF=bt($.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"),yZ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],bZ=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`${t}${xe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return _e(s,sZ,o)},wZ=te(zs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Sc:Pc,r=e.palette.mode==="light"?Pc:Sc,o=t.color||t.severity;return x({},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),[`& .${m$.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}`,[`& .${m$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&x({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)}))}),CZ=te("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xZ=te("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),g$=te("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),v$={success:$.jsx(hZ,{fontSize:"inherit"}),warning:$.jsx(mZ,{fontSize:"inherit"}),error:$.jsx(gZ,{fontSize:"inherit"}),info:$.jsx(vZ,{fontSize:"inherit"})},SZ=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiAlert"}),{action:f,children:p,className:g,closeText:v="Close",color:y,components:m={},componentsProps:C={},icon:b,iconMapping:w=v$,onClose:S,role:k="alert",severity:M="success",slotProps:I={},slots:E={},variant:T="standard"}=u,L=oe(u,yZ),O=x({},u,{color:y,severity:M,variant:T}),R=bZ(O),V=(r=(o=E.closeButton)!=null?o:m.CloseButton)!=null?r:pr,j=(s=(i=E.closeIcon)!=null?i:m.CloseIcon)!=null?s:UF,_=(l=I.closeButton)!=null?l:C.closeButton,A=(a=I.closeIcon)!=null?a:C.closeIcon;return $.jsxs(wZ,x({role:k,elevation:0,ownerState:O,className:ye(R.root,g),ref:n},L,{children:[b!==!1?$.jsx(CZ,{ownerState:O,className:R.icon,children:b||w[M]||v$[M]}):null,$.jsx(xZ,{ownerState:O,className:R.message,children:p}),f!=null?$.jsx(g$,{ownerState:O,className:R.action,children:f}):null,f==null&&S?$.jsx(g$,{ownerState:O,className:R.action,children:$.jsx(V,x({size:"small","aria-label":v,title:v,color:"inherit",onClick:S},_,{children:$.jsx(j,x({fontSize:"small"},A))}))}):null]}))}),Pr=SZ;function PZ(e){return Ke("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kZ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],IZ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,l={root:["root",s,e.align!=="inherit"&&`align${xe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return _e(l,PZ,i)},EZ=te("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${xe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&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})),y$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},MZ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},TZ=e=>MZ[e]||e,_Z=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTypography"}),o=TZ(r.color),s=cb(x({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:v=y$}=s,y=oe(s,kZ),m=x({},s,{align:i,color:o,className:l,component:a,gutterBottom:u,noWrap:f,paragraph:p,variant:g,variantMapping:v}),C=a||(p?"p":v[g]||y$[g])||"span",b=IZ(m);return $.jsx(EZ,x({as:C,ref:n,ownerState:m,className:ye(b.root,l)},y))}),Kn=_Z;function $Z(e){return Ke("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const RZ=["className","color","enableColorOnDark","position"],OZ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${xe(t)}`,`position${xe(n)}`]};return _e(o,$Z,r)},Jm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,DZ=te(zs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xe(n.position)}`],t[`color${xe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return x({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&&x({},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"&&x({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&x({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Jm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Jm(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:Jm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Jm(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"}))}),AZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:l="fixed"}=r,a=oe(r,RZ),u=x({},r,{color:s,position:l,enableColorOnDark:i}),f=OZ(u);return $.jsx(DZ,x({square:!0,component:"header",ownerState:u,elevation:4,className:ye(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),LZ=AZ;function kc(e){return typeof e=="string"}function Qf(e,t,n){return e===void 0||kc(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}const FZ={disableDefaultClasses:!1},NZ=c.createContext(FZ);function BZ(e){const{disableDefaultClasses:t}=c.useContext(NZ);return n=>t?"":e(n)}function WF(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 hb(e,t,n){return typeof e=="function"?e(t,n):e}function b$(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 zZ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=ye(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),y=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=x({},n,o,r);return v.length>0&&(m.className=v),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=WF(x({},o,r)),l=b$(r),a=b$(o),u=t(i),f=ye(u==null?void 0:u.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=x({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=x({},u,n,a,l);return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:u.ref}}const VZ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=oe(e,VZ),l=s?{}:hb(r,o),{props:a,internalRef:u}=zZ(x({},i,{externalSlotProps:l})),f=It(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Qf(n,x({},a,{ref:f}),o)}function jZ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=pP({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:l,max:a=r}=i?s:e,u=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:i,max:a,displayValue:u}}function w$(e){return e.substring(2).toLowerCase()}function HZ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function GF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,i=c.useRef(!1),l=c.useRef(null),a=c.useRef(!1),u=c.useRef(!1);c.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const f=It(t.ref,l),p=Ye(y=>{const m=u.current;u.current=!1;const C=fn(l.current);if(!a.current||!l.current||"clientX"in y&&HZ(y,C))return;if(i.current){i.current=!1;return}let b;y.composedPath?b=y.composedPath().indexOf(l.current)>-1:b=!C.documentElement.contains(y.target)||l.current.contains(y.target),!b&&(n||!m)&&o(y)}),g=y=>m=>{u.current=!0;const C=t.props[y];C&&C(m)},v={ref:f};return s!==!1&&(v[s]=g(s)),c.useEffect(()=>{if(s!==!1){const y=w$(s),m=fn(l.current),C=()=>{i.current=!0};return m.addEventListener(y,p),m.addEventListener("touchmove",C),()=>{m.removeEventListener(y,p),m.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(v[r]=g(r)),c.useEffect(()=>{if(r!==!1){const y=w$(r),m=fn(l.current);return m.addEventListener(y,p),()=>{m.removeEventListener(y,p)}}},[p,r]),$.jsx(c.Fragment,{children:c.cloneElement(t,v)})}const UZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function WZ(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 GZ(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 KZ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||GZ(e))}function qZ(e){const t=[],n=[];return Array.from(e.querySelectorAll(UZ)).forEach((r,o)=>{const s=WZ(r);s===-1||!KZ(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 YZ(){return!0}function AP(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=qZ,isEnabled:i=YZ,open:l}=e,a=c.useRef(!1),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),g=c.useRef(null),v=c.useRef(!1),y=c.useRef(null),m=It(t.ref,y),C=c.useRef(null);c.useEffect(()=>{!l||!y.current||(v.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!y.current)return;const S=fn(y.current);return y.current.contains(S.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),v.current&&y.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[l]),c.useEffect(()=>{if(!l||!y.current)return;const S=fn(y.current),k=E=>{C.current=E,!(r||!i()||E.key!=="Tab")&&S.activeElement===y.current&&E.shiftKey&&(a.current=!0,f.current&&f.current.focus())},M=()=>{const E=y.current;if(E===null)return;if(!S.hasFocus()||!i()||a.current){a.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!v.current)return;let T=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(T=s(y.current)),T.length>0){var L,O;const R=!!((L=C.current)!=null&&L.shiftKey&&((O=C.current)==null?void 0:O.key)==="Tab"),V=T[0],j=T[T.length-1];typeof V!="string"&&typeof j!="string"&&(R?j.focus():V.focus())}else E.focus()};S.addEventListener("focusin",M),S.addEventListener("keydown",k,!0);const I=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(I),S.removeEventListener("focusin",M),S.removeEventListener("keydown",k,!0)}},[n,r,o,i,l,s]);const b=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0,g.current=S.target;const k=t.props.onFocus;k&&k(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0};return $.jsxs(c.Fragment,{children:[$.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:m,onFocus:b}),$.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}var Eo="top",Os="bottom",Ds="right",Mo="left",LP="auto",Ih=[Eo,Os,Ds,Mo],hd="start",Qp="end",QZ="clippingParents",KF="viewport",Rf="popper",XZ="reference",C$=Ih.reduce(function(e,t){return e.concat([t+"-"+hd,t+"-"+Qp])},[]),qF=[].concat(Ih,[LP]).reduce(function(e,t){return e.concat([t,t+"-"+hd,t+"-"+Qp])},[]),ZZ="beforeRead",JZ="read",eJ="afterRead",tJ="beforeMain",nJ="main",rJ="afterMain",oJ="beforeWrite",sJ="write",iJ="afterWrite",lJ=[ZZ,JZ,eJ,tJ,nJ,rJ,oJ,sJ,iJ];function Di(e){return e?(e.nodeName||"").toLowerCase():null}function Qo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ic(e){var t=Qo(e).Element;return e instanceof t||e instanceof Element}function Ms(e){var t=Qo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function FP(e){if(typeof ShadowRoot=="undefined")return!1;var t=Qo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aJ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Ms(s)||!Di(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function cJ(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],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(a,u){return a[u]="",a},{});!Ms(o)||!Di(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const uJ={name:"applyStyles",enabled:!0,phase:"write",fn:aJ,effect:cJ,requires:["computeStyles"]};function Ei(e){return e.split("-")[0]}var ac=Math.max,_v=Math.min,md=Math.round;function fx(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function YF(){return!/^((?!chrome|android).)*safari/i.test(fx())}function gd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Ms(e)&&(o=e.offsetWidth>0&&md(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&md(r.height)/e.offsetHeight||1);var i=Ic(e)?Qo(e):window,l=i.visualViewport,a=!YF()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,g=r.height/s;return{width:p,height:g,top:f,right:u+p,bottom:f+g,left:u,x:u,y:f}}function NP(e){var t=gd(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 QF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&FP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ml(e){return Qo(e).getComputedStyle(e)}function dJ(e){return["table","td","th"].indexOf(Di(e))>=0}function _a(e){return((Ic(e)?e.ownerDocument:e.document)||window.document).documentElement}function mb(e){return Di(e)==="html"?e:e.assignedSlot||e.parentNode||(FP(e)?e.host:null)||_a(e)}function x$(e){return!Ms(e)||ml(e).position==="fixed"?null:e.offsetParent}function fJ(e){var t=/firefox/i.test(fx()),n=/Trident/i.test(fx());if(n&&Ms(e)){var r=ml(e);if(r.position==="fixed")return null}var o=mb(e);for(FP(o)&&(o=o.host);Ms(o)&&["html","body"].indexOf(Di(o))<0;){var s=ml(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Eh(e){for(var t=Qo(e),n=x$(e);n&&dJ(n)&&ml(n).position==="static";)n=x$(n);return n&&(Di(n)==="html"||Di(n)==="body"&&ml(n).position==="static")?t:n||fJ(e)||t}function BP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gp(e,t,n){return ac(e,_v(t,n))}function pJ(e,t,n){var r=gp(e,t,n);return r>n?n:r}function XF(){return{top:0,right:0,bottom:0,left:0}}function ZF(e){return Object.assign({},XF(),e)}function JF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var hJ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZF(typeof t!="number"?t:JF(t,Ih))};function mJ(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ei(n.placement),a=BP(l),u=[Mo,Ds].indexOf(l)>=0,f=u?"height":"width";if(!(!s||!i)){var p=hJ(o.padding,n),g=NP(s),v=a==="y"?Eo:Mo,y=a==="y"?Os:Ds,m=n.rects.reference[f]+n.rects.reference[a]-i[a]-n.rects.popper[f],C=i[a]-n.rects.reference[a],b=Eh(s),w=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,S=m/2-C/2,k=p[v],M=w-g[f]-p[y],I=w/2-g[f]/2+S,E=gp(k,I,M),T=a;n.modifiersData[r]=(t={},t[T]=E,t.centerOffset=E-I,t)}}function gJ(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)||QF(t.elements.popper,o)&&(t.elements.arrow=o))}const vJ={name:"arrow",enabled:!0,phase:"main",fn:mJ,effect:gJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vd(e){return e.split("-")[1]}var yJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bJ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:md(n*o)/o||0,y:md(r*o)/o||0}}function S$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,g=i.x,v=g===void 0?0:g,y=i.y,m=y===void 0?0:y,C=typeof f=="function"?f({x:v,y:m}):{x:v,y:m};v=C.x,m=C.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),S=Mo,k=Eo,M=window;if(u){var I=Eh(n),E="clientHeight",T="clientWidth";if(I===Qo(n)&&(I=_a(n),ml(I).position!=="static"&&l==="absolute"&&(E="scrollHeight",T="scrollWidth")),I=I,o===Eo||(o===Mo||o===Ds)&&s===Qp){k=Os;var L=p&&I===M&&M.visualViewport?M.visualViewport.height:I[E];m-=L-r.height,m*=a?1:-1}if(o===Mo||(o===Eo||o===Os)&&s===Qp){S=Ds;var O=p&&I===M&&M.visualViewport?M.visualViewport.width:I[T];v-=O-r.width,v*=a?1:-1}}var R=Object.assign({position:l},u&&yJ),V=f===!0?bJ({x:v,y:m},Qo(n)):{x:v,y:m};if(v=V.x,m=V.y,a){var j;return Object.assign({},R,(j={},j[k]=w?"0":"",j[S]=b?"0":"",j.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",j))}return Object.assign({},R,(t={},t[k]=w?m+"px":"",t[S]=b?v+"px":"",t.transform="",t))}function wJ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Ei(t.placement),variation:vd(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,S$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,S$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const CJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wJ,data:{}};var eg={passive:!0};function xJ(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,a=Qo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",n.update,eg)}),l&&a.addEventListener("resize",n.update,eg),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",n.update,eg)}),l&&a.removeEventListener("resize",n.update,eg)}}const SJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xJ,data:{}};var PJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Fg(e){return e.replace(/left|right|bottom|top/g,function(t){return PJ[t]})}var kJ={start:"end",end:"start"};function P$(e){return e.replace(/start|end/g,function(t){return kJ[t]})}function zP(e){var t=Qo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function VP(e){return gd(_a(e)).left+zP(e).scrollLeft}function IJ(e,t){var n=Qo(e),r=_a(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var u=YF();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+VP(e),y:a}}function EJ(e){var t,n=_a(e),r=zP(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ac(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ac(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+VP(e),a=-r.scrollTop;return ml(o||n).direction==="rtl"&&(l+=ac(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function jP(e){var t=ml(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eN(e){return["html","body","#document"].indexOf(Di(e))>=0?e.ownerDocument.body:Ms(e)&&jP(e)?e:eN(mb(e))}function vp(e,t){var n;t===void 0&&(t=[]);var r=eN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Qo(r),i=o?[s].concat(s.visualViewport||[],jP(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(vp(mb(i)))}function px(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function MJ(e,t){var n=gd(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 k$(e,t,n){return t===KF?px(IJ(e,n)):Ic(t)?MJ(t,n):px(EJ(_a(e)))}function TJ(e){var t=vp(mb(e)),n=["absolute","fixed"].indexOf(ml(e).position)>=0,r=n&&Ms(e)?Eh(e):e;return Ic(r)?t.filter(function(o){return Ic(o)&&QF(o,r)&&Di(o)!=="body"}):[]}function _J(e,t,n,r){var o=t==="clippingParents"?TJ(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,u){var f=k$(e,u,r);return a.top=ac(f.top,a.top),a.right=_v(f.right,a.right),a.bottom=_v(f.bottom,a.bottom),a.left=ac(f.left,a.left),a},k$(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function tN(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ei(r):null,s=r?vd(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case Eo:a={x:i,y:t.y-n.height};break;case Os:a={x:i,y:t.y+t.height};break;case Ds:a={x:t.x+t.width,y:l};break;case Mo:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?BP(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case hd:a[u]=a[u]-(t[f]/2-n[f]/2);break;case Qp:a[u]=a[u]+(t[f]/2-n[f]/2);break}}return a}function Xp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?QZ:l,u=n.rootBoundary,f=u===void 0?KF:u,p=n.elementContext,g=p===void 0?Rf:p,v=n.altBoundary,y=v===void 0?!1:v,m=n.padding,C=m===void 0?0:m,b=ZF(typeof C!="number"?C:JF(C,Ih)),w=g===Rf?XZ:Rf,S=e.rects.popper,k=e.elements[y?w:g],M=_J(Ic(k)?k:k.contextElement||_a(e.elements.popper),a,f,i),I=gd(e.elements.reference),E=tN({reference:I,element:S,strategy:"absolute",placement:o}),T=px(Object.assign({},S,E)),L=g===Rf?T:I,O={top:M.top-L.top+b.top,bottom:L.bottom-M.bottom+b.bottom,left:M.left-L.left+b.left,right:L.right-M.right+b.right},R=e.modifiersData.offset;if(g===Rf&&R){var V=R[o];Object.keys(O).forEach(function(j){var _=[Ds,Os].indexOf(j)>=0?1:-1,A=[Eo,Os].indexOf(j)>=0?"y":"x";O[j]+=V[A]*_})}return O}function $J(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?qF:a,f=vd(r),p=f?l?C$:C$.filter(function(y){return vd(y)===f}):Ih,g=p.filter(function(y){return u.indexOf(y)>=0});g.length===0&&(g=p);var v=g.reduce(function(y,m){return y[m]=Xp(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Ei(m)],y},{});return Object.keys(v).sort(function(y,m){return v[y]-v[m]})}function RJ(e){if(Ei(e)===LP)return[];var t=Fg(e);return[P$(e),t,P$(t)]}function OJ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,g=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,m=n.allowedAutoPlacements,C=t.options.placement,b=Ei(C),w=b===C,S=a||(w||!y?[Fg(C)]:RJ(C)),k=[C].concat(S).reduce(function(Q,X){return Q.concat(Ei(X)===LP?$J(t,{placement:X,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:m}):X)},[]),M=t.rects.reference,I=t.rects.popper,E=new Map,T=!0,L=k[0],O=0;O<k.length;O++){var R=k[O],V=Ei(R),j=vd(R)===hd,_=[Eo,Os].indexOf(V)>=0,A=_?"width":"height",F=Xp(t,{placement:R,boundary:f,rootBoundary:p,altBoundary:g,padding:u}),z=_?j?Ds:Mo:j?Os:Eo;M[A]>I[A]&&(z=Fg(z));var D=Fg(z),N=[];if(s&&N.push(F[V]<=0),l&&N.push(F[z]<=0,F[D]<=0),N.every(function(Q){return Q})){L=R,T=!1;break}E.set(R,N)}if(T)for(var H=y?3:1,K=function(X){var J=k.find(function(ne){var fe=E.get(ne);if(fe)return fe.slice(0,X).every(function(we){return we})});if(J)return L=J,"break"},Y=H;Y>0;Y--){var Z=K(Y);if(Z==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const DJ={name:"flip",enabled:!0,phase:"main",fn:OJ,requiresIfExists:["offset"],data:{_skip:!1}};function I$(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 E$(e){return[Eo,Ds,Os,Mo].some(function(t){return e[t]>=0})}function AJ(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Xp(t,{elementContext:"reference"}),l=Xp(t,{altBoundary:!0}),a=I$(i,r),u=I$(l,o,s),f=E$(a),p=E$(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const LJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AJ};function FJ(e,t,n){var r=Ei(e),o=[Mo,Eo].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[Mo,Ds].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function NJ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=qF.reduce(function(f,p){return f[p]=FJ(p,t.rects,s),f},{}),l=i[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const BJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NJ};function zJ(e){var t=e.state,n=e.name;t.modifiersData[n]=tN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const VJ={name:"popperOffsets",enabled:!0,phase:"read",fn:zJ,data:{}};function jJ(e){return e==="x"?"y":"x"}function HJ(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,g=n.tether,v=g===void 0?!0:g,y=n.tetherOffset,m=y===void 0?0:y,C=Xp(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:f}),b=Ei(t.placement),w=vd(t.placement),S=!w,k=BP(b),M=jJ(k),I=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,L=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(I){if(s){var j,_=k==="y"?Eo:Mo,A=k==="y"?Os:Ds,F=k==="y"?"height":"width",z=I[k],D=z+C[_],N=z-C[A],H=v?-T[F]/2:0,K=w===hd?E[F]:T[F],Y=w===hd?-T[F]:-E[F],Z=t.elements.arrow,Q=v&&Z?NP(Z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:XF(),J=X[_],ne=X[A],fe=gp(0,E[F],Q[F]),we=S?E[F]/2-H-fe-J-O.mainAxis:K-fe-J-O.mainAxis,Ce=S?-E[F]/2+H+fe+ne+O.mainAxis:Y+fe+ne+O.mainAxis,ae=t.elements.arrow&&Eh(t.elements.arrow),be=ae?k==="y"?ae.clientTop||0:ae.clientLeft||0:0,de=(j=R==null?void 0:R[k])!=null?j:0,ke=z+we-de-be,Ie=z+Ce-de,le=gp(v?_v(D,ke):D,z,v?ac(N,Ie):N);I[k]=le,V[k]=le-z}if(l){var Ee,me=k==="x"?Eo:Mo,Me=k==="x"?Os:Ds,ue=I[M],ce=M==="y"?"height":"width",ie=ue+C[me],ge=ue-C[Me],Te=[Eo,Mo].indexOf(b)!==-1,Ne=(Ee=R==null?void 0:R[M])!=null?Ee:0,Ge=Te?ie:ue-E[ce]-T[ce]-Ne+O.altAxis,Ve=Te?ue+E[ce]+T[ce]-Ne-O.altAxis:ge,Ue=v&&Te?pJ(Ge,ue,Ve):gp(v?Ge:ie,ue,v?Ve:ge);I[M]=Ue,V[M]=Ue-ue}t.modifiersData[r]=V}}const UJ={name:"preventOverflow",enabled:!0,phase:"main",fn:HJ,requiresIfExists:["offset"]};function WJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function GJ(e){return e===Qo(e)||!Ms(e)?zP(e):WJ(e)}function KJ(e){var t=e.getBoundingClientRect(),n=md(t.width)/e.offsetWidth||1,r=md(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qJ(e,t,n){n===void 0&&(n=!1);var r=Ms(t),o=Ms(t)&&KJ(t),s=_a(t),i=gd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Di(t)!=="body"||jP(s))&&(l=GJ(t)),Ms(t)?(a=gd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=VP(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function YJ(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function QJ(e){var t=YJ(e);return lJ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ZJ(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 M$={placement:"bottom",modifiers:[],strategy:"absolute"};function T$(){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 JJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?M$:o;return function(l,a,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},M$,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],g=!1,v={state:f,setOptions:function(b){var w=typeof b=="function"?b(f.options):b;m(),f.options=Object.assign({},s,f.options,w),f.scrollParents={reference:Ic(l)?vp(l):l.contextElement?vp(l.contextElement):[],popper:vp(a)};var S=QJ(ZJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(k){return k.enabled}),y(),v.update()},forceUpdate:function(){if(!g){var b=f.elements,w=b.reference,S=b.popper;if(T$(w,S)){f.rects={reference:qJ(w,Eh(S),f.options.strategy==="fixed"),popper:NP(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var k=0;k<f.orderedModifiers.length;k++){if(f.reset===!0){f.reset=!1,k=-1;continue}var M=f.orderedModifiers[k],I=M.fn,E=M.options,T=E===void 0?{}:E,L=M.name;typeof I=="function"&&(f=I({state:f,options:T,name:L,instance:v})||f)}}}},update:XJ(function(){return new Promise(function(C){v.forceUpdate(),C(f)})}),destroy:function(){m(),g=!0}};if(!T$(l,a))return v;v.setOptions(u).then(function(C){!g&&u.onFirstUpdate&&u.onFirstUpdate(C)});function y(){f.orderedModifiers.forEach(function(C){var b=C.name,w=C.options,S=w===void 0?{}:w,k=C.effect;if(typeof k=="function"){var M=k({state:f,name:b,instance:v,options:S}),I=function(){};p.push(M||I)}})}function m(){p.forEach(function(C){return C()}),p=[]}return v}}var eee=[SJ,VJ,CJ,uJ,BJ,DJ,UJ,vJ,LJ],tee=JJ({defaultModifiers:eee});function nee(e){return typeof e=="function"?e():e}const nN=c.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=c.useState(null),a=It(c.isValidElement(r)?r.ref:null,n);if(Nt(()=>{s||l(nee(o)||document.body)},[o,s]),Nt(()=>{if(i&&!s)return Gp(n,i),()=>{Gp(n,null)}},[n,i,s]),s){if(c.isValidElement(r)){const u={ref:a};return c.cloneElement(r,u)}return $.jsx(c.Fragment,{children:r})}return $.jsx(c.Fragment,{children:i&&Od.createPortal(r,i)})});function ree(e){return Ke("MuiPopper",e)}We("MuiPopper",["root"]);const oee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],see=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function iee(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 hx(e){return typeof e=="function"?e():e}function lee(e){return e.nodeType!==void 0}const aee=()=>_e({root:["root"]},BZ(ree)),cee={},uee=c.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:u,placement:f,popperOptions:p,popperRef:g,slotProps:v={},slots:y={},TransitionProps:m}=t,C=oe(t,oee),b=c.useRef(null),w=It(b,n),S=c.useRef(null),k=It(S,g),M=c.useRef(k);Nt(()=>{M.current=k},[k]),c.useImperativeHandle(g,()=>S.current,[]);const I=iee(f,i),[E,T]=c.useState(I),[L,O]=c.useState(hx(o));c.useEffect(()=>{S.current&&S.current.forceUpdate()}),c.useEffect(()=>{o&&O(hx(o))},[o]),Nt(()=>{if(!L||!u)return;const A=D=>{T(D.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{A(D)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const z=tee(L,b.current,x({placement:I},p,{modifiers:F}));return M.current(z),()=>{z.destroy(),M.current(null)}},[L,l,a,u,p,I]);const R={placement:E};m!==null&&(R.TransitionProps=m);const V=aee(),j=(r=y.root)!=null?r:"div",_=qt({elementType:j,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:V.root});return $.jsx(j,x({},_,{children:typeof s=="function"?s(R):s}))}),dee=c.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:g=cee,popperRef:v,style:y,transition:m=!1,slotProps:C={},slots:b={}}=t,w=oe(t,see),[S,k]=c.useState(!0),M=()=>{k(!1)},I=()=>{k(!0)};if(!a&&!f&&(!m||S))return null;let E;if(s)E=s;else if(r){const O=hx(r);E=O&&lee(O)?fn(O).body:fn(null).body}const T=!f&&a&&(!m||S)?"none":void 0,L=m?{in:f,onEnter:M,onExited:I}:void 0;return $.jsx(nN,{disablePortal:l,container:E,children:$.jsx(uee,x({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:m?!S:f,placement:p,popperOptions:g,popperRef:v,slotProps:C,slots:b},w,{style:x({position:"fixed",top:0,left:0,display:T},y),TransitionProps:L,children:o}))})});function fee(e){const t=fn(e);return t.body===e?Yo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function yp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _$(e){return parseInt(Yo(e).getComputedStyle(e).paddingRight,10)||0}function pee(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 $$(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!pee(i);l&&a&&yp(i,o)})}function vw(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function hee(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(fee(r)){const i=aF(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_$(r)+i}px`;const l=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${_$(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=fn(r).body;else{const i=r.parentElement,l=Yo(r);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function mee(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class gee{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&&yp(t.modalRef,!1);const o=mee(n);$$(n,t.mount,t.modalRef,o,!0);const s=vw(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=vw(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=hee(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=vw(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&yp(t.modalRef,n),$$(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&yp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function vee(e){return typeof e=="function"?e():e}function yee(e){return e?e.props.hasOwnProperty("in"):!1}const bee=new gee;function wee(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=bee,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:u,open:f,rootRef:p}=e,g=c.useRef({}),v=c.useRef(null),y=c.useRef(null),m=It(y,p),[C,b]=c.useState(!f),w=yee(a);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>fn(v.current),M=()=>(g.current.modalRef=y.current,g.current.mount=v.current,g.current),I=()=>{o.mount(M(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},E=Ye(()=>{const F=vee(t)||k().body;o.add(M(),F),y.current&&I()}),T=c.useCallback(()=>o.isTopModal(M()),[o]),L=Ye(F=>{v.current=F,F&&(f&&T()?I():y.current&&yp(y.current,S))}),O=c.useCallback(()=>{o.remove(M(),S)},[S,o]);c.useEffect(()=>()=>{O()},[O]),c.useEffect(()=>{f?E():(!w||!s)&&O()},[f,O,w,s,E]);const R=F=>z=>{var D;(D=F.onKeyDown)==null||D.call(F,z),!(z.key!=="Escape"||z.which===229||!T())&&(n||(z.stopPropagation(),u&&u(z,"escapeKeyDown")))},V=F=>z=>{var D;(D=F.onClick)==null||D.call(F,z),z.target===z.currentTarget&&u&&u(z,"backdropClick")};return{getRootProps:(F={})=>{const z=WF(e);delete z.onTransitionEnter,delete z.onTransitionExited;const D=x({},z,F);return x({role:"presentation"},D,{onKeyDown:R(D),ref:m})},getBackdropProps:(F={})=>{const z=F;return x({"aria-hidden":!0},z,{onClick:V(z),open:f})},getTransitionProps:()=>{const F=()=>{b(!1),i&&i()},z=()=>{b(!0),l&&l(),s&&O()};return{onEnter:rx(F,a==null?void 0:a.props.onEnter),onExited:rx(z,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:L,isTopModal:T,exited:C,hasTransition:w}}const Cee=["onChange","maxRows","minRows","style","value"];function tg(e){return parseInt(e,10)||0}const xee={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function R$(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const See=c.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=oe(t,Cee),{current:u}=c.useRef(l!=null),f=c.useRef(null),p=It(n,f),g=c.useRef(null),v=c.useRef(0),[y,m]=c.useState({outerHeightStyle:0}),C=c.useCallback(()=>{const k=f.current,I=Yo(k).getComputedStyle(k);if(I.width==="0px")return{outerHeightStyle:0};const E=g.current;E.style.width=I.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===`
|
|
162
|
+
`&&(E.value+=" ");const T=I.boxSizing,L=tg(I.paddingBottom)+tg(I.paddingTop),O=tg(I.borderBottomWidth)+tg(I.borderTopWidth),R=E.scrollHeight;E.value="x";const V=E.scrollHeight;let j=R;s&&(j=Math.max(Number(s)*V,j)),o&&(j=Math.min(Number(o)*V,j)),j=Math.max(j,V);const _=j+(T==="border-box"?L+O:0),A=Math.abs(j-R)<=1;return{outerHeightStyle:_,overflow:A}},[o,s,t.placeholder]),b=(k,M)=>{const{outerHeightStyle:I,overflow:E}=M;return v.current<20&&(I>0&&Math.abs((k.outerHeightStyle||0)-I)>1||k.overflow!==E)?(v.current+=1,{overflow:E,outerHeightStyle:I}):k},w=c.useCallback(()=>{const k=C();R$(k)||m(M=>b(M,k))},[C]);Nt(()=>{const k=()=>{const R=C();R$(R)||Od.flushSync(()=>{m(V=>b(V,R))})},M=()=>{v.current=0,k()};let I;const E=Ta(M),T=f.current,L=Yo(T);L.addEventListener("resize",E);let O;return typeof ResizeObserver!="undefined"&&(O=new ResizeObserver(M),O.observe(T)),()=>{E.clear(),cancelAnimationFrame(I),L.removeEventListener("resize",E),O&&O.disconnect()}},[C]),Nt(()=>{w()}),c.useEffect(()=>{v.current=0},[l]);const S=k=>{v.current=0,u||w(),r&&r(k)};return $.jsxs(c.Fragment,{children:[$.jsx("textarea",x({value:l,onChange:S,ref:p,rows:s,style:x({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},i)},a)),$.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:x({},xee.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function O$(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function rN(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(l,{inputValue:a,getOptionLabel:u})=>{let f=i?a.trim():a;n&&(f=f.toLowerCase()),t&&(f=O$(f));const p=f?l.filter(g=>{let v=(s||u)(g);return n&&(v=v.toLowerCase()),t&&(v=O$(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function yw(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Pee=rN(),D$=5,kee=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Iee(e){const{unstable_isActiveElementInListbox:t=kee,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:a=!1,componentName:u="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:v,disabledItemsFocusable:y=!1,disableListWrap:m=!1,filterOptions:C=Pee,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:M=$e=>{var ve;return(ve=$e.label)!=null?ve:$e},groupBy:I,handleHomeEndKeys:E=!e.freeSolo,id:T,includeInputInList:L=!1,inputValue:O,isOptionEqualToValue:R=($e,ve)=>$e===ve,multiple:V=!1,onChange:j,onClose:_,onHighlightChange:A,onInputChange:F,onOpen:z,open:D,openOnFocus:N=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:Z}=e,Q=Kt(T);let X=M;X=$e=>{const ve=M($e);return typeof ve!="string"?String(ve):ve};const J=c.useRef(!1),ne=c.useRef(!0),fe=c.useRef(null),we=c.useRef(null),[Ce,ae]=c.useState(null),[be,de]=c.useState(-1),ke=o?0:-1,Ie=c.useRef(ke),[le,Ee]=Kr({controlled:Z,default:f,name:u}),[me,Me]=Kr({controlled:O,default:"",name:u,state:"inputValue"}),[ue,ce]=c.useState(!1),ie=c.useCallback(($e,ve)=>{if(!(V?le.length<ve.length:ve!==null)&&!l)return;let dt;if(V)dt="";else if(ve==null)dt="";else{const Wt=X(ve);dt=typeof Wt=="string"?Wt:""}me!==dt&&(Me(dt),F&&F($e,dt,"reset"))},[X,me,V,F,Me,l,le]),[ge,Te]=Kr({controlled:D,default:!1,name:u,state:"open"}),[Ne,Ge]=c.useState(!0),Ve=!V&&le!=null&&me===X(le),Ue=ge&&!K,Le=Ue?C(H.filter($e=>!(b&&(V?le:[le]).some(ve=>ve!==null&&R($e,ve)))),{inputValue:Ve&&Ne?"":me,getOptionLabel:X}):[],pt=pP({filteredOptions:Le,value:le,inputValue:me});c.useEffect(()=>{const $e=le!==pt.value;ue&&!$e||w&&!$e||ie(null,le)},[le,ie,ue,pt.value,w]);const Zt=ge&&Le.length>0&&!K,Pt=Ye($e=>{$e===-1?fe.current.focus():Ce.querySelector(`[data-tag-index="${$e}"]`).focus()});c.useEffect(()=>{V&&be>le.length-1&&(de(-1),Pt(-1))},[le,V,be,Pt]);function wt($e,ve){if(!we.current||$e<0||$e>=Le.length)return-1;let Qe=$e;for(;;){const dt=we.current.querySelector(`[data-option-index="${Qe}"]`),Wt=y?!1:!dt||dt.disabled||dt.getAttribute("aria-disabled")==="true";if(dt&&dt.hasAttribute("tabindex")&&!Wt)return Qe;if(ve==="next"?Qe=(Qe+1)%Le.length:Qe=(Qe-1+Le.length)%Le.length,Qe===$e)return-1}}const Xe=Ye(({event:$e,index:ve,reason:Qe="auto"})=>{if(Ie.current=ve,ve===-1?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant",`${Q}-option-${ve}`),A&&A($e,ve===-1?null:Le[ve],Qe),!we.current)return;const dt=we.current.querySelector(`[role="option"].${n}-focused`);dt&&(dt.classList.remove(`${n}-focused`),dt.classList.remove(`${n}-focusVisible`));let Wt=we.current;if(we.current.getAttribute("role")!=="listbox"&&(Wt=we.current.parentElement.querySelector('[role="listbox"]')),!Wt)return;if(ve===-1){Wt.scrollTop=0;return}const $n=we.current.querySelector(`[data-option-index="${ve}"]`);if($n&&($n.classList.add(`${n}-focused`),Qe==="keyboard"&&$n.classList.add(`${n}-focusVisible`),Wt.scrollHeight>Wt.clientHeight&&Qe!=="mouse"&&Qe!=="touch")){const Ln=$n,St=Wt.clientHeight+Wt.scrollTop,Qn=Ln.offsetTop+Ln.offsetHeight;Qn>St?Wt.scrollTop=Qn-Wt.clientHeight:Ln.offsetTop-Ln.offsetHeight*(I?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Ln.offsetTop-Ln.offsetHeight*(I?1.3:0))}}),Oe=Ye(({event:$e,diff:ve,direction:Qe="next",reason:dt="auto"})=>{if(!Ue)return;const $n=wt((()=>{const Ln=Le.length-1;if(ve==="reset")return ke;if(ve==="start")return 0;if(ve==="end")return Ln;const St=Ie.current+ve;return St<0?St===-1&&L?-1:m&&Ie.current!==-1||Math.abs(ve)>1?0:Ln:St>Ln?St===Ln+1&&L?-1:m||Math.abs(ve)>1?Ln:0:St})(),Qe);if(Xe({index:$n,reason:dt,event:$e}),r&&ve!=="reset")if($n===-1)fe.current.value=me;else{const Ln=X(Le[$n]);fe.current.value=Ln,Ln.toLowerCase().indexOf(me.toLowerCase())===0&&me.length>0&&fe.current.setSelectionRange(me.length,Ln.length)}}),qe=()=>{const $e=(ve,Qe)=>{const dt=ve?X(ve):"",Wt=Qe?X(Qe):"";return dt===Wt};if(Ie.current!==-1&&pt.filteredOptions&&pt.filteredOptions.length!==Le.length&&pt.inputValue===me&&(V?le.length===pt.value.length&&pt.value.every((ve,Qe)=>X(le[Qe])===X(ve)):$e(pt.value,le))){const ve=pt.filteredOptions[Ie.current];if(ve&&Le.some(dt=>X(dt)===X(ve)))return!0}return!1},mt=c.useCallback(()=>{if(!Ue||qe())return;const $e=V?le[0]:le;if(Le.length===0||$e==null){Oe({diff:"reset"});return}if(we.current){if($e!=null){const ve=Le[Ie.current];if(V&&ve&&yw(le,dt=>R(ve,dt))!==-1)return;const Qe=yw(Le,dt=>R(dt,$e));Qe===-1?Oe({diff:"reset"}):Xe({index:Qe});return}if(Ie.current>=Le.length-1){Xe({index:Le.length-1});return}Xe({index:Ie.current})}},[Le.length,V?!1:le,b,Oe,Xe,Ue,me,V]),vt=Ye($e=>{Gp(we,$e),$e&&mt()});c.useEffect(()=>{mt()},[mt]);const _t=$e=>{ge||(Te(!0),Ge(!0),z&&z($e))},Yt=($e,ve)=>{ge&&(Te(!1),_&&_($e,ve))},Qt=($e,ve,Qe,dt)=>{if(V){if(le.length===ve.length&&le.every((Wt,$n)=>Wt===ve[$n]))return}else if(le===ve)return;j&&j($e,ve,Qe,dt),Ee(ve)},Pn=c.useRef(!1),bn=($e,ve,Qe="selectOption",dt="options")=>{let Wt=Qe,$n=ve;if(V){$n=Array.isArray(le)?le.slice():[];const Ln=yw($n,St=>R(ve,St));Ln===-1?$n.push(ve):dt!=="freeSolo"&&($n.splice(Ln,1),Wt="removeOption")}ie($e,$n),Qt($e,$n,Wt,{option:ve}),!g&&(!$e||!$e.ctrlKey&&!$e.metaKey)&&Yt($e,Wt),(i===!0||i==="touch"&&Pn.current||i==="mouse"&&!Pn.current)&&fe.current.blur()};function gt($e,ve){if($e===-1)return-1;let Qe=$e;for(;;){if(ve==="next"&&Qe===le.length||ve==="previous"&&Qe===-1)return-1;const dt=Ce.querySelector(`[data-tag-index="${Qe}"]`);if(!dt||!dt.hasAttribute("tabindex")||dt.disabled||dt.getAttribute("aria-disabled")==="true")Qe+=ve==="next"?1:-1;else return Qe}}const Rt=($e,ve)=>{if(!V)return;me===""&&Yt($e,"toggleInput");let Qe=be;be===-1?me===""&&ve==="previous"&&(Qe=le.length-1):(Qe+=ve==="next"?1:-1,Qe<0&&(Qe=0),Qe===le.length&&(Qe=-1)),Qe=gt(Qe,ve),de(Qe),Pt(Qe)},gr=$e=>{J.current=!0,Me(""),F&&F($e,"","clear"),Qt($e,V?[]:null,"clear")},rr=$e=>ve=>{if($e.onKeyDown&&$e.onKeyDown(ve),!ve.defaultMuiPrevented&&(be!==-1&&["ArrowLeft","ArrowRight"].indexOf(ve.key)===-1&&(de(-1),Pt(-1)),ve.which!==229))switch(ve.key){case"Home":Ue&&E&&(ve.preventDefault(),Oe({diff:"start",direction:"next",reason:"keyboard",event:ve}));break;case"End":Ue&&E&&(ve.preventDefault(),Oe({diff:"end",direction:"previous",reason:"keyboard",event:ve}));break;case"PageUp":ve.preventDefault(),Oe({diff:-D$,direction:"previous",reason:"keyboard",event:ve}),_t(ve);break;case"PageDown":ve.preventDefault(),Oe({diff:D$,direction:"next",reason:"keyboard",event:ve}),_t(ve);break;case"ArrowDown":ve.preventDefault(),Oe({diff:1,direction:"next",reason:"keyboard",event:ve}),_t(ve);break;case"ArrowUp":ve.preventDefault(),Oe({diff:-1,direction:"previous",reason:"keyboard",event:ve}),_t(ve);break;case"ArrowLeft":Rt(ve,"previous");break;case"ArrowRight":Rt(ve,"next");break;case"Enter":if(Ie.current!==-1&&Ue){const Qe=Le[Ie.current],dt=S?S(Qe):!1;if(ve.preventDefault(),dt)return;bn(ve,Qe,"selectOption"),r&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else w&&me!==""&&Ve===!1&&(V&&ve.preventDefault(),bn(ve,me,"createOption","freeSolo"));break;case"Escape":Ue?(ve.preventDefault(),ve.stopPropagation(),Yt(ve,"escape")):a&&(me!==""||V&&le.length>0)&&(ve.preventDefault(),ve.stopPropagation(),gr(ve));break;case"Backspace":if(V&&!K&&me===""&&le.length>0){const Qe=be===-1?le.length-1:be,dt=le.slice();dt.splice(Qe,1),Qt(ve,dt,"removeOption",{option:le[Qe]})}break;case"Delete":if(V&&!K&&me===""&&le.length>0&&be!==-1){const Qe=be,dt=le.slice();dt.splice(Qe,1),Qt(ve,dt,"removeOption",{option:le[Qe]})}break}},Sl=$e=>{ce(!0),N&&!J.current&&_t($e)},ss=$e=>{if(t(we)){fe.current.focus();return}ce(!1),ne.current=!0,J.current=!1,s&&Ie.current!==-1&&Ue?bn($e,Le[Ie.current],"blur"):s&&w&&me!==""?bn($e,me,"blur","freeSolo"):l&&ie($e,le),Yt($e,"blur")},_n=$e=>{const ve=$e.target.value;me!==ve&&(Me(ve),Ge(!1),F&&F($e,ve,"input")),ve===""?!p&&!V&&Qt($e,null,"clear"):_t($e)},an=$e=>{const ve=Number($e.currentTarget.getAttribute("data-option-index"));Ie.current!==ve&&Xe({event:$e,index:ve,reason:"mouse"})},vr=$e=>{Xe({event:$e,index:Number($e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Pn.current=!0},po=$e=>{const ve=Number($e.currentTarget.getAttribute("data-option-index"));bn($e,Le[ve],"selectOption"),Pn.current=!1},is=$e=>ve=>{const Qe=le.slice();Qe.splice($e,1),Qt(ve,Qe,"removeOption",{option:le[$e]})},or=$e=>{ge?Yt($e,"toggleInput"):_t($e)},$o=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Q&&$e.preventDefault()},di=$e=>{$e.currentTarget.contains($e.target)&&(fe.current.focus(),Y&&ne.current&&fe.current.selectionEnd-fe.current.selectionStart===0&&fe.current.select(),ne.current=!1)},Er=$e=>{!v&&(me===""||!ge)&&or($e)};let Fr=w&&me.length>0;Fr=Fr||(V?le.length>0:le!==null);let Vs=Le;return I&&(Vs=Le.reduce(($e,ve,Qe)=>{const dt=I(ve);return $e.length>0&&$e[$e.length-1].group===dt?$e[$e.length-1].options.push(ve):$e.push({key:Qe,index:Qe,group:dt,options:[ve]}),$e},[])),v&&ue&&ss(),{getRootProps:($e={})=>x({"aria-owns":Zt?`${Q}-listbox`:null},$e,{onKeyDown:rr($e),onMouseDown:$o,onClick:di}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:me,onBlur:ss,onFocus:Sl,onChange:_n,onMouseDown:Er,"aria-activedescendant":Ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Q}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:gr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:or}),getTagProps:({index:$e})=>x({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:is($e)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:vt,onMouseDown:$e=>{$e.preventDefault()}}),getOptionProps:({index:$e,option:ve})=>{var Qe;const dt=(V?le:[le]).some($n=>$n!=null&&R(ve,$n)),Wt=S?S(ve):!1;return{key:(Qe=k==null?void 0:k(ve))!=null?Qe:X(ve),tabIndex:-1,role:"option",id:`${Q}-option-${$e}`,onMouseMove:an,onClick:po,onTouchStart:vr,"data-option-index":$e,"aria-disabled":Wt,"aria-selected":dt}},id:Q,inputValue:me,value:le,dirty:Fr,expanded:Ue&&Ce,popupOpen:Ue,focused:ue||be!==-1,anchorEl:Ce,setAnchorEl:ae,focusedTag:be,groupedOptions:Vs}}const Eee=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Mee=te(dee,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tee=c.forwardRef(function(t,n){var r;const o=ab(),s=je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:u,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:y,placement:m,popperOptions:C,popperRef:b,transition:w,slots:S,slotProps:k}=s,M=oe(s,Eee),I=(r=S==null?void 0:S.root)!=null?r:a==null?void 0:a.Root,E=x({anchorEl:i,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:y,placement:m,popperOptions:C,popperRef:b,transition:w},M);return $.jsx(Mee,x({as:l,direction:o==null?void 0:o.direction,slots:{root:I},slotProps:k!=null?k:u},E,{ref:n}))}),$a=Tee;function _ee(e){return Ke("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const $ee=["className","color","component","disableGutters","disableSticky","inset"],Ree=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${xe(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return _e(i,_ee,t)},Oee=te("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${xe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>x({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})),oN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:l=!1,disableSticky:a=!1,inset:u=!1}=r,f=oe(r,$ee),p=x({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:u}),g=Ree(p);return $.jsx(Oee,x({as:i,className:ye(g.root,o),ref:n,ownerState:p},f))});oN.muiSkipListHighlight=!0;const Dee=oN,Aee=bt($.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 Lee(e){return Ke("MuiChip",e)}const Fee=We("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"]),Jt=Fee,Nee=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Bee=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:l,variant:a}=e,u={root:["root",a,n&&"disabled",`size${xe(r)}`,`color${xe(o)}`,l&&"clickable",l&&`clickableColor${xe(o)}`,i&&"deletable",i&&`deletableColor${xe(o)}`,`${a}${xe(o)}`],label:["label",`label${xe(r)}`],avatar:["avatar",`avatar${xe(r)}`,`avatarColor${xe(o)}`],icon:["icon",`icon${xe(r)}`,`iconColor${xe(s)}`],deleteIcon:["deleteIcon",`deleteIcon${xe(r)}`,`deleteIconColor${xe(o)}`,`deleteIcon${xe(a)}Color${xe(o)}`]};return _e(u,Lee,t)},zee=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:l,variant:a}=n;return[{[`& .${Jt.avatar}`]:t.avatar},{[`& .${Jt.avatar}`]:t[`avatar${xe(l)}`]},{[`& .${Jt.avatar}`]:t[`avatarColor${xe(r)}`]},{[`& .${Jt.icon}`]:t.icon},{[`& .${Jt.icon}`]:t[`icon${xe(l)}`]},{[`& .${Jt.icon}`]:t[`iconColor${xe(o)}`]},{[`& .${Jt.deleteIcon}`]:t.deleteIcon},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${xe(l)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIconColor${xe(r)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${xe(a)}Color${xe(r)}`]},t.root,t[`size${xe(l)}`],t[`color${xe(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${xe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${xe(r)}`],t[a],t[`${a}${xe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return x({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jt.icon}`]:x({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&x({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jt.deleteIcon}`]:x({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:it(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:it(e.palette.text.primary,.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)`:it(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&&{[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>x({},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}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(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, &.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>x({},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]}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jt.avatar}`]:{marginLeft:4},[`& .${Jt.avatarSmall}`]:{marginLeft:2},[`& .${Jt.icon}`]:{marginLeft:4},[`& .${Jt.iconSmall}`]:{marginLeft:2},[`& .${Jt.deleteIcon}`]:{marginRight:5},[`& .${Jt.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)`:it(e.palette[t.color].main,.7)}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:it(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Vee=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${xe(r)}`]]}})(({ownerState:e})=>x({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function A$(e){return e.key==="Backspace"||e.key==="Delete"}const jee=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:l="default",component:a,deleteIcon:u,disabled:f=!1,icon:p,label:g,onClick:v,onDelete:y,onKeyDown:m,onKeyUp:C,size:b="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,M=oe(r,Nee),I=c.useRef(null),E=It(I,n),T=N=>{N.stopPropagation(),y&&y(N)},L=N=>{N.currentTarget===N.target&&A$(N)&&N.preventDefault(),m&&m(N)},O=N=>{N.currentTarget===N.target&&(y&&A$(N)?y(N):N.key==="Escape"&&I.current&&I.current.blur()),C&&C(N)},R=i!==!1&&v?!0:i,V=R||y?ai:a||"div",j=x({},r,{component:V,disabled:f,size:b,color:l,iconColor:c.isValidElement(p)&&p.props.color||l,onDelete:!!y,clickable:R,variant:w}),_=Bee(j),A=V===ai?x({component:a||"div",focusVisibleClassName:_.focusVisible},y&&{disableRipple:!0}):{};let F=null;y&&(F=u&&c.isValidElement(u)?c.cloneElement(u,{className:ye(u.props.className,_.deleteIcon),onClick:T}):$.jsx(Aee,{className:ye(_.deleteIcon),onClick:T}));let z=null;o&&c.isValidElement(o)&&(z=c.cloneElement(o,{className:ye(_.avatar,o.props.className)}));let D=null;return p&&c.isValidElement(p)&&(D=c.cloneElement(p,{className:ye(_.icon,p.props.className)})),$.jsxs(zee,x({as:V,className:ye(_.root,s),disabled:R&&f?!0:void 0,onClick:v,onKeyDown:L,onKeyUp:O,ref:E,tabIndex:k&&f?-1:S,ownerState:j},A,M,{children:[z||D,$.jsx(Vee,{className:ye(_.label),ownerState:j,children:g}),F]}))}),gb=jee;function Lc({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 Hee=c.createContext(void 0),vb=Hee;function Cl(){return c.useContext(vb)}function Uee(e){return $.jsx(rQ,x({},e,{defaultTheme:db,themeId:wc}))}function L$(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $v(e,t=!1){return e&&(L$(e.value)&&e.value!==""||t&&L$(e.defaultValue)&&e.defaultValue!=="")}function Wee(e){return e.startAdornment}function Gee(e){return Ke("MuiInputBase",e)}const Kee=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),zo=Kee,qee=["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"],yb=(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${xe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bb=(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]},Yee=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:l,fullWidth:a,hiddenLabel:u,multiline:f,readOnly:p,size:g,startAdornment:v,type:y}=e,m={root:["root",`color${xe(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",g&&g!=="medium"&&`size${xe(g)}`,f&&"multiline",v&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return _e(m,Gee,t)},wb=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yb})(({theme:e,ownerState:t})=>x({},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",[`&.${zo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Cb=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({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"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({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] + .${zo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${zo.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"})}),Qee=$.jsx(Uee,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xee=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,components:u={},componentsProps:f={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:m=!1,id:C,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:k,minRows:M,multiline:I=!1,name:E,onBlur:T,onChange:L,onClick:O,onFocus:R,onKeyDown:V,onKeyUp:j,placeholder:_,readOnly:A,renderSuffix:F,rows:z,slotProps:D={},slots:N={},startAdornment:H,type:K="text",value:Y}=o,Z=oe(o,qee),Q=w.value!=null?w.value:Y,{current:X}=c.useRef(Q!=null),J=c.useRef(),ne=c.useCallback(Ue=>{},[]),fe=It(J,S,w.ref,ne),[we,Ce]=c.useState(!1),ae=Cl(),be=Lc({props:o,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=ae?ae.focused:we,c.useEffect(()=>{!ae&&g&&we&&(Ce(!1),T&&T())},[ae,g,we,T]);const de=ae&&ae.onFilled,ke=ae&&ae.onEmpty,Ie=c.useCallback(Ue=>{$v(Ue)?de&&de():ke&&ke()},[de,ke]);Nt(()=>{X&&Ie({value:Q})},[Q,Ie,X]);const le=Ue=>{if(be.disabled){Ue.stopPropagation();return}R&&R(Ue),w.onFocus&&w.onFocus(Ue),ae&&ae.onFocus?ae.onFocus(Ue):Ce(!0)},Ee=Ue=>{T&&T(Ue),w.onBlur&&w.onBlur(Ue),ae&&ae.onBlur?ae.onBlur(Ue):Ce(!1)},me=(Ue,...Le)=>{if(!X){const pt=Ue.target||J.current;if(pt==null)throw new Error(ba(1));Ie({value:pt.value})}w.onChange&&w.onChange(Ue,...Le),L&&L(Ue,...Le)};c.useEffect(()=>{Ie(J.current)},[]);const Me=Ue=>{J.current&&Ue.currentTarget===Ue.target&&J.current.focus(),O&&O(Ue)};let ue=b,ce=w;I&&ue==="input"&&(z?ce=x({type:void 0,minRows:z,maxRows:z},ce):ce=x({type:void 0,maxRows:k,minRows:M},ce),ue=See);const ie=Ue=>{Ie(Ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};c.useEffect(()=>{ae&&ae.setAdornedStart(!!H)},[ae,H]);const ge=x({},o,{color:be.color||"primary",disabled:be.disabled,endAdornment:y,error:be.error,focused:be.focused,formControl:ae,fullWidth:m,hiddenLabel:be.hiddenLabel,multiline:I,size:be.size,startAdornment:H,type:K}),Te=Yee(ge),Ne=N.root||u.Root||wb,Ge=D.root||f.root||{},Ve=N.input||u.Input||Cb;return ce=x({},ce,(r=D.input)!=null?r:f.input),$.jsxs(c.Fragment,{children:[!v&&Qee,$.jsxs(Ne,x({},Ge,!kc(Ne)&&{ownerState:x({},ge,Ge.ownerState)},{ref:n,onClick:Me},Z,{className:ye(Te.root,Ge.className,a,A&&"MuiInputBase-readOnly"),children:[H,$.jsx(vb.Provider,{value:null,children:$.jsx(Ve,x({ownerState:ge,"aria-invalid":be.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:be.disabled,id:C,onAnimationStart:ie,name:E,placeholder:_,readOnly:A,required:be.required,rows:z,value:Q,onKeyDown:V,onKeyUp:j,type:K},ce,!kc(Ve)&&{as:ue,ownerState:x({},ge,ce.ownerState)},{ref:fe,className:ye(Te.input,ce.className,A&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:me,onFocus:le}))}),y,F?F(x({},be,{startAdornment:H})):null]}))]})}),Bd=Xee;function Zee(e){return Ke("MuiInput",e)}const Jee=x({},zo,We("MuiInput",["root","underline","input"])),Ql=Jee;function ete(e){return Ke("MuiOutlinedInput",e)}const tte=x({},zo,We("MuiOutlinedInput",["root","notchedOutline","input"])),yi=tte;function nte(e){return Ke("MuiFilledInput",e)}const rte=x({},zo,We("MuiFilledInput",["root","underline","input"])),Vo=rte,sN=bt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ote(e){return Ke("MuiAutocomplete",e)}const ste=We("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"]),zt=ste;var F$,N$;const ite=["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","getOptionKey","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"],lte=["ref"],ate=["key"],cte=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:l,inputFocused:a,popupOpen:u,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${xe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return _e(p,ote,t)},ute=te("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:l}=n;return[{[`& .${zt.tag}`]:t.tag},{[`& .${zt.tag}`]:t[`tagSize${xe(l)}`]},{[`& .${zt.inputRoot}`]:t.inputRoot},{[`& .${zt.input}`]:t.input},{[`& .${zt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>x({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:x({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${zt.inputRoot}`]:{flexWrap:"wrap",[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${zt.input}`]:{width:0,minWidth:30}},[`& .${Ql.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ql.root}.${zo.sizeSmall}`]:{[`& .${Ql.input}`]:{padding:"2px 4px 3px 0"}},[`& .${yi.root}`]:{padding:9,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${zt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${yi.root}.${zo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Vo.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Vo.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Vo.root}.${zo.sizeSmall}`]:{paddingBottom:1,[`& .${Vo.input}`]:{padding:"2.5px 4px"}},[`& .${zo.hiddenLabel}`]:{paddingTop:8},[`& .${Vo.root}.${zo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Vo.root}.${zo.hiddenLabel}.${zo.sizeSmall}`]:{[`& .${zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${zt.input}`]:x({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),dte=te("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),fte=te(pr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),pte=te(pr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>x({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>x({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),hte=te($a,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>x({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),mte=te(zs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>x({},e.typography.body1,{overflow:"auto"})),gte=te("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),vte=te("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),yte=te("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",[`& .${zt.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"},[`&.${zt.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"},[`&.${zt.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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),bte=te(Dee,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),wte=te("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),Cte=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:u=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:g,className:v,clearIcon:y=F$||(F$=$.jsx(UF,{fontSize:"small"})),clearOnBlur:m=!l.freeSolo,clearOnEscape:C=!1,clearText:b="Clear",closeText:w="Close",componentsProps:S={},defaultValue:k=l.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:I=!1,disabled:E=!1,disabledItemsFocusable:T=!1,disableListWrap:L=!1,disablePortal:O=!1,filterSelectedOptions:R=!1,forcePopupIcon:V="auto",freeSolo:j=!1,fullWidth:_=!1,getLimitTagsText:A=ve=>`+${ve}`,getOptionLabel:F,groupBy:z,handleHomeEndKeys:D=!l.freeSolo,includeInputInList:N=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:Z=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:J="No options",openOnFocus:ne=!1,openText:fe="Open",PaperComponent:we=zs,PopperComponent:Ce=$a,popupIcon:ae=N$||(N$=$.jsx(sN,{})),readOnly:be=!1,renderGroup:de,renderInput:ke,renderOption:Ie,renderTags:le,selectOnFocus:Ee=!l.freeSolo,size:me="medium",slotProps:Me={}}=l,ue=oe(l,ite),{getRootProps:ce,getInputProps:ie,getInputLabelProps:ge,getPopupIndicatorProps:Te,getClearProps:Ne,getTagProps:Ge,getListboxProps:Ve,getOptionProps:Ue,value:Le,dirty:pt,expanded:Zt,id:Pt,popupOpen:wt,focused:Xe,focusedTag:Oe,anchorEl:qe,setAnchorEl:mt,inputValue:vt,groupedOptions:_t}=Iee(x({},l,{componentName:"Autocomplete"})),Yt=!M&&!E&&pt&&!be,Qt=(!j||V===!0)&&V!==!1,{onMouseDown:Pn}=ie(),{ref:bn}=Y!=null?Y:{},gt=Ve(),{ref:Rt}=gt,gr=oe(gt,lte),rr=It(Rt,bn),ss=F||(ve=>{var Qe;return(Qe=ve.label)!=null?Qe:ve}),_n=x({},l,{disablePortal:O,expanded:Zt,focused:Xe,fullWidth:_,getOptionLabel:ss,hasClearIcon:Yt,hasPopupIcon:Qt,inputFocused:Oe===-1,popupOpen:wt,size:me}),an=cte(_n);let vr;if(X&&Le.length>0){const ve=Qe=>x({className:an.tag,disabled:E},Ge(Qe));le?vr=le(Le,ve,_n):vr=Le.map((Qe,dt)=>$.jsx(gb,x({label:ss(Qe),size:me},ve({index:dt}),g)))}if(H>-1&&Array.isArray(vr)){const ve=vr.length-H;!Xe&&ve>0&&(vr=vr.splice(0,H),vr.push($.jsx("span",{className:an.tag,children:A(ve)},vr.length)))}const is=de||(ve=>$.jsxs("li",{children:[$.jsx(bte,{className:an.groupLabel,ownerState:_n,component:"div",children:ve.group}),$.jsx(wte,{className:an.groupUl,ownerState:_n,children:ve.children})]},ve.key)),$o=Ie||((ve,Qe)=>{const{key:dt}=ve,Wt=oe(ve,ate);return $.jsx("li",x({},Wt,{children:ss(Qe)}),dt)}),di=(ve,Qe)=>{const dt=Ue({option:ve,index:Qe});return $o(x({},dt,{className:an.option}),ve,{selected:dt["aria-selected"],index:Qe,inputValue:vt},_n)},Er=(r=Me.clearIndicator)!=null?r:S.clearIndicator,Fr=(o=Me.paper)!=null?o:S.paper,Vs=(s=Me.popper)!=null?s:S.popper,$e=(i=Me.popupIndicator)!=null?i:S.popupIndicator;return $.jsxs(c.Fragment,{children:[$.jsx(ute,x({ref:n,className:ye(an.root,v),ownerState:_n},ce(ue),{children:ke({id:Pt,disabled:E,fullWidth:!0,size:me==="small"?"small":void 0,InputLabelProps:ge(),InputProps:x({ref:mt,className:an.inputRoot,startAdornment:vr,onClick:ve=>{ve.target===ve.currentTarget&&Pn(ve)}},(Yt||Qt)&&{endAdornment:$.jsxs(dte,{className:an.endAdornment,ownerState:_n,children:[Yt?$.jsx(fte,x({},Ne(),{"aria-label":b,title:b,ownerState:_n},Er,{className:ye(an.clearIndicator,Er==null?void 0:Er.className),children:y})):null,Qt?$.jsx(pte,x({},Te(),{disabled:E,"aria-label":wt?w:fe,title:wt?w:fe,ownerState:_n},$e,{className:ye(an.popupIndicator,$e==null?void 0:$e.className),children:ae})):null]})}),inputProps:x({className:an.input,disabled:E,readOnly:be},ie())})})),qe?$.jsx(hte,x({as:Ce,disablePortal:O,style:{width:qe?qe.clientWidth:null},ownerState:_n,role:"presentation",anchorEl:qe,open:wt},Vs,{className:ye(an.popper,Vs==null?void 0:Vs.className),children:$.jsxs(mte,x({ownerState:_n,as:we},Fr,{className:ye(an.paper,Fr==null?void 0:Fr.className),children:[Z&&_t.length===0?$.jsx(gte,{className:an.loading,ownerState:_n,children:Q}):null,_t.length===0&&!j&&!Z?$.jsx(vte,{className:an.noOptions,ownerState:_n,role:"presentation",onMouseDown:ve=>{ve.preventDefault()},children:J}):null,_t.length>0?$.jsx(yte,x({as:K,className:an.listbox,ownerState:_n},gr,Y,{ref:rr,children:_t.map((ve,Qe)=>z?is({key:ve.key,group:ve.group,children:ve.options.map((dt,Wt)=>di(dt,ve.index+Wt))}):di(ve,Qe))})):null]}))})):null]})}),xb=Cte,xte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ste={entering:{opacity:1},entered:{opacity:1}},Pte=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:a,in:u,onEnter:f,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:m,style:C,timeout:b=o,TransitionComponent:w=kh}=t,S=oe(t,xte),k=c.useRef(null),M=It(k,l.ref,n),I=_=>A=>{if(_){const F=k.current;A===void 0?_(F):_(F,A)}},E=I(g),T=I((_,A)=>{DP(_);const F=Ca({style:C,timeout:b,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",F),_.style.transition=r.transitions.create("opacity",F),f&&f(_,A)}),L=I(p),O=I(m),R=I(_=>{const A=Ca({style:C,timeout:b,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",A),_.style.transition=r.transitions.create("opacity",A),v&&v(_)}),V=I(y),j=_=>{s&&s(k.current,_)};return $.jsx(w,x({appear:i,in:u,nodeRef:k,onEnter:T,onEntered:L,onEntering:E,onExit:R,onExited:V,onExiting:O,addEndListener:j,timeout:b},S,{children:(_,A)=>c.cloneElement(l,x({style:x({opacity:0,visibility:_==="exited"&&!u?"hidden":void 0},Ste[_],C,l.props.style),ref:M},A))}))}),zd=Pte;function kte(e){return Ke("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const Ite=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ete=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},kte,t)},Mte=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({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"})),Tte=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:f={},componentsProps:p={},invisible:g=!1,open:v,slotProps:y={},slots:m={},TransitionComponent:C=zd,transitionDuration:b}=i,w=oe(i,Ite),S=x({},i,{component:u,invisible:g}),k=Ete(S),M=(r=y.root)!=null?r:p.root;return $.jsx(C,x({in:v,timeout:b},w,{children:$.jsx(Mte,x({"aria-hidden":!0},M,{as:(o=(s=m.root)!=null?s:f.Root)!=null?o:u,className:ye(k.root,a,M==null?void 0:M.className),ownerState:x({},S,M==null?void 0:M.ownerState),classes:k,ref:n,children:l}))}))}),iN=Tte;function _te(e){return Ke("MuiBadge",e)}const $te=We("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"]),Dl=$te,Rte=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],bw=10,ww=4,Ote=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${xe(n.vertical)}${xe(n.horizontal)}`,`anchorOrigin${xe(n.vertical)}${xe(n.horizontal)}${xe(o)}`,`overlap${xe(o)}`,t!=="default"&&`color${xe(t)}`]};return _e(l,_te,i)},Dte=te("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ate=te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${xe(n.anchorOrigin.vertical)}${xe(n.anchorOrigin.horizontal)}${xe(n.overlap)}`],n.color!=="default"&&t[`color${xe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>x({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:bw*2,lineHeight:1,padding:"0 6px",height:bw*2,borderRadius:bw,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:ww,height:ww*2,minWidth:ww*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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.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%",[`&.${Dl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),Lte=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:g,components:v={},componentsProps:y={},children:m,overlap:C="rectangular",color:b="default",invisible:w=!1,max:S=99,badgeContent:k,slots:M,slotProps:I,showZero:E=!1,variant:T="standard"}=u,L=oe(u,Rte),{badgeContent:O,invisible:R,max:V,displayValue:j}=jZ({max:S,invisible:w,badgeContent:k,showZero:E}),_=pP({anchorOrigin:f,color:b,overlap:C,variant:T,badgeContent:k}),A=R||O==null&&T!=="dot",{color:F=b,overlap:z=C,anchorOrigin:D=f,variant:N=T}=A?_:u,H=N!=="dot"?j:void 0,K=x({},u,{badgeContent:O,invisible:A,max:V,displayValue:H,showZero:E,anchorOrigin:D,color:F,overlap:z,variant:N}),Y=Ote(K),Z=(r=(o=M==null?void 0:M.root)!=null?o:v.Root)!=null?r:Dte,Q=(s=(i=M==null?void 0:M.badge)!=null?i:v.Badge)!=null?s:Ate,X=(l=I==null?void 0:I.root)!=null?l:y.root,J=(a=I==null?void 0:I.badge)!=null?a:y.badge,ne=qt({elementType:Z,externalSlotProps:X,externalForwardedProps:L,additionalProps:{ref:n,as:g},ownerState:K,className:ye(X==null?void 0:X.className,Y.root,p)}),fe=qt({elementType:Q,externalSlotProps:J,ownerState:K,className:ye(Y.badge,J==null?void 0:J.className)});return $.jsxs(Z,x({},ne,{children:[m,$.jsx(Q,x({},fe,{children:H}))]}))}),lN=Lte,Fte=We("MuiBox",["root"]),Nte=Fte,Bte=TP(),zte=lQ({themeId:wc,defaultTheme:Bte,defaultClassName:Nte.root,generateClassName:mP.generate}),ze=zte;function Vte(e){return Ke("MuiButton",e)}const jte=We("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"]),ng=jte,Hte=c.createContext({}),Ute=Hte,Wte=c.createContext(void 0),Gte=Wte,Kte=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],qte=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,l={root:["root",s,`${s}${xe(t)}`,`size${xe(o)}`,`${s}Size${xe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(o)}`],endIcon:["endIcon",`iconSize${xe(o)}`]},a=_e(l,Vte,i);return x({},i,a)},aN=e=>x({},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}}),Yte=te(ai,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xe(n.color)}`],t[`size${xe(n.size)}`],t[`${n.variant}Size${xe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return x({},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":x({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(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})`:it(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})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,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":x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ng.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ng.disabled}`]:x({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 ${it(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.vars.palette.Button.inheritContainedBg:o,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"},[`&.${ng.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ng.disabled}`]:{boxShadow:"none"}}),Qte=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${xe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},aN(e))),Xte=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${xe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},aN(e))),Zte=c.forwardRef(function(t,n){const r=c.useContext(Ute),o=c.useContext(Gte),s=hP(r,t),i=je({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:v=!1,endIcon:y,focusVisibleClassName:m,fullWidth:C=!1,size:b="medium",startIcon:w,type:S,variant:k="text"}=i,M=oe(i,Kte),I=x({},i,{color:a,component:u,disabled:p,disableElevation:g,disableFocusRipple:v,fullWidth:C,size:b,type:S,variant:k}),E=qte(I),T=w&&$.jsx(Qte,{className:E.startIcon,ownerState:I,children:w}),L=y&&$.jsx(Xte,{className:E.endIcon,ownerState:I,children:y}),O=o||"";return $.jsxs(Yte,x({ownerState:I,className:ye(r.className,E.root,f,O),component:u,disabled:p,focusRipple:!v,focusVisibleClassName:ye(E.focusVisible,m),ref:n,type:S},M,{classes:E,children:[T,l,L]}))}),qn=Zte;function Jte(e){return Ke("MuiCard",e)}We("MuiCard",["root"]);const ene=["className","raised"],tne=e=>{const{classes:t}=e;return _e({root:["root"]},Jte,t)},nne=te(zs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),rne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=oe(r,ene),l=x({},r,{raised:s}),a=tne(l);return $.jsx(nne,x({className:ye(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),Sb=rne;function one(e){return Ke("MuiCardContent",e)}We("MuiCardContent",["root"]);const sne=["className","component"],ine=e=>{const{classes:t}=e;return _e({root:["root"]},one,t)},lne=te("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ane=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=oe(r,sne),l=x({},r,{component:s}),a=ine(l);return $.jsx(lne,x({as:s,className:ye(a.root,o),ownerState:l,ref:n},i))}),Pb=ane;function cne(e){return Ke("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const une=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],dne=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${xe(o)}`],input:["input"]};return _e(s,cne,t)},fne=te(ai)(({ownerState:e})=>x({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),pne=te("input",{shouldForwardProp:Qr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hne=c.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:g,inputProps:v,inputRef:y,name:m,onBlur:C,onChange:b,onFocus:w,readOnly:S,required:k=!1,tabIndex:M,type:I,value:E}=t,T=oe(t,une),[L,O]=Kr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),R=Cl(),V=N=>{w&&w(N),R&&R.onFocus&&R.onFocus(N)},j=N=>{C&&C(N),R&&R.onBlur&&R.onBlur(N)},_=N=>{if(N.nativeEvent.defaultPrevented)return;const H=N.target.checked;O(H),b&&b(N,H)};let A=a;R&&typeof A=="undefined"&&(A=R.disabled);const F=I==="checkbox"||I==="radio",z=x({},t,{checked:L,disabled:A,disableFocusRipple:u,edge:f}),D=dne(z);return $.jsxs(fne,x({component:"span",className:ye(D.root,i),centerRipple:!0,focusRipple:!u,disabled:A,tabIndex:null,role:void 0,onFocus:V,onBlur:j,ownerState:z,ref:n},T,{children:[$.jsx(pne,x({autoFocus:r,checked:o,defaultChecked:l,className:D.input,disabled:A,id:F?g:void 0,name:m,onChange:_,readOnly:S,ref:y,required:k,ownerState:z,tabIndex:M,type:I},I==="checkbox"&&E===void 0?{}:{value:E},v)),L?s:p]}))}),cN=hne,mne=bt($.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"),gne=bt($.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"),vne=bt($.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 yne(e){return Ke("MuiCheckbox",e)}const bne=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Cw=bne,wne=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Cne=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${xe(r)}`,`size${xe(o)}`]},i=_e(s,yne,t);return x({},t,i)},xne=te(cN,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${xe(n.size)}`],n.color!=="default"&&t[`color${xe(n.color)}`]]}})(({theme:e,ownerState:t})=>x({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[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Cw.checked}, &.${Cw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Cw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Sne=$.jsx(gne,{}),Pne=$.jsx(mne,{}),kne=$.jsx(vne,{}),Ine=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=Sne,color:l="primary",icon:a=Pne,indeterminate:u=!1,indeterminateIcon:f=kne,inputProps:p,size:g="medium",className:v}=s,y=oe(s,wne),m=u?f:a,C=u?f:i,b=x({},s,{color:l,indeterminate:u,size:g}),w=Cne(b);return $.jsx(xne,x({type:"checkbox",inputProps:x({"data-indeterminate":u},p),icon:c.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:g}),checkedIcon:c.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:g}),ownerState:b,ref:n,className:ye(w.root,v)},y,{classes:w}))}),uN=Ine;function Ene(e){return Ke("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mne=["className","color","disableShrink","size","style","thickness","value","variant"];let kb=e=>e,B$,z$,V$,j$;const Al=44,Tne=Bi(B$||(B$=kb`
|
|
163
|
+
0% {
|
|
164
|
+
transform: rotate(0deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: rotate(360deg);
|
|
169
|
+
}
|
|
170
|
+
`)),_ne=Bi(z$||(z$=kb`
|
|
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
|
+
`)),$ne=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${xe(r)}`],svg:["svg"],circle:["circle",`circle${xe(n)}`,o&&"circleDisableShrink"]};return _e(s,Ene,t)},Rne=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xe(n.color)}`]]}})(({ownerState:e,theme:t})=>x({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"&&wa(V$||(V$=kb`
|
|
186
|
+
animation: ${0} 1.4s linear infinite;
|
|
187
|
+
`),Tne)),One=te("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Dne=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>x({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&&wa(j$||(j$=kb`
|
|
188
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
+
`),_ne)),Ane=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:l=40,style:a,thickness:u=3.6,value:f=0,variant:p="indeterminate"}=r,g=oe(r,Mne),v=x({},r,{color:s,disableShrink:i,size:l,thickness:u,value:f,variant:p}),y=$ne(v),m={},C={},b={};if(p==="determinate"){const w=2*Math.PI*((Al-u)/2);m.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,C.transform="rotate(-90deg)"}return $.jsx(Rne,x({className:ye(y.root,o),style:x({width:l,height:l},C,a),ownerState:v,ref:n,role:"progressbar"},b,g,{children:$.jsx(One,{className:y.svg,ownerState:v,viewBox:`${Al/2} ${Al/2} ${Al} ${Al}`,children:$.jsx(Dne,{className:y.circle,style:m,ownerState:v,cx:Al,cy:Al,r:(Al-u)/2,fill:"none",strokeWidth:u})})}))}),Ai=Ane;function Lne(e){return Ke("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Fne=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Nne=e=>{const{open:t,exited:n,classes:r}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Lne,r)},Bne=te("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})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),zne=te(iN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vne=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:f=zne,BackdropProps:p,className:g,closeAfterTransition:v=!1,children:y,container:m,component:C,components:b={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:M=!1,disablePortal:I=!1,disableRestoreFocus:E=!1,disableScrollLock:T=!1,hideBackdrop:L=!1,keepMounted:O=!1,onBackdropClick:R,open:V,slotProps:j,slots:_}=u,A=oe(u,Fne),F=x({},u,{closeAfterTransition:v,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:M,disablePortal:I,disableRestoreFocus:E,disableScrollLock:T,hideBackdrop:L,keepMounted:O}),{getRootProps:z,getBackdropProps:D,getTransitionProps:N,portalRef:H,isTopModal:K,exited:Y,hasTransition:Z}=wee(x({},F,{rootRef:n})),Q=x({},F,{exited:Y}),X=Nne(Q),J={};if(y.props.tabIndex===void 0&&(J.tabIndex="-1"),Z){const{onEnter:de,onExited:ke}=N();J.onEnter=de,J.onExited=ke}const ne=(r=(o=_==null?void 0:_.root)!=null?o:b.Root)!=null?r:Bne,fe=(s=(i=_==null?void 0:_.backdrop)!=null?i:b.Backdrop)!=null?s:f,we=(l=j==null?void 0:j.root)!=null?l:w.root,Ce=(a=j==null?void 0:j.backdrop)!=null?a:w.backdrop,ae=qt({elementType:ne,externalSlotProps:we,externalForwardedProps:A,getSlotProps:z,additionalProps:{ref:n,as:C},ownerState:Q,className:ye(g,we==null?void 0:we.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),be=qt({elementType:fe,externalSlotProps:Ce,additionalProps:p,getSlotProps:de=>D(x({},de,{onClick:ke=>{R&&R(ke),de!=null&&de.onClick&&de.onClick(ke)}})),className:ye(Ce==null?void 0:Ce.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!O&&!V&&(!Z||Y)?null:$.jsx(nN,{ref:H,container:m,disablePortal:I,children:$.jsxs(ne,x({},ae,{children:[!L&&f?$.jsx(fe,x({},be)):null,$.jsx(AP,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:K,open:V,children:c.cloneElement(y,J)})]}))})}),Ib=Vne;function jne(e){return Ke("MuiDialog",e)}const Hne=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),bp=Hne,Une=c.createContext({}),dN=Une,Wne=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Gne=te(iN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Kne=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${xe(n)}`],paper:["paper",`paperScroll${xe(n)}`,`paperWidth${xe(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return _e(i,jne,t)},qne=te(Ib,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yne=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${xe(n.scroll)}`]]}})(({ownerState:e})=>x({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"}})),Qne=te(zs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${xe(n.scroll)}`],t[`paperWidth${xe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({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):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bp.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}`,[`&.${bp.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,[`&.${bp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Xne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:a,BackdropProps:u,children:f,className:p,disableEscapeKeyDown:g=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:m="sm",onBackdropClick:C,onClose:b,open:w,PaperComponent:S=zs,PaperProps:k={},scroll:M="paper",TransitionComponent:I=zd,transitionDuration:E=s,TransitionProps:T}=r,L=oe(r,Wne),O=x({},r,{disableEscapeKeyDown:g,fullScreen:v,fullWidth:y,maxWidth:m,scroll:M}),R=Kne(O),V=c.useRef(),j=z=>{V.current=z.target===z.currentTarget},_=z=>{V.current&&(V.current=null,C&&C(z),b&&b(z,"backdropClick"))},A=Kt(l),F=c.useMemo(()=>({titleId:A}),[A]);return $.jsx(qne,x({className:ye(R.root,p),closeAfterTransition:!0,components:{Backdrop:Gne},componentsProps:{backdrop:x({transitionDuration:E,as:a},u)},disableEscapeKeyDown:g,onClose:b,open:w,ref:n,onClick:_,ownerState:O},L,{children:$.jsx(I,x({appear:!0,in:w,timeout:E,role:"presentation"},T,{children:$.jsx(Yne,{className:ye(R.container),onMouseDown:j,ownerState:O,children:$.jsx(Qne,x({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":A},k,{className:ye(R.paper,k.className),ownerState:O,children:$.jsx(dN.Provider,{value:F,children:f})}))})}))}))}),fN=Xne;function Zne(e){return Ke("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Jne=["className","disableSpacing"],ere=e=>{const{classes:t,disableSpacing:n}=e;return _e({root:["root",!n&&"spacing"]},Zne,t)},tre=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>x({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=oe(r,Jne),l=x({},r,{disableSpacing:s}),a=ere(l);return $.jsx(tre,x({className:ye(a.root,o),ownerState:l,ref:n},i))}),rre=nre;function ore(e){return Ke("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function sre(e){return Ke("MuiDialogTitle",e)}const ire=We("MuiDialogTitle",["root"]),lre=ire,are=["className","dividers"],cre=e=>{const{classes:t,dividers:n}=e;return _e({root:["root",n&&"dividers"]},ore,t)},ure=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({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}`}:{[`.${lre.root} + &`]:{paddingTop:0}})),dre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=oe(r,are),l=x({},r,{dividers:s}),a=cre(l);return $.jsx(ure,x({className:ye(a.root,o),ownerState:l,ref:n},i))}),pN=dre,fre=["className","id"],pre=e=>{const{classes:t}=e;return _e({root:["root"]},sre,t)},hre=te(Kn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),mre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=oe(r,fre),l=r,a=pre(l),{titleId:u=s}=c.useContext(dN);return $.jsx(hre,x({component:"h2",className:ye(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:u},i))}),gre=mre;function vre(e){return Ke("MuiDivider",e)}const yre=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),H$=yre,bre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wre=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:l,variant:a}=e;return _e({root:["root",t&&"absolute",a,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},vre,r)},Cre=te("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>x({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:it(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>x({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>x({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>x({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xre=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>x({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),hN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:l=s?"div":"hr",flexItem:a=!1,light:u=!1,orientation:f="horizontal",role:p=l!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=r,y=oe(r,bre),m=x({},r,{absolute:o,component:l,flexItem:a,light:u,orientation:f,role:p,textAlign:g,variant:v}),C=wre(m);return $.jsx(Cre,x({as:l,className:ye(C.root,i),role:p,ref:n,ownerState:m},y,{children:s?$.jsx(xre,{className:C.wrapper,ownerState:m,children:s}):null}))});hN.muiSkipListHighlight=!0;const Zp=hN,Sre=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pre(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Yo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=s.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,a=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),a=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${s.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+a-r.top}px)`:`translateY(${s.innerHeight+a-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-a}px)`:`translateY(-${r.top+r.height-a}px)`}function kre(e){return typeof e=="function"?e():e}function rg(e,t,n){const r=kre(n),o=Pre(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Ire=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,container:u,direction:f="down",easing:p=o,in:g,onEnter:v,onEntered:y,onEntering:m,onExit:C,onExited:b,onExiting:w,style:S,timeout:k=s,TransitionComponent:M=kh}=t,I=oe(t,Sre),E=c.useRef(null),T=It(a.ref,E,n),L=D=>N=>{D&&(N===void 0?D(E.current):D(E.current,N))},O=L((D,N)=>{rg(f,D,u),DP(D),v&&v(D,N)}),R=L((D,N)=>{const H=Ca({timeout:k,style:S,easing:p},{mode:"enter"});D.style.webkitTransition=r.transitions.create("-webkit-transform",x({},H)),D.style.transition=r.transitions.create("transform",x({},H)),D.style.webkitTransform="none",D.style.transform="none",m&&m(D,N)}),V=L(y),j=L(w),_=L(D=>{const N=Ca({timeout:k,style:S,easing:p},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",N),D.style.transition=r.transitions.create("transform",N),rg(f,D,u),C&&C(D)}),A=L(D=>{D.style.webkitTransition="",D.style.transition="",b&&b(D)}),F=D=>{i&&i(E.current,D)},z=c.useCallback(()=>{E.current&&rg(f,E.current,u)},[f,u]);return c.useEffect(()=>{if(g||f==="down"||f==="right")return;const D=Ta(()=>{E.current&&rg(f,E.current,u)}),N=Yo(E.current);return N.addEventListener("resize",D),()=>{D.clear(),N.removeEventListener("resize",D)}},[f,g,u]),c.useEffect(()=>{g||z()},[g,z]),$.jsx(M,x({nodeRef:E,onEnter:O,onEntered:V,onEntering:R,onExit:_,onExited:A,onExiting:j,addEndListener:F,appear:l,in:g,timeout:k},I,{children:(D,N)=>c.cloneElement(a,x({ref:T,style:x({visibility:D==="exited"&&!g?"hidden":void 0},S,a.props.style)},N))}))}),Ere=Ire;function Mre(e){return Ke("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Tre=["BackdropProps"],_re=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mN=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},$re=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(n)}`,r!=="temporary"&&`paperAnchorDocked${xe(n)}`]};return _e(o,Mre,t)},Rre=te(Ib,{name:"MuiDrawer",slot:"Root",overridesResolver:mN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),U$=te("div",{shouldForwardProp:Qr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mN})({flex:"0 0 auto"}),Ore=te(zs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${xe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${xe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({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}`})),gN={left:"right",right:"left",top:"down",bottom:"up"};function Dre(e){return["left","right"].indexOf(e)!==-1}function Are(e,t){return e.direction==="rtl"&&Dre(t)?gN[t]:t}const Lre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDrawer"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:a,className:u,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:v,open:y=!1,PaperProps:m={},SlideProps:C,TransitionComponent:b=Ere,transitionDuration:w=s,variant:S="temporary"}=r,k=oe(r.ModalProps,Tre),M=oe(r,_re),I=c.useRef(!1);c.useEffect(()=>{I.current=!0},[]);const E=Are(o,i),L=x({},r,{anchor:i,elevation:f,open:y,variant:S},M),O=$re(L),R=$.jsx(Ore,x({elevation:S==="temporary"?f:0,square:!0},m,{className:ye(O.paper,m.className),ownerState:L,children:a}));if(S==="permanent")return $.jsx(U$,x({className:ye(O.root,O.docked,u),ownerState:L,ref:n},M,{children:R}));const V=$.jsx(b,x({in:y,direction:gN[E],timeout:w,appear:I.current},C,{children:R}));return S==="persistent"?$.jsx(U$,x({className:ye(O.root,O.docked,u),ownerState:L,ref:n},M,{children:V})):$.jsx(Rre,x({BackdropProps:x({},l,g,{transitionDuration:w}),className:ye(O.root,O.modal,u),open:y,ownerState:L,onClose:v,hideBackdrop:p,ref:n},M,k,{children:V}))}),Fre=Lre,Nre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Bre=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},nte,t);return x({},t,o)},zre=te(wb,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yb(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)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Vre=te(Cb,{name:"MuiFilledInput",slot:"Input",overridesResolver:bb})(({theme:e,ownerState:t})=>x({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.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:m="text"}=l,C=oe(l,Nre),b=x({},l,{fullWidth:f,inputComponent:p,multiline:g,type:m}),w=Bre(l),S={root:{ownerState:b},input:{ownerState:b}},k=(v!=null?v:u)?Gr(S,v!=null?v:u):S,M=(r=(o=y.root)!=null?o:a.Root)!=null?r:zre,I=(s=(i=y.input)!=null?i:a.Input)!=null?s:Vre;return $.jsx(Bd,x({slots:{root:M,input:I},componentsProps:k,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:m},C,{classes:w}))});vN.muiName="Input";const yN=vN;function jre(e){return Ke("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Hre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ure=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${xe(n)}`,r&&"fullWidth"]};return _e(o,jre,t)},Wre=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({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%"})),Gre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:l="div",disabled:a=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:g=!1,margin:v="none",required:y=!1,size:m="medium",variant:C="outlined"}=r,b=oe(r,Hre),w=x({},r,{color:i,component:l,disabled:a,error:u,fullWidth:p,hiddenLabel:g,margin:v,required:y,size:m,variant:C}),S=Ure(w),[k,M]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,_=>{if(!pp(_,["Input","Select"]))return;const A=pp(_,["Select"])?_.props.input:_;A&&Wee(A.props)&&(j=!0)}),j}),[I,E]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,_=>{pp(_,["Input","Select"])&&($v(_.props,!0)||$v(_.props.inputProps,!0))&&(j=!0)}),j}),[T,L]=c.useState(!1);a&&T&&L(!1);const O=f!==void 0&&!a?f:T;let R;const V=c.useMemo(()=>({adornedStart:k,setAdornedStart:M,color:i,disabled:a,error:u,filled:I,focused:O,fullWidth:p,hiddenLabel:g,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{L(!0)},registerEffect:R,required:y,variant:C}),[k,i,a,u,I,O,p,g,R,y,m,C]);return $.jsx(vb.Provider,{value:V,children:$.jsx(Wre,x({as:l,ownerState:w,className:ye(S.root,s),ref:n},b,{children:o}))})}),bN=Gre,Kre=AQ({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),qre=Kre;function Yre(e){return Ke("MuiFormControlLabel",e)}const Qre=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Xf=Qre,Xre=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Zre=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${xe(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return _e(i,Yre,t)},Jre=te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xf.label}`]:t.label},t.root,t[`labelPlacement${xe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xf.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},{[`& .${Xf.label}`]:{[`&.${Xf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),eoe=te("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Xf.error}`]:{color:(e.vars||e).palette.error.main}})),toe=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:a,disabled:u,disableTypography:f,label:p,labelPlacement:g="end",required:v,slotProps:y={}}=s,m=oe(s,Xre),C=Cl(),b=(r=u!=null?u:a.props.disabled)!=null?r:C==null?void 0:C.disabled,w=v!=null?v:a.props.required,S={disabled:b,required:w};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof a.props[L]=="undefined"&&typeof s[L]!="undefined"&&(S[L]=s[L])});const k=Lc({props:s,muiFormControl:C,states:["error"]}),M=x({},s,{disabled:b,labelPlacement:g,required:w,error:k.error}),I=Zre(M),E=(o=y.typography)!=null?o:l.typography;let T=p;return T!=null&&T.type!==Kn&&!f&&(T=$.jsx(Kn,x({component:"span"},E,{className:ye(I.label,E==null?void 0:E.className),children:T}))),$.jsxs(Jre,x({className:ye(I.root,i),ownerState:M,ref:n},m,{children:[c.cloneElement(a,S),w?$.jsxs(qre,{display:"block",children:[T,$.jsxs(eoe,{ownerState:M,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):T]}))}),wN=toe;function noe(e){return Ke("MuiFormHelperText",e)}const roe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),W$=roe;var G$;const ooe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],soe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:l,required:a}=e,u={root:["root",o&&"disabled",s&&"error",r&&`size${xe(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return _e(u,noe,t)},ioe=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${W$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${W$.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),loe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=oe(r,ooe),a=Cl(),u=Lc({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=x({},r,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=soe(f);return $.jsx(ioe,x({as:i,ownerState:f,className:ye(p.root,s),ref:n},l,{children:o===" "?G$||(G$=$.jsx("span",{className:"notranslate",children:""})):o}))}),Vd=loe;function aoe(e){return Ke("MuiFormLabel",e)}const coe=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wp=coe,uoe=["children","className","color","component","disabled","error","filled","focused","required"],doe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:l}=e,a={root:["root",`color${xe(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return _e(a,aoe,t)},foe=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${wp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wp.error}`]:{color:(e.vars||e).palette.error.main}})),poe=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${wp.error}`]:{color:(e.vars||e).palette.error.main}})),hoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=oe(r,uoe),a=Cl(),u=Lc({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=x({},r,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=doe(f);return $.jsxs(foe,x({as:i,ownerState:f,className:ye(p.root,s),ref:n},l,{children:[o,u.required&&$.jsxs(poe,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),CN=hoe,moe=c.createContext(),K$=moe;function goe(e){return Ke("MuiGrid",e)}const voe=[0,1,2,3,4,5,6,7,8,9,10],yoe=["column-reverse","column","row-reverse","row"],boe=["nowrap","wrap-reverse","wrap"],Of=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Jp=We("MuiGrid",["root","container","item","zeroMinWidth",...voe.map(e=>`spacing-xs-${e}`),...yoe.map(e=>`direction-xs-${e}`),...boe.map(e=>`wrap-xs-${e}`),...Of.map(e=>`grid-xs-${e}`),...Of.map(e=>`grid-sm-${e}`),...Of.map(e=>`grid-md-${e}`),...Of.map(e=>`grid-lg-${e}`),...Of.map(e=>`grid-xl-${e}`)]),woe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Xu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Coe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=lc({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[o]:i;if(l==null)return r;const a=`${Math.round(n/l*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const p=`calc(${a} + ${Xu(f)})`;u={flexBasis:p,maxWidth:p}}}s=x({flexBasis:a,flexGrow:0,maxWidth:a},u)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function xoe({theme:e,ownerState:t}){const n=lc({values:t.direction,breakpoints:e.breakpoints.values});return _o({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Jp.item}`]={maxWidth:"none"}),o})}function xN({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function Soe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=lc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=xN({breakpoints:e.breakpoints.values,values:s})),o=_o({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${Xu(f)}`,[`& > .${Jp.item}`]:{paddingTop:Xu(f)}}:(u=i)!=null&&u.includes(a)?{}:{marginTop:0,[`& > .${Jp.item}`]:{paddingTop:0}}})}return o}function Poe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=lc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=xN({breakpoints:e.breakpoints.values,values:s})),o=_o({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${Xu(f)})`,marginLeft:`-${Xu(f)}`,[`& > .${Jp.item}`]:{paddingLeft:Xu(f)}}:(u=i)!=null&&u.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${Jp.item}`]:{paddingLeft:0}}})}return o}function koe(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 s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const Ioe=te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:l,zeroMinWidth:a,breakpoints:u}=n;let f=[];r&&(f=koe(i,u,t));const p=[];return u.forEach(g=>{const v=n[g];v&&p.push(t[`grid-${g}-${String(v)}`])}),[t.root,r&&t.container,s&&t.item,a&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...p]}})(({ownerState:e})=>x({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}),xoe,Soe,Poe,Coe);function Eoe(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 s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const Moe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let u=[];n&&(u=Eoe(s,a));const f=[];a.forEach(g=>{const v=e[g];v&&f.push(`grid-${g}-${String(v)}`)});const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return _e(p,goe,t)},Toe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiGrid"}),{breakpoints:o}=yn(),s=cb(r),{className:i,columns:l,columnSpacing:a,component:u="div",container:f=!1,direction:p="row",item:g=!1,rowSpacing:v,spacing:y=0,wrap:m="wrap",zeroMinWidth:C=!1}=s,b=oe(s,woe),w=v||y,S=a||y,k=c.useContext(K$),M=f?l||12:k,I={},E=x({},b);o.keys.forEach(O=>{b[O]!=null&&(I[O]=b[O],delete E[O])});const T=x({},s,{columns:M,container:f,direction:p,item:g,rowSpacing:w,columnSpacing:S,wrap:m,zeroMinWidth:C,spacing:y},I,{breakpoints:o.keys}),L=Moe(T);return $.jsx(K$.Provider,{value:M,children:$.jsx(Ioe,x({ownerState:T,className:ye(L.root,i),as:u,ref:n},E))})}),ti=Toe,_oe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mx(e){return`scale(${e}, ${ms(e,2)})`}const $oe={entering:{opacity:1,transform:mx(1)},entered:{opacity:1,transform:"none"}},xw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),SN=c.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:a,onEntered:u,onEntering:f,onExit:p,onExited:g,onExiting:v,style:y,timeout:m="auto",TransitionComponent:C=kh}=t,b=oe(t,_oe),w=c.useRef(),S=c.useRef(),k=yn(),M=c.useRef(null),I=It(M,s.ref,n),E=A=>F=>{if(A){const z=M.current;F===void 0?A(z):A(z,F)}},T=E(f),L=E((A,F)=>{DP(A);const{duration:z,delay:D,easing:N}=Ca({style:y,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=k.transitions.getAutoHeightDuration(A.clientHeight),S.current=H):H=z,A.style.transition=[k.transitions.create("opacity",{duration:H,delay:D}),k.transitions.create("transform",{duration:xw?H:H*.666,delay:D,easing:N})].join(","),a&&a(A,F)}),O=E(u),R=E(v),V=E(A=>{const{duration:F,delay:z,easing:D}=Ca({style:y,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=k.transitions.getAutoHeightDuration(A.clientHeight),S.current=N):N=F,A.style.transition=[k.transitions.create("opacity",{duration:N,delay:z}),k.transitions.create("transform",{duration:xw?N:N*.666,delay:xw?z:z||N*.333,easing:D})].join(","),A.style.opacity=0,A.style.transform=mx(.75),p&&p(A)}),j=E(g),_=A=>{m==="auto"&&(w.current=setTimeout(A,S.current||0)),r&&r(M.current,A)};return c.useEffect(()=>()=>{clearTimeout(w.current)},[]),$.jsx(C,x({appear:o,in:l,nodeRef:M,onEnter:L,onEntered:O,onEntering:T,onExit:V,onExited:j,onExiting:R,addEndListener:_,timeout:m==="auto"?null:m},b,{children:(A,F)=>c.cloneElement(s,x({style:x({opacity:0,transform:mx(.75),visibility:A==="exited"&&!l?"hidden":void 0},$oe[A],y,s.props.style),ref:I},F))}))});SN.muiSupportAuto=!0;const eh=SN;function Roe(e,t,n,r,o){const[s,i]=c.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Nt(()=>{let l=!0;if(!n)return;const a=n(e),u=()=>{l&&i(a.matches)};return u(),a.addListener(u),()=>{l=!1,a.removeListener(u)}},[e,n]),s}const PN=hc["useSyncExternalStore"];function Ooe(e,t,n,r,o){const s=c.useCallback(()=>t,[t]),i=c.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return s},[s,e,r,o,n]),[l,a]=c.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[s,n,e]);return PN(a,l,i)}function Eb(e,t={}){const n=ab(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=LF({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(PN!==void 0?Ooe:Roe)(a,o,s,i,l)}const Doe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Aoe=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},Zee,t);return x({},t,o)},Loe=te(wb,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...yb(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})`),x({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"},[`&.${Ql.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ql.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(.${Ql.disabled}, .${Ql.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ql.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Foe=te(Cb,{name:"MuiInput",slot:"Input",overridesResolver:bb})({}),kN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:f,fullWidth:p=!1,inputComponent:g="input",multiline:v=!1,slotProps:y,slots:m={},type:C="text"}=l,b=oe(l,Doe),w=Aoe(l),k={root:{ownerState:{disableUnderline:a}}},M=(y!=null?y:f)?Gr(y!=null?y:f,k):k,I=(r=(o=m.root)!=null?o:u.Root)!=null?r:Loe,E=(s=(i=m.input)!=null?i:u.Input)!=null?s:Foe;return $.jsx(Bd,x({slots:{root:I,input:E},slotProps:M,fullWidth:p,inputComponent:g,multiline:v,ref:n,type:C},b,{classes:w}))});kN.muiName="Input";const IN=kN;function Noe(e){return Ke("MuiInputAdornment",e)}const Boe=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),q$=Boe;var Y$;const zoe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Voe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},joe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${xe(o)}`,i,r&&"hiddenLabel",s&&`size${xe(s)}`]};return _e(l,Noe,t)},Hoe=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Voe})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${q$.positionStart}&:not(.${q$.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Uoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:l=!1,disableTypography:a=!1,position:u,variant:f}=r,p=oe(r,zoe),g=Cl()||{};let v=f;f&&g.variant,g&&!v&&(v=g.variant);const y=x({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:u,variant:v}),m=joe(y);return $.jsx(vb.Provider,{value:null,children:$.jsx(Hoe,x({as:i,ownerState:y,className:ye(m.root,s),ref:n},p,{children:typeof o=="string"&&!a?$.jsx(Kn,{color:"text.secondary",children:o}):$.jsxs(c.Fragment,{children:[u==="start"?Y$||(Y$=$.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),gl=Uoe;function Woe(e){return Ke("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Goe=["disableAnimation","margin","shrink","variant","className"],Koe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:l}=e,a={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${xe(r)}`,i],asterisk:[l&&"asterisk"]},u=_e(a,Woe,t);return x({},t,u)},qoe=te(CN,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wp.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>x({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"&&x({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&&x({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"&&x({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)"}),t.variant==="standard"&&{"&:not(label) + div":{marginTop:16}})),Yoe=c.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=oe(r,Goe),a=Cl();let u=s;typeof u=="undefined"&&a&&(u=a.filled||a.focused||a.adornedStart);const f=Lc({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=x({},r,{disableAnimation:o,formControl:a,shrink:u,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),g=Koe(p);return $.jsx(qoe,x({"data-shrink":u,ownerState:p,ref:n,className:ye(g.root,i)},l,{classes:g}))}),EN=Yoe;function Qoe(e){return Ke("MuiLinearProgress",e)}We("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Xoe=["className","color","value","valueBuffer","variant"];let jd=e=>e,Q$,X$,Z$,J$,eR,tR;const gx=4,Zoe=Bi(Q$||(Q$=jd`
|
|
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
|
+
`)),Joe=Bi(X$||(X$=jd`
|
|
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
|
+
`)),ese=Bi(Z$||(Z$=jd`
|
|
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
|
+
`)),tse=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${xe(r)}`,n],dashed:["dashed",`dashedColor${xe(r)}`],bar1:["bar",`barColor${xe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${xe(r)}`,n==="buffer"&&`color${xe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return _e(o,Qoe,t)},HP=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Pc(e.palette[t].main,.62):Sc(e.palette[t].main,.5),nse=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${xe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>x({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:HP(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)"})),rse=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${xe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=HP(t,e.color);return x({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"})},wa(J$||(J$=jd`
|
|
235
|
+
animation: ${0} 3s infinite linear;
|
|
236
|
+
`),ese)),ose=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${xe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>x({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 .${gx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${gx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&wa(eR||(eR=jd`
|
|
237
|
+
width: auto;
|
|
238
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
+
`),Zoe)),sse=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${xe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>x({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:HP(t,e.color),transition:`transform .${gx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&wa(tR||(tR=jd`
|
|
240
|
+
width: auto;
|
|
241
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
+
`),Joe)),ise=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:l,variant:a="indeterminate"}=r,u=oe(r,Xoe),f=x({},r,{color:s,variant:a}),p=tse(f),g=yn(),v={},y={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){v["aria-valuenow"]=Math.round(i),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let m=i-100;g.direction==="rtl"&&(m=-m),y.bar1.transform=`translateX(${m}%)`}if(a==="buffer"&&l!==void 0){let m=(l||0)-100;g.direction==="rtl"&&(m=-m),y.bar2.transform=`translateX(${m}%)`}return $.jsxs(nse,x({className:ye(p.root,o),ownerState:f,role:"progressbar"},v,{ref:n},u,{children:[a==="buffer"?$.jsx(rse,{className:p.dashed,ownerState:f}):null,$.jsx(ose,{className:p.bar1,ownerState:f,style:y.bar1}),a==="determinate"?null:$.jsx(sse,{className:p.bar2,ownerState:f,style:y.bar2})]}))}),Rv=ise;function lse(e){return Ke("MuiLink",e)}const ase=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cse=ase,MN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},use=e=>MN[e]||e,dse=({theme:e,ownerState:t})=>{const n=use(t.color),r=pd(e,`palette.${n}`,!1)||t.color,o=pd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:it(r,.4)},fse=dse,pse=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],hse=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${xe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return _e(s,lse,t)},mse=te(Kn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${xe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>x({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&x({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:fse({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"},[`&.${cse.focusVisible}`]:{outline:"auto"}})),gse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:l,onFocus:a,TypographyClasses:u,underline:f="always",variant:p="inherit",sx:g}=r,v=oe(r,pse),{isFocusVisibleRef:y,onBlur:m,onFocus:C,ref:b}=By(),[w,S]=c.useState(!1),k=It(n,b),M=L=>{m(L),y.current===!1&&S(!1),l&&l(L)},I=L=>{C(L),y.current===!0&&S(!0),a&&a(L)},E=x({},r,{color:s,component:i,focusVisible:w,underline:f,variant:p}),T=hse(E);return $.jsx(mse,x({color:s,className:ye(T.root,o),classes:u,component:i,onBlur:M,onFocus:I,ref:k,ownerState:E,variant:p,sx:[...Object.keys(MN).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},v))}),As=gse,vse=c.createContext({}),si=vse;function yse(e){return Ke("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const bse=["children","className","component","dense","disablePadding","subheader"],wse=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return _e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yse,t)},Cse=te("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})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),xse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,f=oe(r,bse),p=c.useMemo(()=>({dense:l}),[l]),g=x({},r,{component:i,dense:l,disablePadding:a}),v=wse(g);return $.jsx(si.Provider,{value:p,children:$.jsxs(Cse,x({as:i,className:ye(v.root,s),ref:n,ownerState:g},f,{children:[u,o]}))})}),Mh=xse;function Sse(e){return Ke("MuiListItem",e)}const Pse=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),wu=Pse;function kse(e){return Ke("MuiListItemButton",e)}const Ise=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Cu=Ise,Ese=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Mse=(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]},Tse=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:l}=e,u=_e({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},kse,n);return x({},n,u)},_se=te(ai,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Mse})(({theme:e,ownerState:t})=>x({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"}},[`&.${Cu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cu.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})),$se=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:l,dense:a=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:p,selected:g=!1,className:v}=r,y=oe(r,Ese),m=c.useContext(si),C=c.useMemo(()=>({dense:a||m.dense||!1,alignItems:o,disableGutters:u}),[o,m.dense,a,u]),b=c.useRef(null);Nt(()=>{s&&b.current&&b.current.focus()},[s]);const w=x({},r,{alignItems:o,dense:C.dense,disableGutters:u,divider:f,selected:g}),S=Tse(w),k=It(b,n);return $.jsx(si.Provider,{value:C,children:$.jsx(_se,x({ref:k,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:ye(S.focusVisible,p),ownerState:w,className:ye(S.root,v)},y,{classes:S,children:l}))})}),Rse=$se;function Ose(e){return Ke("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const Dse=["className"],Ase=e=>{const{disableGutters:t,classes:n}=e;return _e({root:["root",t&&"disableGutters"]},Ose,n)},Lse=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>x({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),TN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=oe(r,Dse),i=c.useContext(si),l=x({},r,{disableGutters:i.disableGutters}),a=Ase(l);return $.jsx(Lse,x({className:ye(a.root,o),ownerState:l,ref:n},s))});TN.muiName="ListItemSecondaryAction";const Fse=TN,Nse=["className"],Bse=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],zse=(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]},Vse=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:l,divider:a,hasSecondaryAction:u,selected:f}=e;return _e({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",a&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},Sse,r)},jse=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:zse})(({theme:e,ownerState:t})=>x({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&x({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Cu.root}`]:{paddingRight:48}},{[`&.${wu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wu.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"}},[`&.${wu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Hse=te("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Use=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:i=!1,children:l,className:a,component:u,components:f={},componentsProps:p={},ContainerComponent:g="li",ContainerProps:{className:v}={},dense:y=!1,disabled:m=!1,disableGutters:C=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:M=!1,slotProps:I={},slots:E={}}=r,T=oe(r.ContainerProps,Nse),L=oe(r,Bse),O=c.useContext(si),R=c.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:C}),[o,O.dense,y,C]),V=c.useRef(null);Nt(()=>{s&&V.current&&V.current.focus()},[s]);const j=c.Children.toArray(l),_=j.length&&pp(j[j.length-1],["ListItemSecondaryAction"]),A=x({},r,{alignItems:o,autoFocus:s,button:i,dense:R.dense,disabled:m,disableGutters:C,disablePadding:b,divider:w,hasSecondaryAction:_,selected:M}),F=Vse(A),z=It(V,n),D=E.root||f.Root||jse,N=I.root||p.root||{},H=x({className:ye(F.root,N.className,a),disabled:m},L);let K=u||"li";return i&&(H.component=u||"div",H.focusVisibleClassName=ye(wu.focusVisible,S),K=ai),_?(K=!H.component&&!u?"div":K,g==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),$.jsx(si.Provider,{value:R,children:$.jsxs(Hse,x({as:g,className:ye(F.container,v),ref:z,ownerState:A},T,{children:[$.jsx(D,x({},N,!kc(D)&&{as:K,ownerState:x({},A,N.ownerState)},H,{children:j})),j.pop()]}))})):$.jsx(si.Provider,{value:R,children:$.jsxs(D,x({},N,{as:K,ref:z},!kc(D)&&{ownerState:x({},A,N.ownerState)},H,{children:[j,k&&$.jsx(Fse,{children:k})]}))})}),UP=Use;function Wse(e){return Ke("MuiListItemIcon",e)}const Gse=We("MuiListItemIcon",["root","alignItemsFlexStart"]),nR=Gse,Kse=["className"],qse=e=>{const{alignItems:t,classes:n}=e;return _e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Wse,n)},Yse=te("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})=>x({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Qse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=oe(r,Kse),i=c.useContext(si),l=x({},r,{alignItems:i.alignItems}),a=qse(l);return $.jsx(Yse,x({className:ye(a.root,o),ownerState:l,ref:n},s))}),cl=Qse;function Xse(e){return Ke("MuiListItemText",e)}const Zse=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ov=Zse,Jse=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],eie=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return _e({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Xse,t)},tie=te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ov.primary}`]:t.primary},{[`& .${Ov.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>x({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),nie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p}=r,g=oe(r,Jse),{dense:v}=c.useContext(si);let y=a!=null?a:o,m=f;const C=x({},r,{disableTypography:i,inset:l,primary:!!y,secondary:!!m,dense:v}),b=eie(C);return y!=null&&y.type!==Kn&&!i&&(y=$.jsx(Kn,x({variant:v?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),m!=null&&m.type!==Kn&&!i&&(m=$.jsx(Kn,x({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:m}))),$.jsxs(tie,x({className:ye(b.root,s),ownerState:C,ref:n},g,{children:[y,m]}))}),Mi=nie,rie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _N(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 Df(e,t,n,r,o,s){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!_N(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const oie=c.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu"}=t,g=oe(t,rie),v=c.useRef(null),y=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nt(()=>{o&&v.current.focus()},[o]),c.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const M=!v.current.style.width;if(S.clientHeight<v.current.clientHeight&&M){const I=`${aF(fn(S))}px`;v.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=I,v.current.style.width=`calc(100% + ${I})`}return v.current}}),[]);const m=S=>{const k=v.current,M=S.key,I=fn(k).activeElement;if(M==="ArrowDown")S.preventDefault(),Df(k,I,u,a,Sw);else if(M==="ArrowUp")S.preventDefault(),Df(k,I,u,a,rR);else if(M==="Home")S.preventDefault(),Df(k,null,u,a,Sw);else if(M==="End")S.preventDefault(),Df(k,null,u,a,rR);else if(M.length===1){const E=y.current,T=M.toLowerCase(),L=performance.now();E.keys.length>0&&(L-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&T!==E.keys[0]&&(E.repeating=!1)),E.lastTime=L,E.keys.push(T);const O=I&&!E.repeating&&_N(I,E);E.previousKeyMatched&&(O||Df(k,I,!1,a,Sw,E))?S.preventDefault():E.previousKeyMatched=!1}f&&f(S)},C=It(v,n);let b=-1;c.Children.forEach(i,(S,k)=>{if(!c.isValidElement(S)){b===k&&(b+=1,b>=i.length&&(b=-1));return}S.props.disabled||(p==="selectedMenu"&&S.props.selected||b===-1)&&(b=k),b===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const w=c.Children.map(i,(S,k)=>{if(k===b){const M={};return s&&(M.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(M.tabIndex=0),c.cloneElement(S,M)}return S});return $.jsx(Mh,x({role:"menu",ref:C,className:l,onKeyDown:m,tabIndex:o?0:-1},g,{children:w}))}),Hd=oie;function sie(e){return Ke("MuiPopover",e)}We("MuiPopover",["root","paper"]);const iie=["onEntering"],lie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],aie=["slotProps"];function oR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function sR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function iR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pw(e){return typeof e=="function"?e():e}const cie=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},sie,t)},uie=te(Ib,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$N=te(zs,{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}),die=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:g,className:v,container:y,elevation:m=8,marginThreshold:C=16,open:b,PaperProps:w={},slots:S,slotProps:k,transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:I=eh,transitionDuration:E="auto",TransitionProps:{onEntering:T}={},disableScrollLock:L=!1}=i,O=oe(i.TransitionProps,iie),R=oe(i,lie),V=(r=k==null?void 0:k.paper)!=null?r:w,j=c.useRef(),_=It(j,V.ref),A=x({},i,{anchorOrigin:u,anchorReference:p,elevation:m,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:M,TransitionComponent:I,transitionDuration:E,TransitionProps:O}),F=cie(A),z=c.useCallback(()=>{if(p==="anchorPosition")return f;const de=Pw(a),Ie=(de&&de.nodeType===1?de:fn(j.current).body).getBoundingClientRect();return{top:Ie.top+oR(Ie,u.vertical),left:Ie.left+sR(Ie,u.horizontal)}},[a,u.horizontal,u.vertical,f,p]),D=c.useCallback(de=>({vertical:oR(de,M.vertical),horizontal:sR(de,M.horizontal)}),[M.horizontal,M.vertical]),N=c.useCallback(de=>{const ke={width:de.offsetWidth,height:de.offsetHeight},Ie=D(ke);if(p==="none")return{top:null,left:null,transformOrigin:iR(Ie)};const le=z();let Ee=le.top-Ie.vertical,me=le.left-Ie.horizontal;const Me=Ee+ke.height,ue=me+ke.width,ce=Yo(Pw(a)),ie=ce.innerHeight-C,ge=ce.innerWidth-C;if(C!==null&&Ee<C){const Te=Ee-C;Ee-=Te,Ie.vertical+=Te}else if(C!==null&&Me>ie){const Te=Me-ie;Ee-=Te,Ie.vertical+=Te}if(C!==null&&me<C){const Te=me-C;me-=Te,Ie.horizontal+=Te}else if(ue>ge){const Te=ue-ge;me-=Te,Ie.horizontal+=Te}return{top:`${Math.round(Ee)}px`,left:`${Math.round(me)}px`,transformOrigin:iR(Ie)}},[a,p,z,D,C]),[H,K]=c.useState(b),Y=c.useCallback(()=>{const de=j.current;if(!de)return;const ke=N(de);ke.top!==null&&(de.style.top=ke.top),ke.left!==null&&(de.style.left=ke.left),de.style.transformOrigin=ke.transformOrigin,K(!0)},[N]);c.useEffect(()=>(L&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,L,Y]);const Z=(de,ke)=>{T&&T(de,ke),Y()},Q=()=>{K(!1)};c.useEffect(()=>{b&&Y()}),c.useImperativeHandle(l,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),c.useEffect(()=>{if(!b)return;const de=Ta(()=>{Y()}),ke=Yo(a);return ke.addEventListener("resize",de),()=>{de.clear(),ke.removeEventListener("resize",de)}},[a,b,Y]);let X=E;E==="auto"&&!I.muiSupportAuto&&(X=void 0);const J=y||(a?fn(Pw(a)).body:void 0),ne=(o=S==null?void 0:S.root)!=null?o:uie,fe=(s=S==null?void 0:S.paper)!=null?s:$N,we=qt({elementType:fe,externalSlotProps:x({},V,{style:H?V.style:x({},V.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:A,className:ye(F.paper,V==null?void 0:V.className)}),Ce=qt({elementType:ne,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:b},ownerState:A,className:ye(F.root,v)}),{slotProps:ae}=Ce,be=oe(Ce,aie);return $.jsx(ne,x({},be,!kc(ne)&&{slotProps:ae,disableScrollLock:L},{children:$.jsx(I,x({appear:!0,in:b,onEntering:Z,onExited:Q,timeout:X},O,{children:$.jsx(fe,x({},we,{children:g}))}))}))}),fie=die;function pie(e){return Ke("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const hie=["onEntering"],mie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gie={vertical:"top",horizontal:"right"},vie={vertical:"top",horizontal:"left"},yie=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},pie,t)},bie=te(fie,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wie=te($N,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cie=te(Hd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xie=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:a,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:p,open:g,PaperProps:v={},PopoverClasses:y,transitionDuration:m="auto",TransitionProps:{onEntering:C}={},variant:b="selectedMenu",slots:w={},slotProps:S={}}=s,k=oe(s.TransitionProps,hie),M=oe(s,mie),I=yn(),E=I.direction==="rtl",T=x({},s,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:f,onEntering:C,PaperProps:v,transitionDuration:m,TransitionProps:k,variant:b}),L=yie(T),O=i&&!u&&g,R=c.useRef(null),V=(N,H)=>{R.current&&R.current.adjustStyleForScrollbar(N,I),C&&C(N,H)},j=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let _=-1;c.Children.map(l,(N,H)=>{c.isValidElement(N)&&(N.props.disabled||(b==="selectedMenu"&&N.props.selected||_===-1)&&(_=H))});const A=(r=w.paper)!=null?r:wie,F=(o=S.paper)!=null?o:v,z=qt({elementType:w.root,externalSlotProps:S.root,ownerState:T,className:[L.root,a]}),D=qt({elementType:A,externalSlotProps:F,ownerState:T,className:L.paper});return $.jsx(bie,x({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?gie:vie,slots:{paper:A,root:w.root},slotProps:{root:z,paper:D},open:g,ref:n,transitionDuration:m,TransitionProps:x({onEntering:V},k),ownerState:T},M,{classes:y,children:$.jsx(Cie,x({onKeyDown:j,actions:R,autoFocus:i&&(_===-1||u),autoFocusItem:O,variant:b},f,{className:ye(L.list,f.className),children:l}))}))}),RN=xie;function Sie(e){return Ke("MuiMenuItem",e)}const Pie=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Af=Pie,kie=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Iie=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eie=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,a=_e({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},Sie,i);return x({},i,a)},Mie=te(ai,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Iie})(({theme:e,ownerState:t})=>x({},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"}},[`&.${Af.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Af.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Af.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Af.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Af.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${H$.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${H$.inset}`]:{marginLeft:52},[`& .${Ov.root}`]:{marginTop:0,marginBottom:0},[`& .${Ov.inset}`]:{paddingLeft:36},[`& .${nR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${nR.root} svg`]:{fontSize:"1.25rem"}}))),Tie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:g}=r,v=oe(r,kie),y=c.useContext(si),m=c.useMemo(()=>({dense:i||y.dense||!1,disableGutters:a}),[y.dense,i,a]),C=c.useRef(null);Nt(()=>{o&&C.current&&C.current.focus()},[o]);const b=x({},r,{dense:m.dense,divider:l,disableGutters:a}),w=Eie(r),S=It(C,n);let k;return r.disabled||(k=p!==void 0?p:-1),$.jsx(si.Provider,{value:m,children:$.jsx(Mie,x({ref:S,role:f,tabIndex:k,component:s,focusVisibleClassName:ye(w.focusVisible,u),className:ye(w.root,g)},v,{ownerState:b,classes:w}))})}),Sr=Tie;function _ie(e){return Ke("MuiNativeSelect",e)}const $ie=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),WP=$ie,Rie=["className","disabled","error","IconComponent","inputRef","variant"],Oie=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(n)}`,s&&"iconOpen",r&&"disabled"]};return _e(l,_ie,t)},ON=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":x({},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"},[`&.${WP.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}}),Die=te("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${WP.multiple}`]:t.multiple}]}})(ON),DN=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${WP.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Aie=te("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xe(n.variant)}`],n.open&&t.iconOpen]}})(DN),Lie=c.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,u=oe(t,Rie),f=x({},t,{disabled:o,variant:a,error:s}),p=Oie(f);return $.jsxs(c.Fragment,{children:[$.jsx(Die,x({ownerState:f,className:ye(p.select,r),disabled:o,ref:l||n},u)),t.multiple?null:$.jsx(Aie,{as:i,ownerState:f,className:p.icon})]})}),Fie=Lie;var lR;const Nie=["children","classes","className","label","notched"],Bie=te("fieldset",{shouldForwardProp:Qr})({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%"}),zie=te("legend",{shouldForwardProp:Qr})(({ownerState:e,theme:t})=>x({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&&x({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 Vie(e){const{className:t,label:n,notched:r}=e,o=oe(e,Nie),s=n!=null&&n!=="",i=x({},e,{notched:r,withLabel:s});return $.jsx(Bie,x({"aria-hidden":!0,className:t,ownerState:i},o,{children:$.jsx(zie,{ownerState:i,children:s?$.jsx("span",{children:n}):lR||(lR=$.jsx("span",{className:"notranslate",children:""}))})}))}const jie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Hie=e=>{const{classes:t}=e,r=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ete,t);return x({},t,r)},Uie=te(wb,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:yb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${yi.focused} .${yi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yi.error} .${yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yi.disabled} .${yi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Wie=te(Vie,{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}}),Gie=te(Cb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bb})(({theme:e,ownerState:t})=>x({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})),AN=c.forwardRef(function(t,n){var r,o,s,i,l;const a=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:p="input",label:g,multiline:v=!1,notched:y,slots:m={},type:C="text"}=a,b=oe(a,jie),w=Hie(a),S=Cl(),k=Lc({props:a,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M=x({},a,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:f,hiddenLabel:k.hiddenLabel,multiline:v,size:k.size,type:C}),I=(r=(o=m.root)!=null?o:u.Root)!=null?r:Uie,E=(s=(i=m.input)!=null?i:u.Input)!=null?s:Gie;return $.jsx(Bd,x({slots:{root:I,input:E},renderSuffix:T=>$.jsx(Wie,{ownerState:M,className:w.notchedOutline,label:g!=null&&g!==""&&k.required?l||(l=$.jsxs(c.Fragment,{children:[g," ","*"]})):g,notched:typeof y!="undefined"?y:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:C},b,{classes:x({},w,{notchedOutline:null})}))});AN.muiName="Input";const LN=AN,aR=bt($.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),cR=bt($.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Kie(e){return Ke("MuiSelect",e)}const qie=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lf=qie;var uR;const Yie=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Qie=te("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Lf.select}`]:t.select},{[`&.${Lf.select}`]:t[n.variant]},{[`&.${Lf.error}`]:t.error},{[`&.${Lf.multiple}`]:t.multiple}]}})(ON,{[`&.${Lf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xie=te("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xe(n.variant)}`],n.open&&t.iconOpen]}})(DN),Zie=te("input",{shouldForwardProp:e=>cX(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 dR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Jie(e){return e==null||typeof e=="string"&&!e.trim()}const ele=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _e(l,Kie,t)},tle=c.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:u,defaultOpen:f,defaultValue:p,disabled:g,displayEmpty:v,error:y=!1,IconComponent:m,inputRef:C,labelId:b,MenuProps:w={},multiple:S,name:k,onBlur:M,onChange:I,onClose:E,onFocus:T,onOpen:L,open:O,readOnly:R,renderValue:V,SelectDisplayProps:j={},tabIndex:_,value:A,variant:F="standard"}=t,z=oe(t,Yie),[D,N]=Kr({controlled:A,default:p,name:"Select"}),[H,K]=Kr({controlled:O,default:f,name:"Select"}),Y=c.useRef(null),Z=c.useRef(null),[Q,X]=c.useState(null),{current:J}=c.useRef(O!=null),[ne,fe]=c.useState(),we=It(n,C),Ce=c.useCallback(Xe=>{Z.current=Xe,Xe&&X(Xe)},[]),ae=Q==null?void 0:Q.parentNode;c.useImperativeHandle(we,()=>({focus:()=>{Z.current.focus()},node:Y.current,value:D}),[D]),c.useEffect(()=>{f&&H&&Q&&!J&&(fe(l?null:ae.clientWidth),Z.current.focus())},[Q,l]),c.useEffect(()=>{i&&Z.current.focus()},[i]),c.useEffect(()=>{if(!b)return;const Xe=fn(Z.current).getElementById(b);if(Xe){const Oe=()=>{getSelection().isCollapsed&&Z.current.focus()};return Xe.addEventListener("click",Oe),()=>{Xe.removeEventListener("click",Oe)}}},[b]);const be=(Xe,Oe)=>{Xe?L&&L(Oe):E&&E(Oe),J||(fe(l?null:ae.clientWidth),K(Xe))},de=Xe=>{Xe.button===0&&(Xe.preventDefault(),Z.current.focus(),be(!0,Xe))},ke=Xe=>{be(!1,Xe)},Ie=c.Children.toArray(a),le=Xe=>{const Oe=Ie.find(qe=>qe.props.value===Xe.target.value);Oe!==void 0&&(N(Oe.props.value),I&&I(Xe,Oe))},Ee=Xe=>Oe=>{let qe;if(Oe.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(D)?D.slice():[];const mt=D.indexOf(Xe.props.value);mt===-1?qe.push(Xe.props.value):qe.splice(mt,1)}else qe=Xe.props.value;if(Xe.props.onClick&&Xe.props.onClick(Oe),D!==qe&&(N(qe),I)){const mt=Oe.nativeEvent||Oe,vt=new mt.constructor(mt.type,mt);Object.defineProperty(vt,"target",{writable:!0,value:{value:qe,name:k}}),I(vt,Xe)}S||be(!1,Oe)}},me=Xe=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Xe.key)!==-1&&(Xe.preventDefault(),be(!0,Xe))},Me=Q!==null&&H,ue=Xe=>{!Me&&M&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:D,name:k}}),M(Xe))};delete z["aria-invalid"];let ce,ie;const ge=[];let Te=!1;($v({value:D})||v)&&(V?ce=V(D):Te=!0);const Ne=Ie.map(Xe=>{if(!c.isValidElement(Xe))return null;let Oe;if(S){if(!Array.isArray(D))throw new Error(ba(2));Oe=D.some(qe=>dR(qe,Xe.props.value)),Oe&&Te&&ge.push(Xe.props.children)}else Oe=dR(D,Xe.props.value),Oe&&Te&&(ie=Xe.props.children);return c.cloneElement(Xe,{"aria-selected":Oe?"true":"false",onClick:Ee(Xe),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),Xe.props.onKeyUp&&Xe.props.onKeyUp(qe)},role:"option",selected:Oe,value:void 0,"data-value":Xe.props.value})});Te&&(S?ge.length===0?ce=null:ce=ge.reduce((Xe,Oe,qe)=>(Xe.push(Oe),qe<ge.length-1&&Xe.push(", "),Xe),[]):ce=ie);let Ge=ne;!l&&J&&Q&&(Ge=ae.clientWidth);let Ve;typeof _!="undefined"?Ve=_:Ve=g?null:0;const Ue=j.id||(k?`mui-component-select-${k}`:void 0),Le=x({},t,{variant:F,value:D,open:Me,error:y}),pt=ele(Le),Zt=x({},w.PaperProps,(r=w.slotProps)==null?void 0:r.paper),Pt=Kt(),wt=Kt();return $.jsxs(c.Fragment,{children:[$.jsx(Qie,x({ref:Ce,tabIndex:Ve,role:"combobox","aria-controls":Pt,"aria-disabled":g?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[b,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:me,onMouseDown:g||R?null:de,onBlur:ue,onFocus:T},j,{ownerState:Le,className:ye(j.className,pt.select,u),id:Ue,children:Jie(ce)?uR||(uR=$.jsx("span",{className:"notranslate",children:""})):ce})),$.jsx(Zie,x({"aria-invalid":y,value:Array.isArray(D)?D.join(","):D,name:k!=null?k:wt,ref:Y,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:g,className:pt.nativeInput,autoFocus:i,ownerState:Le},z)),$.jsx(Xie,{as:m,className:pt.icon,ownerState:Le}),$.jsx(RN,x({id:`menu-${k||""}`,anchorEl:ae,open:Me,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:x({"aria-labelledby":b,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Pt},w.MenuListProps),slotProps:x({},w.slotProps,{paper:x({},Zt,{style:x({minWidth:Ge},Zt!=null?Zt.style:null)})}),children:Ne}))]})}),nle=tle,rle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ole=["root"],sle=e=>{const{classes:t}=e;return t},GP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qr(e)&&e!=="variant",slot:"Root"},ile=te(IN,GP)(""),lle=te(LN,GP)(""),ale=te(yN,GP)(""),FN=c.forwardRef(function(t,n){const r=je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:l,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:f=sN,id:p,input:g,inputProps:v,label:y,labelId:m,MenuProps:C,multiple:b=!1,native:w=!1,onClose:S,onOpen:k,open:M,renderValue:I,SelectDisplayProps:E,variant:T="outlined"}=r,L=oe(r,rle),O=w?Fie:nle,R=Cl(),V=Lc({props:r,muiFormControl:R,states:["variant","error"]}),j=V.variant||T,_=x({},r,{variant:j,classes:i}),A=sle(_),F=oe(A,ole),z=g||{standard:$.jsx(ile,{ownerState:_}),outlined:$.jsx(lle,{label:y,ownerState:_}),filled:$.jsx(ale,{ownerState:_})}[j],D=It(n,z.ref);return $.jsx(c.Fragment,{children:c.cloneElement(z,x({inputComponent:O,inputProps:x({children:s,error:V.error,IconComponent:f,variant:j,type:void 0,multiple:b},w?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:m,MenuProps:C,onClose:S,onOpen:k,open:M,renderValue:I,SelectDisplayProps:x({id:p},E)},v,{classes:v?Gr(F,v.classes):F},g?g.props.inputProps:{})},b&&w&&j==="outlined"?{notched:!0}:{},{ref:D,className:ye(z.props.className,l,A.root)},!g&&{variant:j},L))})});FN.muiName="Select";const KP=FN;function cle(e){return Ke("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const ule=["animation","className","component","height","style","variant","width"];let Dv=e=>e,fR,pR,hR,mR;const dle=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return _e({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},cle,t)},fle=Bi(fR||(fR=Dv`
|
|
243
|
+
0% {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
50% {
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
`)),ple=Bi(pR||(pR=Dv`
|
|
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
|
+
`)),hle=te("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=iX(e.shape.borderRadius)||"px",r=lX(e.shape.borderRadius);return x({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:it(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"&&wa(hR||(hR=Dv`
|
|
268
|
+
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
269
|
+
`),fle),({ownerState:e,theme:t})=>e.animation==="wave"&&wa(mR||(mR=Dv`
|
|
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} 2s 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
|
+
`),ple,(t.vars||t).palette.action.hover)),mle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:l,style:a,variant:u="text",width:f}=r,p=oe(r,ule),g=x({},r,{animation:o,component:i,variant:u,hasChildren:!!p.children}),v=dle(g);return $.jsx(hle,x({as:i,ref:n,className:ye(v.root,s),ownerState:g},p,{style:x({width:f,height:l},a)}))}),gle=mle;function vle(e){return Ke("MuiTooltip",e)}const yle=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ea=yle,ble=["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 wle(e){return Math.round(e*1e5)/1e5}const Cle=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${xe(s.split("-")[0])}`],arrow:["arrow"]};return _e(i,vle,t)},xle=te($a,{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})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ea.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ea.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ea.arrow}`]:x({},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"] .${ea.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Sle=te("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${xe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:it(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:`${wle(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ea.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ea.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ea.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ea.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ple=te("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:it(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let og=!1,kw=null,Ff={x:0,y:0};function sg(e,t){return n=>{t&&t(n),e(n)}}const kle=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,g,v,y,m,C,b,w,S,k,M;const I=je({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:T,components:L={},componentsProps:O={},describeChild:R=!1,disableFocusListener:V=!1,disableHoverListener:j=!1,disableInteractive:_=!1,disableTouchListener:A=!1,enterDelay:F=100,enterNextDelay:z=0,enterTouchDelay:D=700,followCursor:N=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:Z,onOpen:Q,open:X,placement:J="bottom",PopperComponent:ne,PopperProps:fe={},slotProps:we={},slots:Ce={},title:ae,TransitionComponent:be=eh,TransitionProps:de}=I,ke=oe(I,ble),Ie=c.isValidElement(T)?T:$.jsx("span",{children:T}),le=yn(),Ee=le.direction==="rtl",[me,Me]=c.useState(),[ue,ce]=c.useState(null),ie=c.useRef(!1),ge=_||N,Te=c.useRef(),Ne=c.useRef(),Ge=c.useRef(),Ve=c.useRef(),[Ue,Le]=Kr({controlled:X,default:!1,name:"Tooltip",state:"open"});let pt=Ue;const Zt=Kt(H),Pt=c.useRef(),wt=c.useCallback(()=>{Pt.current!==void 0&&(document.body.style.WebkitUserSelect=Pt.current,Pt.current=void 0),clearTimeout(Ve.current)},[]);c.useEffect(()=>()=>{clearTimeout(Te.current),clearTimeout(Ne.current),clearTimeout(Ge.current),wt()},[wt]);const Xe=St=>{clearTimeout(kw),og=!0,Le(!0),Q&&!pt&&Q(St)},Oe=Ye(St=>{clearTimeout(kw),kw=setTimeout(()=>{og=!1},800+K),Le(!1),Z&&pt&&Z(St),clearTimeout(Te.current),Te.current=setTimeout(()=>{ie.current=!1},le.transitions.duration.shortest)}),qe=St=>{ie.current&&St.type!=="touchstart"||(me&&me.removeAttribute("title"),clearTimeout(Ne.current),clearTimeout(Ge.current),F||og&&z?Ne.current=setTimeout(()=>{Xe(St)},og?z:F):Xe(St))},mt=St=>{clearTimeout(Ne.current),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},K)},{isFocusVisibleRef:vt,onBlur:_t,onFocus:Yt,ref:Qt}=By(),[,Pn]=c.useState(!1),bn=St=>{_t(St),vt.current===!1&&(Pn(!1),mt(St))},gt=St=>{me||Me(St.currentTarget),Yt(St),vt.current===!0&&(Pn(!0),qe(St))},Rt=St=>{ie.current=!0;const Qn=Ie.props;Qn.onTouchStart&&Qn.onTouchStart(St)},gr=qe,rr=mt,Sl=St=>{Rt(St),clearTimeout(Ge.current),clearTimeout(Te.current),wt(),Pt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Pt.current,qe(St)},D)},ss=St=>{Ie.props.onTouchEnd&&Ie.props.onTouchEnd(St),wt(),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},Y)};c.useEffect(()=>{if(!pt)return;function St(Qn){(Qn.key==="Escape"||Qn.key==="Esc")&&Oe(Qn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Oe,pt]);const _n=It(Ie.ref,Qt,Me,n);!ae&&ae!==0&&(pt=!1);const an=c.useRef(),vr=St=>{const Qn=Ie.props;Qn.onMouseMove&&Qn.onMouseMove(St),Ff={x:St.clientX,y:St.clientY},an.current&&an.current.update()},po={},is=typeof ae=="string";R?(po.title=!pt&&is&&!j?ae:null,po["aria-describedby"]=pt?Zt:null):(po["aria-label"]=is?ae:null,po["aria-labelledby"]=pt&&!is?Zt:null);const or=x({},po,ke,Ie.props,{className:ye(ke.className,Ie.props.className),onTouchStart:Rt,ref:_n},N?{onMouseMove:vr}:{}),$o={};A||(or.onTouchStart=Sl,or.onTouchEnd=ss),j||(or.onMouseOver=sg(gr,or.onMouseOver),or.onMouseLeave=sg(rr,or.onMouseLeave),ge||($o.onMouseOver=gr,$o.onMouseLeave=rr)),V||(or.onFocus=sg(gt,or.onFocus),or.onBlur=sg(bn,or.onBlur),ge||($o.onFocus=gt,$o.onBlur=bn));const di=c.useMemo(()=>{var St;let Qn=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(St=fe.popperOptions)!=null&&St.modifiers&&(Qn=Qn.concat(fe.popperOptions.modifiers)),x({},fe.popperOptions,{modifiers:Qn})},[ue,fe]),Er=x({},I,{isRtl:Ee,arrow:E,disableInteractive:ge,placement:J,PopperComponentProp:ne,touch:ie.current}),Fr=Cle(Er),Vs=(r=(o=Ce.popper)!=null?o:L.Popper)!=null?r:xle,$e=(s=(i=(l=Ce.transition)!=null?l:L.Transition)!=null?i:be)!=null?s:eh,ve=(a=(u=Ce.tooltip)!=null?u:L.Tooltip)!=null?a:Sle,Qe=(f=(p=Ce.arrow)!=null?p:L.Arrow)!=null?f:Ple,dt=Qf(Vs,x({},fe,(g=we.popper)!=null?g:O.popper,{className:ye(Fr.popper,fe==null?void 0:fe.className,(v=(y=we.popper)!=null?y:O.popper)==null?void 0:v.className)}),Er),Wt=Qf($e,x({},de,(m=we.transition)!=null?m:O.transition),Er),$n=Qf(ve,x({},(C=we.tooltip)!=null?C:O.tooltip,{className:ye(Fr.tooltip,(b=(w=we.tooltip)!=null?w:O.tooltip)==null?void 0:b.className)}),Er),Ln=Qf(Qe,x({},(S=we.arrow)!=null?S:O.arrow,{className:ye(Fr.arrow,(k=(M=we.arrow)!=null?M:O.arrow)==null?void 0:k.className)}),Er);return $.jsxs(c.Fragment,{children:[c.cloneElement(Ie,or),$.jsx(Vs,x({as:ne!=null?ne:$a,placement:J,anchorEl:N?{getBoundingClientRect:()=>({top:Ff.y,left:Ff.x,right:Ff.x,bottom:Ff.y,width:0,height:0})}:me,popperRef:an,open:me?pt:!1,id:Zt,transition:!0},$o,dt,{popperOptions:di,children:({TransitionProps:St})=>$.jsx($e,x({timeout:le.transitions.duration.shorter},St,Wt,{children:$.jsxs(ve,x({},$n,{children:[ae,E?$.jsx(Qe,x({},Ln,{ref:ce})):null]}))}))}))]})}),Ra=kle;function Ile(e){return Ke("MuiSwitch",e)}const Ele=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Hr=Ele,Mle=["className","color","edge","size","sx"],Tle=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,l={root:["root",n&&`edge${xe(n)}`,`size${xe(r)}`],switchBase:["switchBase",`color${xe(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=_e(l,Ile,t);return x({},t,a)},_le=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${xe(n.edge)}`],t[`size${xe(n.size)}`]]}})(({ownerState:e})=>x({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,[`& .${Hr.thumb}`]:{width:16,height:16},[`& .${Hr.switchBase}`]:{padding:4,[`&.${Hr.checked}`]:{transform:"translateX(16px)"}}})),$le=te(cN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Hr.input}`]:t.input},n.color!=="default"&&t[`color${xe(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}),[`&.${Hr.checked}`]:{transform:"translateX(20px)"},[`&.${Hr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Hr.checked} + .${Hr.track}`]:{opacity:.5},[`&.${Hr.disabled} + .${Hr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Hr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>x({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Hr.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})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Pc(e.palette[t.color].main,.62):Sc(e.palette[t.color].main,.55)}`}},[`&.${Hr.checked} + .${Hr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Rle=te("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}`})),Ole=te("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%"})),Dle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:l="medium",sx:a}=r,u=oe(r,Mle),f=x({},r,{color:s,edge:i,size:l}),p=Tle(f),g=$.jsx(Ole,{className:p.thumb,ownerState:f});return $.jsxs(_le,{className:ye(p.root,o),sx:a,ownerState:f,children:[$.jsx($le,x({type:"checkbox",icon:g,checkedIcon:g,ref:n,ownerState:f},u,{classes:x({},p,{root:p.switchBase})})),$.jsx(Rle,{className:p.track,ownerState:f})]})}),NN=Dle;function Ale(e){return Ke("MuiTab",e)}const Lle=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Wa=Lle,Fle=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Nle=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:i,selected:l,disabled:a}=e,u={root:["root",s&&i&&"labelIcon",`textColor${xe(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return _e(u,Ale,t)},Ble=te(ai,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${xe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},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,[`& > .${Wa.iconWrapper}`]:x({},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,[`&.${Wa.selected}`]:{opacity:1},[`&.${Wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wa.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Wa.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wa.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Wa.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)})),zle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:l,icon:a,iconPosition:u="top",indicator:f,label:p,onChange:g,onClick:v,onFocus:y,selected:m,selectionFollowsFocus:C,textColor:b="inherit",value:w,wrapped:S=!1}=r,k=oe(r,Fle),M=x({},r,{disabled:s,disableFocusRipple:i,selected:m,icon:!!a,iconPosition:u,label:!!p,fullWidth:l,textColor:b,wrapped:S}),I=Nle(M),E=a&&p&&c.isValidElement(a)?c.cloneElement(a,{className:ye(I.iconWrapper,a.props.className)}):a,T=O=>{!m&&g&&g(O,w),v&&v(O)},L=O=>{C&&!m&&g&&g(O,w),y&&y(O)};return $.jsxs(Ble,x({focusRipple:!i,className:ye(I.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:T,onFocus:L,ownerState:M,tabIndex:m?0:-1},k,{children:[u==="top"||u==="start"?$.jsxs(c.Fragment,{children:[E,p]}):$.jsxs(c.Fragment,{children:[p,E]}),f]}))}),Av=zle,Vle=c.createContext(),jle=Vle,Hle=c.createContext(),Ule=Hle;function Wle(e){return Ke("MuiTableCell",e)}const Gle=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Kle=Gle,qle=["align","className","component","padding","scope","size","sortDirection","variant"],Yle=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${xe(r)}`,o!=="normal"&&`padding${xe(o)}`,`size${xe(s)}`]};return _e(l,Wle,t)},Qle=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${xe(n.size)}`],n.padding!=="normal"&&t[`padding${xe(n.padding)}`],n.align!=="inherit"&&t[`align${xe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>x({},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"?Pc(it(e.palette.divider,1),.88):Sc(it(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",[`&.${Kle.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})),Xle=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:u,sortDirection:f,variant:p}=r,g=oe(r,qle),v=c.useContext(jle),y=c.useContext(Ule),m=y&&y.variant==="head";let C;i?C=i:C=m?"th":"td";let b=a;C==="td"?b=void 0:!b&&m&&(b="col");const w=p||y&&y.variant,S=x({},r,{align:o,component:C,padding:l||(v&&v.padding?v.padding:"normal"),size:u||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w}),k=Yle(S);let M=null;return f&&(M=f==="asc"?"ascending":"descending"),$.jsx(Qle,x({as:C,ref:n,className:ye(k.root,s),"aria-sort":M,scope:b,ownerState:S},g))}),vx=Xle;function Zle(e){return Ke("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Jle=["className","component","disableGutters","variant"],eae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return _e({root:["root",!n&&"gutters",r]},Zle,t)},tae=te("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})=>x({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),nae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:l="regular"}=r,a=oe(r,Jle),u=x({},r,{component:s,disableGutters:i,variant:l}),f=eae(u);return $.jsx(tae,x({as:s,className:ye(f.root,o),ref:n,ownerState:u},a))}),BN=nae,yx=bt($.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bx=bt($.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var gR,vR,yR,bR,wR,CR,xR,SR;const rae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slotProps"],oae=c.forwardRef(function(t,n){var r,o,s,i;const{backIconButtonProps:l,count:a,disabled:u=!1,getItemAriaLabel:f,nextIconButtonProps:p,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:m,showLastButton:C,slotProps:b}=t,w=oe(t,rae),S=yn(),k=T=>{g(T,0)},M=T=>{g(T,v-1)},I=T=>{g(T,v+1)},E=T=>{g(T,Math.max(0,Math.ceil(a/y)-1))};return $.jsxs("div",x({ref:n},w,{children:[m&&$.jsx(pr,x({onClick:k,disabled:u||v===0,"aria-label":f("first",v),title:f("first",v)},(r=b==null?void 0:b.firstButton)!=null?r:{},{children:S.direction==="rtl"?gR||(gR=$.jsx(cR,{})):vR||(vR=$.jsx(aR,{}))})),$.jsx(pr,x({onClick:M,disabled:u||v===0,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},(o=b==null?void 0:b.previousButton)!=null?o:l,{children:S.direction==="rtl"?yR||(yR=$.jsx(bx,{})):bR||(bR=$.jsx(yx,{}))})),$.jsx(pr,x({onClick:I,disabled:u||(a!==-1?v>=Math.ceil(a/y)-1:!1),color:"inherit","aria-label":f("next",v),title:f("next",v)},(s=b==null?void 0:b.nextButton)!=null?s:p,{children:S.direction==="rtl"?wR||(wR=$.jsx(yx,{})):CR||(CR=$.jsx(bx,{}))})),C&&$.jsx(pr,x({onClick:E,disabled:u||v>=Math.ceil(a/y)-1,"aria-label":f("last",v),title:f("last",v)},(i=b==null?void 0:b.lastButton)!=null?i:{},{children:S.direction==="rtl"?xR||(xR=$.jsx(aR,{})):SR||(SR=$.jsx(cR,{}))}))]}))}),sae=oae;function iae(e){return Ke("MuiTablePagination",e)}const lae=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),cc=lae;var PR;const aae=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps"],cae=te(vx,{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}})),uae=te(BN,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>x({[`& .${cc.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},[`& .${cc.actions}`]:{flexShrink:0,marginLeft:20}})),dae=te("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),fae=te("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>x({},e.typography.body2,{flexShrink:0})),pae=te(KP,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>x({[`& .${cc.selectIcon}`]:t.selectIcon,[`& .${cc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${cc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),hae=te(Sr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),mae=te("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>x({},e.typography.body2,{flexShrink:0}));function gae({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function vae(e){return`Go to ${e} page`}const yae=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"]},iae,t)},bae=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=sae,backIconButtonProps:i,className:l,colSpan:a,component:u=vx,count:f,disabled:p=!1,getItemAriaLabel:g=vae,labelDisplayedRows:v=gae,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:m,onPageChange:C,onRowsPerPageChange:b,page:w,rowsPerPage:S,rowsPerPageOptions:k=[10,25,50,100],SelectProps:M={},showFirstButton:I=!1,showLastButton:E=!1,slotProps:T}=o,L=oe(o,aae),O=o,R=yae(O),V=(r=T==null?void 0:T.select)!=null?r:M,j=V.native?"option":hae;let _;(u===vx||u==="td")&&(_=a||1e3);const A=Kt(V.id),F=Kt(V.labelId),z=()=>f===-1?(w+1)*S:S===-1?f:Math.min(f,(w+1)*S);return $.jsx(cae,x({colSpan:_,ref:n,as:u,ownerState:O,className:ye(R.root,l)},L,{children:$.jsxs(uae,{className:R.toolbar,children:[$.jsx(dae,{className:R.spacer}),k.length>1&&$.jsx(fae,{className:R.selectLabel,id:F,children:y}),k.length>1&&$.jsx(pae,x({variant:"standard"},!V.variant&&{input:PR||(PR=$.jsx(Bd,{}))},{value:S,onChange:b,id:A,labelId:F},V,{classes:x({},V.classes,{root:ye(R.input,R.selectRoot,(V.classes||{}).root),select:ye(R.select,(V.classes||{}).select),icon:ye(R.selectIcon,(V.classes||{}).icon)}),disabled:p,children:k.map(D=>c.createElement(j,x({},!kc(j)&&{ownerState:O},{className:R.menuItem,key:D.label?D.label:D,value:D.value?D.value:D}),D.label?D.label:D))})),$.jsx(mae,{className:R.displayedRows,children:v({from:f===0?0:w*S+1,to:z(),count:f===-1?-1:f,page:w})}),$.jsx(s,{className:R.actions,backIconButtonProps:i,count:f,nextIconButtonProps:m,onPageChange:C,page:w,rowsPerPage:S,showFirstButton:I,showLastButton:E,slotProps:T==null?void 0:T.actions,getItemAriaLabel:g,disabled:p})]})}))}),wae=bae;function Cae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function xae(e,t,n,r={},o=()=>{}){const{ease:s=Cae,duration:i=300}=r;let l=null;const a=t[e];let u=!1;const f=()=>{u=!0},p=g=>{if(u){o(new Error("Animation cancelled"));return}l===null&&(l=g);const v=Math.min(1,(g-l)/i);if(t[e]=s(v)*(n-a)+a,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const Sae=["onChange"],Pae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function kae(e){const{onChange:t}=e,n=oe(e,Sae),r=c.useRef(),o=c.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nt(()=>{const i=Ta(()=>{const a=r.current;s(),a!==r.current&&t(r.current)}),l=Yo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),c.useEffect(()=>{s(),t(r.current)},[t]),$.jsx("div",x({style:Pae,ref:o},n))}function Iae(e){return Ke("MuiTabScrollButton",e)}const Eae=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Mae=Eae,Tae=["className","slots","slotProps","direction","orientation","disabled"],_ae=e=>{const{classes:t,orientation:n,disabled:r}=e;return _e({root:["root",n,r&&"disabled"]},Iae,t)},$ae=te(ai,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${Mae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Rae=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:a={},direction:u}=s,f=oe(s,Tae),g=yn().direction==="rtl",v=x({isRtl:g},s),y=_ae(v),m=(r=l.StartScrollButtonIcon)!=null?r:yx,C=(o=l.EndScrollButtonIcon)!=null?o:bx,b=qt({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),w=qt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return $.jsx($ae,x({component:"div",className:ye(y.root,i),ref:n,role:null,ownerState:v,tabIndex:null},f,{children:u==="left"?$.jsx(m,x({},b)):$.jsx(C,x({},w))}))}),Oae=Rae;function Dae(e){return Ke("MuiTabs",e)}const Aae=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ng=Aae,Lae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],kR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ig=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},Fae=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:i,scrollButtonsHideMobile:l,classes:a}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Dae,a)},Nae=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ng.scrollButtons}`]:t.scrollButtons},{[`& .${Ng.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Ng.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Bae=te("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})=>x({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"})),zae=te("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})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Vae=te("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({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})),jae=te(kae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ER={},Hae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=yn(),s=o.direction==="rtl",{"aria-label":i,"aria-labelledby":l,action:a,centered:u=!1,children:f,className:p,component:g="div",allowScrollButtonsMobile:v=!1,indicatorColor:y="primary",onChange:m,orientation:C="horizontal",ScrollButtonComponent:b=Oae,scrollButtons:w="auto",selectionFollowsFocus:S,slots:k={},slotProps:M={},TabIndicatorProps:I={},TabScrollButtonProps:E={},textColor:T="primary",value:L,variant:O="standard",visibleScrollbar:R=!1}=r,V=oe(r,Lae),j=O==="scrollable",_=C==="vertical",A=_?"scrollTop":"scrollLeft",F=_?"top":"left",z=_?"bottom":"right",D=_?"clientHeight":"clientWidth",N=_?"height":"width",H=x({},r,{component:g,allowScrollButtonsMobile:v,indicatorColor:y,orientation:C,vertical:_,scrollButtons:w,textColor:T,variant:O,visibleScrollbar:R,fixed:!j,hideScrollbar:j&&!R,scrollableX:j&&!_,scrollableY:j&&_,centered:u&&!j,scrollButtonsHideMobile:!v}),K=Fae(H),Y=qt({elementType:k.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:H}),Z=qt({elementType:k.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:H}),[Q,X]=c.useState(!1),[J,ne]=c.useState(ER),[fe,we]=c.useState(!1),[Ce,ae]=c.useState(!1),[be,de]=c.useState(!1),[ke,Ie]=c.useState({overflow:"hidden",scrollbarWidth:0}),le=new Map,Ee=c.useRef(null),me=c.useRef(null),Me=()=>{const Oe=Ee.current;let qe;if(Oe){const vt=Oe.getBoundingClientRect();qe={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollLeftNormalized:XK(Oe,o.direction),scrollWidth:Oe.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let mt;if(Oe&&L!==!1){const vt=me.current.children;if(vt.length>0){const _t=vt[le.get(L)];mt=_t?_t.getBoundingClientRect():null}}return{tabsMeta:qe,tabMeta:mt}},ue=Ye(()=>{const{tabsMeta:Oe,tabMeta:qe}=Me();let mt=0,vt;if(_)vt="top",qe&&Oe&&(mt=qe.top-Oe.top+Oe.scrollTop);else if(vt=s?"right":"left",qe&&Oe){const Yt=s?Oe.scrollLeftNormalized+Oe.clientWidth-Oe.scrollWidth:Oe.scrollLeft;mt=(s?-1:1)*(qe[vt]-Oe[vt]+Yt)}const _t={[vt]:mt,[N]:qe?qe[N]:0};if(isNaN(J[vt])||isNaN(J[N]))ne(_t);else{const Yt=Math.abs(J[vt]-_t[vt]),Qt=Math.abs(J[N]-_t[N]);(Yt>=1||Qt>=1)&&ne(_t)}}),ce=(Oe,{animation:qe=!0}={})=>{qe?xae(A,Ee.current,Oe,{duration:o.transitions.duration.standard}):Ee.current[A]=Oe},ie=Oe=>{let qe=Ee.current[A];_?qe+=Oe:(qe+=Oe*(s?-1:1),qe*=s&&cF()==="reverse"?-1:1),ce(qe)},ge=()=>{const Oe=Ee.current[D];let qe=0;const mt=Array.from(me.current.children);for(let vt=0;vt<mt.length;vt+=1){const _t=mt[vt];if(qe+_t[D]>Oe){vt===0&&(qe=Oe);break}qe+=_t[D]}return qe},Te=()=>{ie(-1*ge())},Ne=()=>{ie(ge())},Ge=c.useCallback(Oe=>{Ie({overflow:null,scrollbarWidth:Oe})},[]),Ve=()=>{const Oe={};Oe.scrollbarSizeListener=j?$.jsx(jae,{onChange:Ge,className:ye(K.scrollableX,K.hideScrollbar)}):null;const mt=j&&(w==="auto"&&(fe||Ce)||w===!0);return Oe.scrollButtonStart=mt?$.jsx(b,x({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:s?"right":"left",onClick:Te,disabled:!fe},E,{className:ye(K.scrollButtons,E.className)})):null,Oe.scrollButtonEnd=mt?$.jsx(b,x({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Z},orientation:C,direction:s?"left":"right",onClick:Ne,disabled:!Ce},E,{className:ye(K.scrollButtons,E.className)})):null,Oe},Ue=Ye(Oe=>{const{tabsMeta:qe,tabMeta:mt}=Me();if(!(!mt||!qe)){if(mt[F]<qe[F]){const vt=qe[A]+(mt[F]-qe[F]);ce(vt,{animation:Oe})}else if(mt[z]>qe[z]){const vt=qe[A]+(mt[z]-qe[z]);ce(vt,{animation:Oe})}}}),Le=Ye(()=>{j&&w!==!1&&de(!be)});c.useEffect(()=>{const Oe=Ta(()=>{Ee.current&&ue()});let qe;const mt=Yt=>{Yt.forEach(Qt=>{Qt.removedNodes.forEach(Pn=>{var bn;(bn=qe)==null||bn.unobserve(Pn)}),Qt.addedNodes.forEach(Pn=>{var bn;(bn=qe)==null||bn.observe(Pn)})}),Oe(),Le()},vt=Yo(Ee.current);vt.addEventListener("resize",Oe);let _t;return typeof ResizeObserver!="undefined"&&(qe=new ResizeObserver(Oe),Array.from(me.current.children).forEach(Yt=>{qe.observe(Yt)})),typeof MutationObserver!="undefined"&&(_t=new MutationObserver(mt),_t.observe(me.current,{childList:!0})),()=>{var Yt,Qt;Oe.clear(),vt.removeEventListener("resize",Oe),(Yt=_t)==null||Yt.disconnect(),(Qt=qe)==null||Qt.disconnect()}},[ue,Le]),c.useEffect(()=>{const Oe=Array.from(me.current.children),qe=Oe.length;if(typeof IntersectionObserver!="undefined"&&qe>0&&j&&w!==!1){const mt=Oe[0],vt=Oe[qe-1],_t={root:Ee.current,threshold:.99},Yt=gt=>{we(!gt[0].isIntersecting)},Qt=new IntersectionObserver(Yt,_t);Qt.observe(mt);const Pn=gt=>{ae(!gt[0].isIntersecting)},bn=new IntersectionObserver(Pn,_t);return bn.observe(vt),()=>{Qt.disconnect(),bn.disconnect()}}},[j,w,be,f==null?void 0:f.length]),c.useEffect(()=>{X(!0)},[]),c.useEffect(()=>{ue()}),c.useEffect(()=>{Ue(ER!==J)},[Ue,J]),c.useImperativeHandle(a,()=>({updateIndicator:ue,updateScrollButtons:Le}),[ue,Le]);const pt=$.jsx(Vae,x({},I,{className:ye(K.indicator,I.className),ownerState:H,style:x({},J,I.style)}));let Zt=0;const Pt=c.Children.map(f,Oe=>{if(!c.isValidElement(Oe))return null;const qe=Oe.props.value===void 0?Zt:Oe.props.value;le.set(qe,Zt);const mt=qe===L;return Zt+=1,c.cloneElement(Oe,x({fullWidth:O==="fullWidth",indicator:mt&&!Q&&pt,selected:mt,selectionFollowsFocus:S,onChange:m,textColor:T,value:qe},Zt===1&&L===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}))}),wt=Oe=>{const qe=me.current,mt=fn(qe).activeElement;if(mt.getAttribute("role")!=="tab")return;let _t=C==="horizontal"?"ArrowLeft":"ArrowUp",Yt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(_t="ArrowRight",Yt="ArrowLeft"),Oe.key){case _t:Oe.preventDefault(),ig(qe,mt,IR);break;case Yt:Oe.preventDefault(),ig(qe,mt,kR);break;case"Home":Oe.preventDefault(),ig(qe,null,kR);break;case"End":Oe.preventDefault(),ig(qe,null,IR);break}},Xe=Ve();return $.jsxs(Nae,x({className:ye(K.root,p),ownerState:H,ref:n,as:g},V,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,$.jsxs(Bae,{className:K.scroller,ownerState:H,style:{overflow:ke.overflow,[_?`margin${s?"Left":"Right"}`:"marginBottom"]:R?void 0:-ke.scrollbarWidth},ref:Ee,children:[$.jsx(zae,{"aria-label":i,"aria-labelledby":l,"aria-orientation":C==="vertical"?"vertical":null,className:K.flexContainer,ownerState:H,onKeyDown:wt,ref:me,role:"tablist",children:Pt}),Q&&pt]}),Xe.scrollButtonEnd]}))}),qP=Hae;function Uae(e){return Ke("MuiTextField",e)}We("MuiTextField",["root"]);const Wae=["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"],Gae={standard:IN,filled:yN,outlined:LN},Kae=e=>{const{classes:t}=e;return _e({root:["root"]},Uae,t)},qae=te(bN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:l,color:a="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:g,fullWidth:v=!1,helperText:y,id:m,InputLabelProps:C,inputProps:b,InputProps:w,inputRef:S,label:k,maxRows:M,minRows:I,multiline:E=!1,name:T,onBlur:L,onChange:O,onFocus:R,placeholder:V,required:j=!1,rows:_,select:A=!1,SelectProps:F,type:z,value:D,variant:N="outlined"}=r,H=oe(r,Wae),K=x({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:v,multiline:E,required:j,select:A,variant:N}),Y=Kae(K),Z={};N==="outlined"&&(C&&typeof C.shrink!="undefined"&&(Z.notched=C.shrink),Z.label=k),A&&((!F||!F.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const Q=Kt(m),X=y&&Q?`${Q}-helper-text`:void 0,J=k&&Q?`${Q}-label`:void 0,ne=Gae[N],fe=$.jsx(ne,x({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:u,fullWidth:v,multiline:E,name:T,rows:_,maxRows:M,minRows:I,type:z,value:D,id:Q,inputRef:S,onBlur:L,onChange:O,onFocus:R,placeholder:V,inputProps:b},Z,w));return $.jsxs(qae,x({className:ye(Y.root,l),disabled:f,error:p,fullWidth:v,ref:n,required:j,color:a,variant:N,ownerState:K},H,{children:[k!=null&&k!==""&&$.jsx(EN,x({htmlFor:Q,id:J},C,{children:k})),A?$.jsx(KP,x({"aria-describedby":X,id:Q,labelId:J,value:D,input:fe},F,{children:i})):fe,y&&$.jsx(Vd,x({id:X},g,{children:y}))]}))}),Fc=Yae;var YP={},zN={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zN);var et=zN.exports,Iw={};const Qae=AD(bX);var MR;function tt(){return MR||(MR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Qae}(Iw)),Iw}var Xae=et;Object.defineProperty(YP,"__esModule",{value:!0});var VN=YP.default=void 0,Zae=Xae(tt()),Jae=Ze(),ece=(0,Zae.default)((0,Jae.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");VN=YP.default=ece;var QP={},tce=et;Object.defineProperty(QP,"__esModule",{value:!0});var jN=QP.default=void 0,nce=tce(tt()),rce=Ze(),oce=(0,nce.default)((0,rce.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");jN=QP.default=oce;var XP={},sce=et;Object.defineProperty(XP,"__esModule",{value:!0});var HN=XP.default=void 0,ice=sce(tt()),lce=Ze(),ace=(0,ice.default)((0,lce.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");HN=XP.default=ace;var ZP={},cce=et;Object.defineProperty(ZP,"__esModule",{value:!0});var JP=ZP.default=void 0,uce=cce(tt()),dce=Ze(),fce=(0,uce.default)((0,dce.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");JP=ZP.default=fce;var ek={},pce=et;Object.defineProperty(ek,"__esModule",{value:!0});var tk=ek.default=void 0,hce=pce(tt()),mce=Ze(),gce=(0,hce.default)((0,mce.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");tk=ek.default=gce;var nk={},vce=et;Object.defineProperty(nk,"__esModule",{value:!0});var UN=nk.default=void 0,yce=vce(tt()),TR=Ze(),bce=(0,yce.default)([(0,TR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,TR.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");UN=nk.default=bce;var rk={},wce=et;Object.defineProperty(rk,"__esModule",{value:!0});var WN=rk.default=void 0,Cce=wce(tt()),xce=Ze(),Sce=(0,Cce.default)((0,xce.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");WN=rk.default=Sce;var ok={},Pce=et;Object.defineProperty(ok,"__esModule",{value:!0});var Lv=ok.default=void 0,kce=Pce(tt()),Ice=Ze(),Ece=(0,kce.default)((0,Ice.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");Lv=ok.default=Ece;var sk={},Mce=et;Object.defineProperty(sk,"__esModule",{value:!0});var ik=sk.default=void 0,Tce=Mce(tt()),_ce=Ze(),$ce=(0,Tce.default)((0,_ce.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");ik=sk.default=$ce;var lk={},Rce=et;Object.defineProperty(lk,"__esModule",{value:!0});var GN=lk.default=void 0,Oce=Rce(tt()),Dce=Ze(),Ace=(0,Oce.default)((0,Dce.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");GN=lk.default=Ace;var ak={},Lce=et;Object.defineProperty(ak,"__esModule",{value:!0});var KN=ak.default=void 0,Fce=Lce(tt()),Nce=Ze(),Bce=(0,Fce.default)((0,Nce.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");KN=ak.default=Bce;var Fv={exports:{}};/**
|
|
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
|
+
*/Fv.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,g=2,v=4,y=1,m=2,C=1,b=2,w=4,S=8,k=16,M=32,I=64,E=128,T=256,L=512,O=30,R="...",V=800,j=16,_=1,A=2,F=3,z=1/0,D=9007199254740991,N=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,Z=K>>>1,Q=[["ary",E],["bind",C],["bindKey",b],["curry",S],["curryRight",k],["flip",L],["partial",M],["partialRight",I],["rearg",T]],X="[object Arguments]",J="[object Array]",ne="[object AsyncFunction]",fe="[object Boolean]",we="[object Date]",Ce="[object DOMException]",ae="[object Error]",be="[object Function]",de="[object GeneratorFunction]",ke="[object Map]",Ie="[object Number]",le="[object Null]",Ee="[object Object]",me="[object Promise]",Me="[object Proxy]",ue="[object RegExp]",ce="[object Set]",ie="[object String]",ge="[object Symbol]",Te="[object Undefined]",Ne="[object WeakMap]",Ge="[object WeakSet]",Ve="[object ArrayBuffer]",Ue="[object DataView]",Le="[object Float32Array]",pt="[object Float64Array]",Zt="[object Int8Array]",Pt="[object Int16Array]",wt="[object Int32Array]",Xe="[object Uint8Array]",Oe="[object Uint8ClampedArray]",qe="[object Uint16Array]",mt="[object Uint32Array]",vt=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,Yt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Pn=/[&<>"']/g,bn=RegExp(Qt.source),gt=RegExp(Pn.source),Rt=/<%-([\s\S]+?)%>/g,gr=/<%([\s\S]+?)%>/g,rr=/<%=([\s\S]+?)%>/g,Sl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ss=/^\w*$/,_n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,vr=RegExp(an.source),po=/^\s+/,is=/\s/,or=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$o=/\{\n\/\* \[wrapped with (.+)\] \*/,di=/,? & /,Er=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fr=/[()=,{}\[\]\/\s]/,Vs=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,Ln=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qn=/($^)/,Nz=/['\n\r\u2028\u2029\\]/g,Gh="\\ud800-\\udfff",Bz="\\u0300-\\u036f",zz="\\ufe20-\\ufe2f",Vz="\\u20d0-\\u20ff",HE=Bz+zz+Vz,UE="\\u2700-\\u27bf",WE="a-z\\xdf-\\xf6\\xf8-\\xff",jz="\\xac\\xb1\\xd7\\xf7",Hz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Uz="\\u2000-\\u206f",Wz=" \\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",GE="A-Z\\xc0-\\xd6\\xd8-\\xde",KE="\\ufe0e\\ufe0f",qE=jz+Hz+Uz+Wz,I0="['’]",Gz="["+Gh+"]",YE="["+qE+"]",Kh="["+HE+"]",QE="\\d+",Kz="["+UE+"]",XE="["+WE+"]",ZE="[^"+Gh+qE+QE+UE+WE+GE+"]",E0="\\ud83c[\\udffb-\\udfff]",qz="(?:"+Kh+"|"+E0+")",JE="[^"+Gh+"]",M0="(?:\\ud83c[\\udde6-\\uddff]){2}",T0="[\\ud800-\\udbff][\\udc00-\\udfff]",Hc="["+GE+"]",e2="\\u200d",t2="(?:"+XE+"|"+ZE+")",Yz="(?:"+Hc+"|"+ZE+")",n2="(?:"+I0+"(?:d|ll|m|re|s|t|ve))?",r2="(?:"+I0+"(?:D|LL|M|RE|S|T|VE))?",o2=qz+"?",s2="["+KE+"]?",Qz="(?:"+e2+"(?:"+[JE,M0,T0].join("|")+")"+s2+o2+")*",Xz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i2=s2+o2+Qz,Jz="(?:"+[Kz,M0,T0].join("|")+")"+i2,eV="(?:"+[JE+Kh+"?",Kh,M0,T0,Gz].join("|")+")",tV=RegExp(I0,"g"),nV=RegExp(Kh,"g"),_0=RegExp(E0+"(?="+E0+")|"+eV+i2,"g"),rV=RegExp([Hc+"?"+XE+"+"+n2+"(?="+[YE,Hc,"$"].join("|")+")",Yz+"+"+r2+"(?="+[YE,Hc+t2,"$"].join("|")+")",Hc+"?"+t2+"+"+n2,Hc+"+"+r2,Zz,Xz,QE,Jz].join("|"),"g"),oV=RegExp("["+e2+Gh+HE+KE+"]"),sV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iV=["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"],lV=-1,kn={};kn[Le]=kn[pt]=kn[Zt]=kn[Pt]=kn[wt]=kn[Xe]=kn[Oe]=kn[qe]=kn[mt]=!0,kn[X]=kn[J]=kn[Ve]=kn[fe]=kn[Ue]=kn[we]=kn[ae]=kn[be]=kn[ke]=kn[Ie]=kn[Ee]=kn[ue]=kn[ce]=kn[ie]=kn[Ne]=!1;var wn={};wn[X]=wn[J]=wn[Ve]=wn[Ue]=wn[fe]=wn[we]=wn[Le]=wn[pt]=wn[Zt]=wn[Pt]=wn[wt]=wn[ke]=wn[Ie]=wn[Ee]=wn[ue]=wn[ce]=wn[ie]=wn[ge]=wn[Xe]=wn[Oe]=wn[qe]=wn[mt]=!0,wn[ae]=wn[be]=wn[Ne]=!1;var aV={À:"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"},cV={"&":"&","<":"<",">":">",'"':""","'":"'"},uV={"&":"&","<":"<",">":">",""":'"',"'":"'"},dV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fV=parseFloat,pV=parseInt,l2=typeof sn=="object"&&sn&&sn.Object===Object&&sn,hV=typeof self=="object"&&self&&self.Object===Object&&self,Mr=l2||hV||Function("return this")(),$0=t&&!t.nodeType&&t,La=$0&&!0&&e&&!e.nodeType&&e,a2=La&&La.exports===$0,R0=a2&&l2.process,ls=function(){try{var pe=La&&La.require&&La.require("util").types;return pe||R0&&R0.binding&&R0.binding("util")}catch(Re){}}(),c2=ls&&ls.isArrayBuffer,u2=ls&&ls.isDate,d2=ls&&ls.isMap,f2=ls&&ls.isRegExp,p2=ls&&ls.isSet,h2=ls&&ls.isTypedArray;function Ro(pe,Re,Pe){switch(Pe.length){case 0:return pe.call(Re);case 1:return pe.call(Re,Pe[0]);case 2:return pe.call(Re,Pe[0],Pe[1]);case 3:return pe.call(Re,Pe[0],Pe[1],Pe[2])}return pe.apply(Re,Pe)}function mV(pe,Re,Pe,st){for(var Et=-1,en=pe==null?0:pe.length;++Et<en;){var ar=pe[Et];Re(st,ar,Pe(ar),pe)}return st}function as(pe,Re){for(var Pe=-1,st=pe==null?0:pe.length;++Pe<st&&Re(pe[Pe],Pe,pe)!==!1;);return pe}function gV(pe,Re){for(var Pe=pe==null?0:pe.length;Pe--&&Re(pe[Pe],Pe,pe)!==!1;);return pe}function m2(pe,Re){for(var Pe=-1,st=pe==null?0:pe.length;++Pe<st;)if(!Re(pe[Pe],Pe,pe))return!1;return!0}function Pl(pe,Re){for(var Pe=-1,st=pe==null?0:pe.length,Et=0,en=[];++Pe<st;){var ar=pe[Pe];Re(ar,Pe,pe)&&(en[Et++]=ar)}return en}function qh(pe,Re){var Pe=pe==null?0:pe.length;return!!Pe&&Uc(pe,Re,0)>-1}function O0(pe,Re,Pe){for(var st=-1,Et=pe==null?0:pe.length;++st<Et;)if(Pe(Re,pe[st]))return!0;return!1}function Rn(pe,Re){for(var Pe=-1,st=pe==null?0:pe.length,Et=Array(st);++Pe<st;)Et[Pe]=Re(pe[Pe],Pe,pe);return Et}function kl(pe,Re){for(var Pe=-1,st=Re.length,Et=pe.length;++Pe<st;)pe[Et+Pe]=Re[Pe];return pe}function D0(pe,Re,Pe,st){var Et=-1,en=pe==null?0:pe.length;for(st&&en&&(Pe=pe[++Et]);++Et<en;)Pe=Re(Pe,pe[Et],Et,pe);return Pe}function vV(pe,Re,Pe,st){var Et=pe==null?0:pe.length;for(st&&Et&&(Pe=pe[--Et]);Et--;)Pe=Re(Pe,pe[Et],Et,pe);return Pe}function A0(pe,Re){for(var Pe=-1,st=pe==null?0:pe.length;++Pe<st;)if(Re(pe[Pe],Pe,pe))return!0;return!1}var yV=L0("length");function bV(pe){return pe.split("")}function wV(pe){return pe.match(Er)||[]}function g2(pe,Re,Pe){var st;return Pe(pe,function(Et,en,ar){if(Re(Et,en,ar))return st=en,!1}),st}function Yh(pe,Re,Pe,st){for(var Et=pe.length,en=Pe+(st?1:-1);st?en--:++en<Et;)if(Re(pe[en],en,pe))return en;return-1}function Uc(pe,Re,Pe){return Re===Re?RV(pe,Re,Pe):Yh(pe,v2,Pe)}function CV(pe,Re,Pe,st){for(var Et=Pe-1,en=pe.length;++Et<en;)if(st(pe[Et],Re))return Et;return-1}function v2(pe){return pe!==pe}function y2(pe,Re){var Pe=pe==null?0:pe.length;return Pe?N0(pe,Re)/Pe:H}function L0(pe){return function(Re){return Re==null?n:Re[pe]}}function F0(pe){return function(Re){return pe==null?n:pe[Re]}}function b2(pe,Re,Pe,st,Et){return Et(pe,function(en,ar,vn){Pe=st?(st=!1,en):Re(Pe,en,ar,vn)}),Pe}function xV(pe,Re){var Pe=pe.length;for(pe.sort(Re);Pe--;)pe[Pe]=pe[Pe].value;return pe}function N0(pe,Re){for(var Pe,st=-1,Et=pe.length;++st<Et;){var en=Re(pe[st]);en!==n&&(Pe=Pe===n?en:Pe+en)}return Pe}function B0(pe,Re){for(var Pe=-1,st=Array(pe);++Pe<pe;)st[Pe]=Re(Pe);return st}function SV(pe,Re){return Rn(Re,function(Pe){return[Pe,pe[Pe]]})}function w2(pe){return pe&&pe.slice(0,P2(pe)+1).replace(po,"")}function Oo(pe){return function(Re){return pe(Re)}}function z0(pe,Re){return Rn(Re,function(Pe){return pe[Pe]})}function sf(pe,Re){return pe.has(Re)}function C2(pe,Re){for(var Pe=-1,st=pe.length;++Pe<st&&Uc(Re,pe[Pe],0)>-1;);return Pe}function x2(pe,Re){for(var Pe=pe.length;Pe--&&Uc(Re,pe[Pe],0)>-1;);return Pe}function PV(pe,Re){for(var Pe=pe.length,st=0;Pe--;)pe[Pe]===Re&&++st;return st}var kV=F0(aV),IV=F0(cV);function EV(pe){return"\\"+dV[pe]}function MV(pe,Re){return pe==null?n:pe[Re]}function Wc(pe){return oV.test(pe)}function TV(pe){return sV.test(pe)}function _V(pe){for(var Re,Pe=[];!(Re=pe.next()).done;)Pe.push(Re.value);return Pe}function V0(pe){var Re=-1,Pe=Array(pe.size);return pe.forEach(function(st,Et){Pe[++Re]=[Et,st]}),Pe}function S2(pe,Re){return function(Pe){return pe(Re(Pe))}}function Il(pe,Re){for(var Pe=-1,st=pe.length,Et=0,en=[];++Pe<st;){var ar=pe[Pe];(ar===Re||ar===f)&&(pe[Pe]=f,en[Et++]=Pe)}return en}function Qh(pe){var Re=-1,Pe=Array(pe.size);return pe.forEach(function(st){Pe[++Re]=st}),Pe}function $V(pe){var Re=-1,Pe=Array(pe.size);return pe.forEach(function(st){Pe[++Re]=[st,st]}),Pe}function RV(pe,Re,Pe){for(var st=Pe-1,Et=pe.length;++st<Et;)if(pe[st]===Re)return st;return-1}function OV(pe,Re,Pe){for(var st=Pe+1;st--;)if(pe[st]===Re)return st;return st}function Gc(pe){return Wc(pe)?AV(pe):yV(pe)}function js(pe){return Wc(pe)?LV(pe):bV(pe)}function P2(pe){for(var Re=pe.length;Re--&&is.test(pe.charAt(Re)););return Re}var DV=F0(uV);function AV(pe){for(var Re=_0.lastIndex=0;_0.test(pe);)++Re;return Re}function LV(pe){return pe.match(_0)||[]}function FV(pe){return pe.match(rV)||[]}var NV=function pe(Re){Re=Re==null?Mr:Kc.defaults(Mr.Object(),Re,Kc.pick(Mr,iV));var Pe=Re.Array,st=Re.Date,Et=Re.Error,en=Re.Function,ar=Re.Math,vn=Re.Object,j0=Re.RegExp,BV=Re.String,cs=Re.TypeError,Xh=Pe.prototype,zV=en.prototype,qc=vn.prototype,Zh=Re["__core-js_shared__"],Jh=zV.toString,cn=qc.hasOwnProperty,VV=0,k2=function(){var d=/[^.]+$/.exec(Zh&&Zh.keys&&Zh.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),em=qc.toString,jV=Jh.call(vn),HV=Mr._,UV=j0("^"+Jh.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tm=a2?Re.Buffer:n,El=Re.Symbol,nm=Re.Uint8Array,I2=tm?tm.allocUnsafe:n,rm=S2(vn.getPrototypeOf,vn),E2=vn.create,M2=qc.propertyIsEnumerable,om=Xh.splice,T2=El?El.isConcatSpreadable:n,lf=El?El.iterator:n,Fa=El?El.toStringTag:n,sm=function(){try{var d=ja(vn,"defineProperty");return d({},"",{}),d}catch(h){}}(),WV=Re.clearTimeout!==Mr.clearTimeout&&Re.clearTimeout,GV=st&&st.now!==Mr.Date.now&&st.now,KV=Re.setTimeout!==Mr.setTimeout&&Re.setTimeout,im=ar.ceil,lm=ar.floor,H0=vn.getOwnPropertySymbols,qV=tm?tm.isBuffer:n,_2=Re.isFinite,YV=Xh.join,QV=S2(vn.keys,vn),cr=ar.max,Nr=ar.min,XV=st.now,ZV=Re.parseInt,$2=ar.random,JV=Xh.reverse,U0=ja(Re,"DataView"),af=ja(Re,"Map"),W0=ja(Re,"Promise"),Yc=ja(Re,"Set"),cf=ja(Re,"WeakMap"),uf=ja(vn,"create"),am=cf&&new cf,Qc={},ej=Ha(U0),tj=Ha(af),nj=Ha(W0),rj=Ha(Yc),oj=Ha(cf),cm=El?El.prototype:n,df=cm?cm.valueOf:n,R2=cm?cm.toString:n;function G(d){if(jn(d)&&!Mt(d)&&!(d instanceof Ht)){if(d instanceof us)return d;if(cn.call(d,"__wrapped__"))return OM(d)}return new us(d)}var Xc=function(){function d(){}return function(h){if(!Fn(h))return{};if(E2)return E2(h);d.prototype=h;var P=new d;return d.prototype=n,P}}();function um(){}function us(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}G.templateSettings={escape:Rt,evaluate:gr,interpolate:rr,variable:"",imports:{_:G}},G.prototype=um.prototype,G.prototype.constructor=G,us.prototype=Xc(um.prototype),us.prototype.constructor=us;function Ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function sj(){var d=new Ht(this.__wrapped__);return d.__actions__=ho(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=ho(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=ho(this.__views__),d}function ij(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function lj(){var d=this.__wrapped__.value(),h=this.__dir__,P=Mt(d),B=h<0,U=P?d.length:0,q=b6(0,U,this.__views__),ee=q.start,re=q.end,he=re-ee,De=B?re:ee-1,Fe=this.__iteratees__,Be=Fe.length,Je=0,ft=Nr(he,this.__takeCount__);if(!P||!B&&U==he&&ft==he)return nM(d,this.__actions__);var Ct=[];e:for(;he--&&Je<ft;){De+=h;for(var Dt=-1,xt=d[De];++Dt<Be;){var Bt=Fe[Dt],Gt=Bt.iteratee,Lo=Bt.type,eo=Gt(xt);if(Lo==A)xt=eo;else if(!eo){if(Lo==_)continue e;break e}}Ct[Je++]=xt}return Ct}Ht.prototype=Xc(um.prototype),Ht.prototype.constructor=Ht;function Na(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var B=d[h];this.set(B[0],B[1])}}function aj(){this.__data__=uf?uf(null):{},this.size=0}function cj(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function uj(d){var h=this.__data__;if(uf){var P=h[d];return P===a?n:P}return cn.call(h,d)?h[d]:n}function dj(d){var h=this.__data__;return uf?h[d]!==n:cn.call(h,d)}function fj(d,h){var P=this.__data__;return this.size+=this.has(d)?0:1,P[d]=uf&&h===n?a:h,this}Na.prototype.clear=aj,Na.prototype.delete=cj,Na.prototype.get=uj,Na.prototype.has=dj,Na.prototype.set=fj;function Hi(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var B=d[h];this.set(B[0],B[1])}}function pj(){this.__data__=[],this.size=0}function hj(d){var h=this.__data__,P=dm(h,d);if(P<0)return!1;var B=h.length-1;return P==B?h.pop():om.call(h,P,1),--this.size,!0}function mj(d){var h=this.__data__,P=dm(h,d);return P<0?n:h[P][1]}function gj(d){return dm(this.__data__,d)>-1}function vj(d,h){var P=this.__data__,B=dm(P,d);return B<0?(++this.size,P.push([d,h])):P[B][1]=h,this}Hi.prototype.clear=pj,Hi.prototype.delete=hj,Hi.prototype.get=mj,Hi.prototype.has=gj,Hi.prototype.set=vj;function Ui(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var B=d[h];this.set(B[0],B[1])}}function yj(){this.size=0,this.__data__={hash:new Na,map:new(af||Hi),string:new Na}}function bj(d){var h=Sm(this,d).delete(d);return this.size-=h?1:0,h}function wj(d){return Sm(this,d).get(d)}function Cj(d){return Sm(this,d).has(d)}function xj(d,h){var P=Sm(this,d),B=P.size;return P.set(d,h),this.size+=P.size==B?0:1,this}Ui.prototype.clear=yj,Ui.prototype.delete=bj,Ui.prototype.get=wj,Ui.prototype.has=Cj,Ui.prototype.set=xj;function Ba(d){var h=-1,P=d==null?0:d.length;for(this.__data__=new Ui;++h<P;)this.add(d[h])}function Sj(d){return this.__data__.set(d,a),this}function Pj(d){return this.__data__.has(d)}Ba.prototype.add=Ba.prototype.push=Sj,Ba.prototype.has=Pj;function Hs(d){var h=this.__data__=new Hi(d);this.size=h.size}function kj(){this.__data__=new Hi,this.size=0}function Ij(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P}function Ej(d){return this.__data__.get(d)}function Mj(d){return this.__data__.has(d)}function Tj(d,h){var P=this.__data__;if(P instanceof Hi){var B=P.__data__;if(!af||B.length<o-1)return B.push([d,h]),this.size=++P.size,this;P=this.__data__=new Ui(B)}return P.set(d,h),this.size=P.size,this}Hs.prototype.clear=kj,Hs.prototype.delete=Ij,Hs.prototype.get=Ej,Hs.prototype.has=Mj,Hs.prototype.set=Tj;function O2(d,h){var P=Mt(d),B=!P&&Ua(d),U=!P&&!B&&Rl(d),q=!P&&!B&&!U&&tu(d),ee=P||B||U||q,re=ee?B0(d.length,BV):[],he=re.length;for(var De in d)(h||cn.call(d,De))&&!(ee&&(De=="length"||U&&(De=="offset"||De=="parent")||q&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||qi(De,he)))&&re.push(De);return re}function D2(d){var h=d.length;return h?d[n1(0,h-1)]:n}function _j(d,h){return Pm(ho(d),za(h,0,d.length))}function $j(d){return Pm(ho(d))}function G0(d,h,P){(P!==n&&!Us(d[h],P)||P===n&&!(h in d))&&Wi(d,h,P)}function ff(d,h,P){var B=d[h];(!(cn.call(d,h)&&Us(B,P))||P===n&&!(h in d))&&Wi(d,h,P)}function dm(d,h){for(var P=d.length;P--;)if(Us(d[P][0],h))return P;return-1}function Rj(d,h,P,B){return Ml(d,function(U,q,ee){h(B,U,P(U),ee)}),B}function A2(d,h){return d&&pi(h,yr(h),d)}function Oj(d,h){return d&&pi(h,go(h),d)}function Wi(d,h,P){h=="__proto__"&&sm?sm(d,h,{configurable:!0,enumerable:!0,value:P,writable:!0}):d[h]=P}function K0(d,h){for(var P=-1,B=h.length,U=Pe(B),q=d==null;++P<B;)U[P]=q?n:E1(d,h[P]);return U}function za(d,h,P){return d===d&&(P!==n&&(d=d<=P?d:P),h!==n&&(d=d>=h?d:h)),d}function ds(d,h,P,B,U,q){var ee,re=h&p,he=h&g,De=h&v;if(P&&(ee=U?P(d,B,U,q):P(d)),ee!==n)return ee;if(!Fn(d))return d;var Fe=Mt(d);if(Fe){if(ee=C6(d),!re)return ho(d,ee)}else{var Be=Br(d),Je=Be==be||Be==de;if(Rl(d))return sM(d,re);if(Be==Ee||Be==X||Je&&!U){if(ee=he||Je?{}:PM(d),!re)return he?u6(d,Oj(ee,d)):c6(d,A2(ee,d))}else{if(!wn[Be])return U?d:{};ee=x6(d,Be,re)}}q||(q=new Hs);var ft=q.get(d);if(ft)return ft;q.set(d,ee),JM(d)?d.forEach(function(xt){ee.add(ds(xt,h,P,xt,d,q))}):XM(d)&&d.forEach(function(xt,Bt){ee.set(Bt,ds(xt,h,P,Bt,d,q))});var Ct=De?he?p1:f1:he?go:yr,Dt=Fe?n:Ct(d);return as(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),ff(ee,Bt,ds(xt,h,P,Bt,d,q))}),ee}function Dj(d){var h=yr(d);return function(P){return L2(P,d,h)}}function L2(d,h,P){var B=P.length;if(d==null)return!B;for(d=vn(d);B--;){var U=P[B],q=h[U],ee=d[U];if(ee===n&&!(U in d)||!q(ee))return!1}return!0}function F2(d,h,P){if(typeof d!="function")throw new cs(i);return bf(function(){d.apply(n,P)},h)}function pf(d,h,P,B){var U=-1,q=qh,ee=!0,re=d.length,he=[],De=h.length;if(!re)return he;P&&(h=Rn(h,Oo(P))),B?(q=O0,ee=!1):h.length>=o&&(q=sf,ee=!1,h=new Ba(h));e:for(;++U<re;){var Fe=d[U],Be=P==null?Fe:P(Fe);if(Fe=B||Fe!==0?Fe:0,ee&&Be===Be){for(var Je=De;Je--;)if(h[Je]===Be)continue e;he.push(Fe)}else q(h,Be,B)||he.push(Fe)}return he}var Ml=uM(fi),N2=uM(Y0,!0);function Aj(d,h){var P=!0;return Ml(d,function(B,U,q){return P=!!h(B,U,q),P}),P}function fm(d,h,P){for(var B=-1,U=d.length;++B<U;){var q=d[B],ee=h(q);if(ee!=null&&(re===n?ee===ee&&!Ao(ee):P(ee,re)))var re=ee,he=q}return he}function Lj(d,h,P,B){var U=d.length;for(P=Ot(P),P<0&&(P=-P>U?0:U+P),B=B===n||B>U?U:Ot(B),B<0&&(B+=U),B=P>B?0:tT(B);P<B;)d[P++]=h;return d}function B2(d,h){var P=[];return Ml(d,function(B,U,q){h(B,U,q)&&P.push(B)}),P}function Tr(d,h,P,B,U){var q=-1,ee=d.length;for(P||(P=P6),U||(U=[]);++q<ee;){var re=d[q];h>0&&P(re)?h>1?Tr(re,h-1,P,B,U):kl(U,re):B||(U[U.length]=re)}return U}var q0=dM(),z2=dM(!0);function fi(d,h){return d&&q0(d,h,yr)}function Y0(d,h){return d&&z2(d,h,yr)}function pm(d,h){return Pl(h,function(P){return Yi(d[P])})}function Va(d,h){h=_l(h,d);for(var P=0,B=h.length;d!=null&&P<B;)d=d[hi(h[P++])];return P&&P==B?d:n}function V2(d,h,P){var B=h(d);return Mt(d)?B:kl(B,P(d))}function Zr(d){return d==null?d===n?Te:le:Fa&&Fa in vn(d)?y6(d):$6(d)}function Q0(d,h){return d>h}function Fj(d,h){return d!=null&&cn.call(d,h)}function Nj(d,h){return d!=null&&h in vn(d)}function Bj(d,h,P){return d>=Nr(h,P)&&d<cr(h,P)}function X0(d,h,P){for(var B=P?O0:qh,U=d[0].length,q=d.length,ee=q,re=Pe(q),he=1/0,De=[];ee--;){var Fe=d[ee];ee&&h&&(Fe=Rn(Fe,Oo(h))),he=Nr(Fe.length,he),re[ee]=!P&&(h||U>=120&&Fe.length>=120)?new Ba(ee&&Fe):n}Fe=d[0];var Be=-1,Je=re[0];e:for(;++Be<U&&De.length<he;){var ft=Fe[Be],Ct=h?h(ft):ft;if(ft=P||ft!==0?ft:0,!(Je?sf(Je,Ct):B(De,Ct,P))){for(ee=q;--ee;){var Dt=re[ee];if(!(Dt?sf(Dt,Ct):B(d[ee],Ct,P)))continue e}Je&&Je.push(Ct),De.push(ft)}}return De}function zj(d,h,P,B){return fi(d,function(U,q,ee){h(B,P(U),q,ee)}),B}function hf(d,h,P){h=_l(h,d),d=MM(d,h);var B=d==null?d:d[hi(ps(h))];return B==null?n:Ro(B,d,P)}function j2(d){return jn(d)&&Zr(d)==X}function Vj(d){return jn(d)&&Zr(d)==Ve}function jj(d){return jn(d)&&Zr(d)==we}function mf(d,h,P,B,U){return d===h?!0:d==null||h==null||!jn(d)&&!jn(h)?d!==d&&h!==h:Hj(d,h,P,B,mf,U)}function Hj(d,h,P,B,U,q){var ee=Mt(d),re=Mt(h),he=ee?J:Br(d),De=re?J:Br(h);he=he==X?Ee:he,De=De==X?Ee:De;var Fe=he==Ee,Be=De==Ee,Je=he==De;if(Je&&Rl(d)){if(!Rl(h))return!1;ee=!0,Fe=!1}if(Je&&!Fe)return q||(q=new Hs),ee||tu(d)?CM(d,h,P,B,U,q):g6(d,h,he,P,B,U,q);if(!(P&y)){var ft=Fe&&cn.call(d,"__wrapped__"),Ct=Be&&cn.call(h,"__wrapped__");if(ft||Ct){var Dt=ft?d.value():d,xt=Ct?h.value():h;return q||(q=new Hs),U(Dt,xt,P,B,q)}}return Je?(q||(q=new Hs),v6(d,h,P,B,U,q)):!1}function Uj(d){return jn(d)&&Br(d)==ke}function Z0(d,h,P,B){var U=P.length,q=U,ee=!B;if(d==null)return!q;for(d=vn(d);U--;){var re=P[U];if(ee&&re[2]?re[1]!==d[re[0]]:!(re[0]in d))return!1}for(;++U<q;){re=P[U];var he=re[0],De=d[he],Fe=re[1];if(ee&&re[2]){if(De===n&&!(he in d))return!1}else{var Be=new Hs;if(B)var Je=B(De,Fe,he,d,h,Be);if(!(Je===n?mf(Fe,De,y|m,B,Be):Je))return!1}}return!0}function H2(d){if(!Fn(d)||I6(d))return!1;var h=Yi(d)?UV:Wt;return h.test(Ha(d))}function Wj(d){return jn(d)&&Zr(d)==ue}function Gj(d){return jn(d)&&Br(d)==ce}function Kj(d){return jn(d)&&_m(d.length)&&!!kn[Zr(d)]}function U2(d){return typeof d=="function"?d:d==null?vo:typeof d=="object"?Mt(d)?K2(d[0],d[1]):G2(d):fT(d)}function J0(d){if(!yf(d))return QV(d);var h=[];for(var P in vn(d))cn.call(d,P)&&P!="constructor"&&h.push(P);return h}function qj(d){if(!Fn(d))return _6(d);var h=yf(d),P=[];for(var B in d)B=="constructor"&&(h||!cn.call(d,B))||P.push(B);return P}function e1(d,h){return d<h}function W2(d,h){var P=-1,B=mo(d)?Pe(d.length):[];return Ml(d,function(U,q,ee){B[++P]=h(U,q,ee)}),B}function G2(d){var h=m1(d);return h.length==1&&h[0][2]?IM(h[0][0],h[0][1]):function(P){return P===d||Z0(P,d,h)}}function K2(d,h){return v1(d)&&kM(h)?IM(hi(d),h):function(P){var B=E1(P,d);return B===n&&B===h?M1(P,d):mf(h,B,y|m)}}function hm(d,h,P,B,U){d!==h&&q0(h,function(q,ee){if(U||(U=new Hs),Fn(q))Yj(d,h,ee,P,hm,B,U);else{var re=B?B(b1(d,ee),q,ee+"",d,h,U):n;re===n&&(re=q),G0(d,ee,re)}},go)}function Yj(d,h,P,B,U,q,ee){var re=b1(d,P),he=b1(h,P),De=ee.get(he);if(De){G0(d,P,De);return}var Fe=q?q(re,he,P+"",d,h,ee):n,Be=Fe===n;if(Be){var Je=Mt(he),ft=!Je&&Rl(he),Ct=!Je&&!ft&&tu(he);Fe=he,Je||ft||Ct?Mt(re)?Fe=re:Xn(re)?Fe=ho(re):ft?(Be=!1,Fe=sM(he,!0)):Ct?(Be=!1,Fe=iM(he,!0)):Fe=[]:wf(he)||Ua(he)?(Fe=re,Ua(re)?Fe=nT(re):(!Fn(re)||Yi(re))&&(Fe=PM(he))):Be=!1}Be&&(ee.set(he,Fe),U(Fe,he,B,q,ee),ee.delete(he)),G0(d,P,Fe)}function q2(d,h){var P=d.length;if(P)return h+=h<0?P:0,qi(h,P)?d[h]:n}function Y2(d,h,P){h.length?h=Rn(h,function(q){return Mt(q)?function(ee){return Va(ee,q.length===1?q[0]:q)}:q}):h=[vo];var B=-1;h=Rn(h,Oo(yt()));var U=W2(d,function(q,ee,re){var he=Rn(h,function(De){return De(q)});return{criteria:he,index:++B,value:q}});return xV(U,function(q,ee){return a6(q,ee,P)})}function Qj(d,h){return Q2(d,h,function(P,B){return M1(d,B)})}function Q2(d,h,P){for(var B=-1,U=h.length,q={};++B<U;){var ee=h[B],re=Va(d,ee);P(re,ee)&&gf(q,_l(ee,d),re)}return q}function Xj(d){return function(h){return Va(h,d)}}function t1(d,h,P,B){var U=B?CV:Uc,q=-1,ee=h.length,re=d;for(d===h&&(h=ho(h)),P&&(re=Rn(d,Oo(P)));++q<ee;)for(var he=0,De=h[q],Fe=P?P(De):De;(he=U(re,Fe,he,B))>-1;)re!==d&&om.call(re,he,1),om.call(d,he,1);return d}function X2(d,h){for(var P=d?h.length:0,B=P-1;P--;){var U=h[P];if(P==B||U!==q){var q=U;qi(U)?om.call(d,U,1):s1(d,U)}}return d}function n1(d,h){return d+lm($2()*(h-d+1))}function Zj(d,h,P,B){for(var U=-1,q=cr(im((h-d)/(P||1)),0),ee=Pe(q);q--;)ee[B?q:++U]=d,d+=P;return ee}function r1(d,h){var P="";if(!d||h<1||h>D)return P;do h%2&&(P+=d),h=lm(h/2),h&&(d+=d);while(h);return P}function Lt(d,h){return w1(EM(d,h,vo),d+"")}function Jj(d){return D2(nu(d))}function e6(d,h){var P=nu(d);return Pm(P,za(h,0,P.length))}function gf(d,h,P,B){if(!Fn(d))return d;h=_l(h,d);for(var U=-1,q=h.length,ee=q-1,re=d;re!=null&&++U<q;){var he=hi(h[U]),De=P;if(he==="__proto__"||he==="constructor"||he==="prototype")return d;if(U!=ee){var Fe=re[he];De=B?B(Fe,he,re):n,De===n&&(De=Fn(Fe)?Fe:qi(h[U+1])?[]:{})}ff(re,he,De),re=re[he]}return d}var Z2=am?function(d,h){return am.set(d,h),d}:vo,t6=sm?function(d,h){return sm(d,"toString",{configurable:!0,enumerable:!1,value:_1(h),writable:!0})}:vo;function n6(d){return Pm(nu(d))}function fs(d,h,P){var B=-1,U=d.length;h<0&&(h=-h>U?0:U+h),P=P>U?U:P,P<0&&(P+=U),U=h>P?0:P-h>>>0,h>>>=0;for(var q=Pe(U);++B<U;)q[B]=d[B+h];return q}function r6(d,h){var P;return Ml(d,function(B,U,q){return P=h(B,U,q),!P}),!!P}function mm(d,h,P){var B=0,U=d==null?B:d.length;if(typeof h=="number"&&h===h&&U<=Z){for(;B<U;){var q=B+U>>>1,ee=d[q];ee!==null&&!Ao(ee)&&(P?ee<=h:ee<h)?B=q+1:U=q}return U}return o1(d,h,vo,P)}function o1(d,h,P,B){var U=0,q=d==null?0:d.length;if(q===0)return 0;h=P(h);for(var ee=h!==h,re=h===null,he=Ao(h),De=h===n;U<q;){var Fe=lm((U+q)/2),Be=P(d[Fe]),Je=Be!==n,ft=Be===null,Ct=Be===Be,Dt=Ao(Be);if(ee)var xt=B||Ct;else De?xt=Ct&&(B||Je):re?xt=Ct&&Je&&(B||!ft):he?xt=Ct&&Je&&!ft&&(B||!Dt):ft||Dt?xt=!1:xt=B?Be<=h:Be<h;xt?U=Fe+1:q=Fe}return Nr(q,Y)}function J2(d,h){for(var P=-1,B=d.length,U=0,q=[];++P<B;){var ee=d[P],re=h?h(ee):ee;if(!P||!Us(re,he)){var he=re;q[U++]=ee===0?0:ee}}return q}function eM(d){return typeof d=="number"?d:Ao(d)?H:+d}function Do(d){if(typeof d=="string")return d;if(Mt(d))return Rn(d,Do)+"";if(Ao(d))return R2?R2.call(d):"";var h=d+"";return h=="0"&&1/d==-z?"-0":h}function Tl(d,h,P){var B=-1,U=qh,q=d.length,ee=!0,re=[],he=re;if(P)ee=!1,U=O0;else if(q>=o){var De=h?null:h6(d);if(De)return Qh(De);ee=!1,U=sf,he=new Ba}else he=h?[]:re;e:for(;++B<q;){var Fe=d[B],Be=h?h(Fe):Fe;if(Fe=P||Fe!==0?Fe:0,ee&&Be===Be){for(var Je=he.length;Je--;)if(he[Je]===Be)continue e;h&&he.push(Be),re.push(Fe)}else U(he,Be,P)||(he!==re&&he.push(Be),re.push(Fe))}return re}function s1(d,h){return h=_l(h,d),d=MM(d,h),d==null||delete d[hi(ps(h))]}function tM(d,h,P,B){return gf(d,h,P(Va(d,h)),B)}function gm(d,h,P,B){for(var U=d.length,q=B?U:-1;(B?q--:++q<U)&&h(d[q],q,d););return P?fs(d,B?0:q,B?q+1:U):fs(d,B?q+1:0,B?U:q)}function nM(d,h){var P=d;return P instanceof Ht&&(P=P.value()),D0(h,function(B,U){return U.func.apply(U.thisArg,kl([B],U.args))},P)}function i1(d,h,P){var B=d.length;if(B<2)return B?Tl(d[0]):[];for(var U=-1,q=Pe(B);++U<B;)for(var ee=d[U],re=-1;++re<B;)re!=U&&(q[U]=pf(q[U]||ee,d[re],h,P));return Tl(Tr(q,1),h,P)}function rM(d,h,P){for(var B=-1,U=d.length,q=h.length,ee={};++B<U;){var re=B<q?h[B]:n;P(ee,d[B],re)}return ee}function l1(d){return Xn(d)?d:[]}function a1(d){return typeof d=="function"?d:vo}function _l(d,h){return Mt(d)?d:v1(d,h)?[d]:RM(on(d))}var o6=Lt;function $l(d,h,P){var B=d.length;return P=P===n?B:P,!h&&P>=B?d:fs(d,h,P)}var oM=WV||function(d){return Mr.clearTimeout(d)};function sM(d,h){if(h)return d.slice();var P=d.length,B=I2?I2(P):new d.constructor(P);return d.copy(B),B}function c1(d){var h=new d.constructor(d.byteLength);return new nm(h).set(new nm(d)),h}function s6(d,h){var P=h?c1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.byteLength)}function i6(d){var h=new d.constructor(d.source,ve.exec(d));return h.lastIndex=d.lastIndex,h}function l6(d){return df?vn(df.call(d)):{}}function iM(d,h){var P=h?c1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function lM(d,h){if(d!==h){var P=d!==n,B=d===null,U=d===d,q=Ao(d),ee=h!==n,re=h===null,he=h===h,De=Ao(h);if(!re&&!De&&!q&&d>h||q&&ee&&he&&!re&&!De||B&&ee&&he||!P&&he||!U)return 1;if(!B&&!q&&!De&&d<h||De&&P&&U&&!B&&!q||re&&P&&U||!ee&&U||!he)return-1}return 0}function a6(d,h,P){for(var B=-1,U=d.criteria,q=h.criteria,ee=U.length,re=P.length;++B<ee;){var he=lM(U[B],q[B]);if(he){if(B>=re)return he;var De=P[B];return he*(De=="desc"?-1:1)}}return d.index-h.index}function aM(d,h,P,B){for(var U=-1,q=d.length,ee=P.length,re=-1,he=h.length,De=cr(q-ee,0),Fe=Pe(he+De),Be=!B;++re<he;)Fe[re]=h[re];for(;++U<ee;)(Be||U<q)&&(Fe[P[U]]=d[U]);for(;De--;)Fe[re++]=d[U++];return Fe}function cM(d,h,P,B){for(var U=-1,q=d.length,ee=-1,re=P.length,he=-1,De=h.length,Fe=cr(q-re,0),Be=Pe(Fe+De),Je=!B;++U<Fe;)Be[U]=d[U];for(var ft=U;++he<De;)Be[ft+he]=h[he];for(;++ee<re;)(Je||U<q)&&(Be[ft+P[ee]]=d[U++]);return Be}function ho(d,h){var P=-1,B=d.length;for(h||(h=Pe(B));++P<B;)h[P]=d[P];return h}function pi(d,h,P,B){var U=!P;P||(P={});for(var q=-1,ee=h.length;++q<ee;){var re=h[q],he=B?B(P[re],d[re],re,P,d):n;he===n&&(he=d[re]),U?Wi(P,re,he):ff(P,re,he)}return P}function c6(d,h){return pi(d,g1(d),h)}function u6(d,h){return pi(d,xM(d),h)}function vm(d,h){return function(P,B){var U=Mt(P)?mV:Rj,q=h?h():{};return U(P,d,yt(B,2),q)}}function Zc(d){return Lt(function(h,P){var B=-1,U=P.length,q=U>1?P[U-1]:n,ee=U>2?P[2]:n;for(q=d.length>3&&typeof q=="function"?(U--,q):n,ee&&Jr(P[0],P[1],ee)&&(q=U<3?n:q,U=1),h=vn(h);++B<U;){var re=P[B];re&&d(h,re,B,q)}return h})}function uM(d,h){return function(P,B){if(P==null)return P;if(!mo(P))return d(P,B);for(var U=P.length,q=h?U:-1,ee=vn(P);(h?q--:++q<U)&&B(ee[q],q,ee)!==!1;);return P}}function dM(d){return function(h,P,B){for(var U=-1,q=vn(h),ee=B(h),re=ee.length;re--;){var he=ee[d?re:++U];if(P(q[he],he,q)===!1)break}return h}}function d6(d,h,P){var B=h&C,U=vf(d);function q(){var ee=this&&this!==Mr&&this instanceof q?U:d;return ee.apply(B?P:this,arguments)}return q}function fM(d){return function(h){h=on(h);var P=Wc(h)?js(h):n,B=P?P[0]:h.charAt(0),U=P?$l(P,1).join(""):h.slice(1);return B[d]()+U}}function Jc(d){return function(h){return D0(uT(cT(h).replace(tV,"")),d,"")}}function vf(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var P=Xc(d.prototype),B=d.apply(P,h);return Fn(B)?B:P}}function f6(d,h,P){var B=vf(d);function U(){for(var q=arguments.length,ee=Pe(q),re=q,he=eu(U);re--;)ee[re]=arguments[re];var De=q<3&&ee[0]!==he&&ee[q-1]!==he?[]:Il(ee,he);if(q-=De.length,q<P)return vM(d,h,ym,U.placeholder,n,ee,De,n,n,P-q);var Fe=this&&this!==Mr&&this instanceof U?B:d;return Ro(Fe,this,ee)}return U}function pM(d){return function(h,P,B){var U=vn(h);if(!mo(h)){var q=yt(P,3);h=yr(h),P=function(re){return q(U[re],re,U)}}var ee=d(h,P,B);return ee>-1?U[q?h[ee]:ee]:n}}function hM(d){return Ki(function(h){var P=h.length,B=P,U=us.prototype.thru;for(d&&h.reverse();B--;){var q=h[B];if(typeof q!="function")throw new cs(i);if(U&&!ee&&xm(q)=="wrapper")var ee=new us([],!0)}for(B=ee?B:P;++B<P;){q=h[B];var re=xm(q),he=re=="wrapper"?h1(q):n;he&&y1(he[0])&&he[1]==(E|S|M|T)&&!he[4].length&&he[9]==1?ee=ee[xm(he[0])].apply(ee,he[3]):ee=q.length==1&&y1(q)?ee[re]():ee.thru(q)}return function(){var De=arguments,Fe=De[0];if(ee&&De.length==1&&Mt(Fe))return ee.plant(Fe).value();for(var Be=0,Je=P?h[Be].apply(this,De):Fe;++Be<P;)Je=h[Be].call(this,Je);return Je}})}function ym(d,h,P,B,U,q,ee,re,he,De){var Fe=h&E,Be=h&C,Je=h&b,ft=h&(S|k),Ct=h&L,Dt=Je?n:vf(d);function xt(){for(var Bt=arguments.length,Gt=Pe(Bt),Lo=Bt;Lo--;)Gt[Lo]=arguments[Lo];if(ft)var eo=eu(xt),Fo=PV(Gt,eo);if(B&&(Gt=aM(Gt,B,U,ft)),q&&(Gt=cM(Gt,q,ee,ft)),Bt-=Fo,ft&&Bt<De){var Zn=Il(Gt,eo);return vM(d,h,ym,xt.placeholder,P,Gt,Zn,re,he,De-Bt)}var Ws=Be?P:this,Xi=Je?Ws[d]:d;return Bt=Gt.length,re?Gt=R6(Gt,re):Ct&&Bt>1&&Gt.reverse(),Fe&&he<Bt&&(Gt.length=he),this&&this!==Mr&&this instanceof xt&&(Xi=Dt||vf(Xi)),Xi.apply(Ws,Gt)}return xt}function mM(d,h){return function(P,B){return zj(P,d,h(B),{})}}function bm(d,h){return function(P,B){var U;if(P===n&&B===n)return h;if(P!==n&&(U=P),B!==n){if(U===n)return B;typeof P=="string"||typeof B=="string"?(P=Do(P),B=Do(B)):(P=eM(P),B=eM(B)),U=d(P,B)}return U}}function u1(d){return Ki(function(h){return h=Rn(h,Oo(yt())),Lt(function(P){var B=this;return d(h,function(U){return Ro(U,B,P)})})})}function wm(d,h){h=h===n?" ":Do(h);var P=h.length;if(P<2)return P?r1(h,d):h;var B=r1(h,im(d/Gc(h)));return Wc(h)?$l(js(B),0,d).join(""):B.slice(0,d)}function p6(d,h,P,B){var U=h&C,q=vf(d);function ee(){for(var re=-1,he=arguments.length,De=-1,Fe=B.length,Be=Pe(Fe+he),Je=this&&this!==Mr&&this instanceof ee?q:d;++De<Fe;)Be[De]=B[De];for(;he--;)Be[De++]=arguments[++re];return Ro(Je,U?P:this,Be)}return ee}function gM(d){return function(h,P,B){return B&&typeof B!="number"&&Jr(h,P,B)&&(P=B=n),h=Qi(h),P===n?(P=h,h=0):P=Qi(P),B=B===n?h<P?1:-1:Qi(B),Zj(h,P,B,d)}}function Cm(d){return function(h,P){return typeof h=="string"&&typeof P=="string"||(h=hs(h),P=hs(P)),d(h,P)}}function vM(d,h,P,B,U,q,ee,re,he,De){var Fe=h&S,Be=Fe?ee:n,Je=Fe?n:ee,ft=Fe?q:n,Ct=Fe?n:q;h|=Fe?M:I,h&=~(Fe?I:M),h&w||(h&=~(C|b));var Dt=[d,h,U,ft,Be,Ct,Je,re,he,De],xt=P.apply(n,Dt);return y1(d)&&TM(xt,Dt),xt.placeholder=B,_M(xt,d,h)}function d1(d){var h=ar[d];return function(P,B){if(P=hs(P),B=B==null?0:Nr(Ot(B),292),B&&_2(P)){var U=(on(P)+"e").split("e"),q=h(U[0]+"e"+(+U[1]+B));return U=(on(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-B))}return h(P)}}var h6=Yc&&1/Qh(new Yc([,-0]))[1]==z?function(d){return new Yc(d)}:O1;function yM(d){return function(h){var P=Br(h);return P==ke?V0(h):P==ce?$V(h):SV(h,d(h))}}function Gi(d,h,P,B,U,q,ee,re){var he=h&b;if(!he&&typeof d!="function")throw new cs(i);var De=B?B.length:0;if(De||(h&=~(M|I),B=U=n),ee=ee===n?ee:cr(Ot(ee),0),re=re===n?re:Ot(re),De-=U?U.length:0,h&I){var Fe=B,Be=U;B=U=n}var Je=he?n:h1(d),ft=[d,h,P,B,U,Fe,Be,q,ee,re];if(Je&&T6(ft,Je),d=ft[0],h=ft[1],P=ft[2],B=ft[3],U=ft[4],re=ft[9]=ft[9]===n?he?0:d.length:cr(ft[9]-De,0),!re&&h&(S|k)&&(h&=~(S|k)),!h||h==C)var Ct=d6(d,h,P);else h==S||h==k?Ct=f6(d,h,re):(h==M||h==(C|M))&&!U.length?Ct=p6(d,h,P,B):Ct=ym.apply(n,ft);var Dt=Je?Z2:TM;return _M(Dt(Ct,ft),d,h)}function bM(d,h,P,B){return d===n||Us(d,qc[P])&&!cn.call(B,P)?h:d}function wM(d,h,P,B,U,q){return Fn(d)&&Fn(h)&&(q.set(h,d),hm(d,h,n,wM,q),q.delete(h)),d}function m6(d){return wf(d)?n:d}function CM(d,h,P,B,U,q){var ee=P&y,re=d.length,he=h.length;if(re!=he&&!(ee&&he>re))return!1;var De=q.get(d),Fe=q.get(h);if(De&&Fe)return De==h&&Fe==d;var Be=-1,Je=!0,ft=P&m?new Ba:n;for(q.set(d,h),q.set(h,d);++Be<re;){var Ct=d[Be],Dt=h[Be];if(B)var xt=ee?B(Dt,Ct,Be,h,d,q):B(Ct,Dt,Be,d,h,q);if(xt!==n){if(xt)continue;Je=!1;break}if(ft){if(!A0(h,function(Bt,Gt){if(!sf(ft,Gt)&&(Ct===Bt||U(Ct,Bt,P,B,q)))return ft.push(Gt)})){Je=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,P,B,q))){Je=!1;break}}return q.delete(d),q.delete(h),Je}function g6(d,h,P,B,U,q,ee){switch(P){case Ue:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case Ve:return!(d.byteLength!=h.byteLength||!q(new nm(d),new nm(h)));case fe:case we:case Ie:return Us(+d,+h);case ae:return d.name==h.name&&d.message==h.message;case ue:case ie:return d==h+"";case ke:var re=V0;case ce:var he=B&y;if(re||(re=Qh),d.size!=h.size&&!he)return!1;var De=ee.get(d);if(De)return De==h;B|=m,ee.set(d,h);var Fe=CM(re(d),re(h),B,U,q,ee);return ee.delete(d),Fe;case ge:if(df)return df.call(d)==df.call(h)}return!1}function v6(d,h,P,B,U,q){var ee=P&y,re=f1(d),he=re.length,De=f1(h),Fe=De.length;if(he!=Fe&&!ee)return!1;for(var Be=he;Be--;){var Je=re[Be];if(!(ee?Je in h:cn.call(h,Je)))return!1}var ft=q.get(d),Ct=q.get(h);if(ft&&Ct)return ft==h&&Ct==d;var Dt=!0;q.set(d,h),q.set(h,d);for(var xt=ee;++Be<he;){Je=re[Be];var Bt=d[Je],Gt=h[Je];if(B)var Lo=ee?B(Gt,Bt,Je,h,d,q):B(Bt,Gt,Je,d,h,q);if(!(Lo===n?Bt===Gt||U(Bt,Gt,P,B,q):Lo)){Dt=!1;break}xt||(xt=Je=="constructor")}if(Dt&&!xt){var eo=d.constructor,Fo=h.constructor;eo!=Fo&&"constructor"in d&&"constructor"in h&&!(typeof eo=="function"&&eo instanceof eo&&typeof Fo=="function"&&Fo instanceof Fo)&&(Dt=!1)}return q.delete(d),q.delete(h),Dt}function Ki(d){return w1(EM(d,n,LM),d+"")}function f1(d){return V2(d,yr,g1)}function p1(d){return V2(d,go,xM)}var h1=am?function(d){return am.get(d)}:O1;function xm(d){for(var h=d.name+"",P=Qc[h],B=cn.call(Qc,h)?P.length:0;B--;){var U=P[B],q=U.func;if(q==null||q==d)return U.name}return h}function eu(d){var h=cn.call(G,"placeholder")?G:d;return h.placeholder}function yt(){var d=G.iteratee||$1;return d=d===$1?U2:d,arguments.length?d(arguments[0],arguments[1]):d}function Sm(d,h){var P=d.__data__;return k6(h)?P[typeof h=="string"?"string":"hash"]:P.map}function m1(d){for(var h=yr(d),P=h.length;P--;){var B=h[P],U=d[B];h[P]=[B,U,kM(U)]}return h}function ja(d,h){var P=MV(d,h);return H2(P)?P:n}function y6(d){var h=cn.call(d,Fa),P=d[Fa];try{d[Fa]=n;var B=!0}catch(q){}var U=em.call(d);return B&&(h?d[Fa]=P:delete d[Fa]),U}var g1=H0?function(d){return d==null?[]:(d=vn(d),Pl(H0(d),function(h){return M2.call(d,h)}))}:D1,xM=H0?function(d){for(var h=[];d;)kl(h,g1(d)),d=rm(d);return h}:D1,Br=Zr;(U0&&Br(new U0(new ArrayBuffer(1)))!=Ue||af&&Br(new af)!=ke||W0&&Br(W0.resolve())!=me||Yc&&Br(new Yc)!=ce||cf&&Br(new cf)!=Ne)&&(Br=function(d){var h=Zr(d),P=h==Ee?d.constructor:n,B=P?Ha(P):"";if(B)switch(B){case ej:return Ue;case tj:return ke;case nj:return me;case rj:return ce;case oj:return Ne}return h});function b6(d,h,P){for(var B=-1,U=P.length;++B<U;){var q=P[B],ee=q.size;switch(q.type){case"drop":d+=ee;break;case"dropRight":h-=ee;break;case"take":h=Nr(h,d+ee);break;case"takeRight":d=cr(d,h-ee);break}}return{start:d,end:h}}function w6(d){var h=d.match($o);return h?h[1].split(di):[]}function SM(d,h,P){h=_l(h,d);for(var B=-1,U=h.length,q=!1;++B<U;){var ee=hi(h[B]);if(!(q=d!=null&&P(d,ee)))break;d=d[ee]}return q||++B!=U?q:(U=d==null?0:d.length,!!U&&_m(U)&&qi(ee,U)&&(Mt(d)||Ua(d)))}function C6(d){var h=d.length,P=new d.constructor(h);return h&&typeof d[0]=="string"&&cn.call(d,"index")&&(P.index=d.index,P.input=d.input),P}function PM(d){return typeof d.constructor=="function"&&!yf(d)?Xc(rm(d)):{}}function x6(d,h,P){var B=d.constructor;switch(h){case Ve:return c1(d);case fe:case we:return new B(+d);case Ue:return s6(d,P);case Le:case pt:case Zt:case Pt:case wt:case Xe:case Oe:case qe:case mt:return iM(d,P);case ke:return new B;case Ie:case ie:return new B(d);case ue:return i6(d);case ce:return new B;case ge:return l6(d)}}function S6(d,h){var P=h.length;if(!P)return d;var B=P-1;return h[B]=(P>1?"& ":"")+h[B],h=h.join(P>2?", ":" "),d.replace(or,`{
|
|
301
|
+
/* [wrapped with `+h+`] */
|
|
302
|
+
`)}function P6(d){return Mt(d)||Ua(d)||!!(T2&&d&&d[T2])}function qi(d,h){var P=typeof d;return h=h==null?D:h,!!h&&(P=="number"||P!="symbol"&&Ln.test(d))&&d>-1&&d%1==0&&d<h}function Jr(d,h,P){if(!Fn(P))return!1;var B=typeof h;return(B=="number"?mo(P)&&qi(h,P.length):B=="string"&&h in P)?Us(P[h],d):!1}function v1(d,h){if(Mt(d))return!1;var P=typeof d;return P=="number"||P=="symbol"||P=="boolean"||d==null||Ao(d)?!0:ss.test(d)||!Sl.test(d)||h!=null&&d in vn(h)}function k6(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function y1(d){var h=xm(d),P=G[h];if(typeof P!="function"||!(h in Ht.prototype))return!1;if(d===P)return!0;var B=h1(P);return!!B&&d===B[0]}function I6(d){return!!k2&&k2 in d}var E6=Zh?Yi:A1;function yf(d){var h=d&&d.constructor,P=typeof h=="function"&&h.prototype||qc;return d===P}function kM(d){return d===d&&!Fn(d)}function IM(d,h){return function(P){return P==null?!1:P[d]===h&&(h!==n||d in vn(P))}}function M6(d){var h=Mm(d,function(B){return P.size===u&&P.clear(),B}),P=h.cache;return h}function T6(d,h){var P=d[1],B=h[1],U=P|B,q=U<(C|b|E),ee=B==E&&P==S||B==E&&P==T&&d[7].length<=h[8]||B==(E|T)&&h[7].length<=h[8]&&P==S;if(!(q||ee))return d;B&C&&(d[2]=h[2],U|=P&C?0:w);var re=h[3];if(re){var he=d[3];d[3]=he?aM(he,re,h[4]):re,d[4]=he?Il(d[3],f):h[4]}return re=h[5],re&&(he=d[5],d[5]=he?cM(he,re,h[6]):re,d[6]=he?Il(d[5],f):h[6]),re=h[7],re&&(d[7]=re),B&E&&(d[8]=d[8]==null?h[8]:Nr(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=U,d}function _6(d){var h=[];if(d!=null)for(var P in vn(d))h.push(P);return h}function $6(d){return em.call(d)}function EM(d,h,P){return h=cr(h===n?d.length-1:h,0),function(){for(var B=arguments,U=-1,q=cr(B.length-h,0),ee=Pe(q);++U<q;)ee[U]=B[h+U];U=-1;for(var re=Pe(h+1);++U<h;)re[U]=B[U];return re[h]=P(ee),Ro(d,this,re)}}function MM(d,h){return h.length<2?d:Va(d,fs(h,0,-1))}function R6(d,h){for(var P=d.length,B=Nr(h.length,P),U=ho(d);B--;){var q=h[B];d[B]=qi(q,P)?U[q]:n}return d}function b1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var TM=$M(Z2),bf=KV||function(d,h){return Mr.setTimeout(d,h)},w1=$M(t6);function _M(d,h,P){var B=h+"";return w1(d,S6(B,O6(w6(B),P)))}function $M(d){var h=0,P=0;return function(){var B=XV(),U=j-(B-P);if(P=B,U>0){if(++h>=V)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Pm(d,h){var P=-1,B=d.length,U=B-1;for(h=h===n?B:h;++P<h;){var q=n1(P,U),ee=d[q];d[q]=d[P],d[P]=ee}return d.length=h,d}var RM=M6(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(_n,function(P,B,U,q){h.push(U?q.replace(Vs,"$1"):B||P)}),h});function hi(d){if(typeof d=="string"||Ao(d))return d;var h=d+"";return h=="0"&&1/d==-z?"-0":h}function Ha(d){if(d!=null){try{return Jh.call(d)}catch(h){}try{return d+""}catch(h){}}return""}function O6(d,h){return as(Q,function(P){var B="_."+P[0];h&P[1]&&!qh(d,B)&&d.push(B)}),d.sort()}function OM(d){if(d instanceof Ht)return d.clone();var h=new us(d.__wrapped__,d.__chain__);return h.__actions__=ho(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function D6(d,h,P){(P?Jr(d,h,P):h===n)?h=1:h=cr(Ot(h),0);var B=d==null?0:d.length;if(!B||h<1)return[];for(var U=0,q=0,ee=Pe(im(B/h));U<B;)ee[q++]=fs(d,U,U+=h);return ee}function A6(d){for(var h=-1,P=d==null?0:d.length,B=0,U=[];++h<P;){var q=d[h];q&&(U[B++]=q)}return U}function L6(){var d=arguments.length;if(!d)return[];for(var h=Pe(d-1),P=arguments[0],B=d;B--;)h[B-1]=arguments[B];return kl(Mt(P)?ho(P):[P],Tr(h,1))}var F6=Lt(function(d,h){return Xn(d)?pf(d,Tr(h,1,Xn,!0)):[]}),N6=Lt(function(d,h){var P=ps(h);return Xn(P)&&(P=n),Xn(d)?pf(d,Tr(h,1,Xn,!0),yt(P,2)):[]}),B6=Lt(function(d,h){var P=ps(h);return Xn(P)&&(P=n),Xn(d)?pf(d,Tr(h,1,Xn,!0),n,P):[]});function z6(d,h,P){var B=d==null?0:d.length;return B?(h=P||h===n?1:Ot(h),fs(d,h<0?0:h,B)):[]}function V6(d,h,P){var B=d==null?0:d.length;return B?(h=P||h===n?1:Ot(h),h=B-h,fs(d,0,h<0?0:h)):[]}function j6(d,h){return d&&d.length?gm(d,yt(h,3),!0,!0):[]}function H6(d,h){return d&&d.length?gm(d,yt(h,3),!0):[]}function U6(d,h,P,B){var U=d==null?0:d.length;return U?(P&&typeof P!="number"&&Jr(d,h,P)&&(P=0,B=U),Lj(d,h,P,B)):[]}function DM(d,h,P){var B=d==null?0:d.length;if(!B)return-1;var U=P==null?0:Ot(P);return U<0&&(U=cr(B+U,0)),Yh(d,yt(h,3),U)}function AM(d,h,P){var B=d==null?0:d.length;if(!B)return-1;var U=B-1;return P!==n&&(U=Ot(P),U=P<0?cr(B+U,0):Nr(U,B-1)),Yh(d,yt(h,3),U,!0)}function LM(d){var h=d==null?0:d.length;return h?Tr(d,1):[]}function W6(d){var h=d==null?0:d.length;return h?Tr(d,z):[]}function G6(d,h){var P=d==null?0:d.length;return P?(h=h===n?1:Ot(h),Tr(d,h)):[]}function K6(d){for(var h=-1,P=d==null?0:d.length,B={};++h<P;){var U=d[h];B[U[0]]=U[1]}return B}function FM(d){return d&&d.length?d[0]:n}function q6(d,h,P){var B=d==null?0:d.length;if(!B)return-1;var U=P==null?0:Ot(P);return U<0&&(U=cr(B+U,0)),Uc(d,h,U)}function Y6(d){var h=d==null?0:d.length;return h?fs(d,0,-1):[]}var Q6=Lt(function(d){var h=Rn(d,l1);return h.length&&h[0]===d[0]?X0(h):[]}),X6=Lt(function(d){var h=ps(d),P=Rn(d,l1);return h===ps(P)?h=n:P.pop(),P.length&&P[0]===d[0]?X0(P,yt(h,2)):[]}),Z6=Lt(function(d){var h=ps(d),P=Rn(d,l1);return h=typeof h=="function"?h:n,h&&P.pop(),P.length&&P[0]===d[0]?X0(P,n,h):[]});function J6(d,h){return d==null?"":YV.call(d,h)}function ps(d){var h=d==null?0:d.length;return h?d[h-1]:n}function eH(d,h,P){var B=d==null?0:d.length;if(!B)return-1;var U=B;return P!==n&&(U=Ot(P),U=U<0?cr(B+U,0):Nr(U,B-1)),h===h?OV(d,h,U):Yh(d,v2,U,!0)}function tH(d,h){return d&&d.length?q2(d,Ot(h)):n}var nH=Lt(NM);function NM(d,h){return d&&d.length&&h&&h.length?t1(d,h):d}function rH(d,h,P){return d&&d.length&&h&&h.length?t1(d,h,yt(P,2)):d}function oH(d,h,P){return d&&d.length&&h&&h.length?t1(d,h,n,P):d}var sH=Ki(function(d,h){var P=d==null?0:d.length,B=K0(d,h);return X2(d,Rn(h,function(U){return qi(U,P)?+U:U}).sort(lM)),B});function iH(d,h){var P=[];if(!(d&&d.length))return P;var B=-1,U=[],q=d.length;for(h=yt(h,3);++B<q;){var ee=d[B];h(ee,B,d)&&(P.push(ee),U.push(B))}return X2(d,U),P}function C1(d){return d==null?d:JV.call(d)}function lH(d,h,P){var B=d==null?0:d.length;return B?(P&&typeof P!="number"&&Jr(d,h,P)?(h=0,P=B):(h=h==null?0:Ot(h),P=P===n?B:Ot(P)),fs(d,h,P)):[]}function aH(d,h){return mm(d,h)}function cH(d,h,P){return o1(d,h,yt(P,2))}function uH(d,h){var P=d==null?0:d.length;if(P){var B=mm(d,h);if(B<P&&Us(d[B],h))return B}return-1}function dH(d,h){return mm(d,h,!0)}function fH(d,h,P){return o1(d,h,yt(P,2),!0)}function pH(d,h){var P=d==null?0:d.length;if(P){var B=mm(d,h,!0)-1;if(Us(d[B],h))return B}return-1}function hH(d){return d&&d.length?J2(d):[]}function mH(d,h){return d&&d.length?J2(d,yt(h,2)):[]}function gH(d){var h=d==null?0:d.length;return h?fs(d,1,h):[]}function vH(d,h,P){return d&&d.length?(h=P||h===n?1:Ot(h),fs(d,0,h<0?0:h)):[]}function yH(d,h,P){var B=d==null?0:d.length;return B?(h=P||h===n?1:Ot(h),h=B-h,fs(d,h<0?0:h,B)):[]}function bH(d,h){return d&&d.length?gm(d,yt(h,3),!1,!0):[]}function wH(d,h){return d&&d.length?gm(d,yt(h,3)):[]}var CH=Lt(function(d){return Tl(Tr(d,1,Xn,!0))}),xH=Lt(function(d){var h=ps(d);return Xn(h)&&(h=n),Tl(Tr(d,1,Xn,!0),yt(h,2))}),SH=Lt(function(d){var h=ps(d);return h=typeof h=="function"?h:n,Tl(Tr(d,1,Xn,!0),n,h)});function PH(d){return d&&d.length?Tl(d):[]}function kH(d,h){return d&&d.length?Tl(d,yt(h,2)):[]}function IH(d,h){return h=typeof h=="function"?h:n,d&&d.length?Tl(d,n,h):[]}function x1(d){if(!(d&&d.length))return[];var h=0;return d=Pl(d,function(P){if(Xn(P))return h=cr(P.length,h),!0}),B0(h,function(P){return Rn(d,L0(P))})}function BM(d,h){if(!(d&&d.length))return[];var P=x1(d);return h==null?P:Rn(P,function(B){return Ro(h,n,B)})}var EH=Lt(function(d,h){return Xn(d)?pf(d,h):[]}),MH=Lt(function(d){return i1(Pl(d,Xn))}),TH=Lt(function(d){var h=ps(d);return Xn(h)&&(h=n),i1(Pl(d,Xn),yt(h,2))}),_H=Lt(function(d){var h=ps(d);return h=typeof h=="function"?h:n,i1(Pl(d,Xn),n,h)}),$H=Lt(x1);function RH(d,h){return rM(d||[],h||[],ff)}function OH(d,h){return rM(d||[],h||[],gf)}var DH=Lt(function(d){var h=d.length,P=h>1?d[h-1]:n;return P=typeof P=="function"?(d.pop(),P):n,BM(d,P)});function zM(d){var h=G(d);return h.__chain__=!0,h}function AH(d,h){return h(d),d}function km(d,h){return h(d)}var LH=Ki(function(d){var h=d.length,P=h?d[0]:0,B=this.__wrapped__,U=function(q){return K0(q,d)};return h>1||this.__actions__.length||!(B instanceof Ht)||!qi(P)?this.thru(U):(B=B.slice(P,+P+(h?1:0)),B.__actions__.push({func:km,args:[U],thisArg:n}),new us(B,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function FH(){return zM(this)}function NH(){return new us(this.value(),this.__chain__)}function BH(){this.__values__===n&&(this.__values__=eT(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function zH(){return this}function VH(d){for(var h,P=this;P instanceof um;){var B=OM(P);B.__index__=0,B.__values__=n,h?U.__wrapped__=B:h=B;var U=B;P=P.__wrapped__}return U.__wrapped__=d,h}function jH(){var d=this.__wrapped__;if(d instanceof Ht){var h=d;return this.__actions__.length&&(h=new Ht(this)),h=h.reverse(),h.__actions__.push({func:km,args:[C1],thisArg:n}),new us(h,this.__chain__)}return this.thru(C1)}function HH(){return nM(this.__wrapped__,this.__actions__)}var UH=vm(function(d,h,P){cn.call(d,P)?++d[P]:Wi(d,P,1)});function WH(d,h,P){var B=Mt(d)?m2:Aj;return P&&Jr(d,h,P)&&(h=n),B(d,yt(h,3))}function GH(d,h){var P=Mt(d)?Pl:B2;return P(d,yt(h,3))}var KH=pM(DM),qH=pM(AM);function YH(d,h){return Tr(Im(d,h),1)}function QH(d,h){return Tr(Im(d,h),z)}function XH(d,h,P){return P=P===n?1:Ot(P),Tr(Im(d,h),P)}function VM(d,h){var P=Mt(d)?as:Ml;return P(d,yt(h,3))}function jM(d,h){var P=Mt(d)?gV:N2;return P(d,yt(h,3))}var ZH=vm(function(d,h,P){cn.call(d,P)?d[P].push(h):Wi(d,P,[h])});function JH(d,h,P,B){d=mo(d)?d:nu(d),P=P&&!B?Ot(P):0;var U=d.length;return P<0&&(P=cr(U+P,0)),$m(d)?P<=U&&d.indexOf(h,P)>-1:!!U&&Uc(d,h,P)>-1}var e9=Lt(function(d,h,P){var B=-1,U=typeof h=="function",q=mo(d)?Pe(d.length):[];return Ml(d,function(ee){q[++B]=U?Ro(h,ee,P):hf(ee,h,P)}),q}),t9=vm(function(d,h,P){Wi(d,P,h)});function Im(d,h){var P=Mt(d)?Rn:W2;return P(d,yt(h,3))}function n9(d,h,P,B){return d==null?[]:(Mt(h)||(h=h==null?[]:[h]),P=B?n:P,Mt(P)||(P=P==null?[]:[P]),Y2(d,h,P))}var r9=vm(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]});function o9(d,h,P){var B=Mt(d)?D0:b2,U=arguments.length<3;return B(d,yt(h,4),P,U,Ml)}function s9(d,h,P){var B=Mt(d)?vV:b2,U=arguments.length<3;return B(d,yt(h,4),P,U,N2)}function i9(d,h){var P=Mt(d)?Pl:B2;return P(d,Tm(yt(h,3)))}function l9(d){var h=Mt(d)?D2:Jj;return h(d)}function a9(d,h,P){(P?Jr(d,h,P):h===n)?h=1:h=Ot(h);var B=Mt(d)?_j:e6;return B(d,h)}function c9(d){var h=Mt(d)?$j:n6;return h(d)}function u9(d){if(d==null)return 0;if(mo(d))return $m(d)?Gc(d):d.length;var h=Br(d);return h==ke||h==ce?d.size:J0(d).length}function d9(d,h,P){var B=Mt(d)?A0:r6;return P&&Jr(d,h,P)&&(h=n),B(d,yt(h,3))}var f9=Lt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&Jr(d,h[0],h[1])?h=[]:P>2&&Jr(h[0],h[1],h[2])&&(h=[h[0]]),Y2(d,Tr(h,1),[])}),Em=GV||function(){return Mr.Date.now()};function p9(d,h){if(typeof h!="function")throw new cs(i);return d=Ot(d),function(){if(--d<1)return h.apply(this,arguments)}}function HM(d,h,P){return h=P?n:h,h=d&&h==null?d.length:h,Gi(d,E,n,n,n,n,h)}function UM(d,h){var P;if(typeof h!="function")throw new cs(i);return d=Ot(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=n),P}}var S1=Lt(function(d,h,P){var B=C;if(P.length){var U=Il(P,eu(S1));B|=M}return Gi(d,B,h,P,U)}),WM=Lt(function(d,h,P){var B=C|b;if(P.length){var U=Il(P,eu(WM));B|=M}return Gi(h,B,d,P,U)});function GM(d,h,P){h=P?n:h;var B=Gi(d,S,n,n,n,n,n,h);return B.placeholder=GM.placeholder,B}function KM(d,h,P){h=P?n:h;var B=Gi(d,k,n,n,n,n,n,h);return B.placeholder=KM.placeholder,B}function qM(d,h,P){var B,U,q,ee,re,he,De=0,Fe=!1,Be=!1,Je=!0;if(typeof d!="function")throw new cs(i);h=hs(h)||0,Fn(P)&&(Fe=!!P.leading,Be="maxWait"in P,q=Be?cr(hs(P.maxWait)||0,h):q,Je="trailing"in P?!!P.trailing:Je);function ft(Zn){var Ws=B,Xi=U;return B=U=n,De=Zn,ee=d.apply(Xi,Ws),ee}function Ct(Zn){return De=Zn,re=bf(Bt,h),Fe?ft(Zn):ee}function Dt(Zn){var Ws=Zn-he,Xi=Zn-De,pT=h-Ws;return Be?Nr(pT,q-Xi):pT}function xt(Zn){var Ws=Zn-he,Xi=Zn-De;return he===n||Ws>=h||Ws<0||Be&&Xi>=q}function Bt(){var Zn=Em();if(xt(Zn))return Gt(Zn);re=bf(Bt,Dt(Zn))}function Gt(Zn){return re=n,Je&&B?ft(Zn):(B=U=n,ee)}function Lo(){re!==n&&oM(re),De=0,B=he=U=re=n}function eo(){return re===n?ee:Gt(Em())}function Fo(){var Zn=Em(),Ws=xt(Zn);if(B=arguments,U=this,he=Zn,Ws){if(re===n)return Ct(he);if(Be)return oM(re),re=bf(Bt,h),ft(he)}return re===n&&(re=bf(Bt,h)),ee}return Fo.cancel=Lo,Fo.flush=eo,Fo}var h9=Lt(function(d,h){return F2(d,1,h)}),m9=Lt(function(d,h,P){return F2(d,hs(h)||0,P)});function g9(d){return Gi(d,L)}function Mm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new cs(i);var P=function(){var B=arguments,U=h?h.apply(this,B):B[0],q=P.cache;if(q.has(U))return q.get(U);var ee=d.apply(this,B);return P.cache=q.set(U,ee)||q,ee};return P.cache=new(Mm.Cache||Ui),P}Mm.Cache=Ui;function Tm(d){if(typeof d!="function")throw new cs(i);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function v9(d){return UM(2,d)}var y9=o6(function(d,h){h=h.length==1&&Mt(h[0])?Rn(h[0],Oo(yt())):Rn(Tr(h,1),Oo(yt()));var P=h.length;return Lt(function(B){for(var U=-1,q=Nr(B.length,P);++U<q;)B[U]=h[U].call(this,B[U]);return Ro(d,this,B)})}),P1=Lt(function(d,h){var P=Il(h,eu(P1));return Gi(d,M,n,h,P)}),YM=Lt(function(d,h){var P=Il(h,eu(YM));return Gi(d,I,n,h,P)}),b9=Ki(function(d,h){return Gi(d,T,n,n,n,h)});function w9(d,h){if(typeof d!="function")throw new cs(i);return h=h===n?h:Ot(h),Lt(d,h)}function C9(d,h){if(typeof d!="function")throw new cs(i);return h=h==null?0:cr(Ot(h),0),Lt(function(P){var B=P[h],U=$l(P,0,h);return B&&kl(U,B),Ro(d,this,U)})}function x9(d,h,P){var B=!0,U=!0;if(typeof d!="function")throw new cs(i);return Fn(P)&&(B="leading"in P?!!P.leading:B,U="trailing"in P?!!P.trailing:U),qM(d,h,{leading:B,maxWait:h,trailing:U})}function S9(d){return HM(d,1)}function P9(d,h){return P1(a1(h),d)}function k9(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function I9(d){return ds(d,v)}function E9(d,h){return h=typeof h=="function"?h:n,ds(d,v,h)}function M9(d){return ds(d,p|v)}function T9(d,h){return h=typeof h=="function"?h:n,ds(d,p|v,h)}function _9(d,h){return h==null||L2(d,h,yr(h))}function Us(d,h){return d===h||d!==d&&h!==h}var $9=Cm(Q0),R9=Cm(function(d,h){return d>=h}),Ua=j2(function(){return arguments}())?j2:function(d){return jn(d)&&cn.call(d,"callee")&&!M2.call(d,"callee")},Mt=Pe.isArray,O9=c2?Oo(c2):Vj;function mo(d){return d!=null&&_m(d.length)&&!Yi(d)}function Xn(d){return jn(d)&&mo(d)}function D9(d){return d===!0||d===!1||jn(d)&&Zr(d)==fe}var Rl=qV||A1,A9=u2?Oo(u2):jj;function L9(d){return jn(d)&&d.nodeType===1&&!wf(d)}function F9(d){if(d==null)return!0;if(mo(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||Rl(d)||tu(d)||Ua(d)))return!d.length;var h=Br(d);if(h==ke||h==ce)return!d.size;if(yf(d))return!J0(d).length;for(var P in d)if(cn.call(d,P))return!1;return!0}function N9(d,h){return mf(d,h)}function B9(d,h,P){P=typeof P=="function"?P:n;var B=P?P(d,h):n;return B===n?mf(d,h,n,P):!!B}function k1(d){if(!jn(d))return!1;var h=Zr(d);return h==ae||h==Ce||typeof d.message=="string"&&typeof d.name=="string"&&!wf(d)}function z9(d){return typeof d=="number"&&_2(d)}function Yi(d){if(!Fn(d))return!1;var h=Zr(d);return h==be||h==de||h==ne||h==Me}function QM(d){return typeof d=="number"&&d==Ot(d)}function _m(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=D}function Fn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function jn(d){return d!=null&&typeof d=="object"}var XM=d2?Oo(d2):Uj;function V9(d,h){return d===h||Z0(d,h,m1(h))}function j9(d,h,P){return P=typeof P=="function"?P:n,Z0(d,h,m1(h),P)}function H9(d){return ZM(d)&&d!=+d}function U9(d){if(E6(d))throw new Et(s);return H2(d)}function W9(d){return d===null}function G9(d){return d==null}function ZM(d){return typeof d=="number"||jn(d)&&Zr(d)==Ie}function wf(d){if(!jn(d)||Zr(d)!=Ee)return!1;var h=rm(d);if(h===null)return!0;var P=cn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&Jh.call(P)==jV}var I1=f2?Oo(f2):Wj;function K9(d){return QM(d)&&d>=-D&&d<=D}var JM=p2?Oo(p2):Gj;function $m(d){return typeof d=="string"||!Mt(d)&&jn(d)&&Zr(d)==ie}function Ao(d){return typeof d=="symbol"||jn(d)&&Zr(d)==ge}var tu=h2?Oo(h2):Kj;function q9(d){return d===n}function Y9(d){return jn(d)&&Br(d)==Ne}function Q9(d){return jn(d)&&Zr(d)==Ge}var X9=Cm(e1),Z9=Cm(function(d,h){return d<=h});function eT(d){if(!d)return[];if(mo(d))return $m(d)?js(d):ho(d);if(lf&&d[lf])return _V(d[lf]());var h=Br(d),P=h==ke?V0:h==ce?Qh:nu;return P(d)}function Qi(d){if(!d)return d===0?d:0;if(d=hs(d),d===z||d===-z){var h=d<0?-1:1;return h*N}return d===d?d:0}function Ot(d){var h=Qi(d),P=h%1;return h===h?P?h-P:h:0}function tT(d){return d?za(Ot(d),0,K):0}function hs(d){if(typeof d=="number")return d;if(Ao(d))return H;if(Fn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Fn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=w2(d);var P=dt.test(d);return P||$n.test(d)?pV(d.slice(2),P?2:8):Qe.test(d)?H:+d}function nT(d){return pi(d,go(d))}function J9(d){return d?za(Ot(d),-D,D):d===0?d:0}function on(d){return d==null?"":Do(d)}var e8=Zc(function(d,h){if(yf(h)||mo(h)){pi(h,yr(h),d);return}for(var P in h)cn.call(h,P)&&ff(d,P,h[P])}),rT=Zc(function(d,h){pi(h,go(h),d)}),Rm=Zc(function(d,h,P,B){pi(h,go(h),d,B)}),t8=Zc(function(d,h,P,B){pi(h,yr(h),d,B)}),n8=Ki(K0);function r8(d,h){var P=Xc(d);return h==null?P:A2(P,h)}var o8=Lt(function(d,h){d=vn(d);var P=-1,B=h.length,U=B>2?h[2]:n;for(U&&Jr(h[0],h[1],U)&&(B=1);++P<B;)for(var q=h[P],ee=go(q),re=-1,he=ee.length;++re<he;){var De=ee[re],Fe=d[De];(Fe===n||Us(Fe,qc[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),s8=Lt(function(d){return d.push(n,wM),Ro(oT,n,d)});function i8(d,h){return g2(d,yt(h,3),fi)}function l8(d,h){return g2(d,yt(h,3),Y0)}function a8(d,h){return d==null?d:q0(d,yt(h,3),go)}function c8(d,h){return d==null?d:z2(d,yt(h,3),go)}function u8(d,h){return d&&fi(d,yt(h,3))}function d8(d,h){return d&&Y0(d,yt(h,3))}function f8(d){return d==null?[]:pm(d,yr(d))}function p8(d){return d==null?[]:pm(d,go(d))}function E1(d,h,P){var B=d==null?n:Va(d,h);return B===n?P:B}function h8(d,h){return d!=null&&SM(d,h,Fj)}function M1(d,h){return d!=null&&SM(d,h,Nj)}var m8=mM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=em.call(h)),d[h]=P},_1(vo)),g8=mM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=em.call(h)),cn.call(d,h)?d[h].push(P):d[h]=[P]},yt),v8=Lt(hf);function yr(d){return mo(d)?O2(d):J0(d)}function go(d){return mo(d)?O2(d,!0):qj(d)}function y8(d,h){var P={};return h=yt(h,3),fi(d,function(B,U,q){Wi(P,h(B,U,q),B)}),P}function b8(d,h){var P={};return h=yt(h,3),fi(d,function(B,U,q){Wi(P,U,h(B,U,q))}),P}var w8=Zc(function(d,h,P){hm(d,h,P)}),oT=Zc(function(d,h,P,B){hm(d,h,P,B)}),C8=Ki(function(d,h){var P={};if(d==null)return P;var B=!1;h=Rn(h,function(q){return q=_l(q,d),B||(B=q.length>1),q}),pi(d,p1(d),P),B&&(P=ds(P,p|g|v,m6));for(var U=h.length;U--;)s1(P,h[U]);return P});function x8(d,h){return sT(d,Tm(yt(h)))}var S8=Ki(function(d,h){return d==null?{}:Qj(d,h)});function sT(d,h){if(d==null)return{};var P=Rn(p1(d),function(B){return[B]});return h=yt(h),Q2(d,P,function(B,U){return h(B,U[0])})}function P8(d,h,P){h=_l(h,d);var B=-1,U=h.length;for(U||(U=1,d=n);++B<U;){var q=d==null?n:d[hi(h[B])];q===n&&(B=U,q=P),d=Yi(q)?q.call(d):q}return d}function k8(d,h,P){return d==null?d:gf(d,h,P)}function I8(d,h,P,B){return B=typeof B=="function"?B:n,d==null?d:gf(d,h,P,B)}var iT=yM(yr),lT=yM(go);function E8(d,h,P){var B=Mt(d),U=B||Rl(d)||tu(d);if(h=yt(h,4),P==null){var q=d&&d.constructor;U?P=B?new q:[]:Fn(d)?P=Yi(q)?Xc(rm(d)):{}:P={}}return(U?as:fi)(d,function(ee,re,he){return h(P,ee,re,he)}),P}function M8(d,h){return d==null?!0:s1(d,h)}function T8(d,h,P){return d==null?d:tM(d,h,a1(P))}function _8(d,h,P,B){return B=typeof B=="function"?B:n,d==null?d:tM(d,h,a1(P),B)}function nu(d){return d==null?[]:z0(d,yr(d))}function $8(d){return d==null?[]:z0(d,go(d))}function R8(d,h,P){return P===n&&(P=h,h=n),P!==n&&(P=hs(P),P=P===P?P:0),h!==n&&(h=hs(h),h=h===h?h:0),za(hs(d),h,P)}function O8(d,h,P){return h=Qi(h),P===n?(P=h,h=0):P=Qi(P),d=hs(d),Bj(d,h,P)}function D8(d,h,P){if(P&&typeof P!="boolean"&&Jr(d,h,P)&&(h=P=n),P===n&&(typeof h=="boolean"?(P=h,h=n):typeof d=="boolean"&&(P=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Qi(d),h===n?(h=d,d=0):h=Qi(h)),d>h){var B=d;d=h,h=B}if(P||d%1||h%1){var U=$2();return Nr(d+U*(h-d+fV("1e-"+((U+"").length-1))),h)}return n1(d,h)}var A8=Jc(function(d,h,P){return h=h.toLowerCase(),d+(P?aT(h):h)});function aT(d){return T1(on(d).toLowerCase())}function cT(d){return d=on(d),d&&d.replace(St,kV).replace(nV,"")}function L8(d,h,P){d=on(d),h=Do(h);var B=d.length;P=P===n?B:za(Ot(P),0,B);var U=P;return P-=h.length,P>=0&&d.slice(P,U)==h}function F8(d){return d=on(d),d&>.test(d)?d.replace(Pn,IV):d}function N8(d){return d=on(d),d&&vr.test(d)?d.replace(an,"\\$&"):d}var B8=Jc(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),z8=Jc(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),V8=fM("toLowerCase");function j8(d,h,P){d=on(d),h=Ot(h);var B=h?Gc(d):0;if(!h||B>=h)return d;var U=(h-B)/2;return wm(lm(U),P)+d+wm(im(U),P)}function H8(d,h,P){d=on(d),h=Ot(h);var B=h?Gc(d):0;return h&&B<h?d+wm(h-B,P):d}function U8(d,h,P){d=on(d),h=Ot(h);var B=h?Gc(d):0;return h&&B<h?wm(h-B,P)+d:d}function W8(d,h,P){return P||h==null?h=0:h&&(h=+h),ZV(on(d).replace(po,""),h||0)}function G8(d,h,P){return(P?Jr(d,h,P):h===n)?h=1:h=Ot(h),r1(on(d),h)}function K8(){var d=arguments,h=on(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var q8=Jc(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()});function Y8(d,h,P){return P&&typeof P!="number"&&Jr(d,h,P)&&(h=P=n),P=P===n?K:P>>>0,P?(d=on(d),d&&(typeof h=="string"||h!=null&&!I1(h))&&(h=Do(h),!h&&Wc(d))?$l(js(d),0,P):d.split(h,P)):[]}var Q8=Jc(function(d,h,P){return d+(P?" ":"")+T1(h)});function X8(d,h,P){return d=on(d),P=P==null?0:za(Ot(P),0,d.length),h=Do(h),d.slice(P,P+h.length)==h}function Z8(d,h,P){var B=G.templateSettings;P&&Jr(d,h,P)&&(h=n),d=on(d),h=Rm({},h,B,bM);var U=Rm({},h.imports,B.imports,bM),q=yr(U),ee=z0(U,q),re,he,De=0,Fe=h.interpolate||Qn,Be="__p += '",Je=j0((h.escape||Qn).source+"|"+Fe.source+"|"+(Fe===rr?$e:Qn).source+"|"+(h.evaluate||Qn).source+"|$","g"),ft="//# sourceURL="+(cn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lV+"]")+`
|
|
303
|
+
`;d.replace(Je,function(xt,Bt,Gt,Lo,eo,Fo){return Gt||(Gt=Lo),Be+=d.slice(De,Fo).replace(Nz,EV),Bt&&(re=!0,Be+=`' +
|
|
304
|
+
__e(`+Bt+`) +
|
|
305
|
+
'`),eo&&(he=!0,Be+=`';
|
|
306
|
+
`+eo+`;
|
|
307
|
+
__p += '`),Gt&&(Be+=`' +
|
|
308
|
+
((__t = (`+Gt+`)) == null ? '' : __t) +
|
|
309
|
+
'`),De=Fo+xt.length,xt}),Be+=`';
|
|
310
|
+
`;var Ct=cn.call(h,"variable")&&h.variable;if(!Ct)Be=`with (obj) {
|
|
311
|
+
`+Be+`
|
|
312
|
+
}
|
|
313
|
+
`;else if(Fr.test(Ct))throw new Et(l);Be=(he?Be.replace(vt,""):Be).replace(_t,"$1").replace(Yt,"$1;"),Be="function("+(Ct||"obj")+`) {
|
|
314
|
+
`+(Ct?"":`obj || (obj = {});
|
|
315
|
+
`)+"var __t, __p = ''"+(re?", __e = _.escape":"")+(he?`, __j = Array.prototype.join;
|
|
316
|
+
function print() { __p += __j.call(arguments, '') }
|
|
317
|
+
`:`;
|
|
318
|
+
`)+Be+`return __p
|
|
319
|
+
}`;var Dt=dT(function(){return en(q,ft+"return "+Be).apply(n,ee)});if(Dt.source=Be,k1(Dt))throw Dt;return Dt}function J8(d){return on(d).toLowerCase()}function e7(d){return on(d).toUpperCase()}function t7(d,h,P){if(d=on(d),d&&(P||h===n))return w2(d);if(!d||!(h=Do(h)))return d;var B=js(d),U=js(h),q=C2(B,U),ee=x2(B,U)+1;return $l(B,q,ee).join("")}function n7(d,h,P){if(d=on(d),d&&(P||h===n))return d.slice(0,P2(d)+1);if(!d||!(h=Do(h)))return d;var B=js(d),U=x2(B,js(h))+1;return $l(B,0,U).join("")}function r7(d,h,P){if(d=on(d),d&&(P||h===n))return d.replace(po,"");if(!d||!(h=Do(h)))return d;var B=js(d),U=C2(B,js(h));return $l(B,U).join("")}function o7(d,h){var P=O,B=R;if(Fn(h)){var U="separator"in h?h.separator:U;P="length"in h?Ot(h.length):P,B="omission"in h?Do(h.omission):B}d=on(d);var q=d.length;if(Wc(d)){var ee=js(d);q=ee.length}if(P>=q)return d;var re=P-Gc(B);if(re<1)return B;var he=ee?$l(ee,0,re).join(""):d.slice(0,re);if(U===n)return he+B;if(ee&&(re+=he.length-re),I1(U)){if(d.slice(re).search(U)){var De,Fe=he;for(U.global||(U=j0(U.source,on(ve.exec(U))+"g")),U.lastIndex=0;De=U.exec(Fe);)var Be=De.index;he=he.slice(0,Be===n?re:Be)}}else if(d.indexOf(Do(U),re)!=re){var Je=he.lastIndexOf(U);Je>-1&&(he=he.slice(0,Je))}return he+B}function s7(d){return d=on(d),d&&bn.test(d)?d.replace(Qt,DV):d}var i7=Jc(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),T1=fM("toUpperCase");function uT(d,h,P){return d=on(d),h=P?n:h,h===n?TV(d)?FV(d):wV(d):d.match(h)||[]}var dT=Lt(function(d,h){try{return Ro(d,n,h)}catch(P){return k1(P)?P:new Et(P)}}),l7=Ki(function(d,h){return as(h,function(P){P=hi(P),Wi(d,P,S1(d[P],d))}),d});function a7(d){var h=d==null?0:d.length,P=yt();return d=h?Rn(d,function(B){if(typeof B[1]!="function")throw new cs(i);return[P(B[0]),B[1]]}):[],Lt(function(B){for(var U=-1;++U<h;){var q=d[U];if(Ro(q[0],this,B))return Ro(q[1],this,B)}})}function c7(d){return Dj(ds(d,p))}function _1(d){return function(){return d}}function u7(d,h){return d==null||d!==d?h:d}var d7=hM(),f7=hM(!0);function vo(d){return d}function $1(d){return U2(typeof d=="function"?d:ds(d,p))}function p7(d){return G2(ds(d,p))}function h7(d,h){return K2(d,ds(h,p))}var m7=Lt(function(d,h){return function(P){return hf(P,d,h)}}),g7=Lt(function(d,h){return function(P){return hf(d,P,h)}});function R1(d,h,P){var B=yr(h),U=pm(h,B);P==null&&!(Fn(h)&&(U.length||!B.length))&&(P=h,h=d,d=this,U=pm(h,yr(h)));var q=!(Fn(P)&&"chain"in P)||!!P.chain,ee=Yi(d);return as(U,function(re){var he=h[re];d[re]=he,ee&&(d.prototype[re]=function(){var De=this.__chain__;if(q||De){var Fe=d(this.__wrapped__),Be=Fe.__actions__=ho(this.__actions__);return Be.push({func:he,args:arguments,thisArg:d}),Fe.__chain__=De,Fe}return he.apply(d,kl([this.value()],arguments))})}),d}function v7(){return Mr._===this&&(Mr._=HV),this}function O1(){}function y7(d){return d=Ot(d),Lt(function(h){return q2(h,d)})}var b7=u1(Rn),w7=u1(m2),C7=u1(A0);function fT(d){return v1(d)?L0(hi(d)):Xj(d)}function x7(d){return function(h){return d==null?n:Va(d,h)}}var S7=gM(),P7=gM(!0);function D1(){return[]}function A1(){return!1}function k7(){return{}}function I7(){return""}function E7(){return!0}function M7(d,h){if(d=Ot(d),d<1||d>D)return[];var P=K,B=Nr(d,K);h=yt(h),d-=K;for(var U=B0(B,h);++P<d;)h(P);return U}function T7(d){return Mt(d)?Rn(d,hi):Ao(d)?[d]:ho(RM(on(d)))}function _7(d){var h=++VV;return on(d)+h}var $7=bm(function(d,h){return d+h},0),R7=d1("ceil"),O7=bm(function(d,h){return d/h},1),D7=d1("floor");function A7(d){return d&&d.length?fm(d,vo,Q0):n}function L7(d,h){return d&&d.length?fm(d,yt(h,2),Q0):n}function F7(d){return y2(d,vo)}function N7(d,h){return y2(d,yt(h,2))}function B7(d){return d&&d.length?fm(d,vo,e1):n}function z7(d,h){return d&&d.length?fm(d,yt(h,2),e1):n}var V7=bm(function(d,h){return d*h},1),j7=d1("round"),H7=bm(function(d,h){return d-h},0);function U7(d){return d&&d.length?N0(d,vo):0}function W7(d,h){return d&&d.length?N0(d,yt(h,2)):0}return G.after=p9,G.ary=HM,G.assign=e8,G.assignIn=rT,G.assignInWith=Rm,G.assignWith=t8,G.at=n8,G.before=UM,G.bind=S1,G.bindAll=l7,G.bindKey=WM,G.castArray=k9,G.chain=zM,G.chunk=D6,G.compact=A6,G.concat=L6,G.cond=a7,G.conforms=c7,G.constant=_1,G.countBy=UH,G.create=r8,G.curry=GM,G.curryRight=KM,G.debounce=qM,G.defaults=o8,G.defaultsDeep=s8,G.defer=h9,G.delay=m9,G.difference=F6,G.differenceBy=N6,G.differenceWith=B6,G.drop=z6,G.dropRight=V6,G.dropRightWhile=j6,G.dropWhile=H6,G.fill=U6,G.filter=GH,G.flatMap=YH,G.flatMapDeep=QH,G.flatMapDepth=XH,G.flatten=LM,G.flattenDeep=W6,G.flattenDepth=G6,G.flip=g9,G.flow=d7,G.flowRight=f7,G.fromPairs=K6,G.functions=f8,G.functionsIn=p8,G.groupBy=ZH,G.initial=Y6,G.intersection=Q6,G.intersectionBy=X6,G.intersectionWith=Z6,G.invert=m8,G.invertBy=g8,G.invokeMap=e9,G.iteratee=$1,G.keyBy=t9,G.keys=yr,G.keysIn=go,G.map=Im,G.mapKeys=y8,G.mapValues=b8,G.matches=p7,G.matchesProperty=h7,G.memoize=Mm,G.merge=w8,G.mergeWith=oT,G.method=m7,G.methodOf=g7,G.mixin=R1,G.negate=Tm,G.nthArg=y7,G.omit=C8,G.omitBy=x8,G.once=v9,G.orderBy=n9,G.over=b7,G.overArgs=y9,G.overEvery=w7,G.overSome=C7,G.partial=P1,G.partialRight=YM,G.partition=r9,G.pick=S8,G.pickBy=sT,G.property=fT,G.propertyOf=x7,G.pull=nH,G.pullAll=NM,G.pullAllBy=rH,G.pullAllWith=oH,G.pullAt=sH,G.range=S7,G.rangeRight=P7,G.rearg=b9,G.reject=i9,G.remove=iH,G.rest=w9,G.reverse=C1,G.sampleSize=a9,G.set=k8,G.setWith=I8,G.shuffle=c9,G.slice=lH,G.sortBy=f9,G.sortedUniq=hH,G.sortedUniqBy=mH,G.split=Y8,G.spread=C9,G.tail=gH,G.take=vH,G.takeRight=yH,G.takeRightWhile=bH,G.takeWhile=wH,G.tap=AH,G.throttle=x9,G.thru=km,G.toArray=eT,G.toPairs=iT,G.toPairsIn=lT,G.toPath=T7,G.toPlainObject=nT,G.transform=E8,G.unary=S9,G.union=CH,G.unionBy=xH,G.unionWith=SH,G.uniq=PH,G.uniqBy=kH,G.uniqWith=IH,G.unset=M8,G.unzip=x1,G.unzipWith=BM,G.update=T8,G.updateWith=_8,G.values=nu,G.valuesIn=$8,G.without=EH,G.words=uT,G.wrap=P9,G.xor=MH,G.xorBy=TH,G.xorWith=_H,G.zip=$H,G.zipObject=RH,G.zipObjectDeep=OH,G.zipWith=DH,G.entries=iT,G.entriesIn=lT,G.extend=rT,G.extendWith=Rm,R1(G,G),G.add=$7,G.attempt=dT,G.camelCase=A8,G.capitalize=aT,G.ceil=R7,G.clamp=R8,G.clone=I9,G.cloneDeep=M9,G.cloneDeepWith=T9,G.cloneWith=E9,G.conformsTo=_9,G.deburr=cT,G.defaultTo=u7,G.divide=O7,G.endsWith=L8,G.eq=Us,G.escape=F8,G.escapeRegExp=N8,G.every=WH,G.find=KH,G.findIndex=DM,G.findKey=i8,G.findLast=qH,G.findLastIndex=AM,G.findLastKey=l8,G.floor=D7,G.forEach=VM,G.forEachRight=jM,G.forIn=a8,G.forInRight=c8,G.forOwn=u8,G.forOwnRight=d8,G.get=E1,G.gt=$9,G.gte=R9,G.has=h8,G.hasIn=M1,G.head=FM,G.identity=vo,G.includes=JH,G.indexOf=q6,G.inRange=O8,G.invoke=v8,G.isArguments=Ua,G.isArray=Mt,G.isArrayBuffer=O9,G.isArrayLike=mo,G.isArrayLikeObject=Xn,G.isBoolean=D9,G.isBuffer=Rl,G.isDate=A9,G.isElement=L9,G.isEmpty=F9,G.isEqual=N9,G.isEqualWith=B9,G.isError=k1,G.isFinite=z9,G.isFunction=Yi,G.isInteger=QM,G.isLength=_m,G.isMap=XM,G.isMatch=V9,G.isMatchWith=j9,G.isNaN=H9,G.isNative=U9,G.isNil=G9,G.isNull=W9,G.isNumber=ZM,G.isObject=Fn,G.isObjectLike=jn,G.isPlainObject=wf,G.isRegExp=I1,G.isSafeInteger=K9,G.isSet=JM,G.isString=$m,G.isSymbol=Ao,G.isTypedArray=tu,G.isUndefined=q9,G.isWeakMap=Y9,G.isWeakSet=Q9,G.join=J6,G.kebabCase=B8,G.last=ps,G.lastIndexOf=eH,G.lowerCase=z8,G.lowerFirst=V8,G.lt=X9,G.lte=Z9,G.max=A7,G.maxBy=L7,G.mean=F7,G.meanBy=N7,G.min=B7,G.minBy=z7,G.stubArray=D1,G.stubFalse=A1,G.stubObject=k7,G.stubString=I7,G.stubTrue=E7,G.multiply=V7,G.nth=tH,G.noConflict=v7,G.noop=O1,G.now=Em,G.pad=j8,G.padEnd=H8,G.padStart=U8,G.parseInt=W8,G.random=D8,G.reduce=o9,G.reduceRight=s9,G.repeat=G8,G.replace=K8,G.result=P8,G.round=j7,G.runInContext=pe,G.sample=l9,G.size=u9,G.snakeCase=q8,G.some=d9,G.sortedIndex=aH,G.sortedIndexBy=cH,G.sortedIndexOf=uH,G.sortedLastIndex=dH,G.sortedLastIndexBy=fH,G.sortedLastIndexOf=pH,G.startCase=Q8,G.startsWith=X8,G.subtract=H7,G.sum=U7,G.sumBy=W7,G.template=Z8,G.times=M7,G.toFinite=Qi,G.toInteger=Ot,G.toLength=tT,G.toLower=J8,G.toNumber=hs,G.toSafeInteger=J9,G.toString=on,G.toUpper=e7,G.trim=t7,G.trimEnd=n7,G.trimStart=r7,G.truncate=o7,G.unescape=s7,G.uniqueId=_7,G.upperCase=i7,G.upperFirst=T1,G.each=VM,G.eachRight=jM,G.first=FM,R1(G,function(){var d={};return fi(G,function(h,P){cn.call(G.prototype,P)||(d[P]=h)}),d}(),{chain:!1}),G.VERSION=r,as(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),as(["drop","take"],function(d,h){Ht.prototype[d]=function(P){P=P===n?1:cr(Ot(P),0);var B=this.__filtered__&&!h?new Ht(this):this.clone();return B.__filtered__?B.__takeCount__=Nr(P,B.__takeCount__):B.__views__.push({size:Nr(P,K),type:d+(B.__dir__<0?"Right":"")}),B},Ht.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),as(["filter","map","takeWhile"],function(d,h){var P=h+1,B=P==_||P==F;Ht.prototype[d]=function(U){var q=this.clone();return q.__iteratees__.push({iteratee:yt(U,3),type:P}),q.__filtered__=q.__filtered__||B,q}}),as(["head","last"],function(d,h){var P="take"+(h?"Right":"");Ht.prototype[d]=function(){return this[P](1).value()[0]}}),as(["initial","tail"],function(d,h){var P="drop"+(h?"":"Right");Ht.prototype[d]=function(){return this.__filtered__?new Ht(this):this[P](1)}}),Ht.prototype.compact=function(){return this.filter(vo)},Ht.prototype.find=function(d){return this.filter(d).head()},Ht.prototype.findLast=function(d){return this.reverse().find(d)},Ht.prototype.invokeMap=Lt(function(d,h){return typeof d=="function"?new Ht(this):this.map(function(P){return hf(P,d,h)})}),Ht.prototype.reject=function(d){return this.filter(Tm(yt(d)))},Ht.prototype.slice=function(d,h){d=Ot(d);var P=this;return P.__filtered__&&(d>0||h<0)?new Ht(P):(d<0?P=P.takeRight(-d):d&&(P=P.drop(d)),h!==n&&(h=Ot(h),P=h<0?P.dropRight(-h):P.take(h-d)),P)},Ht.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Ht.prototype.toArray=function(){return this.take(K)},fi(Ht.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),B=/^(?:head|last)$/.test(h),U=G[B?"take"+(h=="last"?"Right":""):h],q=B||/^find/.test(h);U&&(G.prototype[h]=function(){var ee=this.__wrapped__,re=B?[1]:arguments,he=ee instanceof Ht,De=re[0],Fe=he||Mt(ee),Be=function(Bt){var Gt=U.apply(G,kl([Bt],re));return B&&Je?Gt[0]:Gt};Fe&&P&&typeof De=="function"&&De.length!=1&&(he=Fe=!1);var Je=this.__chain__,ft=!!this.__actions__.length,Ct=q&&!Je,Dt=he&&!ft;if(!q&&Fe){ee=Dt?ee:new Ht(this);var xt=d.apply(ee,re);return xt.__actions__.push({func:km,args:[Be],thisArg:n}),new us(xt,Je)}return Ct&&Dt?d.apply(this,re):(xt=this.thru(Be),Ct?B?xt.value()[0]:xt.value():xt)})}),as(["pop","push","shift","sort","splice","unshift"],function(d){var h=Xh[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",B=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(B&&!this.__chain__){var q=this.value();return h.apply(Mt(q)?q:[],U)}return this[P](function(ee){return h.apply(Mt(ee)?ee:[],U)})}}),fi(Ht.prototype,function(d,h){var P=G[h];if(P){var B=P.name+"";cn.call(Qc,B)||(Qc[B]=[]),Qc[B].push({name:h,func:P})}}),Qc[ym(n,b).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=sj,Ht.prototype.reverse=ij,Ht.prototype.value=lj,G.prototype.at=LH,G.prototype.chain=FH,G.prototype.commit=NH,G.prototype.next=BH,G.prototype.plant=VH,G.prototype.reverse=jH,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=HH,G.prototype.first=G.prototype.head,lf&&(G.prototype[lf]=zH),G},Kc=NV();La?((La.exports=Kc)._=Kc,$0._=Kc):Mr._=Kc}).call(sn)})(Fv,Fv.exports);var zce=Fv.exports;const ot=Ni(zce);var ck={},Vce=et;Object.defineProperty(ck,"__esModule",{value:!0});var qN=ck.default=void 0,jce=Vce(tt()),Hce=Ze(),Uce=(0,jce.default)((0,Hce.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");qN=ck.default=Uce;var uk={},Wce=et;Object.defineProperty(uk,"__esModule",{value:!0});var Mb=uk.default=void 0,Gce=Wce(tt()),Kce=Ze(),qce=(0,Gce.default)((0,Kce.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");Mb=uk.default=qce;var dk={},Yce=et;Object.defineProperty(dk,"__esModule",{value:!0});var Tb=dk.default=void 0,Qce=Yce(tt()),Xce=Ze(),Zce=(0,Qce.default)((0,Xce.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");Tb=dk.default=Zce;const Jce=-1,Th=401,_b=403,eue=404,tue=406,nue=409,wx=424,rue=500,oue={[Th]:"Unauthorized",[_b]:"Forbidden",[eue]:"Not found",[rue]:"Server error"},$b="https://github.com/rejetto/hfs/",sue=$b+"wiki/",iue=6e4,lue=60*iue,aue=24*lue,cue=10,uue=["name","extension","size","time"],due={auto:"",light:"light",dark:"dark"},br=pue(["geo_enable","geo_allow","geo_list","geo_allow_unknown"]),du={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},fue=!0,_R=!1,Ew={can_see:"can_read",can_read:fue,can_list:"can_read",can_upload:_R,can_delete:_R,can_archive:"can_read"};function pue(e){return Object.fromEntries(e.map(t=>[t,t]))}function hue(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const mue=["","K","M","G","T"];function vl(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";const o=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=ms(n,o),(o&&!isNaN(r)?e.toFixed(r):ot.round(e,isNaN(r)?e>=100?0:1:r))+" "+(mue[o]||"")+t}function gue(e,t={}){return vl(e,Se({post:"B/s",k:1e3},t)).replace("K","k")}function pa(e,t,n=""){return t?e+t+n:""}function _h(e,t){return new Promise(n=>setTimeout(n,e,t))}function Rb(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function vue(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function yue(e){return!!e}function Nc(e){return e.filter(yue)}function bue(e,t){return Object.defineProperties(e,XN(t,n=>({enumerable:!1,writable:!0,value:n})))}function wue(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Ec(e,t){return t(e)}function Cue(e){return(e*100).toFixed(1)+"%"}function Ob(e){return e==null?[]:Array.isArray(e)?e:[e]}function fk(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function YN(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function xue(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function $R(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function QN(e,t){return ot.isEqualWith(e,t,(n,r)=>{if(!ot.isPlainObject(n)||!ot.isPlainObject(r))return;const o=Object.keys(n),s=Object.keys(r);return o.length===s.length&&o.every((i,l)=>{const a=s[l];return i===a&&QN(n[i],r[a])})})}function XN(e,t,n=!1){if(!e)return{};const r=Object.entries(e).map(([o,s])=>{if(typeof o=="symbol")return;let i=o;const l=typeof n=="number"?n:0;let a=t(s,o,u=>(i=u,!0),l);return(n!==!1||t.length===4)&&ot.isPlainObject(a)&&(a=XN(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(Nc(r))}function Sue(e){return Object.keys(e)}function Cx(e){return e?new Date(e).toLocaleString():"-"}function Pue(e){return!e||Object(e)!==e}function kue(e){return/^([.:\da-f]+)$/i.test(e)}function Iue(e){return e&&/^[a-zA-Z]:$/.test(e)}function Nv(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Nv(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||Nv(r,e[n]))}function pk(e,t){var n;return(n=t[e])!=null?n:e}function Eue(e){return e==="::1"||e.endsWith("127.0.0.1")}function ZN(e){return e.includes(":")?"["+e+"]":e}function Mue(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const Cp="/~/api/",Tue={loginSrp1:90,update:600,get_status:20},JN={};function _ue(e){Object.assign(JN,e)}function at(e,t,n={}){var a,u,f;ot.defaults(n,JN);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(u=Tue[e])!=null?u:n.timeout)!=null?f:10),l=i&&setTimeout(()=>{o.abort(s="timeout"),console.debug("API TIMEOUT",e,t!=null?t:"")},i);return Object.assign(fetch(h4()+Cp+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(p=>rt(this,null,function*(){var m;r==null||r();let g=yield p.text(),v;try{v=JSON.parse(g)}catch(C){}const y=v!=null?v:g;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",y),yield(m=n.onResponse)==null?void 0:m.call(n,p,y),!p.ok)throw new e4(p.status,v===void 0?g:`Failed API ${e}: ${p.statusText}`,v);return y}),p=>{var g;throw r==null||r(),(g=p==null?void 0:p.message)!=null&&g.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class e4 extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function t4(e,t,n={}){const[r,o]=wo(void 0),[s,i]=wo(void 0),[l,a]=wo(0),u=c.useRef(),f=c.useRef();c.useEffect(()=>{var m,C;if((m=u.current)==null||m.abort(),o(void 0),i(void 0),!e)return;let g=!1,v;const y=_h(0).then(()=>g?void 0:v=at(e,t,n)).then(b=>g||o(b),b=>g||i(b)||o(void 0)).finally(()=>u.current=f.current=void 0);u.current=Object.assign(y,{abort(){g=!0,v==null||v.abort()}}),(C=f.current)==null||C.resolve(y)},[e,JSON.stringify(t),l]);const p=c.useCallback(()=>u.current||a(g=>g+1)||(f.current=fk()),[a]);return{data:r,setData:o,error:s,reload:p,loading:!!(u.current||f.current)}}function n4(e,t,n){t=ot.omitBy(t,ot.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(h4()+Cp+e+"?"+new URLSearchParams(t));return r.onopen=()=>n("connected"),r.onerror=o=>n("error",o),r.onmessage=({data:o})=>{if(!o)return n("closed"),r.close();try{o=JSON.parse(o)}catch(s){return n("string",o)}console.debug("SSE msg",o),n("msg",o)},r}function $ue(e,t={}){const[n,r]=wo(void 0),[o,s]=wo(void 0),[i,l]=wo(!1);return c.useEffect(()=>{const a=n4(e,t,(f,p)=>{switch(f){case"error":return s("Connection error"),u();case"closed":return u();case"msg":return(a==null?void 0:a.readyState)===(a==null?void 0:a.CLOSED)?u():r(p)}});return()=>{a.close(),u()};function u(){l(!1)}},[e,JSON.stringify(t)]),{data:n,loading:i,error:o}}globalThis&&globalThis.__awaiter;function hk(e,t){const[n,r]=c.useState(e);return c.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Rue(e,t,n,r){const o=c.useRef(t);r4(()=>{o.current=t},[t]),c.useEffect(()=>{var s;const i=(s=n==null?void 0:n.current)!==null&&s!==void 0?s:window;if(!(i&&i.addEventListener))return;const l=a=>o.current(a);return i.addEventListener(e,l,r),()=>{i.removeEventListener(e,l,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Oue(){const e=c.useRef(!1);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),c.useCallback(()=>e.current,[])}const r4=typeof window!="undefined"?c.useLayoutEffect:c.useEffect;function Db(){const[e,t]=c.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Rue("resize",n),r4(()=>{n()},[]),e}function wo(e){const t=Oue(),[n,r]=c.useState(e),o=c.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function Due(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Aue(e,t){const n=[];for(const r of Due(t))n.push(r,e);return n.splice(-1,1),th(n)}function th(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?th(t):c.createElement(c.Fragment,{key:n,children:t}))}function Lue(){const[e,t]=c.useState(0);return Object.assign(c.useCallback(()=>t(n=>n+1),[t]),{state:e})}function Bg(e,t,{delay:n=0}={}){const r=Bg.worker2env||(Bg.worker2env=e&&new Map),o=r&&(r.get(e)||(()=>{const l={batch:new Set,cache:new Map};return r.set(e,l),l})()),s=Lue();c.useEffect(()=>{e&&(o.waiter||(o.waiter=new Promise(l=>{setTimeout(()=>rt(this,null,function*(){if(!o.batch.size)return l();const a=[...o.batch.values()];o.batch.clear();const u=yield e(a);a.forEach((f,p)=>{var g;return o.cache.set(f,(g=u[p])!=null?g:null)}),o.waiter=void 0,l()}),n)}))).then(s)},[e]);const i=o&&o.cache.get(t);return o&&i===void 0&&o.batch.add(t),Se({data:i},o)}function Fue(n){var r=n,{margin:e}=r,t=Ft(r,["margin"]);const o=c.useRef(),[s,i]=c.useState(),l=Db();return c.useEffect(()=>{const a=o.current;if(!a)return;const u=a.getBoundingClientRect(),f=document.documentElement,p=window.innerHeight||f.clientHeight;i(p-(u==null?void 0:u.top)-e)},[l]),c.createElement("div",Se({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}const Nue=navigator.platform.match("Mac");function Ab(e){return(e.ctrlKey||Nue&&e.metaKey)&&e.key}const Bue=Symbol(),mk=Symbol(),Nf="a",zg="w";let zue=(e,t)=>new Proxy(e,t);const xx=Object.getPrototypeOf,Sx=new WeakMap,o4=e=>e&&(Sx.has(e)?Sx.get(e):xx(e)===Object.prototype||xx(e)===Array.prototype),RR=e=>typeof e=="object"&&e!==null,Vue=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(xx(e),t)},s4=e=>e[mk]||e,i4=(e,t,n,r)=>{if(!o4(e))return e;let o=r&&r.get(e);if(!o){const a=s4(e);o=(u=>Object.values(Object.getOwnPropertyDescriptors(u)).some(f=>!f.configurable&&!f.writable))(a)?[a,Vue(a)]:[a],r==null||r.set(e,o)}const[s,i]=o;let l=n&&n.get(s);return l&&l[1].f===!!i||(l=((a,u)=>{const f={f:u};let p=!1;const g=(y,m)=>{if(!p){let C=f[Nf].get(a);if(C||(C={},f[Nf].set(a,C)),y===zg)C[zg]=!0;else{let b=C[y];b||(b=new Set,C[y]=b),b.add(m)}}},v={get:(y,m)=>m===mk?a:(g("k",m),i4(Reflect.get(y,m),f[Nf],f.c,f.t)),has:(y,m)=>m===Bue?(p=!0,f[Nf].delete(a),!0):(g("h",m),Reflect.has(y,m)),getOwnPropertyDescriptor:(y,m)=>(g("o",m),Reflect.getOwnPropertyDescriptor(y,m)),ownKeys:y=>(g(zg),Reflect.ownKeys(y))};return u&&(v.set=v.deleteProperty=()=>!1),[v,f]})(s,!!i),l[1].p=zue(i||s,l[0]),n&&n.set(s,l)),l[1][Nf]=t,l[1].c=n,l[1].t=r,l[1].p},l4=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!RR(e)||!RR(t))return!0;const o=n.get(s4(e));if(!o)return!0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1})}let s=null;try{for(const i of o.h||[])if(s=Reflect.has(e,i)!==Reflect.has(t,i),s)return s;if(o[zg]===!0){if(s=((i,l)=>{const a=Reflect.ownKeys(i),u=Reflect.ownKeys(l);return a.length!==u.length||a.some((f,p)=>f!==u[p])})(e,t),s)return s}else for(const i of o.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),s)return s;for(const i of o.k||[])if(s=l4(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},jue=e=>o4(e)&&e[mk]||null,OR=(e,t=!0)=>{Sx.set(e,t)};const Mw=e=>typeof e=="object"&&e!==null,Wl=new WeakMap,Zf=new WeakSet,Hue=(e=Object.is,t=(u,f)=>new Proxy(u,f),n=u=>Mw(u)&&!Zf.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),r=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},o=new WeakMap,s=(u,f,p=r)=>{const g=o.get(u);if((g==null?void 0:g[0])===f)return g[1];const v=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return OR(v,!0),o.set(u,[f,v]),Reflect.ownKeys(u).forEach(y=>{if(Object.getOwnPropertyDescriptor(v,y))return;const m=Reflect.get(u,y),{enumerable:C}=Reflect.getOwnPropertyDescriptor(u,y),b={value:m,enumerable:C,configurable:!0};if(Zf.has(m))OR(m,!1);else if(m instanceof Promise)delete b.value,b.get=()=>p(m);else if(Wl.has(m)){const[w,S]=Wl.get(m);b.value=s(w,S(),p)}Object.defineProperty(v,y,b)}),Object.preventExtensions(v)},i=new WeakMap,l=[1,1],a=u=>{if(!Mw(u))throw new Error("object required");const f=i.get(u);if(f)return f;let p=l[0];const g=new Set,v=(L,O=++l[0])=>{p!==O&&(p=O,g.forEach(R=>R(L,O)))};let y=l[1];const m=(L=++l[1])=>(y!==L&&!g.size&&(y=L,b.forEach(([O])=>{const R=O[1](L);R>p&&(p=R)})),p),C=L=>(O,R)=>{const V=[...O];V[1]=[L,...V[1]],v(V,R)},b=new Map,w=(L,O)=>{if(g.size){const R=O[3](C(L));b.set(L,[O,R])}else b.set(L,[O])},S=L=>{var O;const R=b.get(L);R&&(b.delete(L),(O=R[1])==null||O.call(R))},k=L=>(g.add(L),g.size===1&&b.forEach(([R,V],j)=>{const _=R[3](C(j));b.set(j,[R,_])}),()=>{g.delete(L),g.size===0&&b.forEach(([R,V],j)=>{V&&(V(),b.set(j,[R]))})}),M=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),E=t(M,{deleteProperty(L,O){const R=Reflect.get(L,O);S(O);const V=Reflect.deleteProperty(L,O);return V&&v(["delete",[O],R]),V},set(L,O,R,V){const j=Reflect.has(L,O),_=Reflect.get(L,O,V);if(j&&(e(_,R)||i.has(R)&&e(_,i.get(R))))return!0;S(O),Mw(R)&&(R=jue(R)||R);let A=R;if(R instanceof Promise)R.then(F=>{R.status="fulfilled",R.value=F,v(["resolve",[O],F])}).catch(F=>{R.status="rejected",R.reason=F,v(["reject",[O],F])});else{!Wl.has(R)&&n(R)&&(A=a(R));const F=!Zf.has(A)&&Wl.get(A);F&&w(O,F)}return Reflect.set(L,O,A,V),v(["set",[O],R,_]),!0}});i.set(u,E);const T=[M,m,s,k];return Wl.set(E,T),Reflect.ownKeys(u).forEach(L=>{const O=Object.getOwnPropertyDescriptor(u,L);"value"in O&&(E[L]=u[L],delete O.value,delete O.writable),Object.defineProperty(M,L,O)}),E})=>[a,Wl,Zf,e,t,n,r,o,s,i,l],[Uue]=Hue();function gk(e={}){return Uue(e)}function vk(e,t,n){const r=Wl.get(e);let o;const s=[],i=r[3];let l=!1;const u=i(f=>{if(s.push(f),n){t(s.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(s.splice(0))}))});return l=!0,()=>{l=!1,u()}}function DR(e,t){const n=Wl.get(e),[r,o,s]=n;return s(r,o(),t)}function Wue(e){return Zf.add(e),e}var a4={exports:{}},c4={};/**
|
|
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 yd=c;function Gue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kue=typeof Object.is=="function"?Object.is:Gue,que=yd.useState,Yue=yd.useEffect,Que=yd.useLayoutEffect,Xue=yd.useDebugValue;function Zue(e,t){var n=t(),r=que({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Que(function(){o.value=n,o.getSnapshot=t,Tw(o)&&s({inst:o})},[e,n,t]),Yue(function(){return Tw(o)&&s({inst:o}),e(function(){Tw(o)&&s({inst:o})})},[e]),Xue(n),n}function Tw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kue(e,n)}catch(r){return!0}}function Jue(e,t){return t()}var ede=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Jue:Zue;c4.useSyncExternalStore=yd.useSyncExternalStore!==void 0?yd.useSyncExternalStore:ede;a4.exports=c4;var tde=a4.exports;const nde=Ni(tde),{use:AR}=lo,{useSyncExternalStore:rde}=nde;const ode=new WeakMap;function yk(e,t){const n=t==null?void 0:t.sync,r=c.useRef(),o=c.useRef();let s=!0;const i=rde(c.useCallback(u=>{const f=vk(e,u,n);return u(),f},[e,n]),()=>{const u=DR(e,AR);try{if(!s&&r.current&&o.current&&!l4(r.current,u,o.current,new WeakMap))return r.current}catch(f){}return u},()=>DR(e,AR));s=!1;const l=new WeakMap;c.useEffect(()=>{r.current=i,o.current=l});const a=c.useMemo(()=>new WeakMap,[]);return i4(i,l,a,ode)}const bd=gk([]),Px={closableContent:"x",padding:!0},u4=['input:not([type="hidden"])',"button","select","textarea","a[href]","[tabindex]"].map(e=>e+':not([disabled]):not([tabindex="-1"])').join(",");window.addEventListener("keydown",e=>{if(e.key!=="Tab")return;const t=document.querySelectorAll("[role=dialog]"),n=t[t.length-1];if(!n)return;const r=n.querySelectorAll(u4),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&sde(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function sde(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ide(){const e=yk(bd);return c.useEffect(()=>{document.body.style.overflow=e.length?"hidden":""},[e.length]),c.createElement(c.Fragment,{},e.length>0&&e.map(t=>c.createElement(lde,Se({key:t.$id},t))))}function lde(e){var r;const t=c.useRef();if(c.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=Se(Se({},Px),e),e.Container)return c.createElement(e.Container,e);return c.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:ade,onClick:o=>o.target===o.currentTarget&&Li()},e.noFrame?c.createElement(e.Content||"div"):c.createElement("div",Se({role:"dialog","aria-modal":!0,className:"dialog",style:Se(Se({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&c.createElement("button",{className:"dialog-icon dialog-closer",onClick(){Li()}},e.closableContent),e.icon&&c.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},Bv(e.icon)),c.createElement("div",{className:"dialog-title"},Bv(e.title)),c.createElement("div",{className:"dialog-content"},c.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:s}=window,i=e.position;return i&&Se(Se({margin:"1em",position:"absolute"},i[0]<o/2?{left:i[0]}:{right:o-i[0]}),i[1]<s/2?{top:i[1]}:{bottom:s-i[1]})}}function Bv(e){return Pue(e)||c.isValidElement(e)?e:c.createElement(e)}function ade(e){e.key==="Escape"&&Li()}function rs(e){const t=Math.random();return e.$id=t,e=Rb(e,r=>c.isValidElement(r)?Wue(r):r),bd.push(e),{close:n};function n(r){const o=bd.findIndex(s=>s.$id===t);if(!(o<0))return d4(o,r)}}function Li(e){let t=bd.length;for(;t--;){const n=bd[t];if(!n.reserveClosing)return d4(t,e),n}}function d4(e,t){var r;const[n]=bd.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var uc={},Lb={},wd={};const cde={},ude=Object.freeze(Object.defineProperty({__proto__:null,default:cde},Symbol.toStringTag,{value:"Module"})),LR=AD(ude);Object.defineProperty(wd,"__esModule",{value:!0});var FR=wd.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||LR.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);FR=wd.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=LR,n=r=>o=>t.createHash(r).update(o).digest().buffer;FR=wd.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(Lb,"__esModule",{value:!0});Lb.SRPParameters=void 0;const lg=wd;class Cd{constructor(t=Cd.PrimeGroup[2048],n=Cd.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}Lb.SRPParameters=Cd;Cd.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)}};Cd.H={SHA1:lg.crossEnvCrypto.hashFunctions.SHA1,SHA256:lg.crossEnvCrypto.hashFunctions.SHA256,SHA384:lg.crossEnvCrypto.hashFunctions.SHA384,SHA512:lg.crossEnvCrypto.hashFunctions.SHA512};var Fb={},Nb={};(function(e){var t=sn&&sn.__awaiter||function(S,k,M,I){function E(T){return T instanceof M?T:new M(function(L){L(T)})}return new(M||(M=Promise))(function(T,L){function O(j){try{V(I.next(j))}catch(_){L(_)}}function R(j){try{V(I.throw(j))}catch(_){L(_)}}function V(j){j.done?T(j.value):E(j.value).then(O,R)}V((I=I.apply(S,k||[])).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=wd,r=BigInt(0),o=BigInt(1),s=BigInt(2),i=S=>{const k=S.toString(16),M=new ArrayBuffer(Math.ceil(k.length/2)),I=new Uint8Array(M);let E=0;k.length%2!==0&&(I[0]=parseInt(k[0],16),E=1);for(let T=0;T<M.byteLength;T++)I[T+E]=parseInt(k.slice(2*T+E,2*T+2+E),16);return M};e.bigIntToArrayBuffer=i;const l=S=>{const k=[];return new Uint8Array(S).forEach(M=>{k.push(("0"+M.toString(16)).slice(-2))}),BigInt(`0x${k.join("")}`)};e.arrayBufferToBigInt=l;function a(S){return new TextEncoder().encode(S).buffer}e.stringToArrayBuffer=a;const u=(S,k)=>{const M=new Uint8Array(S);if(M.length<k){const I=new Uint8Array(k);return I.fill(0,0,k-M.length),I.set(M,k-M.length),I}return M};e.padStartArrayBuffer=u;function f(S,...k){const M=k.reduce((E,T)=>E+T.byteLength,0),I=new Uint8Array(M);for(let E=0,T=0;T<k.length;T++)I.set(new Uint8Array(k[T]),E),E+=k[T].byteLength;return S.H(I)}e.hash=f;function p(S,k,...M){const I=M.map(E=>e.padStartArrayBuffer(E,k));return f(S,...I)}e.hashPadded=p;function g(S=10){const k=new Uint8Array(Math.ceil(Math.ceil(S/2)));return n.crossEnvCrypto.randomBytes(k),k.reduce((M,I)=>{const E=I.toString(16).toString();return E.length===1?M+"0"+E:M+E},"").slice(0,S)}e.generateRandomString=g;function v(S=16){return e.arrayBufferToBigInt(w(S))}e.generateRandomBigInt=v;function y(S,k,M,I){return t(this,void 0,void 0,function*(){if(!k||!k.trim())throw new Error("Identity (I) must not be null or empty.");if(!M)throw new Error("Salt (s) must not be null.");if(!I)throw new Error("Password (P) must not be null");const E=yield S.computeX(k,M,I);return S.computeVerifier(E)})}e.createVerifier=y;function m(S,k,M,I){return t(this,void 0,void 0,function*(){const E=yield S.generateRandomSalt(I);return{s:E,v:yield y(S,k,E,M)}})}e.createVerifierAndSalt=m;const C=S=>t(void 0,void 0,void 0,function*(){return(yield f(S,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=C;function b(S,k,M){let I=o;for(;k>r;)k%s==o?(I=S*I%M,k-=o):(S=S*S%M,k/=s);return I}e.modPow=b;const w=S=>{const k=new Uint8Array(S);return n.crossEnvCrypto.randomBytes(k),k.buffer}})(Nb);var Ll=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Fb,"__esModule",{value:!0});Fb.SRPRoutines=void 0;const hn=Nb;class dde{constructor(t){this.parameters=t}hash(...t){return hn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return hn.hashPadded(this.parameters,n,...t)}computeK(){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hashPadded(hn.bigIntToArrayBuffer(this.parameters.primeGroup.N),hn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Ll(this,void 0,void 0,function*(){const n=yield hn.hashBitCount(this.parameters),r=t||2*n/8;return hn.generateRandomBigInt(r)})}computeX(t,n,r){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Ll(this,void 0,void 0,function*(){return yield this.hash(hn.stringToArrayBuffer(n))})}computeVerifier(t){return hn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=hn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return hn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hashPadded(hn.bigIntToArrayBuffer(t),hn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,s){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(r),hn.bigIntToArrayBuffer(o),hn.bigIntToArrayBuffer(s)))})}computeServerEvidence(t,n,r){return Ll(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),hn.bigIntToArrayBuffer(n),hn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,s){const i=this.parameters.primeGroup.N,l=r*n+o,a=hn.modPow(this.parameters.primeGroup.g,n,i)*t%i;return hn.modPow(s+i-a,l,i)}}Fb.SRPRoutines=dde;var ha={},bk=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(ha,"__esModule",{value:!0});ha.SRPClientSessionStep2=ha.SRPClientSessionStep1=ha.SRPClientSession=void 0;class fde{constructor(t){this.routines=t}step1(t,n){return bk(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 Bb(this.routines,t,r)})}}ha.SRPClientSession=fde;class Bb{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return bk(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(),s=this.routines.computeClientPublicValue(o),i=yield this.routines.computeK(),l=yield this.routines.computeU(s,n),a=this.routines.computeClientSessionKey(i,r,l,o,n),u=yield this.routines.computeClientEvidence(this.I,t,s,n,a);return new zb(this.routines,s,u,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Bb(t,n.I,new Uint8Array(n.IH).buffer)}}ha.SRPClientSessionStep1=Bb;class zb{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return bk(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 zb(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}ha.SRPClientSessionStep2=zb;var xd={},kx=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(xd,"__esModule",{value:!0});xd.SRPServerSessionStep1=xd.SRPServerSession=void 0;const Ix=Nb;class pde{constructor(t){this.routines=t}step1(t,n,r){return kx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=hde(this.routines.parameters,s,r,o);return new Vb(this.routines,t,n,r,o,i)})}}xd.SRPServerSession=pde;class Vb{constructor(t,n,r,o,s,i){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=s,this.B=i}sessionKey(t){return kx(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 mde(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return kx(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 Vb(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}xd.SRPServerSessionStep1=Vb;const hde=(e,t,n,r)=>(Ix.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,mde=(e,t,n,r,o)=>Ix.modPow(Ix.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=Lb;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Fb;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=ha;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=xd;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=Nb;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return s.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return s.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return s.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return s.generateRandomBigInt}})})(uc);function gde(e,t,n){return rt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const s=yield vde(e,t,o,r),i=yield n("loginSrp2",{pubKey:String(s.A),proof:String(s.M1)});return yield s.step3(BigInt(i.proof)).catch(()=>Promise.reject("trust")),i})}function vde(e,t,n,r){return rt(this,null,function*(){const o=new uc.SRPRoutines(new uc.SRPParameters);return yield(yield new uc.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}window._=ot;const _w=jb();Object.assign(_w,{getPluginKey:()=>NR("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=NR("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>_w.plugins[_w.getPluginKey()]||{}});function NR(e){var t;return((t=document.currentScript)==null?void 0:t.getAttribute(e))||console.error("this function must be called at the very top of your file")}Object.fromEntries(new URLSearchParams(window.location.search).entries());function f4(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 p4(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:s}=o.target;t(s==null?void 0:s.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function yde(){return window.innerWidth<800}function jb(){return window.HFS}function h4(){return jb().prefixUrl||""}function bde(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,ot.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=ot.clamp(o-3e4,4e3,6e5);console.debug("session refresh in",Math.round(s/1e3)),setTimeout(()=>at("refresh_session").then(t),s)}}function zv(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}var wk={},wde=et;Object.defineProperty(wk,"__esModule",{value:!0});var Ck=wk.default=void 0,Cde=wde(tt()),xde=Ze(),Sde=(0,Cde.default)((0,xde.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Ck=wk.default=Sde;var xk={},Pde=et;Object.defineProperty(xk,"__esModule",{value:!0});var $h=xk.default=void 0,kde=Pde(tt()),Ide=Ze(),Ede=(0,kde.default)((0,Ide.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");$h=xk.default=Ede;var Sk={},Mde=et;Object.defineProperty(Sk,"__esModule",{value:!0});var Hb=Sk.default=void 0,Tde=Mde(tt()),_de=Ze(),$de=(0,Tde.default)((0,_de.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");Hb=Sk.default=$de;var Pk={},Rde=et;Object.defineProperty(Pk,"__esModule",{value:!0});var m4=Pk.default=void 0,Ode=Rde(tt()),Dde=Ze(),Ade=(0,Ode.default)((0,Dde.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");m4=Pk.default=Ade;var kk={},Lde=et;Object.defineProperty(kk,"__esModule",{value:!0});var Vv=kk.default=void 0,Fde=Lde(tt()),Nde=Ze(),Bde=(0,Fde.default)((0,Nde.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");Vv=kk.default=Bde;var Ik={},zde=et;Object.defineProperty(Ik,"__esModule",{value:!0});var Ub=Ik.default=void 0,Vde=zde(tt()),jde=Ze(),Hde=(0,Vde.default)((0,jde.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Ub=Ik.default=Hde;var Ek={},Ude=et;Object.defineProperty(Ek,"__esModule",{value:!0});var Rh=Ek.default=void 0,Wde=Ude(tt()),Gde=Ze(),Kde=(0,Wde.default)((0,Gde.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");Rh=Ek.default=Kde;function qde(e){return Ke("MuiLoadingButton",e)}const Yde=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Zi=Yde,Qde=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Xde=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${xe(n)}`],endIcon:[t&&`endIconLoading${xe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${xe(n)}`]},s=_e(o,qde,r);return x({},r,s)},Zde=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Jde=te(qn,{shouldForwardProp:e=>Zde(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Zi.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Zi.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>x({[`& .${Zi.startIconLoadingStart}, & .${Zi.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}),[`&.${Zi.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Zi.startIconLoadingStart}, & .${Zi.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Zi.startIconLoadingStart}, & .${Zi.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),efe=te("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${xe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>x({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})),tfe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLoadingButton"}),{children:o,disabled:s=!1,id:i,loading:l=!1,loadingIndicator:a,loadingPosition:u="center",variant:f="text"}=r,p=oe(r,Qde),g=Kt(i),v=a!=null?a:$.jsx(Ai,{"aria-labelledby":g,color:"inherit",size:16}),y=x({},r,{disabled:s,loading:l,loadingIndicator:v,loadingPosition:u,variant:f}),m=Xde(y),C=l?$.jsx(efe,{className:m.loadingIndicator,ownerState:y,children:v}):null;return $.jsxs(Jde,x({disabled:s||l,id:g,ref:n},p,{variant:f,classes:m,ownerState:y,children:[y.loadingPosition==="end"?o:C,y.loadingPosition==="end"?C:o]}))}),g4=tfe;function zi(g){var v=g,{value:e,onChange:t,min:n,max:r,required:o,setApi:s,typing:i,start:l,end:a,onTyping:u,suggestions:f}=v,p=Ft(v,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const y=e!=null?e:"";s==null||s({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[m,C]=c.useState(y),b=c.useRef(y);c.useEffect(()=>{C(y),b.current=y},[y]);const w=c.useRef(),S=M=>c.createElement(Fc,Se(ht(Se({fullWidth:!0,InputLabelProps:m||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:m,onChange(I){let E=I.target.value;if(u){const T=u(E);if(T===!1)return;E=T}C(E),(i||w.current===void 0)&&k(I,E)},onKeyDown(I){var E;(E=p.onKeyDown)==null||E.call(p,I),(I.key==="Enter"||I.code===void 0)&&k(I)},onFocus(I){w.current=I.target.value},onBlur(I){var E;(E=p.onBlur)==null||E.call(p,I),w.current!==I.target.value&&k(I)},InputProps:Se({startAdornment:l&&c.createElement(gl,{position:"start"},l),endAdornment:a&&c.createElement(gl,{position:"end"},a)},p.InputProps)}),M));return f?c.createElement(xb,{freeSolo:!0,options:f,renderInput:S}):S(null);function k(M,I=m){I=I.trim(),I!==b.current&&(b.current=I,t(I,{was:e,event:M,cancel(){C(y)}}))}}var Mk={},nfe=et;Object.defineProperty(Mk,"__esModule",{value:!0});var v4=Mk.default=void 0,rfe=nfe(tt()),ofe=Ze(),sfe=(0,rfe.default)((0,ofe.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"}),"Clear");v4=Mk.default=sfe;function Wr(e){const l=e,{value:t,onChange:n,setApi:r,options:o,sx:s}=l,i=Ft(l,["value","onChange","setApi","options","sx"]);return c.createElement(Fc,ht(Se(Se({},y4(e)),i),{onChange(a){try{let u=a.target.value;u=JSON.parse(u),n(u,{was:t,event:a})}catch(u){}}}))}function Wb(e){const m=e,{value:t,onChange:n,setApi:r,options:o,sx:s,clearable:i,clearValue:l,placeholder:a}=m,u=Ft(m,["value","onChange","setApi","options","sx","clearable","clearValue","placeholder"]),C=y4(ht(Se({clearValue:[]},e),{clearable:!1})),{select:f,InputProps:p}=C,g=Ft(C,["select","InputProps"]),v=c.useMemo(()=>b4(o),[o]),y=c.useMemo(()=>Array.isArray(t)?t.map(b=>v.find(w=>w.value===b)||{value:b,label:String(b)}):[],[t,v]);return c.createElement(xb,ht(Se({multiple:!0,options:v,filterSelectedOptions:!0,onChange:(b,w)=>n(w.map(S=>S.value),{was:t,event:b}),isOptionEqualToValue:(b,w)=>b.value===w.value,getOptionLabel:b=>b.label,renderOption:(b,w)=>c.createElement("span",b,w.label)},g),{value:y,renderInput:b=>c.createElement(Fc,Se(ht(Se({},u),{placeholder:y.length?void 0:a,SelectProps:{multiple:!0},sx:ht(Se({},u.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),b)),sx:Se({".MuiAutocomplete-tag":{height:24},".MuiAutocomplete-inputRoot":{pt:"21px"},"input[type][type]":{p:"4px"},".MuiChip-deleteIcon[class]":{position:"absolute",right:"-0.6em",opacity:0,color:"text.primary",transition:"all .2s"},".MuiChip-root:hover .MuiChip-deleteIcon":{opacity:1}},s)}))}function y4(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=b4(t),u=JSON.stringify(l),f=a.find(g=>JSON.stringify(g.value)===u),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?u:"",disabled:!(a!=null&&a.length)||n,InputProps:Se({startAdornment:(r||p)&&c.createElement(gl,{position:"start"},p&&c.createElement(Ra,{title:"Clear",children:c.createElement(pr,{onClick(g){e.onChange(i,{was:l,event:g})}},c.createElement(v4))}),r),endAdornment:o&&c.createElement(gl,{position:"end"},o)},e.InputProps),children:a.map((g,v)=>c.createElement(Sr,{key:v,value:JSON.stringify(g==null?void 0:g.value),children:c.createElement(c.Fragment,{key:v},g==null?void 0:g.label)}))}}function b4(e){return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{value:t,label:String(t)}:t):Object.entries(e).map(([t,n])=>({value:n,label:t}))}function xp(r){var o=r,{value:e,empty:t="-"}=o,n=Ft(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),c.createElement(zi,ht(Se({},n),{value:e,disabled:!0}))}function Cs(u){var f=u,{value:e,onChange:t,setApi:n,required:r,min:o,max:s,step:i,unit:l}=f,a=Ft(f,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>s?"too high":!1}}),c.createElement(zi,Se({type:"number",value:e==null?"":String(e),onChange(p,y){var m=y,{was:g}=m,v=Ft(m,["was"]);t(p?Number(p):null,ht(Se({},v),{was:g?Number(g):null}))},inputProps:{min:o,max:s,step:i},InputProps:ot.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:c.createElement(gl,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},l)})},a))}function Wn(a){var u=a,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:s,type:i}=u,l=Ft(u,["label","value","onChange","setApi","helperText","error","type"]);const f=()=>t!=null?t:!1,[p,g]=c.useState(f);c.useEffect(()=>g(f),[t]);const v=c.createElement(NN,ht(Se({checked:p},l),{onChange(y){n(y.target.checked,{event:y,was:t})}}));return c.createElement(ze,{ml:1,mt:1,sx:s?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},c.createElement(wN,Se({label:e,control:v,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&c.createElement(Vd,{error:s},o))}function Bc(y){var m=y,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:s,addToBar:i=[],barSx:l,formRef:a,onError:u,saveOnEnter:f,gridProps:p,formProps:g}=m,v=Ft(m,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const C=c.useRef(!1);c.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const[b,w]=c.useState({}),[S,k]=c.useState({}),M=typeof o=="function"?{onClick:o}:o,[I,E]=c.useState(0),T=c.useRef(!1),L=c.useRef("");c.useEffect(()=>void _(),[I]);const O={},R={};return c.createElement("form",ht(Se({ref:a&&(A=>a.current=A||void 0)},g),{onSubmit(A){A.preventDefault()},onKeyDown(A){M&&!M.disabled&&(A.ctrlKey||A.metaKey)&&A.key==="Enter"&&V()}}),c.createElement(ze,Se({display:"flex",flexDirection:"column",gap:3},v),c.createElement(ti,Se({container:!0,rowSpacing:3,columnSpacing:1},p),e.map((A,F)=>{if(!A)return null;if(c.isValidElement(A))return c.createElement(ti,{key:F,item:!0,xs:12},A);const Q=A,{k:z,fromField:D=ot.identity,toField:N=ot.identity,getError:H,error:K}=Q,Y=Ft(Q,["k","fromField","toField","getError","error"]);let Z=b[z]||K||S[z];if(Z===!0&&(Z="Not valid"),z){const J=A.hasOwnProperty("value")?A.value:t==null?void 0:t[z],ne=Se(Se({},A),Y);Object.assign(Y,{value:N(J),error:!!(Z||K)||void 0,setApi(fe){R[z]=fe},onKeyDown(fe){f&&fe.key==="Enter"&&V()},onChange(fe){var we;try{if(fe=D(fe,{originalValue:J}),k(Ce=>ht(Se({},Ce),{[z]:!1})),(((we=R[z])==null?void 0:we.isEqual)||ot.isEqual)(fe,J))return;n(fe,z),j(z)}catch(Ce){k(ae=>ht(Se({},ae),{[z]:(Ce==null?void 0:Ce.message)||String(Ce)||!0}))}}}),Array.isArray(Y.helperText)&&(Y.helperText=c.createElement(c.Fragment,{},...Y.helperText)),Z&&(Y.helperText=Y.helperText?c.createElement(c.Fragment,{},c.createElement("span",{style:{borderBottom:"1px solid"}},Z),c.createElement(ze,{color:"text.primary",component:"span",display:"block"},Y.helperText)):Z),Y.label===void 0&&(Y.label=w4(z)),ot.defaults(Y,r==null?void 0:r(ne))}{const X=Y,{xs:J=12,sm:ne,md:fe,lg:we,xl:Ce,comp:ae=zi,before:be,after:de,fromField:ke,toField:Ie}=X,le=Ft(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(le,{name:z});const Ee=O[z]=(O[z]||0)+1;return c.createElement(ti,{key:z?z+Ee:F,item:!0,xs:J,sm:ne,md:fe,lg:we,xl:Ce},be,c.isValidElement(ae)?ae:c.createElement(ae,le),de)}})),M&&c.createElement(ze,{display:"flex",alignItems:"center",sx:Object.assign({},s&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1,boxShadow:"0px 0px 30px #000"},l)},c.createElement(g4,ht(Se({variant:"contained",startIcon:c.createElement(Rh),children:"Save",loading:hk(I!==0)},M),{onClick:V})),...i)));function V(){T.current=!0,j()}function j(A=""){I===0&&(L.current=A,setTimeout(()=>E(F=>F===0?1:F)))}function _(){return rt(this,null,function*(){var z,D,N;if(I===0)return;if(I===1)return E(2);const A="Please review errors",F={};for(const H of e){if(!H||c.isValidElement(H)||!H.k)continue;const{k:K}=H,Y=t==null?void 0:t[K],Z=(yield(D=(z=R[K])==null?void 0:z.getError)==null?void 0:D.call(z,Y,{values:t,fields:e}))||(yield(N=H.getError)==null?void 0:N.call(H,Y,{values:t,fields:e}))||S[K];if(F[K]=Z||!1,!T.current&&K===L.current)break;if(!C.current)return}w(F);try{if(!T.current)return;if(Object.values(F).some(Boolean))return yield u==null?void 0:u(A);const H=M&&M.onClick;H&&(yield H())}catch(H){yield u==null?void 0:u(H)}finally{T.current=!1,C.current&&E(0)}})}}function w4(e){return ot.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function C4(){return Eb("(prefers-color-scheme: dark)")}const ife={};function lfe(){const e=C4()?null:ife;return c.useMemo(()=>TP({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},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])}const afe={"`":"code","*":"i","**":"b"};function sr(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),Tk(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?c.createElement(As,{href:r[5],target:t},n(r[4])):r[3]?c.createElement("br"):r[1]?c.createElement(afe[r[1]]||c.Fragment,{},n(r[2])):c.createElement(r[6]||r[8],{},r[7]),n)}function Tk(e,t,n,r=o=>o){const o=[];let s=0,i;for(;(i=t.exec(e))&&(o.push(r(e.slice(s,i.index))),o.push(n(i)),s=i.index+i[0].length,!!t.global););return c.createElement(c.Fragment,{},...o,r(e.slice(s,1/0)))}Px.Container=function(t){const n=c.useRef(),{width:r,height:o}=Db(),s=r>0&&Math.min(r,o)<500;c.useEffect(()=>{const p=setTimeout(()=>{const g=n.current;g&&(g.focus(),!s&&(zv("[autofocus]")||zv("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=_k();t=Se(Se({},Px),t);const f=t.dialogProps||{},{sx:l,root:a}=f,u=Ft(f,["sx","root"]);return t.noFrame?c.createElement(Ib,{open:!0,children:c.createElement(Oh,{},c.createElement(t.Content))}):c.createElement(fN,ht(Se(Se({open:!0,maxWidth:"lg",fullScreen:s},u),a),{className:t.className,onClose:()=>Li()}),t.title&&c.createElement(gre,{sx:Se({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},i)},t.icon&&c.createElement(ze,{mr:1},Bv(t.icon)),c.createElement(ze,{flex:1,minWidth:40},Bv(t.title)),c.createElement(mn,{icon:$h,title:"close",sx:{ml:1},onClick:()=>Li()})),c.createElement(pN,{ref:n,sx:Se({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},c.createElement(t.Content)))};function _k(){return C4()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const x4={error:Hb,warning:Ub,info:Vv,success:Ck};function kt(e,t){const n=typeof t=="string"?{type:t}:t!=null?t:{};let l=n,{type:r="info"}=l,o=Ft(l,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const s=fk(),i=rs(ht(Se({className:"dialog-alert dialog-alert-"+r,icon:"!",onClose:s.resolve},o),{Content(){var a;return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.createElement(pr,{onClick(){i.close()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},c.createElement($h)),(a=n.icon)!=null?a:c.createElement(x4[r],{color:r,fontSize:"large"}),c.isValidElement(e)?e:c.createElement(ze,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}));return Object.assign(s,i)}function dr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=Ft(i,["href","confirmText","dontText"]);const l=fk(),a=rs(ht(Se({className:"dialog-confirm",onClose:l.resolve},o),{Content:u}));return Object.assign(l,a);function u(){return c.createElement(c.Fragment,{},c.createElement(ze,{mb:2},typeof e=="string"?sr(e):e),c.createElement(ao,{},c.createElement("a",{href:t,onClick:()=>Li(!0)},c.createElement(qn,{variant:"contained"},n)),c.createElement(qn,{onClick:()=>Li(!1)},r)))}}function nh(r){return rt(this,null,function*(){var o=r,{form:e,values:t}=o,n=Ft(o,["form","values"]);return new Promise(i=>rs(ht(Se({className:"dialog-confirm",onClose:i},n),{Content:s})));function s(){const[i,l]=c.useState(t||{}),p=typeof e=="function"?e(i):e,{onChange:a,before:u}=p,f=Ft(p,["onChange","before"]);return c.createElement(c.Fragment,{},u,c.createElement(Bc,ht(Se({},f),{values:i,set(g,v){l(y=>{const m=ht(Se({},y),{[v]:g});return a==null||a(m,{setValues:l}),m})},save:ht(Se({},f.save),{onClick(){Li(i)}})})))}})}function $k(a){return rt(this,arguments,function*(e,i={}){var l=i,{value:t,field:n,save:r,addToBar:o=[]}=l,s=Ft(l,["value","field","save","addToBar"]);return nh(ht(Se({},s),{values:{text:t},form:{fields:[ht(Se({k:"text",label:null,autoFocus:!0},n),{before:c.createElement(ze,{mb:2},e)})],save:Se({children:"Continue",startIcon:c.createElement(m4)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[c.createElement(qn,{onClick:Li},"Cancel"),...o]}})).then(u=>u==null?void 0:u.text)})}function S4(){return rs({Content:()=>c.createElement(Ai,{size:"20vw"}),noFrame:!0,closable:!1}).close}function er(e,t="info",n){const o=rs(ht(Se({},n),{Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(l){l&&(l.style.opacity="0")}}}})),{close:s}=o;return setTimeout(s,3e3),o;function i(){return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.isValidElement(t)?t:c.createElement(x4[t],{color:t}),c.isValidElement(e)?e:c.createElement("div",{},String(e)))}}function P4(){return c.createElement(Ai)}function Ko(e){return Eb(t=>t.breakpoints.up(e),{noSsr:!0})}function k4({icon:e,progress:t,offset:n,addTitle:r,sx:o}){return c.createElement(c.Fragment,{},c.createElement(e,{sx:{position:"absolute",ml:"4px"}}),c.createElement(Ai,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),c.createElement(Ra,{title:c.createElement(c.Fragment,{},Cue(t),r),children:c.createElement(Ai,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:Se({display:"flex"},o)})}))}function ao(s){var i=s,{vert:e=!1,center:t=!1,children:n=null,props:r={}}=i,o=Ft(i,["vert","center","children","props"]);return c.createElement(ze,Se({sx:Se(Se({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function Mc(e,t){return Array.isArray(t)&&(t=th(t)),c.createElement(As,{href:sue+e,target:"help"},t)}function Gb(e,t){return c.createElement(mn,Se({icon:Tb,title:"Reload",onClick:e},t))}function Ud(e){return e?{outline:"2px solid"}:void 0}const mn=c.forwardRef((g,p)=>{var v=g,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,sx:u}=v,f=Ft(v,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","sx"]);const[y,m]=wo(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s));let C=c.createElement(pr,ht(Se({ref:p,disabled:!!(y||o||r)},f),{sx:Se({height:"fit-content"},u),onClick(...w){return rt(this,null,function*(){if(l&&!(yield dr(l)))return;const S=n==null?void 0:n.apply(this,w);S&&S instanceof Promise&&(m(!0),S.then(k=>k!==!1&&I4(a),kt).finally(()=>m(!1)))})}}),(o||y)&&o!==!1&&c.createElement(Ai,ht(Se({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:"10%",left:"10%",width:"80%",height:"80%"}})),c.createElement(t));return e&&(C=c.createElement(Ra,ht(Se({title:e},i),{children:c.createElement("span",{},C)}))),C});function Ts(g){var v=g,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,labelFrom:u,children:f}=v,p=Ft(v,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","labelFrom","children"]);const[y,m]=wo(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Ko(u||"xs");let b=c.createElement(g4,ht(Se({variant:"contained",startIcon:e&&c.createElement(e),loading:!!(y||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:c.createElement(Ai,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:Se(Se({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...S){return rt(this,null,function*(){if(l&&!(yield dr(l===!0?"Are you sure?":l)))return;const k=n==null?void 0:n.apply(this,S);k&&k instanceof Promise&&(m(!0),k.then(M=>M!==!1&&I4(a),kt).finally(()=>m(!1)))})}}));return t&&(b=c.createElement(Ra,ht(Se({title:t},i),{children:c.createElement("span",{},b)}))),b}function I4(e){e&&er(e===!0?"Operation completed":e,"success")}function ro(e,t,n){return c.createElement(Ra,{title:t,children:c.createElement(e,{sx:Se({verticalAlign:"bottom"},n)})})}function Kb(e){return c.createElement(As,Se({component:uP},e))}const Oh=c.forwardRef((e,t)=>c.createElement(ze,Se({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function rl(t){var e=Ft(t,[]);return c.createElement(As,ht(Se({},e),{sx:Se({cursor:"pointer"},e.sx)}))}function E4(){const[e,t]=M4(n=>({title:n?"Pause":"Resume",icon:n?qN:Mb,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function M4(e,t=!1){const[n,r]=c.useState(t),o=c.useCallback(()=>r(l=>!l),[]),s=e(n),i=c.createElement(mn,ht(Se({size:"small",color:n?"primary":"default"},s),{sx:Se({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function cfe(e,t){return rt(this,null,function*(){const r=(yield at("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield at("set_config",{values:{[e]:o}}))})}function T4(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function _4(e,t,n,r){let o=e[t];return vk(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const $4="admin_state",ln=gk(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[$4]||null))),R4=["onlinePluginsColumns"],ufe=ot.debounce(()=>localStorage[$4]=JSON.stringify(ot.pick(ln,R4)),500,{maxWait:1e3});for(const e of R4)_4(ln,e,ufe);function Vi(){return yk(ln)}function ei(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 Sd(e){return!!e&&!!e[Xo]}function Tc(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)===yfe}(e)||Array.isArray(e)||!!e[GR]||!!(!((t=e.constructor)===null||t===void 0)&&t[GR])||Rk(e)||Ok(e))}function rh(e,t,n){n===void 0&&(n=!1),Wd(e)===0?(n?Object.keys:Nk)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Wd(e){var t=e[Xo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Rk(e)?2:Ok(e)?3:0}function Ex(e,t){return Wd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dfe(e,t){return Wd(e)===2?e.get(t):e[t]}function O4(e,t,n){var r=Wd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ffe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Rk(e){return gfe&&e instanceof Map}function Ok(e){return vfe&&e instanceof Set}function Za(e){return e.o||e.t}function Dk(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bfe(e);delete t[Xo];for(var n=Nk(t),r=0;r<n.length;r++){var o=n[r],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ak(e,t){return t===void 0&&(t=!1),Lk(e)||Sd(e)||!Tc(e)||(Wd(e)>1&&(e.set=e.add=e.clear=e.delete=pfe),Object.freeze(e),t&&rh(e,function(n,r){return Ak(r,!0)},!0)),e}function pfe(){ei(2)}function Lk(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ti(e){var t=wfe[e];return t||ei(18,e),t}function BR(){return oh}function $w(e,t){t&&(Ti("Patches"),e.u=[],e.s=[],e.v=t)}function jv(e){Mx(e),e.p.forEach(hfe),e.p=null}function Mx(e){e===oh&&(oh=e.l)}function zR(e){return oh={p:[],l:oh,h:e,m:!0,_:0}}function hfe(e){var t=e[Xo];t.i===0||t.i===1?t.j():t.g=!0}function Rw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ti("ES5").S(t,e,r),r?(n[Xo].P&&(jv(t),ei(4)),Tc(e)&&(e=Hv(t,e),t.l||Uv(t,e)),t.u&&Ti("Patches").M(n[Xo].t,e,t.u,t.s)):e=Hv(t,n,[]),jv(t),t.u&&t.v(t.u,t.s),e!==D4?e:void 0}function Hv(e,t,n){if(Lk(t))return t;var r=t[Xo];if(!r)return rh(t,function(l,a){return VR(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Uv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Dk(r.k):r.o,s=o,i=!1;r.i===3&&(s=new Set(o),o.clear(),i=!0),rh(s,function(l,a){return VR(e,r,o,l,a,n,i)}),Uv(e,o,!1),n&&e.u&&Ti("Patches").N(r,n,e.u,e.s)}return r.o}function VR(e,t,n,r,o,s,i){if(Sd(o)){var l=Hv(e,o,s&&t&&t.i!==3&&!Ex(t.R,r)?s.concat(r):void 0);if(O4(n,r,l),!Sd(l))return;e.m=!1}else i&&n.add(o);if(Tc(o)&&!Lk(o)){if(!e.h.D&&e._<1)return;Hv(e,o),t&&t.A.l||Uv(e,o)}}function Uv(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ak(t,n)}function Ow(e,t){var n=e[Xo];return(n?Za(n):e)[t]}function jR(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 Tx(e){e.P||(e.P=!0,e.l&&Tx(e.l))}function Dw(e){e.o||(e.o=Dk(e.t))}function _x(e,t,n){var r=Rk(t)?Ti("MapSet").F(t,n):Ok(t)?Ti("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:BR(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,u=$x;i&&(a=[l],u=Jf);var f=Proxy.revocable(a,u),p=f.revoke,g=f.proxy;return l.k=g,l.j=p,g}(t,n):Ti("ES5").J(t,n);return(n?n.A:BR()).p.push(r),r}function mfe(e){return Sd(e)||ei(22,e),function t(n){if(!Tc(n))return n;var r,o=n[Xo],s=Wd(n);if(o){if(!o.P&&(o.i<4||!Ti("ES5").K(o)))return o.t;o.I=!0,r=HR(n,s),o.I=!1}else r=HR(n,s);return rh(r,function(i,l){o&&dfe(o.t,i)===l||O4(r,i,t(l))}),s===3?new Set(r):r}(e)}function HR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Dk(e)}var UR,oh,Fk=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",gfe=typeof Map!="undefined",vfe=typeof Set!="undefined",WR=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",D4=Fk?Symbol.for("immer-nothing"):((UR={})["immer-nothing"]=!0,UR),GR=Fk?Symbol.for("immer-draftable"):"__$immer_draftable",Xo=Fk?Symbol.for("immer-state"):"__$immer_state",yfe=""+Object.prototype.constructor,Nk=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bfe=Object.getOwnPropertyDescriptors||function(e){var t={};return Nk(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},wfe={},$x={get:function(e,t){if(t===Xo)return e;var n=Za(e);if(!Ex(n,t))return function(o,s,i){var l,a=jR(s,i);return a?"value"in a?a.value:(l=a.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Tc(r)?r:r===Ow(e.t,t)?(Dw(e),e.o[t]=_x(e.A.h,r,e)):r},has:function(e,t){return t in Za(e)},ownKeys:function(e){return Reflect.ownKeys(Za(e))},set:function(e,t,n){var r=jR(Za(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Ow(Za(e),t),s=o==null?void 0:o[Xo];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(ffe(n,o)&&(n!==void 0||Ex(e.t,t)))return!0;Dw(e),Tx(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 Ow(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Dw(e),Tx(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Za(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ei(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ei(12)}},Jf={};rh($x,function(e,t){Jf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Jf.deleteProperty=function(e,t){return Jf.set.call(this,e,t,void 0)},Jf.set=function(e,t,n){return $x.set.call(this,e[0],t,n,e[0])};var Cfe=function(){function e(n){var r=this;this.O=WR,this.D=!0,this.produce=function(o,s,i){if(typeof o=="function"&&typeof s!="function"){var l=s;s=o;var a=r;return function(m){var C=this;m===void 0&&(m=l);for(var b=arguments.length,w=Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];return a.produce(m,function(k){var M;return(M=s).call.apply(M,[C,k].concat(w))})}}var u;if(typeof s!="function"&&ei(6),i!==void 0&&typeof i!="function"&&ei(7),Tc(o)){var f=zR(r),p=_x(r,o,void 0),g=!0;try{u=s(p),g=!1}finally{g?jv(f):Mx(f)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(m){return $w(f,i),Rw(m,f)},function(m){throw jv(f),m}):($w(f,i),Rw(u,f))}if(!o||typeof o!="object"){if((u=s(o))===void 0&&(u=o),u===D4&&(u=void 0),r.D&&Ak(u,!0),i){var v=[],y=[];Ti("Patches").M(o,u,v,y),i(v,y)}return u}ei(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(u){for(var f=arguments.length,p=Array(f>1?f-1:0),g=1;g<f;g++)p[g-1]=arguments[g];return r.produceWithPatches(u,function(v){return o.apply(void 0,[v].concat(p))})};var i,l,a=r.produce(o,s,function(u,f){i=u,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(u){return[u,i,l]}):[a,i,l]},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){Tc(n)||ei(8),Sd(n)&&(n=mfe(n));var r=zR(this),o=_x(this,n,void 0);return o[Xo].C=!0,Mx(r),o},t.finishDraft=function(n,r){var o=n&&n[Xo],s=o.A;return $w(s,r),Rw(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!WR&&ei(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var s=r[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(r=r.slice(o+1));var i=Ti("Patches").$;return Sd(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),Zo=new Cfe,xfe=Zo.produce;Zo.produceWithPatches.bind(Zo);Zo.setAutoFreeze.bind(Zo);Zo.setUseProxies.bind(Zo);Zo.applyPatches.bind(Zo);Zo.createDraft.bind(Zo);Zo.finishDraft.bind(Zo);const Sfe=xfe;_ue({onResponse(e,t){return rt(this,null,function*(){if(e.status===Th)throw ln.loginRequired=(t==null?void 0:t.possible)!==!1||_b,new e4(e.status,"Unauthorized")})}});const Pfe={timeout:"Operation timeout"};function Yn(...e){const t=t4(...e);return ht(Se({},t),{element:c.useMemo(()=>e[0]?t.error?c.createElement(Pr,{severity:"error"},pk(String(t.error),Pfe),c.createElement(mn,{icon:Tb,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?P4():null:null,Object.values(t))})}function xa(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=wo([]),[l,a]=wo(void 0),[u,f]=wo(void 0),[p,g]=wo(!0),[v,y]=wo(!1),[m,C]=wo(!0),[b,w]=c.useState(0),S=c.useRef(0),[k,M]=c.useState();return c.useEffect(()=>M(o?s:void 0),[o]),c.useEffect(()=>{if(!e)return;const L=[],O=ot.debounce(()=>{const j=L.splice(0,1/0);j.length&&(r&&j.reverse(),i(_=>r?[...j,..._]:[..._,...j]))},1e3,{maxWait:1e3});f(void 0),y(!0),g(!0),C(!0),i([]);const R=n4(e,t,(j,_)=>{switch(j){case"connected":return g(!1),setTimeout(()=>O.flush());case"error":return f("Connection error"),setTimeout(I,1e3),V();case"closed":return V();case"msg":const A=[],F=[];Ob(_).forEach(z=>{var H,K,Y;if(!Array.isArray(z))return console.debug("illegal list packet",z);const[D,N]=z;if(D===du.ready){O.flush(),C(!1);return}if(D===du.error){N===Th?ln.loginRequired=((H=z[2])==null?void 0:H.possible)!==!1||_b:f(T4(N));return}if(D===du.props)return a(N);if(D===du.add){const Z=(K=n==null?void 0:n(N))!=null?K:N;(Y=Z.id)!=null||(Z.id=S.current=Math.max(S.current,Date.now())+.001),L.push(Z),O();return}if(D===du.remove){const Z=ot.matches(N);ot.isEmpty(ot.remove(L,Z))&&A.push(Z);return}if(D===du.update){const Z=z[2],Q=ot.find(L,N);if(Q)return Object.assign(Q,Z);F.push([N,Z]);return}console.debug("unknown list api",D)}),i(z=>{let D=z,N;if(A.length&&(N=z.filter(H=>!A.some(K=>K(H))),N.length<z.length&&(D=N)),F.length)for(const[H,K]of F){const Y=ot.findIndex(D,H);Y<0||(D===z&&(D=N!=null?N:z.slice()),D[Y]=Se(Se({},D[Y]),K))}return D}),(R==null?void 0:R.readyState)===(R==null?void 0:R.CLOSED)&&V()}});return()=>R.close();function V(){C(!1),y(!1),O.flush()}},[b,e,JSON.stringify(t)]),{list:k!=null?k:s,props:l,loading:v,error:u,initializing:m,connecting:p,setList:i,updateList:E,updateEntry:T,reload:I};function I(){w(L=>L+1)}function E(L){i(Sfe(s,O=>{L(O)}))}function T(L,O){E(R=>{const V=ot.find(R,L);V&&Object.assign(V,O)})}}var Bk={},kfe=et;Object.defineProperty(Bk,"__esModule",{value:!0});var A4=Bk.default=void 0,Ife=kfe(tt()),Efe=Ze(),Mfe=(0,Ife.default)((0,Efe.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"}),"LinkOff");A4=Bk.default=Mfe;var zk={},Tfe=et;Object.defineProperty(zk,"__esModule",{value:!0});var qb=zk.default=void 0,_fe=Tfe(tt()),$fe=Ze(),Rfe=(0,_fe.default)((0,$fe.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");qb=zk.default=Rfe;var Vk={},Ofe=et;Object.defineProperty(Vk,"__esModule",{value:!0});var L4=Vk.default=void 0,Dfe=Ofe(tt()),Afe=Ze(),Lfe=(0,Dfe.default)((0,Afe.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");L4=Vk.default=Lfe;var jk={},Ffe=et;Object.defineProperty(jk,"__esModule",{value:!0});var F4=jk.default=void 0,Nfe=Ffe(tt()),Bfe=Ze(),zfe=(0,Nfe.default)((0,Bfe.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");F4=jk.default=zfe;var Hk={},Vfe=et;Object.defineProperty(Hk,"__esModule",{value:!0});var Dh=Hk.default=void 0,jfe=Vfe(tt()),Hfe=Ze(),Ufe=(0,jfe.default)((0,Hfe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Dh=Hk.default=Ufe;var Uk={},Wfe=et;Object.defineProperty(Uk,"__esModule",{value:!0});var Wk=Uk.default=void 0,Gfe=Wfe(tt()),Kfe=Ze(),qfe=(0,Gfe.default)((0,Kfe.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");Wk=Uk.default=qfe;const N4=c.createContext(void 0);function Vt(){const e=c.useContext(N4);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 Yfe=()=>c.useRef({}),B4=c.createContext(void 0),ct=()=>{const e=c.useContext(B4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},z4=c.createContext(void 0);function Oa(){const e=c.useContext(z4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private 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(`
|
|
329
|
+
`));return e}const KR={};function Gk(e,t){const n=c.useRef(KR);return n.current===KR&&(n.current=e(t)),n}const Qfe=[];function V4(e){c.useEffect(e,Qfe)}const ji=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
330
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Xfe=Object.is;function j4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Xfe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ji(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Zfe(e){return e.acceptsApiRef}function qR(e,t){return Zfe(t)?t(e):t(e.current.state)}const Jfe=Object.is,Kk=j4,epe=()=>({state:null,equals:null,selector:null}),nt=(e,t,n=Jfe)=>{const r=Gk(epe),o=r.current.selector!==null,[s,i]=c.useState(o?null:qR(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,V4(()=>e.current.store.subscribe(()=>{const l=qR(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,i(l))})),s};function jt(e){return Ke("MuiDataGrid",e)}const se=We("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","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","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","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","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var Wv="NOT_FOUND";function tpe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Wv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function npe(e,t){var n=[];function r(l){var a=n.findIndex(function(f){return t(l,f.key)});if(a>-1){var u=n[a];return a>0&&(n.splice(a,1),n.unshift(u)),u.value}return Wv}function o(l,a){r(l)===Wv&&(n.unshift({key:l,value:a}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var rpe=function(t,n){return t===n};function ope(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function Yb(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?rpe:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=ope(o),u=i===1?tpe(a):npe(i,a);function f(){var p=u.get(arguments);if(p===Wv){if(p=e.apply(null,arguments),l){var g=u.getEntries(),v=g.find(function(y){return l(y.value,p)});v&&(p=v.value)}u.put(arguments,p)}return p}return f.clearCache=function(){return u.clear()},f}function spe(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 ipe(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 i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];var u=0,f,p={memoizeOptions:void 0},g=l.pop();if(typeof g=="object"&&(p=g,g=l.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var v=p,y=v.memoizeOptions,m=y===void 0?n:y,C=Array.isArray(m)?m:[m],b=spe(l),w=e.apply(void 0,[function(){return u++,g.apply(null,arguments)}].concat(C)),S=e(function(){for(var M=[],I=b.length,E=0;E<I;E++)M.push(b[E].apply(null,arguments));return f=w.apply(null,M),f});return Object.assign(S,{resultFunc:g,memoizedResultFunc:w,dependencies:b,lastResult:function(){return f},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),S};return o}var lpe=ipe(Yb);const ape={cache:new WeakMap};ji(["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)`."]);function xu(e){return"current"in e&&"instanceId"in e.current}const Su={id:"default"},Tt=(e,t,n,r,o,s,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&s)l=(a,u)=>{const f=xu(a),p=u!=null?u:f?a.current.instanceId:Su,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p),C=r(g,p),b=o(g,p);return s(v,y,m,C,b)};else if(e&&t&&n&&r&&o)l=(a,u)=>{const f=xu(a),p=u!=null?u:f?a.current.instanceId:Su,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p),C=r(g,p);return o(v,y,m,C)};else if(e&&t&&n&&r)l=(a,u)=>{const f=xu(a),p=u!=null?u:f?a.current.instanceId:Su,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p);return r(v,y,m)};else if(e&&t&&n)l=(a,u)=>{const f=xu(a),p=u!=null?u:f?a.current.instanceId:Su,g=f?a.current.state:a,v=e(g,p),y=t(g,p);return n(v,y)};else if(e&&t)l=(a,u)=>{const f=xu(a),p=u!=null?u:f?a.current.instanceId:Su,g=f?a.current.state:a,v=e(g,p);return t(v)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},Tn=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=xu(s),a=l?s.current.instanceId:i!=null?i:Su,u=l?s.current.state:s,{cache:f}=ape;if(f.get(a)&&(r=f.get(a))!=null&&r.get(e)){var p;return(p=f.get(a))==null?void 0:p.get(e)(u,a)}const g=lpe(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,g),g(u,a)};return t.acceptsApiRef=!0,t},dc=e=>e.columns,ul=Tt(dc,e=>e.orderedFields),Gd=Tt(dc,e=>e.lookup),_i=Tn(ul,Gd,(e,t)=>e.map(n=>t[n])),ni=Tt(dc,e=>e.columnVisibilityModel),Dr=Tn(_i,ni,(e,t)=>e.filter(n=>t[n.field]!==!1)),Qb=Tn(Dr,e=>e.map(t=>t.field)),Pd=Tn(Dr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),qk=Tt(Dr,Pd,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),H4=Tn(_i,e=>e.filter(t=>t.filterable)),cpe=Tn(_i,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Xb=e=>e.columnGrouping,upe=Tn(Xb,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),U4=Tn(Xb,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),dpe=Tn(Xb,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Ah=Tt(Xb,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),ci=e=>e.rows,Zb=Tt(ci,e=>e.totalRowCount),fpe=Tt(ci,e=>e.loading),ppe=Tt(ci,e=>e.totalTopLevelRowCount),ta=Tt(ci,e=>e.dataRowIdToModelLookup),Gv=Tt(ci,e=>e.dataRowIdToIdLookup),Zs=Tt(ci,e=>e.tree),hpe=Tt(ci,e=>e.groupingName),YR=Tt(ci,e=>e.treeDepths),Jb=Tn(ci,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),ag=Tt(ci,e=>e.dataRowIds),mpe=Tt(ci,e=>e==null?void 0:e.additionalRowGroups),Kd=Tn(mpe,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}})}}),gpe=Tt(Kd,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)}),W4=()=>{var e;const t=Oa(),n=ct(),r=nt(t,Dr),o=nt(t,Zb),s=nt(t,Ah),i=nt(t,gpe);let l="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(l="treegrid"),{role:l,"aria-colcount":r.length,"aria-rowcount":s+1+i+o,"aria-multiselectable":!n.disableMultipleRowSelection}},vpe=e=>{const{classes:t}=e;return _e({root:["main"]},jt,t)},ype=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),bpe=c.forwardRef((e,t)=>{var n;const r=ct(),o=vpe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?W4:null,i=typeof s=="function"?s():null;return $.jsx(ype,x({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),G4=e=>e.sorting,Yk=Tt(G4,e=>e.sortedRows),Qk=Tn(Yk,ta,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),ys=Tt(G4,e=>e.sortModel),wpe=Tn(ys,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Xk=e=>e.filter,Rr=Tt(Xk,e=>e.filterModel);Tt(Rr,e=>e.quickFilterValues);const Cpe=e=>e.visibleRowsLookup,K4=Tt(Xk,e=>e.filteredRowsLookup);Tt(Xk,e=>e.filteredDescendantCountLookup);const Da=Tn(Cpe,Qk,(e,t)=>t.filter(n=>e[n.id]!==!1)),Sp=Tn(Da,e=>e.map(t=>t.id)),xpe=Tn(K4,Qk,(e,t)=>t.filter(n=>e[n.id]!==!1)),Spe=Tn(xpe,e=>e.map(t=>t.id)),q4=Tn(Da,Zs,Jb,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),Y4=Tt(Da,e=>e.length),e0=Tt(q4,e=>e.length),Ppe=Tn(Rr,Gd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,s;if(!r.field)return!1;const i=t[r.field];if(!(i!=null&&i.filterOperators)||(i==null||(o=i.filterOperators)==null?void 0:o.length)===0)return!1;const l=i.filterOperators.find(a=>a.value===r.operator);return l?!l.InputComponent||r.value!=null&&((s=r.value)==null?void 0:s.toString())!=="":!1})}),kpe=Tn(Ppe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),t0=e=>e.focus,Bo=Tt(t0,e=>e.cell),Ipe=Tt(t0,e=>e.columnHeader);Tt(t0,e=>e.columnHeaderFilter);const Kv=Tt(t0,e=>e.columnGroupHeader),n0=e=>e.tabIndex,qv=Tt(n0,e=>e.cell),Q4=Tt(n0,e=>e.columnHeader);Tt(n0,e=>e.columnHeaderFilter);const Epe=Tt(n0,e=>e.columnGroupHeader),Zk=e=>e.density,Mpe=Tt(Zk,e=>e.value),qd=Tt(Zk,e=>e.factor),Rx=e=>e.columnMenu;function Tpe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Oa(),s=ct(),i=c.useRef(null),l=nt(o,Dr),a=nt(o,kpe),u=nt(o,wpe),f=nt(o,Pd),p=nt(o,Q4),g=nt(o,qv),v=nt(o,Epe),y=nt(o,Ipe),m=nt(o,Kv),C=nt(o,qd),b=nt(o,Ah),w=nt(o,Rx),S=nt(o,ni),k=nt(o,dpe),M=!(v===null&&p===null&&g===null);Nt(()=>{o.current.computeSizeAndPublishResizeEvent();const O=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let R;const V=new ResizeObserver(()=>{R=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return O&&V.observe(O),()=>{R&&window.cancelAnimationFrame(R),O&&V.unobserve(O)}},[o]);const I=c.useRef(null),E=c.useRef(null),T=c.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:E,columnHeadersElementRef:I,virtualScrollerRef:T,mainElementRef:i});const L=!!o.current.getRootDimensions();return $.jsxs(bpe,{ref:i,children:[$.jsx(s.slots.columnHeaders,x({ref:E,innerRef:I,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:u,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:v,columnHeaderFocus:y,columnGroupHeaderFocus:m,densityFactor:C,headerGroupingMaxDepth:b,columnMenuState:w,columnVisibility:S,columnGroupsHeaderStructure:k,hasOtherElementInTabSequence:M},n)),L&&$.jsx(t,{ref:T}),r]})}function _pe(){var e;const t=ct();return t.hideFooter?null:$.jsx(t.slots.footer,x({},(e=t.slotProps)==null?void 0:e.footer))}const io="auto-generated-group-node-root",Zu=Symbol("mui.id_autogenerated"),$pe=()=>({type:"group",id:io,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Rpe(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(`
|
|
331
|
+
`))}const Yv=(e,t,n)=>{const r=t?t(e):e.id;return Rpe(r,e,n),r},Vg=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},i={};for(let l=0;l<e.length;l+=1){const a=e[l],u=Yv(a,t);s[u]=a,i[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:s}},X4=({tree:e,rowCountProp:t=0})=>{const n=e[io];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Z4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const s=e.current.caches.rows,{tree:i,treeDepths:l,dataRowIds:a,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:i,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},x({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:X4({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n})},sh=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Jk=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s<r.children.length;s+=1){const i=r.children[s];(!n||!sh(e[i]))&&o.push(i),o.push(...Jk(e,i,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},Ope=({previousCache:e,getRowId:t,updates:n})=>{var r,o,s;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const i=new Map;n.forEach(g=>{const v=Yv(g,t,"A row was provided without id when calling updateRows():");i.has(v)?i.set(v,x({},i.get(v),g)):i.set(v,g)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(s=e.updates.actions.remove)!=null?s:[]]},idToActionLookup:x({},e.updates.idToActionLookup)},a=x({},e.dataRowIdToModelLookup),u=x({},e.dataRowIdToIdLookup),f={insert:{},modify:{},remove:{}};i.forEach((g,v)=>{const y=l.idToActionLookup[v];if(g._action==="delete"){if(y==="remove"||!a[v])return;y!=null&&(f[y][v]=!0),l.actions.remove.push(v),delete a[v],delete u[v];return}const m=a[v];if(m){y==="remove"?(f.remove[v]=!0,l.actions.modify.push(v)):y==null&&l.actions.modify.push(v),a[v]=x({},m,g);return}y==="remove"?(f.remove[v]=!0,l.actions.insert.push(v)):y==null&&l.actions.insert.push(v),a[v]=g,u[v]=v});const p=Object.keys(f);for(let g=0;g<p.length;g+=1){const v=p[g],y=f[v];Object.keys(y).length>0&&(l.actions[v]=l.actions[v].filter(m=>!y[m]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function J4(e){var t,n;const r=Kd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0,s=(r==null||(n=r.bottom)==null?void 0:n.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0;return{top:o,bottom:s}}function e5(e,t){const n=qd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Dpe=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Ape=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Lpe=e=>{const{classes:t}=e;return _e({root:["overlayWrapper"],inner:["overlayWrapperInner"]},jt,t)};function Fpe(e){var t,n;const r=Vt(),o=ct(),[s,i]=c.useState(()=>{var f,p;return(f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null}),l=c.useCallback(()=>{var f,p;i((f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null)},[r]);Nt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let a=(t=s==null?void 0:s.height)!=null?t:0;o.autoHeight&&a===0&&(a=e5(r,o.rowHeight));const u=Lpe(x({},e,{classes:o.classes}));return s?$.jsx(Dpe,{className:ye(u.root),overlayType:e.overlayType,children:$.jsx(Ape,x({className:ye(u.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function Npe(){const e=Vt(),t=ct(),n=nt(e,Zb),r=nt(e,Y4),o=nt(e,fpe),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var u;l=$.jsx(t.slots.noRowsOverlay,x({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=$.jsx(t.slots.noResultsOverlay,x({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=$.jsx(t.slots.loadingOverlay,x({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:$.jsx(Fpe,{overlayType:a,children:l})}function r0(e){return c.memo(e,j4)}let Aw;function Bpe(){return Aw===void 0&&document.createElement("div").focus({get preventScroll(){return Aw=!0,!1}}),Aw}var Fi=function(e){return e.Cell="cell",e.Row="row",e}(Fi||{}),un=function(e){return e.Edit="edit",e.View="view",e}(un||{}),Cn=function(e){return e.Edit="edit",e.View="view",e}(Cn||{}),xo=function(e){return e.And="and",e.Or="or",e}(xo||{}),Bl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Bl||{}),Ys=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ys||{}),zl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(zl||{}),Ji=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ji||{});function t5(e){return e.field!==void 0}function zpe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Vpe(e,t){return e.closest(`.${t}`)}function eI(e){return e.replace(/["\\]/g,"\\$&")}function jpe(e,t){return e.querySelector(`[role="columnheader"][data-field="${eI(t)}"]`)}function n5(e){return`.${se.row}[data-id="${eI(String(e))}"]`}function Hpe(e,t){return e.querySelector(n5(t))}function Upe(e,{id:t,field:n}){const r=n5(t),o=`.${se.cell}[data-field="${eI(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function At(e,t,n){const r=c.useRef(!0);c.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Fu extends Error{}function Wpe(e,t){const{getRowId:n}=t,r=c.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=c.useCallback(y=>{const m=e.current.getRow(y);if(!m)throw new Fu(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:m}},[e]),s=c.useCallback((y,m)=>{const C=e.current.getRow(y),b=e.current.getRowNode(y);if(!C||!b)throw new Fu(`No row with id #${y} found`);const w=Bo(e),S=qv(e);return{id:y,field:m,row:C,rowNode:b,value:C[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(y,m),api:e.current,hasFocus:w!==null&&w.field===m&&w.id===y,tabIndex:S&&S.field===m&&S.id===y?0:-1}},[e]),i=c.useCallback((y,m)=>{const C=e.current.getColumn(m),b=e.current.getCellValue(y,m),w=e.current.getRow(y),S=e.current.getRowNode(y);if(!w||!S)throw new Fu(`No row with id #${y} found`);const k=Bo(e),M=qv(e),I={id:y,field:m,row:w,rowNode:S,colDef:C,cellMode:e.current.getCellMode(y,m),hasFocus:k!==null&&k.field===m&&k.id===y,tabIndex:M&&M.field===m&&M.id===y?0:-1,value:b,formattedValue:b,isEditable:!1};return C&&C.valueFormatter&&(I.formattedValue=C.valueFormatter({id:y,field:I.field,value:I.value,api:e.current})),I.isEditable=C&&e.current.isCellEditable(I),I},[e]),l=c.useCallback((y,m)=>{const C=e.current.getColumn(m);if(!C||!C.valueGetter){const b=e.current.getRow(y);if(!b)throw new Fu(`No row with id #${y} found`);return b[m]}return C.valueGetter(s(y,m))},[e,s]),a=c.useCallback((y,m)=>{var C;const b=Zu in y?y[Zu]:(C=n==null?void 0:n(y))!=null?C:y.id,w=m.field;return!m||!m.valueGetter?y[w]:m.valueGetter(s(b,w))},[s,n]),u=c.useCallback((y,m)=>{var C;const b=a(y,m);if(!m||!m.valueFormatter)return b;const w=(C=n?n(y):y.id)!=null?C:y[Zu],S=m.field;return m.valueFormatter({id:w,field:S,value:b,api:e.current})},[e,n,a]),f=c.useCallback(y=>e.current.rootElementRef.current?jpe(e.current.rootElementRef.current,y):null,[e]),p=c.useCallback(y=>e.current.rootElementRef.current?Hpe(e.current.rootElementRef.current,y):null,[e]),g=c.useCallback((y,m)=>e.current.rootElementRef.current?Upe(e.current.rootElementRef.current,{id:y,field:m}):null,[e]);At(e,{getCellValue:l,getCellParams:i,getCellElement:g,getRowValue:a,getRowFormattedValue:u,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const Gpe=["changeReason","unstable_updateValueOnRender"],Kpe=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],qpe=["changeReason","unstable_updateValueOnRender"],Qv={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:un.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Ype=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:s,classes:i}=e,l={root:["cell",`cell--text${xe(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",s&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return _e(l,jt,i)},Qpe=c.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Vt(),i=ct(),l=n.field,a=nt(s,()=>{try{const L=s.current.getCellParams(r,l);return L.api=s.current,L}catch(T){if(T instanceof Fu)return Qv;throw T}},Kk),u=nt(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===Qv)return null;const{cellMode:f,hasFocus:p,isEditable:g,value:v,formattedValue:y}=a,m=n.type==="actions",C=(f==="view"||!g)&&!m?a.tabIndex:-1,{classes:b,getCellClassName:w}=i,S=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),w&&S.push(w(a));let k;if(o==null&&n.renderCell&&(k=n.renderCell(a),S.push(se["cell--withRenderer"]),S.push(b==null?void 0:b["cell--withRenderer"])),o!=null&&n.renderEditCell){const T=s.current.getRowWithUpdatedValues(r,n.field),L=oe(o,Gpe),O=x({},a,{row:T},L);k=n.renderEditCell(O),S.push(se["cell--editing"]),S.push(b==null?void 0:b["cell--editing"])}const{slots:M}=i,I=M.cell,E=x({},e,{ref:t,field:l,formattedValue:y,hasFocus:p,isEditable:g,isSelected:u,value:v,cellMode:f,children:k,tabIndex:C,className:ye(S)});return c.createElement(I,E)}),Xpe=r0(Qpe),Zpe=c.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:u,colIndex:f,height:p,width:g,className:v,showRightBorder:y,colSpan:m,disableDragEvents:C,isNotVisible:b,onClick:w,onDoubleClick:S,onMouseDown:k,onMouseUp:M,onMouseOver:I,onKeyDown:E,onKeyUp:T,onDragEnter:L,onDragOver:O}=e,R=oe(e,Kpe),V=Vt(),j=ct(),_=i.field,A=nt(V,()=>{try{const ge=V.current.getCellParams(l,_);return ge.api=V.current,ge}catch(ie){if(ie instanceof Fu)return Qv;throw ie}},Kk),F=nt(V,()=>V.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:_})),{cellMode:z,hasFocus:D,isEditable:N,value:H,formattedValue:K}=A,Y=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,V.current.getRowParams(l)).some(ie=>!ie.props.disabled)),Z=(z==="view"||!N)&&!Y?A.tabIndex:-1,{classes:Q,getCellClassName:X}=j,J=V.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:_});i.cellClassName&&J.push(typeof i.cellClassName=="function"?i.cellClassName(A):i.cellClassName),X&&J.push(X(A));const ne=K==null?H:K,fe=c.useRef(null),we=It(t,fe),Ce=c.useRef(null),ae=(o=j.unstable_cellSelection)!=null?o:!1,be={align:u,showRightBorder:y,isEditable:N,classes:j.classes,isSelected:F,isSelectionMode:ae},de=Ype(be),ke=c.useCallback(ie=>ge=>{const Te=V.current.getCellParams(l,_||"");V.current.publishEvent(ie,Te,ge),M&&M(ge)},[V,_,M,l]),Ie=c.useCallback(ie=>ge=>{const Te=V.current.getCellParams(l,_||"");V.current.publishEvent(ie,Te,ge),k&&k(ge)},[V,_,k,l]),le=c.useCallback((ie,ge)=>Te=>{if(!V.current.getRow(l))return;const Ne=V.current.getCellParams(l,_||"");V.current.publishEvent(ie,Ne,Te),ge&&ge(Te)},[V,_,l]),Ee=c.useMemo(()=>b?{padding:0,opacity:0,width:0,border:0}:{minWidth:g,maxWidth:g,minHeight:p,maxHeight:p==="auto"?"none":p},[g,p,b]);if(c.useEffect(()=>{if(!D||z===un.Edit)return;const ie=fn(V.current.rootElementRef.current);if(fe.current&&!fe.current.contains(ie.activeElement)){const ge=fe.current.querySelector('[tabindex="0"]'),Te=Ce.current||ge||fe.current;if(Bpe())Te.focus({preventScroll:!0});else{const Ne=V.current.getScrollPosition();Te.focus(),V.current.scroll(Ne)}}},[D,z,V]),A===Qv)return null;let me=R.onFocus,Me;if(a==null&&i.renderCell&&(Me=i.renderCell(A),J.push(se["cell--withRenderer"]),J.push(Q==null?void 0:Q["cell--withRenderer"])),a!=null&&i.renderEditCell){const ie=V.current.getRowWithUpdatedValues(l,i.field),ge=oe(a,qpe),Te=x({},A,{row:ie},ge);Me=i.renderEditCell(Te),J.push(se["cell--editing"]),J.push(Q==null?void 0:Q["cell--editing"])}if(Me===void 0){const ie=ne==null?void 0:ne.toString();Me=$.jsx("div",{className:de.content,title:ie,role:"presentation",children:ie})}c.isValidElement(Me)&&Y&&(Me=c.cloneElement(Me,{focusElementRef:Ce}));const ue=C?null:{onDragEnter:le("cellDragEnter",L),onDragOver:le("cellDragOver",O)},ce=(s=j.experimentalFeatures)==null?void 0:s.ariaV7;return $.jsx("div",x({ref:we,className:ye(v,J,de.root),role:ce?"gridcell":"cell","data-field":_,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":m,style:Ee,tabIndex:Z,onClick:le("cellClick",w),onDoubleClick:le("cellDoubleClick",S),onMouseOver:le("cellMouseOver",I),onMouseDown:Ie("cellMouseDown"),onMouseUp:ke("cellMouseUp"),onKeyDown:le("cellKeyDown",E),onKeyUp:le("cellKeyUp",T)},ue,R,{onFocus:me,children:Me}))}),Ox=r0(Zpe),Jpe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],ehe=e=>{const{classes:t}=e;return _e({root:["booleanCell"]},jt,t)};function the(e){const{value:t}=e,n=oe(e,Jpe),r=Vt(),o=ct(),s={classes:o.classes},i=ehe(s),l=c.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return $.jsx(l,x({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const nhe=c.memo(the),rhe=e=>sh(e.rowNode)?"":$.jsx(nhe,x({},e)),ohe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],she=e=>{const{classes:t}=e;return _e({root:["editBooleanCell"]},jt,t)};function ihe(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=oe(e,ohe),u=Vt(),f=c.useRef(null),p=Kt(),[g,v]=c.useState(r),y=ct(),m={classes:y.classes},C=she(m),b=c.useCallback(w=>rt(this,null,function*(){const S=w.target.checked;l&&(yield l(w,S)),v(S),yield u.current.setEditCellValue({id:n,field:o,value:S},w)}),[u,o,n,l]);return c.useEffect(()=>{v(r)},[r]),Nt(()=>{i&&f.current.focus()},[i]),$.jsx("label",x({htmlFor:p,className:ye(C.root,s)},a,{children:$.jsx(y.slots.baseCheckbox,x({id:p,inputRef:f,checked:!!g,onChange:b,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const lhe=e=>$.jsx(ihe,x({},e)),ahe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],che=te(Bd)({fontSize:"inherit"}),uhe=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},jt,t)};function dhe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=oe(e,ahe),u=o.type==="dateTime",f=Vt(),p=c.useRef(),g=c.useMemo(()=>{let E;n==null?E=null:n instanceof Date?E=n:E=new Date((n!=null?n:"").toString());let T;return E==null||Number.isNaN(E.getTime())?T="":T=new Date(E.getTime()-E.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:E,formatted:T}},[n,u]),[v,y]=c.useState(g),C={classes:ct().classes},b=uhe(C),w=c.useRef(!1),S=c.useCallback(E=>{if(E==="")return null;const[T,L]=E.split("T"),[O,R,V]=T.split("-"),j=new Date;if(j.setFullYear(Number(O),Number(R)-1,Number(V)),j.setHours(0,0,0,0),L){const[_,A]=L.split(":");j.setHours(Number(_),Number(A),0,0)}return j},[]),k=c.useCallback(E=>rt(this,null,function*(){const T=E.target.value,L=S(T);l&&(yield l(E,L)),y({parsed:L,formatted:T}),f.current.setEditCellValue({id:t,field:r,value:L},E)}),[f,r,t,l,S]);c.useEffect(()=>{y(E=>{var T,L;return g.parsed!==E.parsed&&((T=g.parsed)==null?void 0:T.getTime())!==((L=E.parsed)==null?void 0:L.getTime())?g:E})},[g]),Nt(()=>{s&&p.current.focus()},[s]);const M=f.current.unstable_getEditCellMeta(t,r),I=E=>{if(p.current=E,M!=null&&M.unstable_updateValueOnRender&&!w.current){const T=p.current.value,L=S(T);y({parsed:L,formatted:T}),f.current.setEditCellValue({id:t,field:r,value:L}),w.current=!0}};return $.jsx(che,x({inputRef:I,fullWidth:!0,className:b.root,type:u?"datetime-local":"date",inputProps:x({max:u?"9999-12-31T23:59":"9999-12-31"},i),value:v.formatted,onChange:k},a))}const r5=e=>$.jsx(dhe,x({},e)),fhe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],phe=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},jt,t)},hhe=te(Bd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>x({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),mhe=c.forwardRef((e,t)=>{const n=ct(),{id:r,value:o,field:s,colDef:i,hasFocus:l,debounceMs:a=200,isProcessingProps:u,onValueChange:f}=e,p=oe(e,fhe),g=Vt(),v=c.useRef(),[y,m]=c.useState(o),C=phe(n),b=c.useCallback(S=>rt(void 0,null,function*(){const k=S.target.value;f&&(yield f(S,k));const M=g.current.getColumn(s);let I=k;M.valueParser&&(I=M.valueParser(k,g.current.getCellParams(r,s))),m(I),g.current.setEditCellValue({id:r,field:s,value:I,debounceMs:a,unstable_skipValueParser:!0},S)}),[g,a,s,r,f]),w=g.current.unstable_getEditCellMeta(r,s);return c.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&m(o)},[w,o]),Nt(()=>{l&&v.current.focus()},[l]),$.jsx(hhe,x({ref:t,inputRef:v,className:C.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:y!=null?y:"",onChange:b,endAdornment:u?$.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),ghe=e=>$.jsx(mhe,x({},e)),Xv=e=>e==="Escape",vhe=e=>e==="Enter",o5=e=>e==="Tab",s5=e=>e===" ",yhe=e=>e.indexOf("Arrow")===0,bhe=e=>e==="Home"||e==="End",whe=e=>e.indexOf("Page")===0;function i5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Zv=e=>bhe(e)||yhe(e)||whe(e)||s5(e),Che=e=>!!e.key,xhe=e=>o5(e)||Xv(e);function fc(e){return(e==null?void 0:e.type)==="singleSelect"}function Dx(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const She=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Phe=["MenuProps"];function khe(e){return!!e.key}function Ihe(e){var t,n,r;const o=ct(),{id:s,value:i,field:l,row:a,colDef:u,hasFocus:f,error:p,onValueChange:g,initialOpen:v=o.editMode===Fi.Cell,getOptionLabel:y,getOptionValue:m}=e,C=oe(e,She),b=Vt(),w=c.useRef(),S=c.useRef(),[k,M]=c.useState(v),E=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,T=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:L}=T,O=oe(T,Phe);if(Nt(()=>{if(f){var z;(z=S.current)==null||z.focus()}},[f]),!fc(u))return null;let R;if(typeof(u==null?void 0:u.valueOptions)=="function"?R=u==null?void 0:u.valueOptions({id:s,row:a,field:l}):R=u==null?void 0:u.valueOptions,!R)return null;const V=m||u.getOptionValue,j=y||u.getOptionLabel,_=z=>rt(this,null,function*(){if(!fc(u)||!R)return;M(!1);const D=z.target,N=Dx(D.value,R,V);g&&(yield g(z,N)),yield b.current.setEditCellValue({id:s,field:l,value:N},z)}),A=(z,D)=>{if(o.editMode===Fi.Row){M(!1);return}if(D==="backdropClick"||Xv(z.key)){const N=b.current.getCellParams(s,l);b.current.publishEvent("cellEditStop",x({},N,{reason:Xv(z.key)?Ys.escapeKeyDown:Ys.cellFocusOut}))}},F=z=>{khe(z)&&z.key==="Enter"||M(!0)};return!R||!u?null:$.jsx(o.slots.baseSelect,x({ref:w,inputRef:S,value:i,onChange:_,open:k,onOpen:F,MenuProps:x({onClose:A},L),error:p,native:E,fullWidth:!0},C,O,{children:R.map(z=>{var D;const N=V(z);return c.createElement(o.slots.baseSelectOption,x({},((D=o.slotProps)==null?void 0:D.baseSelectOption)||{},{native:E,key:N,value:N}),j(z))})}))}const Ehe=e=>$.jsx(Ihe,x({},e)),Mhe=["open","target","onClose","children","position","className","onExited"],The=e=>{const{classes:t}=e;return _e({root:["menu"]},jt,t)},_he=te($a,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${se.menuList}`]:{outline:0}})),$he={"bottom-start":"top left","bottom-end":"top right"};function l5(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,u=oe(e,Mhe),f=Vt(),p=ct(),g=The(p),v=c.useRef(null);Nt(()=>{if(n)v.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,b;(C=v.current)==null||(b=C.focus)==null||b.call(C),v.current=null}},[n]),c.useEffect(()=>{const C=n?"menuOpen":"menuClose";f.current.publishEvent(C,{target:r})},[f,n,r]);const y=C=>b=>{C&&C(),a&&a(b)},m=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return $.jsx(_he,x({as:p.slots.basePopper,className:ye(l,g.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},u,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:b})=>$.jsx(GF,{onClickAway:m,mouseEvent:"onMouseDown",children:$.jsx(eh,x({},C,{style:{transformOrigin:$he[b]},onExited:y(C==null?void 0:C.onExited),children:$.jsx(zs,{children:s})}))})}))}const Rhe=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Ohe=e=>typeof e.getActions=="function";function Dhe(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=oe(e,Rhe),[u,f]=c.useState(-1),[p,g]=c.useState(!1),v=Vt(),y=c.useRef(null),m=c.useRef(null),C=c.useRef(!1),b=c.useRef({}),w=yn(),S=Kt(),k=Kt(),M=ct();if(!Ohe(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const I=n.getActions(v.current.getRowParams(r)),E=I.filter(F=>!F.props.showInMenu),T=I.filter(F=>F.props.showInMenu),L=E.length+(T.length?1:0);c.useLayoutEffect(()=>{o||Object.entries(b.current).forEach(([F,z])=>{z==null||z.stop({},()=>{delete b.current[F]})})},[o]),c.useEffect(()=>{if(u<0||!y.current||u>=y.current.children.length)return;y.current.children[u].focus({preventScroll:!0})},[u]),c.useEffect(()=>{o||(f(-1),C.current=!1)},[o]),c.useImperativeHandle(l,()=>({focus(){if(!C.current){const F=I.findIndex(z=>!z.props.disabled);f(F)}}}),[I]),c.useEffect(()=>{u>=L&&f(L-1)},[u,L]);const O=()=>{g(!0),f(L-1),C.current=!0},R=()=>{g(!1)},V=F=>z=>{b.current[F]=z},j=(F,z)=>D=>{f(F),C.current=!0,z&&z(D)},_=F=>{if(L<=1)return;const z=(N,H)=>{var K;if(N<0||N>I.length)return N;const Y=w.direction==="rtl"?-1:1,Z=(H==="left"?-1:1)*Y;return(K=I[N+Z])!=null&&K.props.disabled?z(N+Z,H):N+Z};let D=u;F.key==="ArrowRight"?D=z(u,"right"):F.key==="ArrowLeft"&&(D=z(u,"left")),!(D<0||D>=L)&&D!==u&&(F.preventDefault(),F.stopPropagation(),f(D))},A=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&R()};return $.jsxs("div",x({role:"menu",ref:y,tabIndex:-1,className:se.actionsCell,onKeyDown:_},a,{children:[E.map((F,z)=>c.cloneElement(F,{key:z,touchRippleRef:V(z),onClick:j(z,F.props.onClick),tabIndex:u===z?s:-1})),T.length>0&&k&&$.jsx(M.slots.baseIconButton,x({ref:m,id:k,"aria-label":v.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?S:void 0,role:"menuitem",size:"small",onClick:O,touchRippleRef:V(k),tabIndex:u===E.length?s:-1},(t=M.slotProps)==null?void 0:t.baseIconButton,{children:$.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&$.jsx(l5,{open:p,target:m.current,position:i,onClose:R,onClick:R,children:$.jsx(Hd,{id:S,className:se.menuList,onKeyDown:A,"aria-labelledby":k,variant:"menu",autoFocusItem:!0,children:T.map((F,z)=>c.cloneElement(F,{key:z}))})})]}))}const Ahe=e=>$.jsx(Dhe,x({},e)),Lhe=["label","icon","showInMenu","onClick"],cg=c.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=oe(e,Lhe),l=ct(),a=f=>{s&&s(f)};if(!o){var u;return $.jsx(l.slots.baseIconButton,x({ref:t,size:"small",role:"menuitem","aria-label":n},i,{onClick:a},(u=l.slotProps)==null?void 0:u.baseIconButton,{children:c.cloneElement(r,{fontSize:"small"})}))}return $.jsxs(Sr,x({ref:t},i,{onClick:s,children:[r&&$.jsx(cl,{children:r}),n]}))}),Fhe=["field","align","width","contentWidth"],Nhe=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${xe(t)}`,"withBorderColor"]};return _e(r,jt,n)};function Bhe(e){const{align:t,width:n,contentWidth:r}=e,o=oe(e,Fhe),i={classes:ct().classes,align:t},l=Nhe(i);return $.jsx("div",x({className:l.root,style:{width:n}},o,{children:$.jsx(gle,{width:`${r}%`})}))}function zhe(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Pc(it(e.palette.divider,1),.88):Sc(it(e.palette.divider,1),.68)}const QR={[`.${se.columnSeparator}, .${se["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},XR={[`& .${se.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${se.menuIcon}`]:{width:"auto",visibility:"visible"}},Vhe=te("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${se.autoHeight}`]:t.autoHeight},{[`&.${se.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${se["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${se["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${se["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${se.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${se["root--disableUserSelection"]} .${se.cell}`]:t["root--disableUserSelection"]},{[`&.${se.autosizing}`]:t.autosizing},{[`& .${se.editBooleanCell}`]:t.editBooleanCell},{[`& .${se["cell--editing"]}`]:t["cell--editing"]},{[`& .${se["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${se["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${se["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${se["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${se.cell}`]:t.cell},{[`& .${se["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${se["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${se["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${se["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${se["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${se.cellContent}`]:t.cellContent},{[`& .${se.cellCheckbox}`]:t.cellCheckbox},{[`& .${se.cellSkeleton}`]:t.cellSkeleton},{[`& .${se.checkboxInput}`]:t.checkboxInput},{[`& .${se["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${se["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${se["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${se["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${se["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${se["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${se["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${se["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${se["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${se.columnHeader}`]:t.columnHeader},{[`& .${se.headerFilterRow}`]:t.headerFilterRow},{[`& .${se.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${se.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${se.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${se["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${se["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${se.columnSeparator}`]:t.columnSeparator},{[`& .${se.filterIcon}`]:t.filterIcon},{[`& .${se.iconSeparator}`]:t.iconSeparator},{[`& .${se.menuIcon}`]:t.menuIcon},{[`& .${se.menuIconButton}`]:t.menuIconButton},{[`& .${se.menuOpen}`]:t.menuOpen},{[`& .${se.menuList}`]:t.menuList},{[`& .${se["row--editable"]}`]:t["row--editable"]},{[`& .${se["row--editing"]}`]:t["row--editing"]},{[`& .${se["row--dragging"]}`]:t["row--dragging"]},{[`& .${se.row}`]:t.row},{[`& .${se.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${se.rowReorderCell}`]:t.rowReorderCell},{[`& .${se["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${se.sortIcon}`]:t.sortIcon},{[`& .${se.withBorderColor}`]:t.withBorderColor},{[`& .${se.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${se.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${se.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${se["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=zhe(e),n=e.shape.borderRadius;return x({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:it(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${se.autoHeight}`]:{height:"auto",[`& .${se["row--lastVisible"]} .${se.cell}`]:{borderBottomColor:"transparent"}},[`&.${se.autosizing}`]:{[`& .${se.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${se.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${se["virtualScrollerContent--overflowed"]} .${se["row--lastVisible"]} .${se.cell}`]:{borderBottomColor:"transparent"},[`& .${se.columnHeader}, & .${se.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${se.columnHeader}:focus-within, & .${se.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:it(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${se.columnHeader}:focus, & .${se.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${se.columnHeaderCheckbox}, & .${se.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${se.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${se["columnHeader--sorted"]} .${se.iconButtonContainer}, & .${se["columnHeader--filtered"]} .${se.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${se.columnHeader}:not(.${se["columnHeader--sorted"]}) .${se.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${se.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${se.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${se["columnHeader--filledGroup"]} .${se.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${se["columnHeader--filledGroup"]}.${se["columnHeader--showColumnBorder"]} .${se.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${se["columnHeader--filledGroup"]}.${se["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${se.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${se.sortIcon}, & .${se.filterIcon}`]:{fontSize:"inherit"},[`& .${se["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${se["columnHeader--alignCenter"]} .${se.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${se["columnHeader--alignRight"]} .${se.columnHeaderDraggableContainer}, & .${se["columnHeader--alignRight"]} .${se.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${se["columnHeader--alignCenter"]} .${se.menuIcon}, & .${se["columnHeader--alignRight"]} .${se.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${se["columnHeader--alignRight"]} .${se.menuIcon}, & .${se["columnHeader--alignRight"]} .${se.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${se["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${se.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${se.columnHeaders}:hover`]:QR,[`& .${se.columnHeader}:hover`]:XR,[`& .${se.columnHeader}:not(.${se["columnHeader--sorted"]}):hover .${se.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${se.columnHeaders}`]:QR,[`& .${se.columnHeader}`]:XR},[`& .${se["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${se["columnSeparator--sideRight"]}`]:{right:-12},[`& .${se["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${se["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${se.iconSeparator}`]:{color:"inherit"},[`& .${se.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${se.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${se.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
|
|
332
|
+
${e.vars.palette.action.selectedOpacity} +
|
|
333
|
+
${e.vars.palette.action.hoverOpacity}
|
|
334
|
+
))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${se.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${se["root--disableUserSelection"]} .${se.cell}`]:{userSelect:"none"},[`& .${se.row}:not(.${se["row--dynamicHeight"]}) > .${se.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${se.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${se.cell}.${se["cell--selectionMode"]}`]:{cursor:"default"},[`& .${se.cell}.${se["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${se["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${se["row--editing"]} .${se.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${se.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${se.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${se.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${se.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${se.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${se["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${se.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${se.withBorderColor}`]:{borderColor:t},[`& .${se["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${se["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${se["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${se["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${se["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${se.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${se.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${se["columnHeader--dragging"]}, & .${se["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${se["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${se.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${se.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${se.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${se.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${se.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),jhe=["children","className"],Hhe=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${xe(n)}`,"withBorderColor"]};return _e(o,jt,r)},Uhe=c.forwardRef(function(t,n){var r;const o=ct(),{children:s,className:i}=t,l=oe(t,jhe),a=Oa(),u=nt(a,Mpe),f=c.useRef(null),p=It(f,n),g=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:W4,v=typeof g=="function"?g():null,y=x({},o,{density:u}),m=Hhe(y);a.current.register("public",{rootElementRef:f});const[C,b]=c.useState(!1);return Nt(()=>{b(!0)},[]),C?$.jsx(Vhe,x({ref:p,className:ye(i,m.root),ownerState:y},v,l,{children:s})):null}),Whe=["className"],Ghe=e=>{const{classes:t}=e;return _e({root:["footerContainer","withBorderColor"]},jt,t)},Khe=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),qhe=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Whe),s=ct(),i=Ghe(s);return $.jsx(Khe,x({ref:n,className:ye(i.root,r),ownerState:s},o))}),Yhe=["className"],Qhe=e=>{const{classes:t}=e;return _e({root:["overlay"]},jt,t)},Xhe=Ir("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),tI=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Yhe),s=ct(),i=Qhe(s);return $.jsx(Xhe,x({ref:n,className:ye(i.root,r),ownerState:s},o))}),Zhe=["className"],Jhe=e=>{const{classes:t}=e;return _e({root:["iconButtonContainer"]},jt,t)},eme=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),a5=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Zhe),s=ct(),i=Jhe(s);return $.jsx(eme,x({ref:n,className:ye(i.root,r),ownerState:s},o))}),tme=e=>{const{classes:t}=e;return _e({icon:["sortIcon"]},jt,t)};function nme(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?$.jsx(o,x({fontSize:"small",className:n},s)):null}function rme(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Vt(),i=ct(),l=x({},e,{classes:i.classes}),a=tme(l),u=nme(i.slots,n,a.icon,o);if(!u)return null;const f=$.jsx(i.slots.baseIconButton,x({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:u}));return $.jsxs(a5,{children:[r!=null&&$.jsx(lN,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const ome=c.memo(rme),sme=e=>{const{classes:t,open:n}=e;return _e({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},jt,t)},ime=c.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Vt(),u=ct(),f=x({},e,{classes:u.classes}),p=sme(f),g=c.useCallback(v=>{v.preventDefault(),v.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return $.jsx("div",{className:p.root,children:$.jsx(u.slots.baseTooltip,x({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:$.jsx(u.slots.baseIconButton,x({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:g,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:$.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function lme({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:l}){const a=Vt(),u=a.current.getColumn(o),f=Ye(p=>{p&&(p.stopPropagation(),i!=null&&i.contains(p.target))||a.current.hideColumnMenu()});return!i||!u?null:$.jsx(l5,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:$.jsx(n,x({colDef:u,hideMenu:f,open:s,id:e,labelledby:t},r))})}const ame=["className"],cme=e=>{const{classes:t}=e;return _e({root:["columnHeaderTitle"]},jt,t)},ume=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),dme=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,ame),s=ct(),i=cme(s);return $.jsx(ume,x({ref:n,className:ye(i.root,r),ownerState:s},o))});function fme(e){var t;const{label:n,description:r}=e,o=ct(),s=c.useRef(null),[i,l]=c.useState(""),a=c.useCallback(()=>{if(!r&&s!=null&&s.current){const u=zpe(s.current);l(u?n:"")}},[r,n]);return $.jsx(o.slots.baseTooltip,x({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:$.jsx(dme,{onMouseOver:a,ref:s,children:n})}))}const pme=["resizable","resizing","height","side"];var c5=function(e){return e.Left="left",e.Right="right",e}(c5||{});const hme=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${xe(o)}`],icon:["iconSeparator"]};return _e(s,jt,r)};function mme(e){const{height:t,side:n=c5.Right}=e,r=oe(e,pme),o=ct(),s=x({},e,{side:n,classes:o.classes}),i=hme(s),l=c.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return $.jsx("div",x({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:$.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const gme=c.memo(mme),vme=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],u5=c.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:s,height:i,isResizing:l,sortDirection:a,hasFocus:u,tabIndex:f,separatorSide:p,isDraggable:g,headerComponent:v,description:y,width:m,columnMenuIconButton:C=null,columnMenu:b=null,columnTitleIconButtons:w=null,headerClassName:S,label:k,resizable:M,draggableContainerProps:I,columnHeaderSeparatorProps:E}=t,T=oe(t,vme),L=Oa(),O=ct(),R=c.useRef(null),[V,j]=c.useState(o),_=It(R,n);let A="none";return a!=null&&(A=a==="asc"?"ascending":"descending"),c.useEffect(()=>{V||j(o)},[V,o]),c.useLayoutEffect(()=>{const F=L.current.state.columnMenu;if(u&&!F.open){const D=R.current.querySelector('[tabindex="0"]')||R.current;D==null||D.focus(),L.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[L,u]),$.jsxs("div",x({ref:_,className:ye(r.root,S),style:{height:i,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":A,"aria-label":v==null?k:void 0},T,{children:[$.jsxs("div",x({className:r.draggableContainer,draggable:g,role:"presentation"},I,{children:[$.jsxs("div",{className:r.titleContainer,role:"presentation",children:[$.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:$.jsx(fme,{label:k,description:y,columnWidth:m})}),w]}),C]})),$.jsx(gme,x({resizable:!O.disableColumnResize&&!!M,resizing:l,height:i,side:p},E)),b]}))}),yme=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,filterItemsCounter:i}=e,l=o!=null,a=i!=null&&i>0,u=t.type==="number",f={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",a&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return _e(f,jt,n)};function bme(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:u,sortDirection:f,sortIndex:p,filterItemsCounter:g,hasFocus:v,tabIndex:y,disableReorder:m,separatorSide:C}=e,b=Oa(),w=ct(),S=c.useRef(null),k=Kt(),M=Kt(),I=c.useRef(null),[E,T]=c.useState(i),L=c.useMemo(()=>!w.disableColumnReorder&&!m&&!s.disableReorder,[w.disableColumnReorder,m,s.disableReorder]);let O;s.renderHeader&&(O=s.renderHeader(b.current.getColumnHeaderParams(s.field)));const R=x({},e,{classes:w.classes,showRightBorder:w.showColumnVerticalBorder}),V=yme(R),j=c.useCallback(Q=>X=>{X.currentTarget.contains(X.target)&&b.current.publishEvent(Q,b.current.getColumnHeaderParams(s.field),X)},[b,s.field]),_=c.useMemo(()=>({onClick:j("columnHeaderClick"),onDoubleClick:j("columnHeaderDoubleClick"),onMouseOver:j("columnHeaderOver"),onMouseOut:j("columnHeaderOut"),onMouseEnter:j("columnHeaderEnter"),onMouseLeave:j("columnHeaderLeave"),onKeyDown:j("columnHeaderKeyDown"),onFocus:j("columnHeaderFocus"),onBlur:j("columnHeaderBlur")}),[j]),A=c.useMemo(()=>L?{onDragStart:j("columnHeaderDragStart"),onDragEnter:j("columnHeaderDragEnter"),onDragOver:j("columnHeaderDragOver"),onDragEnd:j("columnHeaderDragEnd")}:{},[L,j]),F=c.useMemo(()=>({onMouseDown:j("columnSeparatorMouseDown"),onDoubleClick:j("columnSeparatorDoubleClick")}),[j]);c.useEffect(()=>{E||T(i)},[E,i]);const z=c.useCallback(()=>{T(!1)},[]),D=!w.disableColumnMenu&&!s.disableColumnMenu&&$.jsx(ime,{colDef:s,columnMenuId:k,columnMenuButtonId:M,open:E,iconButtonRef:I}),N=$.jsx(lme,{columnMenuId:k,columnMenuButtonId:M,field:s.field,open:i,target:I.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(t=w.slotProps)==null?void 0:t.columnMenu,onExited:z}),H=(n=s.sortingOrder)!=null?n:w.sortingOrder,K=$.jsxs(c.Fragment,{children:[!w.disableColumnFilter&&$.jsx(w.slots.columnHeaderFilterIconButton,x({field:s.field,counter:g},(r=w.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&$.jsx(ome,{direction:f,index:p,sortingOrder:H})]});c.useLayoutEffect(()=>{const Q=b.current.state.columnMenu;if(v&&!Q.open){const J=S.current.querySelector('[tabindex="0"]')||S.current;J==null||J.focus(),b.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[b,v]);const Y=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,Z=(o=s.headerName)!=null?o:s.field;return $.jsx(u5,x({ref:S,classes:V,columnMenuOpen:i,colIndex:l,height:a,isResizing:u,sortDirection:f,hasFocus:v,tabIndex:y,separatorSide:C,isDraggable:L,headerComponent:O,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:D,columnTitleIconButtons:K,headerClassName:Y,label:Z,resizable:!w.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:N,draggableContainerProps:A,columnHeaderSeparatorProps:F},_))}const ih=()=>({items:[],logicOperator:xo.And,quickFilterValues:[],quickFilterLogicOperator:xo.And}),ZR=1e3;let wme=class{constructor(t=ZR){this.timeouts=new Map,this.cleanupTimeout=ZR,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)}},Cme=class{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 $i=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}($i||{});let xme=class{};function Sme(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Cme:new wme);const[l]=c.useState(new xme),a=c.useRef(null),u=c.useRef();u.current=s;const f=c.useRef(null);if(!a.current&&u.current){const p=(g,v,y)=>{if(!v.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,g,v,y)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var g;(g=a.current)==null||g.call(a),a.current=null,f.current=null},f.current)}else!u.current&&a.current&&(a.current(),a.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));c.useEffect(()=>{if(!a.current&&u.current){const p=(g,v,y)=>{if(!v.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,g,v,y)}};a.current=r.current.subscribeEvent(o,p,i)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,i])}}const Pme={registry:null},ut=Sme(Pme),kme={isFirst:!0};function En(e,t,n){ut(e,t,n,kme)}function Xr(e,t){const n=c.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function Ime(e){return typeof e=="number"&&!Number.isNaN(e)}function d5(e){return typeof e=="function"}function nI(e){return typeof e=="object"&&e!==null}function Eme(){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 jg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const kd=(e,t,n)=>Math.max(t,Math.min(n,e));function pc(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 s=0;s<o;s+=1)if(!pc(e[s],t[s]))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 s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const i=o[s];if(!pc(i[1],t.get(i[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 s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])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 s=n[o];if(!pc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Mme(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 Tme(e,t,n){const r=Mme(e);return()=>t+(n-t)*r()}function f5(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const _me=(e,t,n,r,o)=>{const s=Xr(e,"useNativeEventListener"),[i,l]=c.useState(!1),a=c.useRef(r),u=c.useCallback(f=>a.current&&a.current(f),[]);c.useEffect(()=>{a.current=r},[r]),c.useEffect(()=>{let f;if(d5(t)?f=t():f=t&&t.current?t.current:null,f&&n&&!i){s.debug(`Binding native ${n} event`),f.addEventListener(n,u,o);const p=f;l(!0);const g=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",g)}},[t,u,n,i,s,o,e])},Lh=e=>{const t=c.useRef(!0);t.current&&(t.current=!1,e())},$me=100,Rme=e=>e?0:100,p5=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;ji(["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 h5=e=>({page:0,pageSize:e?0:100}),Ome=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),m5=(e,t)=>{if(t===$i.DataGrid&&e>$me)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
335
|
+
`))},g5=e=>e.pagination,xs=Tt(g5,e=>e.paginationModel),Dme=Tt(xs,e=>e.page),Ame=Tt(xs,e=>e.pageSize);Tt(xs,e0,(e,t)=>p5(t,e.pageSize));const rI=Tn(xs,Zs,Jb,Da,q4,(e,t,n,r,o)=>{const s=o.length,i=Math.min(e.pageSize*e.page,s-1),l=Math.min(i+e.pageSize-1,s-1);if(i===-1||l===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:l};const a=o[i],u=l-i+1,f=r.findIndex(y=>y.id===a.id);let p=f,g=0;for(;p<r.length&&g<=u;){var v;const y=r[p],m=(v=t[y.id])==null?void 0:v.depth;m===void 0?p+=1:((g<u||m>0)&&(p+=1),m===0&&(g+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),Lme=Tn(Da,rI,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),v5=Tn(Sp,rI,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),lh=e=>e.preferencePanel;var _c=function(e){return e.filters="filters",e.columns="columns",e}(_c||{});const ah=e=>e.rowsMeta,bs=e=>e.rowSelection,Fme=Tt(bs,e=>e.length),Nme=Tn(bs,ta,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Jv=Tn(bs,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Bme=ji(["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"),y5=(e,t)=>t&&e.length>1?(Bme(),[e[0]]):e,JR=(e,t)=>n=>x({},n,{sorting:x({},n.sorting,{sortModel:y5(e,t)})}),zme=e=>e==="desc",Vme=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=zme(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator;return{getSortCellParams:s=>({id:s,field:n.field,rowNode:t.current.getRowNode(s),value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}},jme=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const i=t.params[s],l=n.params[s];return r=o.comparator(i.value,l.value,i,l),r},0),Hme=(e,t)=>{const n=e.map(r=>Vme(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>jme(n,o,s)).map(o=>o.node.id)},eO=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},oI=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Ume=new Intl.Collator,Wme=(e,t)=>{const n=oI(e,t);return n!==null?n:typeof e=="string"?Ume.compare(e.toString(),t.toString()):e-t},b5=(e,t)=>{const n=oI(e,t);return n!==null?n:Number(e)-Number(t)},w5=(e,t)=>{const n=oI(e,t);return n!==null?n:e>t?1:e<t?-1:0},C5=e=>e.headerFiltering,Gme=Tt(C5,e=>e.editing),Kme=Tt(C5,e=>e.menuOpen),qme=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return x({},e,{virtualization:n})};function Yme(e,t){const n=s=>{e.current.setState(i=>x({},i,{virtualization:x({},i.virtualization,{enabled:s})}))};At(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>x({},i,{virtualization:x({},i.virtualization,{enabledForColumns:s})}))}},"public"),c.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const x5=e=>e.virtualization,Qme=Tt(x5,e=>e.enabled),S5=Tt(x5,e=>e.enabledForColumns),Xme=e=>{const{classes:t}=e;return _e({icon:["filterIcon"]},jt,t)};function Zme(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Vt(),l=ct(),a=x({},e,{classes:l.classes}),u=Xme(a),f=nt(i,lh),p=Kt(),g=Kt(),v=c.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:b,openedPanelValue:w}=lh(i.current.state);b&&w===_c.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,g,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,g,p]);if(!r)return null;const y=f.open&&f.labelId===p,m=$.jsx(l.slots.baseIconButton,x({id:p,onClick:v,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?g:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:$.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return $.jsx(l.slots.baseTooltip,x({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:$.jsxs(a5,{children:[r>1&&$.jsx(lN,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const Jme=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],ege=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},jt,t)},tge=c.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:u}=t,f=oe(t,Jme),p=Vt(),g=ct(),v={classes:g.classes},y=ege(v),m=c.useRef(null),C=c.useRef(null),b=It(m,n),w=p.current.getCellElement(s,o),S=E=>{const T={value:E.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",T,E)};c.useLayoutEffect(()=>{u===0&&w&&(w.tabIndex=-1)},[w,u]),c.useEffect(()=>{if(a){var E;const T=(E=m.current)==null?void 0:E.querySelector("input");T==null||T.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const k=c.useCallback(E=>{s5(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const M=p.current.isRowSelectable(s),I=p.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return $.jsx(g.slots.baseCheckbox,x({ref:b,tabIndex:u,checked:i,onChange:S,className:y.root,inputProps:{"aria-label":I},onKeyDown:k,disabled:!M,touchRippleRef:C},(r=g.slotProps)==null?void 0:r.baseCheckbox,f))}),nge=tge,rge=["field","colDef"],oge=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},jt,t)},sge=c.forwardRef(function(t,n){var r;const o=oe(t,rge),[,s]=c.useState(!1),i=Vt(),l=ct(),a={classes:l.classes},u=oge(a),f=nt(i,Q4),p=nt(i,bs),g=nt(i,Sp),v=nt(i,v5),y=c.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(T=>i.current.getRow(T)?l.isRowSelectable(i.current.getRowParams(T)):!1),[i,l.isRowSelectable,p]),m=c.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?g:v).reduce((L,O)=>(L[O]=!0,L),{}),[l.pagination,l.checkboxSelectionVisibleOnly,v,g]),C=c.useMemo(()=>y.filter(T=>m[T]).length,[y,m]),b=C>0&&C<Object.keys(m).length,w=C>0,S=T=>{const L={value:T.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",L)},k=f!==null&&f.field===t.field?0:-1;c.useLayoutEffect(()=>{const T=i.current.getColumnHeaderElement(t.field);k===0&&T&&(T.tabIndex=-1)},[k,i,t.field]);const M=c.useCallback(T=>{T.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!w})},[i,w]),I=c.useCallback(()=>{s(T=>!T)},[]);c.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",I),[i,I]);const E=i.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return $.jsx(l.slots.baseCheckbox,x({ref:n,indeterminate:b,checked:w,onChange:S,className:u.root,inputProps:{"aria-label":E},tabIndex:k,onKeyDown:M},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),tO=bt($.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),nO=bt($.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),rO=bt($.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),oO=bt($.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ige=bt($.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),sO=bt($.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"),lge=bt($.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");bt($.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bt($.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 age=bt($.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"),cge=bt($.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),uge=bt($.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),dge=bt($.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),fge=bt($.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),pge=bt($.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"),Lw=bt($.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"),iO=bt($.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),hge=bt($.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),mge=bt($.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"),lO=bt($.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"),gge=bt($.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"),vge=bt($.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),yge=bt($.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"),bge=bt($.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),wge=bt($.jsx("g",{children:$.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Cge=bt($.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"}),"Clear");bt($.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");const xge=bt($.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Sge=["hideMenu","colDef","id","labelledby","className","children","open"],Pge=te(Hd)(()=>({minWidth:248})),kge=c.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,u=oe(t,Sge),f=c.useCallback(p=>{o5(p.key)&&p.preventDefault(),xhe(p.key)&&r(p)},[r]);return $.jsx(Pge,x({id:o,ref:n,className:ye(se.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},u,{children:l}))}),Ige=["displayOrder"],Ege=e=>{const t=Oa(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:s={},hideMenu:i,colDef:l,addDividers:a=!0}=e,u=c.useMemo(()=>x({},n,o),[n,o]),f=c.useMemo(()=>{if(!s||Object.keys(s).length===0)return r;const v=x({},s);return Object.entries(r).forEach(([y,m])=>{v[y]=x({},m,s[y]||{})}),v},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=c.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(y=>!v.includes(y))},[o,n]);return c.useMemo(()=>{const m=Array.from(new Set([...p,...g])).filter(C=>u[C]!=null).sort((C,b)=>{const w=f[C],S=f[b],k=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,M=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return k-M});return m.reduce((C,b,w)=>{let S={colDef:l,onClick:i};const k=f[b];if(k){const M=oe(k,Ige);S=x({},S,M)}return a&&w!==m.length-1?[...C,[u[b],S],[Zp,{}]]:[...C,[u[b],S]]},[])},[a,l,p,i,u,f,g])};function Mge(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ct(),l=Dr(r).filter(u=>u.disableColumnMenu!==!0).length===1,a=c.useCallback(u=>{l||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:$.jsxs(Sr,{onClick:a,disabled:l,children:[$.jsx(cl,{children:$.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),$.jsx(Mi,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Tge(e){const{onClick:t}=e,n=Vt(),r=ct(),o=c.useCallback(s=>{t(s),n.current.showPreferences(_c.columns)},[n,t]);return r.disableColumnSelector?null:$.jsxs(Sr,{onClick:o,children:[$.jsx(cl,{children:$.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),$.jsx(Mi,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function _ge(e){return $.jsxs(c.Fragment,{children:[$.jsx(Mge,x({},e)),$.jsx(Tge,x({},e))]})}function $ge(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ct(),s=c.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:$.jsxs(Sr,{onClick:s,children:[$.jsx(cl,{children:$.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),$.jsx(Mi,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Rge(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),s=nt(o,ys),i=ct(),l=c.useMemo(()=>{if(!n)return null;const p=s.find(g=>g.field===n.field);return p==null?void 0:p.sort},[n,s]),a=(t=n.sortingOrder)!=null?t:i.sortingOrder,u=c.useCallback(p=>{r(p);const g=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,g===l?null:g)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const g=o.current.getLocaleText(p);return typeof g=="function"?g(n):g};return $.jsxs(c.Fragment,{children:[a.includes("asc")&&l!=="asc"?$.jsxs(Sr,{onClick:u,"data-value":"asc",children:[$.jsx(cl,{children:$.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),$.jsx(Mi,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?$.jsxs(Sr,{onClick:u,"data-value":"desc",children:[$.jsx(cl,{children:$.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),$.jsx(Mi,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?$.jsxs(Sr,{onClick:u,children:[$.jsx(cl,{}),$.jsx(Mi,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const Oge=["defaultSlots","defaultSlotProps","slots","slotProps"],Dge={columnMenuSortItem:Rge,columnMenuFilterItem:$ge,columnMenuColumnsItem:_ge},Age={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Lge=c.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=oe(t,Oge),a=Ege(x({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return $.jsx(kge,x({ref:n},l,{children:a.map(([u,f],p)=>$.jsx(u,x({},f),p))}))}),Fge=c.forwardRef(function(t,n){return $.jsx(Lge,x({},t,{ref:n,defaultSlots:Dge,defaultSlotProps:Age}))}),Nge=["className"],Bge=e=>{const{classes:t}=e;return _e({root:["panelContent"]},jt,t)},zge=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function P5(e){const{className:t}=e,n=oe(e,Nge),r=ct(),o=Bge(r);return $.jsx(zge,x({className:ye(t,o.root),ownerState:r},n))}const Vge=["className"],jge=e=>{const{classes:t}=e;return _e({root:["panelFooter"]},jt,t)},Hge=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function k5(e){const{className:t}=e,n=oe(e,Vge),r=ct(),o=jge(r);return $.jsx(Hge,x({className:ye(t,o.root),ownerState:r},n))}const Uge=["className"],Wge=e=>{const{classes:t}=e;return _e({root:["panelHeader"]},jt,t)},Gge=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Kge(e){const{className:t}=e,n=oe(e,Uge),r=ct(),o=Wge(r);return $.jsx(Gge,x({className:ye(t,o.root),ownerState:r},n))}const qge=["className","slotProps"],Yge=e=>{const{classes:t}=e;return _e({root:["panelWrapper"]},jt,t)},Qge=te("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Xge=()=>!0,I5=c.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=oe(t,qge),i=ct(),l=Yge(i);return $.jsx(AP,x({open:!0,disableEnforceFocus:!0,isEnabled:Xge},o.TrapFocus,{children:$.jsx(Qge,x({ref:n,tabIndex:-1,className:ye(r,l.root),ownerState:i},s))}))}),Zge=!1,Jge=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],eve=e=>{const{classes:t}=e;return _e({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},jt,t)},tve=te("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),nve=te("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Hr.root}`]:{marginRight:e.spacing(.5)}})),rve=te(pr)({justifyContent:"flex-end"}),aO=new Intl.Collator,ove=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function sve(e){var t,n,r;const o=Vt(),s=c.useRef(null),i=nt(o,_i),l=nt(o,ni),a=ct(),[u,f]=c.useState(""),p=eve(a),{sort:g,searchPredicate:v=ove,autoFocusSearchField:y=!0,disableHideAllButton:m=!1,disableShowAllButton:C=!1,getTogglableColumns:b}=e,w=oe(e,Jge),S=c.useMemo(()=>{switch(g){case"asc":return[...i].sort((R,V)=>aO.compare(R.headerName||R.field,V.headerName||V.field));case"desc":return[...i].sort((R,V)=>-aO.compare(R.headerName||R.field,V.headerName||V.field));default:return i}},[i,g]),k=R=>{const{name:V}=R.target;o.current.setColumnVisibility(V,l[V]===!1)},M=c.useCallback(R=>{const V=ni(o),j=x({},V),_=b?b(i):null;return i.forEach(A=>{A.hideable&&(_==null||_.includes(A.field))&&(R?delete j[A.field]:j[A.field]=!1)}),o.current.setColumnVisibilityModel(j)},[o,i,b]),I=c.useCallback(R=>{f(R.target.value)},[]),E=c.useMemo(()=>{const R=b?b(S):null,V=R?S.filter(({field:j})=>R.includes(j)):S;return u?V.filter(j=>v(j,u.toLowerCase())):V},[S,u,v,b]),T=c.useRef(null);c.useEffect(()=>{y?s.current.focus():T.current&&typeof T.current.focus=="function"&&T.current.focus()},[y]);let L=!1;const O=R=>L===!1&&R.hideable!==!1?(L=!0,!0):!1;return $.jsxs(I5,x({},w,{children:[$.jsx(Kge,{children:$.jsx(a.slots.baseTextField,x({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:u,onChange:I,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),$.jsx(P5,{children:$.jsx(tve,{className:p.root,ownerState:a,children:E.map(R=>{var V;return $.jsxs(nve,{className:p.columnsPanelRow,ownerState:a,children:[$.jsx(wN,{control:$.jsx(a.slots.baseSwitch,x({disabled:R.hideable===!1,checked:l[R.field]!==!1,onClick:k,name:R.field,size:"small",inputRef:O(R)?T:void 0},(V=a.slotProps)==null?void 0:V.baseSwitch)),label:R.headerName||R.field}),!a.disableColumnReorder&&Zge&&$.jsx(rve,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:$.jsx(a.slots.columnReorderIcon,{})})]},R.field)})})}),C&&m?null:$.jsxs(k5,{children:[m?$.jsx("span",{}):$.jsx(a.slots.baseButton,x({onClick:()=>M(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:m,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:$.jsx(a.slots.baseButton,x({onClick:()=>M(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const ive=["children","className","classes"],lve=We("MuiDataGrid",["panel","paper"]),ave=te($a,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),cve=te(zs,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),uve=c.forwardRef((e,t)=>{const{children:n,className:r}=e,o=oe(e,ive),s=Vt(),i=ct(),l=lve,[a,u]=c.useState(!1),f=c.useCallback(()=>{s.current.hidePreferences()},[s]),p=c.useCallback(m=>{Xv(m.key)&&s.current.hidePreferences()},[s]),g=c.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[v,y]=c.useState(null);return c.useEffect(()=>{var m;const C=(m=s.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${se.columnHeaders}`);C&&y(C)},[s]),v?$.jsx(ave,x({ref:t,placement:"bottom-start",className:ye(r,l.panel),ownerState:i,anchorEl:v,modifiers:g},o,{children:$.jsx(GF,{mouseEvent:"onMouseUp",onClickAway:f,children:$.jsx(cve,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),dve=c.forwardRef(function(t,n){var r,o,s;const i=Vt(),l=nt(i,_i),a=ct(),u=nt(i,lh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:_c.filters);return $.jsx(a.slots.panel,x({ref:n,as:a.slots.basePopper,open:l.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(s=a.slotProps)==null?void 0:s.basePopper,{children:f}))}),fve=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],pve=["InputComponentProps"],hve=e=>{const{classes:t}=e;return _e({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},jt,t)},mve=te("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),gve=te("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),vve=te("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),yve=te("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),bve=te("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),wve=te("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Cve=e=>{switch(e){case xo.And:return"filterPanelOperatorAnd";case xo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Bf=e=>e.headerName||e.field,cO=new Intl.Collator,xve=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,g;const{item:v,hasMultipleFilters:y,deleteFilter:m,applyFilterChanges:C,multiFilterOperator:b,showMultiFilterOperators:w,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:k,focusElementRef:M,logicOperators:I=[xo.And,xo.Or],columnsSort:E,filterColumns:T,deleteIconProps:L={},logicOperatorInputProps:O={},operatorInputProps:R={},columnInputProps:V={},valueInputProps:j={}}=t,_=oe(t,fve),A=Vt(),F=nt(A,H4),z=nt(A,Rr),D=Kt(),N=Kt(),H=Kt(),K=Kt(),Y=ct(),Z=hve(Y),Q=c.useRef(null),X=c.useRef(null),J=y&&I.length>0,ne=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},we=(s=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,Ce=((i=Y.slotProps)==null?void 0:i.baseInputLabel)||{},ae=((l=Y.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:be}=j,de=oe(j,pve),ke=c.useMemo(()=>{if(T===void 0||typeof T!="function")return F;const ie=T({field:v.field,columns:F,currentFilters:(z==null?void 0:z.items)||[]});return F.filter(ge=>ie.includes(ge.field))},[T,z==null?void 0:z.items,F,v.field]),Ie=c.useMemo(()=>{switch(E){case"asc":return ke.sort((ie,ge)=>cO.compare(Bf(ie),Bf(ge)));case"desc":return ke.sort((ie,ge)=>-cO.compare(Bf(ie),Bf(ge)));default:return ke}},[ke,E]),le=v.field?A.current.getColumn(v.field):null,Ee=c.useMemo(()=>{var ie;return!v.operator||!le?null:(ie=le.filterOperators)==null?void 0:ie.find(ge=>ge.value===v.operator)},[v,le]),me=c.useCallback(ie=>{const ge=ie.target.value,Te=A.current.getColumn(ge);if(Te.field===le.field)return;const Ne=Te.filterOperators.find(Ve=>Ve.value===v.operator)||Te.filterOperators[0],Ge=!Ne.InputComponent||Ne.InputComponent!==(Ee==null?void 0:Ee.InputComponent);C(x({},v,{field:ge,operator:Ne.value,value:Ge?void 0:v.value}))},[A,C,v,le,Ee]),Me=c.useCallback(ie=>{const ge=ie.target.value,Te=le==null?void 0:le.filterOperators.find(Ge=>Ge.value===ge),Ne=!(Te!=null&&Te.InputComponent)||(Te==null?void 0:Te.InputComponent)!==(Ee==null?void 0:Ee.InputComponent);C(x({},v,{operator:ge,value:Ne?void 0:v.value}))},[C,v,le,Ee]),ue=c.useCallback(ie=>{const ge=ie.target.value===xo.And.toString()?xo.And:xo.Or;k(ge)},[k]),ce=()=>{Y.disableMultipleColumnsFiltering?v.value===void 0?m(v):C(x({},v,{value:void 0})):m(v)};return c.useImperativeHandle(M,()=>({focus:()=>{if(Ee!=null&&Ee.InputComponent){var ie;Q==null||(ie=Q.current)==null||ie.focus()}else X.current.focus()}}),[Ee]),$.jsxs(mve,x({ref:n,className:Z.root,"data-id":v.id,ownerState:Y},_,{children:[$.jsx(gve,x({variant:"standard",as:Y.slots.baseFormControl},ne,L,{className:ye(Z.deleteIcon,ne.className,L.className),ownerState:Y,children:$.jsx(Y.slots.baseIconButton,x({"aria-label":A.current.getLocaleText("filterPanelDeleteIconLabel"),title:A.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ce,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:$.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),$.jsx(vve,x({variant:"standard",as:Y.slots.baseFormControl},ne,O,{sx:x({display:J?"flex":"none",visibility:w?"visible":"hidden"},ne.sx||{},O.sx||{}),className:ye(Z.logicOperatorInput,ne.className,O.className),ownerState:Y,children:$.jsx(Y.slots.baseSelect,x({inputProps:{"aria-label":A.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:ue,disabled:!!S||I.length===1,native:we},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:I.map(ie=>c.createElement(Y.slots.baseSelectOption,x({},ae,{native:we,key:ie.toString(),value:ie.toString()}),A.current.getLocaleText(Cve(ie))))}))})),$.jsxs(yve,x({variant:"standard",as:Y.slots.baseFormControl},ne,V,{className:ye(Z.columnInput,ne.className,V.className),ownerState:Y,children:[$.jsx(Y.slots.baseInputLabel,x({},Ce,{htmlFor:D,id:N,children:A.current.getLocaleText("filterPanelColumns")})),$.jsx(Y.slots.baseSelect,x({labelId:N,id:D,label:A.current.getLocaleText("filterPanelColumns"),value:v.field||"",onChange:me,native:we},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:Ie.map(ie=>c.createElement(Y.slots.baseSelectOption,x({},ae,{native:we,key:ie.field,value:ie.field}),Bf(ie)))}))]})),$.jsxs(bve,x({variant:"standard",as:Y.slots.baseFormControl},ne,R,{className:ye(Z.operatorInput,ne.className,R.className),ownerState:Y,children:[$.jsx(Y.slots.baseInputLabel,x({},Ce,{htmlFor:H,id:K,children:A.current.getLocaleText("filterPanelOperator")})),$.jsx(Y.slots.baseSelect,x({labelId:K,label:A.current.getLocaleText("filterPanelOperator"),id:H,value:v.operator,onChange:Me,native:we,inputRef:X},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:le==null||(g=le.filterOperators)==null?void 0:g.map(ie=>c.createElement(Y.slots.baseSelectOption,x({},ae,{native:we,key:ie.value,value:ie.value}),ie.label||A.current.getLocaleText(`filterOperator${xe(ie.value)}`)))}))]})),$.jsx(wve,x({variant:"standard",as:Y.slots.baseFormControl},ne,de,{className:ye(Z.valueInput,ne.className,de.className),ownerState:Y,children:Ee!=null&&Ee.InputComponent?$.jsx(Ee.InputComponent,x({apiRef:A,item:v,applyValue:C,focusElementRef:Q},Ee.InputComponentProps,be)):null}))]}))});class sI{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new sI}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function iI(){const e=Gk(sI.create).current;return V4(e.disposeEffect),e}const Sve=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ci(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:u,clearButton:f,InputProps:p}=e,g=oe(e,Sve),v=iI(),[y,m]=c.useState((t=r.value)!=null?t:""),[C,b]=c.useState(!1),w=Kt(),S=ct(),k=c.useCallback(M=>{const{value:I}=M.target;m(String(I)),b(!0),v.start(S.filterDebounceMs,()=>{const E=x({},r,{value:I,fromInput:w});o(E),b(!1)})},[w,o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{if(r.fromInput!==w){var I;m(String((I=r.value)!=null?I:""))}},[w,r]),$.jsx(S.slots.baseTextField,x({id:w,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:k,variant:"standard",type:s||"text",InputProps:x({},C||f?{endAdornment:C?$.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:u},p,{inputProps:x({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},g,(n=S.slotProps)==null?void 0:n.baseTextField))}const Pve=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function fu(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,InputProps:a,clearButton:u,tabIndex:f,disabled:p}=e,g=oe(e,Pve),v=iI(),[y,m]=c.useState((t=r.value)!=null?t:""),[C,b]=c.useState(!1),w=Kt(),S=ct(),k=c.useCallback(M=>{const I=M.target.value;m(String(I)),b(!0),v.start(S.filterDebounceMs,()=>{o(x({},r,{value:I})),b(!1)})},[o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{var M;const I=(M=r.value)!=null?M:"";m(String(I))},[r.value]),$.jsx(S.slots.baseTextField,x({fullWidth:!0,id:w,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:k,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:x({},C||u?{endAdornment:C?$.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:p},a,{inputProps:x({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},a==null?void 0:a.inputProps)})},g,(n=S.slotProps)==null?void 0:n.baseTextField))}const kve=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],Ive=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:s,baseSelectOptionProps:i})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const u=o(a),f=r(a);return c.createElement(n,x({},i,{native:s,key:u,value:u}),f)}),Eve=te("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function uO(e){var t,n,r,o,s,i,l,a;const{item:u,applyValue:f,type:p,apiRef:g,focusElementRef:v,getOptionLabel:y,getOptionValue:m,placeholder:C,tabIndex:b,label:w,clearButton:S}=e,k=oe(e,kve),[M,I]=c.useState((t=u.value)!=null?t:""),E=Kt(),T=Kt(),L=ct(),O=(n=(r=L.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let R=null;if(u.field){const z=g.current.getColumn(u.field);fc(z)&&(R=z)}const V=m||((o=R)==null?void 0:o.getOptionValue),j=y||((s=R)==null?void 0:s.getOptionLabel),_=c.useMemo(()=>{if(R)return typeof R.valueOptions=="function"?R.valueOptions({field:R.field}):R.valueOptions},[R]),A=c.useCallback(z=>{let D=z.target.value;D=Dx(D,_,V),I(String(D)),f(x({},u,{value:D}))},[_,V,f,u]);if(c.useEffect(()=>{var z;let D;if(_!==void 0){if(D=Dx(u.value,_,V),D!==u.value){f(x({},u,{value:D}));return}}else D=u.value;D=(z=D)!=null?z:"",I(String(D))},[u,_,f,V]),!fc(R)||!fc(R))return null;const F=w!=null?w:g.current.getLocaleText("filterPanelInputLabel");return $.jsxs(Eve,{children:[$.jsxs(L.slots.baseFormControl,{children:[$.jsx(L.slots.baseInputLabel,x({},(i=L.slotProps)==null?void 0:i.baseInputLabel,{id:T,htmlFor:E,shrink:!0,variant:"standard",children:F})),$.jsx(L.slots.baseSelect,x({id:E,label:F,labelId:T,value:M,onChange:A,variant:"standard",type:p||"text",inputProps:{tabIndex:b,ref:v,placeholder:C!=null?C:g.current.getLocaleText("filterPanelInputPlaceholder")},native:O},k,(l=L.slotProps)==null?void 0:l.baseSelect,{children:Ive({column:R,OptionComponent:L.slots.baseSelectOption,getOptionLabel:j,getOptionValue:V,isSelectNative:O,baseSelectOptionProps:(a=L.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const Mve=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],Tve=te("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function _ve(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:u,tabIndex:f,label:p}=e,g=oe(e,Mve),[v,y]=c.useState(s.value||""),m=ct(),C=Kt(),b=Kt(),w=((t=m.slotProps)==null?void 0:t.baseSelect)||{},S=(n=w.native)!=null?n:!0,k=((r=m.slotProps)==null?void 0:r.baseSelectOption)||{},M=c.useCallback(E=>{const T=E.target.value;y(T),i(x({},s,{value:T}))},[i,s]);c.useEffect(()=>{y(s.value||"")},[s.value]);const I=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return $.jsxs(Tve,{children:[$.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[$.jsx(m.slots.baseInputLabel,x({},(o=m.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:I})),$.jsxs(m.slots.baseSelect,x({labelId:C,id:b,label:I,value:v,onChange:M,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},g,w,{children:[$.jsx(m.slots.baseSelectOption,x({},k,{native:S,value:"",children:l.current.getLocaleText("filterValueAny")})),$.jsx(m.slots.baseSelectOption,x({},k,{native:S,value:"true",children:l.current.getLocaleText("filterValueTrue")})),$.jsx(m.slots.baseSelectOption,x({},k,{native:S,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const $ve=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],dO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Rve=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ct(),l=nt(s,Rr),a=nt(s,H4),u=c.useRef(null),f=c.useRef(null),{logicOperators:p=[xo.And,xo.Or],columnsSort:g,filterFormProps:v,getColumnForNewFilter:y,disableAddFilterButton:m=!1,disableRemoveAllButton:C=!1}=t,b=oe(t,$ve),w=s.current.upsertFilterItem,S=c.useCallback(R=>{s.current.setFilterLogicOperator(R)},[s]),k=c.useCallback(()=>{let R;if(y&&typeof y=="function"){const V=y({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(V===null)return null;R=a.find(({field:j})=>j===V)}else R=a.find(V=>{var j;return(j=V.filterOperators)==null?void 0:j.length});return R?dO(R):null},[l==null?void 0:l.items,a,y]),M=c.useCallback(()=>{if(y===void 0||typeof y!="function")return k();const R=l.items.length?l.items:[k()].filter(Boolean),V=y({currentFilters:R,columns:a});if(V===null)return null;const j=a.find(({field:_})=>_===V);return j?dO(j):null},[l.items,a,y,k]),I=c.useMemo(()=>l.items.length?l.items:(f.current||(f.current=k()),f.current?[f.current]:[]),[l.items,k]),E=I.length>1,T=()=>{const R=M();R&&s.current.upsertFilterItems([...I,R])},L=c.useCallback(R=>{const V=I.length===1;s.current.deleteFilterItem(R),V&&s.current.hideFilterPanel()},[s,I.length]),O=()=>{I.length===1&&I[0].value===void 0&&(s.current.deleteFilterItem(I[0]),s.current.hideFilterPanel()),s.current.setFilterModel(x({},l,{items:[]}))};return c.useEffect(()=>{p.length>0&&l.logicOperator&&!p.includes(l.logicOperator)&&S(p[0])},[p,S,l.logicOperator]),c.useEffect(()=>{I.length>0&&u.current.focus()},[I.length]),$.jsxs(I5,x({ref:n},b,{children:[$.jsx(P5,{children:I.map((R,V)=>$.jsx(xve,x({item:R,applyFilterChanges:w,deleteFilter:L,hasMultipleFilters:E,showMultiFilterOperators:V>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:V!==1,applyMultiFilterOperatorChanges:S,focusElementRef:V===I.length-1?u:null,logicOperators:p,columnsSort:g},v),R.id==null?V:R.id))}),!i.disableMultipleColumnsFiltering&&!(m&&C)?$.jsxs(k5,{children:[m?$.jsx("span",{}):$.jsx(i.slots.baseButton,x({onClick:T,startIcon:$.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:$.jsx(i.slots.baseButton,x({onClick:O,startIcon:$.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),Ove=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function E5(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:u,variant:f}=e,p=oe(e,Ove),g={color:i,error:l,helperText:a,size:u,variant:f},[v,y]=c.useState(t.value||[]),m=Kt(),C=ct();c.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];y(S.map(String))},[t.value]);const b=c.useCallback((w,S)=>{y(S.map(String)),n(x({},t,{value:[...S]}))},[n,t]);return $.jsx(xb,x({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,S)=>{const{inputValue:k}=S;return k==null||k===""?[]:[k]},id:m,value:v,onChange:b,renderTags:(w,S)=>w.map((k,M)=>$.jsx(C.slots.baseChip,x({variant:"outlined",size:"small",label:k},S({index:M})))),renderInput:w=>{var S;return $.jsx(C.slots.baseTextField,x({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},w.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},g,(S=C.slotProps)==null?void 0:S.baseTextField))}},p))}const Dve=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Ave=rN();function Lve(e){var t,n;const{item:r,applyValue:o,apiRef:s,focusElementRef:i,color:l,error:a,helperText:u,size:f,variant:p="standard",getOptionLabel:g,getOptionValue:v}=e,y=oe(e,Dve),m={color:l,error:a,helperText:u,size:f,variant:p},C=Kt(),b=ct();let w=null;if(r.field){const O=s.current.getColumn(r.field);fc(O)&&(w=O)}const S=v||((t=w)==null?void 0:t.getOptionValue),k=g||((n=w)==null?void 0:n.getOptionLabel),M=c.useCallback((O,R)=>S(O)===S(R),[S]),I=c.useMemo(()=>{var O;return(O=w)!=null&&O.valueOptions?typeof w.valueOptions=="function"?w.valueOptions({field:w.field}):w.valueOptions:[]},[w]),E=c.useMemo(()=>I==null?void 0:I.map(S),[I,S]),T=c.useMemo(()=>Array.isArray(r.value)?I!==void 0?r.value.map(R=>E==null?void 0:E.findIndex(V=>V===R)).filter(R=>R>=0).map(R=>I[R]):r.value:[],[r.value,I,E]);c.useEffect(()=>{(!Array.isArray(r.value)||T.length!==r.value.length)&&o(x({},r,{value:T.map(S)}))},[r,T,o,S]);const L=c.useCallback((O,R)=>{o(x({},r,{value:R.map(S)}))},[o,r,S]);return $.jsx(xb,x({multiple:!0,options:I,isOptionEqualToValue:M,filterOptions:Ave,id:C,value:T,onChange:L,getOptionLabel:k,renderTags:(O,R)=>O.map((V,j)=>$.jsx(b.slots.baseChip,x({variant:"outlined",size:"small",label:k(V)},R({index:j})))),renderInput:O=>{var R;return $.jsx(b.slots.baseTextField,x({},O,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},O.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},m,(R=b.slotProps)==null?void 0:R.baseTextField))}},y))}const Fve=["hideMenu","options"],Nve=["hideMenu","options"];function Bve(e){const t=Vt(),{hideMenu:n,options:r}=e,o=oe(e,Fve);return $.jsx(Sr,x({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function zve(e){const t=Vt(),{hideMenu:n,options:r}=e,o=oe(e,Nve);return $.jsx(Sr,x({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Vve=["className","selectedRowCount"],jve=e=>{const{classes:t}=e;return _e({root:["selectedRowCount"]},jt,t)},Hve=Ir("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"}})),Uve=c.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=oe(t,Vve),i=Vt(),l=ct(),a=jve(l),u=i.current.getLocaleText("footerRowSelected")(o);return $.jsx(Hve,x({ref:n,className:ye(a.root,r),ownerState:l},s,{children:u}))}),Wve=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ct(),l=nt(s,ppe),a=nt(s,Fme),u=nt(s,e0),f=!i.hideFooterSelectedRowCount&&a>0?$.jsx(Uve,{selectedRowCount:a}):$.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?$.jsx(i.slots.footerRowCount,x({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:u})):null,g=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&$.jsx(i.slots.pagination,x({},(o=i.slotProps)==null?void 0:o.pagination));return $.jsxs(qhe,x({ref:n},t,{children:[f,p,g]}))});function Gve(){var e,t;const n=ct();return $.jsxs(c.Fragment,{children:[$.jsx(n.slots.preferencesPanel,x({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&$.jsx(n.slots.toolbar,x({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const Kve=c.forwardRef(function(t,n){return $.jsx(tI,x({ref:n},t,{children:$.jsx(Ai,{})}))}),qve=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return $.jsx(tI,x({ref:n},t,{children:o}))}),Yve=te(wae)(({theme:e})=>({[`& .${cc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${cc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Qve=c.forwardRef(function(t,n){const r=Vt(),o=ct(),s=nt(r,xs),i=nt(r,e0),l=c.useMemo(()=>{var v,y;return(v=(y=o.rowCount)!=null?y:i)!=null?v:0},[o.rowCount,i]),a=c.useMemo(()=>Math.floor(l/(s.pageSize||1)),[l,s.pageSize]),u=c.useCallback(v=>{const y=Number(v.target.value);r.current.setPageSize(y)},[r]),f=c.useCallback((v,y)=>{r.current.setPage(y)},[r]),g=(v=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const m=o.pageSizeOptions[y];if(typeof m=="number"){if(m===v)return!0}else if(m.value===v)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return $.jsx(Yve,x({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:g,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:u},r.current.getLocaleText("MuiTablePagination"),t))}),Xve=["className","rowCount","visibleRowCount"],Zve=e=>{const{classes:t}=e;return _e({root:["rowCount"]},jt,t)},Jve=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),eye=c.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=oe(t,Xve),l=Vt(),a=ct(),u=Zve(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return $.jsxs(Jve,x({ref:n,className:ye(u.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),ey=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=rI(e),n=Lme(e)):(n=Da(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},zc=(e,t)=>{const n=ey(e,t);return c.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Ax={current:null};function Fh(e){return e.isInternal=!0,e}function ty(e){return e!==void 0&&e.isInternal===!0}function tye(e){return Fh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Ax.current))})}function Nh(e){return e.map(t=>x({},t,{getApplyFilterFn:tye(t.getApplyFilterFnV7),getApplyFilterFnV7:Fh(t.getApplyFilterFnV7)}))}function M5(e){return Fh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function T5(e){return{current:e.current.getPublicApi()}}const nye=typeof window=="undefined"?globalThis:window,_5=nye[atob("ZXZhbA==")];let Lx;try{Lx=_5("true")}catch(e){Lx=!1}const Fx=(e,t)=>{const n=x({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Gd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},rye=ji(["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"),oye=ji("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),sye=ji("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),$5=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(rye(),o=[e.items[0]]):o=e.items;const s=r&&o.some(l=>l.id==null),i=o.some(l=>l.operator==null);return s&&oye(),i&&sye(),i||s?x({},e,{items:o.map(l=>Fx(l,n))}):e.items!==o?x({},e,{items:o}):e},fO=(e,t,n)=>r=>x({},r,{filterModel:$5(e,t,n)}),na=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,R5=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const v=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(y=>v(y)):v(e.value)}else r=e.value;const{ignoreDiacritics:s}=t.current.rootProps;s&&(r=na(r));const i=x({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find(v=>v.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const u=!ty(a.getApplyFilterFn),f=!ty(a.getApplyFilterFnV7),p=T5(t);if(a.getApplyFilterFnV7&&!(u&&!f)){const v=a.getApplyFilterFnV7(i,n);return typeof v!="function"?null:{v7:!0,item:i,fn:y=>{let m=t.current.getRowValue(y,n);return s&&(m=na(m)),v(m,y,n,p)}}}const g=a.getApplyFilterFn(i,n);return typeof g!="function"?null:{v7:!1,item:i,fn:v=>{const y=t.current.getCellParams(v,i.field);Ax.current=p,s&&(y.value=na(y.value));const m=g(y);return Ax.current=null,m}}};let pO=1;const iye=(e,t,n)=>{const{items:r}=e,o=r.map(a=>R5(a,t)).filter(a=>!!a);if(o.length===0)return null;if(!Lx||n)return(a,u)=>{const f={};for(let p=0;p<o.length;p+=1){const g=o[p];(!u||u(g.item.field))&&(f[g.item.id]=g.v7?g.fn(a):g.fn(t.current.getRowId(a)))}return f};const s=`(function filterItem$$(getRowId, appliers, row, shouldApplyFilter) {
|
|
336
|
+
${o.map((a,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
|
|
337
|
+
`)}
|
|
338
|
+
|
|
339
|
+
const result$$ = {
|
|
340
|
+
${o.map((a,u)=>`${JSON.stringify(String(a.item.id))}:
|
|
341
|
+
!shouldApply${u} ?
|
|
342
|
+
false :
|
|
343
|
+
${a.v7?`appliers[${u}].fn(row)`:`appliers[${u}].fn(getRowId(row))`},
|
|
344
|
+
`).join(`
|
|
345
|
+
`)}};
|
|
346
|
+
|
|
347
|
+
return result$$;
|
|
348
|
+
})`,i=_5(s.replaceAll("$$",String(pO))),l=(a,u)=>i(t.current.getRowId,o,a,u);return pO+=1,l},lye=(e,t)=>{var n,r,o;const s=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(s.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?Qb(t):ul(t),a=[],{ignoreDiacritics:u}=t.current.rootProps,f=T5(t);return l.forEach(p=>{const g=t.current.getColumn(p),v=g==null?void 0:g.getApplyQuickFilterFn,y=g==null?void 0:g.getApplyQuickFilterFnV7,m=!ty(v),C=!ty(y);y&&!(m&&!C)?a.push({column:g,appliers:s.map(b=>{const w=u?na(b):b;return{v7:!0,fn:y(w,g,f)}})}):v&&a.push({column:g,appliers:s.map(b=>{const w=u?na(b):b;return{v7:!1,fn:v(w,g,f)}})})}),function(g,v){const y={},m={};e:for(let b=0;b<s.length;b+=1){const w=s[b];for(let S=0;S<a.length;S+=1){const{column:k,appliers:M}=a[S],{field:I}=k;if(v&&!v(I))continue;const E=M[b];let T=t.current.getRowValue(g,k);if(E.fn!==null)if(E.v7){if(u&&(T=na(T)),E.fn(T,g,k,f)){y[w]=!0;continue e}}else{var C;const L=(C=m[I])!=null?C:t.current.getCellParams(t.current.getRowId(g),I);if(u&&(L.value=na(L.value)),m[I]=L,E.fn(L)){y[w]=!0;continue e}}}y[w]=!1}return y}},aye=(e,t,n)=>{const r=iye(e,t,n),o=lye(e,t);return function(i,l,a){var u,f;a.passingFilterItems=(u=r==null?void 0:r(i,l))!=null?u:null,a.passingQuickFilterValues=(f=o==null?void 0:o(i,l))!=null?f:null}},hO=e=>e!=null,cye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>R5(r,t)!==null)),e.cleanedFilterItems),uye=(e,t,n,r,o)=>{const s=cye(o,r,n.items),i=e.filter(hO),l=t.filter(hO);if(i.length>0){var a;const f=g=>i.some(v=>v[g.id]);if(((a=n.logicOperator)!=null?a:ih().logicOperator)===xo.And){if(!s.every(f))return!1}else if(!s.some(f))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const f=g=>l.some(v=>v[g]);if(((u=n.quickFilterLogicOperator)!=null?u:ih().quickFilterLogicOperator)===xo.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},mO=Fh(e=>{if(!e)return null;const t=new RegExp(jg(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=na(i)),i!=null?t.test(i.toString()):!1}}),dye=(e=!1)=>Nh([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(jg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ci},{value:"equals",getApplyFilterFnV7: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 o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ci},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${jg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ci},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${jg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ci},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7: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 o=>o!=null?n.some(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:E5}]),ii={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Wme,type:"string",align:"left",filterOperators:dye(),renderEditCell:ghe,getApplyQuickFilterFn:M5(mO),getApplyQuickFilterFnV7:mO},fye=()=>Nh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:_ve}]);function pye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const hye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},O5=x({},ii,{type:"boolean",align:"center",headerAlign:"center",renderCell:rhe,renderEditCell:lhe,sortComparator:b5,valueFormatter:pye,filterOperators:fye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>hye(e)}),Vl="__check__",Yd=x({},O5,{field:Vl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>Jv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>$.jsx(sge,x({},e)),renderCell:e=>$.jsx(nge,x({},e))}),o0="actions",mye=x({},ii,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Ahe,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),lI="__detail_panel_toggle__",so=e=>e.editRows,gye=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],vye=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:s,classes:i}=e;return _e({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",s==="auto"&&"row--dynamicHeight"]},jt,i)};function yye({width:e}){if(!e)return null;const t={width:e};return $.jsx("div",{className:`${se.cell} ${se.withBorderColor}`,style:t})}const bye=c.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:s,row:i,index:l,style:a,position:u,rowHeight:f,className:p,visibleColumns:g,renderedColumns:v,containerWidth:y,firstColumnToRender:m,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:b,isNotVisible:w,focusedCell:S,onClick:k,onDoubleClick:M,onMouseEnter:I,onMouseLeave:E,onMouseOut:T,onMouseOver:L}=t,O=oe(t,gye),R=Vt(),V=c.useRef(null),j=ct(),_=zc(R,j),A=nt(R,qk),F=nt(R,ys),z=nt(R,Jb),D=nt(R,Ah),N=nt(R,so),H=It(V,n),K=l+D+2,Y={selected:r,hovered:o,isLastVisible:C,classes:j.classes,editing:R.current.getRowMode(s)===Cn.Edit,editable:j.editMode===Fi.Row,rowHeight:f},Z=vye(Y);c.useLayoutEffect(()=>{f==="auto"&&V.current&&typeof ResizeObserver=="undefined"&&R.current.unstable_storeRowHeightMeasurement(s,V.current.clientHeight,u)},[R,f,s,u]),c.useLayoutEffect(()=>{if(_.range){const Ge=R.current.getRowIndexRelativeToVisibleRows(s);Ge!=null&&R.current.unstable_setLastMeasuredRowIndex(Ge)}const ge=V.current;if(!ge||f!=="auto"||typeof ResizeObserver=="undefined")return;const Ne=new ResizeObserver(Ge=>{const[Ve]=Ge,Ue=Ve.borderBoxSize&&Ve.borderBoxSize.length>0?Ve.borderBoxSize[0].blockSize:Ve.contentRect.height;R.current.unstable_storeRowHeightMeasurement(s,Ue,u)});return Ne.observe(ge),()=>Ne.disconnect()},[R,_.range,l,f,s,u]);const Q=c.useCallback((ge,Te)=>Ne=>{Ne.target.nodeType===1&&!Ne.currentTarget.contains(Ne.target)||R.current.getRow(s)&&(R.current.publishEvent(ge,R.current.getRowParams(s),Ne),Te&&Te(Ne))},[R,s]),X=c.useCallback(ge=>{const Te=Vpe(ge.target,se.cell),Ne=Te==null?void 0:Te.getAttribute("data-field");if(Ne){if(Ne===Yd.field||Ne===lI||Ne==="__reorder__"||R.current.getCellMode(s,Ne)===un.Edit)return;const Ge=R.current.getColumn(Ne);if((Ge==null?void 0:Ge.type)===o0)return}Q("rowClick",k)(ge)},[R,k,Q,s]),{slots:J,slotProps:ne,disableColumnReorder:fe}=j,we=J.cell===Ox?Ox:Xpe,Ce=j.rowReordering,ae=(ge,Te)=>{var Ne,Ge;const Ve=fe&&ge.disableReorder||!Ce&&!!F.length&&z>1&&Object.keys(N).length>0,Ue=(Ne=(Ge=N[s])==null?void 0:Ge[ge.field])!=null?Ne:null;let Le=!1;return b!==void 0&&g[b].field===ge.field&&(Le=!0),$.jsx(we,x({column:ge,width:Te.width,rowId:s,height:f,showRightBorder:Te.showRightBorder,align:ge.align||"left",colIndex:Te.indexRelativeToAllColumns,colSpan:Te.colSpan,disableDragEvents:Ve,editCellState:Ue,isNotVisible:Le},ne==null?void 0:ne.cell),ge.field)},be=nt(R,()=>x({},R.current.unstable_getRowInternalSizes(s)),Kk);let de=f;if(de==="auto"&&be){let ge=0;const Te=Object.entries(be).reduce((Ne,[Ge,Ve])=>/^base[A-Z]/.test(Ge)?(ge+=1,Ve>Ne?Ve:Ne):Ne,0);Te>0&&ge>1&&(de=Te)}const ke=c.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ge=x({},a,{maxHeight:f==="auto"?"none":f,minHeight:de});if(be!=null&&be.spacingTop){const Te=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";ge[Te]=be.spacingTop}if(be!=null&&be.spacingBottom){const Te=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ne=ge[Te];typeof Ne!="number"&&(Ne=parseInt(Ne||"0",10)),Ne+=be.spacingBottom,ge[Te]=Ne}return ge},[w,f,a,de,be,j.rowSpacingType]),Ie=R.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof j.getRowClassName=="function"){var le;const ge=l-(((le=_.range)==null?void 0:le.firstRowIndex)||0),Te=x({},R.current.getRowParams(s),{isFirstVisible:ge===0,isLastVisible:ge===_.rows.length-1,indexRelativeToCurrentPage:ge});Ie.push(j.getRowClassName(Te))}const Ee=Tme(1e4,20,80),me=R.current.getRowNode(s);if(!me)return null;const Me=me.type,ue=[];for(let ge=0;ge<v.length;ge+=1){const Te=v[ge];let Ne=m+ge;b!==void 0&&S&&(g[b].field===Te.field?Ne=b:Ne-=1);const Ge=R.current.unstable_getCellColSpanInfo(s,Ne);if(Ge&&!Ge.spannedByColSpan)if(Me!=="skeletonRow"){const{colSpan:Ve,width:Ue}=Ge.cellProps,Le={width:Ue,colSpan:Ve,showRightBorder:j.showCellVerticalBorder,indexRelativeToAllColumns:Ne};ue.push(ae(Te,Le))}else{const{width:Ve}=Ge.cellProps,Ue=Math.round(Ee());ue.push($.jsx(J.skeletonCell,{width:Ve,contentWidth:Ue,field:Te.field,align:Te.align},Te.field))}}const ce=y-A,ie=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",M),onMouseEnter:Q("rowMouseEnter",I),onMouseLeave:Q("rowMouseLeave",E),onMouseOut:Q("rowMouseOut",T),onMouseOver:Q("rowMouseOver",L)}:null;return $.jsxs("div",x({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:ye(...Ie,Z.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:ke},ie,O,{children:[ue,ce>0&&$.jsx(yye,{width:ce})]}))}),wye=r0(bye);function Cye({privateApiRef:e,props:t,children:n}){const r=c.useRef(e.current.getPublicApi());return $.jsx(B4.Provider,{value:t,children:$.jsx(z4.Provider,{value:e,children:$.jsx(N4.Provider,{value:r,children:n})})})}const xye=Eme()&&window.localStorage.getItem("DEBUG")!=null,ep=()=>{},Sye={debug:ep,info:ep,warn:ep,error:ep},gO=["debug","info","warn","error"];function vO(e,t,n=console){const r=gO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return gO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[u,...f]=a;n[i](`MUI: ${e} - ${u}`,...f)}:s[i]=ep,s),{})}const Pye=(e,t)=>{const n=c.useCallback(r=>xye?vO(r,"debug",t.logger):t.logLevel?vO(r,t.logLevel.toString(),t.logger):Sye,[t.logLevel,t.logger]);At(e,{getLogger:n},"private")};class aI{static create(t){return new aI(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}let kye=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}};const D5=Symbol("mui.api_private"),Iye=e=>e.isPropagationStopped!==void 0;let yO=0;function Eye(e){var t;const n=(t=e.current)==null?void 0:t[D5];if(n)return n;const r={},o={state:r,store:aI.create(r),instanceId:{id:yO}};return yO+=1,o.getPublicApi=()=>e.current,o.register=(s,i)=>{Object.keys(i).forEach(l=>{const a=i[l],u=o[l];if((u==null?void 0:u.spying)===!0?u.target=a:o[l]=a,s==="public"){const f=e.current,p=f[l];(p==null?void 0:p.spying)===!0?p.target=a:f[l]=a}})},o.register("private",{caches:{},eventManager:new kye}),o}function Mye(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[D5]:e.current}}function Tye(e,t){const n=c.useRef(),r=c.useRef();r.current||(r.current=Eye(n)),n.current||(n.current=Mye(r));const o=c.useCallback((...i)=>{const[l,a,u={}]=i;if(u.defaultMuiPrevented=!1,Iye(u)&&u.isPropagationStopped())return;const f=t.signature===$i.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,a,u,f)},[r,t.signature]),s=c.useCallback((i,l,a)=>{r.current.eventManager.on(i,l,a);const u=r.current;return()=>{u.eventManager.removeListener(i,l)}},[r]);return At(r,{subscribeEvent:s,publishEvent:o},"public"),c.useImperativeHandle(e,()=>n.current,[n]),c.useEffect(()=>{const i=r.current;return()=>{i.publishEvent("unmount")}},[r]),r}const _ye=(e,t)=>{const n=c.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}function $ye(e,t){if(ch(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ch(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uh(e){var t=$ye(e,"string");return ch(t)==="symbol"?t:String(t)}const Rye=e=>{const t=c.useRef({}),n=c.useRef(!1),r=c.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=c.useCallback((f,p,g)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const v=t.current[f];return v.processors.get(p)!==g&&(v.processors.set(p,g),r(v)),()=>{t.current[f].processors.set(p,null)}},[r]),s=c.useCallback((f,p,g)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=g,()=>{const v=t.current[f].appliers,y=oe(v,[p].map(uh));t.current[f].appliers=y}),[]),i=c.useCallback(f=>{const p=t.current[f];r(p)},[r]),l=c.useCallback((...f)=>{const[p,g,v]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((m,C)=>C?C(m,v):m,g):g},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},u={unstable_applyPipeProcessors:l};At(e,a,"private"),At(e,u,"public")},hr=(e,t,n)=>{const r=c.useRef(),o=c.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=c.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Lh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},cI=(e,t,n)=>{const r=c.useRef(),o=c.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=c.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Lh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},ny=(e,t,n,r)=>{const o=c.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Lh(()=>{o()});const s=c.useRef(!0);c.useEffect(()=>{s.current?s.current=!1:o()},[o])},$c="none",bO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Oye=e=>{const t=c.useRef(new Map),n=c.useRef({}),r=c.useCallback((a,u,f)=>{const p=()=>{const y=n.current[u],m=oe(y,[a].map(uh));n.current[u]=m};n.current[u]||(n.current[u]={});const g=n.current[u],v=g[a];return g[a]=f,!v||v===f||a===e.current.getActiveStrategy(bO[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=c.useCallback((a,u)=>{const f=e.current.getActiveStrategy(bO[a]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[f])throw new Error(`No processor found for processor "${a}" on strategy "${f}"`);const g=p[f];return g(u)},[e]),s=c.useCallback(a=>{var u;const p=Array.from(t.current.entries()).find(([,g])=>g.group!==a?!1:g.isAvailable());return(u=p==null?void 0:p[0])!=null?u:$c},[]),i=c.useCallback((a,u,f)=>{t.current.set(u,{group:a,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);At(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},Dye=(e,t)=>{const n=c.useRef({}),[,r]=c.useState(),o=c.useCallback(f=>{n.current[f.stateId]=f},[]),s=c.useCallback((f,p)=>{let g;if(d5(f)?g=f(e.current.state):g=f,e.current.state===g)return!1;let v=!1;const y=[];if(Object.keys(n.current).forEach(m=>{const C=n.current[m],b=C.stateSelector(e.current.state,e.current.instanceId),w=C.stateSelector(g,e.current.instanceId);w!==b&&(y.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(v=!0))}),y.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${y[0].stateId}, therefore, you're not allowed to update ${y.map(m=>m.stateId).join(", ")} in the same transaction.`);if(v||(e.current.state=g,e.current.publishEvent&&e.current.publishEvent("stateChange",g),e.current.store.update(g)),y.length===1){const{stateId:m,hasPropChanged:C}=y[0],b=n.current[m],w=b.stateSelector(g,e.current.instanceId);if(b.propOnChange&&C){const S=t.signature===$i.DataGridPro?{api:e.current,reason:p}:{reason:p};b.propOnChange(w,S)}v||e.current.publishEvent(b.changeEvent,w,{reason:p})}return!v},[e,t.signature]),i=c.useCallback((f,p,g)=>e.current.setState(v=>x({},v,{[f]:p(v[f])}),g),[e]),l=c.useCallback(()=>r(()=>e.current.state),[e]),a={setState:s,forceUpdate:l},u={updateControlState:i,registerControlState:o};At(e,a,"public"),At(e,u,"private")},Aye=(e,t)=>{const n=Tye(e,t);return Pye(n,t),Dye(n,t),Rye(n),Oye(n),_ye(n,t),n.current.register("private",{rootProps:t}),n},yo=(e,t,n)=>{const r=c.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},Lye=/(\d+)-(\d+)-(\d+)/,Fye=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function pu(e,t,n,r){if(!e.value)return null;const[o,s,i,l,a]=e.value.match(n?Fye:Lye).slice(1).map(Number),u=new Date(o,s-1,i,l||0,a||0).getTime();return f=>{if(!f)return!1;if(r)return t(f.getTime(),u);const g=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(g,u)}}const A5=e=>Nh([{value:"is",getApplyFilterFnV7:t=>pu(t,(n,r)=>n===r,e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>pu(t,(n,r)=>n!==r,e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>pu(t,(n,r)=>n>r,e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>pu(t,(n,r)=>n>=r,e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>pu(t,(n,r)=>n<r,e,!e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>pu(t,(n,r)=>n<=r,e),InputComponent:fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function L5({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
|
|
349
|
+
`))}function Nye({value:e,field:t,id:n}){return e?(L5({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Bye({value:e,field:t,id:n}){return e?(L5({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const zye=x({},ii,{type:"date",sortComparator:w5,valueFormatter:Nye,filterOperators:A5(),renderEditCell:r5,pastedValueParser:e=>new Date(e)}),Vye=x({},ii,{type:"dateTime",sortComparator:w5,valueFormatter:Bye,filterOperators:A5(!0),renderEditCell:r5,pastedValueParser:e=>new Date(e)}),Gl=e=>e==null?null:Number(e),wO=Fh(e=>e==null||Number.isNaN(e)||e===""?null:t=>Gl(t)===Gl(e)),jye=()=>Nh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Gl(t)===e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Gl(t)!==e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Gl(t)>e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Gl(t)>=e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Gl(t)<e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Gl(t)<=e.value,InputComponent:Ci,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:E5,InputComponentProps:{type:"number"}}]),Hye=x({},ii,{type:"number",align:"right",headerAlign:"right",sortComparator:b5,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Ime(e)?e.toLocaleString():e||"",filterOperators:jye(),getApplyQuickFilterFn:M5(wO),getApplyQuickFilterFnV7:wO}),hu=e=>e==null||!nI(e)?e:e.value,Uye=()=>Nh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>hu(t)===hu(e.value),InputComponent:uO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>hu(t)!==hu(e.value),InputComponent:uO},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(hu);return n=>t.includes(hu(n))},InputComponent:Lve}]),Wye=e=>typeof e[0]=="object",Gye=e=>nI(e)?e.value:e,Kye=e=>nI(e)?e.label:String(e),qye=x({},ii,{type:"singleSelect",getOptionLabel:Kye,getOptionValue:Gye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!fc(s))return"";let i;if(typeof s.valueOptions=="function"?i=s.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):i=s.valueOptions,r==null)return"";if(!i)return r;if(!Wye(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:Ehe,filterOperators:Uye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],s=n.getOptionValue;if(o.find(l=>s(l)===e))return e}}),F5="__default__",Yye=()=>({string:ii,number:Hye,date:zye,dateTime:Vye,boolean:O5,singleSelect:qye,[o0]:mye,[F5]:ii});function Nx(e,t){return typeof e=="string"&&[t,`
|
|
350
|
+
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const N5=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var s;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var i;o=(i=e.value)==null?void 0:i.toISOString()}else typeof((s=e.value)==null?void 0:s.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Nx(o,n)};ji(["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."]);class Bx{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Qye=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new Bx({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(N5(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function Xye(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((v,y)=>`${v}${Qye({id:y,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:i})}\r
|
|
351
|
+
`,"").trim();if(!o)return a;const u=t.filter(v=>v.field!==Yd.field),f=[];if(s){const v=l.current.unstable_getAllGroupDetails();let y=0;const m=u.reduce((C,b)=>{const w=l.current.unstable_getColumnGroupPath(b.field);return C[b.field]=w,y=Math.max(y,w.length),C},{});for(let C=0;C<y;C+=1){const b=new Bx({delimiterCharacter:r,sanitizeCellValue:Nx});f.push(b),u.forEach(w=>{const S=(m[w.field]||[])[C],k=v[S];b.addValue(k?k.headerName||k.groupId:"")})}}const p=new Bx({delimiterCharacter:r,sanitizeCellValue:Nx});return u.forEach(v=>{p.addValue(v.headerName||v.field)}),f.push(p),`${`${f.map(v=>v.getRowString()).join(`\r
|
|
352
|
+
`)}\r
|
|
353
|
+
`}${a}`.trim()}function CO(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 Zye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{CO(e)}):CO(e)}function Jye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const ebe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=c.useCallback(i=>{if(!((i.ctrlKey||i.metaKey)&&i.key==="c")||Jye(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=Bo(e);if(u){const f=e.current.getCellParams(u.id,u.field);l=N5(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(Zye(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);_me(e,e.current.rootElementRef,"keydown",s),En(e,"clipboardCopy",t.onClipboardCopy)},tbe=e=>x({},e,{columnMenu:{open:!1}}),nbe=e=>{const t=Xr(e,"useGridColumnMenu"),n=c.useCallback(i=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===i?a:(t.debug("Opening Column Menu"),x({},a,{columnMenu:{open:!0,field:i}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=c.useCallback(()=>{const i=Rx(e.current.state);if(i.field){const a=Gd(e),u=ni(e),f=ul(e);let p=i.field;if(a[p]||(p=f[0]),u[p]===!1){const g=f.filter(y=>y===p?!0:u[y]!==!1),v=g.indexOf(p);p=g[v+1]||g[v-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),x({},a,{columnMenu:x({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=c.useCallback(i=>{t.debug("Toggle Column Menu");const l=Rx(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);At(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),ut(e,"columnResizeStart",r),ut(e,"virtualScrollerWheel",e.current.hideColumnMenu),ut(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},B5=["maxWidth","minWidth","width","flex"];function rbe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const l=o.all[i];l&&l.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let l=e,a=t,u=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,a-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let v=l/a*p.flex;v<p.minWidth?(u+=p.minWidth-v,v=p.minWidth,i.min[p.field]=!0):v>p.maxWidth&&(u+=p.maxWidth-v,v=p.maxWidth,i.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:v,flex:p.flex}}u<0?Object.keys(i.max).forEach(f=>{o.freeze(f)}):u>0?Object.keys(i.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),s()}return s(),o.all}const zx=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(l=>{const a=x({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)a.computedWidth=0;else{let u;a.flex&&a.flex>0?(r+=a.flex,u=0,s.push(a)):u=kd(a.width||ii.width,a.minWidth||ii.minWidth,a.maxWidth||ii.maxWidth),o+=u,a.computedWidth=u}n[l]=a});const i=Math.max(t-o,0);if(r>0&&t>0){const l=rbe({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return x({},e,{lookup:n})},obe=(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 s={},i=[];for(let f=0;f<n.length;f+=1){const p=n[f];e.lookup[p]&&(s[p]=!0,i.push(p))}const l=i.length===0?e.orderedFields:[...i,...e.orderedFields.filter(f=>!s[f])],a=x({},e.lookup);for(let f=0;f<o.length;f+=1){const p=o[f],g=x({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([v,y])=>{g[v]=y===-1?1/0:y}),a[p]=g}return x({},e,{orderedFields:l,lookup:a})};function xO(e,t){let n=e[F5];return t&&e[t]&&(n=e[t]),n}const Pu=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=ni(e),keepOnlyColumnsToUpsert:s=!1})=>{var i,l,a;const u=!e.current.state.columns;let f;if(u)f={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const y=dc(e.current.state);f={orderedFields:s?[]:[...y.orderedFields],lookup:x({},y.lookup),columnVisibilityModel:o}}let p={};s&&!u&&(p=Object.keys(f.lookup).reduce((y,m)=>x({},y,{[m]:!1}),{})),t.forEach(y=>{const{field:m}=y;p[m]=!0;let C=f.lookup[m];C==null?(C=x({},xO(r,y.type),{field:m,hasBeenResized:!1}),f.orderedFields.push(m)):s&&f.orderedFields.push(m),C&&C.type!==y.type&&(C=x({},xO(r,y.type),{field:m}));let b=C.hasBeenResized;B5.forEach(w=>{y[w]!==void 0&&(b=!0,y[w]===-1&&(y[w]=1/0))}),f.lookup[m]=x({},C,y,{hasBeenResized:b})}),s&&!u&&Object.keys(f.lookup).forEach(y=>{p[y]||delete f.lookup[y]});const g=e.current.unstable_applyPipeProcessors("hydrateColumns",f),v=obe(g,n);return zx(v,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},SO=e=>t=>x({},t,{columns:e});function Vx({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i<r;i+=1)if(o[i]){const a=o[i].id,u=t.current.unstable_getCellColSpanInfo(a,e);u&&u.spannedByColSpan&&(s=u.leftVisibleCellIndex)}return s}function sbe({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return Vx({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function uI(e,t){const n=qd(e),r=Ah(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const z5=Yye(),ibe=(e,t,n)=>{var r,o,s,i;const l=Pu({apiRef:n,columnTypes:z5,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(s=t.columnVisibilityModel)!=null?s:(i=t.initialState)==null||(i=i.columns)==null?void 0:i.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return x({},e,{columns:l})};function lbe(e,t){var n,r;const o=Xr(e,"useGridColumns"),s=z5,i=c.useRef(t.columns),l=c.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ni,changeEvent:"columnVisibilityModelChange"});const a=c.useCallback(_=>{o.debug("Updating columns state."),e.current.setState(SO(_)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",_.orderedFields)},[o,e]),u=c.useCallback(_=>Gd(e)[_],[e]),f=c.useCallback(()=>_i(e),[e]),p=c.useCallback(()=>Dr(e),[e]),g=c.useCallback((_,A=!0)=>(A?Dr(e):_i(e)).findIndex(z=>z.field===_),[e]),v=c.useCallback(_=>{const A=g(_);return Pd(e)[A]},[e,g]),y=c.useCallback(_=>{ni(e)!==_&&(e.current.setState(F=>x({},F,{columns:Pu({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),m=c.useCallback(_=>{const A=Pu({apiRef:e,columnTypes:s,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});a(A)},[e,a,s]),C=c.useCallback((_,A)=>{var F;const z=ni(e),D=(F=z[_])!=null?F:!0;if(A!==D){const N=x({},z,{[_]:A});e.current.setColumnVisibilityModel(N)}},[e]),b=c.useCallback(_=>ul(e).findIndex(F=>F===_),[e]),w=c.useCallback((_,A)=>{const F=ul(e),z=b(_);if(z===A)return;o.debug(`Moving column ${_} to index ${A}`);const D=[...F],N=D.splice(z,1)[0];D.splice(A,0,N),a(x({},dc(e.current.state),{orderedFields:D}));const H={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:z};e.current.publishEvent("columnIndexChange",H)},[e,o,a,b]),S=c.useCallback((_,A)=>{var F,z;o.debug(`Updating column ${_} width to ${A}`);const D=dc(e.current.state),N=D.lookup[_],H=x({},N,{width:A,hasBeenResized:!0});a(zx(x({},D,{lookup:x({},D.lookup,{[_]:H})}),(F=(z=e.current.getRootDimensions())==null?void 0:z.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),colDef:H,width:A})},[e,o,a]),k={getColumn:u,getAllColumns:f,getColumnIndex:g,getColumnPosition:v,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:b,updateColumns:m,setColumnVisibilityModel:y,setColumnVisibility:C,setColumnWidth:S},M={setColumnIndex:w};At(e,k,"public"),At(e,M,t.signature===$i.DataGrid?"private":"public");const I=c.useCallback((_,A)=>{var F,z;const D={},N=ni(e);(!A.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(z=t.initialState)==null||(z=z.columns)==null?void 0:z.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(N).length>0)&&(D.columnVisibilityModel=N),D.orderedFields=ul(e);const K=_i(e),Y={};return K.forEach(Z=>{if(Z.hasBeenResized){const Q={};B5.forEach(X=>{let J=Z[X];J===1/0&&(J=-1),Q[X]=J}),Y[Z.field]=Q}}),Object.keys(Y).length>0&&(D.dimensions=Y),x({},_,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),E=c.useCallback((_,A)=>{var F;const z=(F=A.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,D=A.stateToRestore.columns;if(z==null&&D==null)return _;const N=Pu({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:D,columnVisibilityModel:z,keepOnlyColumnsToUpsert:!1});return e.current.setState(SO(N)),D!=null&&e.current.publishEvent("columnsChange",N.orderedFields),_},[e,s]),T=c.useCallback((_,A)=>{if(A===_c.columns){var F;const z=t.slots.columnsPanel;return $.jsx(z,x({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return _},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),L=c.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);hr(e,"columnMenu",L),hr(e,"exportState",I),hr(e,"restoreState",E),hr(e,"preferencePanel",T);const O=c.useRef(null);ut(e,"viewportInnerSizeChange",_=>{O.current!==_.width&&(O.current=_.width,a(zx(dc(e.current.state),_.width)))});const V=c.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const _=Pu({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(_)},[e,o,a,s]);cI(e,"hydrateColumns",V);const j=c.useRef(!0);c.useEffect(()=>{if(j.current){j.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const _=Pu({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(_)},[o,e,a,t.columns,s]),c.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const abe=.7,cbe=1.3,V5={compact:abe,comfortable:cbe,standard:1},ube=(e,t)=>x({},e,{density:{value:t.density,factor:V5[t.density]}}),dbe=(e,t)=>{const n=Xr(e,"useDensity"),r=c.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=Zk(i),a={value:s,factor:V5[s]};return pc(l,a)?i:x({},i,{density:a})}),e.current.forceUpdate()},[n,e]);c.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),At(e,{setDensity:r},"public")};function fbe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const j5=({apiRef:e,options:t})=>{const n=_i(e);return t.fields?t.fields.reduce((o,s)=>{const i=n.find(l=>l.field===s);return i&&o.push(i),o},[]):(t.allColumns?n:Dr(e)).filter(o=>!o.disableExport)},pbe=({apiRef:e})=>{var t,n;const r=Spe(e),o=Zs(e),s=e.current.getSelectedRows(),i=r.filter(f=>o[f].type!=="footer"),l=Kd(e),a=(l==null||(t=l.top)==null?void 0:t.map(f=>f.id))||[],u=(l==null||(n=l.bottom)==null?void 0:n.map(f=>f.id))||[];return i.unshift(...a),i.push(...u),s.size>0?i.filter(f=>s.has(f)):i},hbe=(e,t)=>{const n=Xr(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=c.useCallback((u={})=>{var f,p,g;n.debug("Get data as CSV");const v=j5({apiRef:e,options:u}),m=((f=u.getRowsToExport)!=null?f:pbe)({apiRef:e});return Xye({columns:v,rowIds:m,delimiterCharacter:u.delimiter||",",includeHeaders:(p=u.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(g=u.includeColumnGroupsHeaders)!=null?g:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),i=c.useCallback(u=>{n.debug("Export data as CSV");const f=s(u),p=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});fbe(p,"csv",u==null?void 0:u.fileName)},[n,s]);At(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const a=c.useCallback((u,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?u:[...u,{component:$.jsx(Bve,{options:f.csvOptions}),componentName:"csvExport"}]},[]);hr(e,"exportMenu",a)},mbe=(e,t)=>{var n,r;const o=x({},h5(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return m5(o.pageSize,t.signature),x({},e,{pagination:{paginationModel:o}})},Hg=(e,t,n)=>r=>{var o;let s=r.paginationModel;const i=(o=n==null?void 0:n.pageSize)!=null?o:s.pageSize,l=p5(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=Ome(s.page,l);return a!==s.page&&(s=x({},s,{page:a})),m5(s.pageSize,t),{paginationModel:s}},gbe=(e,t)=>{var n;const r=Xr(e,"useGridPagination"),o=nt(e,e0),s=nt(e,qd),i=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:xs,changeEvent:"paginationModelChange"});const l=c.useCallback(m=>{const C=xs(e);m!==C.page&&(r.debug(`Setting page to ${m}`),e.current.setPaginationModel({page:m,pageSize:C.pageSize}))},[e,r]),a=c.useCallback(m=>{const C=xs(e);m!==C.pageSize&&(r.debug(`Setting page size to ${m}`),e.current.setPaginationModel({pageSize:m,page:C.page}))},[e,r]),u=c.useCallback(m=>{var C;const b=xs(e);m!==b&&(r.debug("Setting 'paginationModel' to",m),e.current.updateControlState("pagination",Hg((C=t.rowCount)!=null?C:o,t.signature,m),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);At(e,{setPage:l,setPageSize:a,setPaginationModel:u},"public");const p=c.useCallback((m,C)=>{var b;const w=xs(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((b=t.initialState)==null||(b=b.pagination)==null?void 0:b.paginationModel)!=null||w.page!==0&&w.pageSize!==Rme(t.autoPageSize)?x({},m,{pagination:x({},m.pagination,{paginationModel:w})}):m},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),g=c.useCallback((m,C)=>{var b,w,S;const k=(b=C.stateToRestore.pagination)!=null&&b.paginationModel?x({},h5(t.autoPageSize),(w=C.stateToRestore.pagination)==null?void 0:w.paginationModel):xs(e);return e.current.updateControlState("pagination",Hg((S=t.rowCount)!=null?S:o,t.signature,k),"stateRestorePreProcessing"),m},[e,t.autoPageSize,t.rowCount,t.signature,o]);hr(e,"exportState",p),hr(e,"restoreState",g);const v=()=>{var m;const C=xs(e);(m=e.current.virtualScrollerRef)!=null&&m.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},y=c.useCallback(()=>{const m=e.current.getRootDimensions();if(!t.autoPageSize||!m)return;const C=J4(e),b=Math.floor((m.viewportInnerSize.height-C.top-C.bottom)/i);e.current.setPageSize(b)},[e,t.autoPageSize,i]);ut(e,"viewportInnerSizeChange",y),ut(e,"paginationModelChange",v),c.useEffect(()=>{},[t.rowCount,t.paginationMode]),c.useEffect(()=>{var m;e.current.updateControlState("pagination",Hg((m=t.rowCount)!=null?m:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),c.useEffect(()=>{y()},[y])};function vbe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function ybe(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const bbe=(e,t)=>{const n=Xr(e,"useGridPrintExport"),r=c.useRef(null),o=c.useRef(null),s=c.useRef({}),i=c.useRef([]);c.useEffect(()=>{r.current=fn(e.current.rootElementRef.current)},[e]);const l=c.useCallback((y,m,C)=>new Promise(b=>{const w=j5({apiRef:e,options:{fields:y,allColumns:m}}).map(M=>M.field),S=_i(e),k={};S.forEach(M=>{k[M.field]=w.includes(M.field)}),C&&(k[Yd.field]=!0),e.current.setColumnVisibilityModel(k),b()}),[e]),a=c.useCallback(y=>{const C=y({apiRef:e}).map(b=>e.current.getRow(b));e.current.setRows(C)},[e]),u=c.useCallback((y,m)=>{var C,b;const w=x({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),S=y.contentDocument;if(!S)return;const k=ah(e.current.state),M=e.current.rootElementRef.current,I=M.cloneNode(!0),E=I.querySelector(`.${se.main}`);E.style.overflow="visible",I.style.contain="size";const L=I.querySelector(`.${se.columnHeaders}`).querySelector(`.${se.columnHeadersInner}`);L.style.width="100%";let O=((C=M.querySelector(`.${se.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,R=((b=M.querySelector(`.${se.footerContainer}`))==null?void 0:b.offsetHeight)||0;if(w.hideToolbar){var V;(V=I.querySelector(`.${se.toolbarContainer}`))==null||V.remove(),O=0}if(w.hideFooter){var j;(j=I.querySelector(`.${se.footerContainer}`))==null||j.remove(),R=0}const _=k.currentPageTotalHeight+uI(e,t.columnHeaderHeight)+O+R;if(I.style.height=`${_}px`,I.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const D=I.querySelector(`.${se.footerContainer}`);D.style.position="absolute",D.style.width="100%",D.style.top=`${_-R}px`}const A=document.createElement("div");A.appendChild(I),S.body.innerHTML=A.innerHTML;const F=typeof w.pageStyle=="function"?w.pageStyle():w.pageStyle;if(typeof F=="string"){const D=S.createElement("style");D.appendChild(S.createTextNode(F)),S.head.appendChild(D)}w.bodyClassName&&S.body.classList.add(...w.bodyClassName.split(" "));const z=[];if(w.copyStyles){const D=M.getRootNode(),H=(D.constructor.name==="ShadowRoot"?D:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let K=0;K<H.length;K+=1){const Y=H[K];if(Y.tagName==="STYLE"){const Z=S.createElement(Y.tagName),Q=Y.sheet;if(Q){let X="";for(let J=0;J<Q.cssRules.length;J+=1)typeof Q.cssRules[J].cssText=="string"&&(X+=`${Q.cssRules[J].cssText}\r
|
|
354
|
+
`);Z.appendChild(S.createTextNode(X)),S.head.appendChild(Z)}}else if(Y.getAttribute("href")){const Z=S.createElement(Y.tagName);for(let Q=0;Q<Y.attributes.length;Q+=1){const X=Y.attributes[Q];X&&Z.setAttribute(X.nodeName,X.nodeValue||"")}z.push(new Promise(Q=>{Z.addEventListener("load",()=>Q())})),S.head.appendChild(Z)}}}Promise.all(z).then(()=>{y.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=c.useCallback(y=>{var m;r.current.body.removeChild(y),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),g={exportDataAsPrint:c.useCallback(y=>rt(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(),s.current=ni(e),i.current=e.current.getSortedRows(),t.pagination){const C=Y4(e),b={page:0,pageSize:C};e.current.updateControlState("pagination",Hg(C,"DataGridPro",b)),e.current.forceUpdate()}yield l(y==null?void 0:y.fields,y==null?void 0:y.allColumns,y==null?void 0:y.includeCheckboxes),y!=null&&y.getRowsToExport&&a(y.getRowsToExport),e.current.unstable_setVirtualization(!1),yield vbe();const m=ybe(y==null?void 0:y.fileName);m.onload=()=>{u(m,y),m.contentWindow.matchMedia("print").addEventListener("change",b=>{b.matches===!1&&f(m)})},r.current.body.appendChild(m)}),[t,n,e,u,f,l,a])};At(e,g,"public");const v=c.useCallback((y,m)=>{var C;return(C=m.printOptions)!=null&&C.disableToolbarButton?y:[...y,{component:$.jsx(zve,{options:m.printOptions}),componentName:"printExport"}]},[]);hr(e,"exportMenu",v)},wbe=(e,t,n)=>{var r,o,s;const i=(r=(o=t.filterModel)!=null?o:(s=t.initialState)==null||(s=s.filter)==null?void 0:s.filterModel)!=null?r:ih();return x({},e,{filter:{filterModel:$5(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Cbe=e=>e.filteredRowsLookup;function PO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function xbe(){return Yb(Object.values)}const Sbe=(e,t)=>{var n,r;const o=Xr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Rr,changeEvent:"filterModelChange"});const s=c.useCallback(()=>{e.current.setState(O=>{const R=Rr(O,e.current.instanceId),V=t.filterMode==="client"?aye(R,e,t.disableEval):null,j=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:R!=null?R:ih()}),_=x({},O,{filter:x({},O.filter,j)}),A=PO(e,_);return x({},_,{visibleRowsLookup:A})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=c.useCallback((O,R)=>R==null||R.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),l=c.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=c.useCallback(O=>{const R=Rr(e),V=[...R.items],j=V.findIndex(_=>_.id===O.id);j===-1?V.push(O):V[j]=O,e.current.setFilterModel(x({},R,{items:V}),"upsertFilterItem")},[e]),u=c.useCallback(O=>{const R=Rr(e),V=[...R.items];O.forEach(j=>{const _=O.findIndex(A=>A.id===j.id);_===-1?V.push(j):V[_]=j}),e.current.setFilterModel(x({},R,{items:O}),"upsertFilterItems")},[e]),f=c.useCallback(O=>{const R=Rr(e),V=R.items.filter(j=>j.id!==O.id);V.length!==R.items.length&&e.current.setFilterModel(x({},R,{items:V}),"deleteFilterItem")},[e]),p=c.useCallback((O,R,V)=>{if(o.debug("Displaying filter panel"),O){const j=Rr(e),_=j.items.filter(D=>{var N;if(D.value!==void 0)return!(Array.isArray(D.value)&&D.value.length===0);const K=(N=e.current.getColumn(D.field).filterOperators)==null?void 0:N.find(Z=>Z.value===D.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let A;const F=_.find(D=>D.field===O),z=e.current.getColumn(O);F?A=_:t.disableMultipleColumnsFiltering?A=[Fx({field:O,operator:z.filterOperators[0].value},e)]:A=[..._,Fx({field:O,operator:z.filterOperators[0].value},e)],e.current.setFilterModel(x({},j,{items:A}))}e.current.showPreferences(_c.filters,R,V)},[e,o,t.disableMultipleColumnsFiltering]),g=c.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),v=c.useCallback(O=>{const R=Rr(e);R.logicOperator!==O&&e.current.setFilterModel(x({},R,{logicOperator:O}),"changeLogicOperator")},[e]),y=c.useCallback(O=>{const R=Rr(e);pc(R.quickFilterValues,O)||e.current.setFilterModel(x({},R,{quickFilterValues:[...O]}))},[e]),m=c.useCallback((O,R)=>{Rr(e)!==O&&(o.debug("Setting filter model"),e.current.updateControlState("filter",fO(O,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:v,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:u,setFilterModel:m,showFilterPanel:p,hideFilterPanel:g,setQuickFilterValues:y,ignoreDiacritics:t.ignoreDiacritics};At(e,C,"public");const b=c.useCallback((O,R)=>{var V;const j=Rr(e);return!R.exportOnlyDirtyModels||t.filterModel!=null||((V=t.initialState)==null||(V=V.filter)==null?void 0:V.filterModel)!=null||!pc(j,ih())?x({},O,{filter:{filterModel:j}}):O},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),w=c.useCallback((O,R)=>{var V;const j=(V=R.stateToRestore.filter)==null?void 0:V.filterModel;return j==null?O:(e.current.updateControlState("filter",fO(j,t.disableMultipleColumnsFiltering,e),"restoreState"),x({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=c.useCallback((O,R)=>{if(R===_c.filters){var V;const j=t.slots.filterPanel;return $.jsx(j,x({},(V=t.slotProps)==null?void 0:V.filterPanel))}return O},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:k}=t,M=Gk(xbe),I=c.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const R=ta(e),V={},{isRowMatchingFilters:j}=O,_={},A={passingFilterItems:null,passingQuickFilterValues:null},F=M.current(e.current.state.rows.dataRowIdToModelLookup);for(let N=0;N<F.length;N+=1){const H=F[N],K=k?k(H):H.id;j(H,void 0,A);const Y=uye([A.passingFilterItems],[A.passingQuickFilterValues],O.filterModel,e,_);V[K]=Y}const z="auto-generated-group-footer-root";return R[z]&&(V[z]=!0),{filteredRowsLookup:V,filteredDescendantCountLookup:{}}},[e,t.filterMode,k,M]);hr(e,"columnMenu",i),hr(e,"exportState",b),hr(e,"restoreState",w),hr(e,"preferencePanel",S),ny(e,$c,"filtering",I),ny(e,$c,"visibleRowsLookupCreation",Cbe);const E=c.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const O=Rr(e),R=cpe(e),V=O.items.filter(j=>j.field&&R[j.field]);V.length<O.items.length&&e.current.setFilterModel(x({},O,{items:V}))},[e,o]),T=c.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),L=c.useCallback(()=>{e.current.setState(O=>x({},O,{visibleRowsLookup:PO(e,O)})),e.current.forceUpdate()},[e]);ut(e,"rowsSet",s),ut(e,"columnsChange",E),ut(e,"activeStrategyProcessorChange",T),ut(e,"rowExpansionChange",L),ut(e,"columnVisibilityModelChange",()=>{const O=Rr(e);O.quickFilterValues&&O.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Lh(()=>{e.current.unstable_applyFilters()}),Nt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},Pbe=e=>x({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),kbe=(e,t)=>{const n=Xr(e,"useGridFocus"),r=c.useRef(null),o=c.useCallback((E,T)=>{E&&e.current.getRow(E.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),T)},[e]),s=c.useCallback((E,T)=>{const L=Bo(e);(L==null?void 0:L.id)===E&&(L==null?void 0:L.field)===T||(e.current.setState(O=>(n.debug(`Focusing on cell with id=${E} and field=${T}`),x({},O,{tabIndex:{cell:{id:E,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:E,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(E)&&(L&&o(L,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(E,T))))},[e,n,o]),i=c.useCallback((E,T={})=>{const L=Bo(e);o(L,T),e.current.setState(O=>(n.debug(`Focusing on column header with colIndex=${E}`),x({},O,{tabIndex:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=c.useCallback((E,T={})=>{const L=Bo(e);o(L,T),e.current.setState(O=>(n.debug(`Focusing on column header filter with colIndex=${E}`),x({},O,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=c.useCallback((E,T,L={})=>{const O=Bo(e);O&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),L),e.current.setState(R=>x({},R,{tabIndex:{columnGroupHeader:{field:E,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:E,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=c.useCallback(()=>Kv(e),[e]),f=c.useCallback((E,T,L)=>{let O=e.current.getColumnIndex(T);const R=Dr(e),V=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode}),j=Kd(e),_=[].concat(j.top||[],V.rows,j.bottom||[]);let A=_.findIndex(N=>N.id===E);L==="right"?O+=1:L==="left"?O-=1:A+=1,O>=R.length?(A+=1,A<_.length&&(O=0)):O<0&&(A-=1,A>=0&&(O=R.length-1)),A=kd(A,0,_.length-1);const F=_[A];if(!F)return;const z=e.current.unstable_getCellColSpanInfo(F.id,O);z&&z.spannedByColSpan&&(L==="left"||L==="below"?O=z.leftVisibleCellIndex:L==="right"&&(O=z.rightVisibleCellIndex)),O=kd(O,0,R.length-1);const D=R[O];e.current.setCellFocus(F.id,D.field)},[e,t.pagination,t.paginationMode]),p=c.useCallback(({id:E,field:T})=>{e.current.setCellFocus(E,T)},[e]),g=c.useCallback((E,T)=>{T.key==="Enter"||T.key==="Tab"||T.key==="Shift"||Zv(T.key)||e.current.setCellFocus(E.id,E.field)},[e]),v=c.useCallback(({field:E},T)=>{T.target===T.currentTarget&&e.current.setColumnHeaderFocus(E,T)},[e]),y=c.useCallback(({fields:E,depth:T},L)=>{if(L.target!==L.currentTarget)return;const O=Kv(e);O!==null&&O.depth===T&&E.includes(O.field)||e.current.setColumnGroupHeaderFocus(E[0],T,L)},[e]),m=c.useCallback((E,T)=>{var L;(L=T.relatedTarget)!=null&&L.className.includes(se.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>x({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=c.useCallback(E=>{r.current=E},[]),b=c.useCallback(E=>{const T=r.current;r.current=null;const L=Bo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:E,cell:T}))return;if(!L){T&&e.current.setCellFocus(T.id,T.field);return}if((T==null?void 0:T.id)===L.id&&(T==null?void 0:T.field)===L.field)return;const R=e.current.getCellElement(L.id,L.field);R!=null&&R.contains(E.target)||(T?e.current.setCellFocus(T.id,T.field):(e.current.setState(V=>x({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(L,E)))},[e,o]),w=c.useCallback(E=>{if(E.cellMode==="view")return;const T=Bo(e);((T==null?void 0:T.id)!==E.id||(T==null?void 0:T.field)!==E.field)&&e.current.setCellFocus(E.id,E.field)},[e]),S=c.useCallback(()=>{const E=Bo(e);E&&!e.current.getRow(E.id)&&e.current.setState(T=>x({},T,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),k=Ye(()=>{const E=Bo(e);if(!E)return;const T=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(T.rows.find(R=>R.id===E.id))return;const O=Dr(e);e.current.setState(R=>x({},R,{tabIndex:{cell:{id:T.rows[0].id,field:O[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),M={setCellFocus:s,setColumnHeaderFocus:i,setColumnHeaderFilterFocus:l},I={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:u};At(e,M,"public"),At(e,I,"private"),c.useEffect(()=>{const E=fn(e.current.rootElementRef.current);return E.addEventListener("mouseup",b),()=>{E.removeEventListener("mouseup",b)}},[e,b]),ut(e,"columnHeaderBlur",m),ut(e,"cellDoubleClick",p),ut(e,"cellMouseDown",C),ut(e,"cellKeyDown",g),ut(e,"cellModeChange",w),ut(e,"columnHeaderFocus",v),ut(e,"columnGroupHeaderFocus",y),ut(e,"rowsSet",S),ut(e,"paginationModelChange",k)};function Ibe(e,t){const n=Kd(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Fw=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},Nw=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},Ebe=(e,t)=>{const n=Xr(e,"useGridKeyboardNavigation"),r=zc(e,t).rows,o=yn(),s=c.useMemo(()=>Ibe(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=c.useCallback((b,w,S="left")=>{const k=Da(e),M=e.current.unstable_getCellColSpanInfo(w,b);M&&M.spannedByColSpan&&(S==="left"?b=M.leftVisibleCellIndex:S==="right"&&(b=M.rightVisibleCellIndex));const I=k.findIndex(T=>T.id===w);n.debug(`Navigating to cell row ${I}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:I});const E=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(w,E)},[e,n]),a=c.useCallback((b,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const S=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(S,w)},[e,n]),u=c.useCallback((b,w)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const S=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(S,w)},[e,n]),f=c.useCallback((b,w,S)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:k}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(k,w,S)},[e,n]),p=c.useCallback(b=>{var w;return(w=s[b])==null?void 0:w.id},[s]),g=c.useCallback((b,w)=>{const S=w.currentTarget.querySelector(`.${se.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(w.target)&&b.field!==Yd.field||!e.current.getRootDimensions())return;const I=e.current.getViewportPageSize(),E=b.field?e.current.getColumnIndex(b.field):0,T=s.length>0?0:null,L=s.length-1,O=0,R=Dr(e).length-1,V=Ah(e);let j=!0;switch(w.key){case"ArrowDown":{T!==null&&(i?u(E,w):l(E,p(T)));break}case"ArrowRight":{const _=Nw({currentColIndex:E,firstColIndex:O,lastColIndex:R,direction:o.direction});_!==null&&a(_,w);break}case"ArrowLeft":{const _=Fw({currentColIndex:E,firstColIndex:O,lastColIndex:R,direction:o.direction});_!==null&&a(_,w);break}case"ArrowUp":{V>0&&f(E,V-1,w);break}case"PageDown":{T!==null&&L!==null&&l(E,p(Math.min(T+I,L)));break}case"Home":{a(O,w);break}case"End":{a(R,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:j=!1}j&&w.preventDefault()},[e,s.length,i,u,l,p,o.direction,a,f]),v=c.useCallback((b,w)=>{if(!e.current.getRootDimensions())return;const k=Gme(e)===b.field,M=Kme(e)===b.field;if(k||M||!Zv(w.key))return;const I=e.current.getViewportPageSize(),E=b.field?e.current.getColumnIndex(b.field):0,T=0,L=s.length-1,O=0,R=Dr(e).length-1;let V=!0;switch(w.key){case"ArrowDown":{const j=p(T);j!=null&&l(E,j);break}case"ArrowRight":{const j=Nw({currentColIndex:E,firstColIndex:O,lastColIndex:R,direction:o.direction});j!==null&&u(j,w);break}case"ArrowLeft":{const j=Fw({currentColIndex:E,firstColIndex:O,lastColIndex:R,direction:o.direction});j!==null?u(j,w):e.current.setColumnHeaderFilterFocus(b.field,w);break}case"ArrowUp":{a(E,w);break}case"PageDown":{L!==null&&l(E,p(Math.min(T+I,L)));break}case"Home":{u(O,w);break}case"End":{u(R,w);break}case" ":break;default:V=!1}V&&w.preventDefault()},[e,s.length,u,o.direction,a,l,p]),y=c.useCallback((b,w)=>{if(!e.current.getRootDimensions())return;const k=Kv(e);if(k===null)return;const{field:M,depth:I}=k,{fields:E,depth:T,maxDepth:L}=b,O=e.current.getViewportPageSize(),R=e.current.getColumnIndex(M),V=M?e.current.getColumnIndex(M):0,j=0,_=s.length-1,A=0,F=Dr(e).length-1;let z=!0;switch(w.key){case"ArrowDown":{T===L-1?a(R,w):f(R,I+1,w);break}case"ArrowUp":{T>0&&f(R,I-1,w);break}case"ArrowRight":{const D=E.length-E.indexOf(M)-1;R+D+1<=F&&f(R+D+1,I,w);break}case"ArrowLeft":{const D=E.indexOf(M);R-D-1>=A&&f(R-D-1,I,w);break}case"PageDown":{_!==null&&l(V,p(Math.min(j+O,_)));break}case"Home":{f(A,I,w);break}case"End":{f(F,I,w);break}case" ":break;default:z=!1}z&&w.preventDefault()},[e,s.length,a,f,l,p]),m=c.useCallback((b,w)=>{if(!w.currentTarget.contains(w.target))return;const S=e.current.getCellParams(b.id,b.field);if(S.cellMode===un.Edit||!Zv(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:S}))return;const M=e.current.getRootDimensions();if(s.length===0||!M)return;const I=o.direction,E=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,L=s.findIndex(A=>A.id===b.id),O=0,R=s.length-1,V=0,j=Dr(e).length-1;let _=!0;switch(w.key){case"ArrowDown":{L<R&&l(T,p(L+1));break}case"ArrowUp":{L>O?l(T,p(L-1)):i?u(T,w):a(T,w);break}case"ArrowRight":{const A=Nw({currentColIndex:T,firstColIndex:V,lastColIndex:j,direction:I});A!==null&&l(A,p(L),I==="rtl"?"left":"right");break}case"ArrowLeft":{const A=Fw({currentColIndex:T,firstColIndex:V,lastColIndex:j,direction:I});A!==null&&l(A,p(L),I==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&T>V?l(T-1,p(L),"left"):!w.shiftKey&&T<j&&l(T+1,p(L),"right");break}case" ":{if(b.field===lI)break;const F=b.colDef;if(F&&F.type==="treeDataGroup")break;!w.shiftKey&&L<R&&l(T,p(Math.min(L+E,R)));break}case"PageDown":{L<R&&l(T,p(Math.min(L+E,R)));break}case"PageUp":{const A=Math.max(L-E,O);A!==L&&A>=O?l(T,p(A)):a(T,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?l(V,p(O)):l(V,p(L));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?l(j,p(R)):l(j,p(L));break}default:_=!1}_&&w.preventDefault()},[e,s,o.direction,l,p,i,u,a]),C=c.useCallback((b,{event:w})=>w.key===" "?!1:b,[]);hr(e,"canStartEditing",C),ut(e,"columnHeaderKeyDown",g),ut(e,"headerFilterKeyDown",v),ut(e,"columnGroupHeaderKeyDown",y),ut(e,"cellKeyDown",m)},Mbe=(e,t)=>{var n,r;return x({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Tbe=(e,t)=>{var n;const r=Xr(e,"useGridPreferencesPanel"),o=c.useRef(),s=c.useRef(),i=c.useCallback(()=>{r.debug("Hiding Preferences Panel");const g=lh(e.current.state);g.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:g.openedPanelValue}),e.current.setState(v=>x({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=c.useCallback(()=>{s.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=c.useCallback(()=>{o.current=setTimeout(i,100)},[i]),u=c.useCallback((g,v,y)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(m=>x({},m,{preferencePanel:x({},m.preferencePanel,{open:!0,openedPanelValue:g,panelId:v,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:g}),e.current.forceUpdate()},[r,l,e]);At(e,{showPreferences:u,hidePreferences:a},"public");const f=c.useCallback((g,v)=>{var y;const m=lh(e.current.state);return!v.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||m.open?x({},g,{preferencePanel:m}):g},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=c.useCallback((g,v)=>{const y=v.stateToRestore.preferencePanel;return y!=null&&e.current.setState(m=>x({},m,{preferencePanel:y})),g},[e]);hr(e,"exportState",f),hr(e,"restoreState",p),c.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},_be=["id","field"],$be=["id","field"],Rbe=ji(["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/#server-side-persistence."],"error"),Obe=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:l,cellModesModel:a,onCellModesModelChange:u}=t,f=_=>(...A)=>{t.editMode===Fi.Cell&&_(...A)},p=c.useCallback((_,A)=>{const F=e.current.getCellParams(_,A);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${_} and field=${A} is not editable.`)},[e]),g=c.useCallback((_,A,F)=>{if(e.current.getCellMode(_,A)!==F)throw new Error(`MUI: The cell with id=${_} and field=${A} is not in ${F} mode.`)},[e]),v=c.useCallback((_,A)=>{if(!_.isEditable||_.cellMode===un.Edit)return;const F=x({},_,{reason:Bl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,A)},[e]),y=c.useCallback((_,A)=>{if(_.cellMode===un.View||e.current.getCellMode(_.id,_.field)===un.View)return;const F=x({},_,{reason:Ys.cellFocusOut});e.current.publishEvent("cellEditStop",F,A)},[e]),m=c.useCallback((_,A)=>{if(_.cellMode===un.Edit){if(A.which===229)return;let F;if(A.key==="Escape"?F=Ys.escapeKeyDown:A.key==="Enter"?F=Ys.enterKeyDown:A.key==="Tab"&&(F=A.shiftKey?Ys.shiftTabKeyDown:Ys.tabKeyDown,A.preventDefault()),F){const z=x({},_,{reason:F});e.current.publishEvent("cellEditStop",z,A)}}else if(_.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:A,cellParams:_,editMode:"cell"}))return;if(i5(A)||(A.ctrlKey||A.metaKey)&&A.key==="v"?F=Bl.printableKeyDown:A.key==="Enter"?F=Bl.enterKeyDown:(A.key==="Delete"||A.key==="Backspace")&&(F=Bl.deleteKeyDown),F){const D=x({},_,{reason:F,key:A.key});e.current.publishEvent("cellEditStart",D,A)}}},[e]),C=c.useCallback(_=>{const{id:A,field:F,reason:z,key:D,colDef:N}=_,H={id:A,field:F};if(z===Bl.printableKeyDown)if(c.version.startsWith("17"))H.deleteValue=!0;else{const K=N.valueParser?N.valueParser(D):D;H.initialValue=K}else z===Bl.deleteKeyDown&&(H.deleteValue=!0);e.current.startCellEditMode(H)},[e]),b=c.useCallback(_=>{const{id:A,field:F,reason:z}=_;e.current.runPendingEditCellValueMutation(A,F);let D;z===Ys.enterKeyDown?D="below":z===Ys.tabKeyDown?D="right":z===Ys.shiftTabKeyDown&&(D="left");const N=z==="escapeKeyDown";e.current.stopCellEditMode({id:A,field:F,ignoreModifications:N,cellToFocusAfter:D})},[e]);ut(e,"cellDoubleClick",f(v)),ut(e,"cellFocusOut",f(y)),ut(e,"cellKeyDown",f(m)),ut(e,"cellEditStart",f(C)),ut(e,"cellEditStop",f(b)),En(e,"cellEditStart",t.onCellEditStart),En(e,"cellEditStop",t.onCellEditStop);const w=c.useCallback((_,A)=>{const F=so(e.current.state);return F[_]&&F[_][A]?un.Edit:un.View},[e]),S=Ye(_=>{const A=_!==t.cellModesModel;u&&A&&u(_,{}),!(t.cellModesModel&&A)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),k=c.useCallback((_,A,F)=>{const z=x({},o.current);if(F!==null)z[_]=x({},z[_],{[A]:x({},F)});else{const D=z[_],N=oe(D,[A].map(uh));z[_]=N,Object.keys(z[_]).length===0&&delete z[_]}S(z)},[S]),M=c.useCallback((_,A,F)=>{e.current.setState(z=>{const D=x({},z.editRows);return F!==null?D[_]=x({},D[_],{[A]:x({},F)}):(delete D[_][A],Object.keys(D[_]).length===0&&delete D[_]),x({},z,{editRows:D})}),e.current.forceUpdate()},[e]),I=c.useCallback(_=>{const{id:A,field:F}=_,z=oe(_,_be);p(A,F),g(A,F,un.View),k(A,F,x({mode:un.Edit},z))},[p,g,k]),E=Ye(_=>{const{id:A,field:F,deleteValue:z,initialValue:D}=_;let N=e.current.getCellValue(A,F),H=!1;(z||D)&&(N=z?"":D,H=!0),M(A,F,{value:N,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:H}),e.current.setCellFocus(A,F)}),T=c.useCallback(_=>{const{id:A,field:F}=_,z=oe(_,$be);g(A,F,un.Edit),k(A,F,x({mode:un.View},z))},[g,k]),L=Ye(_=>rt(void 0,null,function*(){const{id:A,field:F,ignoreModifications:z,cellToFocusAfter:D="none"}=_;g(A,F,un.Edit),e.current.runPendingEditCellValueMutation(A,F);const N=()=>{M(A,F,null),k(A,F,null),D!=="none"&&e.current.moveFocusToRelativeCell(A,F,D)};if(z){N();return}const H=so(e.current.state),{error:K,isProcessingProps:Y}=H[A][F];if(K||Y){s.current[A][F].mode=un.Edit,k(A,F,{mode:un.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromCellEditing(A,F);if(i){const Q=X=>{s.current[A][F].mode=un.Edit,k(A,F,{mode:un.Edit}),l?l(X):Rbe()};try{const X=e.current.getRow(A);Promise.resolve(i(Z,X)).then(J=>{e.current.updateRows([J]),N()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([Z]),N()})),O=c.useCallback(_=>rt(void 0,null,function*(){var A;const{id:F,field:z,value:D,debounceMs:N,unstable_skipValueParser:H}=_;p(F,z),g(F,z,un.Edit);const K=e.current.getColumn(z),Y=e.current.getRow(F);let Z=D;K.valueParser&&!H&&(Z=K.valueParser(D,e.current.getCellParams(F,z)));let Q=so(e.current.state),X=x({},Q[F][z],{value:Z,changeReason:N?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const J=D!==Q[F][z].value;X=x({},X,{isProcessingProps:!0}),M(F,z,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Y,props:X,hasChanged:J}))}return e.current.getCellMode(F,z)===un.View?!1:(Q=so(e.current.state),X=x({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[F][z].value:Z,M(F,z,X),Q=so(e.current.state),!((A=Q[F])!=null&&(A=A[z])!=null&&A.error))}),[e,p,g,M]),R=c.useCallback((_,A)=>{const F=e.current.getColumn(A),z=so(e.current.state),D=e.current.getRow(_);if(!z[_]||!z[_][A])return e.current.getRow(_);const{value:N}=z[_][A];return F.valueSetter?F.valueSetter({value:N,row:D}):x({},D,{[A]:N})},[e]),V={getCellMode:w,startCellEditMode:I,stopCellEditMode:T},j={setCellEditingEditCellValue:O,getRowWithUpdatedValuesFromCellEditing:R};At(e,V,"public"),At(e,j,"private"),c.useEffect(()=>{a&&S(a)},[a,S]),c.useEffect(()=>{const _=Gv(e),A=s.current;s.current=f5(n),Object.entries(n).forEach(([F,z])=>{Object.entries(z).forEach(([D,N])=>{var H,K;const Y=((H=A[F])==null||(H=H[D])==null?void 0:H.mode)||un.View,Z=(K=_[F])!=null?K:F;N.mode===un.Edit&&Y===un.View?E(x({id:Z,field:D},N)):N.mode===un.View&&Y===un.Edit&&L(x({id:Z,field:D},N))})})},[e,n,E,L])},Dbe=["id"],Abe=["id"],Lbe=ji(["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/#server-side-persistence."],"error"),Fbe=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),i=c.useRef(null),l=c.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:u,rowModesModel:f,onRowModesModelChange:p}=t,g=D=>(...N)=>{t.editMode===Fi.Row&&D(...N)},v=c.useCallback((D,N)=>{const H=e.current.getCellParams(D,N);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${D} and field=${N} is not editable.`)},[e]),y=c.useCallback((D,N)=>{if(e.current.getRowMode(D)!==N)throw new Error(`MUI: The row with id=${D} is not in ${N} mode.`)},[e]),m=c.useCallback((D,N)=>{if(!D.isEditable||e.current.getRowMode(D.id)===Cn.Edit)return;const H=e.current.getRowParams(D.id),K=x({},H,{field:D.field,reason:zl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,N)},[e]),C=c.useCallback(D=>{l.current=D},[]),b=c.useCallback((D,N)=>{D.isEditable&&e.current.getRowMode(D.id)!==Cn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==D.id){if(!e.current.getRow(D.id)||e.current.getRowMode(D.id)===Cn.View)return;const K=e.current.getRowParams(D.id),Y=x({},K,{field:D.field,reason:Ji.rowFocusOut});e.current.publishEvent("rowEditStop",Y,N)}}))},[e]);c.useEffect(()=>()=>{clearTimeout(i.current)},[]);const w=c.useCallback((D,N)=>{if(D.cellMode===Cn.Edit){if(N.which===229)return;let H;if(N.key==="Escape")H=Ji.escapeKeyDown;else if(N.key==="Enter")H=Ji.enterKeyDown;else if(N.key==="Tab"){const K=Qb(e).filter(Y=>e.current.getColumn(Y).type===o0?!0:e.current.isCellEditable(e.current.getCellParams(D.id,Y)));if(N.shiftKey?D.field===K[0]&&(H=Ji.shiftTabKeyDown):D.field===K[K.length-1]&&(H=Ji.tabKeyDown),N.preventDefault(),!H){const Y=K.findIndex(Q=>Q===D.field),Z=K[N.shiftKey?Y-1:Y+1];e.current.setCellFocus(D.id,Z)}}if(H){const K=x({},e.current.getRowParams(D.id),{reason:H,field:D.field});e.current.publishEvent("rowEditStop",K,N)}}else if(D.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:D,editMode:"row"}))return;if(i5(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=zl.printableKeyDown:N.key==="Enter"?H=zl.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=zl.deleteKeyDown),H){const Y=e.current.getRowParams(D.id),Z=x({},Y,{field:D.field,key:N.key,reason:H});e.current.publishEvent("rowEditStart",Z,N)}}},[e]),S=c.useCallback(D=>{const{id:N,field:H,reason:K,key:Y,columns:Z}=D,Q={id:N,fieldToFocus:H};if(K===zl.printableKeyDown)if(c.version.startsWith("17"))Q.deleteValue=!!H;else{const X=Z.find(J=>J.field===H);Q.initialValue=X.valueParser?X.valueParser(Y):Y}else K===zl.deleteKeyDown&&(Q.deleteValue=!!H);e.current.startRowEditMode(Q)},[e]),k=c.useCallback(D=>{const{id:N,reason:H,field:K}=D;e.current.runPendingEditCellValueMutation(N);let Y;H===Ji.enterKeyDown?Y="below":H===Ji.tabKeyDown?Y="right":H===Ji.shiftTabKeyDown&&(Y="left");const Z=H==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:Z,field:K,cellToFocusAfter:Y})},[e]);ut(e,"cellDoubleClick",g(m)),ut(e,"cellFocusIn",g(C)),ut(e,"cellFocusOut",g(b)),ut(e,"cellKeyDown",g(w)),ut(e,"rowEditStart",g(S)),ut(e,"rowEditStop",g(k)),En(e,"rowEditStart",t.onRowEditStart),En(e,"rowEditStop",t.onRowEditStop);const M=c.useCallback(D=>{if(t.editMode===Fi.Cell)return Cn.View;const N=so(e.current.state);return N[D]&&Object.keys(N[D]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),I=Ye(D=>{const N=D!==t.rowModesModel;p&&N&&p(D,{}),!(t.rowModesModel&&N)&&(r(D),o.current=D,e.current.publishEvent("rowModesModelChange",D))}),E=c.useCallback((D,N)=>{const H=x({},o.current);N!==null?H[D]=x({},N):delete H[D],I(H)},[I]),T=c.useCallback((D,N)=>{e.current.setState(H=>{const K=x({},H.editRows);return N!==null?K[D]=N:delete K[D],x({},H,{editRows:K})}),e.current.forceUpdate()},[e]),L=c.useCallback((D,N,H)=>{e.current.setState(K=>{const Y=x({},K.editRows);return H!==null?Y[D]=x({},Y[D],{[N]:x({},H)}):(delete Y[D][N],Object.keys(Y[D]).length===0&&delete Y[D]),x({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),O=c.useCallback(D=>{const{id:N}=D,H=oe(D,Dbe);y(N,Cn.View),E(N,x({mode:Cn.Edit},H))},[y,E]),R=Ye(D=>{const{id:N,fieldToFocus:H,deleteValue:K,initialValue:Y}=D,Q=ul(e).reduce((X,J)=>{if(!e.current.getCellParams(N,J).isEditable)return X;let fe=e.current.getCellValue(N,J),we=!1;return H===J&&(K||Y)&&(fe=K?"":Y,we=!0),X[J]={value:fe,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:we},X},{});T(N,Q),H&&e.current.setCellFocus(N,H)}),V=c.useCallback(D=>{const{id:N}=D,H=oe(D,Abe);y(N,Cn.Edit),E(N,x({mode:Cn.View},H))},[y,E]),j=Ye(D=>{const{id:N,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=D;e.current.runPendingEditCellValueMutation(N);const Z=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(N,K,Y),T(N,null),E(N,null)};if(H){Z();return}const Q=so(e.current.state),X=e.current.getRow(N);if(Object.values(Q[N]).some(we=>we.isProcessingProps)){s.current[N].mode=Cn.Edit;return}if(Object.values(Q[N]).some(we=>we.error)){s.current[N].mode=Cn.Edit,E(N,{mode:Cn.Edit});return}const fe=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(a){const we=Ce=>{s.current[N].mode=Cn.Edit,E(N,{mode:Cn.Edit}),u?u(Ce):Lbe()};try{Promise.resolve(a(fe,X)).then(Ce=>{e.current.updateRows([Ce]),Z()}).catch(we)}catch(Ce){we(Ce)}}else e.current.updateRows([fe]),Z()}),_=c.useCallback(D=>{const{id:N,field:H,value:K,debounceMs:Y,unstable_skipValueParser:Z}=D;v(N,H);const Q=e.current.getColumn(H),X=e.current.getRow(N);let J=K;Q.valueParser&&!Z&&(J=Q.valueParser(K,e.current.getCellParams(N,H)));let ne=so(e.current.state),fe=x({},ne[N][H],{value:J,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||L(N,H,fe),new Promise(we=>{const Ce=[];if(Q.preProcessEditCellProps){const ae=fe.value!==ne[N][H].value;fe=x({},fe,{isProcessingProps:!0}),L(N,H,fe);const be=ne[N],de=oe(be,[H].map(uh)),ke=Promise.resolve(Q.preProcessEditCellProps({id:N,row:X,props:fe,hasChanged:ae,otherFieldsProps:de})).then(Ie=>{if(e.current.getRowMode(N)===Cn.View){we(!1);return}ne=so(e.current.state),Ie=x({},Ie,{isProcessingProps:!1}),Ie.value=Q.preProcessEditCellProps?ne[N][H].value:J,L(N,H,Ie)});Ce.push(ke)}Object.entries(ne[N]).forEach(([ae,be])=>{if(ae===H)return;const de=e.current.getColumn(ae);if(!de.preProcessEditCellProps)return;be=x({},be,{isProcessingProps:!0}),L(N,ae,be),ne=so(e.current.state);const ke=ne[N],Ie=oe(ke,[ae].map(uh)),le=Promise.resolve(de.preProcessEditCellProps({id:N,row:X,props:be,hasChanged:!1,otherFieldsProps:Ie})).then(Ee=>{if(e.current.getRowMode(N)===Cn.View){we(!1);return}Ee=x({},Ee,{isProcessingProps:!1}),L(N,ae,Ee)});Ce.push(le)}),Promise.all(Ce).then(()=>{e.current.getRowMode(N)===Cn.Edit?(ne=so(e.current.state),we(!ne[N][H].error)):we(!1)})})},[e,v,L]),A=c.useCallback(D=>{const N=so(e.current.state),H=e.current.getRow(D);if(!N[D])return e.current.getRow(D);let K=x({},H);return Object.entries(N[D]).forEach(([Y,Z])=>{const Q=e.current.getColumn(Y);Q.valueSetter?K=Q.valueSetter({value:Z.value,row:K}):K[Y]=Z.value}),K},[e]),F={getRowMode:M,startRowEditMode:O,stopRowEditMode:V},z={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:A};At(e,F,"public"),At(e,z,"private"),c.useEffect(()=>{f&&I(f)},[f,I]),c.useEffect(()=>{const D=Gv(e),N=s.current;s.current=f5(n),Object.entries(n).forEach(([H,K])=>{var Y,Z;const Q=((Y=N[H])==null?void 0:Y.mode)||Cn.View,X=(Z=D[H])!=null?Z:H;K.mode===Cn.Edit&&Q===Cn.View?R(x({id:X},K)):K.mode===Cn.View&&Q===Cn.Edit&&j(x({id:X},K))})},[e,n,R,j])},Nbe=e=>x({},e,{editRows:{}}),Bbe=(e,t)=>{Obe(e,t),Fbe(e,t);const n=c.useRef({}),{isCellEditable:r}=t,o=c.useCallback(g=>sh(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),s=(g,v,y,m)=>{if(!y){m();return}if(n.current[g]||(n.current[g]={}),n.current[g][v]){const[w]=n.current[g][v];clearTimeout(w)}const C=()=>{const[w]=n.current[g][v];clearTimeout(w),m(),delete n.current[g][v]},b=setTimeout(()=>{m(),delete n.current[g][v]},y);n.current[g][v]=[b,C]};c.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([v,y])=>{Object.keys(y).forEach(m=>{const[C]=g[v][m];clearTimeout(C),delete g[v][m]})})}},[]);const i=c.useCallback((g,v)=>{if(n.current[g]){if(!v)Object.keys(n.current[g]).forEach(y=>{const[,m]=n.current[g][y];m()});else if(n.current[g][v]){const[,y]=n.current[g][v];y()}}},[]),l=c.useCallback(g=>{const{id:v,field:y,debounceMs:m}=g;return new Promise(C=>{s(v,y,m,()=>rt(void 0,null,function*(){const b=t.editMode===Fi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,y)===un.Edit){const w=yield b(g);C(w)}}))})},[e,t.editMode]),a=c.useCallback((g,v)=>t.editMode===Fi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,v):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),u=c.useCallback((g,v)=>{var y,m;return(y=(m=so(e.current.state)[g])==null?void 0:m[v])!=null?y:null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:a,unstable_getEditCellMeta:u},p={runPendingEditCellValueMutation:i};At(e,f,"public"),At(e,p,"private")},zbe=(e,t,n)=>(n.current.caches.rows=Vg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),x({},e,{rows:Z4({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),Vbe=(e,t)=>{const n=Xr(e,"useGridRows"),r=zc(e,t),o=c.useRef(Date.now()),s=iI(),i=c.useCallback(j=>{const _=ta(e)[j];if(_)return _;const A=e.current.getRowNode(j);return A&&sh(A)?{[Zu]:j}:null},[e]),l=t.getRowId,a=c.useCallback(j=>Zu in j?j[Zu]:l?l(j):j.id,[l]),u=c.useMemo(()=>r.rows.reduce((j,{id:_},A)=>(j[_]=A,j),{}),[r.rows]),f=c.useCallback(({cache:j,throttle:_})=>{const A=()=>{o.current=Date.now(),e.current.setState(z=>x({},z,{rows:Z4({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Zs(e),previousTreeDepths:YR(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=j,!_){A();return}const F=t.throttleRowsMs-(Date.now()-o.current);if(F>0){s.start(F,A);return}A()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=c.useCallback(j=>{n.debug(`Updating all rows, new length ${j.length}`);const _=Vg({rows:j,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),A=e.current.caches.rows;_.rowsBeforePartialUpdates=A.rowsBeforePartialUpdates,f({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),g=c.useCallback(j=>{if(t.signature===$i.DataGrid&&j.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(`
|
|
355
|
+
`));const _=[];j.forEach(F=>{const z=Yv(F,t.getRowId,"A row was provided without id when calling updateRows():"),D=e.current.getRowNode(z);if((D==null?void 0:D.type)==="pinnedRow"){const N=e.current.caches.pinnedRows,H=N.idLookup[z];H&&(N.idLookup[z]=x({},H,F))}else _.push(F)});const A=Ope({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:A,throttle:!0})},[t.signature,t.getRowId,f,e]),v=c.useCallback(()=>{const j=ag(e),_=ta(e);return new Map(j.map(A=>{var F;return[A,(F=_[A])!=null?F:{}]}))},[e]),y=c.useCallback(()=>Zb(e),[e]),m=c.useCallback(()=>ag(e),[e]),C=c.useCallback(j=>u[j],[u]),b=c.useCallback((j,_)=>{const A=e.current.getRowNode(j);if(!A)throw new Error(`MUI: No row with id #${j} found`);if(A.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=x({},A,{childrenExpanded:_});e.current.setState(z=>x({},z,{rows:x({},z.rows,{tree:x({},z.rows.tree,{[j]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),w=c.useCallback(j=>{var _;return(_=Zs(e)[j])!=null?_:null},[e]),S=c.useCallback(({skipAutoGeneratedRows:j=!0,groupId:_,applySorting:A,applyFiltering:F})=>{const z=Zs(e);let D;if(A){const N=z[_];if(!N)return[];const H=Yk(e);D=[];const K=H.findIndex(Y=>Y===_)+1;for(let Y=K;Y<H.length&&z[H[Y]].depth>N.depth;Y+=1){const Z=H[Y];(!j||!sh(z[Z]))&&D.push(Z)}}else D=Jk(z,_,j);if(F){const N=K4(e);D=D.filter(H=>N[H]!==!1)}return D},[e]),k=c.useCallback((j,_)=>{const A=e.current.getRowNode(j);if(!A)throw new Error(`MUI: No row with id #${j} found`);if(A.parent!==io)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(A.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(F=>{const z=Zs(F,e.current.instanceId)[io],D=z.children,N=D.findIndex(K=>K===j);if(N===-1||N===_)return F;n.debug(`Moving row ${j} to index ${_}`);const H=[...D];return H.splice(_,0,H.splice(N,1)[0]),x({},F,{rows:x({},F.rows,{tree:x({},F.rows.tree,{[io]:x({},z,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=c.useCallback((j,_)=>{if(t.signature===$i.DataGrid&&_.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(`
|
|
356
|
+
`));if(_.length===0)return;if(Jb(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=x({},Zs(e)),z=x({},ta(e)),D=x({},Gv(e)),N=F[io],H=[...N.children];for(let Y=0;Y<_.length;Y+=1){const Z=_[Y],Q=Yv(Z,t.getRowId,"A row was provided without id when calling replaceRows()."),[X]=H.splice(j+Y,1,Q);delete z[X],delete D[X],delete F[X];const J={id:Q,depth:0,parent:io,type:"leaf",groupingKey:null};z[Q]=Z,D[Q]=Q,F[Q]=J}F[io]=x({},N,{children:H});const K=H.filter(Y=>F[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=z,e.current.caches.rows.dataRowIdToIdLookup=D,e.current.setState(Y=>x({},Y,{rows:x({},Y.rows,{dataRowIdToModelLookup:z,dataRowIdToIdLookup:D,dataRowIds:K,tree:F})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),I={getRow:i,getRowId:a,getRowModels:v,getRowsCount:y,getAllRowIds:m,setRows:p,updateRows:g,getRowNode:w,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:M},E={setRowIndex:k,setRowChildrenExpansion:b,getRowGroupChildren:S},T=c.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let j;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?j=x({},e.current.caches.rows,{updates:{type:"full",rows:ag(e)}}):j=Vg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:j,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),L=c.useCallback(j=>{j==="rowTreeCreation"&&T()},[T]),O=c.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==hpe(e)&&T()},[e,T]);ut(e,"activeStrategyProcessorChange",L),ut(e,"strategyAvailabilityChange",O);const R=c.useCallback(()=>{e.current.setState(j=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Zs(j,e.current.instanceId),treeDepths:YR(j,e.current.instanceId),dataRowIds:ag(j,e.current.instanceId),dataRowIdToModelLookup:ta(j,e.current.instanceId),dataRowIdToIdLookup:Gv(j,e.current.instanceId)});return x({},j,{rows:x({},j.rows,_,{totalTopLevelRowCount:X4({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);cI(e,"hydrateRows",R),At(e,I,"public"),At(e,E,t.signature===$i.DataGrid?"private":"public");const V=c.useRef(!0);c.useEffect(()=>{if(V.current){V.current=!1;return}const j=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,A=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(j){_||(e.current.setState(F=>x({},F,{rows:x({},F.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),A||(e.current.setState(F=>x({},F,{rows:x({},F.rows,{totalRowCount:Math.max(t.rowCount||0,F.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,F.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),f({cache:Vg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,f,e])},jbe=e=>{const t={[io]:x({},$pe(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:io,type:"leaf",groupingKey:null}}return{groupingName:$c,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Hbe=({previousTree:e,actions:t})=>{const n=x({},e),r={};for(let i=0;i<t.remove.length;i+=1){const l=t.remove[i];r[l]=!0,delete n[l]}for(let i=0;i<t.insert.length;i+=1){const l=t.insert[i];n[l]={id:l,depth:0,parent:io,type:"leaf",groupingKey:null}}const o=n[io];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(i=>!r[i])),n[io]=x({},o,{children:s}),{groupingName:$c,tree:n,treeDepths:{0:s.length},dataRowIds:s}},Ube=e=>e.updates.type==="full"?jbe(e.updates.rows):Hbe({previousTree:e.previousTree,actions:e.updates.actions}),Wbe=e=>{ny(e,$c,"rowTreeCreation",Ube)},H5=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Gbe=(e,t)=>{var n;return x({},e,{rowSelection:t.rowSelection?(n=H5(t.rowSelectionModel))!=null?n:[]:[]})},Kbe=(e,t)=>{const n=Xr(e,"useGridSelection"),r=_=>(...A)=>{t.rowSelection&&_(...A)},o=c.useMemo(()=>H5(t.rowSelectionModel,bs(e.current.state)),[e,t.rowSelectionModel]),s=c.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:bs,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:u}=t,f=!l||i,p=zc(e,t),g=c.useCallback(_=>{var A;let F=_;const z=(A=s.current)!=null?A:_,D=e.current.isRowSelected(_);if(D){const N=Sp(e),H=N.findIndex(Y=>Y===z),K=N.findIndex(Y=>Y===F);if(H===K)return;H>K?F=N[K+1]:F=N[K-1]}s.current=_,e.current.selectRowRange({startId:z,endId:F},!D)},[e]),v=c.useCallback(_=>{if(t.signature===$i.DataGrid&&!t.checkboxSelection&&Array.isArray(_)&&_.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
|
|
357
|
+
`));bs(e.current.state)!==_&&(n.debug("Setting selection model"),e.current.setState(F=>x({},F,{rowSelection:t.rowSelection?_:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=c.useCallback(_=>bs(e.current.state).includes(_),[e]),m=c.useCallback(_=>{if(u&&!u(e.current.getRowParams(_)))return!1;const A=e.current.getRowNode(_);return!((A==null?void 0:A.type)==="footer"||(A==null?void 0:A.type)==="pinnedRow")},[e,u]),C=c.useCallback(()=>Nme(e),[e]),b=c.useCallback((_,A=!0,F=!1)=>{if(e.current.isRowSelectable(_))if(s.current=_,F)n.debug(`Setting selection for row ${_}`),e.current.setRowSelectionModel(A?[_]:[]);else{n.debug(`Toggling selection for row ${_}`);const D=bs(e.current.state).filter(H=>H!==_);A&&D.push(_),(D.length<2||f)&&e.current.setRowSelectionModel(D)}},[e,n,f]),w=c.useCallback((_,A=!0,F=!1)=>{n.debug("Setting selection for several rows");const z=_.filter(H=>e.current.isRowSelectable(H));let D;if(F)D=A?z:[];else{const H=x({},Jv(e));z.forEach(K=>{A?H[K]=K:delete H[K]}),D=Object.values(H)}(D.length<2||f)&&e.current.setRowSelectionModel(D)},[e,n,f]),S=c.useCallback(({startId:_,endId:A},F=!0,z=!1)=>{if(!e.current.getRow(_)||!e.current.getRow(A))return;n.debug(`Expanding selection from row ${_} to row ${A}`);const D=Sp(e),N=D.indexOf(_),H=D.indexOf(A),[K,Y]=N>H?[H,N]:[N,H],Z=D.slice(K,Y+1);e.current.selectRows(Z,F,z)},[e,n]),k={selectRow:b,setRowSelectionModel:v,getSelectedRows:C,isRowSelected:y,isRowSelectable:m},M={selectRows:w,selectRowRange:S};At(e,k,"public"),At(e,M,t.signature===$i.DataGrid?"private":"public");const I=c.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const _=bs(e.current.state),A=ta(e),F=x({},Jv(e));let z=!1;_.forEach(D=>{A[D]||(delete F[D],z=!0)}),z&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),E=c.useCallback((_,A)=>{const F=A.metaKey||A.ctrlKey,z=!i&&!F&&!Che(A),D=!f||z,N=e.current.isRowSelected(_);D?e.current.selectRow(_,z?!0:!N,!0):e.current.selectRow(_,!N,!1)},[e,f,i]),T=c.useCallback((_,A)=>{var F;if(a)return;const z=(F=A.target.closest(`.${se.cell}`))==null?void 0:F.getAttribute("data-field");if(z===Yd.field||z===lI)return;if(z){const N=e.current.getColumn(z);if((N==null?void 0:N.type)===o0)return}e.current.getRowNode(_.id).type!=="pinnedRow"&&(A.shiftKey&&(f||i)?g(_.id):E(_.id,A))},[a,f,i,e,g,E]),L=c.useCallback((_,A)=>{if(f&&A.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),O=c.useCallback((_,A)=>{A.nativeEvent.shiftKey?g(_.id):e.current.selectRow(_.id,_.value)},[e,g]),R=c.useCallback(_=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?v5(e):Sp(e);e.current.selectRows(F,_.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=c.useCallback((_,A)=>{if(e.current.getCellMode(_.id,_.field)!==un.Edit&&A.currentTarget.contains(A.target)){if(Zv(A.key)&&A.shiftKey){const F=Bo(e);if(F&&F.id!==_.id){A.preventDefault();const z=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!z,!0);return}const D=e.current.getRowIndexRelativeToVisibleRows(F.id),N=e.current.getRowIndexRelativeToVisibleRows(_.id);let H,K;D>N?z?(H=N,K=D-1):(H=N,K=D):z?(H=D+1,K=N):(H=D,K=N);const Y=p.rows.slice(H,K+1).map(Z=>Z.id);e.current.selectRows(Y,!z);return}}if(A.key===" "&&A.shiftKey){A.preventDefault(),E(_.id,A);return}A.key==="a"&&(A.ctrlKey||A.metaKey)&&(A.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,E,w,p.rows,f]);ut(e,"sortedRowsSet",r(I)),ut(e,"rowClick",r(T)),ut(e,"rowSelectionCheckboxChange",r(O)),ut(e,"headerSelectionCheckboxChange",R),ut(e,"cellMouseDown",r(L)),ut(e,"cellKeyDown",r(V)),c.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),c.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;c.useEffect(()=>{if(j||!t.rowSelection)return;const _=bs(e.current.state);if(m){const A=_.filter(F=>m(F));A.length<_.length&&e.current.setRowSelectionModel(A)}},[e,m,j,t.rowSelection]),c.useEffect(()=>{if(!t.rowSelection||j)return;const _=bs(e.current.state);!f&&_.length>1&&e.current.setRowSelectionModel([])},[e,f,i,j,t.rowSelection])},qbe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",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",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"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","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",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"},Ybe=e=>{const{classes:t}=e;return c.useMemo(()=>_e({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},jt,t),[t])},Qbe=(e,t)=>{const n={classes:t.classes},r=Ybe(n),o=c.useCallback(s=>{const i=x({},Yd,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[Vl]!=null;return l&&!a?(s.lookup[Vl]=i,s.orderedFields=[Vl,...s.orderedFields]):!l&&a?(delete s.lookup[Vl],s.orderedFields=s.orderedFields.filter(u=>u!==Vl)):l&&a&&(s.lookup[Vl]=x({},i,s.lookup[Vl])),s},[e,r,t.checkboxSelection]);hr(e,"hydrateColumns",o)},Xbe=(e,t)=>{var n,r,o;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return x({},e,{sorting:{sortModel:y5(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Zbe=(e,t)=>{var n;const r=Xr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ys,changeEvent:"sortModelChange"});const o=c.useCallback((I,E)=>{const T=ys(e),L=T.findIndex(R=>R.field===I);let O=[...T];return L>-1?E?O.splice(L,1,E):O.splice(L,1):O=[...T,E],O},[e]),s=c.useCallback((I,E)=>{var T;const O=ys(e).find(V=>V.field===I.field);if(O){var R;const V=E===void 0?eO((R=I.sortingOrder)!=null?R:t.sortingOrder,O.sort):E;return V==null?void 0:x({},O,{sort:V})}return{field:I.field,sort:E===void 0?eO((T=I.sortingOrder)!=null?T:t.sortingOrder):E}},[e,t.sortingOrder]),i=c.useCallback((I,E)=>E==null||E.sortable===!1?I:(E.sortingOrder||t.sortingOrder).some(L=>!!L)?[...I,"columnMenuSortItem"]:I,[t.sortingOrder]),l=c.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),x({},I,{sorting:x({},I.sorting,{sortedRows:Jk(Zs(e),io,!1)})});const E=ys(I,e.current.instanceId),T=Hme(E,e),L=e.current.applyStrategyProcessor("sorting",{sortRowList:T});return x({},I,{sorting:x({},I.sorting,{sortedRows:L})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=c.useCallback(I=>{ys(e)!==I&&(r.debug("Setting sort model"),e.current.setState(JR(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=c.useCallback((I,E,T)=>{if(!I.sortable)return;const L=s(I,E);let O;!T||t.disableMultipleColumnsSorting?O=L?[L]:[]:O=o(I.field,L),e.current.setSortModel(O)},[e,o,s,t.disableMultipleColumnsSorting]),f=c.useCallback(()=>ys(e),[e]),p=c.useCallback(()=>Qk(e).map(E=>E.model),[e]),g=c.useCallback(()=>Yk(e),[e]),v=c.useCallback(I=>e.current.getSortedRowIds()[I],[e]);At(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:g,getRowIdFromRowIndex:v,setSortModel:a,sortColumn:u,applySorting:l},"public");const m=c.useCallback((I,E)=>{var T;const L=ys(e);return!E.exportOnlyDirtyModels||t.sortModel!=null||((T=t.initialState)==null||(T=T.sorting)==null?void 0:T.sortModel)!=null||L.length>0?x({},I,{sorting:{sortModel:L}}):I},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=c.useCallback((I,E)=>{var T;const L=(T=E.stateToRestore.sorting)==null?void 0:T.sortModel;return L==null?I:(e.current.setState(JR(L,t.disableMultipleColumnsSorting)),x({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=c.useCallback(I=>{const E=Zs(e),T=E[io],L=I.sortRowList?I.sortRowList(T.children.map(O=>E[O])):[...T.children];return T.footerId!=null&&L.push(T.footerId),L},[e]);hr(e,"exportState",m),hr(e,"restoreState",C),ny(e,$c,"sorting",b);const w=c.useCallback(({colDef:I},E)=>{const T=E.shiftKey||E.metaKey||E.ctrlKey;u(I,void 0,T)},[u]),S=c.useCallback(({colDef:I},E)=>{vhe(E.key)&&!E.ctrlKey&&!E.metaKey&&u(I,void 0,E.shiftKey)},[u]),k=c.useCallback(()=>{const I=ys(e),E=Gd(e);if(I.length>0){const T=I.filter(L=>E[L.field]);T.length<I.length&&e.current.setSortModel(T)}},[e]),M=c.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);hr(e,"columnMenu",i),ut(e,"columnHeaderClick",w),ut(e,"columnHeaderKeyDown",S),ut(e,"rowsSet",e.current.applySorting),ut(e,"columnsChange",k),ut(e,"activeStrategyProcessorChange",M),Lh(()=>{e.current.applySorting()}),Nt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function kO(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const Jbe=(e,t)=>{const n=yn(),r=Xr(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,i=nt(e,Da),l=c.useCallback(p=>{const g=Zb(e),v=Dr(e);if(!(p.rowIndex==null)&&g===0||v.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let m={};if(p.colIndex!=null){const S=Pd(e);let k;if(typeof p.rowIndex!="undefined"){var C;const M=(C=i[p.rowIndex])==null?void 0:C.id,I=e.current.unstable_getCellColSpanInfo(M,p.colIndex);I&&!I.spannedByColSpan&&(k=I.cellProps.width)}typeof k=="undefined"&&(k=v[p.colIndex].computedWidth),m.left=kO({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:k,offsetTop:S[p.colIndex]})}if(p.rowIndex!=null){var b,w;const S=ah(e.current.state),k=Dme(e),M=Ame(e),I=t.pagination?p.rowIndex-k*M:p.rowIndex,E=S.positions[I+1]?S.positions[I+1]-S.positions[I]:S.currentPageTotalHeight-S.positions[I],T=((b=s.current.querySelector(`.${se["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,L=((w=s.current.querySelector(`.${se["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;m.top=kO({clientHeight:s.current.clientHeight-T-L,scrollTop:s.current.scrollTop,offsetHeight:E,offsetTop:S.positions[I]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,p),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,s,t.pagination,i]),a=c.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const g=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=g*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),u=c.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);At(e,{scroll:a,scrollToIndexes:l,getScrollPosition:u},"public")};function e0e(e,t){En(e,"columnHeaderClick",t.onColumnHeaderClick),En(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),En(e,"columnHeaderOver",t.onColumnHeaderOver),En(e,"columnHeaderOut",t.onColumnHeaderOut),En(e,"columnHeaderEnter",t.onColumnHeaderEnter),En(e,"columnHeaderLeave",t.onColumnHeaderLeave),En(e,"cellClick",t.onCellClick),En(e,"cellDoubleClick",t.onCellDoubleClick),En(e,"cellKeyDown",t.onCellKeyDown),En(e,"preferencePanelClose",t.onPreferencePanelClose),En(e,"preferencePanelOpen",t.onPreferencePanelOpen),En(e,"menuOpen",t.onMenuOpen),En(e,"menuClose",t.onMenuClose),En(e,"rowDoubleClick",t.onRowDoubleClick),En(e,"rowClick",t.onRowClick),En(e,"stateChange",t.onStateChange)}const t0e=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let s=!1,i=!1;return(r||o)&&(s=r,i=e.height+(s?n:0)>t.height,i&&(s=e.width+n>t.width)),{hasScrollX:s,hasScrollY:i}};function n0e(e,t){const n=Xr(e,"useResizeContainer"),r=c.useRef(!1),o=c.useRef(null),s=c.useRef(null),i=nt(e,ah),l=nt(e,qd),a=Math.floor(t.rowHeight*l),u=uI(e,t.columnHeaderHeight),f=c.useCallback(()=>{var E;const T=(E=e.current.rootElementRef)==null?void 0:E.current,L=qk(e),O=J4(e);if(!o.current)return;let R;if(t.scrollbarSize!=null)R=t.scrollbarSize;else if(!L||!T)R=0;else{const N=fn(T).createElement("div");N.style.width="99px",N.style.height="99px",N.style.position="absolute",N.style.overflow="scroll",N.className="scrollDiv",T.appendChild(N),R=N.offsetWidth-N.clientWidth,T.removeChild(N)}let V,j,_;if(t.autoHeight)_=!1,j=Math.round(L)>Math.round(o.current.width),V={width:o.current.width,height:i.currentPageTotalHeight+(j?R:0)};else{V={width:o.current.width,height:Math.max(o.current.height-u,0)};const D=t0e({content:{width:Math.round(L),height:i.currentPageTotalHeight},container:{width:Math.round(V.width),height:V.height-O.top-O.bottom},scrollBarSize:R});_=D.hasScrollY,j=D.hasScrollX}const A={width:V.width-(_?R:0),height:V.height-(j?R:0)},F={viewportOuterSize:V,viewportInnerSize:A,hasScrollX:j,hasScrollY:_,scrollBarSize:R},z=s.current;s.current=F,(F.viewportInnerSize.width!==(z==null?void 0:z.viewportInnerSize.width)||F.viewportInnerSize.height!==(z==null?void 0:z.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u]),[p,g]=c.useState(),v=c.useMemo(()=>Ta(g,60),[]),y=c.useRef();Nt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const m=c.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=c.useCallback(()=>s.current,[]),b=c.useCallback(()=>{const E=e.current.getRootDimensions();if(!E)return 0;const T=ey(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const O=e.current.getRenderContext(),R=O.lastRowIndex-O.firstRowIndex;return Math.min(R-1,T.rows.length)}const L=Math.floor(E.viewportInnerSize.height/a);return Math.min(L,T.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),w=c.useCallback(()=>{var E,T,L;const O=(E=e.current.mainElementRef)==null?void 0:E.current;if(!O)return;const V=Yo(O).getComputedStyle(O),j=parseFloat(V.height)||0,_=parseFloat(V.width)||0,A=j!==((T=y.current)==null?void 0:T.height),F=_!==((L=y.current)==null?void 0:L.width);if(!y.current||A||F){const z={width:_,height:j};e.current.publishEvent("resize",z),y.current=z}},[e]),S={resize:m,getRootDimensions:C},k={getViewportPageSize:b,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:w};At(e,S,"public"),At(e,k,"private");const M=c.useRef(!0),I=c.useCallback(E=>{o.current=E;const T=/jsdom/.test(window.navigator.userAgent);if(E.height===0&&!r.current&&!t.autoHeight&&!T&&(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(`
|
|
358
|
+
`)),r.current=!0),E.width===0&&!r.current&&!T&&(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(`
|
|
359
|
+
`)),r.current=!0),M.current){g(E),M.current=!1;return}v(E)},[t.autoHeight,v,n]);Nt(()=>f(),[f]),En(e,"sortedRowsSet",f),En(e,"paginationModelChange",f),En(e,"columnsChange",f),ut(e,"resize",I),En(e,"debouncedResize",t.onResize)}const r0e=["style"],o0e=["style"];function Ju(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),s=t[o];return e<=s?Ju(e,t,n,o):Ju(e,t,o+1,r)}function s0e(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Ju(e,t,Math.floor(n/2),Math.min(n,t.length))}const Kl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[kd(e-n,r,o),kd(t+n,r,o)],U5=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,i0e={maxSize:3},l0e=e=>{var t,n;const r=Oa(),o=ct(),s=nt(r,Dr),i=nt(r,Qme),l=nt(r,S5),{ref:a,onRenderZonePositioning:u,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:g}=e,v=yn(),y=nt(r,Pd),m=nt(r,qk),C=nt(r,Bo),b=nt(r,qv),w=nt(r,ah),S=nt(r,Jv),k=zc(r,o),M=c.useRef(null),I=c.useRef(null),E=It(a,I),[T,L]=c.useState(null),O=c.useRef(T),R=c.useRef({top:0,left:0}),[V,j]=c.useState({width:null,height:null}),_=c.useRef(m),[A,F]=c.useState(null),z=c.useRef(Object.create(null)),D=c.useRef(),N=c.useRef(),H=c.useRef(Yb((le,Ee,me,Me,ue,ce)=>{let ie;const ge=le.slice(Ee,me);return ce>-1&&(Ee>ce&&ce>=Me||me<ce&&ce<ue)&&(ie=ce),{focusedCellColumnIndexNotInRange:ie,renderedColumns:ge}},i0e)),K=c.useMemo(()=>C!==null?s.findIndex(le=>le.field===C.field):-1,[C,s]),Y=c.useCallback(le=>{var Ee,me;const Me=r.current.getLastMeasuredRowIndex();let ue=Me===1/0;(Ee=k.range)!=null&&Ee.lastRowIndex&&!ue&&(ue=Me>=k.range.lastRowIndex);const ce=kd(Me-(((me=k.range)==null?void 0:me.firstRowIndex)||0),0,w.positions.length);return ue||w.positions[ce]>=le?Ju(le,w.positions):s0e(le,w.positions,ce)},[r,(t=k.range)==null?void 0:t.firstRowIndex,(n=k.range)==null?void 0:n.lastRowIndex,w.positions]),Z=c.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:k.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:le,left:Ee}=R.current,me=Math.min(Y(le),w.positions.length-1),Me=o.autoHeight?me+k.rows.length:Y(le+V.height);let ue=0,ce=y.length;if(l){let ie=!1;const[ge,Te]=Kl({firstIndex:me,lastIndex:Me,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer});for(let Ne=ge;Ne<Te&&!ie;Ne+=1){const Ge=k.rows[Ne];ie=r.current.rowHasAutoHeight(Ge.id)}ie||(ue=Ju(Math.abs(Ee),y),ce=Ju(Math.abs(Ee)+V.width,y))}return{firstRowIndex:me,lastRowIndex:Me,firstColumnIndex:ue,lastColumnIndex:ce}},[i,l,Y,w.positions.length,o.autoHeight,o.rowBuffer,k.rows,y,s.length,r,V]);Nt(()=>{i?(I.current.scrollLeft=0,I.current.scrollTop=0):M.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Nt(()=>{j({width:I.current.clientWidth,height:I.current.clientHeight})},[w.currentPageTotalHeight]);const Q=c.useCallback(()=>{I.current&&j({width:I.current.clientWidth,height:I.current.clientHeight})},[]);ut(r,"debouncedResize",Q);const X=c.useCallback(le=>{const[Ee,me]=Kl({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer}),[Me]=Kl({firstIndex:le.firstColumnIndex,lastIndex:le.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),ue=Vx({firstColumnToRender:Me,apiRef:r,firstRowToRender:Ee,lastRowToRender:me,visibleRows:k.rows}),ce=v.direction==="ltr"?1:-1,ie=ah(r.current.state).positions[Ee],ge=ce*Pd(r)[ue];M.current.style.transform=`translate3d(${ge}px, ${ie}px, 0px)`,typeof u=="function"&&u({top:ie,left:ge})},[r,k.rows,u,f,p,o.columnBuffer,o.rowBuffer,v.direction]),J=c.useCallback(()=>O.current,[]),ne=c.useCallback(le=>{if(O.current&&U5(le,O.current)){X(le);return}L(le),X(le);const[Ee,me]=Kl({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ee,lastRowToRender:me}),O.current=le},[r,L,O,k.rows.length,o.rowBuffer,X]);Nt(()=>{if(V.width==null)return;const le=Z();ne(le);const{top:Ee,left:me}=R.current,Me={top:Ee,left:me,renderContext:le};r.current.publishEvent("scrollPositionChange",Me)},[r,Z,V.width,ne]);const fe=Ye(le=>{const{scrollTop:Ee,scrollLeft:me}=le.currentTarget;if(R.current.top=Ee,R.current.left=me,!O.current||Ee<0||v.direction==="ltr"&&me<0||v.direction==="rtl"&&me>0)return;const Me=i?Z():O.current,ue=Math.abs(Me.firstRowIndex-O.current.firstRowIndex),ce=Math.abs(Me.lastRowIndex-O.current.lastRowIndex),ie=Math.abs(Me.firstColumnIndex-O.current.firstColumnIndex),ge=Math.abs(Me.lastColumnIndex-O.current.lastColumnIndex),Te=ue>=o.rowThreshold||ce>=o.rowThreshold||ie>=o.columnThreshold||ge>=o.columnThreshold||_.current!==m;r.current.publishEvent("scrollPositionChange",{top:Ee,left:me,renderContext:Te?Me:O.current},le),Te&&(Od.flushSync(()=>{ne(Me)}),_.current=m)}),we=Ye(le=>{r.current.publishEvent("virtualScrollerWheel",{},le)}),Ce=Ye(le=>{r.current.publishEvent("virtualScrollerTouchMove",{},le)}),ae=c.useMemo(()=>C!==null?k.rows.findIndex(le=>le.id===C.id):-1,[C,k.rows]);ut(r,"rowMouseOver",(le,Ee)=>{var me;Ee.currentTarget.contains(Ee.relatedTarget)||F((me=le.id)!=null?me:null)}),ut(r,"rowMouseOut",(le,Ee)=>{Ee.currentTarget.contains(Ee.relatedTarget)||F(null)});const be=(le={renderContext:T})=>{var Ee;const{onRowRender:me,renderContext:Me,minFirstColumn:ue=f,maxLastColumn:ce=p,availableSpace:ie=V.width,rowIndexOffset:ge=0,position:Te="center"}=le;if(!Me||ie==null)return null;const Ne=i?o.rowBuffer:0,Ge=i?o.columnBuffer:0,[Ve,Ue]=Kl({firstIndex:Me.firstRowIndex,lastIndex:Me.lastRowIndex,minFirstIndex:0,maxLastIndex:k.rows.length,buffer:Ne}),Le=[];if(le.rows)le.rows.forEach(gt=>{Le.push(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ue,maxLastColumn:ce,columns:s})});else{if(!k.range)return null;for(let gt=Ve;gt<Ue;gt+=1){const Rt=k.rows[gt];Le.push(Rt),r.current.calculateColSpan({rowId:Rt.id,minFirstColumn:ue,maxLastColumn:ce,columns:s})}}let pt=!1;if(ae>-1){const gt=k.rows[ae];(Ve>ae||Ue<ae)&&(pt=!0,ae>Ve?Le.push(gt):Le.unshift(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ue,maxLastColumn:ce,columns:s}))}const[Zt,Pt]=Kl({firstIndex:Me.firstColumnIndex,lastIndex:Me.lastColumnIndex,minFirstIndex:ue,maxLastIndex:ce,buffer:Ge}),wt=Vx({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ve,lastRowToRender:Ue,visibleRows:k.rows});let Xe=!1;(wt>K||Pt<K)&&(Xe=!0);const{focusedCellColumnIndexNotInRange:Oe,renderedColumns:qe}=H.current(s,wt,Pt,ue,ce,Xe?K:-1),mt=((Ee=o.slotProps)==null?void 0:Ee.row)||{},{style:vt}=mt,_t=oe(mt,r0e);(D.current!==g||N.current!==vt)&&(z.current=Object.create(null));const Qt=[];let Pn=!1;for(let gt=0;gt<Le.length;gt+=1){var bn;const{id:Rt,model:gr}=Le[gt],rr=pt&&C.id===Rt,Sl=pt?Ve+gt===k.rows.length:Ve+gt===k.rows.length-1,ss=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let _n;S[Rt]==null?_n=!1:_n=r.current.isRowSelectable(Rt),me&&me(Rt);const an=C!==null&&C.id===Rt?C.field:null,vr=Oe!==void 0&&s[Oe],po=vr&&an?[vr,...qe]:qe;let is=null;b!==null&&b.id===Rt&&(is=r.current.getCellParams(Rt,b.field).cellMode==="view"?b.field:null);const or=typeof g=="function"&&g(Rt,gr)||{},{style:$o}=or,di=oe(or,o0e);if(!z.current[Rt]){const Fr=x({},$o,vt);z.current[Rt]=Fr}let Er=ge+((k==null||(bn=k.range)==null?void 0:bn.firstRowIndex)||0)+Ve+gt;pt&&(C==null?void 0:C.id)===Rt?(Er=ae,Pn=!0):Pn&&(Er-=1),Qt.push($.jsx(o.slots.row,x({row:gr,rowId:Rt,focusedCellColumnIndexNotInRange:Oe,isNotVisible:rr,rowHeight:ss,focusedCell:an,tabbableCell:is,renderedColumns:po,visibleColumns:s,firstColumnToRender:wt,lastColumnToRender:Pt,selected:_n,index:Er,containerWidth:ie,isLastVisible:Sl,position:Te},di,_t,{hovered:A===Rt,style:z.current[Rt]}),Rt))}return D.current=g,N.current=vt,Qt},de=V.width&&m>=V.width,ke=c.useMemo(()=>{const le=Math.max(w.currentPageTotalHeight,1);let Ee=!1;I!=null&&I.current&&le<=(I==null?void 0:I.current.clientHeight)&&(Ee=!0);const me={width:de?m:"auto",height:le,minHeight:Ee?"100%":"auto"};return o.autoHeight&&k.rows.length===0&&(me.height=e5(r,o.rowHeight)),me},[r,I,m,w.currentPageTotalHeight,de,o.autoHeight,o.rowHeight,k.rows.length]);c.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,ke]);const Ie=c.useMemo(()=>{const le={};return de||(le.overflowX="hidden"),o.autoHeight&&(le.overflowY="hidden"),le},[de,o.autoHeight]);return r.current.register("private",{getRenderContext:J}),{renderContext:T,updateRenderZonePosition:X,getRows:be,getRootProps:(le={})=>x({ref:E,onScroll:fe,onWheel:we,onTouchMove:Ce},le,{style:le.style?x({},le.style,Ie):Ie,role:"presentation"}),getContentProps:({style:le}={})=>({style:le?x({},le,ke):ke,role:"presentation"}),getRenderZoneProps:()=>({ref:M,role:"rowgroup"})}},a0e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:s}=e;return _e({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},jt,t)};function c0e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:s,fields:i,height:l,colIndex:a,hasFocus:u,tabIndex:f,isLastColumn:p}=e,g=ct(),v=c.useRef(null),y=Vt(),m=nt(y,U4),C=n?m[n]:{},{headerName:b=n!=null?n:"",description:w="",headerAlign:S=void 0}=C;let k;const M=n&&((t=m[n])==null?void 0:t.renderHeaderGroup),I=c.useMemo(()=>({groupId:n,headerName:b,description:w,depth:o,maxDepth:s,fields:i,colIndex:a,isLastColumn:p}),[n,b,w,o,s,i,a,p]);n&&M&&(k=M(I));const E=g.showColumnVerticalBorder,T=x({},e,{classes:g.classes,showColumnBorder:E,headerAlign:S,depth:o,isDragging:!1}),L=b!=null?b:n,O=Kt(),R=n===null?`empty-group-cell-${O}`:n,V=a0e(T);c.useLayoutEffect(()=>{if(u){const z=v.current.querySelector('[tabindex="0"]')||v.current;z==null||z.focus()}},[y,u]);const j=c.useCallback(F=>z=>{z.currentTarget.contains(z.target)&&y.current.publishEvent(F,I,z)},[y,I]),_=c.useMemo(()=>({onKeyDown:j("columnGroupHeaderKeyDown"),onFocus:j("columnGroupHeaderFocus"),onBlur:j("columnGroupHeaderBlur")}),[j]),A=typeof C.headerClassName=="function"?C.headerClassName(I):C.headerClassName;return $.jsx(u5,x({ref:v,classes:V,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:k,headerClassName:A,description:w,elementId:R,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:L,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},_))}const IO=te("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function u0e(e){return!!e.target}const d0e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:u,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:y,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:C}=e,b=yn(),[w,S]=c.useState(""),[k,M]=c.useState(""),I=Oa(),E=nt(I,S5),T=ct(),L=c.useRef(null),O=It(t,L),[R,V]=c.useState(null),j=c.useRef(R),_=c.useRef(0),A=zc(I,T),F=uI(I,T.columnHeaderHeight),z=Math.floor(T.columnHeaderHeight*p),D=c.useCallback(Ce=>{R&&Ce&&U5(R,Ce)||V(Ce)},[R]);c.useEffect(()=>{I.current.columnHeadersContainerElementRef.current.scrollLeft=0},[I]);const N=c.useRef(Yb(sbe,{equalityCheck:(Ce,ae)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(be=>Ce[be]===ae[be])})),H=c.useCallback(Ce=>{const[ae,be]=Kl({firstIndex:Ce.firstRowIndex,lastIndex:Ce.lastRowIndex,minFirstIndex:0,maxLastIndex:A.rows.length,buffer:T.rowBuffer}),de=N.current({firstColumnIndex:Ce.firstColumnIndex,minColumnIndex:n,columnBuffer:T.columnBuffer,firstRowToRender:ae,lastRowToRender:be,apiRef:I,visibleRows:A.rows}),ke=b.direction==="ltr"?1:-1,Ie=de>0?_.current-ke*i[de]:_.current;L.current.style.transform=`translate3d(${-Ie}px, 0px, 0px)`},[i,n,T.columnBuffer,I,A.rows,T.rowBuffer,b.direction]);c.useLayoutEffect(()=>{R&&H(R)},[R,H]);const K=c.useCallback(({left:Ce,renderContext:ae=null},be)=>{var de,ke;if(!L.current||_.current===Ce&&((de=j.current)==null?void 0:de.firstColumnIndex)===(ae==null?void 0:ae.firstColumnIndex)&&((ke=j.current)==null?void 0:ke.lastColumnIndex)===(ae==null?void 0:ae.lastColumnIndex))return;_.current=Ce;let Ie=!1;ae!==j.current||!j.current?(u0e(be)?(Od.flushSync(()=>{D(ae)}),Ie=!0):D(ae),j.current=ae):Ie=!0,ae&&Ie&&H(ae)},[H,D]),Y=c.useCallback(Ce=>M(Ce.field),[]),Z=c.useCallback(()=>M(""),[]),Q=c.useCallback(Ce=>S(Ce.field),[]),X=c.useCallback(()=>S(""),[]);ut(I,"columnResizeStart",Y),ut(I,"columnResizeStop",Z),ut(I,"columnHeaderDragStart",Q),ut(I,"columnHeaderDragEnd",X),ut(I,"scrollPositionChange",K);const J=Ce=>{const{renderContext:ae=R,minFirstColumn:be=n,maxLastColumn:de=r.length}=Ce||{};if(!ae)return null;const[ke,Ie]=Kl({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:A.rows.length,buffer:T.rowBuffer}),le=E?N.current({firstColumnIndex:ae.firstColumnIndex,minColumnIndex:be,columnBuffer:T.columnBuffer,apiRef:I,firstRowToRender:ke,lastRowToRender:Ie,visibleRows:A.rows}):0,Ee=E?Math.min(ae.lastColumnIndex+T.columnBuffer,de):de;return{renderedColumns:r.slice(le,Ee),firstColumnToRender:le,lastColumnToRender:Ee,minFirstColumn:be,maxLastColumn:de}},ne=(Ce,ae={})=>{const be=J(Ce);if(be==null)return null;const{renderedColumns:de,firstColumnToRender:ke}=be,Ie=[];for(let le=0;le<de.length;le+=1){const Ee=de[le],me=ke+le,Me=me===0,ue=l!==null&&l.field===Ee.field||Me&&!C?0:-1,ce=u!==null&&u.field===Ee.field,ie=v.open&&v.field===Ee.field;Ie.push($.jsx(bme,x({},o[Ee.field],{columnMenuOpen:ie,filterItemsCounter:s[Ee.field]&&s[Ee.field].length,headerHeight:z,isDragging:Ee.field===w,colDef:Ee,colIndex:me,isResizing:k===Ee.field,hasFocus:ce,tabIndex:ue},ae),Ee.field))}return $.jsx(IO,{role:"row","aria-rowindex":g+1,ownerState:T,children:Ie})},fe=Ce=>{if(g===0)return null;const ae=J(Ce);if(ae==null||ae.renderedColumns.length===0)return null;const{firstColumnToRender:be,lastColumnToRender:de}=ae,ke=[],Ie=[];for(let me=0;me<g;me+=1){var le,Ee;const Me=m[me],ue=r[be].field,ce=(le=I.current.unstable_getColumnGroupPath(ue)[me])!=null?le:null,ie=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===ce&&wt.includes(ue)),ge=r[de-1].field,Te=(Ee=I.current.unstable_getColumnGroupPath(ge)[me])!=null?Ee:null,Ne=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===Te&&wt.includes(ge)),Ge=Me.slice(ie,Ne+1).map(Pt=>x({},Pt,{columnFields:Pt.columnFields.filter(wt=>y[wt]!==!1)})).filter(Pt=>Pt.columnFields.length>0),Ve=Ge[0].columnFields.indexOf(ue),Le=Ge[0].columnFields.slice(0,Ve).reduce((Pt,wt)=>{var Xe;const Oe=I.current.getColumn(wt);return Pt+((Xe=Oe.computedWidth)!=null?Xe:0)},0);let pt=be;const Zt=Ge.map(({groupId:Pt,columnFields:wt})=>{const Xe=f!==null&&f.depth===me&&wt.includes(f.field),Oe=a!==null&&a.depth===me&&wt.includes(a.field)?0:-1,qe={groupId:Pt,width:wt.reduce((mt,vt)=>mt+I.current.getColumn(vt).computedWidth,0),fields:wt,colIndex:pt,hasFocus:Xe,tabIndex:Oe};return pt+=wt.length,qe});Ie.push({leftOverflow:Le,elements:Zt})}return Ie.forEach((me,Me)=>{ke.push($.jsx(IO,{style:{height:`${z}px`,transform:`translateX(-${me.leftOverflow}px)`},role:"row","aria-rowindex":Me+1,ownerState:T,children:me.elements.map(({groupId:ue,width:ce,fields:ie,colIndex:ge,hasFocus:Te,tabIndex:Ne},Ge)=>$.jsx(c0e,{groupId:ue,width:ce,fields:ie,colIndex:ge,depth:Me,isLastColumn:ge===r.length-ie.length,maxDepth:Ie.length,height:z,hasFocus:Te,tabIndex:Ne},Ge))},Me))}),ke},we={minHeight:F,maxHeight:F,lineHeight:`${z}px`};return{renderContext:R,getColumnHeaders:ne,getColumnsToRender:J,getColumnGroupHeaders:fe,isDragging:!!w,getRootProps:(Ce={})=>x({style:we},Ce),getInnerProps:()=>({ref:O,role:"rowgroup"}),headerHeight:z}},f0e=["className"],p0e=e=>{const{classes:t}=e;return _e({root:["columnHeaders","withBorderColor"]},jt,t)},h0e=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),m0e=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,f0e),s=ct(),i=p0e(s);return $.jsx(h0e,x({ref:n,className:ye(r,i.root),ownerState:s},o,{role:"presentation"}))}),g0e=["isDragging","className"],v0e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return _e({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},jt,r)},y0e=Ir("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${se.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${se.columnHeaderDropZone} .${se.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${se["columnHeadersInner--scrollable"]} .${se.columnHeader}:last-child`]:{borderRight:"none"}})),b0e=c.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=oe(t,g0e),a=Vt(),u=ct(),f=x({},u,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=v0e(f);return $.jsx(y0e,x({ref:n,className:ye(i,p.root),ownerState:f},l))}),w0e=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],C0e=c.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:g,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:b}=t,w=oe(t,w0e),{isDragging:S,getRootProps:k,getInnerProps:M,getColumnHeaders:I,getColumnGroupHeaders:E}=d0e({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:g,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:b});return $.jsx(m0e,x({ref:n},k(w),{children:$.jsxs(b0e,x({isDragging:S},M(),{children:[E(),I()]}))}))}),x0e=r0(C0e),S0e=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return $.jsx(tI,x({ref:n},t,{children:o}))}),P0e=["sortingOrder"],k0e=c.memo(function(t){const{sortingOrder:n}=t,r=oe(t,P0e),o=ct(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?$.jsx(i,x({},r)):null}),I0e=["native"];function E0e(e){let{native:t}=e,n=oe(e,I0e);return t?$.jsx("option",x({},n)):$.jsx(Sr,x({},n))}const M0e={BooleanCellTrueIcon:vge,BooleanCellFalseIcon:Lw,ColumnMenuIcon:pge,OpenFilterButtonIcon:ige,FilterPanelDeleteIcon:Lw,ColumnFilteredIcon:sO,ColumnSelectorIcon:age,ColumnUnsortedIcon:k0e,ColumnSortedAscendingIcon:tO,ColumnSortedDescendingIcon:nO,ColumnResizeIcon:cge,DensityCompactIcon:uge,DensityStandardIcon:dge,DensityComfortableIcon:fge,ExportIcon:gge,MoreActionsIcon:yge,TreeDataCollapseIcon:oO,TreeDataExpandIcon:rO,GroupingCriteriaCollapseIcon:oO,GroupingCriteriaExpandIcon:rO,DetailPanelExpandIcon:iO,DetailPanelCollapseIcon:hge,RowReorderIcon:lO,QuickFilterIcon:lge,QuickFilterClearIcon:Lw,ColumnMenuHideIcon:bge,ColumnMenuSortAscendingIcon:tO,ColumnMenuSortDescendingIcon:nO,ColumnMenuFilterIcon:sO,ColumnMenuManageColumnsIcon:wge,ColumnMenuClearIcon:Cge,LoadIcon:mge,FilterPanelAddIcon:iO,FilterPanelRemoveAllIcon:xge,ColumnReorderIcon:lO},T0e=x({},M0e,{BaseCheckbox:uN,BaseTextField:Fc,BaseFormControl:bN,BaseSelect:KP,BaseSwitch:NN,BaseButton:qn,BaseIconButton:pr,BaseInputAdornment:gl,BaseTooltip:Ra,BasePopper:$a,BaseInputLabel:EN,BaseSelectOption:E0e,BaseChip:gb}),_0e=T0e,$0e=x({},_0e,{Cell:Ox,SkeletonCell:Bhe,ColumnHeaderFilterIconButton:Zme,ColumnMenu:Fge,ColumnHeaders:x0e,Footer:Wve,FooterRowCount:eye,Toolbar:null,PreferencesPanel:dve,LoadingOverlay:Kve,NoResultsOverlay:S0e,NoRowsOverlay:qve,Pagination:Qve,FilterPanel:Rve,ColumnsPanel:sve,Panel:uve,Row:wye}),W5=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function R0e({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?W5(n):null;if(!r||Object.keys(r).length===0)return e;const o=x({},e);return Object.keys(r).forEach(s=>{const i=s;r[i]!==void 0&&(o[i]=r[i])}),o}const O0e=["components","componentsProps"];function D0e(e){var t;const n=Object.keys(e);if(!n.some(s=>s.startsWith("aria-")||s.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let s=0;s<n.length;s+=1){const i=n[s];i.startsWith("aria-")||i.startsWith("data-")?o[i]=e[i]:r[i]=e[i]}return r.forwardedProps=o,r}function A0e(e){return c.useMemo(()=>{const{components:t,componentsProps:n}=e,r=oe(e,O0e);return[t,n,D0e(r)]},[e])}const L0e={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},s0={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Fi.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},F0e=W5($0e),N0e=e=>{const[t,n,r]=A0e(je({props:e,name:"MuiDataGrid"})),o=c.useMemo(()=>x({},qbe,r.localeText),[r.localeText]),s=c.useMemo(()=>R0e({defaultSlots:F0e,slots:r.slots,components:t}),[t,r.slots]);return c.useMemo(()=>{var i;return x({},s0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},L0e)},[r,o,s,n])},B0e=e=>x({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),EO=(e,t,n)=>typeof e=="number"&&e>0?e:t,z0e=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=c.useRef(Object.create(null)),i=c.useRef(-1),l=c.useRef(!1),a=nt(e,qd),u=nt(e,Rr),f=nt(e,g5),p=nt(e,ys),g=zc(e,t),v=nt(e,Kd),y=EO(t.rowHeight,s0.rowHeight),m=Math.floor(y*a),C=c.useCallback(()=>{var V,j;l.current=!1;const _=z=>{s.current[z.id]||(s.current[z.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:N,sizes:H}=s.current[z.id];let K=typeof m=="number"&&m>0?m:52;const Y=H.baseCenter;if(D)K=Y;else if(n){const ne=n(x({},z,{densityFactor:a}));if(ne==="auto"){if(N){const fe=o?o(x({},z,{densityFactor:a})):m;K=fe!=null?fe:m}else K=Y;l.current=!0,s.current[z.id].autoHeight=!0}else K=EO(ne,m),s.current[z.id].needsFirstMeasurement=!1,s.current[z.id].autoHeight=!1}else s.current[z.id].needsFirstMeasurement=!1;const Z={};for(const ne in H)/^base[A-Z]/.test(ne)&&(Z[ne]=H[ne]);if(Z.baseCenter=K,r){var Q,X;const ne=e.current.getRowIndexRelativeToVisibleRows(z.id),fe=r(x({},z,{isFirstVisible:ne===0,isLastVisible:ne===g.rows.length-1,indexRelativeToCurrentPage:ne}));Z.spacingTop=(Q=fe.top)!=null?Q:0,Z.spacingBottom=(X=fe.bottom)!=null?X:0}const J=e.current.unstable_applyPipeProcessors("rowHeight",Z,z);return s.current[z.id].sizes=J,J},A=[],F=g.rows.reduce((z,D)=>{A.push(z);let N=0,H=0;const K=_(D);for(const Y in K){const Z=K[Y];/^base[A-Z]/.test(Y)?N=Z>N?Z:N:H+=Z}return z+N+H},0);v==null||(V=v.top)==null||V.forEach(z=>{_(z)}),v==null||(j=v.bottom)==null||j.forEach(z=>{_(z)}),e.current.setState(z=>x({},z,{rowsMeta:{currentPageTotalHeight:F,positions:A}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,g.rows,m,n,r,o,v,a]),b=c.useCallback(V=>{const j=s.current[V];return j?j.sizes.baseCenter:m},[m]),w=V=>{var j;return(j=s.current[V])==null?void 0:j.sizes},S=c.useCallback((V,j)=>{s.current[V].sizes.baseCenter=j,s.current[V].isResized=!0,s.current[V].needsFirstMeasurement=!1,C()},[C]),k=c.useMemo(()=>Ta(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),M=c.useCallback((V,j,_)=>{if(!s.current[V]||!s.current[V].autoHeight)return;const A=s.current[V].sizes[`base${xe(_)}`]!==j;s.current[V].needsFirstMeasurement=!1,s.current[V].sizes[`base${xe(_)}`]=j,A&&k()},[k]),I=c.useCallback(V=>{var j;return((j=s.current[V])==null?void 0:j.autoHeight)||!1},[]),E=c.useCallback(()=>i.current,[]),T=c.useCallback(V=>{l.current&&V>i.current&&(i.current=V)},[]),L=c.useCallback(()=>{s.current={},C()},[C]);c.useEffect(()=>{C()},[m,u,f,p,C]),cI(e,"rowHeight",C);const O={unstable_setLastMeasuredRowIndex:T,unstable_getRowHeight:b,unstable_getRowInternalSizes:w,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:M,resetRowHeights:L},R={getLastMeasuredRowIndex:E,rowHasAutoHeight:I};At(e,O,"public"),At(e,R,"private")},V0e=e=>{const t=c.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=c.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);At(e,{exportState:t,restoreState:n},"public")},j0e=e=>{const t=c.useRef({}),n=c.useCallback((u,f,p)=>{const g=t.current;g[u]||(g[u]={}),g[u][f]=p},[]),r=c.useCallback((u,f)=>{var p;return(p=t.current[u])==null?void 0:p[f]},[]),o=c.useCallback(u=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:g,maxLastColumnIndex:v,columns:y}=u,m=y.length,C=y[f],b=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(p,C.field)):C.colSpan;if(!b||b===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let w=C.computedWidth;for(let S=1;S<b;S+=1){const k=f+S;if(k>=g&&k<v){const M=y[k];w+=M.computedWidth,n(p,f+S,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+b,m-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:b,width:w}})}return{colSpan:b}},[e,n]),s=c.useCallback(({rowId:u,minFirstColumn:f,maxLastColumn:p,columns:g})=>{for(let v=f;v<p;v+=1){const y=o({columnIndex:v,rowId:u,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:g});y.colSpan>1&&(v+=y.colSpan-1)}},[o]),i={unstable_getCellColSpanInfo:r},l={calculateColSpan:s};At(e,i,"public"),At(e,l,"private");const a=c.useCallback(()=>{t.current={}},[]);ut(e,"columnOrderChange",a)},G5=(e,t,n)=>{if(t5(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
|
|
360
|
+
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{G5(s,[...t,r],n)})},jx=e=>{if(!e)return{};const t={};return e.forEach(n=>{G5(n,[],t)}),t},Hx=(e,t,n)=>{const r=a=>{var u;return(u=t[a])!=null?u:[]},o=[],s=Math.max(...e.map(a=>r(a).length)),i=(a,u,f)=>pc(r(a).slice(0,f+1),r(u).slice(0,f+1)),l=(a,u)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(u));for(let a=0;a<s;a+=1){const u=e.reduce((f,p)=>{var g;const v=(g=r(p)[a])!=null?g:null;if(f.length===0)return[{columnFields:[p],groupId:v}];const y=f[f.length-1],m=y.columnFields[y.columnFields.length-1];return y.groupId!==v||!i(m,p,a)||l(m,p)?[...f,{columnFields:[p],groupId:v}]:[...f.slice(0,f.length-1),{columnFields:[...y.columnFields,p],groupId:v}]},[]);o.push(u)}return o},H0e=["groupId","children"],dI=e=>{let t={};return e.forEach(n=>{if(t5(n))return;const{groupId:r,children:o}=n,s=oe(n,H0e);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 i=x({},s,{groupId:r}),l=dI(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=x({},t,l,{[r]:i})}),x({},t)},U0e=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=ul(n),a=Qb(n),u=dI((o=t.columnGroupingModel)!=null?o:[]),f=jx((s=t.columnGroupingModel)!=null?s:[]),p=Hx(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),g=a.length===0?0:Math.max(...a.map(v=>{var y,m;return(y=(m=f[v])==null?void 0:m.length)!=null?y:0}));return x({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:f,headerStructure:p,maxDepth:g}})},W0e=(e,t)=>{var n;const r=c.useCallback(a=>{var u;return(u=upe(e)[a])!=null?u:[]},[e]),o=c.useCallback(()=>U4(e),[e]);At(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=c.useCallback(()=>{var a;const u=jx((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,g,v;const y=(p=(g=f.columns)==null?void 0:g.orderedFields)!=null?p:[],m=(v=f.pinnedColumns)!=null?v:{},C=Hx(y,u,m);return x({},f,{columnGrouping:x({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=c.useCallback(a=>{var u,f,p,g;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const v=(f=(p=(g=e.current).getPinnedColumns)==null?void 0:p.call(g))!=null?f:{},y=ul(e),m=Qb(e),C=dI(a!=null?a:[]),b=jx(a!=null?a:[]),w=Hx(y,b,v),S=m.length===0?0:Math.max(...m.map(k=>{var M,I;return(M=(I=b[k])==null?void 0:I.length)!=null?M:0}));e.current.setState(k=>x({},k,{columnGrouping:{lookup:C,unwrappedGroupingModel:b,headerStructure:w,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);ut(e,"columnIndexChange",i),ut(e,"columnsChange",()=>{l(t.columnGroupingModel)}),ut(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),c.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},G0e=(e,t)=>{const n=Aye(e,t);return Qbe(n,t),Wbe(n),yo(Gbe,n,t),yo(ibe,n,t),yo(zbe,n,t),yo(Nbe,n,t),yo(Pbe,n,t),yo(Xbe,n,t),yo(Mbe,n,t),yo(wbe,n,t),yo(ube,n,t),yo(mbe,n,t),yo(B0e,n,t),yo(tbe,n,t),yo(U0e,n,t),yo(qme,n,t),Ebe(n,t),Kbe(n,t),lbe(n,t),Vbe(n,t),Wpe(n,t),j0e(n),W0e(n,t),Bbe(n,t),kbe(n,t),Tbe(n,t),Sbe(n,t),Zbe(n,t),dbe(n,t),gbe(n,t),z0e(n,t),Jbe(n,t),nbe(n),hbe(n,t),bbe(n,t),ebe(n,t),n0e(n,t),e0e(n,t),V0e(n),Yme(n,t),n},K0e=e=>{const{classes:t}=e;return _e({root:["virtualScroller"]},jt,t)},q0e=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Y0e=c.forwardRef(function(t,n){const r=ct(),o=K0e(r);return $.jsx(q0e,x({ref:n},t,{className:ye(o.root,t.className),ownerState:r}))}),Q0e=(e,t)=>{const{classes:n}=e;return _e({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},jt,n)},X0e=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Z0e=c.forwardRef(function(t,n){var r;const o=ct(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=Q0e(o,s);return $.jsx(X0e,x({ref:n},t,{ownerState:o,className:ye(i.root,t.className)}))}),J0e=["className"],e1e=e=>{const{classes:t}=e;return _e({root:["virtualScrollerRenderZone"]},jt,t)},t1e=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),n1e=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,J0e),s=ct(),i=e1e(s);return $.jsx(t1e,x({ref:n,className:ye(i.root,r),ownerState:s},o))}),r1e=["className"],o1e=c.forwardRef(function(t,n){const{className:r}=t,o=oe(t,r1e),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=l0e({ref:n});return $.jsxs(Y0e,x({className:r},s(o),{children:[$.jsx(Npe,{}),$.jsx(Z0e,x({},i(),{children:$.jsx(n1e,x({},l(),{children:a()}))}))]}))}),K5=c.forwardRef(function(t,n){const r=N0e(t),o=G0e(r.apiRef,r);return $.jsx(Cye,{privateApiRef:o,props:r,children:$.jsxs(Uhe,x({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[$.jsx(Gve,{}),$.jsx(Tpe,{VirtualScrollerComponent:o1e}),$.jsx(_pe,{})]}))})}),q5=c.memo(K5);s0.filterDebounceMs;s0.filterDebounceMs;K5.propTypes={apiRef:W.shape({current:W.object.isRequired}),"aria-label":W.string,"aria-labelledby":W.string,autoHeight:W.bool,autoPageSize:W.bool,cellModesModel:W.object,checkboxSelection:W.bool,classes:W.object,clipboardCopyCellDelimiter:W.string,columnBuffer:W.number,columnGroupingModel:W.arrayOf(W.object),columnHeaderHeight:W.number,columns:$K(W.array.isRequired),columnThreshold:W.number,columnVisibilityModel:W.object,components:W.object,componentsProps:W.object,density:W.oneOf(["comfortable","compact","standard"]),disableColumnFilter:W.bool,disableColumnMenu:W.bool,disableColumnSelector:W.bool,disableDensitySelector:W.bool,disableEval:W.bool,disableRowSelectionOnClick:W.bool,disableVirtualization:W.bool,editMode:W.oneOf(["cell","row"]),experimentalFeatures:W.shape({ariaV7:W.bool,columnGrouping:W.bool,warnIfFocusStateIsNotSynced:W.bool}),filterDebounceMs:W.number,filterMode:W.oneOf(["client","server"]),filterModel:W.shape({items:W.arrayOf(W.shape({field:W.string.isRequired,id:W.oneOfType([W.number,W.string]),operator:W.string.isRequired,value:W.any})).isRequired,logicOperator:W.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:W.bool,quickFilterLogicOperator:W.oneOf(["and","or"]),quickFilterValues:W.array}),forwardedProps:W.object,getCellClassName:W.func,getDetailPanelContent:W.func,getEstimatedRowHeight:W.func,getRowClassName:W.func,getRowHeight:W.func,getRowId:W.func,getRowSpacing:W.func,hideFooter:W.bool,hideFooterPagination:W.bool,hideFooterSelectedRowCount:W.bool,ignoreDiacritics:W.bool,initialState:W.object,isCellEditable:W.func,isRowSelectable:W.func,keepNonExistentRowsSelected:W.bool,loading:W.bool,localeText:W.object,logger:W.shape({debug:W.func.isRequired,error:W.func.isRequired,info:W.func.isRequired,warn:W.func.isRequired}),logLevel:W.oneOf(["debug","error","info","warn",!1]),nonce:W.string,onCellClick:W.func,onCellDoubleClick:W.func,onCellEditStart:W.func,onCellEditStop:W.func,onCellKeyDown:W.func,onCellModesModelChange:W.func,onClipboardCopy:W.func,onColumnHeaderClick:W.func,onColumnHeaderDoubleClick:W.func,onColumnHeaderEnter:W.func,onColumnHeaderLeave:W.func,onColumnHeaderOut:W.func,onColumnHeaderOver:W.func,onColumnOrderChange:W.func,onColumnVisibilityModelChange:W.func,onFilterModelChange:W.func,onMenuClose:W.func,onMenuOpen:W.func,onPaginationModelChange:W.func,onPreferencePanelClose:W.func,onPreferencePanelOpen:W.func,onProcessRowUpdateError:W.func,onResize:W.func,onRowClick:W.func,onRowDoubleClick:W.func,onRowEditCommit:W.func,onRowEditStart:W.func,onRowEditStop:W.func,onRowModesModelChange:W.func,onRowSelectionModelChange:W.func,onSortModelChange:W.func,onStateChange:W.func,pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.shape({label:W.string.isRequired,value:W.number.isRequired})]).isRequired),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(`
|
|
361
|
+
`)):null,paginationMode:W.oneOf(["client","server"]),paginationModel:W.shape({page:W.number.isRequired,pageSize:W.number.isRequired}),processRowUpdate:W.func,rowBuffer:W.number,rowCount:W.number,rowHeight:W.number,rowModesModel:W.object,rowPositionsDebounceMs:W.number,rows:W.arrayOf(W.object).isRequired,rowSelection:W.bool,rowSelectionModel:W.oneOfType([W.arrayOf(W.oneOfType([W.number,W.string]).isRequired),W.number,W.string]),rowSpacingType:W.oneOf(["border","margin"]),rowThreshold:W.number,scrollbarSize:W.number,showCellVerticalBorder:W.bool,showColumnVerticalBorder:W.bool,slotProps:W.object,slots:W.object,sortingMode:W.oneOf(["client","server"]),sortingOrder:W.arrayOf(W.oneOf(["asc","desc"])),sortModel:W.arrayOf(W.shape({field:W.string.isRequired,sort:W.oneOf(["asc","desc"])})),sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),unstable_ignoreValueFormatterDuringExport:W.oneOfType([W.shape({clipboardExport:W.bool,csvExport:W.bool}),W.bool])};const Bw="Actions";function Bh(u){var f=u,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:s,error:i,compact:l}=f,a=Ft(f,["columns","initialState","actions","actionsProps","initializing","noRows","error","compact"]);const{width:p}=Db(),g=yn(),v=Yfe(),[y,m]=c.useState(0),C=c.useMemo(()=>{const I=e.map(E=>{const{mergeRender:T}=E;if(!T)return E;const V=T,{other:L,override:O}=V,R=Ft(V,["other","override"]);return ht(Se({},E),{originalRenderCell:E.renderCell||!0,renderCell(j){const{columns:_}=j.api.store.getSnapshot(),A=_.columnVisibilityModel[L]===!1;return c.createElement(ze,{},E.renderCell?E.renderCell(j):j.formattedValue,A&&c.createElement(ze,Se(Se({},l&&{lineHeight:"1em",fontSize:"smaller"}),R),M(Se(Se({},_.lookup[L]),O),j.row)))}})});return n&&I.push(Se({field:Bw,width:40*y,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(E){const T=n(Se(Se({},E.row),E));return setTimeout(()=>m(T.length)),c.createElement(ze,{whiteSpace:"nowrap"},...T)}},r)),I},[e,n,y]),b=c.useMemo(()=>{if(!p)return;const I=Nc(C.map(({field:T,hideUnder:L,hidden:O})=>(O||L&&p<(typeof L=="number"?L:g.breakpoints.values[L]))&&T)),E=Object.fromEntries(I.map(T=>[T,!1]));return ot.merge(t,{columns:{columnVisibilityModel:E}}),I},[C]),[w,S]=c.useState({}),k=c.useRef({});if(c.useEffect(()=>{const{current:{id:I,setCurRow:E}}=k;E==null||E(ot.find(a.rows,{id:I}))}),!b)return null;return c.createElement(c.Fragment,{},i&&c.createElement(Pr,{severity:"error"},i),o&&c.createElement(ze,{position:"relative"},c.createElement(Rv,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),c.createElement(q5,ht(Se({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:v,slots:Se({},(s||o)&&{noRowsOverlay:()=>o?null:c.createElement(Oh,{},s)}),onCellClick({field:I,row:E}){if(I===Bw)return;const T=v.current.getVisibleColumns().length,L=C.filter(O=>O.renderCell||O.field===Bw||E[O.field]!==void 0);L.length<=T||rs({title:"Details",onClose(){k.current={}},Content(){const[O,R]=c.useState(E),V=c.useRef(E);O&&(V.current=O);const j=V.current;return k.current={id:j.id,setCurRow:R},c.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:O?void 0:.5}},L.map(_=>c.createElement(ze,{key:_.field,gridColumn:_.flex&&"1/-1"},c.createElement(ze,{bgcolor:"#0003",p:1},_.headerName||_.field),c.createElement(ao,{minHeight:"2.5em",px:1,wordBreak:"break-word"},M(_,j)))))}})}},a),{onColumnVisibilityModelChange:I=>S(I),columnVisibilityModel:Se(Se(Se({},Object.fromEntries(b.map(I=>[I,!1]))),a.columnVisibilityModel),w)})));function M(I,E){const T=v.current;let L=E[I.field];I.valueGetter&&(L=I.valueGetter({value:L,api:T,row:E,field:I.field,id:E.id}));const O=I.originalRenderCell||I.renderCell;return O&&O!==!0?O(Se({value:L,row:E,api:T},E)):I.valueFormatter?I.valueFormatter(Se({value:L},E)):L}}const Y5=`🇦🇨|AC|Ascension Island
|
|
362
|
+
🇦🇩|AD|Andorra
|
|
363
|
+
🇦🇪|AE|United Arab Emirates
|
|
364
|
+
🇦🇫|AF|Afghanistan
|
|
365
|
+
🇦🇬|AG|Antigua & Barbuda
|
|
366
|
+
🇦🇮|AI|Anguilla
|
|
367
|
+
🇦🇱|AL|Albania
|
|
368
|
+
🇦🇲|AM|Armenia
|
|
369
|
+
🇦🇴|AO|Angola
|
|
370
|
+
🇦🇶|AQ|Antarctica
|
|
371
|
+
🇦🇷|AR|Argentina
|
|
372
|
+
🇦🇸|AS|American Samoa
|
|
373
|
+
🇦🇹|AT|Austria
|
|
374
|
+
🇦🇺|AU|Australia
|
|
375
|
+
🇦🇼|AW|Aruba
|
|
376
|
+
🇦🇽|AX|Åland Islands
|
|
377
|
+
🇦🇿|AZ|Azerbaijan
|
|
378
|
+
🇧🇦|BA|Bosnia & Herzegovina
|
|
379
|
+
🇧🇧|BB|Barbados
|
|
380
|
+
🇧🇩|BD|Bangladesh
|
|
381
|
+
🇧🇪|BE|Belgium
|
|
382
|
+
🇧🇫|BF|Burkina Faso
|
|
383
|
+
🇧🇬|BG|Bulgaria
|
|
384
|
+
🇧🇭|BH|Bahrain
|
|
385
|
+
🇧🇮|BI|Burundi
|
|
386
|
+
🇧🇯|BJ|Benin
|
|
387
|
+
🇧🇱|BL|St. Barthélemy
|
|
388
|
+
🇧🇲|BM|Bermuda
|
|
389
|
+
🇧🇳|BN|Brunei
|
|
390
|
+
🇧🇴|BO|Bolivia
|
|
391
|
+
🇧🇶|BQ|Caribbean Netherlands
|
|
392
|
+
🇧🇷|BR|Brazil
|
|
393
|
+
🇧🇸|BS|Bahamas
|
|
394
|
+
🇧🇹|BT|Bhutan
|
|
395
|
+
🇧🇻|BV|Bouvet Island
|
|
396
|
+
🇧🇼|BW|Botswana
|
|
397
|
+
🇧🇾|BY|Belarus
|
|
398
|
+
🇧🇿|BZ|Belize
|
|
399
|
+
🇨🇦|CA|Canada
|
|
400
|
+
🇨🇨|CC|Cocos (Keeling) Islands
|
|
401
|
+
🇨🇩|CD|Congo - Kinshasa
|
|
402
|
+
🇨🇫|CF|Central African Republic
|
|
403
|
+
🇨🇬|CG|Congo - Brazzaville
|
|
404
|
+
🇨🇭|CH|Switzerland
|
|
405
|
+
🇨🇮|CI|Côte d'Ivoire
|
|
406
|
+
🇨🇰|CK|Cook Islands
|
|
407
|
+
🇨🇱|CL|Chile
|
|
408
|
+
🇨🇲|CM|Cameroon
|
|
409
|
+
🇨🇳|CN|China
|
|
410
|
+
🇨🇴|CO|Colombia
|
|
411
|
+
🇨🇵|CP|Clipperton Island
|
|
412
|
+
🇨🇷|CR|Costa Rica
|
|
413
|
+
🇨🇺|CU|Cuba
|
|
414
|
+
🇨🇻|CV|Cape Verde
|
|
415
|
+
🇨🇼|CW|Curaçao
|
|
416
|
+
🇨🇽|CX|Christmas Island
|
|
417
|
+
🇨🇾|CY|Cyprus
|
|
418
|
+
🇨🇿|CZ|Czechia
|
|
419
|
+
🇩🇪|DE|Germany
|
|
420
|
+
🇩🇬|DG|Diego Garcia
|
|
421
|
+
🇩🇯|DJ|Djibouti
|
|
422
|
+
🇩🇰|DK|Denmark
|
|
423
|
+
🇩🇲|DM|Dominica
|
|
424
|
+
🇩🇴|DO|Dominican Republic
|
|
425
|
+
🇩🇿|DZ|Algeria
|
|
426
|
+
🇪🇦|EA|Ceuta & Melilla
|
|
427
|
+
🇪🇨|EC|Ecuador
|
|
428
|
+
🇪🇪|EE|Estonia
|
|
429
|
+
🇪🇬|EG|Egypt
|
|
430
|
+
🇪🇭|EH|Western Sahara
|
|
431
|
+
🇪🇷|ER|Eritrea
|
|
432
|
+
🇪🇸|ES|Spain
|
|
433
|
+
🇪🇹|ET|Ethiopia
|
|
434
|
+
🇫🇮|FI|Finland
|
|
435
|
+
🇫🇯|FJ|Fiji
|
|
436
|
+
🇫🇰|FK|Falkland Islands
|
|
437
|
+
🇫🇲|FM|Micronesia
|
|
438
|
+
🇫🇴|FO|Faroe Islands
|
|
439
|
+
🇫🇷|FR|France
|
|
440
|
+
🇬🇦|GA|Gabon
|
|
441
|
+
🇬🇧|GB|United Kingdom
|
|
442
|
+
🇬🇩|GD|Grenada
|
|
443
|
+
🇬🇪|GE|Georgia
|
|
444
|
+
🇬🇫|GF|French Guiana
|
|
445
|
+
🇬🇬|GG|Guernsey
|
|
446
|
+
🇬🇭|GH|Ghana
|
|
447
|
+
🇬🇮|GI|Gibraltar
|
|
448
|
+
🇬🇱|GL|Greenland
|
|
449
|
+
🇬🇲|GM|Gambia
|
|
450
|
+
🇬🇳|GN|Guinea
|
|
451
|
+
🇬🇵|GP|Guadeloupe
|
|
452
|
+
🇬🇶|GQ|Equatorial Guinea
|
|
453
|
+
🇬🇷|GR|Greece
|
|
454
|
+
🇬🇸|GS|South Georgia & South Sandwich Islands
|
|
455
|
+
🇬🇹|GT|Guatemala
|
|
456
|
+
🇬🇺|GU|Guam
|
|
457
|
+
🇬🇼|GW|Guinea-Bissau
|
|
458
|
+
🇬🇾|GY|Guyana
|
|
459
|
+
🇭🇰|HK|Hong Kong SAR China
|
|
460
|
+
🇭🇲|HM|Heard & McDonald Islands
|
|
461
|
+
🇭🇳|HN|Honduras
|
|
462
|
+
🇭🇷|HR|Croatia
|
|
463
|
+
🇭🇹|HT|Haiti
|
|
464
|
+
🇭🇺|HU|Hungary
|
|
465
|
+
🇮🇨|IC|Canary Islands
|
|
466
|
+
🇮🇩|ID|Indonesia
|
|
467
|
+
🇮🇪|IE|Ireland
|
|
468
|
+
🇮🇱|IL|Israel
|
|
469
|
+
🇮🇲|IM|Isle of Man
|
|
470
|
+
🇮🇳|IN|India
|
|
471
|
+
🇮🇴|IO|British Indian Ocean Territory
|
|
472
|
+
🇮🇶|IQ|Iraq
|
|
473
|
+
🇮🇷|IR|Iran
|
|
474
|
+
🇮🇸|IS|Iceland
|
|
475
|
+
🇮🇹|IT|Italy
|
|
476
|
+
🇯🇪|JE|Jersey
|
|
477
|
+
🇯🇲|JM|Jamaica
|
|
478
|
+
🇯🇴|JO|Jordan
|
|
479
|
+
🇯🇵|JP|Japan
|
|
480
|
+
🇰🇪|KE|Kenya
|
|
481
|
+
🇰🇬|KG|Kyrgyzstan
|
|
482
|
+
🇰🇭|KH|Cambodia
|
|
483
|
+
🇰🇮|KI|Kiribati
|
|
484
|
+
🇰🇲|KM|Comoros
|
|
485
|
+
🇰🇳|KN|St. Kitts & Nevis
|
|
486
|
+
🇰🇵|KP|North Korea
|
|
487
|
+
🇰🇷|KR|South Korea
|
|
488
|
+
🇰🇼|KW|Kuwait
|
|
489
|
+
🇰🇾|KY|Cayman Islands
|
|
490
|
+
🇰🇿|KZ|Kazakhstan
|
|
491
|
+
🇱🇦|LA|Laos
|
|
492
|
+
🇱🇧|LB|Lebanon
|
|
493
|
+
🇱🇨|LC|St. Lucia
|
|
494
|
+
🇱🇮|LI|Liechtenstein
|
|
495
|
+
🇱🇰|LK|Sri Lanka
|
|
496
|
+
🇱🇷|LR|Liberia
|
|
497
|
+
🇱🇸|LS|Lesotho
|
|
498
|
+
🇱🇹|LT|Lithuania
|
|
499
|
+
🇱🇺|LU|Luxembourg
|
|
500
|
+
🇱🇻|LV|Latvia
|
|
501
|
+
🇱🇾|LY|Libya
|
|
502
|
+
🇲🇦|MA|Morocco
|
|
503
|
+
🇲🇨|MC|Monaco
|
|
504
|
+
🇲🇩|MD|Moldova
|
|
505
|
+
🇲🇪|ME|Montenegro
|
|
506
|
+
🇲🇫|MF|St. Martin
|
|
507
|
+
🇲🇬|MG|Madagascar
|
|
508
|
+
🇲🇭|MH|Marshall Islands
|
|
509
|
+
🇲🇰|MK|North Macedonia
|
|
510
|
+
🇲🇱|ML|Mali
|
|
511
|
+
🇲🇲|MM|Myanmar (Burma)
|
|
512
|
+
🇲🇳|MN|Mongolia
|
|
513
|
+
🇲🇴|MO|Macao SAR China
|
|
514
|
+
🇲🇵|MP|Northern Mariana Islands
|
|
515
|
+
🇲🇶|MQ|Martinique
|
|
516
|
+
🇲🇷|MR|Mauritania
|
|
517
|
+
🇲🇸|MS|Montserrat
|
|
518
|
+
🇲🇹|MT|Malta
|
|
519
|
+
🇲🇺|MU|Mauritius
|
|
520
|
+
🇲🇻|MV|Maldives
|
|
521
|
+
🇲🇼|MW|Malawi
|
|
522
|
+
🇲🇽|MX|Mexico
|
|
523
|
+
🇲🇾|MY|Malaysia
|
|
524
|
+
🇲🇿|MZ|Mozambique
|
|
525
|
+
🇳🇦|NA|Namibia
|
|
526
|
+
🇳🇨|NC|New Caledonia
|
|
527
|
+
🇳🇪|NE|Niger
|
|
528
|
+
🇳🇫|NF|Norfolk Island
|
|
529
|
+
🇳🇬|NG|Nigeria
|
|
530
|
+
🇳🇮|NI|Nicaragua
|
|
531
|
+
🇳🇱|NL|Netherlands
|
|
532
|
+
🇳🇴|NO|Norway
|
|
533
|
+
🇳🇵|NP|Nepal
|
|
534
|
+
🇳🇷|NR|Nauru
|
|
535
|
+
🇳🇺|NU|Niue
|
|
536
|
+
🇳🇿|NZ|New Zealand
|
|
537
|
+
🇴🇲|OM|Oman
|
|
538
|
+
🇵🇦|PA|Panama
|
|
539
|
+
🇵🇪|PE|Peru
|
|
540
|
+
🇵🇫|PF|French Polynesia
|
|
541
|
+
🇵🇬|PG|Papua New Guinea
|
|
542
|
+
🇵🇭|PH|Philippines
|
|
543
|
+
🇵🇰|PK|Pakistan
|
|
544
|
+
🇵🇱|PL|Poland
|
|
545
|
+
🇵🇲|PM|St. Pierre & Miquelon
|
|
546
|
+
🇵🇳|PN|Pitcairn Islands
|
|
547
|
+
🇵🇷|PR|Puerto Rico
|
|
548
|
+
🇵🇸|PS|Palestinian Territories
|
|
549
|
+
🇵🇹|PT|Portugal
|
|
550
|
+
🇵🇼|PW|Palau
|
|
551
|
+
🇵🇾|PY|Paraguay
|
|
552
|
+
🇶🇦|QA|Qatar
|
|
553
|
+
🇷🇪|RE|Réunion
|
|
554
|
+
🇷🇴|RO|Romania
|
|
555
|
+
🇷🇸|RS|Serbia
|
|
556
|
+
🇷🇺|RU|Russia
|
|
557
|
+
🇷🇼|RW|Rwanda
|
|
558
|
+
🇸🇦|SA|Saudi Arabia
|
|
559
|
+
🇸🇧|SB|Solomon Islands
|
|
560
|
+
🇸🇨|SC|Seychelles
|
|
561
|
+
🇸🇩|SD|Sudan
|
|
562
|
+
🇸🇪|SE|Sweden
|
|
563
|
+
🇸🇬|SG|Singapore
|
|
564
|
+
🇸🇭|SH|St. Helena
|
|
565
|
+
🇸🇮|SI|Slovenia
|
|
566
|
+
🇸🇯|SJ|Svalbard & Jan Mayen
|
|
567
|
+
🇸🇰|SK|Slovakia
|
|
568
|
+
🇸🇱|SL|Sierra Leone
|
|
569
|
+
🇸🇲|SM|San Marino
|
|
570
|
+
🇸🇳|SN|Senegal
|
|
571
|
+
🇸🇴|SO|Somalia
|
|
572
|
+
🇸🇷|SR|Suriname
|
|
573
|
+
🇸🇸|SS|South Sudan
|
|
574
|
+
🇸🇹|ST|São Tomé & Príncipe
|
|
575
|
+
🇸🇻|SV|El Salvador
|
|
576
|
+
🇸🇽|SX|Sint Maarten
|
|
577
|
+
🇸🇾|SY|Syria
|
|
578
|
+
🇸🇿|SZ|Eswatini
|
|
579
|
+
🇹🇦|TA|Tristan da Cunha
|
|
580
|
+
🇹🇨|TC|Turks & Caicos Islands
|
|
581
|
+
🇹🇩|TD|Chad
|
|
582
|
+
🇹🇫|TF|French Southern Territories
|
|
583
|
+
🇹🇬|TG|Togo
|
|
584
|
+
🇹🇭|TH|Thailand
|
|
585
|
+
🇹🇯|TJ|Tajikistan
|
|
586
|
+
🇹🇰|TK|Tokelau
|
|
587
|
+
🇹🇱|TL|Timor-Leste
|
|
588
|
+
🇹🇲|TM|Turkmenistan
|
|
589
|
+
🇹🇳|TN|Tunisia
|
|
590
|
+
🇹🇴|TO|Tonga
|
|
591
|
+
🇹🇷|TR|Türkiye
|
|
592
|
+
🇹🇹|TT|Trinidad & Tobago
|
|
593
|
+
🇹🇻|TV|Tuvalu
|
|
594
|
+
🇹🇼|TW|Taiwan
|
|
595
|
+
🇹🇿|TZ|Tanzania
|
|
596
|
+
🇺🇦|UA|Ukraine
|
|
597
|
+
🇺🇬|UG|Uganda
|
|
598
|
+
🇺🇲|UM|U.S. Outlying Islands
|
|
599
|
+
🇺🇳|UN|United Nations
|
|
600
|
+
🇺🇸|US|United States
|
|
601
|
+
🇺🇾|UY|Uruguay
|
|
602
|
+
🇺🇿|UZ|Uzbekistan
|
|
603
|
+
🇻🇦|VA|Vatican City
|
|
604
|
+
🇻🇨|VC|St. Vincent & Grenadines
|
|
605
|
+
🇻🇪|VE|Venezuela
|
|
606
|
+
🇻🇬|VG|British Virgin Islands
|
|
607
|
+
🇻🇮|VI|U.S. Virgin Islands
|
|
608
|
+
🇻🇳|VN|Vietnam
|
|
609
|
+
🇻🇺|VU|Vanuatu
|
|
610
|
+
🇼🇫|WF|Wallis & Futuna
|
|
611
|
+
🇼🇸|WS|Samoa
|
|
612
|
+
🇽🇰|XK|Kosovo
|
|
613
|
+
🇾🇪|YE|Yemen
|
|
614
|
+
🇾🇹|YT|Mayotte
|
|
615
|
+
🇿🇦|ZA|South Africa
|
|
616
|
+
🇿🇲|ZM|Zambia
|
|
617
|
+
🇿🇼|ZW|Zimbabwe`.split(`
|
|
618
|
+
`).map(e=>{const[t,n,r]=e.split("|");return{flag:t,code:n,name:r}}),s1e="AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SI,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,"+"UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW".split(",");function i1e(){return c.createElement(c.Fragment,{},c.createElement(a1e),c.createElement(d1e))}const l1e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function a1e(){const{data:e,element:t}=Yn("get_status"),{data:n}=$ue("get_connection_stats");e&&n&&Object.assign(e,n);const r=Ko("xl"),o=Ko("md"),s=Ko("sm");return t||c.createElement(ze,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:l}),o&&i("https",{label:"HTTPS",render:l}),s&&i("connections"),i("sent",{render:vl,minWidth:"4em"}),s&&i("got",{render:vl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:Ux}),o&&i("inSpeed",{label:"Input speed",render:Ux}));function i(a,{label:u,minWidth:f,render:p}={}){let g=ot.get(e,a);if(g===void 0)return null;typeof g=="string"&&l1e.test(g)&&(g=new Date(g).toLocaleString());let v;return p&&(g=p(g),Array.isArray(g)&&([g,v]=g)),u||(u=ot.capitalize(a.replaceAll("_"," "))),c.createElement(gb,{variant:"filled",color:v,label:c.createElement(c.Fragment,{},c.createElement("b",{},u),": ",c.createElement("span",{style:{display:"inline-block",minWidth:f}},g))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function c1e({code:e,ip:t,def:n}){const{data:r}=Bg(e===void 0&&t&&u1e,t,{delay:100});e||(e=r||"");const o=e&&ot.find(Y5,{code:e});return o?c.createElement(Ra,{title:o.name,children:c.createElement("span",{},o.flag," ",e)}):c.createElement(c.Fragment,{},n)}function u1e(e){return rt(this,null,function*(){return(yield at("ip_country",{ips:e})).codes})}function d1e(){var u;const{list:e,error:t,props:n}=xa("get_connections"),r=Yn("get_config",{only:[br.geo_enable]}),[o,s]=c.useState(!0),{pause:i,pauseButton:l}=E4(),a=c.useMemo(()=>e==null?void 0:e.filter(f=>!o||f.op).map((f,p)=>Se({id:p},f)),[!i&&e,o]);return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",alignItems:"center"},c.createElement(Wr,{fullWidth:!1,value:o,onChange:s,options:{"Show only files":!0,"Show all connections":!1}}),c.createElement(ze,{flex:1}),l),c.createElement(Bh,{error:t,rows:a,noRows:o&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:f,value:p})=>ZN(p)+" :"+f.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((u=r.data)==null?void 0:u[br.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:f,row:p})=>c.createElement(c1e,{code:f,ip:p.ip,def:"-"})},{field:"user",headerName:"User",hideUnder:"md"},{field:"started",headerName:"Started",type:"dateTime",width:100,hideUnder:"lg",valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1.5,renderCell({value:f,row:p}){var v;if(!f)return;if(p.archive)return c.createElement(c.Fragment,{},c.createElement(F4,{sx:{mr:1}}),p.archive,c.createElement(ze,{ml:2,color:"text.secondary"},f));if(!p.op)return c.createElement(ze,{},f,c.createElement(ze,{fontSize:"x-small"},"browsing"));const g=f==null?void 0:f.lastIndexOf("/");return c.createElement(c.Fragment,{},c.createElement(k4,{icon:p.op==="upload"?Dh:Wk,progress:(v=p.opProgress)!=null?v:p.opOffset,offset:p.opOffset,addTitle:p.opTotal&&c.createElement("div",{},"Total: "+vl(p.opTotal)),sx:{mr:1}}),c.createElement(ze,{},f.slice(g+1),g>0&&c.createElement(ze,{ml:2,fontSize:"x-small",color:"text.secondary"},f.slice(0,g))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:f,row:p})=>Ux(Math.max(f||0,p.inSpeed||0)||void 0),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:f,row:p})=>vl(Math.max(f||0,p.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:f})=>c.createElement(c.Fragment,{},"IPv"+f,ro(qb,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg"}],actionsProps:{hideUnder:"sm"},actions:({row:f})=>[c.createElement(mn,{icon:A4,title:"Disconnect",onClick:()=>at("disconnect",ot.pick(f,["ip","port"])).then(()=>er("Disconnection requested"))}),c.createElement(mn,{icon:L4,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>f1e(f.ip)})]}))}function f1e(e){return cfe("block",t=>[...t,{ip:e}])}function Ux(e){return e===void 0?"":gue(e*1e3,{digits:1})}var fI={},p1e=et;Object.defineProperty(fI,"__esModule",{value:!0});var pI=fI.default=void 0,h1e=p1e(tt()),m1e=Ze(),g1e=(0,h1e.default)((0,m1e.jsx)("path",{d:"M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"}),"CardMembership");pI=fI.default=g1e;var hI={},v1e=et;Object.defineProperty(hI,"__esModule",{value:!0});var mI=hI.default=void 0,y1e=v1e(tt()),b1e=Ze(),w1e=(0,y1e.default)((0,b1e.jsx)("path",{d:"M3 10h11v2H3v-2zm0-2h11V6H3v2zm0 8h7v-2H3v2zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71-2.12-2.12zm-.71.71-5.3 5.3V21h2.12l5.3-5.3-2.12-2.12z"}),"EditNote");mI=hI.default=w1e;var gI={},C1e=et;Object.defineProperty(gI,"__esModule",{value:!0});var vI=gI.default=void 0,x1e=C1e(tt()),S1e=Ze(),P1e=(0,x1e.default)((0,S1e.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");vI=gI.default=P1e;var yI={},k1e=et;Object.defineProperty(yI,"__esModule",{value:!0});var bI=yI.default=void 0,I1e=k1e(tt()),E1e=Ze(),M1e=(0,I1e.default)((0,E1e.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");bI=yI.default=M1e;var wI={},T1e=et;Object.defineProperty(wI,"__esModule",{value:!0});var xl=wI.default=void 0,_1e=T1e(tt()),$1e=Ze(),R1e=(0,_1e.default)((0,$1e.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");xl=wI.default=R1e;var CI={},O1e=et;Object.defineProperty(CI,"__esModule",{value:!0});var xI=CI.default=void 0,D1e=O1e(tt()),A1e=Ze(),L1e=(0,D1e.default)((0,A1e.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");xI=CI.default=L1e;var SI={},F1e=et;Object.defineProperty(SI,"__esModule",{value:!0});var Q5=SI.default=void 0,N1e=F1e(tt()),B1e=Ze(),z1e=(0,N1e.default)((0,B1e.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");Q5=SI.default=z1e;var PI={},V1e=et;Object.defineProperty(PI,"__esModule",{value:!0});var X5=PI.default=void 0,j1e=V1e(tt()),H1e=Ze(),U1e=(0,j1e.default)((0,H1e.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo");X5=PI.default=U1e;const W1e=["localeText"],Wx=c.createContext(null),kI=function(t){var n;const{localeText:r}=t,o=oe(t,W1e),{utils:s,localeText:i}=(n=c.useContext(Wx))!=null?n:{utils:void 0,localeText:void 0},l=je({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:u,dateFormats:f,dateLibInstance:p,adapterLocale:g,localeText:v}=l,y=c.useMemo(()=>x({},v,i,r),[v,i,r]),m=c.useMemo(()=>{if(!u)return s||null;const w=new u({locale:g,formats:f,instance:p});if(!w.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
619
|
+
`));return w},[u,g,f,p,s]),C=c.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),b=c.useMemo(()=>({utils:m,defaultDates:C,localeText:y}),[C,m,y]);return $.jsx(Wx.Provider,{value:b,children:a})},G1e=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:x({},e)}}}}),Z5={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},K1e=Z5;G1e(Z5);const Vc=()=>{const e=c.useContext(Wx);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
620
|
+
`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
621
|
+
`));const t=c.useMemo(()=>x({},K1e,e.localeText),[e.localeText]);return c.useMemo(()=>x({},e,{localeText:t}),[e,t])},rn=()=>Vc().utils,zh=()=>Vc().defaultDates,os=()=>Vc().localeText,Aa=e=>{const t=rn(),n=c.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},q1e=bt($.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Y1e=bt($.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Q1e=bt($.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),X1e=bt($.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");bt($.jsxs(c.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const Z1e=bt($.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),J1e=bt($.jsxs(c.Fragment,{children:[$.jsx("path",{d:"M11.99 2C6.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"}),$.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),ewe=bt($.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"}),"Clear");function twe(e){return Ke("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const nwe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],rwe=["ownerState"],owe=["ownerState"],swe=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),iwe=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),MO=te(pr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>x({},e.hidden&&{visibility:"hidden"})),lwe=e=>{const{classes:t}=e;return _e({root:["root"],spacer:["spacer"],button:["button"]},twe,t)},J5=c.forwardRef(function(t,n){var r,o,s,i;const a=yn().direction==="rtl",u=je({props:t,name:"MuiPickersArrowSwitcher"}),{children:f,className:p,slots:g,slotProps:v,isNextDisabled:y,isNextHidden:m,onGoToNext:C,nextLabel:b,isPreviousDisabled:w,isPreviousHidden:S,onGoToPrevious:k,previousLabel:M}=u,I=oe(u,nwe),E=u,T=lwe(E),L={isDisabled:y,isHidden:m,goTo:C,label:b},O={isDisabled:w,isHidden:S,goTo:k,label:M},R=(r=g==null?void 0:g.previousIconButton)!=null?r:MO,V=qt({elementType:R,externalSlotProps:v==null?void 0:v.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:x({},E,{hidden:O.isHidden}),className:T.button}),j=(o=g==null?void 0:g.nextIconButton)!=null?o:MO,_=qt({elementType:j,externalSlotProps:v==null?void 0:v.nextIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"start",onClick:L.goTo},ownerState:x({},E,{hidden:L.isHidden}),className:T.button}),A=(s=g==null?void 0:g.leftArrowIcon)!=null?s:Y1e,F=qt({elementType:A,externalSlotProps:v==null?void 0:v.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),z=oe(F,rwe),D=(i=g==null?void 0:g.rightArrowIcon)!=null?i:Q1e,N=qt({elementType:D,externalSlotProps:v==null?void 0:v.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=oe(N,owe);return $.jsxs(swe,x({ref:n,className:ye(T.root,p),ownerState:E},I,{children:[$.jsx(R,x({},V,{children:a?$.jsx(D,x({},H)):$.jsx(A,x({},z))})),f?$.jsx(Kn,{variant:"subtitle1",component:"span",children:f}):$.jsx(iwe,{className:T.spacer,ownerState:E}),$.jsx(j,x({},_,{children:a?$.jsx(A,x({},z)):$.jsx(D,x({},H))}))]}))}),Si=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),awe=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n!=null?n:r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:s}},e3=["hours","minutes","seconds"],Id=e=>e3.includes(e),jl=e=>e3.includes(e)||e==="meridiem",cwe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,dh=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,uwe=(e,t,n,r)=>{const o=dh(r.getHours(e),t,n);return r.setHours(e,o)},TO=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Vh=(e,t)=>(n,r)=>e?t.isAfter(n,r):TO(n,t)>TO(r,t),_O=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Si(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Si(n,["minutes"])?o.minutes:Si(n,["seconds"])?o.seconds:Si(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Si(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function jh({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:l}){var a,u;const f=c.useRef(n),p=c.useRef(o),g=c.useRef(o.includes(n)?n:o[0]),[v,y]=Kr({name:"useViews",state:"view",controlled:r,default:g.current}),m=c.useRef(s?v:null),[C,b]=Kr({name:"useViews",state:"focusedView",controlled:i,default:m.current});c.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some(O=>!o.includes(O)))&&(y(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,y,v,o]);const w=o.indexOf(v),S=(a=o[w-1])!=null?a:null,k=(u=o[w+1])!=null?u:null,M=Ye((O,R)=>{b(R?O:V=>O===V?null:V),l==null||l(O,R)}),I=Ye(O=>{O!==v&&(y(O),M(O,!0),t&&t(O))}),E=Ye(()=>{k&&I(k),M(k,!0)}),T=Ye((O,R,V)=>{const j=R==="finish",_=V?o.indexOf(V)<o.length-1:!!k;e(O,j&&_?"partial":R),j&&E()}),L=Ye((O,R,V)=>{e(O,R?"partial":"finish",V),R&&(I(R),M(R,!0))});return{view:v,setView:I,focusedView:C,setFocusedView:M,nextView:k,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:T,setValueAndGoToView:L}}function dwe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function fwe(e,{disablePast:t,minDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function II(e,t,n,r){const o=rn(),s=cwe(e,o),i=c.useCallback(l=>{const a=e==null?null:uwe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const fh=36,i0=2,l0=320,pwe=280,a0=334,t3=232,tp=48,c0=te("div")({overflow:"hidden",width:l0,maxHeight:a0,display:"flex",flexDirection:"column",margin:"0 auto"});function hwe(e){return Ke("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Ed=220,Ri=36,ph={x:Ed/2,y:Ed/2},n3={x:ph.x,y:0},mwe=n3.x-ph.x,gwe=n3.y-ph.y,vwe=e=>e*(180/Math.PI),r3=(e,t,n)=>{const r=t-ph.x,o=n-ph.y,s=Math.atan2(mwe,gwe)-Math.atan2(r,o);let i=vwe(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=ms(r,2)+ms(o,2),u=Math.sqrt(a);return{value:l,distance:u}},ywe=(e,t,n=1)=>{const r=n*6;let{value:o}=r3(r,e,t);return o=o*n%60,o},bwe=(e,t,n)=>{const{value:r,distance:o}=r3(30,e,t);let s=r||12;return n?s%=12:o<Ed/2-Ri&&(s+=12,s%=24),s};function wwe(e){return Ke("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const Cwe=["className","hasSelected","isInner","type","viewValue"],xwe=e=>{const{classes:t}=e;return _e({root:["root"],thumb:["thumb"]},wwe,t)},Swe=te("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>x({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Pwe=te("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>x({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ri/2}px)`,border:`${(Ri-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function kwe(e){const t=je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=oe(t,Cwe),l=c.useRef(o);c.useEffect(()=>{l.current=o},[o]);const a=x({},t,{shouldAnimate:l.current!==o}),u=xwe(a),f=()=>{let g=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(g-=360),{height:Math.round((r?.26:.4)*Ed),transform:`rotateZ(${g}deg)`}};return $.jsx(Swe,x({style:f(),className:ye(n,u.root),ownerState:a},i,{children:$.jsx(Pwe,{ownerState:a,className:u.thumb})}))}function Iwe(e){return Ke("MuiClock",e)}We("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Pp=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:l})=>{const a=i.startOfDay(i.dateWithTimezone(void 0,l));n&&i.isBefore(o,a)&&(o=a),t&&i.isAfter(r,a)&&(r=a);let u=e,f=e;for(i.isBefore(e,o)&&(u=o,f=null),i.isAfter(e,r)&&(f&&(f=r),u=null);u||f;){if(u&&i.isAfter(u,r)&&(u=null),f&&i.isBefore(f,o)&&(f=null),u){if(!s(u))return u;u=i.addDays(u,1)}if(f){if(!s(f))return f;f=i.addDays(f,-1)}}return null},Ewe=(e,t)=>t==null||!e.isValid(t)?null:t,Ls=(e,t,n)=>t==null||!e.isValid(t)?n:t,Mwe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),EI=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Gx=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},MI=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),il=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Twe=["year","month","day"],ed=e=>Twe.includes(e),$O=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Si(n,["year"])?o.year:Si(n,["month"])?o.month:Si(n,["day"])?o.dayOfMonth:Si(n,["month","year"])?`${o.month} ${o.year}`:Si(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},_we=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},$we=e=>{const{classes:t}=e;return _e({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Iwe,t)},Rwe=te("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Owe=te("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Dwe=te("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Awe=te("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>x({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Lwe=te("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Fwe=te(pr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>x({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Ri},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Nwe=te(pr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>x({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Ri},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),RO=te(Kn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Bwe(e){const t=je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:s,value:i,handleMeridiemChange:l,isTimeDisabled:a,meridiemMode:u,minutesStep:f=1,onChange:p,selectedId:g,type:v,viewValue:y,disabled:m,readOnly:C,className:b}=t,w=t,S=rn(),k=os(),M=c.useRef(!1),I=$we(w),E=a(y,v),T=!n&&v==="hours"&&(y<1||y>12),L=(N,H)=>{m||C||a(N,v)||p(N,H)},O=(N,H)=>{let{offsetX:K,offsetY:Y}=N;if(K===void 0){const Q=N.target.getBoundingClientRect();K=N.changedTouches[0].clientX-Q.left,Y=N.changedTouches[0].clientY-Q.top}const Z=v==="seconds"||v==="minutes"?ywe(K,Y,f):bwe(K,Y,!!n);L(Z,H)},R=N=>{M.current=!0,O(N,"shallow")},V=N=>{M.current&&(O(N,"finish"),M.current=!1)},j=N=>{N.buttons>0&&O(N.nativeEvent,"shallow")},_=N=>{M.current&&(M.current=!1),O(N.nativeEvent,"finish")},A=c.useMemo(()=>v==="hours"?!0:y%5===0,[v,y]),F=v==="minutes"?f:1,z=c.useRef(null);Nt(()=>{o&&z.current.focus()},[o]);const D=N=>{if(!M.current)switch(N.key){case"Home":L(0,"partial"),N.preventDefault();break;case"End":L(v==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":L(y+F,"partial"),N.preventDefault();break;case"ArrowDown":L(y-F,"partial"),N.preventDefault();break}};return $.jsxs(Rwe,{className:ye(b,I.root),children:[$.jsxs(Owe,{className:I.clock,children:[$.jsx(Awe,{onTouchMove:R,onTouchEnd:V,onMouseUp:_,onMouseMove:j,ownerState:{disabled:m},className:I.squareMask}),!E&&$.jsxs(c.Fragment,{children:[$.jsx(Lwe,{className:I.pin}),i!=null&&$.jsx(kwe,{type:v,viewValue:y,isInner:T,hasSelected:A})]}),$.jsx(Dwe,{"aria-activedescendant":g,"aria-label":k.clockLabelText(v,i,S),ref:z,role:"listbox",onKeyDown:D,tabIndex:0,className:I.wrapper,children:s})]}),n&&r&&$.jsxs(c.Fragment,{children:[$.jsx(Fwe,{onClick:C?void 0:()=>l("am"),disabled:m||u===null,ownerState:w,className:I.amButton,title:il(S,"am"),children:$.jsx(RO,{variant:"caption",className:I.meridiemText,children:il(S,"am")})}),$.jsx(Nwe,{disabled:m||u===null,onClick:C?void 0:()=>l("pm"),ownerState:w,className:I.pmButton,title:il(S,"pm"),children:$.jsx(RO,{variant:"caption",className:I.meridiemText,children:il(S,"pm")})})]})]})}function zwe(e){return Ke("MuiClockNumber",e)}const ug=We("MuiClockNumber",["root","selected","disabled"]),Vwe=["className","disabled","index","inner","label","selected"],jwe=e=>{const{classes:t,selected:n,disabled:r}=e;return _e({root:["root",n&&"selected",r&&"disabled"]},zwe,t)},Hwe=te("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ug.disabled}`]:t.disabled},{[`&.${ug.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>x({height:Ri,width:Ri,position:"absolute",left:`calc((100% - ${Ri}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${ug.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${ug.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function o3(e){const t=je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=oe(t,Vwe),u=t,f=jwe(u),p=o%12/12*Math.PI*2-Math.PI/2,g=(Ed-Ri-2)/2*(s?.65:1),v=Math.round(Math.cos(p)*g),y=Math.round(Math.sin(p)*g);return $.jsx(Hwe,x({className:ye(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${v}px, ${y+(Ed-Ri)/2}px`},ownerState:u},a,{children:i}))}const Uwe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:s})=>{const i=t?s.getHours(t):null,l=[],a=e?1:0,u=e?12:23,f=p=>i===null?!1:e?p===12?i===12||i===0:i===p||i-12===p:i===p;for(let p=a;p<=u;p+=1){let g=p.toString();p===0&&(g="00");const v=!e&&(p===0||p>12);g=s.formatNumber(g);const y=f(p);l.push($.jsx(o3,{id:y?o:void 0,index:p,inner:v,selected:y,disabled:r(p),label:g,"aria-label":n(g)},p))}return l},OO=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([i,l],a)=>{const u=i===t;return $.jsx(o3,{label:l,id:u?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:u,"aria-label":r(l)},i)})},TI=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=rn(),a=c.useRef(n),u=(s=t!=null?t:a.current)!=null?s:o.emptyValue,f=c.useMemo(()=>o.getTimezone(l,u),[l,o,u]),p=Ye(m=>f==null?m:o.setTimezone(l,f,m)),g=(i=e!=null?e:f)!=null?i:"default",v=c.useMemo(()=>o.setTimezone(l,g,u),[o,l,g,u]),y=Ye((m,...C)=>{const b=p(m);r==null||r(b,...C)});return{value:v,handleValueChange:y,timezone:g}},Qd=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,l]=Kr({name:e,state:"value",controlled:n,default:r!=null?r:s.emptyValue}),a=Ye((u,...f)=>{l(u),o==null||o(u,...f)});return TI({timezone:t,value:i,defaultValue:void 0,onChange:a,valueManager:s})},Js={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Wwe=e=>Math.max(...e.map(t=>{var n;return(n=Js[t.type])!=null?n:1})),zf=(e,t,n)=>{if(t===Js.year)return e.startOfYear(n);if(t===Js.month)return e.startOfMonth(n);if(t===Js.day)return e.startOfDay(n);let r=n;return t<Js.minutes&&(r=e.setMinutes(r,0)),t<Js.seconds&&(r=e.setSeconds(r,0)),t<Js.milliseconds&&(r=e.setMilliseconds(r,0)),r},Gwe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():zf(t,n,MI(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=zf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=zf(t,n,e.maxDate));const l=Vh((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=zf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Gx(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=zf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Gx(t,i,e.maxTime))),i},s3=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
622
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Kwe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},u0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),s=e.startOfWeek(o),i=e.endOfWeek(o);let l=s;for(;e.isBefore(l,i);)r.push(l),l=e.addDays(l,1);return r.map(a=>e.formatByString(a,n))},i3=(e,t,n,r)=>{switch(n){case"month":return EI(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return u0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},l3=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},a3=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const s=n.toString();return o.hasLeadingZerosInInput?l3(e,s,o.maxLength):s},qwe=(e,t,n,r,o,s,i)=>{const l=Kwe(r),a=r==="Home",u=r==="End",f=n.value===""||a||u,p=()=>{const v=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),y=w=>a3(e,t,w,v,n),m=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let b=parseInt(n.value,10)+l*m;if(f){if(n.type==="year"&&!u&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?b=v.minimum:b=v.maximum}return b%m!==0&&((l<0||a)&&(b+=m-(m+b)%m),(l>0||u)&&(b-=b%m)),b>v.maximum?y(v.minimum+(b-v.maximum-1)%(v.maximum-v.minimum+1)):b<v.minimum?y(v.maximum-(v.minimum-b-1)%(v.maximum-v.minimum+1)):y(b)},g=()=>{const v=i3(e,t,n.type,n.format);if(v.length===0)return n.value;if(f)return l>0||a?v[0]:v[v.length-1];const m=(v.indexOf(n.value)+v.length+l)%v.length;return v[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():g()},_I=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}`),t==="input-rtl"&&(n=`${n}`),n},Nu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),c3=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let s=0;s<e.length;s+=1){const i=e[s],l=_I(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,u=Nu(a).length,f=a.length,p=Nu(l),g=r+l.indexOf(p[0])+i.startSeparator.length,v=g+p.length;o.push(x({},i,{start:n,end:n+u,startInInput:g,endInInput:v})),n+=u,r+=f}return o},Ywe=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return o}},DO=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),u3=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,d3=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return u3(e,t,o)?e.formatByString(e.setYear(s,1),o)==="0001":e.formatByString(e.setYear(s,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},Qwe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},AO=(e,t,n,r,o,s,i,l)=>{let a="";const u=[],f=e.date(),p=S=>{if(S==="")return null;const k=s3(e,S),M=d3(e,t,k.contentType,k.type,S),I=i?M:k.contentType==="digit",E=o!=null&&e.isValid(o);let T=E?e.formatByString(o,S):"",L=null;if(I)if(M)L=T===""?e.formatByString(f,S).length:T.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);L=k.maxLength,E&&(T=l3(e,T,L))}return u.push(x({},k,{format:S,maxLength:L,value:T,placeholder:Ywe(e,t,n,k,S),hasLeadingZeros:M,hasLeadingZerosInFormat:M,hasLeadingZerosInInput:I,startSeparator:u.length===0?a:"",endSeparator:"",modified:!1})),null};let g=10,v=r,y=e.expandFormat(r);for(;y!==v;)if(v=y,y=e.expandFormat(v),g-=1,g<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=y,C=Qwe(e,m),b=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let w="";for(let S=0;S<m.length;S+=1){const k=C.find(L=>L.start<=S&&L.end>=S),M=m[S],I=k!=null,E=`${w}${m.slice(S)}`,T=b.test(E);!I&&M.match(/([A-Za-z]+)/)&&T?(w=E.slice(0,b.lastIndex),S+=b.lastIndex-1):I&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(p(w),w="",u.length===0?a+=M:u[u.length-1].endSeparator+=M)}return p(w),u.map(S=>{const k=M=>{let I=M;return l&&I!==null&&I.includes(" ")&&(I=`${I}`),s==="spacious"&&["/",".","-"].includes(I)&&(I=` ${I} `),I};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},Xwe=(e,t)=>{const n=t.some(l=>l.type==="day"),r=[],o=[];for(let l=0;l<t.length;l+=1){const a=t[l];n&&a.type==="weekDay"||(r.push(a.format),o.push(_I(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},Zwe=(e,t)=>{const r=e.map(o=>{const s=_I(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`${r}`:r},Jwe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=EI(e,n).reduce((l,a)=>{const u=e.getDaysInMonth(a);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:a}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:u3(e,t,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:i}),weekDay:({format:l,contentType:a})=>{if(a==="digit"){const u=u0(e,t,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const a=e.getHours(o);return e.formatByString(e.endOfDay(n),l)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),l))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},eCe=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const s=u0(e,t,n.format),i=e.formatByString(r,n.format),l=s.indexOf(i),u=s.indexOf(n.value)-l;return e.addDays(r,u)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,i=e.getHours(o);return s&&i>=12?e.addHours(o,-12):!s&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},LO={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},FO=(e,t,n,r,o,s)=>[...r].sort((i,l)=>LO[i.type]-LO[l.type]).reduce((i,l)=>!s||l.modified?eCe(e,t,l,n,i):i,o),tCe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,nCe=(e,t)=>{const n={};if(!t)return e.forEach((a,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,l=e.length-1;for(;l>=0;){i=e.findIndex((a,u)=>{var f;return u>=s&&((f=a.endSeparator)==null?void 0:f.includes(" "))&&a.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let a=i;a>=s;a-=1)o[a]=l,r[l]=a,l-=1;s=i+1}return e.forEach((a,u)=>{const f=o[u],p=f===0?null:r[f-1],g=f===e.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:g}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},rCe=["value","referenceDate"],Jo={emptyValue:null,getTodayValue:MI,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=oe(e,rCe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:Gwe(r)},cleanValue:Ewe,areValuesEqual:Mwe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},oCe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:c3(o(t),r),getValueStrFromSections:Zwe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},$I=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},RI=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=c.useMemo(()=>Jo.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Js.day,timezone:o,getTodayDate:()=>MI(n,o,"date")}),[]);return e!=null?e:s},sCe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],iCe=e=>{const{classes:t}=e;return _e({root:["root"],arrowSwitcher:["arrowSwitcher"]},hwe,t)},lCe=te(c0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),aCe=te(J5,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),cCe=["hours","minutes"],uCe=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:g,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:b,disableFuture:w,disablePast:S,minutesStep:k=1,shouldDisableClock:M,shouldDisableTime:I,showViewSwitcher:E,onChange:T,view:L,views:O=cCe,openTo:R,onViewChange:V,focusedView:j,onFocusedViewChange:_,className:A,disabled:F,readOnly:z,timezone:D}=o,N=oe(o,sCe),H=f!=null?f:$I(a),K=p!=null?p:u,{value:Y,handleValueChange:Z,timezone:Q}=Qd({name:"TimeClock",timezone:D,value:g,defaultValue:v,onChange:T,valueManager:Jo}),X=RI({value:Y,referenceDate:y,utils:r,props:o,timezone:Q}),J=os(),ne=Aa(Q),{view:fe,setView:we,previousView:Ce,nextView:ae,setValueAndGoToNextView:be}=jh({view:L,views:O,openTo:R,onViewChange:V,onChange:Z,focusedView:j,onFocusedViewChange:_}),{meridiemMode:de,handleMeridiemChange:ke}=II(X,s,be),Ie=c.useCallback((ue,ce)=>{const ie=Vh(m,r),ge=ce==="hours"||ce==="minutes"&&O.includes("seconds"),Te=({start:Ge,end:Ve})=>!(b&&ie(b,Ve)||C&&ie(Ge,C)||w&&ie(Ge,ne)||S&&ie(ne,ge?Ve:Ge)),Ne=(Ge,Ve=1)=>{if(Ge%Ve!==0||M!=null&&M(Ge,ce))return!1;if(I)switch(ce){case"hours":return!I(r.setHours(X,Ge),"hours");case"minutes":return!I(r.setMinutes(X,Ge),"minutes");case"seconds":return!I(r.setSeconds(X,Ge),"seconds");default:return!1}return!0};switch(ce){case"hours":{const Ge=dh(ue,de,s),Ve=r.setHours(X,Ge),Ue=r.setSeconds(r.setMinutes(Ve,0),0),Le=r.setSeconds(r.setMinutes(Ve,59),59);return!Te({start:Ue,end:Le})||!Ne(Ge)}case"minutes":{const Ge=r.setMinutes(X,ue),Ve=r.setSeconds(Ge,0),Ue=r.setSeconds(Ge,59);return!Te({start:Ve,end:Ue})||!Ne(ue,k)}case"seconds":{const Ge=r.setSeconds(X,ue);return!Te({start:Ge,end:Ge})||!Ne(ue)}default:throw new Error("not supported")}},[s,X,m,C,de,b,k,M,I,r,w,S,ne,O]),le=Kt(),Ee=c.useMemo(()=>{switch(fe){case"hours":{const ue=(ce,ie)=>{const ge=dh(ce,de,s);be(r.setHours(X,ge),ie)};return{onChange:ue,viewValue:r.getHours(X),children:Uwe({value:Y,utils:r,ampm:s,onChange:ue,getClockNumberText:J.hoursClockNumberText,isDisabled:ce=>F||Ie(ce,"hours"),selectedId:le})}}case"minutes":{const ue=r.getMinutes(X),ce=(ie,ge)=>{be(r.setMinutes(X,ie),ge)};return{viewValue:ue,onChange:ce,children:OO({utils:r,value:ue,onChange:ce,getClockNumberText:J.minutesClockNumberText,isDisabled:ie=>F||Ie(ie,"minutes"),selectedId:le})}}case"seconds":{const ue=r.getSeconds(X),ce=(ie,ge)=>{be(r.setSeconds(X,ie),ge)};return{viewValue:ue,onChange:ce,children:OO({utils:r,value:ue,onChange:ce,getClockNumberText:J.secondsClockNumberText,isDisabled:ie=>F||Ie(ie,"seconds"),selectedId:le})}}default:throw new Error("You must provide the type for ClockView")}},[fe,r,Y,s,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,de,be,X,Ie,le,F]),me=o,Me=iCe(me);return $.jsxs(lCe,x({ref:n,className:ye(Me.root,A),ownerState:me},N,{children:[$.jsx(Bwe,x({autoFocus:l!=null?l:!!j,ampmInClock:i&&O.includes("hours"),value:Y,type:fe,ampm:s,minutesStep:k,isTimeDisabled:Ie,meridiemMode:de,handleMeridiemChange:ke,selectedId:le,disabled:F,readOnly:z},Ee)),E&&$.jsx(aCe,{className:Me.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>we(Ce),isPreviousDisabled:!Ce,previousLabel:J.openPreviousView,onGoToNext:()=>we(ae),isNextDisabled:!ae,nextLabel:J.openNextView,ownerState:me})]}))});function dCe(e){return Ke("MuiDigitalClock",e)}const fCe=We("MuiDigitalClock",["root","list","item"]),pCe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],hCe=e=>{const{classes:t}=e;return _e({root:["root"],list:["list"],item:["item"]},dCe,t)},mCe=te(c0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:t3})),gCe=te(Hd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),vCe=te(Sr,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity)}})),yCe=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=c.useRef(null),a=It(n,l),u=je({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:g,components:v,componentsProps:y,slots:m,slotProps:C,value:b,defaultValue:w,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:M,minTime:I,disableFuture:E,disablePast:T,minutesStep:L=1,shouldDisableClock:O,shouldDisableTime:R,onChange:V,view:j,openTo:_,onViewChange:A,focusedView:F,onFocusedViewChange:z,className:D,disabled:N,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:Z}=u,Q=oe(u,pCe),{value:X,handleValueChange:J,timezone:ne}=Qd({name:"DigitalClock",timezone:Z,value:b,defaultValue:w,onChange:V,valueManager:Jo}),fe=os(),we=Aa(ne),Ce=c.useMemo(()=>x({},u,{alreadyRendered:!!l.current}),[u]),ae=hCe(Ce),be=(r=(o=m==null?void 0:m.digitalClockItem)!=null?o:v==null?void 0:v.DigitalClockItem)!=null?r:vCe,de=qt({elementType:be,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:y==null?void 0:y.digitalClockItem,ownerState:{},className:ae.item}),ke=RI({value:X,referenceDate:S,utils:i,props:u,timezone:ne}),Ie=Ye(ue=>J(ue,"finish","hours")),{setValueAndGoToNextView:le}=jh({view:j,views:K,openTo:_,onViewChange:A,onChange:Ie,focusedView:F,onFocusedViewChange:z}),Ee=Ye(ue=>{le(ue,"finish")});c.useEffect(()=>{if(l.current===null)return;const ue=l.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ue)return;const ce=ue.offsetTop;l.current.scrollTop=ce-4});const me=c.useCallback(ue=>{const ce=Vh(k,i),ie=()=>!(I&&ce(I,ue)||M&&ce(ue,M)||E&&ce(ue,we)||T&&ce(we,ue)),ge=()=>i.getMinutes(ue)%L!==0||O!=null&&O(i.toJsDate(ue).getTime(),"hours")?!1:R?!R(ue,"hours"):!0;return!ie()||!ge()},[k,i,I,M,E,we,T,L,O,R]),Me=c.useMemo(()=>{const ue=i.startOfDay(ke);return[ue,...Array.from({length:Math.ceil(24*60/p)-1},(ce,ie)=>i.addMinutes(ue,p*(ie+1)))]},[ke,p,i]);return $.jsx(mCe,x({ref:a,className:ye(ae.root,D),ownerState:Ce},Q,{children:$.jsx(gCe,{autoFocusItem:g||!!F,role:"listbox","aria-label":fe.timePickerToolbarTitle,className:ae.list,children:Me.map(ue=>{if(Y&&me(ue))return null;const ce=i.isEqual(ue,X);return $.jsx(be,x({onClick:()=>!H&&Ee(ue),selected:ce,disabled:N||me(ue),disableRipple:H,role:"option","aria-disabled":H,"aria-selected":ce},de,{children:i.format(ue,f?"fullTime12h":"fullTime24h")}),i.toISO(ue))})})}))});function bCe(e){return Ke("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function wCe(e){return Ke("MuiMultiSectionDigitalClock",e)}const CCe=We("MuiMultiSectionDigitalClock",["root","item"]),xCe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],SCe=e=>{const{classes:t}=e;return _e({root:["root"],item:["item"]},wCe,t)},PCe=te(Hd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:t3,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),kCe=te(Sr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:tp,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity)}})),ICe=c.forwardRef(function(t,n){var r;const o=c.useRef(null),s=It(n,o),i=c.useRef(null),l=je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:u,className:f,disabled:p,readOnly:g,items:v,active:y,slots:m,slotProps:C,skipDisabled:b}=l,w=oe(l,xCe),S=c.useMemo(()=>x({},l,{alreadyRendered:!!o.current}),[l]),k=SCe(S),M=(r=m==null?void 0:m.digitalClockSectionItem)!=null?r:kCe;return c.useEffect(()=>{if(o.current===null)return;const I=o.current.querySelector('[role="option"][aria-selected="true"]');if(!I||i.current===I){i.current!==I&&(i.current=I);return}i.current=I,y&&a&&I.focus();const E=I.offsetTop;o.current.scrollTop=E-4}),$.jsx(PCe,x({ref:s,className:ye(k.root,f),ownerState:S,autoFocusItem:a&&y,role:"listbox"},w,{children:v.map(I=>{var E,T;if(b&&(E=I.isDisabled)!=null&&E.call(I,I.value))return null;const L=I.isSelected(I.value);return $.jsx(M,x({onClick:()=>!g&&u(I.value),selected:L,disabled:p||((T=I.isDisabled)==null?void 0:T.call(I,I.value)),disableRipple:g,role:"option","aria-disabled":g,"aria-label":I.ariaLabel,"aria-selected":L},C==null?void 0:C.digitalClockSectionItem,{children:I.label}),I.label)})}))}),ECe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:s,timeStep:i})=>{const l=t?n.getHours(t):null,a=[],u=p=>l===null?!1:r?p===12?l===12||l===0:l===p||l-12===p:l===p,f=r?11:23;for(let p=0;p<=f;p+=i){let g=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const v=s(parseInt(g,10).toString());g=n.formatNumber(g),a.push({value:p,label:g,isSelected:u,isDisabled:o,ariaLabel:v})}return a},NO=({value:e,isDisabled:t,timeStep:n,resolveLabel:r,resolveAriaLabel:o,hasValue:s=!0})=>{const i=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/n)},(l,a)=>{const u=n*a;return{value:u,label:r(u),isDisabled:t,isSelected:i,ariaLabel:o(u.toString())}})]},MCe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],TCe=e=>{const{classes:t}=e;return _e({root:["root"]},bCe,t)},_Ce=te(c0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),$Ce=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:g,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:b,disableFuture:w,disablePast:S,minutesStep:k=1,shouldDisableClock:M,shouldDisableTime:I,onChange:E,view:T,views:L=["hours","minutes"],openTo:O,onViewChange:R,focusedView:V,onFocusedViewChange:j,className:_,disabled:A,readOnly:F,skipDisabled:z=!1,timezone:D}=o,N=oe(o,MCe),{value:H,handleValueChange:K,timezone:Y}=Qd({name:"MultiSectionDigitalClock",timezone:D,value:g,defaultValue:v,onChange:E,valueManager:Jo}),Z=os(),Q=Aa(Y),X=c.useMemo(()=>x({hours:1,minutes:5,seconds:5},i),[i]),J=RI({value:H,referenceDate:y,utils:r,props:o,timezone:Y}),ne=Ye((ce,ie,ge)=>K(ce,ie,ge)),fe=c.useMemo(()=>!s||!L.includes("hours")||L.includes("meridiem")?L:[...L,"meridiem"],[s,L]),{view:we,setValueAndGoToView:Ce,focusedView:ae}=jh({view:T,views:fe,openTo:O,onViewChange:R,onChange:ne,focusedView:V,onFocusedViewChange:j}),be=Ye(ce=>{Ce(ce,null,"meridiem")}),{meridiemMode:de,handleMeridiemChange:ke}=II(J,s,be,"finish"),Ie=c.useCallback((ce,ie)=>{const ge=Vh(m,r),Te=ie==="hours"||ie==="minutes"&&fe.includes("seconds"),Ne=({start:Ve,end:Ue})=>!(b&&ge(b,Ue)||C&&ge(Ve,C)||w&&ge(Ve,Q)||S&&ge(Q,Te?Ue:Ve)),Ge=(Ve,Ue=1)=>{if(Ve%Ue!==0||M!=null&&M(Ve,ie))return!1;if(I)switch(ie){case"hours":return!I(r.setHours(J,Ve),"hours");case"minutes":return!I(r.setMinutes(J,Ve),"minutes");case"seconds":return!I(r.setSeconds(J,Ve),"seconds");default:return!1}return!0};switch(ie){case"hours":{const Ve=dh(ce,de,s),Ue=r.setHours(J,Ve),Le=r.setSeconds(r.setMinutes(Ue,0),0),pt=r.setSeconds(r.setMinutes(Ue,59),59);return!Ne({start:Le,end:pt})||!Ge(Ve)}case"minutes":{const Ve=r.setMinutes(J,ce),Ue=r.setSeconds(Ve,0),Le=r.setSeconds(Ve,59);return!Ne({start:Ue,end:Le})||!Ge(ce,k)}case"seconds":{const Ve=r.setSeconds(J,ce);return!Ne({start:Ve,end:Ve})||!Ge(ce)}default:throw new Error("not supported")}},[s,J,m,C,de,b,k,M,I,r,w,S,Q,fe]),le=Ye((ce,ie)=>{const ge=fe.indexOf(ce),Te=fe[ge+1];Ce(ie,Te,ce)}),Ee=c.useCallback(ce=>{switch(ce){case"hours":return{onChange:ie=>{const ge=dh(ie,de,s);le("hours",r.setHours(J,ge))},items:ECe({now:Q,value:H,ampm:s,utils:r,isDisabled:ie=>A||Ie(ie,"hours"),timeStep:X.hours,resolveAriaLabel:Z.hoursClockNumberText})};case"minutes":return{onChange:ie=>{le("minutes",r.setMinutes(J,ie))},items:NO({value:r.getMinutes(J),isDisabled:ie=>A||Ie(ie,"minutes"),resolveLabel:ie=>r.format(r.setMinutes(Q,ie),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:Z.minutesClockNumberText})};case"seconds":return{onChange:ie=>{le("seconds",r.setSeconds(J,ie))},items:NO({value:r.getSeconds(J),isDisabled:ie=>A||Ie(ie,"seconds"),resolveLabel:ie=>r.format(r.setSeconds(Q,ie),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:Z.secondsClockNumberText})};case"meridiem":{const ie=il(r,"am"),ge=il(r,"pm");return{onChange:ke,items:[{value:"am",label:ie,isSelected:()=>!!H&&de==="am",ariaLabel:ie},{value:"pm",label:ge,isSelected:()=>!!H&&de==="pm",ariaLabel:ge}]}}default:throw new Error(`Unknown view: ${ce} found.`)}},[Q,H,s,r,X.hours,X.minutes,X.seconds,Z.hoursClockNumberText,Z.minutesClockNumberText,Z.secondsClockNumberText,de,le,J,A,Ie,ke]),me=c.useMemo(()=>fe.reduce((ce,ie)=>x({},ce,{[ie]:Ee(ie)}),{}),[fe,Ee]),Me=o,ue=TCe(Me);return $.jsx(_Ce,x({ref:n,className:ye(ue.root,_),ownerState:Me,role:"group"},N,{children:Object.entries(me).map(([ce,ie])=>$.jsx(ICe,{items:ie.items,onChange:ie.onChange,active:we===ce,autoFocus:l!=null?l:ae===ce,disabled:A,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:u,skipDisabled:z,"aria-label":Z.selectViewText(ce)},ce))}))});function RCe(e){return Ke("MuiPickersDay",e)}const Ga=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),OCe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],DCe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:a}=e,u=i&&!l;return _e({root:["root",t&&!u&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},RCe,a)},f3=({theme:e,ownerState:t})=>x({},e.typography.caption,{width:fh,height:fh,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ga.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ga.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ga.disabled}:not(.${Ga.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ga.disabled}&.${Ga.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${i0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ga.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),p3=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},ACe=te(ai,{name:"MuiPickersDay",slot:"Root",overridesResolver:p3})(f3),LCe=te("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:p3})(({theme:e,ownerState:t})=>x({},f3({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Vf=()=>{},FCe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:l=!1,disableHighlightToday:a=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:g,onFocus:v=Vf,onBlur:y=Vf,onKeyDown:m=Vf,onMouseDown:C=Vf,onMouseEnter:b=Vf,outsideCurrentMonth:w,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:M,today:I=!1}=r,E=oe(r,OCe),T=x({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:I}),L=DCe(T),O=rn(),R=c.useRef(null),V=It(R,n);Nt(()=>{o&&!l&&!f&&!w&&R.current.focus()},[o,l,f,w]);const j=A=>{C(A),w&&A.preventDefault()},_=A=>{l||g(i),w&&A.currentTarget.focus(),p&&p(A)};return w&&!k?$.jsx(LCe,{className:ye(L.root,L.hiddenDaySpacingFiller,s),ownerState:T,role:E.role}):$.jsx(ACe,x({className:ye(L.root,s),ref:V,centerRipple:!0,disabled:l,tabIndex:S?0:-1,onKeyDown:A=>m(A,i),onFocus:A=>v(A,i),onBlur:A=>y(A,i),onMouseEnter:A=>b(A,i),onClick:_,onMouseDown:j},E,{ownerState:T,children:M||O.format(i,"dayOfMonth")}))}),NCe=c.memo(FCe);function h3(e,t,n,r){const{value:o,onError:s}=e,i=Vc(),l=c.useRef(r),a=t({adapter:i,value:o,props:e});return c.useEffect(()=>{s&&!n(a,l.current)&&s(a,o),l.current=a},[n,s,l,a,o]),a}const BCe=e=>{const t=rn(),n=os(),r=Vc(),s=yn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:u,internalProps:f,internalProps:{value:p,defaultValue:g,referenceDate:v,onChange:y,format:m,formatDensity:C="dense",selectedSections:b,onSelectedSectionsChange:w,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:M,value:I,handleValueChange:E}=TI({timezone:k,value:p,defaultValue:g,onChange:y,valueManager:i}),T=c.useMemo(()=>Jwe(t,M),[t,M]),L=c.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,J=>AO(t,M,n,m,J,C,S,s)),[l,m,n,s,S,t,C,M]),O=c.useMemo(()=>l.getValueStrFromSections(L(i.emptyValue),s),[l,L,i.emptyValue,s]),[R,V]=c.useState(()=>{const Q=L(I),X={sections:Q,value:I,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=Wwe(Q),ne=i.getInitialReferenceValue({referenceDate:v,value:I,utils:t,props:f,granularity:J,timezone:M});return x({},X,{referenceValue:ne})}),[j,_]=Kr({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),A=Q=>{_(Q),w==null||w(Q),V(X=>x({},X,{selectedSectionQuery:null}))},F=c.useMemo(()=>{if(j==null)return null;if(j==="all")return{startIndex:0,endIndex:R.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof j=="number")return{startIndex:j,endIndex:j};if(typeof j=="string"){const Q=R.sections.findIndex(X=>X.type===j);return{startIndex:Q,endIndex:Q}}return j},[j,R.sections]),z=({value:Q,referenceValue:X,sections:J})=>{if(V(fe=>x({},fe,{sections:J,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,R.value,Q))return;const ne={validationError:u({adapter:r,value:Q,props:x({},f,{value:Q,timezone:M})})};E(Q,ne)},D=(Q,X)=>{const J=[...R.sections];return J[Q]=x({},J[Q],{value:X,modified:!0}),c3(J,s)},N=()=>{z({value:i.emptyValue,referenceValue:R.referenceValue,sections:L(i.emptyValue)})},H=()=>{if(F==null)return;const Q=R.sections[F.startIndex],X=l.getActiveDateManager(t,R,Q),ne=X.getSections(R.sections).filter(ae=>ae.value!=="").length===(Q.value===""?0:1),fe=D(F.startIndex,""),we=ne?null:t.date(new Date("")),Ce=X.getNewValuesFromNewActiveDate(we);(we!=null&&!t.isValid(we))!=(X.date!=null&&!t.isValid(X.date))?z(x({},Ce,{sections:fe})):V(ae=>x({},ae,Ce,{sections:fe,tempValueStrAndroid:null}))},K=Q=>{const X=(fe,we)=>{const Ce=t.parse(fe,m);if(Ce==null||!t.isValid(Ce))return null;const ae=AO(t,M,n,m,Ce,C,S,s);return FO(t,M,Ce,ae,we,!1)},J=l.parseValueStr(Q,R.referenceValue,X),ne=l.updateReferenceValue(t,J,R.referenceValue);z({value:J,referenceValue:ne,sections:L(J,R.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:J})=>{J&&F&&F.startIndex<R.sections.length-1?A(F.startIndex+1):F&&F.startIndex!==F.endIndex&&A(F.startIndex);const ne=l.getActiveDateManager(t,R,Q),fe=D(F.startIndex,X),we=ne.getSections(fe),Ce=Xwe(t,we);let ae,be;if(Ce!=null&&t.isValid(Ce)){const de=FO(t,M,Ce,we,ne.referenceDate,!0);ae=ne.getNewValuesFromNewActiveDate(de),be=!0}else ae=ne.getNewValuesFromNewActiveDate(Ce),be=(Ce!=null&&!t.isValid(Ce))!=(ne.date!=null&&!t.isValid(ne.date));return be?z(x({},ae,{sections:fe})):V(de=>x({},de,ae,{sections:fe,tempValueStrAndroid:null}))},Z=Q=>V(X=>x({},X,{tempValueStrAndroid:Q}));return c.useEffect(()=>{const Q=L(R.value);V(X=>x({},X,{sections:Q}))},[m,t.locale]),c.useEffect(()=>{let Q=!1;i.areValuesEqual(t,R.value,I)?Q=i.getTimezone(t,R.value)!==i.getTimezone(t,I):Q=!0,Q&&V(X=>x({},X,{value:I,referenceValue:l.updateReferenceValue(t,I,X.referenceValue),sections:L(I)}))},[I]),{state:R,selectedSectionIndexes:F,setSelectedSections:A,clearValue:N,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:Z,sectionsValueBoundaries:T,placeholder:O,timezone:M}},zCe=5e3,mu=e=>e.saveQuery!=null,VCe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=rn(),[i,l]=c.useState(null),a=Ye(()=>l(null));c.useEffect(()=>{var v;i!=null&&((v=e[i.sectionIndex])==null?void 0:v.type)!==i.sectionType&&a()},[e,i,a]),c.useEffect(()=>{if(i!=null){const v=setTimeout(()=>a(),zCe);return()=>{window.clearTimeout(v)}}return()=>{}},[i,a]);const u=({keyPressed:v,sectionIndex:y},m,C)=>{const b=v.toLowerCase(),w=e[y];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===y){const k=`${i.value}${b}`,M=m(k,w);if(!mu(M))return l({sectionIndex:y,value:k,sectionType:w.type}),M}const S=m(b,w);return mu(S)&&!S.saveQuery?(a(),null):(l({sectionIndex:y,value:b,sectionType:w.type}),mu(S)?null:S)},f=v=>{const y=(b,w,S)=>{const k=w.filter(M=>M.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},m=(b,w,S,k)=>{const M=I=>i3(s,o,w.type,I);if(w.contentType==="letter")return y(w.format,M(w.format),b);if(S&&k!=null&&s3(s,S).contentType==="letter"){const I=M(S),E=y(S,I,b);return mu(E)?{saveQuery:!1}:x({},E,{sectionValue:k(E.sectionValue,I)})}return{saveQuery:!1}};return u(v,(b,w)=>{switch(w.type){case"month":{const S=k=>DO(s,k,s.formats.month,w.format);return m(b,w,s.formats.month,S)}case"weekDay":{const S=(k,M)=>M.indexOf(k).toString();return m(b,w,s.formats.weekday,S)}case"meridiem":return m(b,w);default:return{saveQuery:!1}}})},p=v=>{const y=(C,b)=>{const w=+`${C}`,S=n[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(w>S.maximum)return{saveQuery:!1};if(w<S.minimum)return{saveQuery:!0};const k=+`${C}0`>S.maximum||C.length===S.maximum.toString().length;return{sectionValue:a3(s,o,w,S,b),shouldGoToNextSection:k}};return u(v,(C,b)=>{if(b.contentType==="digit"||b.contentType==="digit-with-letter")return y(C,b);if(b.type==="month"){const w=d3(s,o,"digit","month","MM"),S=y(C,{type:b.type,format:"MM",hasLeadingZerosInFormat:w,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(mu(S))return S;const k=DO(s,S.sectionValue,"MM",b.format);return x({},S,{sectionValue:k})}if(b.type==="weekDay"){const w=y(C,b);if(mu(w))return w;const S=u0(s,o,b.format)[Number(w.sectionValue)-1];return x({},w,{sectionValue:S})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:Ye(v=>{const y=e[v.sectionIndex],C=!Number.isNaN(Number(v.keyPressed))?p(v):f(v);C==null?r(null):t({activeSection:y,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:a}};function jCe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const HCe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ry=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ry(t.shadowRoot):t:null},UCe="@media (pointer: fine)",WCe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],GCe=e=>{const t=rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:u,sectionsValueBoundaries:f,placeholder:p,timezone:g}=BCe(e),{inputRef:v,internalProps:y,internalProps:{readOnly:m=!1,unstableFieldRef:C,minutesStep:b},forwardedProps:{onClick:w,onKeyDown:S,onFocus:k,onBlur:M,onMouseUp:I,onPaste:E,error:T,clearable:L,onClear:O,disabled:R},fieldValueManager:V,valueManager:j,validator:_}=e,A=oe(e.forwardedProps,WCe),{applyCharacterEditing:F,resetCharacterQuery:z}=VCe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:u,timezone:g}),D=c.useRef(null),N=It(v,D),H=c.useRef(void 0),Y=yn().direction==="rtl",Z=c.useMemo(()=>nCe(n.sections,Y),[n.sections,Y]),Q=()=>{var ue;if(m){o(null);return}const ce=(ue=D.current.selectionStart)!=null?ue:0;let ie;ce<=n.sections[0].startInInput||ce>=n.sections[n.sections.length-1].endInInput?ie=1:ie=n.sections.findIndex(Te=>Te.startInInput-Te.startSeparator.length>ce);const ge=ie===-1?n.sections.length-1:ie-1;o(ge)},X=Ye((ue,...ce)=>{ue.isDefaultPrevented()||(w==null||w(ue,...ce),Q())}),J=Ye(ue=>{I==null||I(ue),ue.preventDefault()}),ne=Ye((...ue)=>{k==null||k(...ue);const ce=D.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!ce||ce!==D.current||r!=null||m||(ce.value.length&&Number(ce.selectionEnd)-Number(ce.selectionStart)===ce.value.length?o("all"):Q())})}),fe=Ye((...ue)=>{M==null||M(...ue),o(null)}),we=Ye(ue=>{if(E==null||E(ue),m){ue.preventDefault();return}const ce=ue.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const ie=n.sections[r.startIndex],ge=/^[a-zA-Z]+$/.test(ce),Te=/^[0-9]+$/.test(ce),Ne=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ce);if(ie.contentType==="letter"&&ge||ie.contentType==="digit"&&Te||ie.contentType==="digit-with-letter"&&Ne)return;if(ge||Te){ue.preventDefault();return}}ue.preventDefault(),z(),a(ce)}),Ce=Ye(ue=>{if(m)return;const ce=ue.target.value;if(ce===""){z(),s();return}const ie=ue.nativeEvent.data,ge=ie&&ie.length>1,Te=ge?ie:ce,Ne=Nu(Te);if(r==null||ge){a(ge?ie:Ne);return}let Ge;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ne.length===1)Ge=Ne;else{const Ve=Nu(V.getValueStrFromSections(n.sections,Y));let Ue=-1,Le=-1;for(let wt=0;wt<Ve.length;wt+=1)Ue===-1&&Ve[wt]!==Ne[wt]&&(Ue=wt),Le===-1&&Ve[Ve.length-wt-1]!==Ne[Ne.length-wt-1]&&(Le=wt);const pt=n.sections[r.startIndex];if(Ue<pt.start||Ve.length-Le-1>pt.end)return;const Pt=Ne.length-Ve.length+pt.end-Nu(pt.endSeparator||"").length;Ge=Ne.slice(pt.start+Nu(pt.startSeparator||"").length,Pt)}if(Ge.length===0){tCe()?u(Te):(z(),i());return}F({keyPressed:Ge,sectionIndex:r.startIndex})}),ae=Ye(ue=>{switch(S==null||S(ue),!0){case(ue.key==="a"&&(ue.ctrlKey||ue.metaKey)):{ue.preventDefault(),o("all");break}case ue.key==="ArrowRight":{if(ue.preventDefault(),r==null)o(Z.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const ce=Z.neighbors[r.startIndex].rightIndex;ce!==null&&o(ce)}break}case ue.key==="ArrowLeft":{if(ue.preventDefault(),r==null)o(Z.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const ce=Z.neighbors[r.startIndex].leftIndex;ce!==null&&o(ce)}break}case ue.key==="Delete":{if(ue.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ue.key):{if(ue.preventDefault(),m||r==null)break;const ce=n.sections[r.startIndex],ie=V.getActiveDateManager(t,n,ce),ge=qwe(t,g,ce,ue.key,f,ie.date,{minutesStep:b});l({activeSection:ce,newSectionValue:ge,shouldGoToNextSection:!1});break}}});Nt(()=>{if(!D.current)return;if(r==null){D.current.scrollLeft&&(D.current.scrollLeft=0);return}const ue=n.sections[r.startIndex],ce=n.sections[r.endIndex];let ie=ue.startInInput,ge=ce.endInInput;if(r.shouldSelectBoundarySelectors&&(ie-=ue.startSeparator.length,ge+=ce.endSeparator.length),ie!==D.current.selectionStart||ge!==D.current.selectionEnd){const Te=D.current.scrollTop;D.current===ry(document)&&D.current.setSelectionRange(ie,ge),D.current.scrollTop=Te}});const be=h3(x({},y,{value:n.value,timezone:g}),_,j.isSameError,j.defaultErrorState),de=c.useMemo(()=>T!==void 0?T:j.hasError(be),[j,be,T]);c.useEffect(()=>{!de&&!r&&z()},[n.referenceValue,r,de]),c.useEffect(()=>(D.current&&D.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),c.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(z(),i())},[n.tempValueStrAndroid]);const ke=c.useMemo(()=>{var ue;return(ue=n.tempValueStrAndroid)!=null?ue:V.getValueStrFromSections(n.sections,Y)},[n.sections,V,n.tempValueStrAndroid,Y]),Ie=c.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),le=D.current&&D.current===ry(document),Ee=j.areValuesEqual(t,n.value,j.emptyValue),me=!le&&Ee;c.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ue,ce;const ie=(ue=D.current.selectionStart)!=null?ue:0,ge=(ce=D.current.selectionEnd)!=null?ce:0;if(ie===0&&ge===0)return null;const Te=ie<=n.sections[0].startInInput?1:n.sections.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>ie);return Te===-1?n.sections.length-1:Te-1},setSelectedSections:ue=>o(ue)}));const Me=Ye((ue,...ce)=>{var ie;ue.preventDefault(),O==null||O(ue,...ce),s(),D==null||(ie=D.current)==null||ie.focus(),o(0)});return x({placeholder:p,autoComplete:"off",disabled:!!R},A,{value:me?"":ke,inputMode:Ie,readOnly:m,onClick:X,onFocus:ne,onBlur:fe,onPaste:we,onChange:Ce,onKeyDown:ae,onMouseUp:J,onClear:Me,error:de,ref:N,clearable:!!(L&&!Ee&&!m&&!R)})},m3=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:a}=e,u=n.utils.dateWithTimezone(void 0,a),f=Ls(n.utils,e.minDate,n.defaultDates.minDate),p=Ls(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(l&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&n.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&n.utils.isAfterDay(t,p)):return"maxDate";default:return null}},Kx=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],qx=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],g3=["minDateTime","maxDateTime"],KCe=[...Kx,...qx,...g3],v3=e=>KCe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),qCe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],YCe=(e,t)=>{const n=x({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return qCe.forEach(o),t==="date"?Kx.forEach(o):t==="time"?qx.forEach(o):t==="date-time"&&(Kx.forEach(o),qx.forEach(o),g3.forEach(o)),{forwardedProps:n,internalProps:r}},QCe=te(fN)({[`& .${bp.container}`]:{outline:0},[`& .${bp.paper}`]:{outline:0,minWidth:l0}}),XCe=te(pN)({"&:first-of-type":{padding:0}});function ZCe(e){var t,n;const{children:r,onDismiss:o,open:s,slots:i,slotProps:l}=e,a=(t=i==null?void 0:i.dialog)!=null?t:QCe,u=(n=i==null?void 0:i.mobileTransition)!=null?n:zd;return $.jsx(a,x({open:s,onClose:o},l==null?void 0:l.dialog,{TransitionComponent:u,TransitionProps:l==null?void 0:l.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:l==null?void 0:l.mobilePaper,children:$.jsx(XCe,{children:r})}))}function JCe(e){return Ke("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const exe="@media (prefers-reduced-motion: reduce)",td=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),BO=td&&td[1]?parseInt(td[1],10):null,zO=td&&td[2]?parseInt(td[2],10):null,txe=BO&&BO<10||zO&&zO<13||!1,y3=()=>Eb(exe,{defaultMatches:!1})||txe,nxe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],rxe=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},JCe,t)},oxe=te($a,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),sxe=te(zs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>x({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ixe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lxe(e,t){const n=c.useRef(!1),r=c.useRef(!1),o=c.useRef(null),s=c.useRef(!1);c.useEffect(()=>{if(!e)return;function a(){s.current=!0}return document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),()=>{document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),s.current=!1}},[e]);const i=Ye(a=>{if(!s.current)return;const u=r.current;r.current=!1;const f=fn(o.current);if(!o.current||"clientX"in a&&ixe(a,f))return;if(n.current){n.current=!1;return}let p;a.composedPath?p=a.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(a.target)||o.current.contains(a.target),!p&&!u&&t(a)}),l=()=>{r.current=!0};return c.useEffect(()=>{if(e){const a=fn(o.current),u=()=>{n.current=!0};return a.addEventListener("touchstart",i),a.addEventListener("touchmove",u),()=>{a.removeEventListener("touchstart",i),a.removeEventListener("touchmove",u)}}},[e,i]),c.useEffect(()=>{if(e){const a=fn(o.current);return a.addEventListener("click",i),()=>{a.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,l,l]}const axe=c.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:u}=e,f=oe(e,nxe),p=x({},o,{placement:r}),g=qt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return $.jsx(n,x({},f,g,{onClick:v=>{var y;a(v),(y=g.onClick)==null||y.call(g,v)},onTouchStart:v=>{var y;u(v),(y=g.onTouchStart)==null||y.call(g,v)},ownerState:p,children:s}))});function cxe(e){var t,n,r,o;const s=je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:l,containerRef:a=null,shouldRestoreFocus:u,onBlur:f,onDismiss:p,open:g,role:v,placement:y,slots:m,slotProps:C,reduceAnimations:b}=s;c.useEffect(()=>{function N(H){g&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,g]);const w=c.useRef(null);c.useEffect(()=>{v==="tooltip"||u&&!u()||(g?w.current=ry(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[g,v,u]);const[S,k,M]=lxe(g,f!=null?f:p),I=c.useRef(null),E=It(I,a),T=It(E,S),L=s,O=rxe(L),R=y3(),V=b!=null?b:R,j=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},_=((t=m==null?void 0:m.desktopTransition)!=null?t:V)?zd:eh,A=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:AP,F=(r=m==null?void 0:m.desktopPaper)!=null?r:sxe,z=(o=m==null?void 0:m.popper)!=null?o:oxe,D=qt({elementType:z,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:v,open:g,anchorEl:i,placement:y,onKeyDown:j},className:O.root,ownerState:s});return $.jsx(z,x({},D,{children:({TransitionProps:N,placement:H})=>$.jsx(A,x({open:g,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:v==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:$.jsx(_,x({},N,C==null?void 0:C.desktopTransition,{children:$.jsx(axe,{PaperComponent:F,ownerState:L,popperPlacement:H,ref:T,onPaperClick:k,onPaperTouchStart:M,paperClasses:O.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function b3(e){return Ke("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const uxe=e=>{const{classes:t,isLandscape:n}=e;return _e({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},b3,t)},dxe=te("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>x({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),fxe=te("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),pxe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:l,titleId:a}=r,u=r,f=uxe(u);return l?null:$.jsxs(dxe,{ref:n,className:ye(f.root,s),ownerState:u,children:[$.jsx(Kn,{color:"text.secondary",variant:"overline",id:a,children:i}),$.jsx(fxe,{className:f.content,ownerState:u,children:o})]})});function hxe(e){return Ke("MuiPickersToolbarText",e)}const VO=We("MuiPickersToolbarText",["root","selected"]),mxe=["className","selected","value"],gxe=e=>{const{classes:t,selected:n}=e;return _e({root:["root",n&&"selected"]},hxe,t)},vxe=te(Kn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${VO.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${VO.selected}`]:{color:(e.vars||e).palette.text.primary}})),w3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=oe(r,mxe),l=gxe(r);return $.jsx(vxe,x({ref:n,className:ye(o,l.root),component:"span"},i,{children:s}))}),yxe=["align","className","selected","typographyClassName","value","variant","width"],bxe=e=>{const{classes:t}=e;return _e({root:["root"]},b3,t)},wxe=te(qn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Fl=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:s,selected:i,typographyClassName:l,value:a,variant:u,width:f}=r,p=oe(r,yxe),g=bxe(r);return $.jsx(wxe,x({variant:"text",ref:n,className:ye(s,g.root)},f?{sx:{width:f}}:{},p,{children:$.jsx(w3,{align:o,className:l,variant:u,value:a,selected:i})}))}),Cxe=({open:e,onOpen:t,onClose:n})=>{const r=c.useRef(typeof e=="boolean").current,[o,s]=c.useState(!1);c.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=c.useCallback(l=>{r||s(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},xxe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},Sxe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Pxe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},kxe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:l,defaultValue:a,closeOnSelect:u=r==="desktop",selectedSections:f,onSelectedSectionsChange:p,timezone:g}=e,{current:v}=c.useRef(a),{current:y}=c.useRef(l!==void 0),m=rn(),C=Vc(),[b,w]=Kr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=Cxe(e),[M,I]=c.useState(()=>{let ne;return l!==void 0?ne=l:v!==void 0?ne=v:ne=t.emptyValue,{draft:ne,lastPublishedValue:ne,lastCommittedValue:ne,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:T}=TI({timezone:g,value:l,defaultValue:v,onChange:i,valueManager:t});h3(x({},e,{value:M.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const L=Ye(ne=>{const fe={action:ne,dateState:M,hasChanged:be=>!t.areValuesEqual(m,ne.value,be),isControlled:y,closeOnSelect:u},we=xxe(fe),Ce=Sxe(fe),ae=Pxe(fe);if(I(be=>x({},be,{draft:ne.value,lastPublishedValue:we?ne.value:be.lastPublishedValue,lastCommittedValue:Ce?ne.value:be.lastCommittedValue,hasBeenModifiedSinceMount:!0})),we){const de={validationError:ne.name==="setValueFromField"?ne.context.validationError:o({adapter:C,value:ne.value,props:x({},e,{value:ne.value,timezone:E})})};ne.name==="setValueFromShortcut"&&ne.shortcut!=null&&(de.shortcut=ne.shortcut),T(ne.value,de)}Ce&&s&&s(ne.value),ae&&k(!1)});if(l!==void 0&&(M.lastControlledValue===void 0||!t.areValuesEqual(m,M.lastControlledValue,l))){const ne=t.areValuesEqual(m,M.draft,l);I(fe=>x({},fe,{lastControlledValue:l},ne?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const O=Ye(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),R=Ye(()=>{L({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=Ye(()=>{L({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),j=Ye(()=>{L({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),_=Ye(()=>{L({value:t.getTodayValue(m,E,n),name:"setValueFromAction",pickerAction:"today"})}),A=Ye(()=>k(!0)),F=Ye(()=>k(!1)),z=Ye((ne,fe="partial")=>L({name:"setValueFromView",value:ne,selectionState:fe})),D=Ye((ne,fe,we)=>L({name:"setValueFromShortcut",value:ne,changeImportance:fe!=null?fe:"accept",shortcut:we})),N=Ye((ne,fe)=>L({name:"setValueFromField",value:ne,context:fe})),H=Ye(ne=>{w(ne),p==null||p(ne)}),K={onClear:O,onAccept:R,onDismiss:V,onCancel:j,onSetToday:_,onOpen:A,onClose:F},Y={value:M.draft,onChange:N,selectedSections:b,onSelectedSectionsChange:H},Z=c.useMemo(()=>t.cleanValue(m,M.draft),[m,t,M.draft]),Q={value:Z,onChange:z,onClose:F,open:S,onSelectedSectionsChange:H},J=x({},K,{value:Z,onChange:z,onSelectShortcut:D,isValid:ne=>{const fe=o({adapter:C,value:ne,props:x({},e,{value:ne,timezone:E})});return!t.hasError(fe)}});return{open:S,fieldProps:Y,viewProps:Q,layoutProps:J,actions:K}},Ixe=["className","sx"],Exe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:s,open:i,onSelectedSectionsChange:l,onClose:a}=t,{views:u,openTo:f,onViewChange:p,disableOpenPicker:g,viewRenderers:v,timezone:y}=e,m=oe(e,Ixe),{view:C,setView:b,defaultView:w,focusedView:S,setFocusedView:k,setValueAndGoToNextView:M}=jh({view:void 0,views:u,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:I,viewModeLookup:E}=c.useMemo(()=>u.reduce((_,A)=>{let F;return g?F="field":v[A]!=null?F="UI":F="field",_.viewModeLookup[A]=F,F==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[g,v,u]),T=c.useMemo(()=>u.reduce((_,A)=>v[A]!=null&&Id(A)?_+1:_,0),[v,u]),L=E[C],O=Ye(()=>L==="UI"),[R,V]=c.useState(L==="UI"?C:null);return R!==C&&E[C]==="UI"&&V(C),Nt(()=>{L==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Nt(()=>{if(!i)return;let _=C;L==="field"&&R!=null&&(_=R),_!==w&&E[_]==="UI"&&E[w]==="UI"&&(_=w),_!==C&&b(_),k(_,!0)},[i]),{hasUIView:I,shouldRestoreFocus:O,layoutProps:{views:u,view:R,onViewChange:b},renderCurrentView:()=>{if(R==null)return null;const _=v[R];return _==null?null:_(x({},m,n,t,{views:u,timezone:y,onChange:M,view:R,onViewChange:b,focusedView:S,onFocusedViewChange:k,showViewSwitcher:T>1,timeViewsCount:T}))}}};function jO(){return typeof window=="undefined"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Mxe=(e,t)=>{const[n,r]=c.useState(jO);return Nt(()=>{const s=()=>{r(jO())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),jCe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Txe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Mxe(n.views,o);return{layoutProps:x({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},C3=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
|
623
|
+
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};C3(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const x3=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=kxe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=Exe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=Txe({props:e,wrapperVariant:r,propsFromPickerValue:a.layoutProps,propsFromPickerViews:u.layoutProps});return{open:a.open,actions:a.actions,fieldProps:a.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:f.layoutProps}};function S3(e){return Ke("MuiPickersLayout",e)}const zw=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),_xe=["onAccept","onClear","onCancel","onSetToday","actions"];function $xe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=oe(e,_xe),l=os();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(u=>{switch(u){case"clear":return $.jsx(qn,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return $.jsx(qn,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return $.jsx(qn,{onClick:t,children:l.okButtonLabel},u);case"today":return $.jsx(qn,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return $.jsx(rre,x({},i,{children:a}))}const Rxe=["items","changeImportance","isLandscape","onChange","isValid"],Oxe=["getValue"];function Dxe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=oe(e,Rxe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,u=oe(l,Oxe);const f=a({isValid:o});return{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)}});return $.jsx(Mh,x({dense:!0,sx:[{maxHeight:a0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>$.jsx(UP,{children:$.jsx(gb,x({},l))},l.label))}))}function Axe(e){return e.view!==null}const Lxe=e=>{const{classes:t,isLandscape:n}=e;return _e({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},S3,t)},Fxe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:u,onViewChange:f,value:p,onChange:g,onSelectShortcut:v,isValid:y,isLandscape:m,disabled:C,readOnly:b,children:w,components:S,componentsProps:k,slots:M,slotProps:I}=e,E=M!=null?M:$I(S),T=I!=null?I:k,L=Lxe(e),O=(t=E==null?void 0:E.actionBar)!=null?t:$xe,R=qt({elementType:O,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:o,onClear:s,onCancel:i,onSetToday:l,actions:r==="desktop"?[]:["cancel","accept"],className:L.actionBar},ownerState:x({},e,{wrapperVariant:r})}),V=$.jsx(O,x({},R)),j=E==null?void 0:E.toolbar,_=qt({elementType:j,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:m,onChange:g,value:p,view:a,onViewChange:f,views:u,disabled:C,readOnly:b,className:L.toolbar},ownerState:x({},e,{wrapperVariant:r})}),A=Axe(_)&&j?$.jsx(j,x({},_)):null,F=w,z=E==null?void 0:E.tabs,D=a&&z?$.jsx(z,x({view:a,onViewChange:f},T==null?void 0:T.tabs)):null,N=(n=E==null?void 0:E.shortcuts)!=null?n:Dxe,H=qt({elementType:N,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:y,isLandscape:m,onChange:v,className:L.shortcuts},ownerState:{isValid:y,isLandscape:m,onChange:v,className:L.shortcuts,wrapperVariant:r}}),K=a&&N?$.jsx(N,x({},H)):null;return{toolbar:A,content:F,tabs:D,actionBar:V,shortcuts:K}},Nxe=Fxe,Bxe=e=>{const{isLandscape:t,classes:n}=e;return _e({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},S3,n)},P3=te("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${zw.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${zw.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${zw.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));P3.propTypes={as:W.elementType,ownerState:W.shape({isLandscape:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const zxe=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),k3=function(t){const n=je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=Nxe(n),{sx:a,className:u,isLandscape:f,ref:p,wrapperVariant:g}=n,v=n,y=Bxe(v);return $.jsxs(P3,{ref:p,sx:a,className:ye(u,y.root),ownerState:v,children:[f?l:r,f?r:l,$.jsx(zxe,{className:y.contentWrapper,children:g==="desktop"?$.jsxs(c.Fragment,{children:[o,s]}):$.jsxs(c.Fragment,{children:[s,o]})}),i]})},Vxe=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableClock:i,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:a=!1,disablePast:u,disableFuture:f,timezone:p}=n,g=e.utils.dateWithTimezone(void 0,p),v=Vh(a,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&v(r,t)):return"minTime";case!!(o&&v(t,o)):return"maxTime";case!!(f&&e.utils.isAfter(t,g)):return"disableFuture";case!!(u&&e.utils.isBefore(t,g)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},OI=({props:e,value:t,adapter:n})=>{const r=m3({adapter:n,value:t,props:e});return r!==null?r:Vxe({adapter:n,value:t,props:e})},jxe=e=>Ke("MuiPickersSlideTransition",e),gs=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Hxe=["children","className","reduceAnimations","slideDirection","transKey","classes"],Uxe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return _e(r,jxe,t)},Wxe=te(OP,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${gs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${gs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${gs.slideEnterActive}`]:t.slideEnterActive},{[`.${gs.slideExit}`]:t.slideExit},{[`.${gs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${gs["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${gs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${gs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${gs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${gs.slideExit}`]:{transform:"translate(0%)"},[`& .${gs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${gs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Gxe(e){const t=je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=oe(t,Hxe),l=Uxe(t),a=yn();if(o)return $.jsx("div",{className:ye(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return $.jsx(Wxe,{className:ye(l.root,r),childFactory:f=>c.cloneElement(f,{classNames:u}),role:"presentation",children:$.jsx(PX,x({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:u},i,{children:n}),s)})}const I3=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Vc();return c.useCallback(u=>m3({adapter:a,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l}})!==null,[a,e,t,n,r,o,s,i,l])},Kxe=e=>Ke("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const qxe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Yxe=["ownerState"],Qxe=e=>{const{classes:t}=e;return _e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Kxe,t)},E3=(fh+i0*2)*6,Xxe=te("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zxe=te("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Jxe=te(Kn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),eSe=te(Kn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),tSe=te(Kn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>x({},e.typography.caption,{width:fh,height:fh,padding:0,margin:`0 ${i0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),nSe=te("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:E3}),rSe=te(Gxe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:E3}),oSe=te("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),sSe=te("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${i0}px 0`,display:"flex",justifyContent:"center"});function iSe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:u,isViewFocused:f}=e,p=oe(e,qxe);const{disabled:g,disableHighlightToday:v,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:m,components:C,componentsProps:b,slots:w,slotProps:S,timezone:k}=o,M=rn(),I=Aa(k),E=i!==null&&M.isSameDay(s,i),T=l.some(z=>M.isSameDay(z,s)),L=M.isSameDay(s,I),O=(t=(n=w==null?void 0:w.day)!=null?n:C==null?void 0:C.Day)!=null?t:NCe,R=qt({elementType:O,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:b==null?void 0:b.day,additionalProps:x({disableHighlightToday:v,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:y,"data-timestamp":M.toJsDate(s).valueOf()},p),ownerState:x({},o,{day:s,selected:T})}),V=oe(R,Yxe),j=c.useMemo(()=>g||a(s),[g,a,s]),_=c.useMemo(()=>M.getMonth(s)!==u,[M,s,u]),A=c.useMemo(()=>{const z=M.startOfMonth(M.setMonth(s,u));return m?M.isSameDay(s,M.startOfWeek(z)):M.isSameDay(s,z)},[u,s,m,M]),F=c.useMemo(()=>{const z=M.endOfMonth(M.setMonth(s,u));return m?M.isSameDay(s,M.endOfWeek(z)):M.isSameDay(s,z)},[u,s,m,M]);return $.jsx(O,x({},V,{day:s,disabled:j,autoFocus:f&&E,today:L,outsideCurrentMonth:_,isFirstVisibleCell:A,isLastVisibleCell:F,selected:T,tabIndex:E?0:-1,"aria-selected":T,"aria-current":L?"date":void 0}))}function lSe(e){const t=je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:a,onMonthSwitchingAnimationEnd:u,readOnly:f,reduceAnimations:p,renderLoading:g=()=>$.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:m,disableFuture:C,minDate:b,maxDate:w,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:M,dayOfWeekFormatter:I,hasFocus:E,onFocusedViewChange:T,gridLabelId:L,displayWeekNumber:O,fixedWeekNumber:R,autoFocus:V,timezone:j}=t,_=Aa(j),A=rn(),F=Qxe(t),D=yn().direction==="rtl",N=I||((me,Me)=>A.format(Me,"weekdayShort").charAt(0).toUpperCase()),H=I3({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:M,minDate:b,maxDate:w,disablePast:m,disableFuture:C,timezone:j}),K=os(),[Y,Z]=Kr({name:"DayCalendar",state:"hasFocus",controlled:E,default:V!=null?V:!1}),[Q,X]=c.useState(()=>i||_),J=Ye(me=>{f||a(me)}),ne=me=>{H(me)||(n(me),X(me),T==null||T(!0),Z(!0))},fe=Ye((me,Me)=>{switch(me.key){case"ArrowUp":ne(A.addDays(Me,-7)),me.preventDefault();break;case"ArrowDown":ne(A.addDays(Me,7)),me.preventDefault();break;case"ArrowLeft":{const ue=A.addDays(Me,D?1:-1),ce=A.addMonths(Me,D?1:-1),ie=Pp({utils:A,date:ue,minDate:D?ue:A.startOfMonth(ce),maxDate:D?A.endOfMonth(ce):ue,isDateDisabled:H,timezone:j});ne(ie||ue),me.preventDefault();break}case"ArrowRight":{const ue=A.addDays(Me,D?-1:1),ce=A.addMonths(Me,D?-1:1),ie=Pp({utils:A,date:ue,minDate:D?A.startOfMonth(ce):ue,maxDate:D?ue:A.endOfMonth(ce),isDateDisabled:H,timezone:j});ne(ie||ue),me.preventDefault();break}case"Home":ne(A.startOfWeek(Me)),me.preventDefault();break;case"End":ne(A.endOfWeek(Me)),me.preventDefault();break;case"PageUp":ne(A.addMonths(Me,1)),me.preventDefault();break;case"PageDown":ne(A.addMonths(Me,-1)),me.preventDefault();break}}),we=Ye((me,Me)=>ne(Me)),Ce=Ye((me,Me)=>{Y&&A.isSameDay(Q,Me)&&(T==null||T(!1))}),ae=A.getMonth(o),be=c.useMemo(()=>s.filter(me=>!!me).map(me=>A.startOfDay(me)),[A,s]),de=ae,ke=c.useMemo(()=>c.createRef(),[de]),Ie=A.startOfWeek(_),le=c.useMemo(()=>{const me=A.startOfMonth(o),Me=A.endOfMonth(o);return H(Q)||A.isAfterDay(Q,Me)||A.isBeforeDay(Q,me)?Pp({utils:A,date:Q,minDate:me,maxDate:Me,disablePast:m,disableFuture:C,isDateDisabled:H,timezone:j}):Q},[o,C,m,Q,H,A,j]),Ee=c.useMemo(()=>{const me=A.setTimezone(o,j),Me=A.getWeekArray(me);let ue=A.addMonths(me,1);for(;R&&Me.length<R;){const ce=A.getWeekArray(ue),ie=A.isSameDay(Me[Me.length-1][0],ce[0][0]);ce.slice(ie?1:0).forEach(ge=>{Me.length<R&&Me.push(ge)}),ue=A.addMonths(ue,1)}return Me},[o,R,A,j]);return $.jsxs(Xxe,{role:"grid","aria-labelledby":L,className:F.root,children:[$.jsxs(Zxe,{role:"row",className:F.header,children:[O&&$.jsx(eSe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),_we(A,_).map((me,Me)=>{var ue;const ce=A.format(me,"weekdayShort");return $.jsx(Jxe,{variant:"caption",role:"columnheader","aria-label":A.format(A.addDays(Ie,Me),"weekday"),className:F.weekDayLabel,children:(ue=N==null?void 0:N(ce,me))!=null?ue:ce},ce+Me.toString())})]}),l?$.jsx(nSe,{className:F.loadingContainer,children:g()}):$.jsx(rSe,x({transKey:de,onExited:u,reduceAnimations:p,slideDirection:v,className:ye(r,F.slideTransition)},y,{nodeRef:ke,children:$.jsx(oSe,{ref:ke,role:"rowgroup",className:F.monthContainer,children:Ee.map((me,Me)=>$.jsxs(sSe,{role:"row",className:F.weekContainer,"aria-rowindex":Me+1,children:[O&&$.jsx(tSe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(A.getWeekNumber(me[0])),children:K.calendarWeekNumberText(A.getWeekNumber(me[0]))}),me.map((ue,ce)=>$.jsx(iSe,{parentProps:t,day:ue,selectedDays:be,focusableDay:le,onKeyDown:fe,onFocus:we,onBlur:Ce,onDaySelect:J,isDateDisabled:H,currentMonthNumber:ae,isViewFocused:Y,"aria-colindex":ce+1},ue.toString()))]},`week-${me[0]}`))})}))]})}const aSe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return x({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return x({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return x({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},cSe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:i=!1,maxDate:l,minDate:a,onMonthChange:u,reduceAnimations:f,shouldDisableDate:p,timezone:g}=e,v=Aa(g),y=rn(),m=c.useRef(aSe(!!f,i,y)).current,C=c.useMemo(()=>{let T=null;return n?T=n:r&&(T=y.startOfMonth(r)),Jo.getInitialReferenceValue({value:t,utils:y,timezone:g,props:e,referenceDate:T,granularity:Js.day})},[]),[b,w]=c.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:y.isValid(t)?t:v,currentMonth:y.startOfMonth(C),slideDirection:"left"}),S=c.useCallback(T=>{w(x({type:"changeMonth"},T)),u&&u(T.newMonth)},[u]),k=c.useCallback(T=>{const L=T;y.isSameMonth(L,b.currentMonth)||S({newMonth:y.startOfMonth(L),direction:y.isAfterDay(L,b.currentMonth)?"left":"right"})},[b.currentMonth,S,y]),M=I3({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:g}),I=c.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]),E=Ye((T,L)=>{M(T)||w({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:L})});return{referenceDate:C,calendarState:b,changeMonth:k,changeFocusedDay:E,isDateDisabled:M,onMonthSwitchingAnimationEnd:I,handleChangeMonth:S}},uSe=["ownerState"],dSe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,u,f,p,g,v;const y=os(),m=(a=(u=o==null?void 0:o.clearButton)!=null?u:i==null?void 0:i.ClearButton)!=null?a:pr,C=qt({elementType:m,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),b=oe(C,uSe),w=(p=(g=o==null?void 0:o.clearIcon)!=null?g:i==null?void 0:i.ClearIcon)!=null?p:ewe,S=qt({elementType:w,externalSlotProps:(v=s==null?void 0:s.clearIcon)!=null?v:l==null?void 0:l.clearIcon,ownerState:{}}),k=x({},n,{endAdornment:e?$.jsxs(c.Fragment,{children:[$.jsx(gl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:$.jsx(m,x({},b,{onClick:r,children:$.jsx(w,x({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),M=x({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:k,fieldProps:M}},fSe=e=>{var t,n,r,o,s,i,l,a;const u=rn(),f=zh(),g=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return x({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:g,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Ls(u,(s=e.minDateTime)!=null?s:e.minDate,f.minDate),maxDate:Ls(u,(i=e.maxDateTime)!=null?i:e.maxDate,f.maxDate),minTime:(l=e.minDateTime)!=null?l:e.minTime,maxTime:(a=e.maxDateTime)!=null?a:e.maxTime})},pSe=({props:e,inputRef:t})=>{const n=fSe(e),{forwardedProps:r,internalProps:o}=YCe(n,"date-time");return GCe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:Jo,fieldValueManager:oCe,validator:OI,valueType:"date-time"})},hSe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],mSe=["inputRef"],gSe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],M3=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:u,slotProps:f,InputProps:p,inputProps:g}=i,v=oe(i,hSe),y=i,m=(r=(o=u==null?void 0:u.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Fc,C=qt({elementType:m,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:v,ownerState:y}),{inputRef:b}=C,w=oe(C,mSe);w.inputProps=x({},g,w.inputProps),w.InputProps=x({},p,w.InputProps);const S=pSe({props:w,inputRef:b}),{ref:k,onPaste:M,onKeyDown:I,inputMode:E,readOnly:T,clearable:L,onClear:O}=S,R=oe(S,gSe),{InputProps:V,fieldProps:j}=dSe({onClear:O,clearable:L,fieldProps:R,InputProps:R.InputProps,slots:u,slotProps:f,components:l,componentsProps:a});return $.jsx(m,x({ref:n},j,{InputProps:x({},V,{readOnly:T}),inputProps:x({},R.inputProps,{inputMode:E,onPaste:M,onKeyDown:I,ref:k})}))}),vSe=e=>Ke("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const ySe=e=>{const{classes:t}=e;return _e({root:["root"]},vSe,t)},bSe=te(OP,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function T3(e){const t=je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ySe(t),l=yn();return o?n:$.jsx(bSe,{className:ye(i.root,r),children:$.jsx(zd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},s)})}function wSe(e){return Ke("MuiPickersMonth",e)}const dg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),CSe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],xSe=e=>{const{disabled:t,selected:n,classes:r}=e;return _e({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},wSe,r)},SSe=te("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),PSe=te("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${dg.disabled}`]:t.disabled},{[`&.${dg.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${dg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${dg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),kSe=c.memo(function(t){const n=je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:s,selected:i,value:l,tabIndex:a,onClick:u,onKeyDown:f,onFocus:p,onBlur:g,"aria-current":v,"aria-label":y}=n,m=oe(n,CSe),C=c.useRef(null),b=xSe(n);return Nt(()=>{if(r){var w;(w=C.current)==null||w.focus()}},[r]),$.jsx(SSe,x({className:b.root,ownerState:n},m,{children:$.jsx(PSe,{ref:C,disabled:s,type:"button",role:"radio",tabIndex:s?-1:a,"aria-current":v,"aria-checked":i,"aria-label":y,onClick:w=>u(w,l),onKeyDown:w=>f(w,l),onFocus:w=>p(w,l),onBlur:w=>g(w,l),className:b.monthButton,ownerState:n,children:o})}))});function ISe(e){return Ke("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const ESe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],MSe=e=>{const{classes:t}=e;return _e({root:["root"]},ISe,t)};function TSe(e,t){const n=rn(),r=zh(),o=je({props:e,name:t});return x({disableFuture:!1,disablePast:!1},o,{minDate:Ls(n,o.minDate,r.minDate),maxDate:Ls(n,o.maxDate,r.maxDate)})}const _Se=te("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:l0,boxSizing:"border-box"}),$Se=c.forwardRef(function(t,n){const r=TSe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:u,disablePast:f,maxDate:p,minDate:g,onChange:v,shouldDisableMonth:y,readOnly:m,disableHighlightToday:C,autoFocus:b=!1,onMonthFocus:w,hasFocus:S,onFocusedViewChange:k,monthsPerRow:M=3,timezone:I,gridLabelId:E}=r,T=oe(r,ESe),{value:L,handleValueChange:O,timezone:R}=Qd({name:"MonthCalendar",timezone:I,value:s,defaultValue:i,onChange:v,valueManager:Jo}),V=Aa(R),j=Nd(),_=rn(),A=c.useMemo(()=>Jo.getInitialReferenceValue({value:L,utils:_,props:r,timezone:R,referenceDate:l,granularity:Js.month}),[]),F=r,z=MSe(F),D=c.useMemo(()=>_.getMonth(V),[_,V]),N=c.useMemo(()=>L!=null?_.getMonth(L):C?null:_.getMonth(A),[L,_,C,A]),[H,K]=c.useState(()=>N||D),[Y,Z]=Kr({name:"MonthCalendar",state:"hasFocus",controlled:S,default:b!=null?b:!1}),Q=Ye(ae=>{Z(ae),k&&k(ae)}),X=c.useCallback(ae=>{const be=_.startOfMonth(f&&_.isAfter(V,g)?V:g),de=_.startOfMonth(u&&_.isBefore(V,p)?V:p),ke=_.startOfMonth(ae);return _.isBefore(ke,be)||_.isAfter(ke,de)?!0:y?y(ke):!1},[u,f,p,g,V,y,_]),J=Ye((ae,be)=>{if(m)return;const de=_.setMonth(L!=null?L:A,be);O(de)}),ne=Ye(ae=>{X(_.setMonth(L!=null?L:A,ae))||(K(ae),Q(!0),w&&w(ae))});c.useEffect(()=>{K(ae=>N!==null&&ae!==N?N:ae)},[N]);const fe=Ye((ae,be)=>{switch(ae.key){case"ArrowUp":ne((12+be-3)%12),ae.preventDefault();break;case"ArrowDown":ne((12+be+3)%12),ae.preventDefault();break;case"ArrowLeft":ne((12+be+(j.direction==="ltr"?-1:1))%12),ae.preventDefault();break;case"ArrowRight":ne((12+be+(j.direction==="ltr"?1:-1))%12),ae.preventDefault();break}}),we=Ye((ae,be)=>{ne(be)}),Ce=Ye((ae,be)=>{H===be&&Q(!1)});return $.jsx(_Se,x({ref:n,className:ye(z.root,o),ownerState:F,role:"radiogroup","aria-labelledby":E},T,{children:EI(_,L!=null?L:A).map(ae=>{const be=_.getMonth(ae),de=_.format(ae,"monthShort"),ke=_.format(ae,"month"),Ie=be===N,le=a||X(ae);return $.jsx(kSe,{selected:Ie,value:be,onClick:J,onKeyDown:fe,autoFocus:Y&&be===H,disabled:le,tabIndex:be===H?0:-1,onFocus:we,onBlur:Ce,"aria-current":D===be?"date":void 0,"aria-label":ke,monthsPerRow:M,children:de},de)})}))});function RSe(e){return Ke("MuiPickersYear",e)}const fg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),OSe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],DSe=e=>{const{disabled:t,selected:n,classes:r}=e;return _e({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},RSe,r)},ASe=te("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),LSe=te("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${fg.disabled}`]:t.disabled},{[`&.${fg.selected}`]:t.selected}]})(({theme:e})=>x({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${fg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${fg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),FSe=c.memo(function(t){const n=je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:l,value:a,tabIndex:u,onClick:f,onKeyDown:p,onFocus:g,onBlur:v,"aria-current":y}=n,m=oe(n,OSe),C=c.useRef(null),b=DSe(n);return c.useEffect(()=>{r&&C.current.focus()},[r]),$.jsx(ASe,x({className:ye(b.root,o),ownerState:n},m,{children:$.jsx(LSe,{ref:C,disabled:i,type:"button",role:"radio",tabIndex:i?-1:u,"aria-current":y,"aria-checked":l,onClick:w=>f(w,a),onKeyDown:w=>p(w,a),onFocus:w=>g(w,a),onBlur:w=>v(w,a),className:b.yearButton,ownerState:n,children:s})}))});function NSe(e){return Ke("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const BSe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],zSe=e=>{const{classes:t}=e;return _e({root:["root"]},NSe,t)};function VSe(e,t){var n;const r=rn(),o=zh(),s=je({props:e,name:t});return x({disablePast:!1,disableFuture:!1},s,{yearsPerRow:(n=s.yearsPerRow)!=null?n:3,minDate:Ls(r,s.minDate,o.minDate),maxDate:Ls(r,s.maxDate,o.maxDate)})}const jSe=te("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:l0,maxHeight:pwe,boxSizing:"border-box",position:"relative"}),HSe=c.forwardRef(function(t,n){const r=VSe(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:u,disableFuture:f,disablePast:p,maxDate:g,minDate:v,onChange:y,readOnly:m,shouldDisableYear:C,disableHighlightToday:b,onYearFocus:w,hasFocus:S,onFocusedViewChange:k,yearsPerRow:M,timezone:I,gridLabelId:E}=r,T=oe(r,BSe),{value:L,handleValueChange:O,timezone:R}=Qd({name:"YearCalendar",timezone:I,value:i,defaultValue:l,onChange:y,valueManager:Jo}),V=Aa(R),j=Nd(),_=rn(),A=c.useMemo(()=>Jo.getInitialReferenceValue({value:L,utils:_,props:r,timezone:R,referenceDate:a,granularity:Js.year}),[]),F=r,z=zSe(F),D=c.useMemo(()=>_.getYear(V),[_,V]),N=c.useMemo(()=>L!=null?_.getYear(L):b?null:_.getYear(A),[L,_,b,A]),[H,K]=c.useState(()=>N||D),[Y,Z]=Kr({name:"YearCalendar",state:"hasFocus",controlled:S,default:o!=null?o:!1}),Q=Ye(de=>{Z(de),k&&k(de)}),X=c.useCallback(de=>{if(p&&_.isBeforeYear(de,V)||f&&_.isAfterYear(de,V)||v&&_.isBeforeYear(de,v)||g&&_.isAfterYear(de,g))return!0;if(!C)return!1;const ke=_.startOfYear(de);return C(ke)},[f,p,g,v,V,C,_]),J=Ye((de,ke)=>{if(m)return;const Ie=_.setYear(L!=null?L:A,ke);O(Ie)}),ne=Ye(de=>{X(_.setYear(L!=null?L:A,de))||(K(de),Q(!0),w==null||w(de))});c.useEffect(()=>{K(de=>N!==null&&de!==N?N:de)},[N]);const fe=Ye((de,ke)=>{switch(de.key){case"ArrowUp":ne(ke-M),de.preventDefault();break;case"ArrowDown":ne(ke+M),de.preventDefault();break;case"ArrowLeft":ne(ke+(j.direction==="ltr"?-1:1)),de.preventDefault();break;case"ArrowRight":ne(ke+(j.direction==="ltr"?1:-1)),de.preventDefault();break}}),we=Ye((de,ke)=>{ne(ke)}),Ce=Ye((de,ke)=>{H===ke&&Q(!1)}),ae=c.useRef(null),be=It(n,ae);return c.useEffect(()=>{if(o||ae.current===null)return;const de=ae.current.querySelector('[tabindex="0"]');if(!de)return;const ke=de.offsetHeight,Ie=de.offsetTop,le=ae.current.clientHeight,Ee=ae.current.scrollTop,me=Ie+ke;ke>le||Ie<Ee||(ae.current.scrollTop=me-le/2-ke/2)},[o]),$.jsx(jSe,x({ref:be,className:ye(z.root,s),ownerState:F,role:"radiogroup","aria-labelledby":E},T,{children:_.getYearRange(v,g).map(de=>{const ke=_.getYear(de),Ie=ke===N,le=u||X(de);return $.jsx(FSe,{selected:Ie,value:ke,onClick:J,onKeyDown:fe,autoFocus:Y&&ke===H,disabled:le,tabIndex:ke===H?0:-1,onFocus:we,onBlur:Ce,"aria-current":D===ke?"date":void 0,yearsPerRow:M,children:_.format(de,"year")},_.format(de,"year"))})}))}),USe=e=>Ke("MuiPickersCalendarHeader",e),WSe=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),GSe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],KSe=["ownerState"],qSe=e=>{const{classes:t}=e;return _e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},USe,t)},YSe=te("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),QSe=te("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>x({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),XSe=te("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),ZSe=te(pr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>x({marginRight:"auto"},e.view==="year"&&{[`.${WSe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),JSe=te(q1e,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ePe=c.forwardRef(function(t,n){var r,o,s,i;const l=os(),a=rn(),u=je({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:g,currentMonth:v,disabled:y,disableFuture:m,disablePast:C,maxDate:b,minDate:w,onMonthChange:S,onViewChange:k,view:M,reduceAnimations:I,views:E,labelId:T,className:L,timezone:O}=u,R=oe(u,GSe),V=u,j=qSe(u),_=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:g==null?void 0:g.SwitchViewButton)!=null?r:ZSe,A=qt({elementType:_,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(M)},ownerState:V,className:j.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:g==null?void 0:g.SwitchViewIcon)!=null?s:JSe,z=qt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:j.switchViewIcon}),D=oe(z,KSe),N=()=>S(a.addMonths(v,1),"left"),H=()=>S(a.addMonths(v,-1),"right"),K=dwe(v,{disableFuture:m,maxDate:b,timezone:O}),Y=fwe(v,{disablePast:C,minDate:w,timezone:O}),Z=()=>{if(!(E.length===1||!k||y))if(E.length===2)k(E.find(Q=>Q!==M)||E[0]);else{const Q=E.indexOf(M)!==0?0:1;k(E[Q])}};return E.length===1&&E[0]==="year"?null:$.jsxs(YSe,x({},R,{ownerState:V,className:ye(L,j.root),ref:n,children:[$.jsxs(QSe,{role:"presentation",onClick:Z,ownerState:V,"aria-live":"polite",className:j.labelContainer,children:[$.jsx(T3,{reduceAnimations:I,transKey:a.format(v,"monthAndYear"),children:$.jsx(XSe,{id:T,ownerState:V,className:j.label,children:a.format(v,"monthAndYear")})}),E.length>1&&!y&&$.jsx(_,x({},A,{children:$.jsx(F,x({},D))}))]}),$.jsx(zd,{in:M==="day",children:$.jsx(J5,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),tPe=e=>Ke("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const nPe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],rPe=e=>{const{classes:t}=e;return _e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},tPe,t)};function oPe(e,t){var n,r,o,s,i,l,a;const u=rn(),f=zh(),p=y3(),g=je({props:e,name:t});return x({},g,{loading:(n=g.loading)!=null?n:!1,disablePast:(r=g.disablePast)!=null?r:!1,disableFuture:(o=g.disableFuture)!=null?o:!1,openTo:(s=g.openTo)!=null?s:"day",views:(i=g.views)!=null?i:["year","day"],reduceAnimations:(l=g.reduceAnimations)!=null?l:p,renderLoading:(a=g.renderLoading)!=null?a:()=>$.jsx("span",{children:"..."}),minDate:Ls(u,g.minDate,f.minDate),maxDate:Ls(u,g.maxDate,f.maxDate)})}const sPe=te(c0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:a0}),iPe=te(T3,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),_3=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=Kt(),a=oPe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:f,value:p,defaultValue:g,referenceDate:v,disableFuture:y,disablePast:m,defaultCalendarMonth:C,onChange:b,onYearChange:w,onMonthChange:S,reduceAnimations:k,shouldDisableDate:M,shouldDisableMonth:I,shouldDisableYear:E,view:T,views:L,openTo:O,className:R,disabled:V,readOnly:j,minDate:_,maxDate:A,disableHighlightToday:F,focusedView:z,onFocusedViewChange:D,showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Y,componentsProps:Z,slots:Q,slotProps:X,loading:J,renderLoading:ne,displayWeekNumber:fe,yearsPerRow:we,monthsPerRow:Ce,timezone:ae}=a,be=oe(a,nPe),{value:de,handleValueChange:ke,timezone:Ie}=Qd({name:"DateCalendar",timezone:ae,value:p,defaultValue:g,onChange:b,valueManager:Jo}),{view:le,setView:Ee,focusedView:me,setFocusedView:Me,goToNextView:ue,setValueAndGoToNextView:ce}=jh({view:T,views:L,openTo:O,onChange:ke,onViewChange:f,autoFocus:u,focusedView:z,onFocusedViewChange:D}),{referenceDate:ie,calendarState:ge,changeFocusedDay:Te,changeMonth:Ne,handleChangeMonth:Ge,isDateDisabled:Ve,onMonthSwitchingAnimationEnd:Ue}=cSe({value:de,defaultCalendarMonth:C,referenceDate:v,reduceAnimations:k,onMonthChange:S,minDate:_,maxDate:A,shouldDisableDate:M,disablePast:m,disableFuture:y,timezone:Ie}),Le=V&&de||_,pt=V&&de||A,Zt=`${l}-grid-label`,Pt=me!==null,wt=(r=(o=Q==null?void 0:Q.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:ePe,Xe=qt({elementType:wt,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:Z==null?void 0:Z.calendarHeader,additionalProps:{views:L,view:le,currentMonth:ge.currentMonth,onViewChange:Ee,onMonthChange:(gt,Rt)=>Ge({newMonth:gt,direction:Rt}),minDate:Le,maxDate:pt,disabled:V,disablePast:m,disableFuture:y,reduceAnimations:k,timezone:Ie,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Oe=Ye(gt=>{const Rt=i.startOfMonth(gt),gr=i.endOfMonth(gt),rr=Ve(gt)?Pp({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter(A,gr)?gr:A,disablePast:m,disableFuture:y,isDateDisabled:Ve,timezone:Ie}):gt;rr?(ce(rr,"finish"),S==null||S(Rt)):(ue(),Ne(Rt)),Te(rr,!0)}),qe=Ye(gt=>{const Rt=i.startOfYear(gt),gr=i.endOfYear(gt),rr=Ve(gt)?Pp({utils:i,date:gt,minDate:i.isBefore(_,Rt)?Rt:_,maxDate:i.isAfter(A,gr)?gr:A,disablePast:m,disableFuture:y,isDateDisabled:Ve,timezone:Ie}):gt;rr?(ce(rr,"finish"),w==null||w(rr)):(ue(),Ne(Rt)),Te(rr,!0)}),mt=Ye(gt=>ke(gt&&Gx(i,gt,de!=null?de:ie),"finish"));c.useEffect(()=>{de!=null&&i.isValid(de)&&Ne(de)},[de]);const vt=a,_t=rPe(vt),Yt={disablePast:m,disableFuture:y,maxDate:A,minDate:_},Qt={disableHighlightToday:F,readOnly:j,disabled:V,timezone:Ie,gridLabelId:Zt},Pn=c.useRef(le);c.useEffect(()=>{Pn.current!==le&&(me===Pn.current&&Me(le,!0),Pn.current=le)},[me,Me,le]);const bn=c.useMemo(()=>[de],[de]);return $.jsxs(sPe,x({ref:n,className:ye(_t.root,R),ownerState:vt},be,{children:[$.jsx(wt,x({},Xe)),$.jsx(iPe,{reduceAnimations:k,className:_t.viewTransitionContainer,transKey:le,ownerState:vt,children:$.jsxs("div",{children:[le==="year"&&$.jsx(HSe,x({},Yt,Qt,{value:de,onChange:qe,shouldDisableYear:E,hasFocus:Pt,onFocusedViewChange:gt=>Me("year",gt),yearsPerRow:we,referenceDate:ie})),le==="month"&&$.jsx($Se,x({},Yt,Qt,{hasFocus:Pt,className:R,value:de,onChange:Oe,shouldDisableMonth:I,onFocusedViewChange:gt=>Me("month",gt),monthsPerRow:Ce,referenceDate:ie})),le==="day"&&$.jsx(lSe,x({},ge,Yt,Qt,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:Te,reduceAnimations:k,selectedDays:bn,onSelectedDaysChange:mt,shouldDisableDate:M,shouldDisableMonth:I,shouldDisableYear:E,hasFocus:Pt,onFocusedViewChange:gt=>Me("day",gt),showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:fe,components:Y,componentsProps:Z,slots:Q,slotProps:X,loading:J,renderLoading:ne}))]})})]}))}),lPe=["props","getOpenDialogAriaText"],aPe=["ownerState"],cPe=["ownerState"],uPe=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=oe(e,lPe);const{slots:u,slotProps:f,className:p,sx:g,format:v,formatDensity:y,timezone:m,label:C,inputRef:b,readOnly:w,disabled:S,autoFocus:k,localeText:M,reduceAnimations:I}=i,E=rn(),T=c.useRef(null),L=c.useRef(null),O=Kt(),R=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:j,hasUIView:_,layoutProps:A,renderCurrentView:F,shouldRestoreFocus:z,fieldProps:D}=x3(x({},a,{props:i,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=(r=u.inputAdornment)!=null?r:gl,H=qt({elementType:N,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),K=oe(H,aPe),Y=(o=u.openPickerButton)!=null?o:pr,Z=qt({elementType:Y,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:S||w,onClick:V?j.onClose:j.onOpen,"aria-label":l(D.value,E),edge:K.position},ownerState:i}),Q=oe(Z,cPe),X=u.openPickerIcon,J=u.field,ne=qt({elementType:J,externalSlotProps:f==null?void 0:f.field,additionalProps:x({},D,R&&{id:O},{readOnly:w,disabled:S,className:p,sx:g,format:v,formatDensity:y,timezone:m,label:C,autoFocus:k&&!i.open,focused:V?!0:void 0}),ownerState:i});_&&(ne.InputProps=x({},ne.InputProps,{ref:L,[`${K.position}Adornment`]:$.jsx(N,x({},K,{children:$.jsx(Y,x({},Q,{children:$.jsx(X,x({},f==null?void 0:f.openPickerIcon))}))}))}));const fe=x({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},ne.slots),we=(s=u.layout)!=null?s:k3,Ce=It(T,ne.inputRef,b);let ae=O;R&&(C?ae=`${O}-label`:ae=void 0);const be=x({},f,{toolbar:x({},f==null?void 0:f.toolbar,{titleId:O}),popper:x({"aria-labelledby":ae},f==null?void 0:f.popper)});return{renderPicker:()=>$.jsxs(kI,{localeText:M,children:[$.jsx(J,x({},ne,{slots:fe,slotProps:be,inputRef:Ce})),$.jsx(cxe,x({role:"dialog",placement:"bottom-start",anchorEl:L.current},j,{open:V,slots:u,slotProps:be,shouldRestoreFocus:z,reduceAnimations:I,children:$.jsx(we,x({},A,be==null?void 0:be.layout,{slots:u,slotProps:be,children:F()}))}))]})}},nd=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minDate:v,maxDate:y,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:b,reduceAnimations:w,onMonthChange:S,monthsPerRow:k,onYearChange:M,yearsPerRow:I,defaultCalendarMonth:E,components:T,componentsProps:L,slots:O,slotProps:R,loading:V,renderLoading:j,disableHighlightToday:_,readOnly:A,disabled:F,showDaysOutsideCurrentMonth:z,dayOfWeekFormatter:D,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:Z})=>$.jsx(_3,{view:e,onViewChange:t,views:n.filter(ed),focusedView:r&&ed(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minDate:v,maxDate:y,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:b,reduceAnimations:w,onMonthChange:S,monthsPerRow:k,onYearChange:M,yearsPerRow:I,defaultCalendarMonth:E,components:T,componentsProps:L,slots:O,slotProps:R,loading:V,renderLoading:j,disableHighlightToday:_,readOnly:A,disabled:F,showDaysOutsideCurrentMonth:z,dayOfWeekFormatter:D,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:Z}),dPe=["props","getOpenDialogAriaText"],fPe=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=oe(e,dPe);const{slots:l,slotProps:a,className:u,sx:f,format:p,formatDensity:g,timezone:v,label:y,inputRef:m,readOnly:C,disabled:b,localeText:w}=o,S=rn(),k=c.useRef(null),M=Kt(),I=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:E,actions:T,layoutProps:L,renderCurrentView:O,fieldProps:R}=x3(x({},i,{props:o,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=l.field,j=qt({elementType:V,externalSlotProps:a==null?void 0:a.field,additionalProps:x({},R,I&&{id:M},!(b||C)&&{onClick:T.onOpen,onKeyDown:HCe(T.onOpen)},{readOnly:C!=null?C:!0,disabled:b,className:u,sx:f,format:p,formatDensity:g,timezone:v,label:y}),ownerState:o});j.inputProps=x({},j.inputProps,{"aria-label":s(R.value,S)});const _=x({textField:l.textField},j.slots),A=(r=l.layout)!=null?r:k3,F=It(k,j.inputRef,m);let z=M;I&&(y?z=`${M}-label`:z=void 0);const D=x({},a,{toolbar:x({},a==null?void 0:a.toolbar,{titleId:M}),mobilePaper:x({"aria-labelledby":z},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>$.jsxs(kI,{localeText:w,children:[$.jsx(V,x({},j,{slots:_,slotProps:D,inputRef:F})),$.jsx(ZCe,x({},T,{open:E,slots:l,slotProps:D,children:$.jsx(A,x({},L,D==null?void 0:D.layout,{slots:l,slotProps:D,children:O()}))}))]})}},Vw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,ampmInClock:S,components:k,componentsProps:M,slots:I,slotProps:E,readOnly:T,disabled:L,sx:O,autoFocus:R,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:_})=>$.jsx(uCe,{view:e,onViewChange:t,focusedView:n&&Id(n)?n:null,onFocusedViewChange:r,views:o.filter(Id),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,ampmInClock:S,components:k,componentsProps:M,slots:I,slotProps:E,readOnly:T,disabled:L,sx:O,autoFocus:R,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:_}),pPe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:I,readOnly:E,disabled:T,sx:L,autoFocus:O,disableIgnoringDatePartForTimeValidation:R,timeSteps:V,skipDisabled:j,timezone:_})=>$.jsx(yCe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Id),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:I,readOnly:E,disabled:T,sx:L,autoFocus:O,disableIgnoringDatePartForTimeValidation:R,timeStep:V==null?void 0:V.minutes,skipDisabled:j,timezone:_}),hPe=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:I,readOnly:E,disabled:T,sx:L,autoFocus:O,disableIgnoringDatePartForTimeValidation:R,timeSteps:V,skipDisabled:j,timezone:_})=>$.jsx($Ce,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Id),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:b,ampm:w,components:S,componentsProps:k,slots:M,slotProps:I,readOnly:E,disabled:T,sx:L,autoFocus:O,disableIgnoringDatePartForTimeValidation:R,timeSteps:V,skipDisabled:j,timezone:_}),mPe=["views","format"],$3=(e,t)=>{let{views:n,format:r}=t,o=oe(t,mPe);if(r)return r;const s=[],i=[];if(n.forEach(u=>{Id(u)?i.push(u):s.push(u)}),i.length===0)return $O(e,x({views:s},o),!1);if(s.length===0)return _O(e,x({views:i},o));const l=_O(e,x({views:i},o));return`${$O(e,x({views:s},o),!1)} ${l}`},gPe=(e,t,n)=>n?t.filter(r=>!jl(r)||r==="hours"):e?[...t,"meridiem"]:t,vPe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function yPe({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=x({hours:1,minutes:5,seconds:5},n),i=vPe(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:gPe(t,r,i)}}function bPe(e){return Ke("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const wPe=e=>ed(e)?"date":"time",CPe=e=>e==="date"?"day":"hours",xPe=e=>{const{classes:t}=e;return _e({root:["root"]},bPe,t)},SPe=te(qP,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Ng.indicator}`]:{bottom:"auto",top:0}}})),PPe=function(t){const n=je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=$.jsx(Z1e,{}),onViewChange:o,timeIcon:s=$.jsx(J1e,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667}=n,a=os(),u=xPe(n),f=(p,g)=>{o(CPe(g))};return l?null:$.jsxs(SPe,{ownerState:n,variant:"fullWidth",value:wPe(i),onChange:f,className:u.root,children:[$.jsx(Av,{value:"date","aria-label":a.dateTableLabel,icon:$.jsx(c.Fragment,{children:r})}),$.jsx(Av,{value:"time","aria-label":a.timeTableLabel,icon:$.jsx(c.Fragment,{children:s})})]})};function kPe(e){return Ke("MuiDateTimePickerToolbar",e)}const jw=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),IPe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],EPe=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return _e(o,kPe,t)},R3=te(pxe,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));R3.propTypes={as:W.elementType,classes:W.object,className:W.string,isLandscape:W.bool.isRequired,isMobileKeyboardViewOpen:W.bool,landscapeDirection:W.oneOf(["column","row"]),ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),toggleMobileKeyboardView:W.func,toolbarTitle:W.node,viewType:W.oneOf(["date","time"])};const MPe=te("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),O3=te("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return x({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&x({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),TPe=te("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>x({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));O3.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const HO=te(w3,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),_Pe=te("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${jw.ampmLabel}`]:t.ampmLabel},{[`&.${jw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>x({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${jw.ampmLabel}`]:{fontSize:17}}));function $Pe(e){const t=je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:s,view:i,isLandscape:l,onViewChange:a,toolbarFormat:u,toolbarPlaceholder:f="––",views:p,disabled:g,readOnly:v,toolbarVariant:y="mobile"}=t,m=oe(t,IPe),C=t,b=rn(),{meridiemMode:w,handleMeridiemChange:S}=II(o,n,s),k=!!(n&&!r),M=y==="desktop",I=os(),E=yn(),T=EPe(x({},C,{theme:E})),L=R=>n?b.format(R,"hours12h"):b.format(R,"hours24h"),O=c.useMemo(()=>o?u?b.formatByString(o,u):b.format(o,"shortDate"):f,[o,u,f,b]);return $.jsxs(R3,x({toolbarTitle:I.dateTimePickerToolbarTitle,isLandscape:l,className:T.root},m,{ownerState:C,children:[$.jsxs(MPe,{className:T.dateContainer,ownerState:C,children:[p.includes("year")&&$.jsx(Fl,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?b.format(o,"year"):"–"}),p.includes("day")&&$.jsx(Fl,{tabIndex:-1,variant:M?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:O})]}),$.jsxs(O3,{className:T.timeContainer,ownerState:C,children:[$.jsxs(TPe,{className:T.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&$.jsx(Fl,{variant:M?"h5":"h3",width:M&&!l?tp:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?L(o):"--"}),p.includes("minutes")&&$.jsxs(c.Fragment,{children:[$.jsx(HO,{variant:M?"h5":"h3",value:":",className:T.separator,ownerState:C}),$.jsx(Fl,{variant:M?"h5":"h3",width:M&&!l?tp:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?b.format(o,"minutes"):"--"})]}),p.includes("seconds")&&$.jsxs(c.Fragment,{children:[$.jsx(HO,{variant:M?"h5":"h3",value:":",className:T.separator,ownerState:C}),$.jsx(Fl,{variant:M?"h5":"h3",width:M&&!l?tp:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?b.format(o,"seconds"):"--"})]})]}),k&&!M&&$.jsxs(_Pe,{className:T.ampmSelection,ownerState:C,children:[$.jsx(Fl,{variant:"subtitle2",selected:w==="am",typographyClassName:T.ampmLabel,value:il(b,"am"),onClick:v?void 0:()=>S("am"),disabled:g}),$.jsx(Fl,{variant:"subtitle2",selected:w==="pm",typographyClassName:T.ampmLabel,value:il(b,"pm"),onClick:v?void 0:()=>S("pm"),disabled:g})]}),n&&M&&$.jsx(Fl,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&w?il(b,w):"--",width:tp})]})]}))}function D3(e,t){var n,r,o,s,i,l,a,u,f,p,g;const v=rn(),y=zh(),m=je({props:e,name:t}),C=(n=m.ampm)!=null?n:v.is12HourCycleInCurrentLocale(),b=c.useMemo(()=>{var k;return((k=m.localeText)==null?void 0:k.toolbarTitle)==null?m.localeText:x({},m.localeText,{dateTimePickerToolbarTitle:m.localeText.toolbarTitle})},[m.localeText]),w=(r=m.slots)!=null?r:$I(m.components),S=(o=m.slotProps)!=null?o:m.componentsProps;return x({},m,awe({views:m.views,openTo:m.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:b,orientation:(s=m.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=m.disableIgnoringDatePartForTimeValidation)!=null?i:!!(m.minDateTime||m.maxDateTime||m.disablePast||m.disableFuture),disableFuture:(l=m.disableFuture)!=null?l:!1,disablePast:(a=m.disablePast)!=null?a:!1,minDate:Ls(v,(u=m.minDateTime)!=null?u:m.minDate,y.minDate),maxDate:Ls(v,(f=m.maxDateTime)!=null?f:m.maxDate,y.maxDate),minTime:(p=m.minDateTime)!=null?p:m.minTime,maxTime:(g=m.maxDateTime)!=null?g:m.maxTime,slots:x({toolbar:$Pe,tabs:PPe},w),slotProps:x({},S,{toolbar:x({ampm:C},S==null?void 0:S.toolbar)})})}const RPe=te("div")({display:"flex",margin:"0 auto"}),Ka=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minDate:v,minTime:y,maxDate:m,maxTime:C,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:M,reduceAnimations:I,minutesStep:E,ampm:T,onMonthChange:L,monthsPerRow:O,onYearChange:R,yearsPerRow:V,defaultCalendarMonth:j,components:_,componentsProps:A,slots:F,slotProps:z,loading:D,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:fe,timezone:we,disableIgnoringDatePartForTimeValidation:Ce,timeSteps:ae,skipDisabled:be,timeViewsCount:de,shouldRenderTimeInASingleColumn:ke})=>{var Ie,le;const Ee=!!((Ie=hb((le=z==null?void 0:z.actionBar)!=null?le:A==null?void 0:A.actionBar,{}))!=null&&(Ie=Ie.actions)!=null&&Ie.length),me={view:jl(e)?e:"hours",onViewChange:t,focusedView:r&&jl(r)?r:null,onFocusedViewChange:o,views:n.filter(jl),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:y,maxTime:C,shouldDisableTime:k,shouldDisableClock:M,minutesStep:E,ampm:T,components:_,componentsProps:A,slots:F,slotProps:z,readOnly:K,disabled:Y,autoFocus:J,disableIgnoringDatePartForTimeValidation:Ce,timeSteps:ae,skipDisabled:be,timezone:we};return $.jsxs(c.Fragment,{children:[$.jsxs(RPe,{children:[$.jsx(_3,{view:ed(e)?e:"day",onViewChange:t,views:n.filter(ed),focusedView:r&&ed(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minDate:v,maxDate:m,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:S,reduceAnimations:I,onMonthChange:L,monthsPerRow:O,onYearChange:R,yearsPerRow:V,defaultCalendarMonth:j,components:_,componentsProps:A,slots:F,slotProps:z,loading:D,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:ne,displayWeekNumber:fe,timezone:we}),de>0&&$.jsxs(c.Fragment,{children:[$.jsx(Zp,{orientation:"vertical"}),ke?pPe(x({},me,{view:"hours",views:["hours"],focusedView:r&&jl(r)?"hours":null,sx:x({width:"auto",[`&.${fCe.root}`]:{maxHeight:a0}},Array.isArray(X)?X:[X])})):hPe(x({},me,{view:jl(e)?e:"hours",views:n.filter(jl),focusedView:r&&jl(r)?r:null,sx:x({borderBottom:0,width:"auto",[`.${CCe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ee&&$.jsx(Zp,{})]})},A3=c.forwardRef(function(t,n){var r,o,s,i,l,a,u;const f=os(),p=rn(),g=D3(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:v,thresholdToRenderTimeInASingleColumn:y,views:m,timeSteps:C}=yPe(g),b=!g.viewRenderers||Object.keys(g.viewRenderers).length===0,w=b?{day:Ka,month:Ka,year:Ka,hours:Ka,minutes:Ka,seconds:Ka,meridiem:Ka}:x({day:nd,month:nd,year:nd,hours:null,minutes:null,seconds:null,meridiem:null},g.viewRenderers),S=(r=g.ampmInClock)!=null?r:!0,k=b?["accept"]:[],M=x({},g,{viewRenderers:w,format:$3(p,g),views:m,yearsPerRow:(o=g.yearsPerRow)!=null?o:4,ampmInClock:S,timeSteps:C,thresholdToRenderTimeInASingleColumn:y,shouldRenderTimeInASingleColumn:v,slots:x({field:M3,openPickerIcon:X1e},g.slots),slotProps:x({},g.slotProps,{field:E=>{var T;return x({},hb((T=g.slotProps)==null?void 0:T.field,E),v3(g),{ref:n})},toolbar:x({hidden:!0,ampmInClock:S,toolbarVariant:b?"desktop":"mobile"},(s=g.slotProps)==null?void 0:s.toolbar),tabs:x({hidden:!0},(i=g.slotProps)==null?void 0:i.tabs),actionBar:x({actions:k},(l=g.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:I}=uPe({props:M,valueManager:Jo,valueType:"date-time",getOpenDialogAriaText:(a=(u=M.localeText)==null?void 0:u.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:OI});return I()});A3.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:lF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const L3=c.forwardRef(function(t,n){var r,o,s,i,l;const a=os(),u=rn(),f=D3(t,"MuiMobileDateTimePicker"),p=x({day:nd,month:nd,year:nd,hours:Vw,minutes:Vw,seconds:Vw},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!1,v=x({},f,{viewRenderers:p,format:$3(u,f),ampmInClock:g,slots:x({field:M3},f.slots),slotProps:x({},f.slotProps,{field:m=>{var C;return x({},hb((C=f.slotProps)==null?void 0:C.field,m),v3(f),{ref:n})},toolbar:x({hidden:!1,ampmInClock:g},(o=f.slotProps)==null?void 0:o.toolbar),tabs:x({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:y}=fPe({props:v,valueManager:Jo,valueType:"date-time",getOpenDialogAriaText:(i=(l=v.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:OI});return y()});L3.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:lF,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const OPe=["desktopModeMediaQuery"],DPe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=UCe}=r,s=oe(r,OPe);return Eb(o,{defaultMatches:!0})?$.jsx(A3,x({ref:n},s)):$.jsx(L3,x({ref:n},s))});var F3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",u="day",f="week",p="month",g="quarter",v="year",y="date",m="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var A=["th","st","nd","rd"],F=_%100;return"["+_+(A[(F-20)%10]||A[F]||A[0])+"]"}},S=function(_,A,F){var z=String(_);return!z||z.length>=A?_:""+Array(A+1-z.length).join(F)+_},k={s:S,z:function(_){var A=-_.utcOffset(),F=Math.abs(A),z=Math.floor(F/60),D=F%60;return(A<=0?"+":"-")+S(z,2,"0")+":"+S(D,2,"0")},m:function _(A,F){if(A.date()<F.date())return-_(F,A);var z=12*(F.year()-A.year())+(F.month()-A.month()),D=A.clone().add(z,p),N=F-D<0,H=A.clone().add(z+(N?-1:1),p);return+(-(z+(F-D)/(N?D-H:H-D))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y:v,w:f,d:u,D:y,h:a,m:l,s:i,ms:s,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},M="en",I={};I[M]=w;var E="$isDayjsObject",T=function(_){return _ instanceof V||!(!_||!_[E])},L=function _(A,F,z){var D;if(!A)return M;if(typeof A=="string"){var N=A.toLowerCase();I[N]&&(D=N),F&&(I[N]=F,D=N);var H=A.split("-");if(!D&&H.length>1)return _(H[0])}else{var K=A.name;I[K]=A,D=K}return!z&&D&&(M=D),D||!z&&M},O=function(_,A){if(T(_))return _.clone();var F=typeof A=="object"?A:{};return F.date=_,F.args=arguments,new V(F)},R=k;R.l=L,R.i=T,R.w=function(_,A){return O(_,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var V=function(){function _(F){this.$L=L(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[E]=!0}var A=_.prototype;return A.parse=function(F){this.$d=function(z){var D=z.date,N=z.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(C);if(H){var K=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return N?new Date(Date.UTC(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)}}return new Date(D)}(F),this.init()},A.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},A.$utils=function(){return R},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(F,z){var D=O(F);return this.startOf(z)<=D&&D<=this.endOf(z)},A.isAfter=function(F,z){return O(F)<this.startOf(z)},A.isBefore=function(F,z){return this.endOf(z)<O(F)},A.$g=function(F,z,D){return R.u(F)?this[z]:this.set(D,F)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(F,z){var D=this,N=!!R.u(z)||z,H=R.p(F),K=function(we,Ce){var ae=R.w(D.$u?Date.UTC(D.$y,Ce,we):new Date(D.$y,Ce,we),D);return N?ae:ae.endOf(u)},Y=function(we,Ce){return R.w(D.toDate()[we].apply(D.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Ce)),D)},Z=this.$W,Q=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(H){case v:return N?K(1,0):K(31,11);case p:return N?K(1,Q):K(0,Q+1);case f:var ne=this.$locale().weekStart||0,fe=(Z<ne?Z+7:Z)-ne;return K(N?X-fe:X+(6-fe),Q);case u:case y:return Y(J+"Hours",0);case a:return Y(J+"Minutes",1);case l:return Y(J+"Seconds",2);case i:return Y(J+"Milliseconds",3);default:return this.clone()}},A.endOf=function(F){return this.startOf(F,!1)},A.$set=function(F,z){var D,N=R.p(F),H="set"+(this.$u?"UTC":""),K=(D={},D[u]=H+"Date",D[y]=H+"Date",D[p]=H+"Month",D[v]=H+"FullYear",D[a]=H+"Hours",D[l]=H+"Minutes",D[i]=H+"Seconds",D[s]=H+"Milliseconds",D)[N],Y=N===u?this.$D+(z-this.$W):z;if(N===p||N===v){var Z=this.clone().set(y,1);Z.$d[K](Y),Z.init(),this.$d=Z.set(y,Math.min(this.$D,Z.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},A.set=function(F,z){return this.clone().$set(F,z)},A.get=function(F){return this[R.p(F)]()},A.add=function(F,z){var D,N=this;F=Number(F);var H=R.p(z),K=function(Q){var X=O(N);return R.w(X.date(X.date()+Math.round(Q*F)),N)};if(H===p)return this.set(p,this.$M+F);if(H===v)return this.set(v,this.$y+F);if(H===u)return K(1);if(H===f)return K(7);var Y=(D={},D[l]=r,D[a]=o,D[i]=n,D)[H]||1,Z=this.$d.getTime()+F*Y;return R.w(Z,this)},A.subtract=function(F,z){return this.add(-1*F,z)},A.format=function(F){var z=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var N=F||"YYYY-MM-DDTHH:mm:ssZ",H=R.z(this),K=this.$H,Y=this.$m,Z=this.$M,Q=D.weekdays,X=D.months,J=D.meridiem,ne=function(Ce,ae,be,de){return Ce&&(Ce[ae]||Ce(z,N))||be[ae].slice(0,de)},fe=function(Ce){return R.s(K%12||12,Ce,"0")},we=J||function(Ce,ae,be){var de=Ce<12?"AM":"PM";return be?de.toLowerCase():de};return N.replace(b,function(Ce,ae){return ae||function(be){switch(be){case"YY":return String(z.$y).slice(-2);case"YYYY":return R.s(z.$y,4,"0");case"M":return Z+1;case"MM":return R.s(Z+1,2,"0");case"MMM":return ne(D.monthsShort,Z,X,3);case"MMMM":return ne(X,Z);case"D":return z.$D;case"DD":return R.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return ne(D.weekdaysMin,z.$W,Q,2);case"ddd":return ne(D.weekdaysShort,z.$W,Q,3);case"dddd":return Q[z.$W];case"H":return String(K);case"HH":return R.s(K,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return we(K,Y,!0);case"A":return we(K,Y,!1);case"m":return String(Y);case"mm":return R.s(Y,2,"0");case"s":return String(z.$s);case"ss":return R.s(z.$s,2,"0");case"SSS":return R.s(z.$ms,3,"0");case"Z":return H}return null}(Ce)||H.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(F,z,D){var N,H=this,K=R.p(z),Y=O(F),Z=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return R.m(H,Y)};switch(K){case v:N=X()/12;break;case p:N=X();break;case g:N=X()/3;break;case f:N=(Q-Z)/6048e5;break;case u:N=(Q-Z)/864e5;break;case a:N=Q/o;break;case l:N=Q/r;break;case i:N=Q/n;break;default:N=Q}return D?N:R.a(N)},A.daysInMonth=function(){return this.endOf(p).$D},A.$locale=function(){return I[this.$L]},A.locale=function(F,z){if(!F)return this.$L;var D=this.clone(),N=L(F,z,!0);return N&&(D.$L=N),D},A.clone=function(){return R.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},_}(),j=V.prototype;return O.prototype=j,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",u],["$M",p],["$y",v],["$D",y]].forEach(function(_){j[_[1]]=function(A){return this.$g(A,_[0],_[1])}}),O.extend=function(_,A){return _.$i||(_(A,V,O),_.$i=!0),O},O.locale=L,O.isDayjs=T,O.unix=function(_){return O(1e3*_)},O.en=I[M],O.Ls=I,O.p={},O})})(F3);var APe=F3.exports;const _r=Ni(APe);function LPe(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=Ft(s,["onChange","error","helperText"]);return c.createElement(ze,{},c.createElement(DPe,ht(Se({},Rb(r,i=>i&&i instanceof Date?_r(i):i!=null?i:null)),{sx:Se({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&c.createElement(Vd,{error:t},n))}function oy(f){var p=f,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:s,setApi:i,reorder:l,prepend:a}=p,u=Ft(p,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const g=c.useMemo(()=>(r||[]).map((b,w)=>bue(Se({},b),b.hasOwnProperty("id")?{$idx:w}:{id:w})),[JSON.stringify(r)]),v={fields:n.map(M=>{var I=M,{$width:b,$column:w,$type:S}=I,k=Ft(I,["$width","$column","$type"]);var E;return ot.defaults(k,(E=UO[S])==null?void 0:E.field)})};i==null||i({isEqual:QN});const[y,m]=c.useState();return c.createElement(c.Fragment,{},e&&c.createElement(CN,{sx:{ml:1}},e),t&&c.createElement(Vd,{},t),c.createElement(ze,Se({},u),c.createElement(q5,{rows:g,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(b=>{var S,k;const w=(S=UO[b.$type])==null?void 0:S.column;return Se(Se(Se({field:b.k,headerName:(k=b.headerName)!=null?k:typeof b.label=="string"?b.label:w4(b.k),disableColumnMenu:!0},w),b.$width?{[b.$width>=8?"width":"flex"]:b.$width}:!(w!=null&&w.width)&&!(w!=null&&w.flex)&&{flex:1}),b.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const b="Add";return c.createElement(c.Fragment,{},c.createElement(mn,{icon:vI,title:b,size:"small",onClick:w=>nh({form:v,title:b}).then(S=>{if(!S)return;const k=(r==null?void 0:r.slice())||[];a?k.unshift(S):k.push(S),C(k,w)})}),y!==void 0&&c.createElement(mn,{icon:X5,title:"Undo",size:"small",onClick:w=>C(y,w)}))},getActions({row:b}){const{$idx:w=b.id}=b,S="Modify";return[c.createElement(cg,{icon:c.createElement(bI),label:S,title:S,onClick(k){nh({values:b,form:v,title:S}).then(M=>{M&&C(r.map((I,E)=>E===w?M:I),k)})}}),c.createElement(cg,{icon:c.createElement(xl),label:"Delete",showInMenu:l,onClick:k=>C(r.filter((M,I)=>I!==w),k)}),l&&w&&c.createElement(cg,{icon:c.createElement(xI),label:"Move up",showInMenu:!0,onClick:k=>C($R(r.slice(),w,w-1),k)}),l&&w<g.length-1&&c.createElement(cg,{icon:c.createElement(Q5),label:"Move down",showInMenu:!0,onClick:k=>C($R(r.slice(),w,w+1),k)})].filter(Boolean)}}]})));function C(b,w){o(b,{was:r,event:w}),m(r)}}const UO={dateTime:{field:{comp:LPe},column:{type:"dateTime",minWidth:90,flex:.5,valueGetter:({value:e})=>e&&new Date(e),renderCell:({value:e})=>e&&c.createElement(ze,{},e.toLocaleDateString(),c.createElement("br"),e.toLocaleTimeString())}}};var DI={},FPe=et;Object.defineProperty(DI,"__esModule",{value:!0});var N3=DI.default=void 0,NPe=FPe(tt()),BPe=Ze(),zPe=(0,NPe.default)((0,BPe.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");N3=DI.default=zPe;var AI={},VPe=et;Object.defineProperty(AI,"__esModule",{value:!0});var B3=AI.default=void 0,jPe=VPe(tt()),HPe=Ze(),UPe=(0,jPe.default)((0,HPe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}),"CreateNewFolder");B3=AI.default=UPe;var LI={},WPe=et;Object.defineProperty(LI,"__esModule",{value:!0});var z3=LI.default=void 0,GPe=WPe(tt()),KPe=Ze(),qPe=(0,GPe.default)((0,KPe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");z3=LI.default=qPe;const YPe=["element"];function QPe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function XPe(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 V3=c.createContext({});function ZPe(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e},[e]),t.current}const WO=()=>{};function JPe(e){const[,t]=c.useState(),{registerDescendant:n=WO,unregisterDescendant:r=WO,descendants:o=[],parentId:s=null}=c.useContext(V3),i=QPe(o,u=>u.element===e.element),l=ZPe(o),a=o.some((u,f)=>l&&l[f]&&l[f].element!==u.element);return Nt(()=>{if(e.element)return n(x({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function j3(e){const{children:t,id:n}=e,[r,o]=c.useState([]),s=c.useCallback(a=>{let{element:u}=a,f=oe(a,YPe);o(p=>{if(p.length===0)return[x({},f,{element:u,index:0})];const g=XPe(p,u);let v;if(p[g]&&p[g].element===u)v=p;else{const y=x({},f,{element:u,index:g});v=p.slice(),v.splice(g,0,y)}return v.forEach((y,m)=>{y.index=m}),v})},[]),i=c.useCallback(a=>{o(u=>u.filter(f=>a!==f.element))},[]),l=c.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:i,parentId:n}),[r,s,i,n]);return $.jsx(V3.Provider,{value:l,children:t})}const H3={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},U3=c.createContext(H3),W3=()=>c.useContext(U3);function eke(e){const{instance:t,multiSelect:n}=W3(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,i=t?t.isNodeSelected(e):!1,l=t?t.isNodeDisabled(e):!1;return{disabled:l,expanded:o,selected:i,focused:s,handleExpansion:p=>{if(t&&!l){s||t.focusNode(p,e);const g=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(g&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(p,e)}},handleSelection:p=>{t&&!l&&(s||t.focusNode(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.selectRange(p,{end:e}):t.selectNode(p,e,!0):t.selectNode(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||l)&&p.preventDefault()}}}const tke=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],G3=c.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:s,expansionIcon:i,icon:l,label:a,nodeId:u,onClick:f,onMouseDown:p}=t,g=oe(t,tke),{disabled:v,expanded:y,selected:m,focused:C,handleExpansion:b,handleSelection:w,preventSelection:S}=eke(u),k=l||i||s,M=E=>{S(E),p&&p(E)},I=E=>{b(E),w(E),f&&f(E)};return $.jsxs("div",x({},g,{className:ye(o,r.root,y&&r.expanded,m&&r.selected,C&&r.focused,v&&r.disabled),onClick:I,onMouseDown:M,ref:n,children:[$.jsx("div",{className:r.iconContainer,children:k}),$.jsx("div",{className:r.label,children:a})]}))});function nke(e){return Ke("MuiTreeItem",e)}const Nl=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),rke=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],oke=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"]},nke,t)},ske=te("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),ike=te(G3,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Nl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Nl.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Nl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(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}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Nl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Nl.label}`]:x({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),lke=te(Tv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Yx=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=G3,ContentProps:a,endIcon:u,expandIcon:f,disabled:p,icon:g,id:v,label:y,nodeId:m,onClick:C,onMouseDown:b,TransitionComponent:w=Tv,TransitionProps:S}=r,k=oe(r,rke),{icons:M,multiSelect:I,disabledItemsFocusable:E,treeId:T,instance:L}=W3();let O;v!=null?O=v:T&&m&&(O=`${T}-${m}`);const[R,V]=c.useState(null),j=c.useRef(null),_=It(V,n),A=c.useMemo(()=>({element:R,id:m}),[m,R]),{index:F,parentId:z}=JPe(A),D=!!(Array.isArray(o)?o.length:o),N=L?L.isNodeExpanded(m):!1,H=L?L.isNodeFocused(m):!1,K=L?L.isNodeSelected(m):!1,Y=L?L.isNodeDisabled(m):!1,Z=x({},r,{expanded:N,focused:H,selected:K,disabled:Y}),Q=oke(Z);let X,J;D&&(N?J=i||M.defaultCollapseIcon:J=f||M.defaultExpandIcon),D?X=M.defaultParentIcon:X=u||M.defaultEndIcon,c.useEffect(()=>{if(L&&F!==-1)return L.updateNode({id:m,idAttribute:O,index:F,parentId:z,expandable:D,disabled:p}),()=>L.removeNode(m)},[L,z,F,m,D,p,O]),c.useEffect(()=>{if(L&&y){var we,Ce;return L.mapFirstChar(m,((we=(Ce=j.current)==null?void 0:Ce.textContent)!=null?we:"").substring(0,1).toLowerCase())}},[L,m,y]);let ne;I?ne=K:K&&(ne=!0);function fe(we){if(we.target===we.currentTarget){let ae;typeof we.target.getRootNode=="function"?ae=we.target.getRootNode():ae=fn(we.target),ae.getElementById(T).focus({preventScroll:!0})}const Ce=!E&&Y;L&&!H&&we.currentTarget===we.target&&!Ce&&L.focusNode(we,m)}return $.jsxs(ske,x({className:ye(Q.root,s),role:"treeitem","aria-expanded":D?N:void 0,"aria-selected":ne,"aria-disabled":Y||void 0,id:O,tabIndex:-1},k,{ownerState:Z,onFocus:fe,ref:_,children:[$.jsx(ike,x({as:l,ref:j,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,iconContainer:Q.iconContainer,label:Q.label},label:y,nodeId:m,onClick:C,onMouseDown:b,icon:g,expansionIcon:J,displayIcon:X,ownerState:Z},a)),o&&$.jsx(j3,{id:m,children:$.jsx(lke,x({as:w,unmountOnExit:!0,className:Q.group,in:N,component:"ul",role:"group"},S,{children:o}))})]}))});function ake(e){return Ke("MuiTreeView",e)}We("MuiTreeView",["root"]);const cke=(e,t)=>{const n=c.useRef({}),[r,o]=c.useState(()=>{const i={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,u])=>{n.current[a]={controlledProp:u.controlledProp,defaultProp:u.defaultProp,isControlled:t[u.controlledProp]!==void 0},i[a]=t[u.defaultProp]})}),i});return Object.fromEntries(Object.entries(n.current).map(([i,l])=>{const a=l.isControlled?t[l.controlledProp]:r[i];return[i,{value:a,setValue:u=>{l.isControlled||o(f=>x({},f,{[i]:u}))}}]}))};class uke{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}}const Hw=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let s=r[o-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},np=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},Qx=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},Xx=e=>e.getNavigableChildrenIds(null)[0],Xd=(e,t)=>{Object.assign(e,t)},dke=e=>e.isPropagationStopped!==void 0,fke=({instance:e})=>{const[t]=c.useState(()=>new uke),n=c.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(dke(l)&&l.isPropagationStopped())&&t.emit(s,i,l)},[t]),r=c.useCallback((o,s)=>(t.on(o,s),()=>{t.removeListener(o,s)}),[t]);Xd(e,{$$publishEvent:n,$$subscribeEvent:r})},pke=[fke],hke=e=>{const t=[...pke,...e.plugins],n=t.reduce((y,m)=>m.getDefaultizedParams?m.getDefaultizedParams(y):y,e),r=cke(t,n),s=c.useRef({}).current,i=c.useRef(null),l=It(i,e.rootRef),[a,u]=c.useState(()=>{const y={};return t.forEach(m=>{m.getInitialState&&Object.assign(y,m.getInitialState(n))}),y}),f=[];let p=H3;const g=y=>{const m=y({instance:s,params:n,state:a,setState:u,rootRef:i,models:r})||{};m.getRootProps&&f.push(m.getRootProps),m.contextValue&&(p=m.contextValue)};return t.forEach(g),{getRootProps:(y={})=>{const m=x({role:"tree",tabIndex:0},y,{ref:l});return f.forEach(C=>{Object.assign(m,C(y))}),m},rootRef:l,contextValue:p}};function mke(e){const{value:t,children:n}=e;return $.jsx(U3.Provider,{value:t,children:$.jsx(j3,{children:n})})}const gke=(e,t,n)=>{e.$$publishEvent(t,n)},vke=({instance:e,params:t})=>{const n=c.useRef({}),r=c.useCallback(u=>n.current[u],[]),o=c.useCallback(u=>{n.current[u.id]=u},[]),s=c.useCallback(u=>{const f=x({},n.current);delete f[u],n.current=f,gke(e,"removeNode",{id:u})},[e]),i=c.useCallback(u=>{if(u==null)return!1;let f=e.getNode(u);if(!f)return!1;if(f.disabled)return!0;for(;f.parentId!=null;)if(f=e.getNode(f.parentId),f.disabled)return!0;return!1},[e]),l=Ye(u=>Object.values(n.current).filter(f=>f.parentId===u).sort((f,p)=>f.index-p.index).map(f=>f.id));Xd(e,{getNode:r,updateNode:o,removeNode:s,getChildrenIds:l,getNavigableChildrenIds:u=>{let f=e.getChildrenIds(u);return t.disabledItemsFocusable||(f=f.filter(p=>!e.isNodeDisabled(p))),f},isNodeDisabled:i})},FI=({instance:e,params:t,models:n})=>{const r=c.useCallback(l=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(l)!==-1:!1,[n.expanded.value]),o=c.useCallback(l=>{var a;return!!((a=e.getNode(l))!=null&&a.expandable)},[e]),s=Ye((l,a)=>{if(a==null)return;let u;n.expanded.value.indexOf(a)!==-1?u=n.expanded.value.filter(f=>f!==a):u=[a].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(l,u),n.expanded.setValue(u)});Xd(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:s,expandAllSiblings:(l,a)=>{const u=e.getNode(a),p=e.getChildrenIds(u.parentId).filter(v=>e.isNodeExpandable(v)&&!e.isNodeExpanded(v)),g=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(g),t.onNodeToggle&&t.onNodeToggle(l,g))}})};FI.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const yke=[];FI.getDefaultizedParams=e=>{var t;return x({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:yke})};const bke=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const s=[r.id],i=[o.id];let l=r.parentId,a=o.parentId,u=i.indexOf(l)!==-1,f=s.indexOf(a)!==-1,p=!0,g=!0;for(;!f&&!u;)p&&(s.push(l),u=i.indexOf(l)!==-1,p=l!==null,!u&&p&&(l=e.getNode(l).parentId)),g&&!u&&(i.push(a),f=s.indexOf(a)!==-1,g=a!==null,!f&&g&&(a=e.getNode(a).parentId));const v=u?l:a,y=e.getChildrenIds(v),m=s[s.indexOf(v)-1],C=i[i.indexOf(v)-1];return y.indexOf(m)<y.indexOf(C)?[t,n]:[n,t]},NI=({instance:e,params:t,models:n})=>{const r=c.useRef(null),o=c.useRef(!1),s=c.useRef([]),i=y=>Array.isArray(n.selected.value)?n.selected.value.indexOf(y)!==-1:n.selected.value===y,l=(y,m,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let b;n.selected.value.indexOf(m)!==-1?b=n.selected.value.filter(w=>w!==m):b=[m].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(y,b),n.selected.setValue(b)}}else{const b=t.multiSelect?[m]:m;t.onNodeSelect&&t.onNodeSelect(y,b),n.selected.setValue(b)}r.current=m,o.current=!1,s.current=[]}},a=(y,m)=>{const[C,b]=bke(e,y,m),w=[C];let S=C;for(;S!==b;)S=np(e,S),w.push(S);return w},u=(y,m)=>{let C=n.selected.value.slice();const{start:b,next:w,current:S}=m;!w||!S||(s.current.indexOf(S)===-1&&(s.current=[]),o.current?s.current.indexOf(w)!==-1?(C=C.filter(k=>k===b||k!==S),s.current=s.current.filter(k=>k===b||k!==S)):(C.push(w),s.current.push(w)):(C.push(w),s.current.push(S,w)),t.onNodeSelect&&t.onNodeSelect(y,C),n.selected.setValue(C))},f=(y,m)=>{let C=n.selected.value.slice();const{start:b,end:w}=m;o.current&&(C=C.filter(M=>s.current.indexOf(M)===-1));let S=a(b,w);S=S.filter(M=>!e.isNodeDisabled(M)),s.current=S;let k=C.concat(S);k=k.filter((M,I)=>k.indexOf(M)===I),t.onNodeSelect&&t.onNodeSelect(y,k),n.selected.setValue(k)};return Xd(e,{isNodeSelected:i,selectNode:l,selectRange:(y,m,C=!1)=>{if(t.disableSelection)return;const{start:b=r.current,end:w,current:S}=m;C?u(y,{start:b,next:w,current:S}):b!=null&&w!=null&&f(y,{start:b,end:w}),o.current=!0},rangeSelectToLast:(y,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(y,{start:C,end:Qx(e)})},rangeSelectToFirst:(y,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(y,{start:C,end:Xx(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};NI.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const wke=[];NI.getDefaultizedParams=e=>{var t,n,r;return x({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?wke:null})};const GO=1e3;class Cke{constructor(t=GO){this.timeouts=new Map,this.cleanupTimeout=GO,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 xke{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class Ske{}function Pke(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new xke:new Cke);const[i]=c.useState(new Ske),l=c.useRef(null),a=c.useRef();a.current=s;const u=c.useRef(null);if(!l.current&&a.current){const f=(p,g)=>{if(!g.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,g)}};l.current=r.$$subscribeEvent(o,f),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,u.current=null},u.current)}else!a.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));c.useEffect(()=>{if(!l.current&&a.current){const f=(p,g)=>{if(!g.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,g)}};l.current=r.$$subscribeEvent(o,f)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o])}}const kke={registry:null},Ike=Pke(kke),BI=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=Ye(v=>{const y=typeof v=="function"?v(n.focusedNodeId):v;r(m=>x({},m,{focusedNodeId:y}))}),l=c.useCallback(v=>n.focusedNodeId===v,[n.focusedNodeId]),a=Ye((v,y)=>{y&&(i(y),t.onNodeFocus&&t.onNodeFocus(v,y))});Xd(e,{isNodeFocused:l,focusNode:a}),Ike(e,"removeNode",({id:v})=>{i(y=>y===v&&s.current===fn(s.current).activeElement?e.getChildrenIds(null)[0]:y)});const u=v=>y=>{var m;if((m=v.onFocus)==null||m.call(v,y),y.target===y.currentTarget){const C=w=>{const S=e.getNode(w);return S&&(S.parentId==null||e.isNodeExpanded(S.parentId))};let b;Array.isArray(o.selected.value)?b=o.selected.value.find(C):o.selected.value!=null&&C(o.selected.value)&&(b=o.selected.value),b==null&&(b=e.getNavigableChildrenIds(null)[0]),e.focusNode(y,b)}},f=v=>y=>{var m;(m=v.onBlur)==null||m.call(v,y),i(null)},p=e.getNode(n.focusedNodeId),g=p?p.idAttribute:null;return{getRootProps:v=>({onFocus:u(v),onBlur:f(v),"aria-activedescendant":g!=null?g:void 0})}};BI.getInitialState=()=>({focusedNodeId:null});BI.getDefaultizedParams=e=>{var t;return x({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function Eke(e){return e&&e.length===1&&e.match(/\S/)}function KO(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const Mke=({instance:e,params:t,state:n})=>{const o=yn().direction==="rtl",s=c.useRef({}),i=Ye((v,y)=>(s.current[v]=y,()=>{const m=x({},s.current);delete m[v],s.current=m}));Xd(e,{mapFirstChar:i});const l=v=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(v,np(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(v,n.focusedNodeId)),!0),a=v=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(v,n.focusedNodeId),!0;const y=e.getNode(n.focusedNodeId).parentId;return y?(e.focusNode(v,y),!0):!1},u=(v,y,m)=>{let C,b;const w=m.toLowerCase(),S=[],k=[];Object.keys(s.current).forEach(M=>{const I=e.getNode(M),E=I.parentId?e.isNodeExpanded(I.parentId):!0,T=t.disabledItemsFocusable?!1:e.isNodeDisabled(M);E&&!T&&(S.push(M),k.push(s.current[M]))}),C=S.indexOf(y)+1,C>=S.length&&(C=0),b=KO(k,C,w),b===-1&&(b=KO(k,0,w)),b>-1&&e.focusNode(v,S[b])},f=(v,y)=>{e.isNodeDisabled(np(e,y))||e.selectRange(v,{end:np(e,y),current:y},!0)},p=(v,y)=>{e.isNodeDisabled(Hw(e,y))||e.selectRange(v,{end:Hw(e,y),current:y},!0)},g=v=>y=>{var m;(m=v.onKeyDown)==null||m.call(v,y);let C=!1;const b=y.key;if(y.altKey||y.currentTarget!==y.target||n.focusedNodeId==null)return;const w=y.ctrlKey||y.metaKey;switch(b){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(C=!0,t.multiSelect&&y.shiftKey?e.selectRange(y,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(y,n.focusedNodeId,!0):e.selectNode(y,n.focusedNodeId)),y.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(y,n.focusedNodeId),C=!0):t.disableSelection||(C=!0,t.multiSelect?e.selectNode(y,n.focusedNodeId,!0):e.selectNode(y,n.focusedNodeId))),y.stopPropagation();break;case"ArrowDown":t.multiSelect&&y.shiftKey&&!t.disableSelection&&f(y,n.focusedNodeId),e.focusNode(y,np(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&y.shiftKey&&!t.disableSelection&&p(y,n.focusedNodeId),e.focusNode(y,Hw(e,n.focusedNodeId)),C=!0;break;case"ArrowRight":o?C=a(y):C=l(y);break;case"ArrowLeft":o?C=l(y):C=a(y);break;case"Home":t.multiSelect&&w&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(y,n.focusedNodeId),e.focusNode(y,Xx(e)),C=!0;break;case"End":t.multiSelect&&w&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(y,n.focusedNodeId),e.focusNode(y,Qx(e)),C=!0;break;default:b==="*"?(e.expandAllSiblings(y,n.focusedNodeId),C=!0):t.multiSelect&&w&&b.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(y,{start:Xx(e),end:Qx(e)}),C=!0):!w&&!y.shiftKey&&Eke(b)&&(u(y,n.focusedNodeId,b),C=!0)}C&&(y.preventDefault(),y.stopPropagation())};return{getRootProps:v=>({onKeyDown:g(v)})}},Tke=({instance:e,params:t})=>{const n=Kt(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},_ke=[vke,FI,NI,BI,Mke,Tke],$ke=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],Rke=e=>{const{classes:t}=e;return _e({root:["root"]},ake,t)},qO=te("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),K3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeView"}),o=r,s=r,{disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:g,selected:v,multiSelect:y,onNodeSelect:m,id:C,defaultCollapseIcon:b,defaultEndIcon:w,defaultExpandIcon:S,defaultParentIcon:k,children:M}=s,I=oe(s,$ke),{getRootProps:E,contextValue:T}=hke({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:g,selected:v,multiSelect:y,onNodeSelect:m,id:C,defaultCollapseIcon:b,defaultEndIcon:w,defaultExpandIcon:S,defaultParentIcon:k,plugins:_ke,rootRef:n}),L=Rke(r),O=qt({elementType:qO,externalSlotProps:{},externalForwardedProps:I,className:L.root,getSlotProps:E,ownerState:o});return $.jsx(mke,{value:T,children:$.jsx(qO,x({},O,{children:M}))})});var zI={},Oke=et;Object.defineProperty(zI,"__esModule",{value:!0});var q3=zI.default=void 0,Dke=Oke(tt()),Ake=Ze(),Lke=(0,Dke.default)((0,Ake.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");q3=zI.default=Lke;var VI={},Fke=et;Object.defineProperty(VI,"__esModule",{value:!0});var Y3=VI.default=void 0,Nke=Fke(tt()),Bke=Ze(),zke=(0,Nke.default)((0,Bke.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Y3=VI.default=zke;var jI={},Vke=et;Object.defineProperty(jI,"__esModule",{value:!0});var Q3=jI.default=void 0,jke=Vke(tt()),YO=Ze(),Hke=(0,jke.default)([(0,YO.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"),(0,YO.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");Q3=jI.default=Hke;var HI={},Uke=et;Object.defineProperty(HI,"__esModule",{value:!0});var X3=HI.default=void 0,Wke=Uke(tt()),Gke=Ze(),Kke=(0,Wke.default)((0,Gke.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");X3=HI.default=Kke;var UI={},qke=et;Object.defineProperty(UI,"__esModule",{value:!0});var Z3=UI.default=void 0,Yke=qke(tt()),Qke=Ze(),Xke=(0,Yke.default)((0,Qke.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");Z3=UI.default=Xke;var WI={},Zke=et;Object.defineProperty(WI,"__esModule",{value:!0});var J3=WI.default=void 0,Jke=Zke(tt()),eIe=Ze(),tIe=(0,Jke.default)((0,eIe.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");J3=WI.default=tIe;var GI={},nIe=et;Object.defineProperty(GI,"__esModule",{value:!0});var eB=GI.default=void 0,rIe=nIe(tt()),oIe=Ze(),sIe=(0,rIe.default)((0,oIe.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");eB=GI.default=sIe;var KI={},iIe=et;Object.defineProperty(KI,"__esModule",{value:!0});var tB=KI.default=void 0,lIe=iIe(tt()),aIe=Ze(),cIe=(0,lIe.default)((0,aIe.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");tB=KI.default=cIe;var qI={},uIe=et;Object.defineProperty(qI,"__esModule",{value:!0});var nB=qI.default=void 0,dIe=uIe(tt()),fIe=Ze(),pIe=(0,dIe.default)((0,fIe.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");nB=qI.default=pIe;var YI={},hIe=et;Object.defineProperty(YI,"__esModule",{value:!0});var rB=YI.default=void 0,mIe=hIe(tt()),gIe=Ze(),vIe=(0,mIe.default)((0,gIe.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");rB=YI.default=vIe;var QI={},yIe=et;Object.defineProperty(QI,"__esModule",{value:!0});var oB=QI.default=void 0;CIe(c);var bIe=yIe(tt()),wIe=Ze();function sB(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(sB=function(r){return r?n:t})(e)}function CIe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=sB(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}var xIe=(0,bIe.default)((0,wIe.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");oB=QI.default=xIe;let pg;function SIe(){const{close:e}=rs({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=XI();return c.createElement(c.Fragment,{},c.createElement(ze,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?c.createElement("i",{},"Home"):decodeURI(t.id)),c.createElement(oz,{from:pg!=null?pg:t.source,onSelect(r){return rt(this,null,function*(){const o=yield Promise.all(r.map(l=>at("add_vfs",{parent:t.id,source:l}).then(a=>a,a=>[l,a.message])));pg=r[0].slice(0,r[0].lastIndexOf("/"));const s=o.filter(Array.isArray);s.length&&(yield kt(c.createElement(ze,{},"Some elements have been rejected",c.createElement("ul",{},s.map(([l,a])=>c.createElement("li",{key:l},l,": ",a)))),"error"));const i=o.filter(l=>l.name).map(l=>t.id+encodeURI(l.name)+(l.link.endsWith("/")?"/":""));ka(i),e()})}}))}})}function PIe(){return rt(this,null,function*(){try{const e=yield $k("Enter folder name");if(!e)return;const{id:t}=XI(),n=yield at("add_vfs",{parent:t,name:e});ka([t+encodeURI(n.name)+"/"]),yield kt(`Folder "${n.name}" created`,"success")}catch(e){yield kt(e)}})}function kIe(){return rt(this,null,function*(){try{const{id:e}=XI(),t=yield at("add_vfs",{parent:e,name:"new link",url:"https://google.com"});ka([e+encodeURI(t.name)]),er("Link created","success",{onClose:()=>zv("input[name=url]")})}catch(e){yield kt(e)}})}function XI(){const e=ln.selectedFiles[0]||ln.vfs;return e.type==="folder"?e:e.parent}function iB(n){var r=n,{items:e}=r,t=Ft(r,["items"]);const[o,s]=lo.useState(),i=!!o,l=c.useCallback(()=>s(void 0),[]);return c.createElement(lo.Fragment,{},c.createElement(qn,Se({"aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:a=>{s(a.currentTarget)}},t)),c.createElement(RN,{anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((a,u)=>c.createElement(Sr,ht(Se({key:u},a),{onClick(){var f;l(),(f=a.onClick)==null||f.apply(this,arguments)}})))}))}function IIe({status:e}){const{data:t,reload:n}=t4((e==null?void 0:e.platform)==="win32"&&"windows_integrated");return c.createElement(ze,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},c.createElement(iB,{variant:"contained",startIcon:c.createElement(vI),items:[{children:"from disk",onClick:SIe},{children:"virtual folder",onClick:PIe},{children:"web-link",onClick:kIe}]},"Add"),Gb(()=>ka()),(e==null?void 0:e.platform)==="win32"&&c.createElement(Ts,Se({icon:oB,variant:"outlined",doneMessage:!0},t!=null&&t.is?{confirm:!0,children:"Remove integration",onClick:()=>at("windows_remove").then(n)}:{children:"System integration",onClick:()=>EIe().then(n)})))}function EIe(){return rt(this,null,function*(){const e=c.createElement(ze,{},"We are going to add a command in the right-click of Windows File Manager",c.createElement("img",{src:"win-shell.png",style:{display:"block",width:"min(30em, 80vw)",marginTop:"1em"}}),c.createElement(Pr,{severity:"info"},"It will also automatically copy the URL, ready to paste!"));return(yield dr(e))&&at("windows_integration")})}const ZI=Symbol.for("yaml.alias"),Zx=Symbol.for("yaml.document"),ma=Symbol.for("yaml.map"),lB=Symbol.for("yaml.pair"),yl=Symbol.for("yaml.scalar"),Zd=Symbol.for("yaml.seq"),Fs=Symbol.for("yaml.node.type"),jc=e=>!!e&&typeof e=="object"&&e[Fs]===ZI,Jd=e=>!!e&&typeof e=="object"&&e[Fs]===Zx,ef=e=>!!e&&typeof e=="object"&&e[Fs]===ma,An=e=>!!e&&typeof e=="object"&&e[Fs]===lB,Sn=e=>!!e&&typeof e=="object"&&e[Fs]===yl,tf=e=>!!e&&typeof e=="object"&&e[Fs]===Zd;function Bn(e){if(e&&typeof e=="object")switch(e[Fs]){case ma:case Zd:return!0}return!1}function tr(e){if(e&&typeof e=="object")switch(e[Fs]){case ZI:case ma:case yl:case Zd:return!0}return!1}const MIe=e=>(Sn(e)||Bn(e))&&!!e.anchor,Co=Symbol("break visit"),aB=Symbol("skip children"),Oi=Symbol("remove node");function Sa(e,t){const n=cB(t);Jd(e)?Bu(null,e.contents,n,Object.freeze([e]))===Oi&&(e.contents=null):Bu(null,e,n,Object.freeze([]))}Sa.BREAK=Co;Sa.SKIP=aB;Sa.REMOVE=Oi;function Bu(e,t,n,r){const o=uB(e,t,n,r);if(tr(o)||An(o))return dB(e,r,o),Bu(e,o,n,r);if(typeof o!="symbol"){if(Bn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=Bu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===Co)return Co;i===Oi&&(t.items.splice(s,1),s-=1)}}}else if(An(t)){r=Object.freeze(r.concat(t));const s=Bu("key",t.key,n,r);if(s===Co)return Co;s===Oi&&(t.key=null);const i=Bu("value",t.value,n,r);if(i===Co)return Co;i===Oi&&(t.value=null)}}return o}function d0(e,t){return rt(this,null,function*(){const n=cB(t);Jd(e)?(yield zu(null,e.contents,n,Object.freeze([e])))===Oi&&(e.contents=null):yield zu(null,e,n,Object.freeze([]))})}d0.BREAK=Co;d0.SKIP=aB;d0.REMOVE=Oi;function zu(e,t,n,r){return rt(this,null,function*(){const o=yield uB(e,t,n,r);if(tr(o)||An(o))return dB(e,r,o),zu(e,o,n,r);if(typeof o!="symbol"){if(Bn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=yield zu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===Co)return Co;i===Oi&&(t.items.splice(s,1),s-=1)}}}else if(An(t)){r=Object.freeze(r.concat(t));const s=yield zu("key",t.key,n,r);if(s===Co)return Co;s===Oi&&(t.key=null);const i=yield zu("value",t.value,n,r);if(i===Co)return Co;i===Oi&&(t.value=null)}}return o})}function cB(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 uB(e,t,n,r){var o,s,i,l,a;if(typeof n=="function")return n(e,t,r);if(ef(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(tf(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(An(t))return(i=n.Pair)==null?void 0:i.call(n,e,t,r);if(Sn(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(jc(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function dB(e,t,n){const r=t[t.length-1];if(Bn(r))r.items[e]=n;else if(An(r))e==="key"?r.key=n:r.value=n;else if(Jd(r))r.contents=n;else{const o=jc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const TIe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_Ie=e=>e.replace(/[!,[\]{}]/g,t=>TIe[t]);class oo{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},oo.defaultYaml,t),this.tags=Object.assign({},oo.defaultTags,n)}clone(){const t=new oo(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new oo(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:oo.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},oo.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:oo.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},oo.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[s,i]=r;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,i),!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 i=t.slice(2,-1);return i==="!"||i==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),i)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const s=this.tags[r];return s?s+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+_Ie(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&&tr(t.contents)){const s={};Sa(t.contents,(i,l)=>{tr(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of r)s==="!!"&&i==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(i)))&&n.push(`%TAG ${s} ${i}`);return n.join(`
|
|
624
|
+
`)}}oo.defaultYaml={explicit:!1,version:"1.2"};oo.defaultTags={"!!":"tag:yaml.org,2002:"};function fB(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 pB(e){const t=new Set;return Sa(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function hB(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function $Ie(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=pB(e));const i=hB(t,o);return o.add(i),i},setAnchors:()=>{for(const s of n){const i=r.get(s);if(typeof i=="object"&&i.anchor&&(Sn(i.node)||Bn(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}function Vu(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,s=r.length;o<s;++o){const i=r[o],l=Vu(e,r,String(o),i);l===void 0?delete r[o]:l!==i&&(r[o]=l)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const s=r.get(o),i=Vu(e,r,o,s);i===void 0?r.delete(o):i!==s&&r.set(o,i)}else if(r instanceof Set)for(const o of Array.from(r)){const s=Vu(e,r,o,o);s===void 0?r.delete(o):s!==o&&(r.delete(o),r.add(s))}else for(const[o,s]of Object.entries(r)){const i=Vu(e,r,o,s);i===void 0?delete r[o]:i!==s&&(r[o]=i)}return e.call(t,n,r)}function _s(e,t,n){if(Array.isArray(e))return e.map((r,o)=>_s(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!MIe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,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}class JI{constructor(t){Object.defineProperty(this,Fs,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){if(!Jd(t))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=_s(this,"",i);if(typeof o=="function")for(const{count:a,res:u}of i.anchors.values())o(u,a);return typeof s=="function"?Vu(s,{"":l},"",l):l}}class f0 extends JI{constructor(t){super(ZI),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Sa(t,{Node:(r,o)=>{if(o===this)return Sa.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,i=this.resolve(o);if(!i){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=r.get(i);if(l||(_s(i,null,n),l=r.get(i)),!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Ug(o,i,r)),l.count*l.aliasCount>s)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(fB(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${o} `}return o}}function Ug(e,t,n){if(jc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Bn(t)){let r=0;for(const o of t.items){const s=Ug(e,o,n);s>r&&(r=s)}return r}else if(An(t)){const r=Ug(e,t.key,n),o=Ug(e,t.value,n);return Math.max(r,o)}return 1}const mB=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends JI{constructor(t){super(yl),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:_s(this.value,t,n)}toString(){return String(this.value)}}$t.BLOCK_FOLDED="BLOCK_FOLDED";$t.BLOCK_LITERAL="BLOCK_LITERAL";$t.PLAIN="PLAIN";$t.QUOTE_DOUBLE="QUOTE_DOUBLE";$t.QUOTE_SINGLE="QUOTE_SINGLE";const RIe="tag:yaml.org,2002:";function OIe(e,t,n){var r;if(t){const o=n.filter(i=>i.tag===t),s=(r=o.find(i=>!i.format))!=null?r:o[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(o=>{var s;return((s=o.identify)==null?void 0:s.call(o,e))&&!o.format})}function hh(e,t,n){var p,g,v;if(Jd(e)&&(e=e.contents),tr(e))return e;if(An(e)){const y=(g=(p=n.schema[ma]).createNode)==null?void 0:g.call(p,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=n;let a;if(r&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=o(e)),new f0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=RIe+t.slice(2));let u=OIe(e,t,i.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const y=new $t(e);return a&&(a.node=y),y}u=e instanceof Map?i[ma]:Symbol.iterator in Object(e)?i[Zd]:i[ma]}s&&(s(u),delete n.onTagObj);const f=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((v=u==null?void 0:u.nodeClass)==null?void 0:v.from)=="function"?u.nodeClass.from(n.schema,e,n):new $t(e);return t?f.tag=t:u.default||(f.tag=u.tag),a&&(a.node=f),f}function sy(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const s=t[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=r,r=i}else r=new Map([[s,r]])}return hh(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 rp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class p0 extends JI{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=>tr(r)||An(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(rp(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(Bn(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,sy(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(Bn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,s=this.get(r,!0);return o.length===0?!n&&Sn(s)?s.value:s:Bn(s)?s.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!An(n))return!1;const r=n.value;return r==null||t&&Sn(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 Bn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const s=this.get(r,!0);if(Bn(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,sy(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}p0.maxFlowStringSingleLineLength=60;const DIe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ll(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ra=(e,t,n)=>e.endsWith(`
|
|
625
|
+
`)?ll(n,t):n.includes(`
|
|
626
|
+
`)?`
|
|
627
|
+
`+ll(n,t):(e.endsWith(" ")?"":" ")+n,gB="flow",Jx="block",Wg="quoted";function h0(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return e;const a=Math.max(1+s,1+o-t.length);if(e.length<=a)return e;const u=[],f={};let p=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?u.push(0):p=o-r);let g,v,y=!1,m=-1,C=-1,b=-1;n===Jx&&(m=QO(e,m),m!==-1&&(p=m+a));for(let S;S=e[m+=1];){if(n===Wg&&S==="\\"){switch(C=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}b=m}if(S===`
|
|
628
|
+
`)n===Jx&&(m=QO(e,m)),p=m+a,g=void 0;else{if(S===" "&&v&&v!==" "&&v!==`
|
|
629
|
+
`&&v!==" "){const k=e[m+1];k&&k!==" "&&k!==`
|
|
630
|
+
`&&k!==" "&&(g=m)}if(m>=p)if(g)u.push(g),p=g+a,g=void 0;else if(n===Wg){for(;v===" "||v===" ";)v=S,S=e[m+=1],y=!0;const k=m>b+1?m-2:C-1;if(f[k])return e;u.push(k),f[k]=!0,p=k+a,g=void 0}else y=!0}v=S}if(y&&l&&l(),u.length===0)return e;i&&i();let w=e.slice(0,u[0]);for(let S=0;S<u.length;++S){const k=u[S],M=u[S+1]||e.length;k===0?w=`
|
|
631
|
+
${t}${e.slice(0,M)}`:(n===Wg&&f[k]&&(w+=`${e[k]}\\`),w+=`
|
|
632
|
+
${t}${e.slice(k+1,M)}`)}return w}function QO(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
|
|
633
|
+
`);n=e[t+1]}return t}const m0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),g0=e=>/^(%|---|\.\.\.)/m.test(e);function AIe(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let s=0,i=0;s<o;++s)if(e[s]===`
|
|
634
|
+
`){if(s-i>r)return!0;if(i=s+1,o-i<=r)return!1}return!0}function kp(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(g0(e)?" ":"");let i="",l=0;for(let a=0,u=n[a];u;u=n[++a])if(u===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(i+=n.slice(l,a)+"\\ ",a+=1,l=a,u="\\"),u==="\\")switch(n[a+1]){case"u":{i+=n.slice(l,a);const f=n.substr(a+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=n.substr(a,6)}a+=5,l=a+1}break;case"n":if(r||n[a+2]==='"'||n.length<o)a+=1;else{for(i+=n.slice(l,a)+`
|
|
635
|
+
|
|
636
|
+
`;n[a+2]==="\\"&&n[a+3]==="n"&&n[a+4]!=='"';)i+=`
|
|
637
|
+
`,a+=2;i+=s,n[a+2]===" "&&(i+="\\"),a+=1,l=a+1}break;default:a+=1}return i=l?i+n.slice(l):n,r?i:h0(i,s,Wg,m0(t,!1))}function eS(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
638
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return kp(e,t);const n=t.indent||(g0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
639
|
+
${n}`)+"'";return t.implicitKey?r:h0(r,n,gB,m0(t,!1))}function ju(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=kp;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=eS:s&&!o?r=kp:r=n?eS:kp}return r(e,t)}let tS;try{tS=new RegExp(`(^|(?<!
|
|
640
|
+
))
|
|
641
|
+
+(?!
|
|
642
|
+
|$)`,"g")}catch(e){tS=/\n+(?!\n|$)/g}function Gg({comment:e,type:t,value:n},r,o,s){const{blockQuote:i,commentString:l,lineWidth:a}=r.options;if(!i||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return ju(n,r);const u=r.indent||(r.forceBlockIndent||g0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!AIe(n,a,u.length);if(!n)return f?`|
|
|
643
|
+
`:`>
|
|
644
|
+
`;let p,g;for(g=n.length;g>0;--g){const I=n[g-1];if(I!==`
|
|
645
|
+
`&&I!==" "&&I!==" ")break}let v=n.substring(g);const y=v.indexOf(`
|
|
646
|
+
`);y===-1?p="-":n===v||y!==v.length-1?(p="+",s&&s()):p="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
647
|
+
`&&(v=v.slice(0,-1)),v=v.replace(tS,`$&${u}`));let m=!1,C,b=-1;for(C=0;C<n.length;++C){const I=n[C];if(I===" ")m=!0;else if(I===`
|
|
648
|
+
`)b=C;else break}let w=n.substring(0,b<C?b+1:C);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${u}`));let k=(f?"|":">")+(m?u?"2":"1":"")+p;if(e&&(k+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),f)return n=n.replace(/\n+/g,`$&${u}`),`${k}
|
|
649
|
+
${u}${w}${n}${v}`;n=n.replace(/\n+/g,`
|
|
650
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);const M=h0(`${w}${n}${v}`,u,Jx,m0(r,!0));return`${k}
|
|
651
|
+
${u}${M}`}function LIe(e,t,n,r){const{type:o,value:s}=e,{actualString:i,implicitKey:l,indent:a,indentStep:u,inFlow:f}=t;if(l&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return ju(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||f||!s.includes(`
|
|
652
|
+
`)?ju(s,t):Gg(e,t,n,r);if(!l&&!f&&o!==$t.PLAIN&&s.includes(`
|
|
653
|
+
`))return Gg(e,t,n,r);if(g0(s)){if(a==="")return t.forceBlockIndent=!0,Gg(e,t,n,r);if(l&&a===u)return ju(s,t)}const p=s.replace(/\n+/g,`$&
|
|
654
|
+
${a}`);if(i){const g=m=>{var C;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((C=m.test)==null?void 0:C.test(p))},{compat:v,tags:y}=t.doc.schema;if(y.some(g)||v!=null&&v.some(g))return ju(s,t)}return l?p:h0(p,a,gB,m0(t,!1))}function Hh(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==$t.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=$t.QUOTE_DOUBLE);const a=f=>{switch(f){case $t.BLOCK_FOLDED:case $t.BLOCK_LITERAL:return o||s?ju(i.value,t):Gg(i,t,n,r);case $t.QUOTE_DOUBLE:return kp(i.value,t);case $t.QUOTE_SINGLE:return eS(i.value,t);case $t.PLAIN:return LIe(i,t,n,r);default:return null}};let u=a(l);if(u===null){const{defaultKeyType:f,defaultStringType:p}=t.options,g=o&&f||p;if(u=a(g),u===null)throw new Error(`Unsupported default string type ${g}`)}return u}function vB(e,t){const n=Object.assign({blockQuote:!0,commentString:DIe,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 FIe(e,t){var o,s,i,l;if(t.tag){const a=e.filter(u=>u.tag===t.tag);if(a.length>0)return(o=a.find(u=>u.format===t.format))!=null?o:a[0]}let n,r;if(Sn(t)){r=t.value;const a=e.filter(u=>{var f;return(f=u.identify)==null?void 0:f.call(u,r)});n=(s=a.find(u=>u.format===t.format))!=null?s:a.find(u=>!u.format)}else r=t,n=e.find(a=>a.nodeClass&&r instanceof a.nodeClass);if(!n){const a=(l=(i=r==null?void 0:r.constructor)==null?void 0:i.name)!=null?l:typeof r;throw new Error(`Tag not resolved for ${a} value`)}return n}function NIe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||Bn(e))&&e.anchor;s&&fB(s)&&(n.add(s),o.push(`&${s}`));const i=e.tag?e.tag:t.default?null:t.tag;return i&&o.push(r.directives.tagString(i)),o.join(" ")}function Md(e,t,n,r){var a,u;if(An(e))return e.toString(t,n,r);if(jc(e)){if(t.doc.directives)return e.toString(t);if((a=t.resolvedAliases)!=null&&a.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 s=tr(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=FIe(t.doc.schema.tags,s));const i=NIe(s,o,t);i.length>0&&(t.indentAtStart=((u=t.indentAtStart)!=null?u:0)+i.length+1);const l=typeof o.stringify=="function"?o.stringify(s,t,n,r):Sn(s)?Hh(s,t,n,r):s.toString(t,n,r);return i?Sn(s)||l[0]==="{"||l[0]==="["?`${i} ${l}`:`${i}
|
|
655
|
+
${t.indent}${l}`:l}function BIe({key:e,value:t},n,r,o){var E,T;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:u,indentSeq:f,simpleKeys:p}}=n;let g=tr(e)&&e.comment||null;if(p){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(Bn(e)){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let v=!p&&(!e||g&&t==null&&!n.inFlow||Bn(e)||(Sn(e)?e.type===$t.BLOCK_FOLDED||e.type===$t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(p||!s),indent:l+a});let y=!1,m=!1,C=Md(e,n,()=>y=!0,()=>m=!0);if(!v&&!n.inFlow&&C.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(s||t==null)return y&&r&&r(),C===""?"?":v?`? ${C}`:C}else if(s&&!p||t==null&&v)return C=`? ${C}`,g&&!y?C+=ra(C,n.indent,u(g)):m&&o&&o(),C;y&&(g=null),v?(g&&(C+=ra(C,n.indent,u(g))),C=`? ${C}
|
|
656
|
+
${l}:`):(C=`${C}:`,g&&(C+=ra(C,n.indent,u(g))));let b,w,S;tr(t)?(b=!!t.spaceBefore,w=t.commentBefore,S=t.comment):(b=!1,w=null,S=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!v&&!g&&Sn(t)&&(n.indentAtStart=C.length+1),m=!1,!f&&a.length>=2&&!n.inFlow&&!v&&tf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let k=!1;const M=Md(t,n,()=>k=!0,()=>m=!0);let I=" ";if(g||b||w){if(I=b?`
|
|
657
|
+
`:"",w){const L=u(w);I+=`
|
|
658
|
+
${ll(L,n.indent)}`}M===""&&!n.inFlow?I===`
|
|
659
|
+
`&&(I=`
|
|
660
|
+
|
|
661
|
+
`):I+=`
|
|
662
|
+
${n.indent}`}else if(!v&&Bn(t)){const L=M[0],O=M.indexOf(`
|
|
663
|
+
`),R=O!==-1,V=(T=(E=n.inFlow)!=null?E:t.flow)!=null?T:t.items.length===0;if(R||!V){let j=!1;if(R&&(L==="&"||L==="!")){let _=M.indexOf(" ");L==="&"&&_!==-1&&_<O&&M[_+1]==="!"&&(_=M.indexOf(" ",_+1)),(_===-1||O<_)&&(j=!0)}j||(I=`
|
|
664
|
+
${n.indent}`)}}else(M===""||M[0]===`
|
|
665
|
+
`)&&(I="");return C+=I+M,n.inFlow?k&&r&&r():S&&!k?C+=ra(C,n.indent,u(S)):m&&o&&o(),C}function yB(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const XO="<<";function bB(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&zIe(n))if(r=jc(r)?r.resolve(e.doc):r,tf(r))for(const o of r.items)Uw(e,t,o);else if(Array.isArray(r))for(const o of r)Uw(e,t,o);else Uw(e,t,r);else{const o=_s(n,"",e);if(t instanceof Map)t.set(o,_s(r,o,e));else if(t instanceof Set)t.add(o);else{const s=VIe(n,o,e),i=_s(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const zIe=e=>e===XO||Sn(e)&&e.value===XO&&(!e.type||e.type===$t.PLAIN);function Uw(e,t,n){const r=e&&jc(n)?n.resolve(e.doc):n;if(!ef(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[s,i]of o)t instanceof Map?t.has(s)||t.set(s,i):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function VIe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(tr(e)&&n&&n.doc){const r=vB(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),yB(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function eE(e,t,n){const r=hh(e,void 0,n),o=hh(t,void 0,n);return new qr(r,o)}class qr{constructor(t,n=null){Object.defineProperty(this,Fs,{value:lB}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return tr(n)&&(n=n.clone(t)),tr(r)&&(r=r.clone(t)),new qr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return bB(n,r,this)}toString(t,n,r){return t!=null&&t.doc?BIe(this,t,n,r):JSON.stringify(this)}}function wB(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?HIe:jIe)(e,t,n)}function jIe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:a,options:{commentString:u}}=n,f=Object.assign({},n,{indent:s,type:null});let p=!1;const g=[];for(let y=0;y<t.length;++y){const m=t[y];let C=null;if(tr(m))!p&&m.spaceBefore&&g.push(""),iy(n,g,m.commentBefore,p),m.comment&&(C=m.comment);else if(An(m)){const w=tr(m.key)?m.key:null;w&&(!p&&w.spaceBefore&&g.push(""),iy(n,g,w.commentBefore,p))}p=!1;let b=Md(m,f,()=>C=null,()=>p=!0);C&&(b+=ra(b,s,u(C))),p&&C&&(p=!1),g.push(r+b)}let v;if(g.length===0)v=o.start+o.end;else{v=g[0];for(let y=1;y<g.length;++y){const m=g[y];v+=m?`
|
|
666
|
+
${a}${m}`:`
|
|
667
|
+
`}}return e?(v+=`
|
|
668
|
+
`+ll(u(e),a),l&&l()):p&&i&&i(),v}function HIe({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:l,flowCollectionPadding:a,options:{commentString:u}}=n;o+=l;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,g=0;const v=[];for(let b=0;b<t.length;++b){const w=t[b];let S=null;if(tr(w))w.spaceBefore&&v.push(""),iy(n,v,w.commentBefore,!1),w.comment&&(S=w.comment);else if(An(w)){const M=tr(w.key)?w.key:null;M&&(M.spaceBefore&&v.push(""),iy(n,v,M.commentBefore,!1),M.comment&&(p=!0));const I=tr(w.value)?w.value:null;I?(I.comment&&(S=I.comment),I.commentBefore&&(p=!0)):w.value==null&&M&&M.comment&&(S=M.comment)}S&&(p=!0);let k=Md(w,f,()=>S=null);b<t.length-1&&(k+=","),S&&(k+=ra(k,o,u(S))),!p&&(v.length>g||k.includes(`
|
|
669
|
+
`))&&(p=!0),v.push(k),g=v.length}let y;const{start:m,end:C}=r;if(v.length===0)y=m+C;else if(p||(p=v.reduce((w,S)=>w+S.length+2,2)>p0.maxFlowStringSingleLineLength),p){y=m;for(const b of v)y+=b?`
|
|
670
|
+
${l}${i}${b}`:`
|
|
671
|
+
`;y+=`
|
|
672
|
+
${i}${C}`}else y=`${m}${a}${v.join(" ")}${a}${C}`;return e&&(y+=ra(y,i,u(e)),s&&s()),y}function iy({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=ll(t(r),e);n.push(s.trimStart())}}function rc(e,t){const n=Sn(t)?t.value:t;for(const r of e)if(An(r)&&(r.key===t||r.key===n||Sn(r.key)&&r.key.value===n))return r}class Ho extends p0{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(ma,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:s}=r,i=new this(t),l=(a,u)=>{if(typeof s=="function")u=s.call(n,a,u);else if(Array.isArray(s)&&!s.includes(a))return;(u!==void 0||o)&&i.items.push(eE(a,u,r))};if(n instanceof Map)for(const[a,u]of n)l(a,u);else if(n&&typeof n=="object")for(const a of Object.keys(n))l(a,n[a]);return typeof t.sortMapEntries=="function"&&i.items.sort(t.sortMapEntries),i}add(t,n){var i;let r;An(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new qr(t,t==null?void 0:t.value):r=new qr(t.key,t.value);const o=rc(this.items,r.key),s=(i=this.schema)==null?void 0:i.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);Sn(o.value)&&mB(r.value)?o.value.value=r.value:o.value=r.value}else if(s){const l=this.items.findIndex(a=>s(r,a)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=rc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=rc(this.items,t),o=r==null?void 0:r.value;return(s=!n&&Sn(o)?o.value:o)!=null?s:void 0}has(t){return!!rc(this.items,t)}set(t,n){this.add(new qr(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 s of this.items)bB(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!An(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})),wB(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const nf={collection:"map",default:!0,nodeClass:Ho,tag:"tag:yaml.org,2002:map",resolve(e,t){return ef(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Ho.from(e,t,n)};class Pa extends p0{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Zd,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=hg(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=hg(t);if(typeof r!="number")return;const o=this.items[r];return!n&&Sn(o)?o.value:o}has(t){const n=hg(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=hg(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];Sn(o)&&mB(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 s of this.items)r.push(_s(s,String(o++),n));return r}toString(t,n,r){return t?wB(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let i=0;for(let l of n){if(typeof o=="function"){const a=n instanceof Set?l:String(i++);l=o.call(n,a,l)}s.items.push(hh(l,void 0,r))}}return s}}function hg(e){let t=Sn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const rf={collection:"seq",default:!0,nodeClass:Pa,tag:"tag:yaml.org,2002:seq",resolve(e,t){return tf(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Pa.from(e,t,n)},v0={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),Hh(e,t,n,r)}},y0={identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new $t(null),stringify:({source:e},t)=>typeof e=="string"&&y0.test.test(e)?e:t.options.nullStr},tE={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new $t(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&tE.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 ui({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 s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=t-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const CB={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:ui},xB={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():ui(e)}},SB={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 $t(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:ui},b0=e=>typeof e=="bigint"||Number.isInteger(e),nE=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function PB(e,t,n){const{value:r}=e;return b0(r)&&r>=0?n+r.toString(t):ui(e)}const kB={identify:e=>b0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>nE(e,2,8,n),stringify:e=>PB(e,8,"0o")},IB={identify:b0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>nE(e,0,10,n),stringify:ui},EB={identify:e=>b0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>nE(e,2,16,n),stringify:e=>PB(e,16,"0x")},UIe=[nf,rf,v0,y0,tE,kB,IB,EB,CB,xB,SB];function ZO(e){return typeof e=="bigint"||Number.isInteger(e)}const mg=({value:e})=>JSON.stringify(e),WIe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:mg},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:mg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:mg},{identify:ZO,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})=>ZO(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:mg}],GIe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},KIe=[nf,rf].concat(WIe,GIe),rE={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,s){const i=n;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let u=0;u<i.length;++u)a+=String.fromCharCode(i[u]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=$t.BLOCK_LITERAL),t!==$t.QUOTE_DOUBLE){const a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),u=Math.ceil(l.length/a),f=new Array(u);for(let p=0,g=0;p<u;++p,g+=a)f[p]=l.substr(g,a);l=f.join(t===$t.BLOCK_LITERAL?`
|
|
673
|
+
`:" ")}return Hh({comment:e,type:t,value:l},r,o,s)}};function MB(e,t){var n;if(tf(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!An(o)){if(ef(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const s=o.items[0]||new qr(new $t(null));if(o.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${o.commentBefore}
|
|
674
|
+
${s.key.commentBefore}`:o.commentBefore),o.comment){const i=(n=s.value)!=null?n:s.key;i.comment=i.comment?`${o.comment}
|
|
675
|
+
${i.comment}`:o.comment}o=s}e.items[r]=An(o)?o:new qr(o)}}else t("Expected a sequence for this tag");return e}function TB(e,t,n){const{replacer:r}=n,o=new Pa(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let i of t){typeof r=="function"&&(i=r.call(t,String(s++),i));let l,a;if(Array.isArray(i))if(i.length===2)l=i[0],a=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const u=Object.keys(i);if(u.length===1)l=u[0],a=i[l];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else l=i;o.items.push(eE(l,a,n))}return o}const oE={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:MB,createNode:TB};class rd extends Pa{constructor(){super(),this.add=Ho.prototype.add.bind(this),this.delete=Ho.prototype.delete.bind(this),this.get=Ho.prototype.get.bind(this),this.has=Ho.prototype.has.bind(this),this.set=Ho.prototype.set.bind(this),this.tag=rd.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 s,i;if(An(o)?(s=_s(o.key,"",n),i=_s(o.value,s,n)):s=_s(o,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}static from(t,n,r){const o=TB(t,n,r),s=new this;return s.items=o.items,s}}rd.tag="tag:yaml.org,2002:omap";const sE={collection:"seq",identify:e=>e instanceof Map,nodeClass:rd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=MB(e,t),r=[];for(const{key:o}of n.items)Sn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new rd,n)},createNode:(e,t,n)=>rd.from(e,t,n)};function _B({value:e,source:t},n){return t&&(e?$B:RB).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const $B={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 $t(!0),stringify:_B},RB={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 $t(!1),stringify:_B},qIe={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:ui},YIe={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():ui(e)}},QIe={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 $t(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:ui},Uh=e=>typeof e=="bigint"||Number.isInteger(e);function w0(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 i=BigInt(e);return o==="-"?BigInt(-1)*i:i}const s=parseInt(e,n);return o==="-"?-1*s:s}function iE(e,t,n){const{value:r}=e;if(Uh(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return ui(e)}const XIe={identify:Uh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>w0(e,2,2,n),stringify:e=>iE(e,2,"0b")},ZIe={identify:Uh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>w0(e,1,8,n),stringify:e=>iE(e,8,"0")},JIe={identify:Uh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>w0(e,0,10,n),stringify:ui},eEe={identify:Uh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>w0(e,2,16,n),stringify:e=>iE(e,16,"0x")};class od extends Ho{constructor(t){super(t),this.tag=od.tag}add(t){let n;An(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new qr(t.key,null):n=new qr(t,null),rc(this.items,n.key)||this.items.push(n)}get(t,n){const r=rc(this.items,t);return!n&&An(r)?Sn(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=rc(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new qr(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")}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let i of n)typeof o=="function"&&(i=o.call(n,i,i)),s.items.push(eE(i,null,r));return s}}od.tag="tag:yaml.org,2002:set";const lE={collection:"map",identify:e=>e instanceof Set,nodeClass:od,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>od.from(e,t,n),resolve(e,t){if(ef(e)){if(e.hasAllNullValues(!0))return Object.assign(new od,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function aE(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=i=>t?BigInt(i):Number(i),s=r.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return n==="-"?o(-1)*s:s}function OB(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return ui(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const DB={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})=>aE(e,n),stringify:OB},AB={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=>aE(e,!1),stringify:OB},C0={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(C0.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,o,s||0,i||0,l||0,a);const f=t[8];if(f&&f!=="Z"){let p=aE(f,!1);Math.abs(p)<30&&(p*=60),u-=6e4*p}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},JO=[nf,rf,v0,y0,$B,RB,XIe,ZIe,JIe,eEe,qIe,YIe,QIe,rE,sE,oE,lE,DB,AB,C0],eD=new Map([["core",UIe],["failsafe",[nf,rf,v0]],["json",KIe],["yaml11",JO],["yaml-1.1",JO]]),tD={binary:rE,bool:tE,float:SB,floatExp:xB,floatNaN:CB,floatTime:AB,int:IB,intHex:EB,intOct:kB,intTime:DB,map:nf,null:y0,omap:sE,pairs:oE,seq:rf,set:lE,timestamp:C0},tEe={"tag:yaml.org,2002:binary":rE,"tag:yaml.org,2002:omap":sE,"tag:yaml.org,2002:pairs":oE,"tag:yaml.org,2002:set":lE,"tag:yaml.org,2002:timestamp":C0};function Ww(e,t){let n=eD.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(eD.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=tD[r];if(o)return o;const s=Object.keys(tD).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const nEe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class x0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?Ww(t,"compat"):t?Ww(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?tEe:{},this.tags=Ww(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,ma,{value:nf}),Object.defineProperty(this,yl,{value:v0}),Object.defineProperty(this,Zd,{value:rf}),this.sortMapEntries=typeof i=="function"?i:i===!0?nEe:null}clone(){const t=Object.create(x0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function rEe(e,t){var a;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=vB(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=s(e.commentBefore);n.unshift(ll(u,""))}let i=!1,l=null;if(e.contents){if(tr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(ll(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const u=l?void 0:()=>i=!0;let f=Md(e.contents,o,()=>l=null,u);l&&(f+=ra(f,"",s(l))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Md(e.contents,o));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const u=s(e.comment);u.includes(`
|
|
676
|
+
`)?(n.push("..."),n.push(ll(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&i&&(u=u.replace(/^\n+/,"")),u&&((!i||l)&&n[n.length-1]!==""&&n.push(""),n.push(ll(s(u),"")))}return n.join(`
|
|
677
|
+
`)+`
|
|
678
|
+
`}class of{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Fs,{value:Zx});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:i}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new oo({version:i}),this.setSchema(i,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(of.prototype,{[Fs]:{value:Zx}});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=tr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){gu(this.contents)&&this.contents.add(t)}addIn(t,n){gu(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=pB(this);t.anchor=!n||r.has(n)?hB(n||"a",r):n}return new f0(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 C=w=>typeof w=="number"||w instanceof String||w instanceof Number,b=n.filter(C).map(String);b.length>0&&(n=n.concat(b)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:u,tag:f}=r!=null?r:{},{onAnchor:p,setAnchors:g,sourceObjects:v}=$Ie(this,i||"a"),y={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:a!=null?a:!1,onAnchor:p,onTagObj:u,replacer:o,schema:this.schema,sourceObjects:v},m=hh(t,f,y);return l&&Bn(m)&&(m.flow=!0),g(),m}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new qr(o,s)}delete(t){return gu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return rp(t)?this.contents==null?!1:(this.contents=null,!0):gu(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Bn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return rp(t)?!n&&Sn(this.contents)?this.contents.value:this.contents:Bn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Bn(this.contents)?this.contents.has(t):!1}hasIn(t){return rp(t)?this.contents!==void 0:Bn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=sy(this.schema,[t],n):gu(this.contents)&&this.contents.set(t,n)}setIn(t,n){rp(t)?this.contents=n:this.contents==null?this.contents=sy(this.schema,Array.from(t),n):gu(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 oo({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 oo({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 x0(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:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},a=_s(this.contents,n!=null?n:"",l);if(typeof s=="function")for(const{count:u,res:f}of l.anchors.values())s(f,u);return typeof i=="function"?Vu(i,{"":a},"",a):a}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 rEe(this,t)}}function gu(e){if(Bn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class cE extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class oc extends cE{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class LB extends cE{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const ly=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let l=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`…
|
|
679
|
+
`),i=l+i}if(/[^ ]/.test(i)){let l=1;const a=n.linePos[1];a&&a.line===r&&a.col>o&&(l=Math.max(1,Math.min(a.col-o,80-s)));const u=" ".repeat(s)+"^".repeat(l);n.message+=`:
|
|
680
|
+
|
|
681
|
+
${i}
|
|
682
|
+
${u}
|
|
683
|
+
`}};function Td(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,u=i,f="",p="",g=!1,v=!1,y=!1,m=null,C=null,b=null,w=null,S=null;for(const I of e)switch(y&&(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma"&&s(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),I.type){case"space":!t&&a&&n!=="doc-start"&&I.source[0]===" "&&s(I,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const E=I.source.substring(1)||" ";f?f+=p+E:f=E,p="",a=!1;break}case"newline":a?f?f+=I.source:l=!0:p+=I.source,a=!0,g=!0,(m||C)&&(v=!0),u=!0;break;case"anchor":m&&s(I,"MULTIPLE_ANCHORS","A node can have at most one anchor"),I.source.endsWith(":")&&s(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=I,S===null&&(S=I.offset),a=!1,u=!1,y=!0;break;case"tag":{C&&s(I,"MULTIPLE_TAGS","A node can have at most one tag"),C=I,S===null&&(S=I.offset),a=!1,u=!1,y=!0;break}case n:(m||C)&&s(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`),w&&s(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${t!=null?t:"collection"}`),w=I,a=!1,u=!1;break;case"comma":if(t){b&&s(I,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=I,a=!1,u=!1;break}default:s(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),a=!1,u=!1}const k=e[e.length-1],M=k?k.offset+k.source.length:o;return y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:b,found:w,spaceBefore:l,comment:f,hasNewline:g,hasNewlineAfterProp:v,anchor:m,tag:C,end:M,start:S!=null?S:M}}function mh(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
684
|
+
`))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(mh(t.key)||mh(t.value))return!0}return!1;default:return!0}}function nS(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&mh(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function FB(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(s,i)=>s===i||Sn(s)&&Sn(i)&&s.value===i.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>o(s.key,n))}const nD="All mapping items must start at the same column";function oEe({composeNode:e,composeEmptyNode:t},n,r,o,s){var f,p;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Ho,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const g of r.items){const{start:v,key:y,sep:m,value:C}=g,b=Td(v,{indicator:"explicit-key-ind",next:y!=null?y:m==null?void 0:m[0],offset:a,onError:o,startOnNewline:!0}),w=!b.found;if(w){if(y&&(y.type==="block-seq"?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&o(a,"BAD_INDENT",nD)),!b.anchor&&!b.tag&&!m){u=b.end,b.comment&&(l.comment?l.comment+=`
|
|
685
|
+
`+b.comment:l.comment=b.comment);continue}(b.hasNewlineAfterProp||mh(y))&&o(y!=null?y:v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=b.found)==null?void 0:p.indent)!==r.indent&&o(a,"BAD_INDENT",nD);const S=b.end,k=y?e(n,y,b,o):t(n,S,v,null,b,o);n.schema.compat&&nS(r.indent,y,o),FB(n,l.items,k)&&o(S,"DUPLICATE_KEY","Map keys must be unique");const M=Td(m!=null?m:[],{indicator:"map-value-ind",next:C,offset:k.range[2],onError:o,startOnNewline:!y||y.type==="block-scalar"});if(a=M.end,M.found){w&&((C==null?void 0:C.type)==="block-map"&&!M.hasNewline&&o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<M.found.offset-1024&&o(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const I=C?e(n,C,M,o):t(n,a,m,null,M,o);n.schema.compat&&nS(r.indent,C,o),a=I.range[2];const E=new qr(k,I);n.options.keepSourceTokens&&(E.srcToken=g),l.items.push(E)}else{w&&o(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(k.comment?k.comment+=`
|
|
686
|
+
`+M.comment:k.comment=M.comment);const I=new qr(k);n.options.keepSourceTokens&&(I.srcToken=g),l.items.push(I)}}return u&&u<a&&o(u,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,a,u!=null?u:a],l}function sEe({composeNode:e,composeEmptyNode:t},n,r,o,s){var f;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Pa,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const{start:p,value:g}of r.items){const v=Td(p,{indicator:"seq-item-ind",next:g,offset:a,onError:o,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{u=v.end,v.comment&&(l.comment=v.comment);continue}const y=g?e(n,g,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&nS(r.indent,g,o),a=y.range[2],l.items.push(y)}return l.range=[r.offset,a,u!=null?u:a],l}function Wh(e,t,n,r){let o="";if(e){let s=!1,i="";for(const l of e){const{source:a,type:u}=l;switch(u){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=a.substring(1)||" ";o?o+=i+f:o=f,i="";break}case"newline":o&&(i+=a),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=a.length}}return{comment:o,offset:t}}const Gw="Block collections are not allowed within flow collections",Kw=e=>e&&(e.type==="block-map"||e.type==="block-seq");function iEe({composeNode:e,composeEmptyNode:t},n,r,o,s){var C,b;const i=r.start.source==="{",l=i?"flow map":"flow sequence",a=(C=s==null?void 0:s.nodeClass)!=null?C:i?Ho:Pa,u=new a(n.schema);u.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1);let p=r.offset+r.start.source.length;for(let w=0;w<r.items.length;++w){const S=r.items[w],{start:k,key:M,sep:I,value:E}=S,T=Td(k,{flow:l,indicator:"explicit-key-ind",next:M!=null?M:I==null?void 0:I[0],offset:p,onError:o,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!I&&!E){w===0&&T.comma?o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):w<r.items.length-1&&o(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),T.comment&&(u.comment?u.comment+=`
|
|
687
|
+
`+T.comment:u.comment=T.comment),p=T.end;continue}!i&&n.options.strict&&mh(M)&&o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)T.comma&&o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(T.comma||o(T.start,"MISSING_CHAR",`Missing , between ${l} items`),T.comment){let L="";e:for(const O of k)switch(O.type){case"comma":case"space":break;case"comment":L=O.source.substring(1);break e;default:break e}if(L){let O=u.items[u.items.length-1];An(O)&&(O=(b=O.value)!=null?b:O.key),O.comment?O.comment+=`
|
|
688
|
+
`+L:O.comment=L,T.comment=T.comment.substring(L.length+1)}}if(!i&&!I&&!T.found){const L=E?e(n,E,T,o):t(n,T.end,I,null,T,o);u.items.push(L),p=L.range[2],Kw(E)&&o(L.range,"BLOCK_IN_FLOW",Gw)}else{const L=T.end,O=M?e(n,M,T,o):t(n,L,k,null,T,o);Kw(M)&&o(O.range,"BLOCK_IN_FLOW",Gw);const R=Td(I!=null?I:[],{flow:l,indicator:"map-value-ind",next:E,offset:O.range[2],onError:o,startOnNewline:!1});if(R.found){if(!i&&!T.found&&n.options.strict){if(I)for(const _ of I){if(_===R.found)break;if(_.type==="newline"){o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<R.found.offset-1024&&o(R.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 ${l}`):o(R.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const V=E?e(n,E,R,o):R.found?t(n,R.end,I,null,R,o):null;V?Kw(E)&&o(V.range,"BLOCK_IN_FLOW",Gw):R.comment&&(O.comment?O.comment+=`
|
|
689
|
+
`+R.comment:O.comment=R.comment);const j=new qr(O,V);if(n.options.keepSourceTokens&&(j.srcToken=S),i){const _=u;FB(n,_.items,O)&&o(L,"DUPLICATE_KEY","Map keys must be unique"),_.items.push(j)}else{const _=new Ho(n.schema);_.flow=!0,_.items.push(j),u.items.push(_)}p=V?V.range[2]:R.end}}const g=i?"}":"]",[v,...y]=r.end;let m=p;if(v&&v.source===g)m=v.offset+v.source.length;else{const w=l[0].toUpperCase()+l.substring(1),S=f?`${w} must end with a ${g}`:`${w} in block collection must be sufficiently indented and end with a ${g}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",S),v&&v.source.length!==1&&y.unshift(v)}if(y.length>0){const w=Wh(y,m,n.options.strict,o);w.comment&&(u.comment?u.comment+=`
|
|
690
|
+
`+w.comment:u.comment=w.comment),u.range=[r.offset,m,w.offset]}else u.range=[r.offset,m,m];return u}function qw(e,t,n,r,o,s){const i=n.type==="block-map"?oEe(e,t,n,r,s):n.type==="block-seq"?sEe(e,t,n,r,s):iEe(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function lEe(e,t,n,r,o){var p,g;const s=r?t.directives.tagName(r.source,v=>o(r,"TAG_RESOLVE_FAILED",v)):null,i=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Ho.tagName&&i==="map"||s===Pa.tagName&&i==="seq"||!i)return qw(e,t,n,o,s);let l=t.schema.tags.find(v=>v.tag===s&&v.collection===i);if(!l){const v=t.schema.knownTags[s];if(v&&v.collection===i)t.schema.tags.push(Object.assign({},v,{default:!1})),l=v;else return v!=null&&v.collection?o(r,"BAD_COLLECTION_TYPE",`${v.tag} used for ${i} collection, but expects ${v.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),qw(e,t,n,o,s)}const a=qw(e,t,n,o,s,l),u=(g=(p=l.resolve)==null?void 0:p.call(l,a,v=>o(r,"TAG_RESOLVE_FAILED",v),t.options))!=null?g:a,f=tr(u)?u:new $t(u);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function NB(e,t,n){const r=e.offset,o=aEe(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const s=o.mode===">"?$t.BLOCK_FOLDED:$t.BLOCK_LITERAL,i=e.source?cEe(e.source):[];let l=i.length;for(let m=i.length-1;m>=0;--m){const C=i[m][1];if(C===""||C==="\r")l=m;else break}if(l===0){const m=o.chomp==="+"&&i.length>0?`
|
|
691
|
+
`.repeat(Math.max(1,i.length-1)):"";let C=r+o.length;return e.source&&(C+=e.source.length),{value:m,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,u=e.offset+o.length,f=0;for(let m=0;m<l;++m){const[C,b]=i[m];if(b===""||b==="\r")o.indent===0&&C.length>a&&(a=C.length);else{if(C.length<a){const w="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+C.length,"MISSING_CHAR",w)}o.indent===0&&(a=C.length),f=m;break}u+=C.length+b.length+1}for(let m=i.length-1;m>=l;--m)i[m][0].length>a&&(l=m+1);let p="",g="",v=!1;for(let m=0;m<f;++m)p+=i[m][0].slice(a)+`
|
|
692
|
+
`;for(let m=f;m<l;++m){let[C,b]=i[m];u+=C.length+b.length+1;const w=b[b.length-1]==="\r";if(w&&(b=b.slice(0,-1)),b&&C.length<a){const k=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(u-b.length-(w?2:1),"BAD_INDENT",k),C=""}s===$t.BLOCK_LITERAL?(p+=g+C.slice(a)+b,g=`
|
|
693
|
+
`):C.length>a||b[0]===" "?(g===" "?g=`
|
|
694
|
+
`:!v&&g===`
|
|
695
|
+
`&&(g=`
|
|
696
|
+
|
|
697
|
+
`),p+=g+C.slice(a)+b,g=`
|
|
698
|
+
`,v=!0):b===""?g===`
|
|
699
|
+
`?p+=`
|
|
700
|
+
`:g=`
|
|
701
|
+
`:(p+=g+b,g=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let m=l;m<i.length;++m)p+=`
|
|
702
|
+
`+i[m][0].slice(a);p[p.length-1]!==`
|
|
703
|
+
`&&(p+=`
|
|
704
|
+
`);break;default:p+=`
|
|
705
|
+
`}const y=r+o.length+e.source.length;return{value:p,type:s,comment:o.comment,range:[r,y,y]}}function aEe({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],s=o[0];let i=0,l="",a=-1;for(let g=1;g<o.length;++g){const v=o[g];if(!l&&(v==="-"||v==="+"))l=v;else{const y=Number(v);!i&&y?i=y:a===-1&&(a=e+g)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,f="",p=o.length;for(let g=1;g<t.length;++g){const v=t[g];switch(v.type){case"space":u=!0;case"newline":p+=v.source.length;break;case"comment":n&&!u&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=v.source.length,f=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),p+=v.source.length;break;default:{const y=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",y);const m=v.source;m&&typeof m=="string"&&(p+=m.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function cEe(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let i=1;i<t.length;i+=2)s.push([t[i],t[i+1]]);return s}function BB(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const u=(g,v,y)=>n(r+g,v,y);switch(o){case"scalar":l=$t.PLAIN,a=uEe(s,u);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=dEe(s,u);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=fEe(s,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const f=r+s.length,p=Wh(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function uEe(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}`),zB(e)}function dEe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),zB(e.slice(1,-1)).replace(/''/g,"'")}function zB(e){var a;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
706
|
+
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
707
|
+
`,"sy")}catch(u){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],s=" ",i=t.lastIndex;for(n.lastIndex=i;r=n.exec(e);)r[1]===""?s===`
|
|
708
|
+
`?o+=s:s=`
|
|
709
|
+
`:(o+=s+r[1],s=" "),i=n.lastIndex;const l=new RegExp("[ \\t]*(.*)","sy");return l.lastIndex=i,r=l.exec(e),o+s+((a=r==null?void 0:r[1])!=null?a:"")}function fEe(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
|
|
710
|
+
`))if(o===`
|
|
711
|
+
`){const{fold:s,offset:i}=pEe(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=hEe[s];if(i)n+=i;else if(s===`
|
|
712
|
+
`)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
|
|
713
|
+
`)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=mEe(e,r+1,l,t),r+=l}else{const l=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const s=r;let i=e[r+1];for(;i===" "||i===" ";)i=e[++r+1];i!==`
|
|
714
|
+
`&&!(i==="\r"&&e[r+2]===`
|
|
715
|
+
`)&&(n+=r>s?e.slice(s,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function pEe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
716
|
+
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
717
|
+
`);)r===`
|
|
718
|
+
`&&(n+=`
|
|
719
|
+
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const hEe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
720
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function mEe(e,t,n,r){const o=e.substr(t,n),i=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){const l=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(i)}function VB(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?NB(t,e.options.strict,r):BB(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,u=n&&a?gEe(e.schema,o,a,n,r):t.type==="scalar"?vEe(e,o,t,r):e.schema[yl];let f;try{const p=u.resolve(o,g=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",g),e.options);f=Sn(p)?p:new $t(p)}catch(p){const g=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",g),f=new $t(o)}return f.range=l,f.source=o,s&&(f.type=s),a&&(f.tag=a),u.format&&(f.format=u.format),i&&(f.comment=i),f}function gEe(e,t,n,r,o){var l;if(n==="!")return e[yl];const s=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(const a of s)if((l=a.test)!=null&&l.test(t))return a;const i=e.knownTags[n];return i&&!i.collection?(e.tags.push(Object.assign({},i,{default:!1,test:void 0})),i):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[yl])}function vEe({directives:e,schema:t},n,r,o){var i;const s=t.tags.find(l=>{var a;return l.default&&((a=l.test)==null?void 0:a.test(n))})||t[yl];if(t.compat){const l=(i=t.compat.find(a=>{var u;return a.default&&((u=a.test)==null?void 0:u.test(n))}))!=null?i:t[yl];if(s.tag!==l.tag){const a=e.tagString(s.tag),u=e.tagString(l.tag),f=`Value may be parsed as either ${a} or ${u}`;o(r,"TAG_RESOLVE_FAILED",f,!0)}}return s}function yEe(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 bEe={composeNode:jB,composeEmptyNode:uE};function jB(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,u=!0;switch(t.type){case"alias":a=wEe(e,t,r),(i||l)&&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":a=VB(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=lEe(bEe,e,t,l,r),i&&(a.anchor=i.source.substring(1));break;default:{const f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",f),a=uE(e,t.offset,void 0,null,n,r),u=!1}}return i&&a.anchor===""&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(a.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?a.comment=s:a.commentBefore=s),e.options.keepSourceTokens&&u&&(a.srcToken=t),a}function uE(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},u){const f={type:"scalar",offset:yEe(t,n,r),indent:-1,source:""},p=VB(e,f,l,u);return i&&(p.anchor=i.source.substring(1),p.anchor===""&&u(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=a),p}function wEe({options:e},{offset:t,source:n,end:r},o){const s=new f0(n.substring(1));s.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=t+n.length,l=Wh(r,i,e.strict,o);return s.range=[t,i,l.offset],l.comment&&(s.comment=l.comment),s}function CEe(e,t,{offset:n,start:r,value:o,end:s},i){const l=Object.assign({_directives:t},e),a=new of(void 0,l),u={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Td(r,{indicator:"doc-start",next:o!=null?o:s==null?void 0:s[0],offset:n,onError:i,startOnNewline:!0});f.found&&(a.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!f.hasNewline&&i(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=o?jB(u,o,f,i):uE(u,f.end,r,null,f,i);const p=a.contents.range[2],g=Wh(s,p,!1,i);return g.comment&&(a.comment=g.comment),a.range=[n,p,g.offset],a}function jf(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 rD(e){var o;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?`
|
|
721
|
+
|
|
722
|
+
`:`
|
|
723
|
+
`)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[s+1])==null?void 0:o[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class dE{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=jf(n);s?this.warnings.push(new LB(i,r,o)):this.errors.push(new oc(i,r,o))},this.directives=new oo({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=rD(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
724
|
+
${r}`:r;else if(o||t.directives.docStart||!s)t.commentBefore=r;else if(Bn(s)&&!s.flow&&s.items.length>0){let i=s.items[0];An(i)&&(i=i.key);const l=i.commentBefore;i.commentBefore=l?`${r}
|
|
725
|
+
${l}`:r}else{const i=s.commentBefore;s.commentBefore=i?`${r}
|
|
726
|
+
${i}`: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:rD(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*Ae(this.next(o));yield*Ae(this.end(n,r))}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const s=jf(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=CEe(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 oc(jf(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 oc(jf(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Wh(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}
|
|
727
|
+
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new oc(jf(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 of(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 xEe(e,t=!0,n){if(e){const r=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(l,s,i);else throw new oc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return BB(e,t,r);case"block-scalar":return NB(e,t,r)}}return null}function SEe(e,t){var u;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,l=Hh({type:i,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),a=(u=t.end)!=null?u:[{type:"newline",offset:-1,indent:r,source:`
|
|
728
|
+
`}];switch(l[0]){case"|":case">":{const f=l.indexOf(`
|
|
729
|
+
`),p=l.substring(0,f),g=l.substring(f+1)+`
|
|
730
|
+
`,v=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return HB(v,a)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
731
|
+
`}),{type:"block-scalar",offset:s,indent:r,props:v,source:g}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function PEe(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=n,l="indent"in e?e.indent:null;if(r&&typeof l=="number"&&(l+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const a=Hh({type:i,value:t},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":kEe(e,a);break;case'"':Yw(e,a,"double-quoted-scalar");break;case"'":Yw(e,a,"single-quoted-scalar");break;default:Yw(e,a,"scalar")}}function kEe(e,t){const n=t.indexOf(`
|
|
732
|
+
`),r=t.substring(0,n),o=t.substring(n+1)+`
|
|
733
|
+
`;if(e.type==="block-scalar"){const s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,e.source=o}else{const{offset:s}=e,i="indent"in e?e.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:i,source:r}];HB(l,"end"in e?e.end:void 0)||l.push({type:"newline",offset:-1,indent:i,source:`
|
|
734
|
+
`});for(const a of Object.keys(e))a!=="type"&&a!=="offset"&&delete e[a];Object.assign(e,{type:"block-scalar",indent:i,props:l,source:o})}}function HB(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 Yw(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 s of r)s.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:`
|
|
735
|
+
`};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(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const IEe=e=>"type"in e?ay(e):Kg(e);function ay(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=ay(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Kg(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Kg(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Kg(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 Kg({start:e,key:t,sep:n,value:r}){let o="";for(const s of e)o+=s.source;if(t&&(o+=ay(t)),n)for(const s of n)o+=s.source;return r&&(o+=ay(r)),o}const rS=Symbol("break visit"),EEe=Symbol("skip children"),UB=Symbol("remove item");function Rc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),WB(Object.freeze([]),e,t)}Rc.BREAK=rS;Rc.SKIP=EEe;Rc.REMOVE=UB;Rc.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[o];else return}return n};Rc.parentCollection=(e,t)=>{const n=Rc.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 WB(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=WB(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===rS)return rS;l===UB&&(s.items.splice(i,1),i-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const S0="\uFEFF",P0="",k0="",gh="",MEe=e=>!!e&&"items"in e,TEe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function _Ee(e){switch(e){case S0:return"<BOM>";case P0:return"<DOC>";case k0:return"<FLOW_END>";case gh:return"<SCALAR>";default:return JSON.stringify(e)}}function GB(e){switch(e){case S0:return"byte-order-mark";case P0:return"doc-mode";case k0:return"flow-error-end";case gh:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
736
|
+
`:case`\r
|
|
737
|
+
`: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 $Ee=Object.freeze(Object.defineProperty({__proto__:null,BOM:S0,DOCUMENT:P0,FLOW_END:k0,SCALAR:gh,createScalarToken:SEe,isCollection:MEe,isScalar:TEe,prettyToken:_Ee,resolveAsScalar:xEe,setScalarValue:PEe,stringify:IEe,tokenType:GB,visit:Rc},Symbol.toStringTag,{value:"Module"}));function vs(e){switch(e){case void 0:case" ":case`
|
|
738
|
+
`:case"\r":case" ":return!0;default:return!1}}const oD="0123456789ABCDEFabcdef".split(""),REe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Qw=",[]{}".split(""),OEe=` ,[]{}
|
|
739
|
+
\r `.split(""),Xw=e=>!e||OEe.includes(e);class KB{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*Ae(this.parseNext(r))}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
740
|
+
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
741
|
+
`:!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===`
|
|
742
|
+
`||!o&&!this.atEnd)return t+r+1}return n===`
|
|
743
|
+
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&vs(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(`
|
|
744
|
+
`,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*Ae(this.parseStream());case"line-start":return yield*Ae(this.parseLineStart());case"block-start":return yield*Ae(this.parseBlockStart());case"doc":return yield*Ae(this.parseDocument());case"flow":return yield*Ae(this.parseFlowCollection());case"quoted-scalar":return yield*Ae(this.parseQuotedScalar());case"block-scalar":return yield*Ae(this.parseBlockScalar());case"plain-scalar":return yield*Ae(this.parsePlainScalar())}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===S0&&(yield*Ae(this.pushCount(1)),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const s=t[r-1];(s===" "||s===" ")&&(n=r-1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const o=(yield*Ae(this.pushCount(n)))+(yield*Ae(this.pushSpaces(!0)));return yield*Ae(this.pushCount(t.length-o)),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*Ae(this.pushSpaces(!0));return yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),"stream"}return yield P0,yield*Ae(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==="---"&&vs(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&vs(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!vs(this.charAt(1))&&(this.indentNext=this.indentValue),yield*Ae(this.parseBlockStart())}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&vs(n)){const r=(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*Ae(this.parseBlockStart())}return"doc"}*parseDocument(){yield*Ae(this.pushSpaces(!0));const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*Ae(this.pushIndicators());switch(t[n]){case"#":yield*Ae(this.pushCount(t.length-n));case void 0:return yield*Ae(this.pushNewline()),yield*Ae(this.parseLineStart());case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),"doc";case"*":return yield*Ae(this.pushUntil(Xw)),"doc";case'"':case"'":return yield*Ae(this.parseQuotedScalar());case"|":case">":return n+=yield*Ae(this.parseBlockScalarHeader()),n+=yield*Ae(this.pushSpaces(!0)),yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),yield*Ae(this.parseBlockScalar());default:return yield*Ae(this.parsePlainScalar())}}*parseFlowCollection(){let t,n,r=-1;do t=yield*Ae(this.pushNewline()),t>0?(n=yield*Ae(this.pushSpaces(!1)),this.indentValue=r=n):n=0,n+=yield*Ae(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("..."))&&vs(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield k0,yield*Ae(this.parseLineStart());let s=0;for(;o[s]===",";)s+=yield*Ae(this.pushCount(1)),s+=yield*Ae(this.pushSpaces(!0)),this.flowKey=!1;switch(s+=yield*Ae(this.pushIndicators()),o[s]){case void 0:return"flow";case"#":return yield*Ae(this.pushCount(o.length-s)),"flow";case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*Ae(this.pushUntil(Xw)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||vs(i)||i===",")return this.flowKey=!1,yield*Ae(this.pushCount(1)),yield*Ae(this.pushSpaces(!0)),"flow"}default:return this.flowKey=!1,yield*Ae(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 s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
|
|
745
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=r.indexOf(`
|
|
746
|
+
`,s)}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*Ae(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*Ae(this.pushUntil(n=>vs(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`
|
|
747
|
+
`:t=o,n=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
|
|
748
|
+
`)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(`
|
|
749
|
+
`,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,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const i=o;for(;s===" "||s===" ";)s=this.buffer[--o];if(s===`
|
|
750
|
+
`&&o>=this.pos&&o+1+n>i)t=o;else break}while(!0);return yield gh,yield*Ae(this.pushToIndex(t+1,!0)),yield*Ae(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 s=this.buffer[r+1];if(vs(s)||t&&s===",")break;n=r}else if(vs(o)){let s=this.buffer[r+1];if(o==="\r"&&(s===`
|
|
751
|
+
`?(r+=1,o=`
|
|
752
|
+
`,s=this.buffer[r+1]):n=r),s==="#"||t&&Qw.includes(s))break;if(o===`
|
|
753
|
+
`){const i=this.continueScalar(r+1);if(i===-1)break;r=Math.max(r,i-2)}}else{if(t&&Qw.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield gh,yield*Ae(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*Ae(this.pushTag()))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"&":return(yield*Ae(this.pushUntil(Xw)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(vs(n)||t&&Qw.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()))}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!vs(n)&&n!==">";)n=this.buffer[++t];return yield*Ae(this.pushToIndex(n===">"?t+1:t,!1))}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(REe.includes(n))n=this.buffer[++t];else if(n==="%"&&oD.includes(this.buffer[t+1])&&oD.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*Ae(this.pushToIndex(t,!1))}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
754
|
+
`?yield*Ae(this.pushCount(1)):t==="\r"&&this.charAt(1)===`
|
|
755
|
+
`?yield*Ae(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*Ae(this.pushToIndex(n,!1))}}class qB{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}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 Ks(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function sD(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 YB(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 gg(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 vu(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 iD(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ks(t.start,"explicit-key-ind")&&!Ks(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,YB(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 fE=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 KB,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*Ae(this.next(r));n||(yield*Ae(this.end()))}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*Ae(this.step()),this.offset+=t.length;return}const n=GB(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*Ae(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*Ae(this.pop({type:"error",offset:this.offset,message:r,source:t})),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*Ae(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*Ae(this.pop());this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*Ae(this.stream());switch(t.type){case"document":return yield*Ae(this.document(t));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*Ae(this.scalar(t));case"block-scalar":return yield*Ae(this.blockScalar(t));case"block-map":return yield*Ae(this.blockMap(t));case"block-seq":return yield*Ae(this.blockSequence(t));case"flow-collection":return yield*Ae(this.flowCollection(t));case"doc-end":return yield*Ae(this.documentEnd(t))}yield*Ae(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"&&iD(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=!Ks(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*Ae(this.pop()),yield*Ae(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&&sD(o.start)===-1&&(n.indent===0||o.start.every(s=>s.type!=="comment"||s.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*Ae(this.lineEnd(t));switch(this.type){case"doc-start":{sD(t.start)!==-1?(yield*Ae(this.pop()),yield*Ae(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=gg(this.peek(2)),r=vu(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const s={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]=s}else yield*Ae(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(`
|
|
756
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
757
|
+
`,n)+1}yield*Ae(this.pop());break;default:yield*Ae(this.pop()),yield*Ae(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,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.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],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.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 s=[];if(o&&n.sep&&!n.value){const i=[];for(let l=0;l<n.sep.length;++l){const a=n.sep[l];switch(a.type){case"newline":i.push(l);break;case"space":break;case"comment":a.indent>t.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=n.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!Ks(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),t.items.push({start:s})):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(Ks(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ks(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(YB(n.key)&&!Ks(n.sep,"newline")){const i=vu(n.start),l=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:l,sep:a}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(Ks(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=vu(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Ks(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 i=this.flowScalar(this.type);o||n.value?(t.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{const i=this.startBlockValue(t);if(i){o&&i.type!=="block-seq"&&Ks(n.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(i);return}}}}yield*Ae(this.pop()),yield*Ae(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,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.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],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.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||Ks(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*Ae(this.pop()),yield*Ae(this.step())}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*Ae(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*Ae(this.pop()),yield*Ae(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*Ae(this.pop()),yield*Ae(this.step());else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=gg(r),s=vu(o);iD(t);const i=t.end.splice(1,t.end.length);i.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*Ae(this.lineEnd(t))}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
758
|
+
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
759
|
+
`,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=gg(t),r=vu(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=gg(t),r=vu(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*Ae(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*Ae(this.pop()),yield*Ae(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*Ae(this.pop()))}}};function QB(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new qB||null,prettyErrors:t}}function DEe(e,t={}){const{lineCounter:n,prettyErrors:r}=QB(t),o=new fE(n==null?void 0:n.addNewLine),s=new dE(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(ly(e,n)),l.warnings.forEach(ly(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function XB(e,t={}){const{lineCounter:n,prettyErrors:r}=QB(t),o=new fE(n==null?void 0:n.addNewLine),s=new dE(t);let i=null;for(const l of s.compose(o.parse(e),!0,e.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new oc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(ly(e,n)),i.warnings.forEach(ly(e,n))),i}function AEe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=XB(e,n);if(!o)return null;if(o.warnings.forEach(s=>yB(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function LEe(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 s=Math.round(n);n=s<1?void 0:s>8?{indent:8}:{indent:s}}if(e===void 0){const{keepUndefined:s}=(o=n!=null?n:t)!=null?o:{};if(!s)return}return new of(e,r,n).toString(n)}const lD=Object.freeze(Object.defineProperty({__proto__:null,Alias:f0,CST:$Ee,Composer:dE,Document:of,Lexer:KB,LineCounter:qB,Pair:qr,Parser:fE,Scalar:$t,Schema:x0,YAMLError:cE,YAMLMap:Ho,YAMLParseError:oc,YAMLSeq:Pa,YAMLWarning:LB,isAlias:jc,isCollection:Bn,isDocument:Jd,isMap:ef,isNode:tr,isPair:An,isScalar:Sn,isSeq:tf,parse:AEe,parseAllDocuments:DEe,parseDocument:XB,stringify:LEe,visit:Sa,visitAsync:d0},Symbol.toStringTag,{value:"Module"}));var pE={},FEe=et;Object.defineProperty(pE,"__esModule",{value:!0});var hE=pE.default=void 0,NEe=FEe(tt()),BEe=Ze(),zEe=(0,NEe.default)((0,BEe.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");hE=pE.default=zEe;var mE={},VEe=et;Object.defineProperty(mE,"__esModule",{value:!0});var ZB=mE.default=void 0,jEe=VEe(tt()),HEe=Ze(),UEe=(0,jEe.default)((0,HEe.jsx)("path",{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}),"ContentCut");ZB=mE.default=UEe;var gE={},WEe=et;Object.defineProperty(gE,"__esModule",{value:!0});var oS=gE.default=void 0,GEe=WEe(tt()),KEe=Ze(),qEe=(0,GEe.default)((0,KEe.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"}),"ContentPaste");oS=gE.default=qEe;const YEe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function QEe({file:e,anyMask:t,addToBar:n,statusApi:r}){var A,F,D;const _=e,{parent:o,children:s,isRoot:i,byMasks:l}=_,a=Ft(_,["parent","children","isRoot","byMasks"]),[u,f]=c.useState(a);c.useEffect(()=>{f(Object.assign(Rb(Ew,()=>null),a))},[e]);const p=c.useMemo(()=>{let N=e.parent;for(;N;){if(N.default!=null)return N.default;N=N.parent}},[e]),{source:g}=e,v=e.type==="folder",y=u.url!==void 0,m=g!==void 0,C=m&&v,b=Ko("lg"),w=!y&&(b||m),S=!y&&b||m&&!C,k=e.accept>""||v&&((F=e.can_upload)!=null?F:(A=e.inherited)==null?void 0:A.can_upload),M=v,I=_k(),{movingFile:E}=Vi(),{data:T,element:L}=Yn("get_accounts");if(L||!T)return L;const O=T.list,R=!m&&"Works only on folders with source! ",V={can_read:!y,can_see:!0,can_archive:!y,can_list:v,can_upload:v&&m,can_delete:v&&m};return c.createElement(Bc,{values:u,set(N,H){f(K=>{var Q;const Z=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?YN(N):K.name;return ht(Se({},K),{name:Z,[H]:N})})},barSx:Se({gap:2,width:"100%"},I),stickyBar:!0,addToBar:[c.createElement(mn,{icon:ZB,disabled:i||E===e.id,title:"You can also use drag & drop to move items",onClick(){ln.movingFile=e.id,kt(c.createElement(ze,{},"Now that this is marked for moving, click on the destination folder, and then the paste button ",c.createElement(oS)),"info")}}),E&&c.createElement(mn,{icon:oS,disabled:e.type!=="folder"||e.id.startsWith(E)||e.id===E.replace(/[^/]+\/?$/,""),title:E,onClick(){return ln.movingFile="",rz(E,e.id)}}),!i&&c.createElement(mn,{icon:xl,title:"Delete",confirm:"Delete?",onClick:()=>at("del_vfs",{uris:[e.id]}).then(()=>ka())}),...Ob(n)],onError:kt,save:{sx:Ud(!Nv(u,a)),onClick(){return rt(this,null,function*(){const N=ot.omit(u,["ctime","mtime","size","id"]);N.masks||(N.masks=null),yield at("set_vfs",{uri:u.id,props:N}),N.name!==e.name&&(ln.selectedFiles[0].id=e.parent.id+N.name+(v?"/":"")),ka()})}},fields:[v&&m&&c.createElement(Pr,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),i?c.createElement(Pr,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,xl:!0,helperText:m&&"You can decide a name that's different from the one on your disk"},y?{k:"url",label:"URL",lg:12,required:!0}:{k:"source",label:"Load content from disk",xl:!0,comp:Ip,files:!v,folders:v,placeholder:"no",helperText:u.source?"Content from this path will be listed, but you can also add more":"This field is empty, and thus this element is a virtual-folder. You can set this field, pointing at any folder/file on disk."},!y&&{k:"id",comp:XEe,statusApi:r,xs:12},j("can_read","Who can see but not download will be asked to login"),j("can_see","If you can't see, you may still download with a direct link"),j("can_archive","Should this be included when user downloads as ZIP",{lg:v?!0:12}),j("can_list","Permission to see content of folders",{contentText:"subfolders"}),j("can_delete",[R,"Those who can delete can also rename"]),j("can_upload",R,{contentText:"subfolders"}),S&&{k:"size",comp:xp,lg:4,toField:vl},w&&{k:"ctime",comp:xp,md:6,lg:S&&4,label:"Created",toField:Cx},w&&{k:"mtime",comp:xp,md:6,lg:S&&4,label:"Modified",toField:Cx},k&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:M?4:12,helperText:c.createElement(As,{href:YEe,target:"_blank"},"Example: .zip")},M&&{k:"default",comp:Wn,xl:!0,label:"Serve as website if index.html is found"+(p&&u.default==null?" (inherited)":""),value:(D=u.default)!=null?D:p,toField:Boolean,fromField:N=>N&&!p?"index.html":N?null:!1,helperText:sr("...instead of showing list of files")},v&&{k:"masks",multiline:!0,toField:lD.stringify,fromField:N=>N?lD.parse(N):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",Mc("Permissions","(examples)")]}]});function j(N,H,K={}){var Q,X;if(!V[N])return null;const Y=[N,...Nc(ot.map(V,(J,ne)=>!J&&ne))],Z=ot.difference(Object.keys(Ew),Y);return Se({comp:JB,k:N,lg:6,xl:4,parent:o,accounts:O,helperText:H,isDir:v,showInherited:t,otherPerms:Z.map(J=>({value:J,label:"As "+sS(J)})),label:"Who can "+sS(N),inherit:(X=(Q=e.inherited)==null?void 0:Q[N])!=null?X:Ew[N],byMasks:l==null?void 0:l[N],fromField:J=>J!=null?J:null},K)}}function sS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function JB(m){var C=m,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,showInherited:i,otherPerms:l,byMasks:a,hideValues:u,isChildren:f,isDir:p,contentText:g="folder content",setApi:v}=C,y=Ft(C,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const b=(a!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+aD(a!=null?a:r),w=hue(e),S=w?e.this:e,k=c.useMemo(()=>Nc([{value:null,label:b},{value:!0},{value:!1},{value:"*"},...l,{value:[],label:"Select accounts"}].map(T=>!(u!=null&&u.includes(T.value))&&(T.value===S||i||T.value!==r)&&Se({label:ot.capitalize(aD(T.value))},T))),[r,n,S]),M=500,I=Array.isArray(S);return c.createElement(ze,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${M}ms`}},c.createElement(Wr,ht(Se({},y),{value:I?[]:S!=null?S:null,onChange(T,{event:L}){t(w?E(ht(Se({},e),{this:T!=null?T:void 0})):T!=null?T:void 0,{was:e,event:L})},options:k})),c.createElement(Tv,{in:I,timeout:M},I&&c.createElement(Wb,{label:o!=null&&o.length?"Accounts for "+y.label:"You didn't create any account yet",value:S,onChange:t,options:(o==null?void 0:o.map(T=>({value:T.username,label:T.username})))||[]})),c.createElement(Vd,{},s,!f&&p&&c.createElement(rl,{sx:{display:"block",mt:-.5},onClick(T){t(w?S:{this:S,children:S==null?!r:void 0},{was:e,event:T})}},w?"Different permission for ":"Same permission for ",g)),!f&&c.createElement(Tv,{in:w,timeout:M},c.createElement(JB,{label:"Permission for "+g,parent:n,inherit:r,accounts:o,showInherited:i,otherPerms:l,isDir:p,value:w&&(e==null?void 0:e.children),isChildren:!0,hideValues:[S!=null?S:r,S],onChange(T,{event:L}){w&&t(E(ht(Se({},e),{children:T})),{was:e,event:L})}})));function E(T){return T.this===T.children?T.this:T}}function aD(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+sS(e):"*UNKNOWN*"+JSON.stringify(e)}function XEe({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,s=(n==null?void 0:n.urls.https)||(n==null?void 0:n.urls.http),i=((n==null?void 0:n.baseUrl)||"")+e;return c.createElement(ze,{display:"flex"},s?c.createElement(xp,{label:"Link",value:i,error:o,end:c.createElement(ze,{},c.createElement(mn,{icon:hE,title:"Copy",onClick:()=>navigator.clipboard.writeText(i)}),c.createElement(mn,{icon:bI,title:"Change",onClick(){ez().then(r)}}))}):"error")}function ez(){return rt(this,null,function*(){return new Promise(e=>rt(this,null,function*(){const t=yield at("get_status"),{base_url:n}=yield at("get_config",{only:["base_url"]}),r=t.urls.https||t.urls.http,{close:o}=rs({title:"Base address",Content(){const[s,i]=c.useState(n||""),l=new URL(s||r[0]).protocol+"//",a=r.includes(s)?"":s.slice(l.length),u=c.createElement(Ck,{sx:{ml:2}});return c.createElement(ze,{display:"flex",flexDirection:"column"},c.createElement(ze,{mb:2},"Choose a base address for your links"),c.createElement(Hd,{},c.createElement(Sr,{selected:!s,onClick:()=>f("")},"Automatic",!s&&u),r.map(g=>c.createElement(Sr,{key:g,selected:g===s,onClick:()=>f(g)},g,g===s&&u))),c.createElement(zi,{label:"Custom IP or domain",helperText:sr(`You can type any address but *you* are responsible to make the address work.
|
|
760
|
+
This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:a,onChange:g=>f(pa(l,g)),start:c.createElement(Wr,{value:l,onChange:g=>a?f(g+a):er("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),c.createElement(ze,{mt:2,textAlign:"right"},c.createElement(Ts,{icon:Rh,children:"Save",onClick(){return rt(this,null,function*(){s!==n&&(yield at("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(g){g.endsWith("/")&&(g=g.slice(0,-1)),i(g)}}})}))})}let iS;function ZEe(){var S,k,M;const[e]=c.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=Vi(),{data:o,reload:s,element:i}=Yn("get_vfs");c.useMemo(()=>t||s(),[t,s]);const l=c.useMemo(()=>{let I=n[0];for(;I;)if(ot.isEmpty(I.masks))I=I.parent;else return!0},[n]),a="md",u=Ko(a),f=Yn("get_status"),{data:p}=f,g=c.useMemo(()=>{const I=p==null?void 0:p.baseUrl,E=(p==null?void 0:p.urls.https)||(p==null?void 0:p.urls.http);return I&&!E.includes(I)?[I,...E]:E},[p]);function v(){ln.selectedFiles=[]}const y=n.length?n.length===1?c.createElement(QEe,{addToBar:u&&[c.createElement(ze,{flex:1}),lS(n[0]),c.createElement(mn,{icon:$h,title:"Close",onClick:v})],anyMask:l,statusApi:f,file:n[0]}):c.createElement(c.Fragment,{},c.createElement(ao,{},c.createElement(Kn,{variant:"h6"},n.length+" selected"),c.createElement(qn,{onClick:JEe,startIcon:c.createElement(xl)},"Remove")),c.createElement(Mh,{dense:!0,disablePadding:!0},n.map(I=>c.createElement(UP,{key:I.id},c.createElement(Mi,{primary:I.name,secondary:I.source}))))):null,[m,C]=c.useState(()=>ot.noop);if(c.useEffect(()=>{var I;r===((I=n[0])==null?void 0:I.id)&&m()},[r,m]),c.useEffect(()=>{if(u||!y)return;const{close:I}=rs({title:n.length>1?"Multiple selection":c.createElement(ao,{},lS(n[0]),n[0].name||"Home"),Content:()=>y,onClose:v});return C(()=>I),I},[u,n]),c.useEffect(()=>{if(ln.vfs=void 0,!o)return;e.clear();const{root:I}=o;if(!I)return;I.isRoot=!0,T(I),ln.vfs=I;const E=iS||ln.selectedFiles.map(L=>L.id);iS=void 0,ln.selectedFiles=Nc(E.map(L=>e.get(L)));function T(L,O="/",R=void 0){if(L.parent=R,L.id=L.isRoot?"/":pa(O,encodeURIComponent(L.name),L.type==="folder"?"/":""),e.set(L.id,L),!!L.children)for(const V of L.children)T(V,L.id,L)}},[o,e]),i)return e.clear(),i;const w=!((k=(S=o==null?void 0:o.root)==null?void 0:S.children)!=null&&k.length)&&!((M=o==null?void 0:o.root)!=null&&M.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:g&&{severity:"info",children:["Your shared files can be browsed from ",Aue(" or ",g.slice(0,3).map(I=>c.createElement(As,{href:I},I)))]};return c.createElement(ti,{container:!0,rowSpacing:1,columnSpacing:2},w&&c.createElement(ti,{item:!0,mb:2,xs:12},c.createElement(Pr,w)),c.createElement(ti,{item:!0,[a]:6,lg:5,xl:4},c.createElement(Kn,{variant:"h6",mb:1},"Virtual File System"),c.createElement(Pr,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),c.createElement(IIe,{status:p}),t&&c.createElement(e2e,{id2node:e})),u&&y&&c.createElement(ti,{item:!0,[a]:!0,maxWidth:"100%"},c.createElement(Sb,{sx:{overflow:"initial"}},c.createElement(Pb,{},y))))}function ka(e){iS=e,ln.vfs=void 0}function JEe(){return rt(this,null,function*(){const e=ln.selectedFiles;if(e.length&&(yield dr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);ot.pull(t,"/");const{errors:n}=yield at("del_vfs",{uris:t}),r=t.filter((o,s)=>n[s]);if(r.length)return kt("Following elements couldn't be deleted: "+r.join(", "),"error");ka()}catch(t){yield kt(t)}})}const tz=X3,nz=J3;function e2e({id2node:e}){const{vfs:t,selectedFiles:n}=Vi(),[r,o]=c.useState(n.map(g=>g.id)),[s,i]=c.useState(Array.from(e.keys())),l=c.useRef(),a=c.useRef();if(!t)return null;const u="vfs";return c.createElement(K3,{ref:a,expanded:s,selected:r,multiSelect:!0,id:u,sx:{overflowX:"auto",maxWidth:a.current&&`calc(100vw - ${16+a.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px",paddingLeft:"15px"}},onNodeSelect(g,v){typeof v!="string"&&(o(v),ln.selectedFiles=Nc(v.map(y=>e.get(y))))}},p(t));function f(g){return g!==void 0&&g!==!0}function p(g){var w,S;let{id:v,name:y,isRoot:m}=g;if(!v)debugger;const C=g.type==="folder";return c.createElement(Yx,{ref(k){k==null||k.addEventListener("focusin",M=>M.stopImmediatePropagation())},label:c.createElement(ze,{draggable:!m,onDragStart(){l.current=v},onDragOver(k){if(!C)return;const M=l.current;M!=null&&M.startsWith(v)&&!M.slice(v.length+1).includes("/")||k.preventDefault()},onDrop(){return rt(this,null,function*(){const k=l.current;k&&(yield dr(`Moving ${k} under ${v}`))&&rz(k,v)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},c.createElement(ze,{display:"flex",flex:0},lS(g),c.createElement(ze,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},g.can_delete!==void 0&&ro(xl,"Delete permission"),g.can_upload!==void 0&&ro(Dh,"Upload permission"),!m&&!g.source&&!g.url&&ro(nB,"Virtual (no source)"),f(g.can_see)&&ro(eB,"Restrictions on who can see"),f(g.can_read)&&ro(qb,"Restrictions on who can download"),g.default&&ro(tB,"Act as website"),g.masks&&ro(Q3,"Masks"),g.size===-1&&ro(rB,"Source not found"))),m?"Home":(()=>{var E;const k=(E=g.parent)==null?void 0:E.source,{source:M}=g,I=k&&(M!=null&&M.startsWith(k))?"."+M.slice(k.length):M;return!I||!(M!=null&&M.endsWith(y))||I.length>45?c.createElement(ze,{lineHeight:"1.2em"},y):c.createElement("span",{},c.createElement("span",{style:{opacity:.4}},I.slice(0,-y.length)),I.slice(-y.length))})()),key:y,collapseIcon:c.createElement(Y3,{onClick(k){i(s.filter(M=>M!==v)),k.preventDefault(),k.stopPropagation()}}),expandIcon:c.createElement(q3,{onClick(k){i([...s,v]),k.preventDefault(),k.stopPropagation()}}),nodeId:v},m&&!((w=g.children)!=null&&w.length)?c.createElement(Yx,{nodeId:"?",label:c.createElement("i",{},"nothing here")}):(S=g.children)==null?void 0:S.map(p))}}function rz(e,t){at("move_vfs",{from:e,parent:t}).then(()=>{ka([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},kt)}function lS(e){return e.isRoot?ro(JP,"home, or root if you like"):e.type==="folder"?ro(tz,"Folder"):e.url?ro(Z3,"Web-link"):ro(nz,"File")}var cD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function t2e(e,t){return!!(e===t||cD(e)&&cD(t))}function n2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!t2e(e[n],t[n]))return!1;return!0}function Zw(e,t){t===void 0&&(t=n2e);var n,r=[],o,s=!1;function i(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return s&&n===this&&t(l,r)||(o=e.apply(this,l),s=!0,n=this,r=l),o}return i}var r2e=typeof performance=="object"&&typeof performance.now=="function",uD=r2e?function(){return performance.now()}:function(){return Date.now()};function dD(e){cancelAnimationFrame(e.id)}function o2e(e,t){var n=uD();function r(){uD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Jw=-1;function fD(e){if(e===void 0&&(e=!1),Jw===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Jw=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Jw}var yu=null;function pD(e){if(e===void 0&&(e=!1),yu===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?yu="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?yu="negative":yu="positive-ascending"),document.body.removeChild(t),yu}return yu}var s2e=150,i2e=function(t,n){return t};function l2e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,s=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,a=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(p){fb(g,p);function g(y){var m;return m=p.call(this,y)||this,m._instanceProps=a(m.props,ux(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:ux(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=Zw(function(C,b,w,S){return m.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:b,visibleStartIndex:w,visibleStopIndex:S})}),m._callOnScroll=void 0,m._callOnScroll=Zw(function(C,b,w){return m.props.onScroll({scrollDirection:C,scrollOffset:b,scrollUpdateWasRequested:w})}),m._getItemStyle=void 0,m._getItemStyle=function(C){var b=m.props,w=b.direction,S=b.itemSize,k=b.layout,M=m._getItemStyleCache(u&&S,u&&k,u&&w),I;if(M.hasOwnProperty(C))I=M[C];else{var E=n(m.props,C,m._instanceProps),T=o(m.props,C,m._instanceProps),L=w==="horizontal"||k==="horizontal",O=w==="rtl",R=L?E:0;M[C]=I={position:"absolute",left:O?void 0:R,right:O?R:void 0,top:L?0:E,height:L?"100%":T,width:L?T:"100%"}}return I},m._getItemStyleCache=void 0,m._getItemStyleCache=Zw(function(C,b,w){return{}}),m._onScrollHorizontal=function(C){var b=C.currentTarget,w=b.clientWidth,S=b.scrollLeft,k=b.scrollWidth;m.setState(function(M){if(M.scrollOffset===S)return null;var I=m.props.direction,E=S;if(I==="rtl")switch(pD()){case"negative":E=-S;break;case"positive-descending":E=k-w-S;break}return E=Math.max(0,Math.min(E,k-w)),{isScrolling:!0,scrollDirection:M.scrollOffset<S?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(C){var b=C.currentTarget,w=b.clientHeight,S=b.scrollHeight,k=b.scrollTop;m.setState(function(M){if(M.scrollOffset===k)return null;var I=Math.max(0,Math.min(k,S-w));return{isScrolling:!0,scrollDirection:M.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(C){var b=m.props.outerRef;m._outerRef=C,typeof b=="function"?b(C):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=C)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&dD(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=o2e(m._resetIsScrolling,s2e)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}g.getDerivedStateFromProps=function(m,C){return a2e(m,C),f(m),null};var v=g.prototype;return v.scrollTo=function(m){m=Math.max(0,m),this.setState(function(C){return C.scrollOffset===m?null:{scrollDirection:C.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(m,C){C===void 0&&(C="auto");var b=this.props,w=b.itemCount,S=b.layout,k=this.state.scrollOffset;m=Math.max(0,Math.min(m,w-1));var M=0;if(this._outerRef){var I=this._outerRef;S==="vertical"?M=I.scrollWidth>I.clientWidth?fD():0:M=I.scrollHeight>I.clientHeight?fD():0}this.scrollTo(s(this.props,m,C,k,this._instanceProps,M))},v.componentDidMount=function(){var m=this.props,C=m.direction,b=m.initialScrollOffset,w=m.layout;if(typeof b=="number"&&this._outerRef!=null){var S=this._outerRef;C==="horizontal"||w==="horizontal"?S.scrollLeft=b:S.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var m=this.props,C=m.direction,b=m.layout,w=this.state,S=w.scrollOffset,k=w.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var M=this._outerRef;if(C==="horizontal"||b==="horizontal")if(C==="rtl")switch(pD()){case"negative":M.scrollLeft=-S;break;case"positive-ascending":M.scrollLeft=S;break;default:var I=M.clientWidth,E=M.scrollWidth;M.scrollLeft=E-I-S;break}else M.scrollLeft=S;else M.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&dD(this._resetIsScrollingTimeoutId)},v.render=function(){var m=this.props,C=m.children,b=m.className,w=m.direction,S=m.height,k=m.innerRef,M=m.innerElementType,I=m.innerTagName,E=m.itemCount,T=m.itemData,L=m.itemKey,O=L===void 0?i2e:L,R=m.layout,V=m.outerElementType,j=m.outerTagName,_=m.style,A=m.useIsScrolling,F=m.width,z=this.state.isScrolling,D=w==="horizontal"||R==="horizontal",N=D?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Y=H[1],Z=[];if(E>0)for(var Q=K;Q<=Y;Q++)Z.push(c.createElement(C,{data:T,key:O(Q,T),index:Q,isScrolling:A?z:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return c.createElement(V||j||"div",{className:b,onScroll:N,ref:this._outerRefSetter,style:x({position:"relative",height:S,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},_)},c.createElement(M||I||"div",{children:Z,ref:k,style:{height:D?"100%":X,pointerEvents:z?"none":void 0,width:D?X:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var C=this._getRangeToRender(),b=C[0],w=C[1],S=C[2],k=C[3];this._callOnItemsRendered(b,w,S,k)}}if(typeof this.props.onScroll=="function"){var M=this.state,I=M.scrollDirection,E=M.scrollOffset,T=M.scrollUpdateWasRequested;this._callOnScroll(I,E,T)}},v._getRangeToRender=function(){var m=this.props,C=m.itemCount,b=m.overscanCount,w=this.state,S=w.isScrolling,k=w.scrollDirection,M=w.scrollOffset;if(C===0)return[0,0,0,0];var I=i(this.props,M,this._instanceProps),E=l(this.props,I,M,this._instanceProps),T=!S||k==="backward"?Math.max(1,b):1,L=!S||k==="forward"?Math.max(1,b):1;return[Math.max(0,I-T),Math.max(0,Math.min(C-1,E+L)),I,E]},g}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var a2e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},c2e=l2e({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,s,i){var l=t.direction,a=t.height,u=t.itemCount,f=t.itemSize,p=t.layout,g=t.width,v=l==="horizontal"||p==="horizontal",y=v?g:a,m=Math.max(0,u*f-y),C=Math.min(m,n*f),b=Math.max(0,n*f-y+f+i);switch(r==="smart"&&(o>=b-y&&o<=C+y?r="auto":r="center"),r){case"start":return C;case"end":return b;case"center":{var w=Math.round(b+(C-b)/2);return w<Math.ceil(y/2)?0:w>m+Math.floor(y/2)?m:w}case"auto":default:return o>=b&&o<=C?o:o<b?b:C}},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,s=t.height,i=t.itemCount,l=t.itemSize,a=t.layout,u=t.width,f=o==="horizontal"||a==="horizontal",p=n*l,g=f?u:s,v=Math.ceil((g+r-p)/l);return Math.max(0,Math.min(i-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function oz({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:s=""}){const[i,l]=c.useState(s),[a,u]=c.useState(!1),f=c.useRef(!1);c.useEffect(()=>{at("resolve_path",{path:s,closestFolder:!0}).then(_=>{typeof _.path=="string"&&(l(_.path),f.current=_.path[1]===":")}).finally(()=>u(!0))},[s]);const{list:p,error:g,connecting:v,reload:y}=xa(a&&"get_ls",{path:i,files:n,fileMask:o});c.useEffect(()=>{C([]),w("")},[i]);const[m,C]=c.useState([]),[b,w]=c.useState(""),S=c.useMemo(()=>ot.debounce(_=>w(_)),[]),k=c.useMemo(()=>{const _=new RegExp(ot.escapeRegExp(b),"i");return A=>_.test(A)},[b]),[M,I]=c.useState(0),E=c.useMemo(()=>p.filter(_=>k(_.n)),[p,k]),T=f.current?"":"/",L=f.current?"\\":"/",O=vue(L,i),R=i.length<2;return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",gap:1},c.createElement(qn,{title:"root",disabled:R,onClick(){l(T)}},c.createElement(z3)),c.createElement(qn,{disabled:R,title:"parent folder",onClick(){const _=/[\\/]$/.test(i)?i.slice(0,-1):i,A=Iue(_)?T:_.slice(0,_.lastIndexOf(L)||1);l(A)}},c.createElement(xI)),c.createElement(zi,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(_){return rt(this,null,function*(){if(!_)return l(T);const A=yield at("resolve_path",{path:_});if(A.isFolder===!1)return n?e([_]):l(_.slice(0,-YN(_)));l(A.path)})}})),g?c.createElement(Pr,{severity:"error"},T4(g)):c.createElement(c.Fragment,{},c.createElement(ze,{ref(_){if(!_)return;const A=(_==null?void 0:_.clientHeight)-1;A-M>1&&I(A)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?c.createElement(c2e,{width:"100%",height:M,itemSize:46,itemCount:E.length,overscanCount:5,children({index:_,style:A}){const F=E[_],z=F.k==="d";return c.createElement(Sr,{style:ht(Se({},A),{padding:0}),key:F.n,onClick(){z?l(O+F.n):e([O+F.n])}},t&&c.createElement(uN,{checked:m.includes(F.n),disabled:!r&&z,onClick(D){const N=F.n,H=m.filter(K=>K!==N);C(H.length<m.length?H:[...m,N]),D.stopPropagation()}}),c.createElement(cl,{},c.createElement(F.k?tz:nz)),c.createElement(Mi,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!z&&F.s!==void 0&&c.createElement(Kn,{variant:"body2",color:"text.secondary",ml:4,mr:1},vl(F.s)))}}):c.createElement(Oh,{flex:1,mt:"4em"},v?P4():"No elements in this folder")),c.createElement(ao,{alignItems:"stretch"},(t||r||!n)&&c.createElement(qn,{variant:"contained",disabled:!i||!r&&!m.length&&n,sx:{minWidth:"max-content"},onClick(){e(m.length?m.map(_=>O+_):[i])}},n&&(m.length||!r)?`Select (${m.length})`:"Select this folder"),c.createElement(Fc,{size:"small",value:b,label:`Filter results (${E.length}${E.length<p.length?"/"+p.length:""})`,onChange(_){S(_.target.value)},sx:{flex:1}}),c.createElement(mn,{icon:B3,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return rt(this,null,function*(){const _=yield $k("New folder name");if(!_)return!1;yield at("mkdir",{path:`${i}/${_}`}),y()})}}))))}function Ip(a){var u=a,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:s,title:i}=u,l=Ft(u,["value","onChange","files","folders","fileMask","defaultPath","title"]);const f=Ko("md");return c.createElement(zi,ht(Se({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
|
|
761
|
+
`)&&p,InputProps:{multiline:!0,endAdornment:c.createElement(gl,{position:"end"},c.createElement(mn,{icon:N3,title:"Browse files...",edge:"end",onClick(){const{close:p}=rs({title:i!=null?i:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!f,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return c.createElement(oz,{multiple:!1,folders:r,files:n,fileMask:o,from:e||s,onSelect(v){return rt(this,null,function*(){var C;let y=v==null?void 0:v[0];if(!y)return;const m=(C=yield at("get_cwd"))==null?void 0:C.path;y.startsWith(m)&&(y=y.slice(m.length+1)||"."),t(y,{was:e,event:"picker"}),p()})}})}})}}))}}))}var vE={},u2e=et;Object.defineProperty(vE,"__esModule",{value:!0});var qg=vE.default=void 0,d2e=u2e(tt()),f2e=Ze(),p2e=(0,d2e.default)((0,f2e.jsx)("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated");qg=vE.default=p2e;var yE={},h2e=et;Object.defineProperty(yE,"__esModule",{value:!0});var sz=yE.default=void 0,m2e=h2e(tt()),g2e=Ze(),v2e=(0,m2e.default)((0,g2e.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");sz=yE.default=v2e;var bE={},y2e=et;Object.defineProperty(bE,"__esModule",{value:!0});var iz=bE.default=void 0,b2e=y2e(tt()),w2e=Ze(),C2e=(0,b2e.default)((0,w2e.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");iz=bE.default=C2e;var wE={},x2e=et;Object.defineProperty(wE,"__esModule",{value:!0});var lz=wE.default=void 0,S2e=x2e(tt()),P2e=Ze(),k2e=(0,S2e.default)((0,P2e.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"}),"OpenInNew");lz=wE.default=k2e;function I2e(){var I,E,T,O;const e=" — ",{username:t}=Vi(),{data:n,reload:r,element:o}=Yn("get_status"),{data:s}=Yn("get_vfs"),{data:i}=Yn(t&&"get_account"),l=Yn("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:a}=xa("get_plugins"),[u,f]=c.useState(!1),{list:p}=xa(u&&"get_plugin_updates"),[g,v]=c.useState();if(o||!n)return o;const{http:y,https:m}=n,C=!(y!=null&&y.listening)&&(m!=null&&m.listening)?"s":"",b=C?m:(y==null?void 0:y.listening)&&y,w=b&&`http${C}://`+window.location.hostname+(b.port===(C?443:80)?"":":"+b.port),S=ot.pick(n,["http","https"]),k=Rb(S,R=>R.busy?[`port ${R.port} already used by ${R.busy}${e}choose a `,vg("different port"),` or stop ${R.busy}`]:R.error),M=k&&Nc(Object.entries(k).map(([R,V])=>V&&[sr(`Protocol <u>${R}</u> cannot work: `),V,(xE(V)||SE(V))&&[e,c.createElement(rl,{onClick(){uy().then(()=>_h(999)).then(l.reload).then(r)}},"make one")," or ",e,vg("provide adequate files")]]));return c.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&to("","Welcome "+t),M.length?th(M.map(R=>to("error",th(R)))):to("success","Server is working"),s?!((E=(I=s.root)==null?void 0:I.children)!=null&&E.length)&&!((T=s.root)!=null&&T.source)?to("warning","You have no files shared",e,M2e("add some")):to("",sr("This is Admin-panel, where you manage your server. Access your files on "),c.createElement(As,{target:"frontend",href:"../.."},"Front-end",c.createElement(iz,{sx:{verticalAlign:"sub",ml:".2em"}}))):c.createElement(Rv),!w&&to("warning","Frontend unreachable: ",ot.map(k,(R,V)=>V+" "+(R?"is in error":"is off")).join(", "),!M.length&&[e,vg("switch http or https on")]),a.find(R=>R.badApi)&&to("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&to("",sr("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",c.createElement(Kb,{to:"accounts"},sr("create an account with *admin* permission"))),aS(l,n)&&to("warning",aS(l,n),e,vg("set the number of proxies"),e,"unless you are sure and you can ",c.createElement(qn,{size:"small",onClick(){return rt(this,null,function*(){(yield dr("Go on only if you know what you are doing"))&&(yield at("set_config",{values:{ignore_proxies:!0}}))&&l.reload()})}},"ignore this warning"),e,Mc("Proxy-warning","Explanation")),(((O=l.data)==null?void 0:O.proxies)>0||(n==null?void 0:n.proxyDetected))&&to("",Mc("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&to("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',c.createElement("ol",{},c.createElement("li",{},"configure FRP with type=http (best solution)"),c.createElement("li",{},sr("configure FRP to connect to HFS <u>not</u> with 127.0.0.1 (safe, but you won't see users' IPs)")),c.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),to("",c.createElement(As,{target:"support",href:$b+"discussions"},"Get support")),p.length>0&&to("success","Updates available for plugin(s): "+p.map(R=>R.id).join(", ")),n.updatePossible==="local"?c.createElement(Ts,{icon:qg,onClick:()=>hD()},"Update from local file"):g?Ec(ot.find(g,"isNewer"),R=>!g.length||!n.updatePossible&&!R?to("","No update available"):R&&!n.updatePossible?to("success",`Version ${R.name} available`):c.createElement(ao,{vert:!0},g.map(V=>c.createElement(ao,{key:V.name,alignItems:"flex-start",flexWrap:"wrap"},c.createElement(Sb,{},c.createElement(Pb,{},c.createElement(Ts,ht(Se({icon:qg},!V.isNewer&&{color:"warning",variant:"outlined"}),{onClick:()=>hD(V.tag_name)}),pa("Install ",V.name,V.isNewer?"":" (older)")),c.createElement(ze,{mt:1},E2e(V.body)))))))):c.createElement(Ts,{variant:"outlined",icon:qg,onClick(){return f(!0),at("check_update").then(R=>v(R.options),kt)}},"Check for updates"))}function E2e(e){return sr(e,{onText:t});function t(n){return Tk(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>c.createElement(As,{href:$b+"issues/"+r[1],target:"_blank"},c.createElement(lz,{sx:{verticalAlign:"bottom"}})))}}function hD(e){return rt(this,null,function*(){if(!(yield dr("Installation may take less than a minute, depending on the speed of your server")))return;er("Downloading"),yield at("update",{tag:e}),er("Restarting");const t=Date.now();let n;for(;yield at("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>1e4&&(n=kt("This is taking too long, please check your server","warning")),yield _h(500);n==null||n.close(),_4(ln,"loginRequired",()=>ln.loginRequired=!1),yield kt("Procedure complete","success"),window.location.reload()})}function to(e,...t){return c.createElement(ze,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},c.createElement({success:sz,info:Vv,"":Vv,warning:Ub,error:Hb}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function M2e(e="File System page"){return c.createElement(Kb,{to:"fs"},e)}function vg(e="Options page"){return c.createElement(Kb,{to:"options"},e)}function aS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var az={},T2e=sn&&sn.__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 s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},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)}}(),wr=sn&&sn.__assign||function(){return wr=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},wr.apply(this,arguments)},_2e=sn&&sn.__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]}),$2e=sn&&sn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),R2e=sn&&sn.__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)&&_2e(t,e,n);return $2e(t,e),t},O2e=sn&&sn.__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(az,"__esModule",{value:!0});var Hf=R2e(c),D2e=13,A2e=9,L2e=8,F2e=89,yg=90,N2e=77,mD=57,gD=219,vD=222,yD=192,B2e=27,bD=100,z2e=3e3,V2e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),eC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Yg="npm__react-simple-code-editor__textarea",j2e=`
|
|
762
|
+
/**
|
|
763
|
+
* Reset the text fill color so that placeholder is visible
|
|
764
|
+
*/
|
|
765
|
+
.`.concat(Yg,`:empty {
|
|
766
|
+
-webkit-text-fill-color: inherit !important;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Hack to apply on some CSS on IE10 and IE11
|
|
771
|
+
*/
|
|
772
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
773
|
+
/**
|
|
774
|
+
* IE doesn't support '-webkit-text-fill-color'
|
|
775
|
+
* So we use 'color: transparent' to make the text transparent on IE
|
|
776
|
+
* Unlike other browsers, it doesn't affect caret color in IE
|
|
777
|
+
*/
|
|
778
|
+
.`).concat(Yg,` {
|
|
779
|
+
color: transparent !important;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.`).concat(Yg,`::selection {
|
|
783
|
+
background-color: #accef7 !important;
|
|
784
|
+
color: transparent !important;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
`),H2e=function(e){T2e(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,s=r.selectionStart,i=r.selectionEnd;n._recordChange({value:o,selectionStart:s,selectionEnd:i})}},n._getLines=function(r,o){return r.substring(0,o).split(`
|
|
788
|
+
`)},n._recordChange=function(r,o){var s,i,l;o===void 0&&(o=!1);var a=n._history,u=a.stack,f=a.offset;if(u.length&&f>-1){n._history.stack=u.slice(0,f+1);var p=n._history.stack.length;if(p>bD){var g=p-bD;n._history.stack=u.slice(g,p),n._history.offset=Math.max(n._history.offset-g,0)}}var v=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&v-y.timestamp<z2e){var m=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(y.value,y.selectionStart).pop())===null||s===void 0?void 0:s.match(m),b=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(m);if(C!=null&&C[1]&&(!((l=b==null?void 0:b[1])===null||l===void 0)&&l.startsWith(C[1]))){n._history.stack[n._history.offset]=wr(wr({},r),{timestamp:v});return}}}n._history.stack.push(wr(wr({},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,s=n._history.stack[n._history.offset];s&&o&&(n._history.stack[n._history.offset]=wr(wr({},s),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s-1];i&&(n._updateInput(i),n._history.offset=Math.max(s-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s+1];i&&(n._updateInput(i),n._history.offset=Math.min(s+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,s=o.tabSize,i=o.insertSpaces,l=o.ignoreTabKey,a=o.onKeyDown;if(!(a&&(a(r),r.defaultPrevented))){r.keyCode===B2e&&r.currentTarget.blur();var u=r.currentTarget,f=u.value,p=u.selectionStart,g=u.selectionEnd,v=(i?" ":" ").repeat(s);if(r.keyCode===A2e&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(f,p),m=y.length-1,C=n._getLines(f,g).length-1,b=f.split(`
|
|
789
|
+
`).map(function(V,j){return j>=m&&j<=C&&V.startsWith(v)?V.substring(v.length):V}).join(`
|
|
790
|
+
`);if(f!==b){var w=y[m];n._applyEdits({value:b,selectionStart:w!=null&&w.startsWith(v)?p-v.length:p,selectionEnd:g-(f.length-b.length)})}}else if(p!==g){var y=n._getLines(f,p),S=y.length-1,k=n._getLines(f,g).length-1,w=y[S];n._applyEdits({value:f.split(`
|
|
791
|
+
`).map(function(_,A){return A>=S&&A<=k?v+_:_}).join(`
|
|
792
|
+
`),selectionStart:w&&/\S/.test(w)?p+v.length:p,selectionEnd:g+v.length*(k-S+1)})}else{var M=p+v.length;n._applyEdits({value:f.substring(0,p)+v+f.substring(g),selectionStart:M,selectionEnd:M})}else if(r.keyCode===L2e){var I=p!==g,E=f.substring(0,p);if(E.endsWith(v)&&!I){r.preventDefault();var M=p-v.length;n._applyEdits({value:f.substring(0,p-v.length)+f.substring(g),selectionStart:M,selectionEnd:M})}}else if(r.keyCode===D2e){if(p===g){var T=n._getLines(f,p).pop(),L=T==null?void 0:T.match(/^\s+/);if(L!=null&&L[0]){r.preventDefault();var O=`
|
|
793
|
+
`+L[0],M=p+O.length;n._applyEdits({value:f.substring(0,p)+O+f.substring(g),selectionStart:M,selectionEnd:M})}}}else if(r.keyCode===mD||r.keyCode===gD||r.keyCode===vD||r.keyCode===yD){var R=void 0;r.keyCode===mD&&r.shiftKey?R=["(",")"]:r.keyCode===gD?r.shiftKey?R=["{","}"]:R=["[","]"]:r.keyCode===vD?r.shiftKey?R=['"','"']:R=["'","'"]:r.keyCode===yD&&!r.shiftKey&&(R=["`","`"]),p!==g&&R&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+R[0]+f.substring(p,g)+R[1]+f.substring(g),selectionStart:p,selectionEnd:g+2}))}else(eC?r.metaKey&&r.keyCode===yg:r.ctrlKey&&r.keyCode===yg)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(eC?r.metaKey&&r.keyCode===yg&&r.shiftKey:V2e?r.ctrlKey&&r.keyCode===F2e:r.ctrlKey&&r.keyCode===yg&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===N2e&&r.ctrlKey&&(!eC||r.shiftKey)&&(r.preventDefault(),n.setState(function(V){return{capture:!V.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,s=o.value,i=o.selectionStart,l=o.selectionEnd;n._recordChange({value:s,selectionStart:i,selectionEnd:l},!0),n.props.onValueChange(s)},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,s=r.style,i=r.padding,l=r.highlight,a=r.textareaId,u=r.textareaClassName,f=r.autoFocus,p=r.disabled,g=r.form,v=r.maxLength,y=r.minLength,m=r.name,C=r.placeholder,b=r.readOnly,w=r.required,S=r.onClick,k=r.onFocus,M=r.onBlur,I=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var E=r.preClassName,T=O2e(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"]),L={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},O=l(o);return Hf.createElement("div",wr({},T,{style:wr(wr({},Uf.container),s)}),Hf.createElement("pre",wr({className:E,"aria-hidden":"true",style:wr(wr(wr({},Uf.editor),Uf.highlight),L)},typeof O=="string"?{dangerouslySetInnerHTML:{__html:O+"<br />"}}:{children:O})),Hf.createElement("textarea",{ref:function(R){return n._input=R},style:wr(wr(wr({},Uf.editor),Uf.textarea),L),className:Yg+(u?" ".concat(u):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:I,onFocus:k,onBlur:M,disabled:p,form:g,maxLength:v,minLength:y,name:m,placeholder:C,readOnly:b,required:w,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Hf.createElement("style",{dangerouslySetInnerHTML:{__html:j2e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Hf.Component),U2e=az.default=H2e,Uf={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"}};const CE=c.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Ft(o,["style"]);return c.createElement(U2e,Se({highlight:Mue,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:Se({fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8883",borderBottom:"1px solid #bbb"},e)},t))});function W2e(s){var i=s,{onChange:e,value:t,onBlur:n,setApi:r}=i,o=Ft(i,["onChange","value","onBlur","setApi"]);const[l,a]=c.useState(t||"");return c.createElement(Fc,ht(Se({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:G2e},onChange(u){a(u.target.value)},onBlur(u){n==null||n(u),e(u.target.value,{was:t,event:u})}},o),{onKeyDown(u){var y;if((y=o.onKeyDown)==null||y.call(o,u),Ab(u)==="Enter")return e(l,{was:t,event:u});if(!u.altKey||u.key!=="Tab")return;u.preventDefault();const f=document.querySelectorAll(u4),p=ot.indexOf(f,u.target),g=f.length,v=(p+(u.shiftKey?-1:1)+g)%g;f[v].focus(),console.debug(f[v])}}))}const G2e=c.forwardRef((r,n)=>{var o=r,{onChange:e}=o,t=Ft(o,["onChange"]);return c.createElement(ze,{sx:{width:"100%",textarea:{outline:0}}},c.createElement(CE,ht(Se({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){Ab(s)==="Enter"&&s.preventDefault()}})))});let ga,cS;const cz=gk({changes:{}});vk(ln,e=>{e.some(t=>t[1][0]==="config")&&uz()});const cy={log:"Access",error_log:"Access error",console:"Console"},wD=zi;function K2e(){var y;const{data:e,reload:t,element:n}=Yn("get_config",{omit:["vfs"]}),r=Vi(),{changes:o}=yk(cz),s=Yn(e&&"get_status"),i=s.data,l=cS=s.reload;c.useEffect(()=>void l(),[e]),c.useEffect(()=>()=>cS=void 0,[]);const a=Ko("sm"),u=(y=Yn("get_admins").data)==null?void 0:y.list;if(n)return n;if(s.error)return s.element;const f=ga!==e?ln.config=ga=e:r.config,p={comp:Cs,min:1,unit:"KB/s",placeholder:"no limit",md:6},g=f.https_port>=0;return c.createElement(Bc,{sx:{maxWidth:"60em"},values:f,set(m,C){ln.config[C]=m},stickyBar:!0,onError:kt,save:{onClick:v,sx:Ud(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[c.createElement(qn,{onClick(){t(),l()},startIcon:c.createElement(Tb)},"Reload"),c.createElement(qn,{component:uP,to:"/edit",startIcon:c.createElement(mI)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:CD,sm:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:CD,sm:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(m){return m>=0&&!g&&!f.cert&&uy().then(),m}},i&&{k:"listen_interface",comp:Wr,sm:4,options:[{label:"any",value:""},"127.0.0.1","::1",...i==null?void 0:i.ips]},g&&f.port>=0&&{k:"force_https",comp:Wn,sm:12,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},g&&{k:"cert",comp:Ip,md:4,label:"HTTPS certificate file",helperText:Mc("HTTPS#certificate","What is this?"),error:Ec(i==null?void 0:i.https.error,m=>xE(m)&&(i.https.listening?m:[m," - ",c.createElement(rl,{key:"fix",onClick:uy},"make one")]))},g&&Se({k:"private_key",comp:Ip,md:4,label:"HTTPS private key file"},Ec(i==null?void 0:i.https.error,m=>SE(m)?{error:!0,helperText:m}:null)),{k:"favicon",comp:Ip,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:q2e},{k:"open_browser_at_start",comp:Wn,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Wn,label:"Unprotected admin on localhost",getError:m=>!m&&(u==null?void 0:u.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},ht(Se({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),ht(Se({k:"max_kbps_per_ip"},p),{label:"Limit output per-ip"}),{k:"log",label:cy.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:cy.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Wr,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:wD,label:"Don't log address",md:3,placeholder:"no exception",helperText:c.createElement(Qg)},{k:"log_gui",sm:3,comp:Wn,label:"Log interface loading"},{k:"log_api",sm:3,comp:Wn,label:"Log API requests"},{k:"proxies",comp:Cs,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:aS(f,i),helperText:"Wrong number will prevent detection of users' IP address"},{k:"dont_overwrite_uploading",comp:Wn,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Cs,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Cs,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"keep_session_alive",comp:Wn,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Cs,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Cs,sm:3,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"update_to_beta",comp:Wn,helperText:"Include betas searching updates"},{k:"admin_net",comp:wD,label:"Admin-panel accessible from",placeholder:"any address",helperText:c.createElement(c.Fragment,{},"IP address of browser machine. ",c.createElement(Qg))},{k:"descript_ion",comp:Wn,label:"Support file DESCRIPT.ION",helperText:"Old file format, used for comments"},{k:"descript_ion_encoding",label:"Encoding of file DESCRIPT.ION",comp:Wr,disabled:!f.descript_ion,options:["utf8",720,775,819,850,852,862,869,874,808,...ot.range(1250,1257),10029,20866,21866]},{k:"mime",comp:oy,label:!1,reorder:!0,prepend:!0,sm:12,fields:[{k:"k",label:"File mask",$width:1,$column:{renderCell:({value:m,id:C})=>c.createElement("code",{},m,m==="*"&&C<ot.size(f.mime)-1&&ro(Ub,sr("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",fromField:ot.toLower,$width:2}],toField:m=>Object.entries(m||{}).map(([C,b])=>({k:C,v:b})),fromField:m=>Object.fromEntries(m.map(C=>[C.k,C.v]))},{k:"block",label:!1,comp:oy,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:c.createElement(Qg)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:W2e,sm:12,getError:m=>wue(()=>new Function(m)&&null,C=>C.message),helperText:sr(`This code works similarly to [a plugin](${$b}blob/main/dev-plugins.md) (with some limitations)`)},c.createElement(Zp,{},"Front-end options",c.createElement(ze,{fontSize:"small"},"Following options affect only the front-end")),{k:"file_menu_on_link",comp:Wr,label:"Access file menu",sm:6,md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",md:8,helperText:"You can see this in the tab of your browser"},{k:"tile_size",comp:Cs,xs:6,sm:4,min:0,max:cue,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Wr,xs:6,sm:4,options:due},{k:"sort_by",comp:Wr,xs:6,sm:4,options:uue},{k:"invert_order",comp:Wn,xs:6,sm:4},{k:"folders_first",comp:Wn,xs:6,sm:4},{k:"sort_numerics",comp:Wn,xs:6,sm:4,label:"Sort numeric names"}]});function v(){return rt(this,null,function*(){var L,O;if(ot.isEmpty(o))return er("Nothing to save");const m=window.location,C=["port","https_port"];if(C.every(R=>o[R]!==void 0))return kt("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const b=[(L=i==null?void 0:i.http)==null?void 0:L.listening,(O=i==null?void 0:i.https)==null?void 0:O.listening],w=location.protocol==="https:";w&&(C.reverse(),b.reverse());const S=o[C[0]],k=f[C[1]],M=k>0&&b[1],I=w?"http":"https";if(S<0&&!M)return kt("You cannot switch off this port unless you have a working fixed port for "+I,"warning");if(S===0&&!M)return kt("You cannot randomize this port unless you have a working fixed port for "+I,"warning");if(S>0&&!(yield dr("You are changing the port and you may be disconnected")))return;const E="cert"in o||"private_key"in o;if(w&&E&&!(yield dr("You may disrupt https service, kicking you out")))return;if(yield at("set_config",{values:o}),S!==void 0||o.listen_interface&&!(m.hostname==="localhost"&&Eue(o.listen_interface))){yield kt("You are being redirected but in some cases this may fail. Hold on tight!","warning");const R=ZN(o.listen_interface||m.hostname);return window.location.href=S<=0?`${w?"http:":"https:"}//${R}:${k}${m.pathname}`:`${m.protocol}//${R}:${S||f[C[0]]}${m.pathname}`}const T="port"in o||"https_port"in o;setTimeout(l,T||E?1e3:0),Object.assign(ga,o),uz(),er("Changes applied","success")})}}function uz(){const e={};if(ln.config)for(const[t,n]of Object.entries(ln.config))JSON.stringify(n)!==JSON.stringify(ga==null?void 0:ga[t])&&(e[t]=n);cz.changes=e}function xE(e){return/certificate/.test(e)}function SE(e){return/private key/.test(e)}function CD({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:s=1,error:i,helperText:l}){const a=c.useRef(s);t>0&&(a.current=t);const u=Number(t>0?a.current:t)||0;let f=o==null?void 0:o.error;return f&&(xE(f)||SE(f)?f=void 0:i=!0),c.createElement(ze,{},c.createElement(ze,{display:"flex"},c.createElement(Wr,{sx:{flexGrow:1},label:e,error:i,value:u,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:a.current}],onChange:n}),t>0&&c.createElement(Cs,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:i,min:1,max:65535,helperText:l,sx:{minWidth:"5.5em"}})),o&&c.createElement(Vd,{error:i},o===!0?"...":f!=null?f:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function q2e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",s="example.com";return c.createElement(ze,{display:"flex"},c.createElement(Wr,{label:e,value:o?t:s,options:{"allow all":"","forbid all":"-","allow some":s},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&c.createElement(zi,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:c.createElement(Qg)}))}function Qg(){return Mc("Wildcards","Wildcards supported")}function uy(){return rt(this,null,function*(){return new Promise(e=>{const{close:t}=rs({icon:pI,title:"Get a certificate",onClose:e,Content:()=>c.createElement(ze,{p:1,lineHeight:1.5},c.createElement(ze,{},"HTTPS needs a certificate to work."),c.createElement(ze,{},"We suggest you to ",c.createElement(Kb,{to:"internet",onClick:t},"get a free but proper certificate"),"."),c.createElement(ze,{},"If you don't have a domain ",c.createElement(rl,{onClick:n},"make a self-signed certificate")," but that ",Mc("HTTPS#certificate"," won't be perfect"),"."))});function n(){return rt(this,null,function*(){if(!window.crypto.subtle)return kt("Retry this procedure on localhost","warning");const r=S4();try{yield _h(50);const o=yield at("save_pem",yield Y2e({}));r(),yield at("set_config",{values:o}),ga&&Object.assign(ga,o),setTimeout(cS,1e3),Object.assign(ln.config,o),t(),yield kt("Certificate saved","success")}finally{r()}})}})})}function Y2e(e){return rt(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(s=>({name:s[0],value:s[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}var PE={},Q2e=et;Object.defineProperty(PE,"__esModule",{value:!0});var dz=PE.default=void 0,X2e=Q2e(tt()),Z2e=Ze(),J2e=(0,X2e.default)((0,Z2e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"}),"DoNotDisturb");dz=PE.default=J2e;var kE={},eMe=et;Object.defineProperty(kE,"__esModule",{value:!0});var IE=kE.default=void 0,tMe=eMe(tt()),nMe=Ze(),rMe=(0,tMe.default)((0,nMe.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");IE=kE.default=rMe;var EE={},oMe=et;Object.defineProperty(EE,"__esModule",{value:!0});var fz=EE.default=void 0,sMe=oMe(tt()),iMe=Ze(),lMe=(0,sMe.default)((0,iMe.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");fz=EE.default=lMe;var ME={},aMe=et;Object.defineProperty(ME,"__esModule",{value:!0});var pz=ME.default=void 0,cMe=aMe(tt()),uMe=Ze(),dMe=(0,cMe.default)((0,uMe.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");pz=ME.default=dMe;var TE={},fMe=et;Object.defineProperty(TE,"__esModule",{value:!0});var hz=TE.default=void 0,pMe=fMe(tt()),hMe=Ze(),mMe=(0,pMe.default)((0,hMe.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");hz=TE.default=mMe;var _E={},gMe=et;Object.defineProperty(_E,"__esModule",{value:!0});var mz=_E.default=void 0,vMe=gMe(tt()),xD=Ze(),yMe=(0,vMe.default)([(0,xD.jsx)("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"0"),(0,xD.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");mz=_E.default=yMe;function bMe({account:e,done:t,groups:n,addToBar:r,reload:o}){const[s,i]=c.useState(e),[l,a]=c.useState([]);c.useEffect(()=>{var v,y;i(e),a(n.filter(m=>m!==e.username)),yde()||(y=(v=p.current)==null?void 0:v.querySelector("input"))==null||y.focus()},[JSON.stringify(e)]);const u=!e.username,f=!s.hasPassword,p=c.useRef();return c.createElement(Bc,{formRef:p,values:s,set(v,y){i(m=>ht(Se({},m),{[y]:v}))},barSx:Se({gap:2,width:"100%"},_k()),stickyBar:!0,addToBar:[!u&&c.createElement(mn,{icon:xl,title:"Delete",confirm:"Delete?",onClick:()=>at("del_account",{username:e.username}).then(o)}),c.createElement(mn,{icon:mz,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>at("invalidate_sessions",{username:e.username}).then(o)}),...Ob(r)],fields:[{k:"username",label:f?"Group name":void 0,autoComplete:"off",required:!0,xl:f?12:4,getError:v=>v!==e.username&&at("get_account",{username:v}).then(y=>(y==null?void 0:y.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!f&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:u,label:u?"Password":"Change password"},!f&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:y})=>(v||"")!==(y.password||"")&&"Enter same password"},{k:"disabled",comp:Wn,fromField:v=>!v,toField:v=>!v,label:"Enabled",xs:12,sm:6,xl:8,helperText:"Login is prevented if account is disabled, or if all its groups are disabled"},{k:"ignore_limits",comp:Wn,xs:"auto",helperText:s.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Se({k:"admin",comp:Wn,fromField:v=>v||null,label:"Admin-panel access",xs:12,sm:6,xl:8,helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"disable_password_change",comp:Wn,fromField:v=>!v,toField:v=>!v,label:"Allow password change",xs:"auto"},f&&c.createElement(Pr,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:Wb,label:"Inherit from groups",options:l,helperText:"Specify groups to inherit permissions from"+(f?". A group can inherit from another group":"")+(l.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:kt,save:{sx:Ud(!Nv(s,e)),onClick(){return rt(this,null,function*(){const k=s,{password:v="",password2:y,adminActualAccess:m,hasPassword:C}=k,b=Ft(k,["password","password2","adminActualAccess","hasPassword"]),{username:w}=s;if(u){const M=yield at("add_account",b);if(v)try{yield uS(w,v)}catch(I){throw at("del_account",{username:w}).then(),I}t(M==null?void 0:M.username),er("Account created","success");return}const S=yield at("set_account",{username:e.username,changes:b});v&&(yield uS(w,v)),setTimeout(()=>er("Account modified","success"),1),t(S==null?void 0:S.username)})}}})}function uS(e,t){return rt(this,null,function*(){const n=new uc.SRPRoutines(new uc.SRPParameters),r=yield uc.createVerifierAndSalt(n,e,t);return at("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==tue)throw o;return at("change_password_others",{username:e,newPassword:t})})})}const tC={fieldSeparator:",",lineSeparator:`
|
|
794
|
+
`,quote:'"'},bg={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class SD extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class wMe{constructor(t=tC){mi(this,"_rows",[]);mi(this,"_row",[]);mi(this,"_cell","");mi(this,"_options",tC);mi(this,"_state",Se({},bg));mi(this,"_index",0);mi(this,"_current","");mi(this,"_previous","");mi(this,"_quoteState",Se({},bg));this._options=Object.assign({},tC,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 SD(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,s)=>{r[o]=n[s]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=Se({},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 SD(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=Se({},bg),this._index=0,this._current="",this._previous="",this._quoteState=Se({},bg)}}function CMe(e){return rt(this,null,function*(){f4(t=>rt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield p4(n);if(!r)return;const s=new wMe().parse(r.trim()),i={comp:Cs,min:1,max:9,xs:6,typing:!0},l={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},a=yield nh({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:l,form:p=>{const g=s[p.skipFirstLines||0],v=f(g,Se(Se({},l),p));return{save:{startIcon:c.createElement(Dh),children:"Go"},fields:[c.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:Cs,min:0,max:s.length-1,typing:!0,md:6,helperText:c.createElement(c.Fragment,{},"First line: ",c.createElement("code",{},g.join(", ")))},{k:"overwriteExistingAccounts",comp:Wn,md:6},ht(Se({k:"usernameColumn"},i),{helperText:c.createElement(c.Fragment,{},"First username: ",v.u)}),ht(Se({k:"passwordColumn"},i),{helperText:c.createElement(c.Fragment,{},"First password: ",v.p)}),ht(Se({k:"groupColumn"},i),{helperText:c.createElement(c.Fragment,{},"First group: ",v.g)}),ht(Se({k:"redirectColumn"},i),{helperText:c.createElement(c.Fragment,{},"First redirect: ",v.r)})]}}});if(!a)return;const{close:u}=rs({title:"Importing...",Content(){const[p,g]=c.useState(0),[v,y]=c.useState();return c.useEffect(()=>{let m=!1;return setTimeout(()=>rt(this,null,function*(){var k;if(m)return;let C=0,b=0,w=a.skipFirstLines;const S=s.length-w;try{let M=0;for(const I of s){if(m)return;if(w){w--;continue}const E=f(I,a);y(E),g(M++/S),yield at("add_account",{username:E.u,belongs:(k=E.g)==null?void 0:k.split(","),redirect:E.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(E.p)return uS(E.u,E.p)},T=>{if(T.code===nue)return b++;C++})}}finally{u();const M=S-C-b,I="Results: "+[pa("",C," failed"),pa("",M," succeeded"),pa("",b," skipped because already present")].filter(Boolean).join(", ");kt(I,!M&&C?"error":C||b?"warning":"success"),e==null||e()}})),()=>{m=!0}},[]),c.createElement(ze,{display:"flex",gap:2,alignItems:"center"},c.createElement(k4,{icon:IE,progress:p}),v==null?void 0:v.u)}});function f(p,g){return{u:p[g.usernameColumn-1],p:p[g.passwordColumn-1],g:p[g.groupColumn-1],r:p[g.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function xMe(){const{username:e}=Vi(),{data:t,reload:n,element:r}=Yn("get_accounts"),[o,s]=c.useState([]),i=Array.isArray(o);c.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&i&&s(o.filter(y=>t.list.find(m=>(m==null?void 0:m.username)===y)))},[t]);const l=t==null?void 0:t.list,a=i&&ot.find(l,{username:o[0]}),f=Ko("md"),p=!(o.length>0)||!l?null:i&&o.length>1?c.createElement(c.Fragment,{},c.createElement(ao,{},c.createElement(Kn,{variant:"h6"},o.length+" selected"),c.createElement(qn,{onClick:v,startIcon:c.createElement(xl)},"Remove")),c.createElement(Mh,{},o.map(y=>c.createElement(UP,{key:y},c.createElement(Mi,{},y))))):Ec(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},y=>c.createElement(bMe,{account:y,groups:l.filter(m=>!m.hasPassword).map(m=>m.username),addToBar:f&&[c.createElement(ze,{flex:1}),PD(y,{fontSize:"large",sx:{p:1}}),c.createElement(mn,{icon:$h,title:"Close",onClick:g})],reload:n,done(m){s([m]),n()}}));return c.useEffect(()=>{if(f||!p||!o.length)return;const{close:y}=rs({title:ot.isString(o)?ot.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:g});return y},[f,o,a]),r||c.createElement(ti,{container:!0,maxWidth:"80em"},c.createElement(ti,{item:!0,xs:12},c.createElement(ze,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},c.createElement(iB,{variant:"contained",startIcon:c.createElement(hz),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>CMe(n)}]},"Add"),Gb(n),(l==null?void 0:l.length)>0&&c.createElement(Kn,{p:1},`${l.length} account(s)`))),c.createElement(ti,{item:!0,md:5},!(l!=null&&l.length)&&c.createElement(Pr,{severity:"info"},sr`To access administration <u>remotely</u> you will need to create a user account with admin permission`),c.createElement(K3,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(y,m){s(m)}},l==null?void 0:l.map(y=>{var m,C;return c.createElement(Yx,{key:y.username,nodeId:y.username,label:c.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},PD(y),y.adminActualAccess&&ro(fz,"Can login into Admin"),y.username,!!((m=y.belongs)!=null&&m.length)&&c.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=y.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&c.createElement(ti,{item:!0,md:7},c.createElement(Sb,{},c.createElement(Pb,{},p))));function g(){s([])}function v(){return rt(this,null,function*(){if(o.length>ot.pull(o,e).length&&(yield kt("Won't delete current account","warning")),!!o.length&&(yield dr(`Delete ${o.length} item(s)?`)))try{const y=[];for(const m of o)(yield at("del_account",{username:m}).then(()=>1,()=>0))||y.push(m);if(n(),y.length)return kt("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield kt(y)}})}}function PD(e,t={}){return c.createElement(c.Fragment,{},c.createElement(e.hasPassword?pz:IE,t),e.disabled&&c.createElement(dz))}var $E={},SMe=et;Object.defineProperty($E,"__esModule",{value:!0});var gz=$E.default=void 0,PMe=SMe(tt()),kMe=Ze(),IMe=(0,PMe.default)((0,kMe.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");gz=$E.default=IMe;function EMe(){const{element:e}=Yn("get_config",{only:[]}),{username:t}=Vi();return e||c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?c.createElement(c.Fragment,{},"You are logged in as: "+t,c.createElement(Ts,{icon:tk,size:"large",variant:"contained",onClick:()=>at("logout").catch(r=>r.code!==Th&&kt(r))},"I want to logout")):c.createElement(Pr,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),c.createElement(Ts,{icon:gz,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return rt(this,null,function*(){yield at("quit"),yield kt("Good-bye","success"),location.reload()})}},"Quit HFS"))}function MMe(){const{list:e,error:t,connecting:n,reload:r}=xa("get_langs"),o=c.useMemo(()=>["en",...ot.uniq(e.map(l=>l.code))],[e]),s=Ko("md");return c.createElement(c.Fragment,{},s&&c.createElement(Pr,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),c.createElement(ze,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},c.createElement(ze,{mb:1,display:"flex"},c.createElement(qn,{variant:"contained",startIcon:c.createElement(Dh),onClick:i},"Add"),c.createElement(ze,{flex:1}),c.createElement(TMe,{langs:o})),c.createElement(Bh,{error:t,loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:110,valueFormatter:({value:l})=>l==null?void 0:l.toUpperCase()},{field:"version",width:120,hideUnder:"sm"},{field:"hfs_version",headerName:"HFS version",width:110},{field:"author",flex:1,hideUnder:"sm"}],actions:({row:l})=>[c.createElement(mn,{icon:xl,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return rt(this,null,function*(){yield at("del_lang",ot.pick(l,"code")),r(),er("Deleted")})}})]})));function i(){f4(l=>rt(this,null,function*(){if(!l)return;const a={};for(const u of l)a[u.name]=yield p4(u);try{yield at("add_langs",{langs:a}),r(),er("Loaded")}catch(u){yield kt(u)}}),{accept:".json"})}}function TMe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Yn("get_config",{only:[t]}),[s,i]=c.useState();c.useEffect(()=>{var f;return i((f=n==null?void 0:n[t])!=null?f:s)},[n]);const[l,a]=c.useState();return c.createElement(Wr,{fullWidth:!1,disabled:o||typeof l=="string",value:l!=null?l:s,onChange(f){return rt(this,null,function*(){a(f);try{yield at("set_config",{values:{[t]:f}}),yield r()}finally{a(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(f=>({value:f,label:"Force language: "+f}))]})}var RE={},_Me=et;Object.defineProperty(RE,"__esModule",{value:!0});var vz=RE.default=void 0,$Me=_Me(tt()),RMe=Ze(),OMe=(0,$Me.default)((0,RMe.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zM7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5zM16 17H8v-2h8v2zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13z"}),"SmartToy");vz=RE.default=OMe;function DMe(){const[e,t]=c.useState(0),n=Sue(cy),{pause:r,pauseButton:o}=E4(),[s,i]=M4(a=>({title:a?"hide APIs":"show APIs",icon:vz,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Ko("sm")&&{error_log:"Errors"};return c.createElement(c.Fragment,{},c.createElement(ao,{gap:0},c.createElement(qP,{value:e,onChange(a,u){t(u)}},n.map(a=>c.createElement(Av,{label:ot.get(l,a)||cy[a],key:a}))),c.createElement(ze,{flex:1}),i,o),c.createElement(AMe,{key:e,pause:r,showApi:s,file:n[e]}))}function AMe({file:e,pause:t,showApi:n}){const{list:r,error:o,connecting:s}=xa("get_log",{file:e},{invert:!0,pause:t,map(l){const{extra:a}=l;if(!a)return;const u=a.dl?"fully downloaded":a.ul?"uploaded "+vl(a.size):"";return u&&(l.notes=u),l}}),i={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:l})=>new Date(l),renderCell:({value:l})=>c.createElement(c.Fragment,{},l.toLocaleDateString(),c.createElement("br"),l.toLocaleTimeString())};return c.createElement(Bh,{error:o,loading:s,rows:c.useMemo(()=>{var l;return n||((l=r==null?void 0:r[0])==null?void 0:l.uri)===void 0?r:r.filter(a=>!a.uri.startsWith(Cp))},[r,n]),compact:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[i,{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:l})=>l!=="log"&&l}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user"}},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"lg"},i,{field:"method",headerName:"Method",width:80,hideUnder:"lg"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"lg"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:l})=>vl(l)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap"},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:l,row:a})=>{var v,y;if((v=a.extra)!=null&&v.ul)return(y=a.extra)==null?void 0:y.ul;if(l=decodeURIComponent(l),!l.startsWith(Cp))return l;const u=Cp.length,f=l.indexOf("?",u),p=l.slice(u,f>0?f:1/0),g=f<0?"":Array.from(new URLSearchParams(l.slice(f))).map(m=>{var C;return`${m[0]}=${(C=xue(m[1]))!=null?C:m[1]}`}).join(" ; ");return`API ${p} ${g}`}}]})}var OE={},LMe=et;Object.defineProperty(OE,"__esModule",{value:!0});var dS=OE.default=void 0,FMe=LMe(tt()),NMe=Ze(),BMe=(0,FMe.default)((0,NMe.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");dS=OE.default=BMe;var DE={},zMe=et;Object.defineProperty(DE,"__esModule",{value:!0});var yz=DE.default=void 0,VMe=zMe(tt()),jMe=Ze(),HMe=(0,VMe.default)((0,jMe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");yz=DE.default=HMe;function kD({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=xa(e?"get_plugin_updates":"get_plugins"),s="small";return c.createElement(Bh,{error:pk(r,Pz),rows:t.length?t:[],initializing:o,disableColumnSelector:!0,disableColumnMenu:!0,hideFooter:!0,noRows:e&&'No updates available. Only plugins available on "search online" are checked.',columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:bz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:i,id:l})=>e?[c.createElement(mn,{icon:yz,title:i.updated?"Already updated":"Update",disabled:i.updated,size:s,onClick(){return rt(this,null,function*(){yield at("update_plugin",{id:l},{timeout:!1}).catch(g=>{var v;throw g.code!==wx?g:Error("Failed dependencies: "+((v=g.cause)==null?void 0:v.map(y=>pa('plugin "',y.id||y.repo,'" ')+y.error).join("; ")))}),n({id:l},{updated:!0}),er("Plugin updated")})}})]:[c.createElement(mn,i.started?{icon:dS,title:c.createElement(ze,{},`Stop ${l}`,c.createElement("br"),"Started "+new Date(i.started).toLocaleString()),size:s,color:"success",onClick(){return rt(this,null,function*(){yield at("stop_plugin",{id:l}),er("Plugin stopped",c.createElement(dS,{color:"warning"}))})}}:{icon:Mb,title:`Start ${l}`,size:s,onClick:()=>Cz(l)}),c.createElement(mn,{icon:ik,title:"Options",size:s,disabled:!i.started&&"Start plugin to access options"||!i.config&&"No options available for this plugin",progress:!1,onClick(){return rt(this,null,function*(){const g=yield at("get_plugin",{id:l});let v=g.config;const y=yield nh({title:`Options for ${l}`,form:C=>({before:c.createElement(ze,{mx:2,mb:3},i.description),fields:wz(i.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[c.createElement(Ts,{variant:"outlined",onClick:()=>m(C)},"Save")]}),values:g.config,dialogProps:ot.merge({sx:{m:"auto"}},i.configDialog)});if(y&&!ot.isEqual(v,y))return m(y);function m(C){return rt(this,null,function*(){yield at("set_plugin",{id:l,config:C}),Object.assign(v,C),er("Configuration saved")})}})}}),c.createElement(mn,{icon:xl,title:"Uninstall",size:s,confirm:"Remove?",onClick(){return rt(this,null,function*(){yield at("uninstall_plugin",{id:l}),er("Plugin uninstalled")})}})]})}function bz({row:e,value:t}){const{repo:n}=e;return c.createElement(c.Fragment,{},r(e.badApi,!0),r(e.error),n!=null&&n.includes("//")?c.createElement(As,{href:n,target:"plugin"},t):n?Ec(n==null?void 0:n.split("/"),o=>c.createElement(c.Fragment,{},c.createElement(As,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,s=!1){return o&&c.createElement(Ra,{title:o,children:c.createElement(Hb,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function wz(e){return Object.entries(e).map(([t,n])=>{if(!ot.isPlainObject(n))return n;let u=n,{type:r,defaultValue:o,fields:s,frontend:i}=u,l=Ft(u,["type","defaultValue","fields","frontend"]);const a=UMe[r];return a===oy&&(s=wz(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),Se({k:t,comp:a,fields:s},l)})}const UMe={string:zi,number:Cs,boolean:Wn,select:Wr,multiselect:Wb,array:oy,real_path:Ip};function Cz(e){return rt(this,null,function*(){try{return yield at("start_plugin",{id:e}),er("Plugin started",c.createElement(Mb,{color:"success"})),!0}catch(t){kt(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var AE={},WMe=et;Object.defineProperty(AE,"__esModule",{value:!0});var xz=AE.default=void 0,GMe=WMe(tt()),KMe=Ze(),qMe=(0,GMe.default)((0,KMe.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");xz=AE.default=qMe;function YMe(){const[e,t]=c.useState(""),n=hk(e,1e3),{list:r,error:o,initializing:s}=xa("get_online_plugins",{text:n}),i=Vi();return c.createElement(c.Fragment,{},c.createElement(zi,{value:e,onChange:t,start:c.createElement(xz),typing:!0,label:"Search text"}),c.createElement(Bh,{error:pk(o,Pz),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(ln.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:bz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:a})=>new Date(a).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:a,id:u})=>[c.createElement(mn,{icon:Wk,title:"Install",progress:a.downloading,disabled:a.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return rt(this,null,function*(){if(a.missing&&!(yield dr("This will also install: "+ot.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(u,p).catch(g=>{if(g.code!==wx)return kt(g);const v=c.createElement(c.Fragment,{},"This plugin has some dependencies unmet:",g.data.map(y=>c.createElement("li",{key:y.repo},y.repo+": "+y.error)));return kt(v,"error")})})}})]}));function l(a,u){return rt(this,null,function*(){try{const f=yield at("download_plugin",{id:a,branch:u},{timeout:!1});(yield dr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield Cz(f.id))}catch(f){let p=!1;if(f.code===wx)for(const g of f.cause)g.error==="missing"&&(er("Installing dependency: "+g.repo),yield l(g.repo),p=!0);if(p)return l(a,u);throw f}})}}const Sz={Installed:kD,"Search online|Search":YMe,"Check updates|Updates":()=>c.createElement(kD,{updates:!0})},QMe=Object.keys(Sz),XMe=Object.values(Sz),Pz={ENOTFOUND:"Cannot reach github.com"};function ZMe(){const[e,t]=c.useState(0),n=!Ko("sm");return c.createElement(c.Fragment,{},c.createElement(qP,{value:e,onChange(r,o){t(o)}},QMe.map(r=>c.createElement(Av,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),c.createElement(XMe[e]))}function JMe(){const{data:e,reload:t}=Yn("get_custom_html"),[n,r]=c.useState(""),[o,s]=c.useState({}),[i,l]=c.useState({});c.useEffect(()=>e&&l(e==null?void 0:e.sections),[e]),c.useEffect(()=>s(i),[i]);const a=c.useMemo(()=>{const p=ot.sortBy(Object.keys(o),g=>!isNaN(+g));return p.includes(n)||r(ot.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(g=>{var v;return{value:g,label:(pa("HTTP ",oue[g])||ot.startCase(g))+((v=o[g])!=null&&v.trim()?" *":"")}})},[hk(o,500)]),u=c.useMemo(()=>!ot.isEqualWith(i,o,(p,g)=>!p&&!g||void 0),[i,o]);return c.createElement(c.Fragment,{},c.createElement(Pr,{severity:"info"},sr("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. "),Mc("customization","More help")),c.createElement(ze,{display:"flex",alignItems:"center",gap:1,mb:1},c.createElement(Wr,{label:"Section",value:n,options:a,onChange:r}),Gb(t),c.createElement(mn,{icon:Rh,title:`Save
|
|
795
|
+
(ctrl+enter)`,sx:Ud(u),onClick:f})),c.createElement(CE,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(g=>ht(Se({},g),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(Ab(p))&&(f().then(),p.preventDefault())}}));function f(){return at("set_custom_html",{sections:o}).then(()=>l(o))}}var LE={},eTe=et;Object.defineProperty(LE,"__esModule",{value:!0});var kz=LE.default=void 0,tTe=eTe(tt()),wg=Ze(),nTe=(0,tTe.default)([(0,wg.jsx)("path",{d:"M17 11h2v2h-2v2h2v2h-2v2h4V5h-9v1.4l5 3.57V11zm0-4h2v2h-2V7z",opacity:".3"},"0"),(0,wg.jsx)("path",{d:"M10 3v1.97l.96.69L12 6.4V5h9v14h-4v2h6V3z"},"1"),(0,wg.jsx)("path",{d:"M3 12v7h2v-5h6v5h2v-7L8 8.5z",opacity:".3"},"2"),(0,wg.jsx)("path",{d:"M17 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zM1 11v10h6v-5h2v5h6V11L8 6l-7 5zm12 8h-2v-5H5v5H3v-7l5-3.5 5 3.5v7z"},"3")],"HomeWorkTwoTone");kz=LE.default=nTe;var FE={},rTe=et;Object.defineProperty(FE,"__esModule",{value:!0});var Iz=FE.default=void 0,oTe=rTe(tt()),ID=Ze(),sTe=(0,oTe.default)([(0,ID.jsx)("path",{d:"M14.99 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1h-2v2h6c.55 0 1 .45 1 1v3h1c.89 0 1.64.59 1.9 1.4C19.19 15.98 20 14.08 20 12c0-3.35-2.08-6.23-5.01-7.41zM8.99 16v-1l-4.78-4.78C4.08 10.79 4 11.39 4 12c0 4.07 3.06 7.43 6.99 7.93V18c-1.1 0-2-.9-2-2z",opacity:".3"},"0"),(0,ID.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.01 17.93C7.06 19.43 4 16.07 4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4z"},"1")],"PublicTwoTone");Iz=FE.default=sTe;var NE={},iTe=et;Object.defineProperty(NE,"__esModule",{value:!0});var Ez=NE.default=void 0,lTe=iTe(tt()),aTe=Ze(),cTe=(0,lTe.default)((0,aTe.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zm-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z"}),"RestartAlt");Ez=NE.default=cTe;var BE={},uTe=et;Object.defineProperty(BE,"__esModule",{value:!0});var Mz=BE.default=void 0,dTe=uTe(tt()),ED=Ze(),fTe=(0,dTe.default)([(0,ED.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,ED.jsx)("path",{d:"M16 4.2c1.5 0 3 .6 4.2 1.7l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2zm-3.3 2.5.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1l.8-.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zM6 16h2v2H6zm3.5 0h2v2h-2zm3.5 0h2v2h-2z"},"1")],"RouterTwoTone");Mz=BE.default=fTe;var zE={},pTe=et;Object.defineProperty(zE,"__esModule",{value:!0});var Tz=zE.default=void 0,hTe=pTe(tt()),mTe=Ze(),gTe=(0,hTe.default)((0,mTe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");Tz=zE.default=gTe;var VE={},vTe=et;Object.defineProperty(VE,"__esModule",{value:!0});var _z=VE.default=void 0,yTe=vTe(tt()),bTe=Ze(),wTe=(0,yTe.default)((0,bTe.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");_z=VE.default=wTe;const MD=Y5.filter(e=>s1e.includes(e.code)),TD="https://portforward.com/",nC=1080,rC=`It is possible that your Internet Provider won't let you get incoming connections. Ask them if they sell "public IP" as an extra service.`;function CTe(){var V,j,_,A;const[e,t]=c.useState(),[n,r]=c.useState(!1),[o,s]=c.useState(!1),[i,l]=c.useState(!1),a=Yn("get_status"),u=Yn("get_config",{only:["base_url"]}),f=Ec([(j=(V=a.data)==null?void 0:V.http)==null?void 0:j.error,(A=(_=a.data)==null?void 0:_.https)==null?void 0:A.error],([F,z])=>F&&z?"error":F||z?"warning":"success"),{data:p,reload:g,error:v,loading:y,element:m}=Yn("get_nat"),C=p==null?void 0:p.internalPort,b=(p==null?void 0:p.mapped)&&p.mapped.private.port!==C&&p.mapped.private.port,w=(p==null?void 0:p.externalIp)&&(p==null?void 0:p.publicIps)&&!p.publicIps.includes(p.externalIp);return c.useEffect(()=>{!i||!p||y||(T().then(),l(!1))},[i,p,y]),c.createElement(ao,{vert:!0,gap:"2em",maxWidth:"40em"},c.createElement(Pr,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),I(),E(),k(),S());function S(){const F=c.useMemo(()=>ot.sortBy(MD,"name").map(z=>({value:z.code,label:`${z.flag} ${z.name}`})),[MD]);return c.createElement(sC,{title:"Geo IP",icon:Lv},c.createElement($D,{keys:[br.geo_enable,br.geo_allow,br.geo_list,br.geo_allow_unknown],form:z=>{var D;return{fields:[{k:br.geo_enable,comp:Wn,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...z[br.geo_enable]?[{k:br.geo_allow,comp:Wr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},z[br.geo_allow]!=null&&{k:br.geo_list,comp:Wb,label:`Selected countries (${((D=z[br.geo_list])==null?void 0:D.length)||0})`,placeholder:"none",options:F,clearable:!0},z[br.geo_allow]!=null&&{k:br.geo_allow_unknown,comp:Wr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function k(){const[F,z]=c.useState(),D=Yn("get_cert");if(c.useEffect(()=>{at("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(z)},[]),!a||!F)return c.createElement(Ai);const{https:N}=a.data||{},H=(N==null?void 0:N.port)===Jce,K=N==null?void 0:N.error;return m||a.element||c.createElement(sC,{title:"HTTPS",icon:qb,color:N!=null&&N.listening&&!K?"success":"warning"},K?c.createElement(Pr,{severity:"warning"},K):H&&c.createElement(rl,{onClick:M},"Not enabled"),D.element||Ec(D.data,Z=>{var Q,X;return Z.none?c.createElement(rl,{onClick:()=>uy().then(D.reload)},"No certificate configured"):c.createElement(ze,{},c.createElement(pI,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",c.createElement("ul",{},c.createElement("li",{},"Domain: ",((Q=Z.altNames)==null?void 0:Q.join(" + "))||"-"),c.createElement("li",{},"Issuer: ",((X=Z.issuer)==null?void 0:X.O)||c.createElement("i",{},"self-signed")),c.createElement("li",{},"Validity: ",["validFrom","validTo"].map(J=>Cx(Z[J])).join(" – "))))}),c.createElement(Zp),c.createElement(Bc,{gap:1,gridProps:{rowSpacing:1},values:F,set(Z,Q){z(X=>{const J=ht(Se({},X),{[Q]:Z});return at("set_config",{values:J}),J})},fields:[sr("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:sr(`Example: your.domain.com
|
|
796
|
+
Multiple domains separated by commas`)},{k:"acme_email",label:"E-mail for certificate",sm:6},{k:"acme_renew",label:"Automatic renew one month before expiration",comp:Wn,disabled:!F.acme_domain}],save:{children:"Request",startIcon:c.createElement(Tz),onClick(){return rt(this,null,function*(){var ne;const[Z,...Q]=F.acme_domain.split(",");Z===((ne=D.data.subject)==null?void 0:ne.CN)&&Number(new Date(D.data.validTo))-Date.now()>=30*aue&&!(yield dr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield dr("HFS must temporarily serve HTTP on public port 80, and your router must be configured or this operation will fail"))||(yield at("check_domain",{domain:Z}).catch(fe=>dr(String(fe),{confirmText:"Continue anyway"})))===!1||(yield at("make_cert",{domain:Z,altNames:Q,email:F.acme_email},{timeout:2e4}).then(()=>rt(this,null,function*(){yield kt("Certificate created","success"),H&&(yield M()),D.reload()}),kt))})}}}))}function M(){return rt(this,null,function*(){if(!(yield dr(`HTTPS is currently disabled.
|
|
797
|
+
Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const F=S4();try{yield at("set_config",{values:{https_port:443}}),yield _h(1e3),a.reload()}finally{F()}})}function I(){var N;const F=(N=u.data)==null?void 0:N.base_url,z=F&&new URL(F).hostname,D=!kue(z)&&z;return u.element||c.createElement(sC,{icon:Lv,title:"Address / Domain"},c.createElement(ao,{flexWrap:"wrap"},F||"Automatic, not configured",c.createElement(ao,{},c.createElement(Ts,{size:"small",variant:"outlined",onClick:()=>void ez().then(u.reload)},"Change"),D&&c.createElement(Ts,{size:"small",variant:"outlined",onClick:()=>at("check_domain",{domain:D}).then(()=>kt("Domain seems ok","success"))},"Check"))),c.createElement($D,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:Wn,label:"Accept requests only using domain (and localhost)"}]}}))}function E(){if(v)return m;if(!p)return c.createElement(Ai);const F=p==null?void 0:p.publicIps.includes(p==null?void 0:p.localIp);return c.createElement(ao,{justifyContent:"space-around"},c.createElement(oC,{name:"Server",icon:F?_z:kz,color:f,ip:p==null?void 0:p.localIp,below:C&&c.createElement(ze,{fontSize:"smaller"},"port ",C)}),!F&&c.createElement(_D),!F&&c.createElement(oC,{name:"Router",icon:Mz,ip:p==null?void 0:p.gatewayIp,color:(p==null?void 0:p.mapped)&&(b?"warning":"success"),below:o?c.createElement(Rv,{sx:{height:"1em"}}):c.createElement(rl,{fontSize:"smaller",display:"block",onClick:L},"port ",b?"is wrong":(p==null?void 0:p.externalPort)||"unknown")}),c.createElement(_D),c.createElement(oC,{name:"Internet",icon:Iz,ip:p==null?void 0:p.publicIps,color:e?"success":e===!1?"error":w?"warning":void 0,below:n?c.createElement(Rv,{sx:{height:"1em"}}):c.createElement(ze,{fontSize:"smaller"},w&&c.createElement(rl,{display:"block",onClick:()=>kt(rC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(p==null?void 0:p.publicIps.length)>0&&p.internalPort&&c.createElement(rl,{onClick:T},"Verify"))}))}function T(){return rt(this,null,function*(){var z;if(!p||(t(void 0),!i&&!(yield dr("This test will check if your server is working properly on the Internet"))))return;r(!0);try{const D=(z=u.data)==null?void 0:z.base_url,N=D&&(yield at("self_check",{url:D}).catch(()=>kt(sr(`Sorry, we couldn't verify your configured address ${D} 😰
|
|
798
|
+
still, we are going to test your IP address 🤞`),"warning")));if(N!=null&&N.success)return t(!0),kt(c.createElement(ze,{},"Your server is responding correctly over the Internet:",c.createElement("ul",{},c.createElement("li",{},N.url))),"success");(N==null?void 0:N.success)===!1&&(yield kt(sr(`Your configured address ${D} doesn't seem to work 😰
|
|
799
|
+
still, we are going to test your IP address 🤞`),"warning"));const H=yield at("self_check",{});if(H.some(Q=>Q.success)){t(!0);const Q=N.success===!1&&sr(`Your server is responding over the Internet 👍
|
|
800
|
+
but not with configured address ${D} 👎
|
|
801
|
+
just on your IP:`);return kt(c.createElement(ze,{},Q||"Your server is responding correctly over the Internet:",c.createElement("ul",{},...H.map(X=>c.createElement("li",{},X.url)))),Q?"warning":"success")}if(t(!1),b)return O().then(F);if(w)return kt(rC,"warning");const K="We couldn't reach your server from the Internet. ";if(p.upnp&&!p.mapped)return dr(K+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(Q=>{if(Q){try{R(p.internalPort,"","")}catch(X){R(nC,"")}er("Port forwarded, now verify again","success"),F()}});const Y=yield at("get_config",{only:[br.geo_enable,br.geo_allow]}),{close:Z}=kt(c.createElement(ze,{},K+"Possible causes:",c.createElement("ul",{},Y[br.geo_enable]&&Y[br.geo_allow]!=null&&c.createElement("li",{},"You may be blocking a country from where the test is performed"),!p.upnp&&c.createElement("li",{},"Your router may need to be configured. ",c.createElement(As,{href:TD,target:"help"},"How?")),c.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(p.externalPort||p.internalPort)<=1024&&c.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",p.upnp&&c.createElement(qn,{size:"small",onClick(){Z(),R(nC).then(F)}},"Try "+nC)),p.mapped&&c.createElement("li",{},"A bug in your modem/router, try rebooting it."),c.createElement("li",{},rC))),"warning")}catch(D){kt(D)}finally{r(!1)}function F(){l(!0)}})}function L(){return rt(this,null,function*(){if(!p)return;if(b)return(yield dr(`There is a port-forwarding but it is pointing to the wrong port (${b})`,{confirmText:"Fix it"}))&&O();if(!p.upnp)return kt(c.createElement(ze,{lineHeight:1.5},sr(`We cannot help you configuring your router because UPnP is not available.
|
|
802
|
+
Find more help [on this website](${TD}).`)),"info");const F=yield $k(sr(`This will ask the router to map your port, so that it can be reached from the Internet.
|
|
803
|
+
You can set the same number of the local network (${C}), or a different one.`),{value:p.externalPort||C,field:{label:"Port seen from the Internet",comp:Cs},addToBar:p.mapped&&[c.createElement(qn,{color:"warning",onClick:z},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});F&&(yield R(Number(F),"Port forwarded"));function z(){Li(),R(0,"Port removed")}})}function O(){return p!=null&&p.externalPort?R(p.externalPort,"Forwarding corrected"):kt("externalPort not found","error")}function R(F,z="",D="Operation failed"){return rt(this,null,function*(){s(!0);try{yield at("map_port",{external:F}),g(),z&&er(z,"success"),t(void 0)}catch(N){if(D){const H=F&&Math.min(F,p.internalPort)<1024,K=D+(H?". Some routers refuse to work with ports under 1024.":"");yield kt(K,"error")}throw N}finally{s(!1)}})}}function _D(){return c.createElement(ze,{flex:1,className:"animated-dashed-line"})}function oC({name:e,icon:t,color:n,ip:r,below:o}){const s="min(20vw, 10vh)";return c.createElement(ze,{display:"inline-block",textAlign:"center"},c.createElement(t,{color:n,sx:{fontSize:s,mb:"-0.1em"}}),c.createElement(ze,{fontSize:"larger"},e),c.createElement(ze,{fontSize:"smaller",whiteSpace:"pre-wrap"},Ob(r).join(`
|
|
804
|
+
`)||"unknown"),o)}function sC({title:e,icon:t,color:n,children:r}){return c.createElement(Sb,{},c.createElement(Pb,{},c.createElement(ao,{vert:!0},c.createElement(ze,{fontSize:"x-large"},t&&c.createElement(t,{color:n,sx:{mr:1,verticalAlign:"bottom",mb:"2px"}}),e),r)))}function $D(o){var s=o,{keys:e,form:t,saveOnChange:n}=s,r=Ft(s,["keys","form","saveOnChange"]);const i=Yn("get_config",{only:e}),[l,a]=c.useState(i.data);c.useEffect(()=>a(g=>i.data||g),[i.data]);const u=l&&!ot.isEqual(l,i.data);if(c.useEffect(()=>{u&&n&&p()},[u]),!l)return i.element;const f=ot.isFunction(t)?t(l):t;return c.createElement(Bc,ht(Se(Se({values:l,set(g,v){a(y=>ht(Se({},y),{[v]:g}))},save:n?!1:{onClick:p,sx:Ud(u)}},Array.isArray(f)?{fields:f}:f),r),{barSx:Se({gap:1},r.barSx),addToBar:[c.createElement(mn,{icon:Ez,disabled:!u,title:"Reset",onClick(){a(i.data)}}),...r.addToBar||[]]}));function p(){return at("set_config",{values:l}).then(i.reload)}}const fS=[{path:"",icon:JP,label:"Home",title:"Admin panel",comp:I2e},{path:"fs",icon:VN,label:"Shared files",comp:ZEe},{path:"accounts",icon:UN,comp:xMe},{path:"options",icon:ik,comp:K2e},{path:"internet",icon:Lv,comp:CTe},{path:"monitoring",icon:WN,comp:i1e,noPaddingOnMobile:!0},{path:"logs",icon:HN,comp:DMe,noPaddingOnMobile:!0},{path:"language",icon:GN,comp:MMe},{path:"plugins",icon:jN,comp:ZMe,noPaddingOnMobile:!0},{path:"html",icon:KN,label:"Custom HTML",comp:JMe},{path:"logout",icon:tk,comp:EMe}];function RD({onSelect:e}){const{VERSION:t}=jb(),n="hfs-logo.svg",r=Db().height<700;return c.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},c.createElement(Mh,{sx:{pr:1,py:0,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},c.createElement(ze,{display:"flex",px:2,py:.5,gap:2,alignItems:"center"},c.createElement(ze,{fontSize:"min(3rem, max(5vw, 4vh))"},"HFS"),c.createElement(ze,{fontSize:"small"},Tk(t||"",/-/,()=>c.createElement("br"))),r&&c.createElement("img",{src:n,style:{height:"2.5em"}})),fS.map(o=>c.createElement(Rse,{key:o.path,to:o.path,component:wK,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&c.createElement(cl,{sx:{color:"primary.contrastText",minWidth:48}},c.createElement(o.icon)),c.createElement(Mi,{sx:{whiteSpace:"nowrap"},primary:$z(o)}))),!r&&c.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function $z(e){var t;return e&&((t=e.label)!=null?t:ot.capitalize(e.path))}function xTe({children:e}){const{loginRequired:t}=Vi();return t===_b?c.createElement(Oh,{},c.createElement(Pr,{severity:"error"},"Admin-panel only for localhost"),c.createElement(ze,{mt:2,fontSize:"small"},"because no admin account was configured")):t?c.createElement(STe):c.createElement(c.Fragment,{},e)}function STe(){var i;const[e,t]=c.useState({username:"",password:""}),[n,r]=c.useState(""),o=c.useRef(),s=(i=o.current)==null?void 0:i.querySelector('input[value=""]');return c.useEffect(()=>{var a;return(a=s==null?void 0:s.focus)==null?void 0:a.call(s)},[s]),c.createElement(Oh,{},c.createElement(Bc,{formRef:o,values:e,set(a,u){t(f=>ht(Se({},f),{[u]:a}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&c.createElement(Pr,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return rt(this,null,function*(){try{r(""),yield PTe(e.username,e.password)}catch(a){r(String(a))}})}}}))}function PTe(e,t){return rt(this,null,function*(){const n=yield gde(e,t,at).catch(r=>{throw(r==null?void 0:r.code)===Th?"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";ln.loginRequired=!1,Rz(n)})}const Rz=bde(ln);Rz(jb().session);var jE={},kTe=et;Object.defineProperty(jE,"__esModule",{value:!0});var Oz=jE.default=void 0,ITe=kTe(tt()),ETe=Ze(),MTe=(0,ITe.default)((0,ETe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Oz=jE.default=MTe;var Dz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n="week",r="year";return function(o,s,i){var l=s.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(r).add(1,r).date(u),p=i(this).endOf(n);if(f.isBefore(p))return 1}var g=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(g,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(Dz);var TTe=Dz.exports;const _Te=Ni(TTe);var Az={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},a=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(C){this[m]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var b=C.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],p=function(m){var C=l[m];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(m,C){var b,w=l.meridiem;if(w){for(var S=1;S<=24;S+=1)if(m.indexOf(w(S,0,C))>-1){b=S>12;break}}else b=m===(C?"pm":"PM");return b},v={A:[i,function(m){this.afternoon=g(m,!1)}],a:[i,function(m){this.afternoon=g(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[i,function(m){var C=l.ordinal,b=m.match(/\d+/);if(this.day=b[0],C)for(var w=1;w<=31;w+=1)C(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],M:[s,u("month")],MM:[o,u("month")],MMM:[i,function(m){var C=p("months"),b=(p("monthsShort")||C.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[i,function(m){var C=p("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=a(m)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function y(m){var C,b;C=m,b=l&&l.formats;for(var w=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,O,R){var V=R&&R.toUpperCase();return O||b[R]||n[R]||b[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,_,A){return _||A.slice(1)})})).match(r),S=w.length,k=0;k<S;k+=1){var M=w[k],I=v[M],E=I&&I[0],T=I&&I[1];w[k]=T?{regex:E,parser:T}:M.replace(/^\[|\]$/g,"")}return function(L){for(var O={},R=0,V=0;R<S;R+=1){var j=w[R];if(typeof j=="string")V+=j.length;else{var _=j.regex,A=j.parser,F=L.slice(V),z=_.exec(F)[0];A.call(O,z),L=L.replace(z,"")}}return function(D){var N=D.afternoon;if(N!==void 0){var H=D.hours;N?H<12&&(D.hours+=12):H===12&&(D.hours=0),delete D.afternoon}}(O),O}}return function(m,C,b){b.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(a=m.parseTwoDigitYear);var w=C.prototype,S=w.parse;w.parse=function(k){var M=k.date,I=k.utc,E=k.args;this.$u=I;var T=E[1];if(typeof T=="string"){var L=E[2]===!0,O=E[3]===!0,R=L||O,V=E[2];O&&(V=E[2]),l=this.$locale(),!L&&V&&(l=b.Ls[V]),this.$d=function(F,z,D){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*F);var N=y(z)(F),H=N.year,K=N.month,Y=N.day,Z=N.hours,Q=N.minutes,X=N.seconds,J=N.milliseconds,ne=N.zone,fe=new Date,we=Y||(H||K?1:fe.getDate()),Ce=H||fe.getFullYear(),ae=0;H&&!K||(ae=K>0?K-1:fe.getMonth());var be=Z||0,de=Q||0,ke=X||0,Ie=J||0;return ne?new Date(Date.UTC(Ce,ae,we,be,de,ke,Ie+60*ne.offset*1e3)):D?new Date(Date.UTC(Ce,ae,we,be,de,ke,Ie)):new Date(Ce,ae,we,be,de,ke,Ie)}catch(le){return new Date("")}}(M,T,I),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),R&&M!=this.format(T)&&(this.$d=new Date("")),l={}}else if(T instanceof Array)for(var j=T.length,_=1;_<=j;_+=1){E[1]=T[_-1];var A=b.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}_===j&&(this.$d=new Date(""))}else S.call(this,k)}}})})(Az);var $Te=Az.exports;const RTe=Ni($Te);var Lz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,l=i.format;s.en.formats=n,i.format=function(a){a===void 0&&(a="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,g){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,y,m){var C=m&&m.toUpperCase();return y||g[m]||n[m]||g[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,w,S){return w||S.slice(1)})})}(a,u===void 0?{}:u);return l.call(this,f)}}})})(Lz);var OTe=Lz.exports;const DTe=Ni(OTe);var Fz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,l,a){var u=o(s),f=o(i),p=(a=a||"()")[0]==="(",g=a[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(g?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(g?this.isAfter(f,l):!this.isBefore(f,l))}}})})(Fz);var ATe=Fz.exports;const LTe=Ni(ATe);_r.extend(RTe);_r.extend(DTe);_r.extend(LTe);const FTe=C3(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),NTe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},BTe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},iC=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
805
|
+
`),OD=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
806
|
+
`),zTe=(e,t)=>t?(...n)=>e(...n).locale(t):e;class VTe{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=NTe,this.setLocaleToValue=s=>{const i=this.getCurrentLocaleCode();return i===s.locale()?s:s.locale(i)},this.hasUTCPlugin=()=>typeof _r.utc!="undefined",this.hasTimezonePlugin=()=>typeof _r.tz!="undefined",this.isSame=(s,i,l)=>{const a=this.setTimezone(i,this.getTimezone(s));return s.format(l)===a.format(l)},this.cleanTimezone=s=>{switch(s){case"default":return;case"system":return _r.tz.guess();default:return s}},this.createSystemDate=s=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(s);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=_r.tz.guess();return i!=="UTC"?_r.tz(s,i):_r(s)}return _r(s)},this.createUTCDate=s=>{if(!this.hasUTCPlugin())throw new Error(iC);return _r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(iC);if(!this.hasTimezonePlugin())throw new Error(OD);const l=s!==void 0&&!s.endsWith("Z");return _r(s).tz(this.cleanTimezone(i),l)},this.getLocaleFormats=()=>{const s=_r.Ls,i=this.locale||"en";let l=s[i];return l===void 0&&(FTe(),l=s.en),l.formats},this.adjustOffset=s=>{if(!this.hasTimezonePlugin())return s;const i=this.getTimezone(s);if(i!=="UTC"){var l,a;const u=s.tz(this.cleanTimezone(i),!0);return((l=u.$offset)!=null?l:0)===((a=s.$offset)!=null?a:0)?s:u}return s},this.date=s=>s===null?null:this.dayjs(s),this.dateWithTimezone=(s,i)=>{if(s===null)return null;let l;return i==="UTC"?l=this.createUTCDate(s):i==="system"||i==="default"&&!this.hasTimezonePlugin()?l=this.createSystemDate(s):l=this.createTZDate(s,i),this.locale===void 0?l:l.locale(this.locale)},this.getTimezone=s=>{if(this.hasTimezonePlugin()){var i;const l=(i=s.$x)==null?void 0:i.$timezone;if(l)return l}return this.hasUTCPlugin()&&s.isUTC()?"UTC":"system"},this.setTimezone=(s,i)=>{if(this.getTimezone(s)===i)return s;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(iC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(OD)}return _r.tz(s,this.cleanTimezone(i))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,i)=>s===""?null:this.dayjs(s,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const i=this.getLocaleFormats(),l=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,f,p)=>f||p.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,u,f)=>{const p=f&&f.toUpperCase();return u||i[f]||l(i[p])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,i)=>this.formatByString(s,this.formats[i]),this.formatByString=(s,i)=>this.dayjs(s).format(i),this.formatNumber=s=>s,this.getDiff=(s,i,l)=>s.diff(i,l),this.isEqual=(s,i)=>s===null&&i===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(s,i)=>this.isSame(s,i,"YYYY"),this.isSameMonth=(s,i)=>this.isSame(s,i,"YYYY-MM"),this.isSameDay=(s,i)=>this.isSame(s,i,"YYYY-MM-DD"),this.isSameHour=(s,i)=>s.isSame(i,"hour"),this.isAfter=(s,i)=>s>i,this.isAfterYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()>i.utc():s.isAfter(i,"year"),this.isAfterDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()>i.utc():s.isAfter(i,"day"),this.isBefore=(s,i)=>s<i,this.isBeforeYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()<i.utc():s.isBefore(i,"year"),this.isBeforeDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()<i.utc():s.isBefore(i,"day"),this.isWithinRange=(s,[i,l])=>s>=i&&s<=l,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"year"):s.add(i,"year")),this.addMonths=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"month"):s.add(i,"month")),this.addWeeks=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"week"):s.add(i,"week")),this.addDays=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"day"):s.add(i,"day")),this.addHours=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"hour"):s.add(i,"hour")),this.addMinutes=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"minute"):s.add(i,"minute")),this.addSeconds=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"second"):s.add(i,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,i)=>this.adjustOffset(s.set("year",i)),this.setMonth=(s,i)=>this.adjustOffset(s.set("month",i)),this.setDate=(s,i)=>this.adjustOffset(s.set("date",i)),this.setHours=(s,i)=>this.adjustOffset(s.set("hour",i)),this.setMinutes=(s,i)=>this.adjustOffset(s.set("minute",i)),this.setSeconds=(s,i)=>this.adjustOffset(s.set("second",i)),this.setMilliseconds=(s,i)=>this.adjustOffset(s.set("millisecond",i)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const l=[s.startOf("year")];for(;l.length<12;){const a=l[l.length-1];l.push(this.addMonths(a,1))}return l},this.mergeDateAndTime=(s,i)=>s.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(s,i),"dd"))},this.getWeekArray=s=>{const i=this.setLocaleToValue(s),l=i.startOf("month").startOf("week"),a=i.endOf("month").endOf("week");let u=0,f=l;const p=[];for(;f<a;){const g=Math.floor(u/7);p[g]=p[g]||[],p[g].push(f),f=this.addDays(f,1),u+=1}return p},this.getWeekNumber=s=>s.week(),this.getYearRange=(s,i)=>{const l=s.startOf("year"),a=i.endOf("year"),u=[];let f=l;for(;f<a;)u.push(f),f=this.addYears(f,1);return u},this.getMeridiemText=s=>s==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=zTe((o=this.rawDayJsInstance)!=null?o:_r,t),this.locale=t,this.formats=x({},BTe,n),_r.extend(_Te)}}function jTe(){ln.title="Config file";const{data:e,reload:t,element:n}=Yn("get_config_text",{}),[r,o]=c.useState(),[s,i]=c.useState(),[l,a]=c.useState(!1);return c.useEffect(()=>{i(e==null?void 0:e.text)},[e]),c.useEffect(()=>{s!==void 0&&o(s||"")},[s]),c.createElement(c.Fragment,{},c.createElement(ao,{flexWrap:"wrap",justifyContent:"space-between"},c.createElement(Ts,{icon:hE,onClick:f},"Copy excluding passwords"),l?c.createElement(c.Fragment,{},Gb(t),c.createElement(mn,{icon:Rh,title:`Save
|
|
807
|
+
(ctrl+enter)`,sx:Ud(r!==s),onClick:u}),c.createElement(Pr,{severity:"warning",sx:{flex:1,minWidth:"10em"}},"Be careful, you can easily break things here")):c.createElement(Ts,{icon:mI,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>zv("main textarea"),500)}},"Edit"),c.createElement(ze,{flex:1,minWidth:"fit-content"},c.createElement(xp,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&c.createElement(Fue,{margin:10},c.createElement(CE,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(Ab(p))&&(u().then(),p.preventDefault())}})));function u(){return at("set_config_text",{text:r}).then(()=>i(r))}function f(){r&&(navigator.clipboard.writeText(r.replace(/^\s*(\w*password|srp):.+\n/gm,"")),er("copied"))}}function HTe(){return c.createElement(fX,{theme:lfe()},c.createElement(UTe,{},c.createElement(kI,{dateAdapter:VTe},c.createElement(xTe,{},c.createElement(vK,{},c.createElement(WTe))))))}function UTe(e){return c.createElement(ze,Se({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},e))}function WTe(){const e=Ld().pathname.slice(1),t=fS.find(l=>l.path===e);let{title:n}=Vi();n=t&&(t.title||$z(t))||n;const[r,o]=c.useState(!1),s=Ko("lg"),i=t!=null&&t.noPaddingOnMobile?0:1;return c.createElement(c.Fragment,{},!s&&c.createElement(GTe,{title:n,openMenu:()=>o(!0)}),!s&&c.createElement(Fre,{anchor:"left",open:r,onClose(){o(!1)}},c.createElement(RD,{onSelect:()=>o(!1)})),c.createElement(ze,{display:"flex",flex:1},s&&c.createElement(RD),c.createElement(ze,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:i,md:2,lg:3},pb:{xs:i,md:2},boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"column",width:"100%",overflowX:"clip"}},n&&s&&c.createElement(Kn,{variant:"h2",mb:2},n),c.createElement(fK,{},fS.map((l,a)=>c.createElement(tx,{key:a,path:l.path,element:c.createElement(l.comp)})),c.createElement(tx,{path:"edit",element:c.createElement(jTe)}))),c.createElement(ide)))}function GTe({title:e,openMenu:t}){return c.createElement(LZ,{position:"sticky",sx:{mb:2}},c.createElement(BN,{},c.createElement(pr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},c.createElement(Oz)),e))}KL(document.getElementById("root")).render(c.createElement(c.StrictMode,{},c.createElement(HTe)));export{sn as c,Ni as g};
|