hfs 0.51.0-beta4 → 0.51.0-beta5
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-43bf4164.js +808 -0
- package/admin/assets/index-533d5ef9.css +1 -0
- package/{frontend/assets/sha512-6365fe60.js → admin/assets/sha512-ed31d758.js} +1 -1
- package/admin/index.html +2 -2
- package/central.json +4 -2
- package/frontend/assets/{index-dea364e7.js → index-51efc547.js} +21 -21
- package/{admin/assets/sha512-a1b6cce6.js → frontend/assets/sha512-b3f474a3.js} +1 -1
- package/frontend/index.html +1 -1
- package/package.json +1 -1
- package/plugins/download-counter/plugin.js +2 -2
- package/src/acme.js +3 -2
- package/src/commands.js +1 -1
- package/src/const.js +2 -2
- package/src/cross-const.js +2 -1
- package/src/cross.js +2 -2
- package/src/geo.js +6 -4
- package/src/github.js +2 -4
- package/src/listen.js +1 -1
- package/src/log.js +3 -2
- package/src/middlewares.js +3 -3
- package/src/roots.js +21 -10
- package/src/serveFile.js +8 -9
- package/src/serveGuiFiles.js +4 -4
- package/src/update.js +2 -2
- package/admin/assets/index-101ecc9e.js +0 -808
- package/admin/assets/index-65d16f45.css +0 -1
|
@@ -0,0 +1,808 @@
|
|
|
1
|
+
var TU=Object.defineProperty,$U=Object.defineProperties;var RU=Object.getOwnPropertyDescriptors;var jm=Object.getOwnPropertySymbols;var F_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var Y1=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},ys=Math.pow,Q1=(e,t,n)=>t in e?TU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t)=>{for(var n in t||(t={}))F_.call(t,n)&&Q1(e,n,t[n]);if(jm)for(var n of jm(t))N_.call(t,n)&&Q1(e,n,t[n]);return e},st=(e,t)=>$U(e,RU(t));var Ft=(e,t)=>{var n={};for(var r in e)F_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jm)for(var r of jm(e))t.indexOf(r)<0&&N_.call(e,r)&&(n[r]=e[r]);return n};var bi=(e,t,n)=>(Q1(e,typeof t!="symbol"?t+"":t,n),n);var ot=(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())}),OU=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[Y1("asyncIterator")],n=!1,r,o={};return t==null?(t=e[Y1("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 OU(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[Y1("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function DU(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 ln=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cA(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 uA={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 Eh=Symbol.for("react.element"),AU=Symbol.for("react.portal"),LU=Symbol.for("react.fragment"),FU=Symbol.for("react.strict_mode"),NU=Symbol.for("react.profiler"),BU=Symbol.for("react.provider"),zU=Symbol.for("react.context"),VU=Symbol.for("react.forward_ref"),jU=Symbol.for("react.suspense"),HU=Symbol.for("react.memo"),UU=Symbol.for("react.lazy"),B_=Symbol.iterator;function WU(e){return e===null||typeof e!="object"?null:(e=B_&&e[B_]||e["@@iterator"],typeof e=="function"?e:null)}var dA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fA=Object.assign,pA={};function Fd(e,t,n){this.props=e,this.context=t,this.refs=pA,this.updater=n||dA}Fd.prototype.isReactComponent={};Fd.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")};Fd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hA(){}hA.prototype=Fd.prototype;function AS(e,t,n){this.props=e,this.context=t,this.refs=pA,this.updater=n||dA}var LS=AS.prototype=new hA;LS.constructor=AS;fA(LS,Fd.prototype);LS.isPureReactComponent=!0;var z_=Array.isArray,mA=Object.prototype.hasOwnProperty,FS={current:null},gA={key:!0,ref:!0,__self:!0,__source:!0};function vA(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)mA.call(t,r)&&!gA.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:Eh,type:e,key:s,ref:i,props:o,_owner:FS.current}}function GU(e,t){return{$$typeof:Eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function NS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eh}function KU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var V_=/\/+/g;function X1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KU(""+e.key):t.toString(36)}function Tg(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 Eh:case AU:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+X1(i,0):r,z_(o)?(n="",e!=null&&(n=e.replace(V_,"$&/")+"/"),Tg(o,t,n,"",function(u){return u})):o!=null&&(NS(o)&&(o=GU(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(V_,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",z_(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+X1(s,l);i+=Tg(s,t,n,a,o)}else if(a=WU(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+X1(s,l++),i+=Tg(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 Hm(e,t,n){if(e==null)return e;var r=[],o=0;return Tg(e,r,"","",function(s){return t.call(n,s,o++)}),r}function qU(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 fo={current:null},$g={transition:null},YU={ReactCurrentDispatcher:fo,ReactCurrentBatchConfig:$g,ReactCurrentOwner:FS};Ut.Children={map:Hm,forEach:function(e,t,n){Hm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hm(e,function(){t++}),t},toArray:function(e){return Hm(e,function(t){return t})||[]},only:function(e){if(!NS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=Fd;Ut.Fragment=LU;Ut.Profiler=NU;Ut.PureComponent=AS;Ut.StrictMode=FU;Ut.Suspense=jU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YU;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=fA({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=FS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)mA.call(t,a)&&!gA.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:Eh,type:e.type,key:o,ref:s,props:r,_owner:i}};Ut.createContext=function(e){return e={$$typeof:zU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:BU,_context:e},e.Consumer=e};Ut.createElement=vA;Ut.createFactory=function(e){var t=vA.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:VU,render:e}};Ut.isValidElement=NS;Ut.lazy=function(e){return{$$typeof:UU,_payload:{_status:-1,_result:e},_init:qU}};Ut.memo=function(e,t){return{$$typeof:HU,type:e,compare:t===void 0?null:t}};Ut.startTransition=function(e){var t=$g.transition;$g.transition={};try{e()}finally{$g.transition=t}};Ut.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ut.useCallback=function(e,t){return fo.current.useCallback(e,t)};Ut.useContext=function(e){return fo.current.useContext(e)};Ut.useDebugValue=function(){};Ut.useDeferredValue=function(e){return fo.current.useDeferredValue(e)};Ut.useEffect=function(e,t){return fo.current.useEffect(e,t)};Ut.useId=function(){return fo.current.useId()};Ut.useImperativeHandle=function(e,t,n){return fo.current.useImperativeHandle(e,t,n)};Ut.useInsertionEffect=function(e,t){return fo.current.useInsertionEffect(e,t)};Ut.useLayoutEffect=function(e,t){return fo.current.useLayoutEffect(e,t)};Ut.useMemo=function(e,t){return fo.current.useMemo(e,t)};Ut.useReducer=function(e,t,n){return fo.current.useReducer(e,t,n)};Ut.useRef=function(e){return fo.current.useRef(e)};Ut.useState=function(e){return fo.current.useState(e)};Ut.useSyncExternalStore=function(e,t,n){return fo.current.useSyncExternalStore(e,t,n)};Ut.useTransition=function(){return fo.current.useTransition()};Ut.version="18.2.0";uA.exports=Ut;var c=uA.exports;const co=di(c),wc=DU({__proto__:null,default:co},[c]);var yA={exports:{}},os={},bA={exports:{}},wA={};/**
|
|
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,te=Y>>>1;K<te;){var Q=2*(K+1)-1,X=D[Q],J=Q+1,se=D[J];if(0>o(X,H))J<Y&&0>o(se,X)?(D[K]=se,D[J]=H,K=J):(D[K]=X,D[Q]=H,K=Q);else if(J<Y&&0>o(se,H))D[K]=se,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,m=3,v=!1,y=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=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 E(D){if(g=!1,S(D),!y)if(n(a)!==null)y=!0,F(_);else{var N=n(u);N!==null&&j(E,N.startTime-D)}}function _(D,N){y=!1,g&&(g=!1,w(R),R=-1),v=!0;var H=m;try{for(S(N),p=n(a);p!==null&&(!(p.expirationTime>N)||D&&!L());){var K=p.callback;if(typeof K=="function"){p.callback=null,m=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 te=!0;else{var Q=n(u);Q!==null&&j(E,Q.startTime-N),te=!1}return te}finally{p=null,m=H,v=!1}}var k=!1,I=null,R=-1,A=5,$=-1;function L(){return!(e.unstable_now()-$<A)}function B(){if(I!==null){var D=e.unstable_now();$=D;var N=!0;try{N=I(!0,D)}finally{N?z():(k=!1,I=null)}}else k=!1}var z;if(typeof b=="function")z=function(){b(B)};else if(typeof MessageChannel!="undefined"){var M=new MessageChannel,T=M.port2;M.port1.onmessage=B,z=function(){T.postMessage(null)}}else z=function(){C(B,0)};function F(D){I=D,k||(k=!0,z())}function j(D,N){R=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(_))},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"):A=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var N=3;break;default:N=m}var H=m;m=N;try{return D()}finally{m=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=m;m=D;try{return N()}finally{m=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)&&(g?(w(R),R=-1):g=!0,j(E,H-K))):(D.sortIndex=Y,t(a,D),y||v||(y=!0,F(_))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var N=m;return function(){var H=m;m=N;try{return D.apply(this,arguments)}finally{m=H}}}})(wA);bA.exports=wA;var QU=bA.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 CA=c,Zo=QU;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 xA=new Set,Lp={};function Nc(e,t){dd(e,t),dd(e+"Capture",t)}function dd(e,t){for(Lp[e]=t,e=0;e<t.length;e++)xA.add(t[e])}var gl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),EC=Object.prototype.hasOwnProperty,XU=/^[: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]*$/,j_={},H_={};function ZU(e){return EC.call(H_,e)?!0:EC.call(j_,e)?!1:XU.test(e)?H_[e]=!0:(j_[e]=!0,!1)}function JU(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 eW(e,t,n,r){if(t===null||typeof t=="undefined"||JU(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 po(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 Fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fr[e]=new po(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fr[t]=new po(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fr[e]=new po(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fr[e]=new po(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){Fr[e]=new po(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fr[e]=new po(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fr[e]=new po(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fr[e]=new po(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fr[e]=new po(e,5,!1,e.toLowerCase(),null,!1,!1)});var BS=/[\-:]([a-z])/g;function zS(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(BS,zS);Fr[t]=new po(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(BS,zS);Fr[t]=new po(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(BS,zS);Fr[t]=new po(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fr[e]=new po(e,1,!1,e.toLowerCase(),null,!1,!1)});Fr.xlinkHref=new po("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fr[e]=new po(e,1,!1,e.toLowerCase(),null,!0,!0)});function VS(e,t,n,r){var o=Fr.hasOwnProperty(t)?Fr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eW(t,n,o,r)&&(n=null),r||o===null?ZU(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 kl=CA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Um=Symbol.for("react.element"),Tu=Symbol.for("react.portal"),$u=Symbol.for("react.fragment"),jS=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),SA=Symbol.for("react.provider"),PA=Symbol.for("react.context"),HS=Symbol.for("react.forward_ref"),MC=Symbol.for("react.suspense"),_C=Symbol.for("react.suspense_list"),US=Symbol.for("react.memo"),Ql=Symbol.for("react.lazy"),kA=Symbol.for("react.offscreen"),U_=Symbol.iterator;function _f(e){return e===null||typeof e!="object"?null:(e=U_&&e[U_]||e["@@iterator"],typeof e=="function"?e:null)}var Hn=Object.assign,Z1;function Jf(e){if(Z1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Z1=t&&t[1]||""}return`
|
|
26
|
+
`+Z1+e}var J1=!1;function ew(e,t){if(!e||J1)return"";J1=!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{J1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jf(e):""}function tW(e){switch(e.tag){case 5:return Jf(e.type);case 16:return Jf("Lazy");case 13:return Jf("Suspense");case 19:return Jf("SuspenseList");case 0:case 2:case 15:return e=ew(e.type,!1),e;case 11:return e=ew(e.type.render,!1),e;case 1:return e=ew(e.type,!0),e;default:return""}}function TC(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 $u:return"Fragment";case Tu:return"Portal";case IC:return"Profiler";case jS:return"StrictMode";case MC:return"Suspense";case _C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PA:return(e.displayName||"Context")+".Consumer";case SA:return(e._context.displayName||"Context")+".Provider";case HS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case US:return t=e.displayName||null,t!==null?t:TC(e.type)||"Memo";case Ql:t=e._payload,e=e._init;try{return TC(e(t))}catch(n){}}return null}function nW(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 TC(t);case 8:return t===jS?"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 Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function EA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rW(e){var t=EA(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 Wm(e){e._valueTracker||(e._valueTracker=rW(e))}function IA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=EA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sv(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 $C(e,t){var n=t.checked;return Hn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function W_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sa(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 MA(e,t){t=t.checked,t!=null&&VS(e,"checked",t,!1)}function RC(e,t){MA(e,t);var n=Sa(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")?OC(e,t.type,n):t.hasOwnProperty("defaultValue")&&OC(e,t.type,Sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function G_(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 OC(e,t,n){(t!=="number"||sv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ep=Array.isArray;function Yu(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=""+Sa(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 DC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return Hn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function K_(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(ep(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sa(n)}}function _A(e,t){var n=Sa(t.value),r=Sa(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 q_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function TA(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 AC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?TA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gm,$A=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(Gm=Gm||document.createElement("div"),Gm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hp={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},oW=["Webkit","ms","Moz","O"];Object.keys(hp).forEach(function(e){oW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hp[t]=hp[e]})});function RA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hp.hasOwnProperty(e)&&hp[e]?(""+t).trim():t+"px"}function OA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=RA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sW=Hn({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 LC(e,t){if(t){if(sW[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 FC(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 NC=null;function WS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var BC=null,Qu=null,Xu=null;function Y_(e){if(e=_h(e)){if(typeof BC!="function")throw Error(He(280));var t=e.stateNode;t&&(t=Py(t),BC(e.stateNode,e.type,t))}}function DA(e){Qu?Xu?Xu.push(e):Xu=[e]:Qu=e}function AA(){if(Qu){var e=Qu,t=Xu;if(Xu=Qu=null,Y_(e),t)for(e=0;e<t.length;e++)Y_(t[e])}}function LA(e,t){return e(t)}function FA(){}var tw=!1;function NA(e,t,n){if(tw)return e(t,n);tw=!0;try{return LA(e,t,n)}finally{tw=!1,(Qu!==null||Xu!==null)&&(FA(),AA())}}function Np(e,t){var n=e.stateNode;if(n===null)return null;var r=Py(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 zC=!1;if(gl)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){zC=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch(e){zC=!1}function iW(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 mp=!1,iv=null,lv=!1,VC=null,lW={onError:function(e){mp=!0,iv=e}};function aW(e,t,n,r,o,s,i,l,a){mp=!1,iv=null,iW.apply(lW,arguments)}function cW(e,t,n,r,o,s,i,l,a){if(aW.apply(this,arguments),mp){if(mp){var u=iv;mp=!1,iv=null}else throw Error(He(198));lv||(lv=!0,VC=u)}}function Bc(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 BA(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 Q_(e){if(Bc(e)!==e)throw Error(He(188))}function uW(e){var t=e.alternate;if(!t){if(t=Bc(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 Q_(o),e;if(s===r)return Q_(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 zA(e){return e=uW(e),e!==null?VA(e):null}function VA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=VA(e);if(t!==null)return t;e=e.sibling}return null}var jA=Zo.unstable_scheduleCallback,X_=Zo.unstable_cancelCallback,dW=Zo.unstable_shouldYield,fW=Zo.unstable_requestPaint,tr=Zo.unstable_now,pW=Zo.unstable_getCurrentPriorityLevel,GS=Zo.unstable_ImmediatePriority,HA=Zo.unstable_UserBlockingPriority,av=Zo.unstable_NormalPriority,hW=Zo.unstable_LowPriority,UA=Zo.unstable_IdlePriority,wy=null,_i=null;function mW(e){if(_i&&typeof _i.onCommitFiberRoot=="function")try{_i.onCommitFiberRoot(wy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var si=Math.clz32?Math.clz32:yW,gW=Math.log,vW=Math.LN2;function yW(e){return e>>>=0,e===0?32:31-(gW(e)/vW|0)|0}var Km=64,qm=4194304;function tp(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 cv(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=tp(l):(s&=i,s!==0&&(r=tp(s)))}else i=n&~o,i!==0?r=tp(i):s!==0&&(r=tp(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-si(t),o=1<<n,r|=e[n],t&=~o;return r}function bW(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 wW(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-si(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=bW(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function jC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function WA(){var e=Km;return Km<<=1,!(Km&4194240)&&(Km=64),e}function nw(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ih(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-si(t),e[t]=n}function CW(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-si(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-si(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var dn=0;function GA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var KA,qS,qA,YA,QA,HC=!1,Ym=[],da=null,fa=null,pa=null,Bp=new Map,zp=new Map,ta=[],xW="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 Z_(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":Bp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zp.delete(t.pointerId)}}function $f(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=_h(t),t!==null&&qS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function SW(e,t,n,r,o){switch(t){case"focusin":return da=$f(da,e,t,n,r,o),!0;case"dragenter":return fa=$f(fa,e,t,n,r,o),!0;case"mouseover":return pa=$f(pa,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Bp.set(s,$f(Bp.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,zp.set(s,$f(zp.get(s)||null,e,t,n,r,o)),!0}return!1}function XA(e){var t=sc(e.target);if(t!==null){var n=Bc(t);if(n!==null){if(t=n.tag,t===13){if(t=BA(n),t!==null){e.blockedOn=t,QA(e.priority,function(){qA(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 Rg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=UC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);NC=r,n.target.dispatchEvent(r),NC=null}else return t=_h(n),t!==null&&qS(t),e.blockedOn=n,!1;t.shift()}return!0}function J_(e,t,n){Rg(e)&&n.delete(t)}function PW(){HC=!1,da!==null&&Rg(da)&&(da=null),fa!==null&&Rg(fa)&&(fa=null),pa!==null&&Rg(pa)&&(pa=null),Bp.forEach(J_),zp.forEach(J_)}function Rf(e,t){e.blockedOn===t&&(e.blockedOn=null,HC||(HC=!0,Zo.unstable_scheduleCallback(Zo.unstable_NormalPriority,PW)))}function Vp(e){function t(o){return Rf(o,e)}if(0<Ym.length){Rf(Ym[0],e);for(var n=1;n<Ym.length;n++){var r=Ym[n];r.blockedOn===e&&(r.blockedOn=null)}}for(da!==null&&Rf(da,e),fa!==null&&Rf(fa,e),pa!==null&&Rf(pa,e),Bp.forEach(t),zp.forEach(t),n=0;n<ta.length;n++)r=ta[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ta.length&&(n=ta[0],n.blockedOn===null);)XA(n),n.blockedOn===null&&ta.shift()}var Zu=kl.ReactCurrentBatchConfig,uv=!0;function kW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=1,YS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function EW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=4,YS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function YS(e,t,n,r){if(uv){var o=UC(e,t,n,r);if(o===null)fw(e,t,r,dv,n),Z_(e,r);else if(SW(o,e,t,n,r))r.stopPropagation();else if(Z_(e,r),t&4&&-1<xW.indexOf(e)){for(;o!==null;){var s=_h(o);if(s!==null&&KA(s),s=UC(e,t,n,r),s===null&&fw(e,t,r,dv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else fw(e,t,r,null,n)}}var dv=null;function UC(e,t,n,r){if(dv=null,e=WS(r),e=sc(e),e!==null)if(t=Bc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=BA(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 dv=e,null}function ZA(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(pW()){case GS:return 1;case HA:return 4;case av:case hW:return 16;case UA:return 536870912;default:return 16}default:return 16}}var oa=null,QS=null,Og=null;function JA(){if(Og)return Og;var e,t=QS,n=t.length,r,o="value"in oa?oa.value:oa.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 Og=o.slice(e,1<r?1-r:void 0)}function Dg(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 Qm(){return!0}function eT(){return!1}function ss(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)?Qm:eT,this.isPropagationStopped=eT,this}return Hn(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=Qm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qm)},persist:function(){},isPersistent:Qm}),t}var Nd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},XS=ss(Nd),Mh=Hn({},Nd,{view:0,detail:0}),IW=ss(Mh),rw,ow,Of,Cy=Hn({},Mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ZS,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!==Of&&(Of&&e.type==="mousemove"?(rw=e.screenX-Of.screenX,ow=e.screenY-Of.screenY):ow=rw=0,Of=e),rw)},movementY:function(e){return"movementY"in e?e.movementY:ow}}),tT=ss(Cy),MW=Hn({},Cy,{dataTransfer:0}),_W=ss(MW),TW=Hn({},Mh,{relatedTarget:0}),sw=ss(TW),$W=Hn({},Nd,{animationName:0,elapsedTime:0,pseudoElement:0}),RW=ss($W),OW=Hn({},Nd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DW=ss(OW),AW=Hn({},Nd,{data:0}),nT=ss(AW),LW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FW={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"},NW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NW[e])?!!t[e]:!1}function ZS(){return BW}var zW=Hn({},Mh,{key:function(e){if(e.key){var t=LW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ZS,charCode:function(e){return e.type==="keypress"?Dg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VW=ss(zW),jW=Hn({},Cy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rT=ss(jW),HW=Hn({},Mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ZS}),UW=ss(HW),WW=Hn({},Nd,{propertyName:0,elapsedTime:0,pseudoElement:0}),GW=ss(WW),KW=Hn({},Cy,{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}),qW=ss(KW),YW=[9,13,27,32],JS=gl&&"CompositionEvent"in window,gp=null;gl&&"documentMode"in document&&(gp=document.documentMode);var QW=gl&&"TextEvent"in window&&!gp,eL=gl&&(!JS||gp&&8<gp&&11>=gp),oT=String.fromCharCode(32),sT=!1;function tL(e,t){switch(e){case"keyup":return YW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function XW(e,t){switch(e){case"compositionend":return nL(t);case"keypress":return t.which!==32?null:(sT=!0,oT);case"textInput":return e=t.data,e===oT&&sT?null:e;default:return null}}function ZW(e,t){if(Ru)return e==="compositionend"||!JS&&tL(e,t)?(e=JA(),Og=QS=oa=null,Ru=!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 eL&&t.locale!=="ko"?null:t.data;default:return null}}var JW={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 iT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JW[e.type]:t==="textarea"}function rL(e,t,n,r){DA(r),t=fv(t,"onChange"),0<t.length&&(n=new XS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vp=null,jp=null;function eG(e){hL(e,0)}function xy(e){var t=Au(e);if(IA(t))return e}function tG(e,t){if(e==="change")return t}var oL=!1;if(gl){var iw;if(gl){var lw="oninput"in document;if(!lw){var lT=document.createElement("div");lT.setAttribute("oninput","return;"),lw=typeof lT.oninput=="function"}iw=lw}else iw=!1;oL=iw&&(!document.documentMode||9<document.documentMode)}function aT(){vp&&(vp.detachEvent("onpropertychange",sL),jp=vp=null)}function sL(e){if(e.propertyName==="value"&&xy(jp)){var t=[];rL(t,jp,e,WS(e)),NA(eG,t)}}function nG(e,t,n){e==="focusin"?(aT(),vp=t,jp=n,vp.attachEvent("onpropertychange",sL)):e==="focusout"&&aT()}function rG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xy(jp)}function oG(e,t){if(e==="click")return xy(t)}function sG(e,t){if(e==="input"||e==="change")return xy(t)}function iG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ci=typeof Object.is=="function"?Object.is:iG;function Hp(e,t){if(ci(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(!EC.call(t,o)||!ci(e[o],t[o]))return!1}return!0}function cT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uT(e,t){var n=cT(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=cT(n)}}function iL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lL(){for(var e=window,t=sv();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=sv(e.document)}return t}function eP(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 lG(e){var t=lL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&iL(n.ownerDocument.documentElement,n)){if(r!==null&&eP(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=uT(n,s);var i=uT(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 aG=gl&&"documentMode"in document&&11>=document.documentMode,Ou=null,WC=null,yp=null,GC=!1;function dT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;GC||Ou==null||Ou!==sv(r)||(r=Ou,"selectionStart"in r&&eP(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}),yp&&Hp(yp,r)||(yp=r,r=fv(WC,"onSelect"),0<r.length&&(t=new XS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ou)))}function Xm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Du={animationend:Xm("Animation","AnimationEnd"),animationiteration:Xm("Animation","AnimationIteration"),animationstart:Xm("Animation","AnimationStart"),transitionend:Xm("Transition","TransitionEnd")},aw={},aL={};gl&&(aL=document.createElement("div").style,"AnimationEvent"in window||(delete Du.animationend.animation,delete Du.animationiteration.animation,delete Du.animationstart.animation),"TransitionEvent"in window||delete Du.transitionend.transition);function Sy(e){if(aw[e])return aw[e];if(!Du[e])return e;var t=Du[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in aL)return aw[e]=t[n];return e}var cL=Sy("animationend"),uL=Sy("animationiteration"),dL=Sy("animationstart"),fL=Sy("transitionend"),pL=new Map,fT="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 Ra(e,t){pL.set(e,t),Nc(t,[e])}for(var cw=0;cw<fT.length;cw++){var uw=fT[cw],cG=uw.toLowerCase(),uG=uw[0].toUpperCase()+uw.slice(1);Ra(cG,"on"+uG)}Ra(cL,"onAnimationEnd");Ra(uL,"onAnimationIteration");Ra(dL,"onAnimationStart");Ra("dblclick","onDoubleClick");Ra("focusin","onFocus");Ra("focusout","onBlur");Ra(fL,"onTransitionEnd");dd("onMouseEnter",["mouseout","mouseover"]);dd("onMouseLeave",["mouseout","mouseover"]);dd("onPointerEnter",["pointerout","pointerover"]);dd("onPointerLeave",["pointerout","pointerover"]);Nc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var np="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(" "),dG=new Set("cancel close invalid load scroll toggle".split(" ").concat(np));function pT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cW(r,t,void 0,e),e.currentTarget=null}function hL(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;pT(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;pT(o,l,u),s=a}}}if(lv)throw e=VC,lv=!1,VC=null,e}function En(e,t){var n=t[XC];n===void 0&&(n=t[XC]=new Set);var r=e+"__bubble";n.has(r)||(mL(t,e,2,!1),n.add(r))}function dw(e,t,n){var r=0;t&&(r|=4),mL(n,e,r,t)}var Zm="_reactListening"+Math.random().toString(36).slice(2);function Up(e){if(!e[Zm]){e[Zm]=!0,xA.forEach(function(n){n!=="selectionchange"&&(dG.has(n)||dw(n,!1,e),dw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zm]||(t[Zm]=!0,dw("selectionchange",!1,t))}}function mL(e,t,n,r){switch(ZA(t)){case 1:var o=kW;break;case 4:o=EW;break;default:o=YS}n=o.bind(null,t,n,e),o=void 0,!zC||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 fw(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=sc(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}NA(function(){var u=s,f=WS(n),p=[];e:{var m=pL.get(e);if(m!==void 0){var v=XS,y=e;switch(e){case"keypress":if(Dg(n)===0)break e;case"keydown":case"keyup":v=VW;break;case"focusin":y="focus",v=sw;break;case"focusout":y="blur",v=sw;break;case"beforeblur":case"afterblur":v=sw;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=tT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=_W;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=UW;break;case cL:case uL:case dL:v=RW;break;case fL:v=GW;break;case"scroll":v=IW;break;case"wheel":v=qW;break;case"copy":case"cut":case"paste":v=DW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=rT}var g=(t&4)!==0,C=!g&&e==="scroll",w=g?m!==null?m+"Capture":null:m;g=[];for(var b=u,S;b!==null;){S=b;var E=S.stateNode;if(S.tag===5&&E!==null&&(S=E,w!==null&&(E=Np(b,w),E!=null&&g.push(Wp(b,E,S)))),C)break;b=b.return}0<g.length&&(m=new v(m,y,null,n,f),p.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==NC&&(y=n.relatedTarget||n.fromElement)&&(sc(y)||y[vl]))break e;if((v||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?sc(y):null,y!==null&&(C=Bc(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=u),v!==y)){if(g=tT,E="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=rT,E="onPointerLeave",w="onPointerEnter",b="pointer"),C=v==null?m:Au(v),S=y==null?m:Au(y),m=new g(E,b+"leave",v,n,f),m.target=C,m.relatedTarget=S,E=null,sc(f)===u&&(g=new g(w,b+"enter",y,n,f),g.target=S,g.relatedTarget=C,E=g),C=E,v&&y)t:{for(g=v,w=y,b=0,S=g;S;S=lu(S))b++;for(S=0,E=w;E;E=lu(E))S++;for(;0<b-S;)g=lu(g),b--;for(;0<S-b;)w=lu(w),S--;for(;b--;){if(g===w||w!==null&&g===w.alternate)break t;g=lu(g),w=lu(w)}g=null}else g=null;v!==null&&hT(p,m,v,g,!1),y!==null&&C!==null&&hT(p,C,y,g,!0)}}e:{if(m=u?Au(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var _=tG;else if(iT(m))if(oL)_=sG;else{_=rG;var k=nG}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(_=oG);if(_&&(_=_(e,u))){rL(p,_,n,f);break e}k&&k(e,m,u),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&OC(m,"number",m.value)}switch(k=u?Au(u):window,e){case"focusin":(iT(k)||k.contentEditable==="true")&&(Ou=k,WC=u,yp=null);break;case"focusout":yp=WC=Ou=null;break;case"mousedown":GC=!0;break;case"contextmenu":case"mouseup":case"dragend":GC=!1,dT(p,n,f);break;case"selectionchange":if(aG)break;case"keydown":case"keyup":dT(p,n,f)}var I;if(JS)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Ru?tL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(eL&&n.locale!=="ko"&&(Ru||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ru&&(I=JA()):(oa=f,QS="value"in oa?oa.value:oa.textContent,Ru=!0)),k=fv(u,R),0<k.length&&(R=new nT(R,e,null,n,f),p.push({event:R,listeners:k}),I?R.data=I:(I=nL(n),I!==null&&(R.data=I)))),(I=QW?XW(e,n):ZW(e,n))&&(u=fv(u,"onBeforeInput"),0<u.length&&(f=new nT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=I))}hL(p,t)})}function Wp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Np(e,n),s!=null&&r.unshift(Wp(e,s,o)),s=Np(e,t),s!=null&&r.push(Wp(e,s,o))),e=e.return}return r}function lu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hT(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=Np(n,s),a!=null&&i.unshift(Wp(n,a,l))):o||(a=Np(n,s),a!=null&&i.push(Wp(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var fG=/\r\n?/g,pG=/\u0000|\uFFFD/g;function mT(e){return(typeof e=="string"?e:""+e).replace(fG,`
|
|
30
|
+
`).replace(pG,"")}function Jm(e,t,n){if(t=mT(t),mT(e)!==t&&n)throw Error(He(425))}function pv(){}var KC=null,qC=null;function YC(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 QC=typeof setTimeout=="function"?setTimeout:void 0,hG=typeof clearTimeout=="function"?clearTimeout:void 0,gT=typeof Promise=="function"?Promise:void 0,mG=typeof queueMicrotask=="function"?queueMicrotask:typeof gT!="undefined"?function(e){return gT.resolve(null).then(e).catch(gG)}:QC;function gG(e){setTimeout(function(){throw e})}function pw(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),Vp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Vp(t)}function ha(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 vT(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 Bd=Math.random().toString(36).slice(2),Ii="__reactFiber$"+Bd,Gp="__reactProps$"+Bd,vl="__reactContainer$"+Bd,XC="__reactEvents$"+Bd,vG="__reactListeners$"+Bd,yG="__reactHandles$"+Bd;function sc(e){var t=e[Ii];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vl]||n[Ii]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vT(e);e!==null;){if(n=e[Ii])return n;e=vT(e)}return t}e=n,n=e.parentNode}return null}function _h(e){return e=e[Ii]||e[vl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Au(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function Py(e){return e[Gp]||null}var ZC=[],Lu=-1;function Oa(e){return{current:e}}function Mn(e){0>Lu||(e.current=ZC[Lu],ZC[Lu]=null,Lu--)}function xn(e,t){Lu++,ZC[Lu]=e.current,e.current=t}var Pa={},Zr=Oa(Pa),ko=Oa(!1),Cc=Pa;function fd(e,t){var n=e.type.contextTypes;if(!n)return Pa;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 Eo(e){return e=e.childContextTypes,e!=null}function hv(){Mn(ko),Mn(Zr)}function yT(e,t,n){if(Zr.current!==Pa)throw Error(He(168));xn(Zr,t),xn(ko,n)}function gL(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,nW(e)||"Unknown",o));return Hn({},n,r)}function mv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pa,Cc=Zr.current,xn(Zr,e),xn(ko,ko.current),!0}function bT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=gL(e,t,Cc),r.__reactInternalMemoizedMergedChildContext=e,Mn(ko),Mn(Zr),xn(Zr,e)):Mn(ko),xn(ko,n)}var sl=null,ky=!1,hw=!1;function vL(e){sl===null?sl=[e]:sl.push(e)}function bG(e){ky=!0,vL(e)}function Da(){if(!hw&&sl!==null){hw=!0;var e=0,t=dn;try{var n=sl;for(dn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sl=null,ky=!1}catch(o){throw sl!==null&&(sl=sl.slice(e+1)),jA(GS,Da),o}finally{dn=t,hw=!1}}return null}var Fu=[],Nu=0,gv=null,vv=0,ks=[],Es=0,xc=null,cl=1,ul="";function ec(e,t){Fu[Nu++]=vv,Fu[Nu++]=gv,gv=e,vv=t}function yL(e,t,n){ks[Es++]=cl,ks[Es++]=ul,ks[Es++]=xc,xc=e;var r=cl;e=ul;var o=32-si(r)-1;r&=~(1<<o),n+=1;var s=32-si(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,cl=1<<32-si(t)+o|n<<o|r,ul=s+e}else cl=1<<s|n<<o|r,ul=e}function tP(e){e.return!==null&&(ec(e,1),yL(e,1,0))}function nP(e){for(;e===gv;)gv=Fu[--Nu],Fu[Nu]=null,vv=Fu[--Nu],Fu[Nu]=null;for(;e===xc;)xc=ks[--Es],ks[Es]=null,ul=ks[--Es],ks[Es]=null,cl=ks[--Es],ks[Es]=null}var Yo=null,qo=null,An=!1,Js=null;function bL(e,t){var n=Ms(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 wT(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,Yo=e,qo=ha(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yo=e,qo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xc!==null?{id:cl,overflow:ul}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ms(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yo=e,qo=null,!0):!1;default:return!1}}function JC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ex(e){if(An){var t=qo;if(t){var n=t;if(!wT(e,t)){if(JC(e))throw Error(He(418));t=ha(n.nextSibling);var r=Yo;t&&wT(e,t)?bL(r,n):(e.flags=e.flags&-4097|2,An=!1,Yo=e)}}else{if(JC(e))throw Error(He(418));e.flags=e.flags&-4097|2,An=!1,Yo=e}}}function CT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yo=e}function eg(e){if(e!==Yo)return!1;if(!An)return CT(e),An=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!YC(e.type,e.memoizedProps)),t&&(t=qo)){if(JC(e))throw wL(),Error(He(418));for(;t;)bL(e,t),t=ha(t.nextSibling)}if(CT(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){qo=ha(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qo=null}}else qo=Yo?ha(e.stateNode.nextSibling):null;return!0}function wL(){for(var e=qo;e;)e=ha(e.nextSibling)}function pd(){qo=Yo=null,An=!1}function rP(e){Js===null?Js=[e]:Js.push(e)}var wG=kl.ReactCurrentBatchConfig;function Qs(e,t){if(e&&e.defaultProps){t=Hn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var yv=Oa(null),bv=null,Bu=null,oP=null;function sP(){oP=Bu=bv=null}function iP(e){var t=yv.current;Mn(yv),e._currentValue=t}function tx(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 Ju(e,t){bv=e,oP=Bu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Po=!0),e.firstContext=null)}function Rs(e){var t=e._currentValue;if(oP!==e)if(e={context:e,memoizedValue:t,next:null},Bu===null){if(bv===null)throw Error(He(308));Bu=e,bv.dependencies={lanes:0,firstContext:e}}else Bu=Bu.next=e;return t}var ic=null;function lP(e){ic===null?ic=[e]:ic.push(e)}function CL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,lP(t)):(n.next=o.next,o.next=n),t.interleaved=n,yl(e,r)}function yl(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 Xl=!1;function aP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xL(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 pl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ma(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,yl(e,n)}return o=r.interleaved,o===null?(t.next=t,lP(r)):(t.next=o.next,o.next=t),r.interleaved=t,yl(e,n)}function Ag(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 xT(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 wv(e,t,n,r){var o=e.updateQueue;Xl=!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 m=l.lane,v=l.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,g=l;switch(m=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){p=y.call(v,p,m);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(v,p,m):y,m==null)break e;p=Hn({},p,m);break e;case 2:Xl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=v,a=p):f=f.next=v,i|=m;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;m=l,l=m.next,m.next=null,o.lastBaseUpdate=m,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);Pc|=i,e.lanes=i,e.memoizedState=p}}function ST(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 SL=new CA.Component().refs;function nx(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Hn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ey={isMounted:function(e){return(e=e._reactInternals)?Bc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uo(),o=va(e),s=pl(r,o);s.payload=t,n!=null&&(s.callback=n),t=ma(e,s,o),t!==null&&(ii(t,e,o,r),Ag(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uo(),o=va(e),s=pl(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ma(e,s,o),t!==null&&(ii(t,e,o,r),Ag(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uo(),r=va(e),o=pl(n,r);o.tag=2,t!=null&&(o.callback=t),t=ma(e,o,r),t!==null&&(ii(t,e,r,n),Ag(t,e,r))}};function PT(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?!Hp(n,r)||!Hp(o,s):!0}function PL(e,t,n){var r=!1,o=Pa,s=t.contextType;return typeof s=="object"&&s!==null?s=Rs(s):(o=Eo(t)?Cc:Zr.current,r=t.contextTypes,s=(r=r!=null)?fd(e,o):Pa),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ey,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function kT(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&&Ey.enqueueReplaceState(t,t.state,null)}function rx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=SL,aP(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Rs(s):(s=Eo(t)?Cc:Zr.current,o.context=fd(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(nx(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&&Ey.enqueueReplaceState(o,o.state,null),wv(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Df(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===SL&&(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 tg(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ET(e){var t=e._init;return t(e._payload)}function kL(e){function t(w,b){if(e){var S=w.deletions;S===null?(w.deletions=[b],w.flags|=16):S.push(b)}}function n(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function r(w,b){for(w=new Map;b!==null;)b.key!==null?w.set(b.key,b):w.set(b.index,b),b=b.sibling;return w}function o(w,b){return w=ya(w,b),w.index=0,w.sibling=null,w}function s(w,b,S){return w.index=S,e?(S=w.alternate,S!==null?(S=S.index,S<b?(w.flags|=2,b):S):(w.flags|=2,b)):(w.flags|=1048576,b)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function l(w,b,S,E){return b===null||b.tag!==6?(b=Cw(S,w.mode,E),b.return=w,b):(b=o(b,S),b.return=w,b)}function a(w,b,S,E){var _=S.type;return _===$u?f(w,b,S.props.children,E,S.key):b!==null&&(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ql&&ET(_)===b.type)?(E=o(b,S.props),E.ref=Df(w,b,S),E.return=w,E):(E=Vg(S.type,S.key,S.props,null,w.mode,E),E.ref=Df(w,b,S),E.return=w,E)}function u(w,b,S,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==S.containerInfo||b.stateNode.implementation!==S.implementation?(b=xw(S,w.mode,E),b.return=w,b):(b=o(b,S.children||[]),b.return=w,b)}function f(w,b,S,E,_){return b===null||b.tag!==7?(b=fc(S,w.mode,E,_),b.return=w,b):(b=o(b,S),b.return=w,b)}function p(w,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Cw(""+b,w.mode,S),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Um:return S=Vg(b.type,b.key,b.props,null,w.mode,S),S.ref=Df(w,null,b),S.return=w,S;case Tu:return b=xw(b,w.mode,S),b.return=w,b;case Ql:var E=b._init;return p(w,E(b._payload),S)}if(ep(b)||_f(b))return b=fc(b,w.mode,S,null),b.return=w,b;tg(w,b)}return null}function m(w,b,S,E){var _=b!==null?b.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return _!==null?null:l(w,b,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Um:return S.key===_?a(w,b,S,E):null;case Tu:return S.key===_?u(w,b,S,E):null;case Ql:return _=S._init,m(w,b,_(S._payload),E)}if(ep(S)||_f(S))return _!==null?null:f(w,b,S,E,null);tg(w,S)}return null}function v(w,b,S,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return w=w.get(S)||null,l(b,w,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Um:return w=w.get(E.key===null?S:E.key)||null,a(b,w,E,_);case Tu:return w=w.get(E.key===null?S:E.key)||null,u(b,w,E,_);case Ql:var k=E._init;return v(w,b,S,k(E._payload),_)}if(ep(E)||_f(E))return w=w.get(S)||null,f(b,w,E,_,null);tg(b,E)}return null}function y(w,b,S,E){for(var _=null,k=null,I=b,R=b=0,A=null;I!==null&&R<S.length;R++){I.index>R?(A=I,I=null):A=I.sibling;var $=m(w,I,S[R],E);if($===null){I===null&&(I=A);break}e&&I&&$.alternate===null&&t(w,I),b=s($,b,R),k===null?_=$:k.sibling=$,k=$,I=A}if(R===S.length)return n(w,I),An&&ec(w,R),_;if(I===null){for(;R<S.length;R++)I=p(w,S[R],E),I!==null&&(b=s(I,b,R),k===null?_=I:k.sibling=I,k=I);return An&&ec(w,R),_}for(I=r(w,I);R<S.length;R++)A=v(I,w,R,S[R],E),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?R:A.key),b=s(A,b,R),k===null?_=A:k.sibling=A,k=A);return e&&I.forEach(function(L){return t(w,L)}),An&&ec(w,R),_}function g(w,b,S,E){var _=_f(S);if(typeof _!="function")throw Error(He(150));if(S=_.call(S),S==null)throw Error(He(151));for(var k=_=null,I=b,R=b=0,A=null,$=S.next();I!==null&&!$.done;R++,$=S.next()){I.index>R?(A=I,I=null):A=I.sibling;var L=m(w,I,$.value,E);if(L===null){I===null&&(I=A);break}e&&I&&L.alternate===null&&t(w,I),b=s(L,b,R),k===null?_=L:k.sibling=L,k=L,I=A}if($.done)return n(w,I),An&&ec(w,R),_;if(I===null){for(;!$.done;R++,$=S.next())$=p(w,$.value,E),$!==null&&(b=s($,b,R),k===null?_=$:k.sibling=$,k=$);return An&&ec(w,R),_}for(I=r(w,I);!$.done;R++,$=S.next())$=v(I,w,R,$.value,E),$!==null&&(e&&$.alternate!==null&&I.delete($.key===null?R:$.key),b=s($,b,R),k===null?_=$:k.sibling=$,k=$);return e&&I.forEach(function(B){return t(w,B)}),An&&ec(w,R),_}function C(w,b,S,E){if(typeof S=="object"&&S!==null&&S.type===$u&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Um:e:{for(var _=S.key,k=b;k!==null;){if(k.key===_){if(_=S.type,_===$u){if(k.tag===7){n(w,k.sibling),b=o(k,S.props.children),b.return=w,w=b;break e}}else if(k.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ql&&ET(_)===k.type){n(w,k.sibling),b=o(k,S.props),b.ref=Df(w,k,S),b.return=w,w=b;break e}n(w,k);break}else t(w,k);k=k.sibling}S.type===$u?(b=fc(S.props.children,w.mode,E,S.key),b.return=w,w=b):(E=Vg(S.type,S.key,S.props,null,w.mode,E),E.ref=Df(w,b,S),E.return=w,w=E)}return i(w);case Tu:e:{for(k=S.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(w,b.sibling),b=o(b,S.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=xw(S,w.mode,E),b.return=w,w=b}return i(w);case Ql:return k=S._init,C(w,b,k(S._payload),E)}if(ep(S))return y(w,b,S,E);if(_f(S))return g(w,b,S,E);tg(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,S),b.return=w,w=b):(n(w,b),b=Cw(S,w.mode,E),b.return=w,w=b),i(w)):n(w,b)}return C}var hd=kL(!0),EL=kL(!1),Th={},Ti=Oa(Th),Kp=Oa(Th),qp=Oa(Th);function lc(e){if(e===Th)throw Error(He(174));return e}function cP(e,t){switch(xn(qp,t),xn(Kp,e),xn(Ti,Th),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:AC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=AC(t,e)}Mn(Ti),xn(Ti,t)}function md(){Mn(Ti),Mn(Kp),Mn(qp)}function IL(e){lc(qp.current);var t=lc(Ti.current),n=AC(t,e.type);t!==n&&(xn(Kp,e),xn(Ti,n))}function uP(e){Kp.current===e&&(Mn(Ti),Mn(Kp))}var zn=Oa(0);function Cv(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 mw=[];function dP(){for(var e=0;e<mw.length;e++)mw[e]._workInProgressVersionPrimary=null;mw.length=0}var Lg=kl.ReactCurrentDispatcher,gw=kl.ReactCurrentBatchConfig,Sc=0,jn=null,fr=null,Cr=null,xv=!1,bp=!1,Yp=0,CG=0;function Vr(){throw Error(He(321))}function fP(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ci(e[n],t[n]))return!1;return!0}function pP(e,t,n,r,o,s){if(Sc=s,jn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lg.current=e===null||e.memoizedState===null?kG:EG,e=n(r,o),bp){s=0;do{if(bp=!1,Yp=0,25<=s)throw Error(He(301));s+=1,Cr=fr=null,t.updateQueue=null,Lg.current=IG,e=n(r,o)}while(bp)}if(Lg.current=Sv,t=fr!==null&&fr.next!==null,Sc=0,Cr=fr=jn=null,xv=!1,t)throw Error(He(300));return e}function hP(){var e=Yp!==0;return Yp=0,e}function xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?jn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Os(){if(fr===null){var e=jn.alternate;e=e!==null?e.memoizedState:null}else e=fr.next;var t=Cr===null?jn.memoizedState:Cr.next;if(t!==null)Cr=t,fr=e;else{if(e===null)throw Error(He(310));fr=e,e={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},Cr===null?jn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function Qp(e,t){return typeof t=="function"?t(e):t}function vw(e){var t=Os(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=fr,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((Sc&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,jn.lanes|=f,Pc|=f}u=u.next}while(u!==null&&u!==s);a===null?i=r:a.next=l,ci(r,t.memoizedState)||(Po=!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,jn.lanes|=s,Pc|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yw(e){var t=Os(),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);ci(s,t.memoizedState)||(Po=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ML(){}function _L(e,t){var n=jn,r=Os(),o=t(),s=!ci(r.memoizedState,o);if(s&&(r.memoizedState=o,Po=!0),r=r.queue,mP(RL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,Xp(9,$L.bind(null,n,r,o,t),void 0,null),Sr===null)throw Error(He(349));Sc&30||TL(n,t,o)}return o}function TL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=jn.updateQueue,t===null?(t={lastEffect:null,stores:null},jn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $L(e,t,n,r){t.value=n,t.getSnapshot=r,OL(t)&&DL(e)}function RL(e,t,n){return n(function(){OL(t)&&DL(e)})}function OL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ci(e,n)}catch(r){return!0}}function DL(e){var t=yl(e,1);t!==null&&ii(t,e,1,-1)}function IT(e){var t=xi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qp,lastRenderedState:e},t.queue=e,e=e.dispatch=PG.bind(null,jn,e),[t.memoizedState,e]}function Xp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=jn.updateQueue,t===null?(t={lastEffect:null,stores:null},jn.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 AL(){return Os().memoizedState}function Fg(e,t,n,r){var o=xi();jn.flags|=e,o.memoizedState=Xp(1|t,n,void 0,r===void 0?null:r)}function Iy(e,t,n,r){var o=Os();r=r===void 0?null:r;var s=void 0;if(fr!==null){var i=fr.memoizedState;if(s=i.destroy,r!==null&&fP(r,i.deps)){o.memoizedState=Xp(t,n,s,r);return}}jn.flags|=e,o.memoizedState=Xp(1|t,n,s,r)}function MT(e,t){return Fg(8390656,8,e,t)}function mP(e,t){return Iy(2048,8,e,t)}function LL(e,t){return Iy(4,2,e,t)}function FL(e,t){return Iy(4,4,e,t)}function NL(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 BL(e,t,n){return n=n!=null?n.concat([e]):null,Iy(4,4,NL.bind(null,t,e),n)}function gP(){}function zL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function VL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jL(e,t,n){return Sc&21?(ci(n,t)||(n=WA(),jn.lanes|=n,Pc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Po=!0),e.memoizedState=n)}function xG(e,t){var n=dn;dn=n!==0&&4>n?n:4,e(!0);var r=gw.transition;gw.transition={};try{e(!1),t()}finally{dn=n,gw.transition=r}}function HL(){return Os().memoizedState}function SG(e,t,n){var r=va(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UL(e))WL(t,n);else if(n=CL(e,t,n,r),n!==null){var o=uo();ii(n,e,r,o),GL(n,t,r)}}function PG(e,t,n){var r=va(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UL(e))WL(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,ci(l,i)){var a=t.interleaved;a===null?(o.next=o,lP(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(u){}finally{}n=CL(e,t,o,r),n!==null&&(o=uo(),ii(n,e,r,o),GL(n,t,r))}}function UL(e){var t=e.alternate;return e===jn||t!==null&&t===jn}function WL(e,t){bp=xv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,KS(e,n)}}var Sv={readContext:Rs,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},kG={readContext:Rs,useCallback:function(e,t){return xi().memoizedState=[e,t===void 0?null:t],e},useContext:Rs,useEffect:MT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fg(4194308,4,NL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fg(4,2,e,t)},useMemo:function(e,t){var n=xi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xi();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=SG.bind(null,jn,e),[r.memoizedState,e]},useRef:function(e){var t=xi();return e={current:e},t.memoizedState=e},useState:IT,useDebugValue:gP,useDeferredValue:function(e){return xi().memoizedState=e},useTransition:function(){var e=IT(!1),t=e[0];return e=xG.bind(null,e[1]),xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jn,o=xi();if(An){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Sr===null)throw Error(He(349));Sc&30||TL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,MT(RL.bind(null,r,s,e),[e]),r.flags|=2048,Xp(9,$L.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=xi(),t=Sr.identifierPrefix;if(An){var n=ul,r=cl;n=(r&~(1<<32-si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=CG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},EG={readContext:Rs,useCallback:zL,useContext:Rs,useEffect:mP,useImperativeHandle:BL,useInsertionEffect:LL,useLayoutEffect:FL,useMemo:VL,useReducer:vw,useRef:AL,useState:function(){return vw(Qp)},useDebugValue:gP,useDeferredValue:function(e){var t=Os();return jL(t,fr.memoizedState,e)},useTransition:function(){var e=vw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:ML,useSyncExternalStore:_L,useId:HL,unstable_isNewReconciler:!1},IG={readContext:Rs,useCallback:zL,useContext:Rs,useEffect:mP,useImperativeHandle:BL,useInsertionEffect:LL,useLayoutEffect:FL,useMemo:VL,useReducer:yw,useRef:AL,useState:function(){return yw(Qp)},useDebugValue:gP,useDeferredValue:function(e){var t=Os();return fr===null?t.memoizedState=e:jL(t,fr.memoizedState,e)},useTransition:function(){var e=yw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:ML,useSyncExternalStore:_L,useId:HL,unstable_isNewReconciler:!1};function gd(e,t){try{var n="",r=t;do n+=tW(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 bw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ox(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var MG=typeof WeakMap=="function"?WeakMap:Map;function KL(e,t,n){n=pl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kv||(kv=!0,hx=r),ox(e,t)},n}function qL(e,t,n){n=pl(-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(){ox(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ox(e,t),typeof r!="function"&&(ga===null?ga=new Set([this]):ga.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function _T(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new MG;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=jG.bind(null,e,t,n),t.then(e,e))}function TT(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 $T(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=pl(-1,1),t.tag=2,ma(n,t,1))),n.lanes|=1),e)}var _G=kl.ReactCurrentOwner,Po=!1;function so(e,t,n,r){t.child=e===null?EL(t,null,n,r):hd(t,e.child,n,r)}function RT(e,t,n,r,o){n=n.render;var s=t.ref;return Ju(t,o),r=pP(e,t,n,r,s,o),n=hP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(An&&n&&tP(t),t.flags|=1,so(e,t,r,o),t.child)}function OT(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!PP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,YL(e,t,s,r,o)):(e=Vg(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:Hp,n(i,r)&&e.ref===t.ref)return bl(e,t,o)}return t.flags|=1,e=ya(s,r),e.ref=t.ref,e.return=t,t.child=e}function YL(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Hp(s,r)&&e.ref===t.ref)if(Po=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Po=!0);else return t.lanes=e.lanes,bl(e,t,o)}return sx(e,t,n,r,o)}function QL(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(Vu,Vo),Vo|=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(Vu,Vo),Vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xn(Vu,Vo),Vo|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xn(Vu,Vo),Vo|=r;return so(e,t,o,n),t.child}function XL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sx(e,t,n,r,o){var s=Eo(n)?Cc:Zr.current;return s=fd(t,s),Ju(t,o),n=pP(e,t,n,r,s,o),r=hP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bl(e,t,o)):(An&&r&&tP(t),t.flags|=1,so(e,t,n,o),t.child)}function DT(e,t,n,r,o){if(Eo(n)){var s=!0;mv(t)}else s=!1;if(Ju(t,o),t.stateNode===null)Ng(e,t),PL(t,n,r),rx(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=Rs(u):(u=Eo(n)?Cc:Zr.current,u=fd(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)&&kT(t,i,r,u),Xl=!1;var m=t.memoizedState;i.state=m,wv(t,r,i,o),a=t.memoizedState,l!==r||m!==a||ko.current||Xl?(typeof f=="function"&&(nx(t,n,f,r),a=t.memoizedState),(l=Xl||PT(t,n,l,r,m,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,xL(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qs(t.type,l),i.props=u,p=t.pendingProps,m=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Rs(a):(a=Eo(n)?Cc:Zr.current,a=fd(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||m!==a)&&kT(t,i,r,a),Xl=!1,m=t.memoizedState,i.state=m,wv(t,r,i,o);var y=t.memoizedState;l!==p||m!==y||ko.current||Xl?(typeof v=="function"&&(nx(t,n,v,r),y=t.memoizedState),(u=Xl||PT(t,n,u,r,m,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&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===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&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return ix(e,t,n,r,s,o)}function ix(e,t,n,r,o,s){XL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&bT(t,n,!1),bl(e,t,s);r=t.stateNode,_G.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=hd(t,e.child,null,s),t.child=hd(t,null,l,s)):so(e,t,l,s),t.memoizedState=r.state,o&&bT(t,n,!0),t.child}function ZL(e){var t=e.stateNode;t.pendingContext?yT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yT(e,t.context,!1),cP(e,t.containerInfo)}function AT(e,t,n,r,o){return pd(),rP(o),t.flags|=256,so(e,t,n,r),t.child}var lx={dehydrated:null,treeContext:null,retryLane:0};function ax(e){return{baseLanes:e,cachePool:null,transitions:null}}function JL(e,t,n){var r=t.pendingProps,o=zn.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(zn,o&1),e===null)return ex(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=Ty(i,r,0,null),e=fc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ax(n),t.memoizedState=lx,e):vP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return TG(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=ya(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=ya(l,s):(s=fc(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?ax(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=lx,r}return s=e.child,e=s.sibling,r=ya(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 vP(e,t){return t=Ty({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ng(e,t,n,r){return r!==null&&rP(r),hd(t,e.child,null,n),e=vP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function TG(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=bw(Error(He(422))),ng(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Ty({mode:"visible",children:r.children},o,0,null),s=fc(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&hd(t,e.child,null,i),t.child.memoizedState=ax(i),t.memoizedState=lx,s);if(!(t.mode&1))return ng(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=bw(s,r,void 0),ng(e,t,i,r)}if(l=(i&e.childLanes)!==0,Po||l){if(r=Sr,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,yl(e,o),ii(r,e,o,-1))}return SP(),r=bw(Error(He(421))),ng(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=HG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,qo=ha(o.nextSibling),Yo=t,An=!0,Js=null,e!==null&&(ks[Es++]=cl,ks[Es++]=ul,ks[Es++]=xc,cl=e.id,ul=e.overflow,xc=t),t=vP(t,r.children),t.flags|=4096,t)}function LT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tx(e.return,t,n)}function ww(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 eF(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(so(e,t,r.children,n),r=zn.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&<(e,n,t);else if(e.tag===19)LT(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(zn,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&&Cv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ww(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&&Cv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ww(t,!0,n,null,s);break;case"together":ww(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ng(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pc|=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=ya(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ya(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $G(e,t,n){switch(t.tag){case 3:ZL(t),pd();break;case 5:IL(t);break;case 1:Eo(t.type)&&mv(t);break;case 4:cP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xn(yv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xn(zn,zn.current&1),t.flags|=128,null):n&t.child.childLanes?JL(e,t,n):(xn(zn,zn.current&1),e=bl(e,t,n),e!==null?e.sibling:null);xn(zn,zn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return eF(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xn(zn,zn.current),r)break;return null;case 22:case 23:return t.lanes=0,QL(e,t,n)}return bl(e,t,n)}var tF,cx,nF,rF;tF=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}};cx=function(){};nF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lc(Ti.current);var s=null;switch(n){case"input":o=$C(e,o),r=$C(e,r),s=[];break;case"select":o=Hn({},o,{value:void 0}),r=Hn({},r,{value:void 0}),s=[];break;case"textarea":o=DC(e,o),r=DC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pv)}LC(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"&&(Lp.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"&&(Lp.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&En("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)}};rF=function(e,t,n,r){n!==r&&(t.flags|=4)};function Af(e,t){if(!An)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 jr(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 RG(e,t,n){var r=t.pendingProps;switch(nP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jr(t),null;case 1:return Eo(t.type)&&hv(),jr(t),null;case 3:return r=t.stateNode,md(),Mn(ko),Mn(Zr),dP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Js!==null&&(vx(Js),Js=null))),cx(e,t),jr(t),null;case 5:uP(t);var o=lc(qp.current);if(n=t.type,e!==null&&t.stateNode!=null)nF(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 jr(t),null}if(e=lc(Ti.current),eg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ii]=t,r[Gp]=s,e=(t.mode&1)!==0,n){case"dialog":En("cancel",r),En("close",r);break;case"iframe":case"object":case"embed":En("load",r);break;case"video":case"audio":for(o=0;o<np.length;o++)En(np[o],r);break;case"source":En("error",r);break;case"img":case"image":case"link":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"input":W_(r,s),En("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},En("invalid",r);break;case"textarea":K_(r,s),En("invalid",r)}LC(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&&Jm(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Jm(r.textContent,l,e),o=["children",""+l]):Lp.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&En("scroll",r)}switch(n){case"input":Wm(r),G_(r,s,!0);break;case"textarea":Wm(r),q_(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=pv)}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=TA(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[Ii]=t,e[Gp]=r,tF(e,t,!1,!1),t.stateNode=e;e:{switch(i=FC(n,r),n){case"dialog":En("cancel",e),En("close",e),o=r;break;case"iframe":case"object":case"embed":En("load",e),o=r;break;case"video":case"audio":for(o=0;o<np.length;o++)En(np[o],e);o=r;break;case"source":En("error",e),o=r;break;case"img":case"image":case"link":En("error",e),En("load",e),o=r;break;case"details":En("toggle",e),o=r;break;case"input":W_(e,r),o=$C(e,r),En("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Hn({},r,{value:void 0}),En("invalid",e);break;case"textarea":K_(e,r),o=DC(e,r),En("invalid",e);break;default:o=r}LC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?OA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&$A(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fp(e,a):typeof a=="number"&&Fp(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Lp.hasOwnProperty(s)?a!=null&&s==="onScroll"&&En("scroll",e):a!=null&&VS(e,s,a,i))}switch(n){case"input":Wm(e),G_(e,r,!1);break;case"textarea":Wm(e),q_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sa(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Yu(e,!!r.multiple,s,!1):r.defaultValue!=null&&Yu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=pv)}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 jr(t),null;case 6:if(e&&t.stateNode!=null)rF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=lc(qp.current),lc(Ti.current),eg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ii]=t,(s=r.nodeValue!==n)&&(e=Yo,e!==null))switch(e.tag){case 3:Jm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Jm(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ii]=t,t.stateNode=r}return jr(t),null;case 13:if(Mn(zn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(An&&qo!==null&&t.mode&1&&!(t.flags&128))wL(),pd(),t.flags|=98560,s=!1;else if(s=eg(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[Ii]=t}else pd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),s=!1}else Js!==null&&(vx(Js),Js=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||zn.current&1?hr===0&&(hr=3):SP())),t.updateQueue!==null&&(t.flags|=4),jr(t),null);case 4:return md(),cx(e,t),e===null&&Up(t.stateNode.containerInfo),jr(t),null;case 10:return iP(t.type._context),jr(t),null;case 17:return Eo(t.type)&&hv(),jr(t),null;case 19:if(Mn(zn),s=t.memoizedState,s===null)return jr(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Af(s,!1);else{if(hr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Cv(e),i!==null){for(t.flags|=128,Af(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(zn,zn.current&1|2),t.child}e=e.sibling}s.tail!==null&&tr()>vd&&(t.flags|=128,r=!0,Af(s,!1),t.lanes=4194304)}else{if(!r)if(e=Cv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Af(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!An)return jr(t),null}else 2*tr()-s.renderingStartTime>vd&&n!==1073741824&&(t.flags|=128,r=!0,Af(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=tr(),t.sibling=null,n=zn.current,xn(zn,r?n&1|2:n&1),t):(jr(t),null);case 22:case 23:return xP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vo&1073741824&&(jr(t),t.subtreeFlags&6&&(t.flags|=8192)):jr(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function OG(e,t){switch(nP(t),t.tag){case 1:return Eo(t.type)&&hv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return md(),Mn(ko),Mn(Zr),dP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uP(t),null;case 13:if(Mn(zn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));pd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(zn),null;case 4:return md(),null;case 10:return iP(t.type._context),null;case 22:case 23:return xP(),null;case 24:return null;default:return null}}var rg=!1,Gr=!1,DG=typeof WeakSet=="function"?WeakSet:Set,at=null;function zu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Kn(e,t,r)}else n.current=null}function ux(e,t,n){try{n()}catch(r){Kn(e,t,r)}}var FT=!1;function AG(e,t){if(KC=uv,e=lL(),eP(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(E){n=null;break e}var i=0,l=-1,a=-1,u=0,f=0,p=e,m=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;)m=p,p=v;for(;;){if(p===e)break t;if(m===n&&++u===o&&(l=i),m===s&&++f===r&&(a=i),(v=p.nextSibling)!==null)break;p=m,m=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(qC={focusedElem:e,selectionRange:n},uv=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){t=at;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 g=y.memoizedProps,C=y.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qs(t.type,g),C);w.__reactInternalSnapshotBeforeUpdate=b}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(E){Kn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}return y=FT,FT=!1,y}function wp(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&&ux(t,n,s)}o=o.next}while(o!==r)}}function My(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 dx(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 oF(e){var t=e.alternate;t!==null&&(e.alternate=null,oF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ii],delete t[Gp],delete t[XC],delete t[vG],delete t[yG])),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 sF(e){return e.tag===5||e.tag===3||e.tag===4}function NT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sF(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 fx(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=pv));else if(r!==4&&(e=e.child,e!==null))for(fx(e,t,n),e=e.sibling;e!==null;)fx(e,t,n),e=e.sibling}function px(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(px(e,t,n),e=e.sibling;e!==null;)px(e,t,n),e=e.sibling}var Rr=null,Zs=!1;function zl(e,t,n){for(n=n.child;n!==null;)iF(e,t,n),n=n.sibling}function iF(e,t,n){if(_i&&typeof _i.onCommitFiberUnmount=="function")try{_i.onCommitFiberUnmount(wy,n)}catch(l){}switch(n.tag){case 5:Gr||zu(n,t);case 6:var r=Rr,o=Zs;Rr=null,zl(e,t,n),Rr=r,Zs=o,Rr!==null&&(Zs?(e=Rr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rr.removeChild(n.stateNode));break;case 18:Rr!==null&&(Zs?(e=Rr,n=n.stateNode,e.nodeType===8?pw(e.parentNode,n):e.nodeType===1&&pw(e,n),Vp(e)):pw(Rr,n.stateNode));break;case 4:r=Rr,o=Zs,Rr=n.stateNode.containerInfo,Zs=!0,zl(e,t,n),Rr=r,Zs=o;break;case 0:case 11:case 14:case 15:if(!Gr&&(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)&&ux(n,t,i),o=o.next}while(o!==r)}zl(e,t,n);break;case 1:if(!Gr&&(zu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Kn(n,t,l)}zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,zl(e,t,n),Gr=r):zl(e,t,n);break;default:zl(e,t,n)}}function BT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DG),t.forEach(function(r){var o=UG.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ks(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:Rr=l.stateNode,Zs=!1;break e;case 3:Rr=l.stateNode.containerInfo,Zs=!0;break e;case 4:Rr=l.stateNode.containerInfo,Zs=!0;break e}l=l.return}if(Rr===null)throw Error(He(160));iF(s,i,o),Rr=null,Zs=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Kn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lF(t,e),t=t.sibling}function lF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ks(t,e),wi(e),r&4){try{wp(3,e,e.return),My(3,e)}catch(g){Kn(e,e.return,g)}try{wp(5,e,e.return)}catch(g){Kn(e,e.return,g)}}break;case 1:Ks(t,e),wi(e),r&512&&n!==null&&zu(n,n.return);break;case 5:if(Ks(t,e),wi(e),r&512&&n!==null&&zu(n,n.return),e.flags&32){var o=e.stateNode;try{Fp(o,"")}catch(g){Kn(e,e.return,g)}}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&&MA(o,s),FC(l,i);var u=FC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?OA(o,p):f==="dangerouslySetInnerHTML"?$A(o,p):f==="children"?Fp(o,p):VS(o,f,p,u)}switch(l){case"input":RC(o,s);break;case"textarea":_A(o,s);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Yu(o,!!s.multiple,v,!1):m!==!!s.multiple&&(s.defaultValue!=null?Yu(o,!!s.multiple,s.defaultValue,!0):Yu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Gp]=s}catch(g){Kn(e,e.return,g)}}break;case 6:if(Ks(t,e),wi(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(g){Kn(e,e.return,g)}}break;case 3:if(Ks(t,e),wi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(g){Kn(e,e.return,g)}break;case 4:Ks(t,e),wi(e);break;case 13:Ks(t,e),wi(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(wP=tr())),r&4&&BT(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Gr=(u=Gr)||f,Ks(t,e),Gr=u):Ks(t,e),wi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(at=e,f=e.child;f!==null;){for(p=at=f;at!==null;){switch(m=at,v=m.child,m.tag){case 0:case 11:case 14:case 15:wp(4,m,m.return);break;case 1:zu(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Kn(r,n,g)}}break;case 5:zu(m,m.return);break;case 22:if(m.memoizedState!==null){VT(p);continue}}v!==null?(v.return=m,at=v):VT(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=RA("display",i))}catch(g){Kn(e,e.return,g)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Kn(e,e.return,g)}}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:Ks(t,e),wi(e),r&4&&BT(e);break;case 21:break;default:Ks(t,e),wi(e)}}function wi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(sF(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&&(Fp(o,""),r.flags&=-33);var s=NT(e);px(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=NT(e);fx(e,l,i);break;default:throw Error(He(161))}}catch(a){Kn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function LG(e,t,n){at=e,aF(e)}function aF(e,t,n){for(var r=(e.mode&1)!==0;at!==null;){var o=at,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||rg;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Gr;l=rg;var u=Gr;if(rg=i,(Gr=a)&&!u)for(at=o;at!==null;)i=at,a=i.child,i.tag===22&&i.memoizedState!==null?jT(o):a!==null?(a.return=i,at=a):jT(o);for(;s!==null;)at=s,aF(s),s=s.sibling;at=o,rg=l,Gr=u}zT(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,at=s):zT(e)}}function zT(e){for(;at!==null;){var t=at;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gr||My(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gr)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&&ST(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}ST(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&&Vp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}Gr||t.flags&512&&dx(t)}catch(m){Kn(t,t.return,m)}}if(t===e){at=null;break}if(n=t.sibling,n!==null){n.return=t.return,at=n;break}at=t.return}}function VT(e){for(;at!==null;){var t=at;if(t===e){at=null;break}var n=t.sibling;if(n!==null){n.return=t.return,at=n;break}at=t.return}}function jT(e){for(;at!==null;){var t=at;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{My(4,t)}catch(a){Kn(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Kn(t,o,a)}}var s=t.return;try{dx(t)}catch(a){Kn(t,s,a)}break;case 5:var i=t.return;try{dx(t)}catch(a){Kn(t,i,a)}}}catch(a){Kn(t,t.return,a)}if(t===e){at=null;break}var l=t.sibling;if(l!==null){l.return=t.return,at=l;break}at=t.return}}var FG=Math.ceil,Pv=kl.ReactCurrentDispatcher,yP=kl.ReactCurrentOwner,_s=kl.ReactCurrentBatchConfig,Xt=0,Sr=null,cr=null,Lr=0,Vo=0,Vu=Oa(0),hr=0,Zp=null,Pc=0,_y=0,bP=0,Cp=null,wo=null,wP=0,vd=1/0,ol=null,kv=!1,hx=null,ga=null,og=!1,sa=null,Ev=0,xp=0,mx=null,Bg=-1,zg=0;function uo(){return Xt&6?tr():Bg!==-1?Bg:Bg=tr()}function va(e){return e.mode&1?Xt&2&&Lr!==0?Lr&-Lr:wG.transition!==null?(zg===0&&(zg=WA()),zg):(e=dn,e!==0||(e=window.event,e=e===void 0?16:ZA(e.type)),e):1}function ii(e,t,n,r){if(50<xp)throw xp=0,mx=null,Error(He(185));Ih(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(_y|=n),hr===4&&na(e,Lr)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(vd=tr()+500,ky&&Da()))}function Io(e,t){var n=e.callbackNode;wW(e,t);var r=cv(e,e===Sr?Lr:0);if(r===0)n!==null&&X_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&X_(n),t===1)e.tag===0?bG(HT.bind(null,e)):vL(HT.bind(null,e)),mG(function(){!(Xt&6)&&Da()}),n=null;else{switch(GA(r)){case 1:n=GS;break;case 4:n=HA;break;case 16:n=av;break;case 536870912:n=UA;break;default:n=av}n=gF(n,cF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cF(e,t){if(Bg=-1,zg=0,Xt&6)throw Error(He(327));var n=e.callbackNode;if(ed()&&e.callbackNode!==n)return null;var r=cv(e,e===Sr?Lr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Iv(e,r);else{t=r;var o=Xt;Xt|=2;var s=dF();(Sr!==e||Lr!==t)&&(ol=null,vd=tr()+500,dc(e,t));do try{zG();break}catch(l){uF(e,l)}while(1);sP(),Pv.current=s,Xt=o,cr!==null?t=0:(Sr=null,Lr=0,t=hr)}if(t!==0){if(t===2&&(o=jC(e),o!==0&&(r=o,t=gx(e,o))),t===1)throw n=Zp,dc(e,0),na(e,r),Io(e,tr()),n;if(t===6)na(e,r);else{if(o=e.current.alternate,!(r&30)&&!NG(o)&&(t=Iv(e,r),t===2&&(s=jC(e),s!==0&&(r=s,t=gx(e,s))),t===1))throw n=Zp,dc(e,0),na(e,r),Io(e,tr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:tc(e,wo,ol);break;case 3:if(na(e,r),(r&130023424)===r&&(t=wP+500-tr(),10<t)){if(cv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){uo(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=QC(tc.bind(null,e,wo,ol),t);break}tc(e,wo,ol);break;case 4:if(na(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-si(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=tr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FG(r/1960))-r,10<r){e.timeoutHandle=QC(tc.bind(null,e,wo,ol),r);break}tc(e,wo,ol);break;case 5:tc(e,wo,ol);break;default:throw Error(He(329))}}}return Io(e,tr()),e.callbackNode===n?cF.bind(null,e):null}function gx(e,t){var n=Cp;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),e=Iv(e,t),e!==2&&(t=wo,wo=n,t!==null&&vx(t)),e}function vx(e){wo===null?wo=e:wo.push.apply(wo,e)}function NG(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(!ci(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 na(e,t){for(t&=~bP,t&=~_y,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-si(t),r=1<<n;e[n]=-1,t&=~r}}function HT(e){if(Xt&6)throw Error(He(327));ed();var t=cv(e,0);if(!(t&1))return Io(e,tr()),null;var n=Iv(e,t);if(e.tag!==0&&n===2){var r=jC(e);r!==0&&(t=r,n=gx(e,r))}if(n===1)throw n=Zp,dc(e,0),na(e,t),Io(e,tr()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tc(e,wo,ol),Io(e,tr()),null}function CP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(vd=tr()+500,ky&&Da())}}function kc(e){sa!==null&&sa.tag===0&&!(Xt&6)&&ed();var t=Xt;Xt|=1;var n=_s.transition,r=dn;try{if(_s.transition=null,dn=1,e)return e()}finally{dn=r,_s.transition=n,Xt=t,!(Xt&6)&&Da()}}function xP(){Vo=Vu.current,Mn(Vu)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hG(n)),cr!==null)for(n=cr.return;n!==null;){var r=n;switch(nP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hv();break;case 3:md(),Mn(ko),Mn(Zr),dP();break;case 5:uP(r);break;case 4:md();break;case 13:Mn(zn);break;case 19:Mn(zn);break;case 10:iP(r.type._context);break;case 22:case 23:xP()}n=n.return}if(Sr=e,cr=e=ya(e.current,null),Lr=Vo=t,hr=0,Zp=null,bP=_y=Pc=0,wo=Cp=null,ic!==null){for(t=0;t<ic.length;t++)if(n=ic[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}ic=null}return e}function uF(e,t){do{var n=cr;try{if(sP(),Lg.current=Sv,xv){for(var r=jn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}xv=!1}if(Sc=0,Cr=fr=jn=null,bp=!1,Yp=0,yP.current=null,n===null||n.return===null){hr=1,Zp=t,cr=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=Lr,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 m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=TT(i);if(v!==null){v.flags&=-257,$T(v,i,l,s,t),v.mode&1&&_T(s,u,t),t=v,a=u;var y=t.updateQueue;if(y===null){var g=new Set;g.add(a),t.updateQueue=g}else y.add(a);break e}else{if(!(t&1)){_T(s,u,t),SP();break e}a=Error(He(426))}}else if(An&&l.mode&1){var C=TT(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),$T(C,i,l,s,t),rP(gd(a,l));break e}}s=a=gd(a,l),hr!==4&&(hr=2),Cp===null?Cp=[s]:Cp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=KL(s,a,t);xT(s,w);break e;case 1:l=a;var b=s.type,S=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ga===null||!ga.has(S)))){s.flags|=65536,t&=-t,s.lanes|=t;var E=qL(s,l,t);xT(s,E);break e}}s=s.return}while(s!==null)}pF(n)}catch(_){t=_,cr===n&&n!==null&&(cr=n=n.return);continue}break}while(1)}function dF(){var e=Pv.current;return Pv.current=Sv,e===null?Sv:e}function SP(){(hr===0||hr===3||hr===2)&&(hr=4),Sr===null||!(Pc&268435455)&&!(_y&268435455)||na(Sr,Lr)}function Iv(e,t){var n=Xt;Xt|=2;var r=dF();(Sr!==e||Lr!==t)&&(ol=null,dc(e,t));do try{BG();break}catch(o){uF(e,o)}while(1);if(sP(),Xt=n,Pv.current=r,cr!==null)throw Error(He(261));return Sr=null,Lr=0,hr}function BG(){for(;cr!==null;)fF(cr)}function zG(){for(;cr!==null&&!dW();)fF(cr)}function fF(e){var t=mF(e.alternate,e,Vo);e.memoizedProps=e.pendingProps,t===null?pF(e):cr=t,yP.current=null}function pF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=OG(n,t),n!==null){n.flags&=32767,cr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{hr=6,cr=null;return}}else if(n=RG(n,t,Vo),n!==null){cr=n;return}if(t=t.sibling,t!==null){cr=t;return}cr=t=e}while(t!==null);hr===0&&(hr=5)}function tc(e,t,n){var r=dn,o=_s.transition;try{_s.transition=null,dn=1,VG(e,t,n,r)}finally{_s.transition=o,dn=r}return null}function VG(e,t,n,r){do ed();while(sa!==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(CW(e,s),e===Sr&&(cr=Sr=null,Lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||og||(og=!0,gF(av,function(){return ed(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=_s.transition,_s.transition=null;var i=dn;dn=1;var l=Xt;Xt|=4,yP.current=null,AG(e,n),lF(n,e),lG(qC),uv=!!KC,qC=KC=null,e.current=n,LG(n),fW(),Xt=l,dn=i,_s.transition=s}else e.current=n;if(og&&(og=!1,sa=e,Ev=o),s=e.pendingLanes,s===0&&(ga=null),mW(n.stateNode),Io(e,tr()),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(kv)throw kv=!1,e=hx,hx=null,e;return Ev&1&&e.tag!==0&&ed(),s=e.pendingLanes,s&1?e===mx?xp++:(xp=0,mx=e):xp=0,Da(),null}function ed(){if(sa!==null){var e=GA(Ev),t=_s.transition,n=dn;try{if(_s.transition=null,dn=16>e?16:e,sa===null)var r=!1;else{if(e=sa,sa=null,Ev=0,Xt&6)throw Error(He(331));var o=Xt;for(Xt|=4,at=e.current;at!==null;){var s=at,i=s.child;if(at.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(at=u;at!==null;){var f=at;switch(f.tag){case 0:case 11:case 15:wp(8,f,s)}var p=f.child;if(p!==null)p.return=f,at=p;else for(;at!==null;){f=at;var m=f.sibling,v=f.return;if(oF(f),f===u){at=null;break}if(m!==null){m.return=v,at=m;break}at=v}}}var y=s.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var C=g.sibling;g.sibling=null,g=C}while(g!==null)}}at=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,at=i;else e:for(;at!==null;){if(s=at,s.flags&2048)switch(s.tag){case 0:case 11:case 15:wp(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,at=w;break e}at=s.return}}var b=e.current;for(at=b;at!==null;){i=at;var S=i.child;if(i.subtreeFlags&2064&&S!==null)S.return=i,at=S;else e:for(i=b;at!==null;){if(l=at,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:My(9,l)}}catch(_){Kn(l,l.return,_)}if(l===i){at=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,at=E;break e}at=l.return}}if(Xt=o,Da(),_i&&typeof _i.onPostCommitFiberRoot=="function")try{_i.onPostCommitFiberRoot(wy,e)}catch(_){}r=!0}return r}finally{dn=n,_s.transition=t}}return!1}function UT(e,t,n){t=gd(n,t),t=KL(e,t,1),e=ma(e,t,1),t=uo(),e!==null&&(Ih(e,1,t),Io(e,t))}function Kn(e,t,n){if(e.tag===3)UT(e,e,n);else for(;t!==null;){if(t.tag===3){UT(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ga===null||!ga.has(r))){e=gd(n,e),e=qL(t,e,1),t=ma(t,e,1),e=uo(),t!==null&&(Ih(t,1,e),Io(t,e));break}}t=t.return}}function jG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=uo(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Lr&n)===n&&(hr===4||hr===3&&(Lr&130023424)===Lr&&500>tr()-wP?dc(e,0):bP|=n),Io(e,t)}function hF(e,t){t===0&&(e.mode&1?(t=qm,qm<<=1,!(qm&130023424)&&(qm=4194304)):t=1);var n=uo();e=yl(e,t),e!==null&&(Ih(e,t,n),Io(e,n))}function HG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hF(e,n)}function UG(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),hF(e,n)}var mF;mF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)Po=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Po=!1,$G(e,t,n);Po=!!(e.flags&131072)}else Po=!1,An&&t.flags&1048576&&yL(t,vv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ng(e,t),e=t.pendingProps;var o=fd(t,Zr.current);Ju(t,n),o=pP(null,t,r,e,o,n);var s=hP();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,Eo(r)?(s=!0,mv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,aP(t),o.updater=Ey,t.stateNode=o,o._reactInternals=t,rx(t,r,e,n),t=ix(null,t,r,!0,s,n)):(t.tag=0,An&&s&&tP(t),so(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ng(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=GG(r),e=Qs(r,e),o){case 0:t=sx(null,t,r,e,n);break e;case 1:t=DT(null,t,r,e,n);break e;case 11:t=RT(null,t,r,e,n);break e;case 14:t=OT(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),sx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),DT(e,t,r,o,n);case 3:e:{if(ZL(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,xL(e,t),wv(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=gd(Error(He(423)),t),t=AT(e,t,r,n,o);break e}else if(r!==o){o=gd(Error(He(424)),t),t=AT(e,t,r,n,o);break e}else for(qo=ha(t.stateNode.containerInfo.firstChild),Yo=t,An=!0,Js=null,n=EL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pd(),r===o){t=bl(e,t,n);break e}so(e,t,r,n)}t=t.child}return t;case 5:return IL(t),e===null&&ex(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,YC(r,o)?i=null:s!==null&&YC(r,s)&&(t.flags|=32),XL(e,t),so(e,t,i,n),t.child;case 6:return e===null&&ex(t),null;case 13:return JL(e,t,n);case 4:return cP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hd(t,null,r,n):so(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),RT(e,t,r,o,n);case 7:return so(e,t,t.pendingProps,n),t.child;case 8:return so(e,t,t.pendingProps.children,n),t.child;case 12:return so(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(yv,r._currentValue),r._currentValue=i,s!==null)if(ci(s.value,i)){if(s.children===o.children&&!ko.current){t=bl(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=pl(-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),tx(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),tx(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}so(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ju(t,n),o=Rs(o),r=r(o),t.flags|=1,so(e,t,r,n),t.child;case 14:return r=t.type,o=Qs(r,t.pendingProps),o=Qs(r.type,o),OT(e,t,r,o,n);case 15:return YL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),Ng(e,t),t.tag=1,Eo(r)?(e=!0,mv(t)):e=!1,Ju(t,n),PL(t,r,o),rx(t,r,o,n),ix(null,t,r,!0,e,n);case 19:return eF(e,t,n);case 22:return QL(e,t,n)}throw Error(He(156,t.tag))};function gF(e,t){return jA(e,t)}function WG(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 Ms(e,t,n,r){return new WG(e,t,n,r)}function PP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GG(e){if(typeof e=="function")return PP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===HS)return 11;if(e===US)return 14}return 2}function ya(e,t){var n=e.alternate;return n===null?(n=Ms(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 Vg(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")PP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $u:return fc(n.children,o,s,t);case jS:i=8,o|=8;break;case IC:return e=Ms(12,n,t,o|2),e.elementType=IC,e.lanes=s,e;case MC:return e=Ms(13,n,t,o),e.elementType=MC,e.lanes=s,e;case _C:return e=Ms(19,n,t,o),e.elementType=_C,e.lanes=s,e;case kA:return Ty(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SA:i=10;break e;case PA:i=9;break e;case HS:i=11;break e;case US:i=14;break e;case Ql:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=Ms(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function fc(e,t,n,r){return e=Ms(7,e,r,t),e.lanes=n,e}function Ty(e,t,n,r){return e=Ms(22,e,r,t),e.elementType=kA,e.lanes=n,e.stateNode={isHidden:!1},e}function Cw(e,t,n){return e=Ms(6,e,null,t),e.lanes=n,e}function xw(e,t,n){return t=Ms(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KG(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=nw(0),this.expirationTimes=nw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function kP(e,t,n,r,o,s,i,l,a){return e=new KG(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ms(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aP(s),e}function qG(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vF(e){if(!e)return Pa;e=e._reactInternals;e:{if(Bc(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(Eo(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(Eo(n))return gL(e,n,t)}return t}function yF(e,t,n,r,o,s,i,l,a){return e=kP(n,r,!0,e,o,s,i,l,a),e.context=vF(null),n=e.current,r=uo(),o=va(n),s=pl(r,o),s.callback=t!=null?t:null,ma(n,s,o),e.current.lanes=o,Ih(e,o,r),Io(e,r),e}function $y(e,t,n,r){var o=t.current,s=uo(),i=va(o);return n=vF(n),t.context===null?t.context=n:t.pendingContext=n,t=pl(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ma(o,t,i),e!==null&&(ii(e,o,i,s),Ag(e,o,i)),i}function Mv(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 WT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function EP(e,t){WT(e,t),(e=e.alternate)&&WT(e,t)}function YG(){return null}var bF=typeof reportError=="function"?reportError:function(e){console.error(e)};function IP(e){this._internalRoot=e}Ry.prototype.render=IP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));$y(e,t,null,null)};Ry.prototype.unmount=IP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kc(function(){$y(null,e,null,null)}),t[vl]=null}};function Ry(e){this._internalRoot=e}Ry.prototype.unstable_scheduleHydration=function(e){if(e){var t=YA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ta.length&&t!==0&&t<ta[n].priority;n++);ta.splice(n,0,e),n===0&&XA(e)}};function MP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function GT(){}function QG(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Mv(i);s.call(u)}}var i=yF(t,r,e,0,null,!1,!1,"",GT);return e._reactRootContainer=i,e[vl]=i.current,Up(e.nodeType===8?e.parentNode:e),kc(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Mv(a);l.call(u)}}var a=kP(e,0,!1,null,null,!1,!1,"",GT);return e._reactRootContainer=a,e[vl]=a.current,Up(e.nodeType===8?e.parentNode:e),kc(function(){$y(t,a,n,r)}),a}function Dy(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=Mv(i);l.call(a)}}$y(t,i,e,o)}else i=QG(n,t,e,o,r);return Mv(i)}KA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tp(t.pendingLanes);n!==0&&(KS(t,n|1),Io(t,tr()),!(Xt&6)&&(vd=tr()+500,Da()))}break;case 13:kc(function(){var r=yl(e,1);if(r!==null){var o=uo();ii(r,e,1,o)}}),EP(e,1)}};qS=function(e){if(e.tag===13){var t=yl(e,134217728);if(t!==null){var n=uo();ii(t,e,134217728,n)}EP(e,134217728)}};qA=function(e){if(e.tag===13){var t=va(e),n=yl(e,t);if(n!==null){var r=uo();ii(n,e,t,r)}EP(e,t)}};YA=function(){return dn};QA=function(e,t){var n=dn;try{return dn=e,t()}finally{dn=n}};BC=function(e,t,n){switch(t){case"input":if(RC(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=Py(r);if(!o)throw Error(He(90));IA(r),RC(r,o)}}}break;case"textarea":_A(e,n);break;case"select":t=n.value,t!=null&&Yu(e,!!n.multiple,t,!1)}};LA=CP;FA=kc;var XG={usingClientEntryPoint:!1,Events:[_h,Au,Py,DA,AA,CP]},Lf={findFiberByHostInstance:sc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ZG={bundleType:Lf.bundleType,version:Lf.version,rendererPackageName:Lf.rendererPackageName,rendererConfig:Lf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zA(e),e===null?null:e.stateNode},findFiberByHostInstance:Lf.findFiberByHostInstance||YG,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 sg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sg.isDisabled&&sg.supportsFiber)try{wy=sg.inject(ZG),_i=sg}catch(e){}}os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=XG;os.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!MP(t))throw Error(He(200));return qG(e,t,null,n)};os.createRoot=function(e,t){if(!MP(e))throw Error(He(299));var n=!1,r="",o=bF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=kP(e,1,!1,null,null,n,!1,r,o),e[vl]=t.current,Up(e.nodeType===8?e.parentNode:e),new IP(t)};os.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=zA(t),e=e===null?null:e.stateNode,e};os.flushSync=function(e){return kc(e)};os.hydrate=function(e,t,n){if(!Oy(t))throw Error(He(200));return Dy(null,e,t,!0,n)};os.hydrateRoot=function(e,t,n){if(!MP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=bF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=yF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[vl]=t.current,Up(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 Ry(t)};os.render=function(e,t,n){if(!Oy(t))throw Error(He(200));return Dy(null,e,t,!1,n)};os.unmountComponentAtNode=function(e){if(!Oy(e))throw Error(He(40));return e._reactRootContainer?(kc(function(){Dy(null,null,e,!1,function(){e._reactRootContainer=null,e[vl]=null})}),!0):!1};os.unstable_batchedUpdates=CP;os.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Oy(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return Dy(e,t,n,!1,r)};os.version="18.2.0-next-9e3b772b8-20220608";function wF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wF)}catch(e){console.error(e)}}wF(),yA.exports=os;var zd=yA.exports;const ig=di(zd);var CF,KT=zd;CF=KT.createRoot,KT.hydrateRoot;const JG="modulepreload",eK=function(e){return"/"+e},qT={},tK=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=eK(s),s in qT)return;qT[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":JG,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 aA;if(!((aA=window.crypto)!=null&&aA.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ot(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const s=(yield tK(()=>import("./sha512-ed31d758.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 Jp(){return Jp=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},Jp.apply(this,arguments)}var ia;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ia||(ia={}));const YT="popstate";function nK(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=zc(o.location.hash.substr(1));return yx("",{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:_v(s))}function r(o,s){Ay(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return oK(t,n,r,e)}function gr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Ay(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function rK(){return Math.random().toString(36).substr(2,8)}function QT(e,t){return{usr:e.state,key:e.key,idx:t}}function yx(e,t,n,r){return n===void 0&&(n=null),Jp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zc(t):t,{state:n,key:t&&t.key||r||rK()})}function _v(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 zc(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 oK(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=ia.Pop,a=null,u=f();u==null&&(u=0,i.replaceState(Jp({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=ia.Pop;let C=f(),w=C==null?null:C-u;u=C,a&&a({action:l,location:g.location,delta:w})}function m(C,w){l=ia.Push;let b=yx(g.location,C,w);n&&n(b,C),u=f()+1;let S=QT(b,u),E=g.createHref(b);try{i.pushState(S,"",E)}catch(_){o.location.assign(E)}s&&a&&a({action:l,location:g.location,delta:1})}function v(C,w){l=ia.Replace;let b=yx(g.location,C,w);n&&n(b,C),u=f();let S=QT(b,u),E=g.createHref(b);i.replaceState(S,"",E),s&&a&&a({action:l,location:g.location,delta:0})}function y(C){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:_v(C);return gr(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let g={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(YT,p),a=C,()=>{o.removeEventListener(YT,p),a=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let w=y(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:v,go(C){return i.go(C)}};return g}var XT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(XT||(XT={}));function sK(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zc(t):t,o=_P(r.pathname||"/",n);if(o==null)return null;let s=xF(e);iK(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=mK(s[l],yK(o));return i}function xF(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("/")&&(gr(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=ba([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(gr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xF(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:pK(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 SF(s.path))o(s,i,a)}),t}function SF(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=SF(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 iK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lK=/^:\w+$/,aK=3,cK=2,uK=1,dK=10,fK=-2,ZT=e=>e==="*";function pK(e,t){let n=e.split("/"),r=n.length;return n.some(ZT)&&(r+=fK),t&&(r+=cK),n.filter(o=>!ZT(o)).reduce((o,s)=>o+(lK.test(s)?aK:s===""?uK:dK),r)}function hK(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 mK(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=gK({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:ba([o,f.pathname]),pathnameBase:xK(ba([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=ba([o,f.pathnameBase]))}return s}function gK(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vK(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 m=l[p]||"";i=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}return u[f]=bK(l[p]||"",f),u},{}),pathname:s,pathnameBase:i,pattern:e}}function vK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ay(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 yK(e){try{return decodeURI(e)}catch(t){return Ay(!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 bK(e,t){try{return decodeURIComponent(e)}catch(n){return Ay(!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 _P(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 wK(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zc(e):e;return{pathname:n?n.startsWith("/")?n:CK(n,t):t,search:SK(r),hash:PK(o)}}function CK(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 Sw(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 PF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zc(e):(o=Jp({},e),gr(!o.pathname||!o.pathname.includes("?"),Sw("?","pathname","search",o)),gr(!o.pathname||!o.pathname.includes("#"),Sw("#","pathname","hash",o)),gr(!o.search||!o.search.includes("#"),Sw("#","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 m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let a=wK(o,l),u=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}const ba=e=>e.join("/").replace(/\/\/+/g,"/"),xK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const EF=["post","put","patch","delete"];new Set(EF);const EK=["get",...EF];new Set(EK);/**
|
|
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 IK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const MK=typeof Object.is=="function"?Object.is:IK,{useState:_K,useEffect:TK,useLayoutEffect:$K,useDebugValue:RK}=wc;function OK(e,t,n){const r=t(),[{inst:o},s]=_K({inst:{value:r,getSnapshot:t}});return $K(()=>{o.value=r,o.getSnapshot=t,Pw(o)&&s({inst:o})},[e,r,t]),TK(()=>(Pw(o)&&s({inst:o}),e(()=>{Pw(o)&&s({inst:o})})),[e]),RK(r),r}function Pw(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!MK(n,r)}catch(r){return!0}}function DK(e,t,n){return t()}const AK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",LK=!AK,FK=LK?DK:OK;"useSyncExternalStore"in wc&&(e=>e.useSyncExternalStore)(wc);const IF=c.createContext(null),TP=c.createContext(null),Vd=c.createContext(null),Ly=c.createContext(null),jd=c.createContext({outlet:null,matches:[]}),MF=c.createContext(null);function bx(){return bx=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},bx.apply(this,arguments)}function NK(e,t){let{relative:n}=t===void 0?{}:t;$h()||gr(!1);let{basename:r,navigator:o}=c.useContext(Vd),{hash:s,pathname:i,search:l}=$P(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:ba([r,i])),o.createHref({pathname:a,search:l,hash:s})}function $h(){return c.useContext(Ly)!=null}function Hd(){return $h()||gr(!1),c.useContext(Ly).location}function BK(){$h()||gr(!1);let{basename:e,navigator:t}=c.useContext(Vd),{matches:n}=c.useContext(jd),{pathname:r}=Hd(),o=JSON.stringify(PF(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=kF(l,JSON.parse(o),r,a.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ba([e,u.pathname])),(a.replace?t.replace:t.push)(u,a.state,a)},[e,t,o,r])}function $P(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=c.useContext(jd),{pathname:o}=Hd(),s=JSON.stringify(PF(r).map(i=>i.pathnameBase));return c.useMemo(()=>kF(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function zK(e,t){$h()||gr(!1);let{navigator:n}=c.useContext(Vd),r=c.useContext(TP),{matches:o}=c.useContext(jd),s=o[o.length-1],i=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let a=Hd(),u;if(t){var f;let g=typeof t=="string"?zc(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||gr(!1),u=g}else u=a;let p=u.pathname||"/",m=l==="/"?p:p.slice(l.length)||"/",v=sK(e,{pathname:m}),y=UK(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:ba([l,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:ba([l,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&y?c.createElement(Ly.Provider,{value:{location:bx({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ia.Pop}},y):y}function VK(){let e=qK(),t=kK(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 jK 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(jd.Provider,{value:this.props.routeContext},c.createElement(MF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HK(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(IF);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),c.createElement(jd.Provider,{value:t},r)}function UK(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||gr(!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(VK,null));let f=t.concat(r.slice(0,l+1)),p=()=>{let m=s;return a?m=u:i.route.Component?m=c.createElement(i.route.Component,null):i.route.element&&(m=i.route.element),c.createElement(HK,{match:i,routeContext:{outlet:s,matches:f},children:m})};return n&&(i.route.ErrorBoundary||i.route.errorElement||l===0)?c.createElement(jK,{location:n.location,component:u,error:a,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var JT;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(JT||(JT={}));var Tv;(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"})(Tv||(Tv={}));function WK(e){let t=c.useContext(TP);return t||gr(!1),t}function GK(e){let t=c.useContext(jd);return t||gr(!1),t}function KK(e){let t=GK(),n=t.matches[t.matches.length-1];return n.route.id||gr(!1),n.route.id}function qK(){var e;let t=c.useContext(MF),n=WK(Tv.UseRouteError),r=KK(Tv.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function wx(e){gr(!1)}function YK(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ia.Pop,navigator:s,static:i=!1}=e;$h()&&gr(!1);let l=t.replace(/^\/*/,"/"),a=c.useMemo(()=>({basename:l,navigator:s,static:i}),[l,s,i]);typeof r=="string"&&(r=zc(r));let{pathname:u="/",search:f="",hash:p="",state:m=null,key:v="default"}=r,y=c.useMemo(()=>{let g=_P(u,l);return g==null?null:{location:{pathname:g,search:f,hash:p,state:m,key:v},navigationType:o}},[l,u,f,p,m,v,o]);return y==null?null:c.createElement(Vd.Provider,{value:a},c.createElement(Ly.Provider,{children:n,value:y}))}function QK(e){let{children:t,location:n}=e,r=c.useContext(IF),o=r&&!t?r.router.routes:Cx(t);return zK(o,n)}var e$;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(e$||(e$={}));new Promise(()=>{});function Cx(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,Cx(r.props.children,s));return}r.type!==wx&&gr(!1),!r.props.index||!r.props.children||gr(!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=Cx(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 $v(){return $v=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},$v.apply(this,arguments)}function _F(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 XK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZK(e,t){return e.button===0&&(!t||t==="_self")&&!XK(e)}const JK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],eq=["aria-current","caseSensitive","className","end","style","to","children"];function tq(e){let{basename:t,children:n,window:r}=e,o=c.useRef();o.current==null&&(o.current=nK({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(YK,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s})}const nq=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",rq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RP=c.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:u,preventScrollReset:f}=t,p=_F(t,JK),{basename:m}=c.useContext(Vd),v,y=!1;if(typeof u=="string"&&rq.test(u)&&(v=u,nq)){let b=new URL(window.location.href),S=u.startsWith("//")?new URL(b.protocol+u):new URL(u),E=_P(S.pathname,m);S.origin===b.origin&&E!=null?u=E+S.search+S.hash:y=!0}let g=NK(u,{relative:o}),C=sq(u,{replace:i,state:l,target:a,preventScrollReset:f,relative:o});function w(b){r&&r(b),b.defaultPrevented||C(b)}return c.createElement("a",$v({},p,{href:v||g,onClick:y||s?r:w,ref:n,target:a}))}),oq=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=_F(t,eq),p=$P(a,{relative:f.relative}),m=Hd(),v=c.useContext(TP),{navigator:y}=c.useContext(Vd),g=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=m.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(C=C.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase());let b=C===g||!i&&C.startsWith(g)&&C.charAt(g.length)==="/",S=w!=null&&(w===g||!i&&w.startsWith(g)&&w.charAt(g.length)==="/"),E=b?r:void 0,_;typeof s=="function"?_=s({isActive:b,isPending:S}):_=[s,b?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof l=="function"?l({isActive:b,isPending:S}):l;return c.createElement(RP,$v({},f,{"aria-current":E,className:_,ref:n,style:k,to:a}),typeof u=="function"?u({isActive:b,isPending:S}):u)});var t$;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(t$||(t$={}));var n$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(n$||(n$={}));function sq(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i}=t===void 0?{}:t,l=BK(),a=Hd(),u=$P(e,{relative:i});return c.useCallback(f=>{if(ZK(f,n)){f.preventDefault();let p=r!==void 0?r:_v(a)===_v(u);l(e,{replace:p,state:o,preventScrollReset:s,relative:i})}},[a,l,u,r,o,n,e,s,i])}const iq={black:"#000",white:"#fff"},eh=iq,lq={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"},au=lq,aq={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"},cu=aq,cq={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"},uu=cq,uq={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"},du=uq,dq={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"},fu=dq,fq={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"},Ff=fq,pq={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"},hq=pq;function mq(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 il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function TF(e){if(!il(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=TF(e[n])}),t}function Yr(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return il(e)&&il(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(il(t[o])&&o in e&&il(e[o])?r[o]=Yr(e[o],t[o],n):n.clone?r[o]=il(t[o])?TF(t[o]):t[o]:r[o]=t[o])}),r}var $F={exports:{}},gq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vq=gq,yq=vq;function RF(){}function OF(){}OF.resetWarningCache=RF;var bq=function(){function e(r,o,s,i,l,a){if(a!==yq){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:OF,resetWarningCache:RF};return n.PropTypes=n,n};$F.exports=bq();var wq=$F.exports;const W=di(wq);function ka(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 OP=Symbol.for("react.element"),DP=Symbol.for("react.portal"),Fy=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),zy=Symbol.for("react.provider"),Vy=Symbol.for("react.context"),Cq=Symbol.for("react.server_context"),jy=Symbol.for("react.forward_ref"),Hy=Symbol.for("react.suspense"),Uy=Symbol.for("react.suspense_list"),Wy=Symbol.for("react.memo"),Gy=Symbol.for("react.lazy"),xq=Symbol.for("react.offscreen"),DF;DF=Symbol.for("react.module.reference");function Bs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OP:switch(e=e.type,e){case Fy:case By:case Ny:case Hy:case Uy:return e;default:switch(e=e&&e.$$typeof,e){case Cq:case Vy:case jy:case Gy:case Wy:case zy:return e;default:return t}}case DP:return t}}}gn.ContextConsumer=Vy;gn.ContextProvider=zy;gn.Element=OP;gn.ForwardRef=jy;gn.Fragment=Fy;gn.Lazy=Gy;gn.Memo=Wy;gn.Portal=DP;gn.Profiler=By;gn.StrictMode=Ny;gn.Suspense=Hy;gn.SuspenseList=Uy;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Bs(e)===Vy};gn.isContextProvider=function(e){return Bs(e)===zy};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OP};gn.isForwardRef=function(e){return Bs(e)===jy};gn.isFragment=function(e){return Bs(e)===Fy};gn.isLazy=function(e){return Bs(e)===Gy};gn.isMemo=function(e){return Bs(e)===Wy};gn.isPortal=function(e){return Bs(e)===DP};gn.isProfiler=function(e){return Bs(e)===By};gn.isStrictMode=function(e){return Bs(e)===Ny};gn.isSuspense=function(e){return Bs(e)===Hy};gn.isSuspenseList=function(e){return Bs(e)===Uy};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fy||e===By||e===Ny||e===Hy||e===Uy||e===xq||typeof e=="object"&&e!==null&&(e.$$typeof===Gy||e.$$typeof===Wy||e.$$typeof===zy||e.$$typeof===Vy||e.$$typeof===jy||e.$$typeof===DF||e.getModuleId!==void 0)};gn.typeOf=Bs;const Sq=W.oneOfType([W.func,W.object]),AF=Sq;function Pe(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xx(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Aa(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 Pq(e,t){return()=>null}function Sp(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 Jo(e){return fn(e).defaultView||window}function kq(e,t){return()=>null}function th(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Eq=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,Nt=Eq;let r$=0;function Iq(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect(()=>{t==null&&(r$+=1,n(`mui-${r$}`))},[t]),r}const o$=wc["useId".toString()];function Kt(e){if(o$!==void 0){const t=o$();return e!=null?e:t}return Iq(e)}function Mq(e,t,n,r,o){return null}function Qr({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 Et(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{th(n,t)})},e)}let Ky=!0,Sx=!1,s$;const _q={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 Tq(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_q[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $q(e){e.metaKey||e.altKey||e.ctrlKey||(Ky=!0)}function kw(){Ky=!1}function Rq(){this.visibilityState==="hidden"&&Sx&&(Ky=!0)}function Oq(e){e.addEventListener("keydown",$q,!0),e.addEventListener("mousedown",kw,!0),e.addEventListener("pointerdown",kw,!0),e.addEventListener("touchstart",kw,!0),e.addEventListener("visibilitychange",Rq,!0)}function Dq(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Ky||Tq(t)}function qy(){const e=c.useCallback(o=>{o!=null&&Oq(o.ownerDocument)},[]),t=c.useRef(!1);function n(){return t.current?(Sx=!0,window.clearTimeout(s$),s$=window.setTimeout(()=>{Sx=!1},100),t.current=!1,!0):!1}function r(o){return Dq(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function LF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pu;function FF(){if(pu)return pu;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),pu="reverse",e.scrollLeft>0?pu="default":(e.scrollLeft=1,e.scrollLeft===0&&(pu="negative")),document.body.removeChild(e),pu}function Aq(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(FF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Lq=e=>{const t=c.useRef({});return c.useEffect(()=>{t.current=e}),t.current},AP=Lq;function LP(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]=LP(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Te(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 i$=e=>e,Fq=()=>{let e=i$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i$}}},Nq=Fq(),FP=Nq,Bq={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=Bq[t];return r?`${n}-${r}`:`${FP.generate(e)}-${t}`}function We(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ke(e,o,n)}),r}const Ec="$$material";function le(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 NF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zq=/^((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)-.*))$/,Vq=NF(function(e){return zq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function jq(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 Hq(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 Uq=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(Hq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=jq(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}(),Hr="-ms-",Rv="-moz-",tn="-webkit-",BF="comm",NP="rule",BP="decl",Wq="@import",zF="@keyframes",Gq="@layer",Kq=Math.abs,Yy=String.fromCharCode,qq=Object.assign;function Yq(e,t){return Dr(e,0)^45?(((t<<2^Dr(e,0))<<2^Dr(e,1))<<2^Dr(e,2))<<2^Dr(e,3):0}function VF(e){return e.trim()}function Qq(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function Px(e,t){return e.indexOf(t)}function Dr(e,t){return e.charCodeAt(t)|0}function nh(e,t,n){return e.slice(t,n)}function Pi(e){return e.length}function zP(e){return e.length}function lg(e,t){return t.push(e),e}function Xq(e,t){return e.map(t).join("")}var Qy=1,yd=1,jF=0,$o=0,ar=0,Ud="";function Xy(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Qy,column:yd,length:i,return:""}}function Nf(e,t){return qq(Xy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zq(){return ar}function Jq(){return ar=$o>0?Dr(Ud,--$o):0,yd--,ar===10&&(yd=1,Qy--),ar}function Qo(){return ar=$o<jF?Dr(Ud,$o++):0,yd++,ar===10&&(yd=1,Qy++),ar}function $i(){return Dr(Ud,$o)}function jg(){return $o}function Rh(e,t){return nh(Ud,e,t)}function rh(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 HF(e){return Qy=yd=1,jF=Pi(Ud=e),$o=0,[]}function UF(e){return Ud="",e}function Hg(e){return VF(Rh($o-1,kx(e===91?e+2:e===40?e+1:e)))}function eY(e){for(;(ar=$i())&&ar<33;)Qo();return rh(e)>2||rh(ar)>3?"":" "}function tY(e,t){for(;--t&&Qo()&&!(ar<48||ar>102||ar>57&&ar<65||ar>70&&ar<97););return Rh(e,jg()+(t<6&&$i()==32&&Qo()==32))}function kx(e){for(;Qo();)switch(ar){case e:return $o;case 34:case 39:e!==34&&e!==39&&kx(ar);break;case 40:e===41&&kx(e);break;case 92:Qo();break}return $o}function nY(e,t){for(;Qo()&&e+ar!==47+10;)if(e+ar===42+42&&$i()===47)break;return"/*"+Rh(t,$o-1)+"*"+Yy(e===47?e:Qo())}function rY(e){for(;!rh($i());)Qo();return Rh(e,$o)}function oY(e){return UF(Ug("",null,null,null,[""],e=HF(e),0,[0],e))}function Ug(e,t,n,r,o,s,i,l,a){for(var u=0,f=0,p=i,m=0,v=0,y=0,g=1,C=1,w=1,b=0,S="",E=o,_=s,k=r,I=S;C;)switch(y=b,b=Qo()){case 40:if(y!=108&&Dr(I,p-1)==58){Px(I+=nn(Hg(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=Hg(b);break;case 9:case 10:case 13:case 32:I+=eY(y);break;case 92:I+=tY(jg()-1,7);continue;case 47:switch($i()){case 42:case 47:lg(sY(nY(Qo(),jg()),t,n),a);break;default:I+="/"}break;case 123*g:l[u++]=Pi(I)*w;case 125*g:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:w==-1&&(I=nn(I,/\f/g,"")),v>0&&Pi(I)-p&&lg(v>32?a$(I+";",r,n,p-1):a$(nn(I," ","")+";",r,n,p-2),a);break;case 59:I+=";";default:if(lg(k=l$(I,t,n,u,f,o,l,S,E=[],_=[],p),s),b===123)if(f===0)Ug(I,t,k,k,E,s,p,l,_);else switch(m===99&&Dr(I,3)===110?100:m){case 100:case 108:case 109:case 115:Ug(e,k,k,r&&lg(l$(e,k,k,0,0,o,l,S,o,E=[],p),_),o,_,p,l,r?E:_);break;default:Ug(I,k,k,k,[""],_,0,l,_)}}u=f=v=0,g=w=1,S=I="",p=i;break;case 58:p=1+Pi(I),v=y;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Jq()==125)continue}switch(I+=Yy(b),b*g){case 38:w=f>0?1:(I+="\f",-1);break;case 44:l[u++]=(Pi(I)-1)*w,w=1;break;case 64:$i()===45&&(I+=Hg(Qo())),m=$i(),f=p=Pi(S=I+=rY(jg())),b++;break;case 45:y===45&&Pi(I)==2&&(g=0)}}return s}function l$(e,t,n,r,o,s,i,l,a,u,f){for(var p=o-1,m=o===0?s:[""],v=zP(m),y=0,g=0,C=0;y<r;++y)for(var w=0,b=nh(e,p+1,p=Kq(g=i[y])),S=e;w<v;++w)(S=VF(g>0?m[w]+" "+b:nn(b,/&\f/g,m[w])))&&(a[C++]=S);return Xy(e,t,n,o===0?NP:l,a,u,f)}function sY(e,t,n){return Xy(e,t,n,BF,Yy(Zq()),nh(e,2,-2),0)}function a$(e,t,n,r){return Xy(e,t,n,BP,nh(e,0,r),nh(e,r+1,-1),r)}function td(e,t){for(var n="",r=zP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function iY(e,t,n,r){switch(e.type){case Gq:if(e.children.length)break;case Wq:case BP:return e.return=e.return||e.value;case BF:return"";case zF:return e.return=e.value+"{"+td(e.children,r)+"}";case NP:e.value=e.props.join(",")}return Pi(n=td(e.children,r))?e.return=e.value+"{"+n+"}":""}function lY(e){var t=zP(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 aY(e){return function(t){t.root||(t=t.return)&&e(t)}}var cY=function(t,n,r){for(var o=0,s=0;o=s,s=$i(),o===38&&s===12&&(n[r]=1),!rh(s);)Qo();return Rh(t,$o)},uY=function(t,n){var r=-1,o=44;do switch(rh(o)){case 0:o===38&&$i()===12&&(n[r]=1),t[r]+=cY($o-1,n,r);break;case 2:t[r]+=Hg(o);break;case 4:if(o===44){t[++r]=$i()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Yy(o)}while(o=Qo());return t},dY=function(t,n){return UF(uY(HF(t),n))},c$=new WeakMap,fY=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&&!c$.get(r))&&!o){c$.set(t,!0);for(var s=[],i=dY(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]}}},pY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function WF(e,t){switch(Yq(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+Rv+e+Hr+e+e;case 6828:case 4268:return tn+e+Hr+e+e;case 6165:return tn+e+Hr+"flex-"+e+e;case 5187:return tn+e+nn(e,/(\w+).+(:[^]+)/,tn+"box-$1$2"+Hr+"flex-$1$2")+e;case 5443:return tn+e+Hr+"flex-item-"+nn(e,/flex-|-self/,"")+e;case 4675:return tn+e+Hr+"flex-line-pack"+nn(e,/align-content|flex-|-self/,"")+e;case 5548:return tn+e+Hr+nn(e,"shrink","negative")+e;case 5292:return tn+e+Hr+nn(e,"basis","preferred-size")+e;case 6060:return tn+"box-"+nn(e,"-grow","")+tn+e+Hr+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"+Hr+"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(Pi(e)-1-t>6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+tn+"$2-$3$1"+Rv+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Px(e,"stretch")?WF(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,Pi(e)-3-(~Px(e,"!important")&&10))){case 107:return nn(e,":",":"+tn)+e;case 101:return nn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tn+(Dr(e,14)===45?"inline-":"")+"box$3$1"+tn+"$2$3$1"+Hr+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tn+e+Hr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tn+e+Hr+e+e}return e}var hY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case BP:t.return=WF(t.value,t.length);break;case zF:return td([Nf(t,{value:nn(t.value,"@","@"+tn)})],o);case NP:if(t.length)return Xq(t.props,function(s){switch(Qq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return td([Nf(t,{props:[nn(s,/:(read-\w+)/,":"+Rv+"$1")]})],o);case"::placeholder":return td([Nf(t,{props:[nn(s,/:(plac\w+)/,":"+tn+"input-$1")]}),Nf(t,{props:[nn(s,/:(plac\w+)/,":"+Rv+"$1")]}),Nf(t,{props:[nn(s,/:(plac\w+)/,Hr+"input-$1")]})],o)}return""})}},mY=[hY],gY=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var C=g.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||mY,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var C=g.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)s[C[w]]=!0;l.push(g)});var a,u=[fY,pY];{var f,p=[iY,aY(function(g){f.insert(g)})],m=lY(u.concat(o,p)),v=function(C){return td(oY(C),m)};a=function(C,w,b,S){f=b,v(C?C+"{"+w.styles+"}":w.styles),S&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new Uq({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},GF={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 Er=typeof Symbol=="function"&&Symbol.for,VP=Er?Symbol.for("react.element"):60103,jP=Er?Symbol.for("react.portal"):60106,Zy=Er?Symbol.for("react.fragment"):60107,Jy=Er?Symbol.for("react.strict_mode"):60108,eb=Er?Symbol.for("react.profiler"):60114,tb=Er?Symbol.for("react.provider"):60109,nb=Er?Symbol.for("react.context"):60110,HP=Er?Symbol.for("react.async_mode"):60111,rb=Er?Symbol.for("react.concurrent_mode"):60111,ob=Er?Symbol.for("react.forward_ref"):60112,sb=Er?Symbol.for("react.suspense"):60113,vY=Er?Symbol.for("react.suspense_list"):60120,ib=Er?Symbol.for("react.memo"):60115,lb=Er?Symbol.for("react.lazy"):60116,yY=Er?Symbol.for("react.block"):60121,bY=Er?Symbol.for("react.fundamental"):60117,wY=Er?Symbol.for("react.responder"):60118,CY=Er?Symbol.for("react.scope"):60119;function is(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case VP:switch(e=e.type,e){case HP:case rb:case Zy:case eb:case Jy:case sb:return e;default:switch(e=e&&e.$$typeof,e){case nb:case ob:case lb:case ib:case tb:return e;default:return t}}case jP:return t}}}function KF(e){return is(e)===rb}pn.AsyncMode=HP;pn.ConcurrentMode=rb;pn.ContextConsumer=nb;pn.ContextProvider=tb;pn.Element=VP;pn.ForwardRef=ob;pn.Fragment=Zy;pn.Lazy=lb;pn.Memo=ib;pn.Portal=jP;pn.Profiler=eb;pn.StrictMode=Jy;pn.Suspense=sb;pn.isAsyncMode=function(e){return KF(e)||is(e)===HP};pn.isConcurrentMode=KF;pn.isContextConsumer=function(e){return is(e)===nb};pn.isContextProvider=function(e){return is(e)===tb};pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===VP};pn.isForwardRef=function(e){return is(e)===ob};pn.isFragment=function(e){return is(e)===Zy};pn.isLazy=function(e){return is(e)===lb};pn.isMemo=function(e){return is(e)===ib};pn.isPortal=function(e){return is(e)===jP};pn.isProfiler=function(e){return is(e)===eb};pn.isStrictMode=function(e){return is(e)===Jy};pn.isSuspense=function(e){return is(e)===sb};pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zy||e===rb||e===eb||e===Jy||e===sb||e===vY||typeof e=="object"&&e!==null&&(e.$$typeof===lb||e.$$typeof===ib||e.$$typeof===tb||e.$$typeof===nb||e.$$typeof===ob||e.$$typeof===bY||e.$$typeof===wY||e.$$typeof===CY||e.$$typeof===yY)};pn.typeOf=is;GF.exports=pn;var xY=GF.exports,qF=xY,SY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},PY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YF={};YF[qF.ForwardRef]=SY;YF[qF.Memo]=PY;var kY=!0;function EY(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var QF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||kY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},XF=function(t,n,r){QF(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 IY(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 MY={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},_Y=/[A-Z]|^ms/g,TY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZF=function(t){return t.charCodeAt(1)===45},u$=function(t){return t!=null&&typeof t!="boolean"},Ew=NF(function(e){return ZF(e)?e:e.replace(_Y,"-$&").toLowerCase()}),d$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(TY,function(r,o,s){return ki={name:o,styles:s,next:ki},o})}return MY[t]!==1&&!ZF(t)&&typeof n=="number"&&n!==0?n+"px":n};function oh(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 ki={name:n.name,styles:n.styles,next:ki},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ki={name:r.name,styles:r.styles,next:ki},r=r.next;var o=n.styles+";";return o}return $Y(e,t,n)}case"function":{if(e!==void 0){var s=ki,i=n(e);return ki=s,oh(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function $Y(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oh(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]+"}":u$(i)&&(r+=Ew(s)+":"+d$(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++)u$(i[l])&&(r+=Ew(s)+":"+d$(s,i[l])+";");else{var a=oh(e,t,i);switch(s){case"animation":case"animationName":{r+=Ew(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var f$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ki,UP=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="";ki=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=oh(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=oh(r,n,t[l]),o&&(s+=i[l]);f$.lastIndex=0;for(var a="",u;(u=f$.exec(s))!==null;)a+="-"+u[1];var f=IY(s)+a;return{name:f,styles:s,next:ki}},RY=function(t){return t()},JF=wc["useInsertionEffect"]?wc["useInsertionEffect"]:!1,OY=JF||RY,p$=JF||c.useLayoutEffect,eN=c.createContext(typeof HTMLElement!="undefined"?gY({key:"css"}):null);eN.Provider;var tN=function(t){return c.forwardRef(function(n,r){var o=c.useContext(eN);return t(n,o,r)})},ab=c.createContext({}),DY=tN(function(e,t){var n=e.styles,r=UP([n],void 0,c.useContext(ab)),o=c.useRef();return p$(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]),p$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&XF(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 Ea(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return UP(t)}var Ui=function(){var t=Ea.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_"}}},AY=Vq,LY=function(t){return t!=="theme"},h$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?AY:LY},m$=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},FY=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return QF(n,r,o),OY(function(){return XF(n,r,o)}),null},NY=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=m$(t,n,r),a=l||h$(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 m=f.length,v=1;v<m;v++)p.push(f[v],f[0][v])}var y=tN(function(g,C,w){var b=u&&g.as||o,S="",E=[],_=g;if(g.theme==null){_={};for(var k in g)_[k]=g[k];_.theme=c.useContext(ab)}typeof g.className=="string"?S=EY(C.registered,E,g.className):g.className!=null&&(S=g.className+" ");var I=UP(p.concat(E),C.registered,_);S+=C.key+"-"+I.name,i!==void 0&&(S+=" "+i);var R=u&&l===void 0?h$(b):a,A={};for(var $ in g)u&&$==="as"||R($)&&(A[$]=g[$]);return A.className=S,A.ref=w,c.createElement(c.Fragment,null,c.createElement(FY,{cache:C,serialized:I,isStringTag:typeof b=="string"}),c.createElement(b,A))});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(g,C){return e(g,x({},n,C,{shouldForwardProp:m$(y,C,!0)})).apply(void 0,p)},y}},BY=["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"],Ex=NY.bind();BY.forEach(function(e){Ex[e]=Ex(e)});var Iw={exports:{}},Bf={};/**
|
|
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 g$;function zY(){if(g$)return Bf;g$=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={},m=null,v=null;u!==void 0&&(m=""+u),a.key!==void 0&&(m=""+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:m,ref:v,props:p,_owner:o.current}}return Bf.Fragment=n,Bf.jsx=i,Bf.jsxs=i,Bf}var v$;function Ze(){return v$||(v$=1,Iw.exports=zY()),Iw.exports}var O=Ze();function VY(e){return e==null||Object.keys(e).length===0}function jY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(VY(o)?n:o):t;return O.jsx(DY,{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 nN(e,t){return Ex(e,t)}const HY=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},UY=["values","unit","step"],WY=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 GY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,UY),s=WY(t),i=Object.keys(s);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function a(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,v){const y=i.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:v)-r/100}${n})`}function f(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):l(m)}function p(m){const v=i.indexOf(m);return v===0?l(i[1]):v===i.length-1?a(i[v]):u(m,i[i.indexOf(m)+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 KY={borderRadius:4},qY=KY;function Pp(e,t){return t?Yr(e,t,{clone:!1}):e}const WP={xs:0,sm:600,md:900,lg:1200,xl:1536},y$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${WP[e]}px)`};function Ro(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||WP).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 rN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function oN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function YY(e,...t){const n=rN(e),r=[n,...t].reduce((o,s)=>Yr(o,s),{});return oN(Object.keys(n),r)}function QY(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 pc({values:e,breakpoints:t,base:n}){const r=n||QY(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 bd(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 Ov(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=bd(e,n)||r,t&&(o=t(o,r,e)),o}function sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],a=i.theme,u=bd(a,r)||{};return Ro(i,l,p=>{let m=Ov(u,o,p);return p===m&&typeof p=="string"&&(m=Ov(u,o,`${t}${p==="default"?"":Pe(p)}`,p)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function XY(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ZY={m:"margin",p:"padding"},JY={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},b$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eQ=XY(e=>{if(e.length>2)if(b$[e])e=b$[e];else return[e];const[t,n]=e.split(""),r=ZY[t],o=JY[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),GP=["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"];[...GP,...KP];function Oh(e,t,n,r){var o;const s=(o=bd(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 qP(e){return Oh(e,"spacing",8)}function Ic(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 tQ(e,t){return n=>e.reduce((r,o)=>(r[o]=Ic(t,n),r),{})}function nQ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=eQ(n),s=tQ(o,r),i=e[n];return Ro(e,i,s)}function sN(e,t){const n=qP(e.theme);return Object.keys(e).map(r=>nQ(e,t,r,n)).reduce(Pp,{})}function Wn(e){return sN(e,GP)}Wn.propTypes={};Wn.filterProps=GP;function Gn(e){return sN(e,KP)}Gn.propTypes={};Gn.filterProps=KP;function rQ(e=8){if(e.mui)return e;const t=qP({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 cb(...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]?Pp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Is(e){return typeof e!="number"?e:`${e}px solid`}function zs(e,t){return sr({prop:e,themeKey:"borders",transform:t})}const oQ=zs("border",Is),sQ=zs("borderTop",Is),iQ=zs("borderRight",Is),lQ=zs("borderBottom",Is),aQ=zs("borderLeft",Is),cQ=zs("borderColor"),uQ=zs("borderTopColor"),dQ=zs("borderRightColor"),fQ=zs("borderBottomColor"),pQ=zs("borderLeftColor"),hQ=zs("outline",Is),mQ=zs("outlineColor"),ub=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ic(t,r)});return Ro(e,e.borderRadius,n)}return null};ub.propTypes={};ub.filterProps=["borderRadius"];cb(oQ,sQ,iQ,lQ,aQ,cQ,uQ,dQ,fQ,pQ,ub,hQ,mQ);const db=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({gap:Ic(t,r)});return Ro(e,e.gap,n)}return null};db.propTypes={};db.filterProps=["gap"];const fb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({columnGap:Ic(t,r)});return Ro(e,e.columnGap,n)}return null};fb.propTypes={};fb.filterProps=["columnGap"];const pb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({rowGap:Ic(t,r)});return Ro(e,e.rowGap,n)}return null};pb.propTypes={};pb.filterProps=["rowGap"];const gQ=sr({prop:"gridColumn"}),vQ=sr({prop:"gridRow"}),yQ=sr({prop:"gridAutoFlow"}),bQ=sr({prop:"gridAutoColumns"}),wQ=sr({prop:"gridAutoRows"}),CQ=sr({prop:"gridTemplateColumns"}),xQ=sr({prop:"gridTemplateRows"}),SQ=sr({prop:"gridTemplateAreas"}),PQ=sr({prop:"gridArea"});cb(db,fb,pb,gQ,vQ,yQ,bQ,wQ,CQ,xQ,SQ,PQ);function nd(e,t){return t==="grey"?t:e}const kQ=sr({prop:"color",themeKey:"palette",transform:nd}),EQ=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nd}),IQ=sr({prop:"backgroundColor",themeKey:"palette",transform:nd});cb(kQ,EQ,IQ);function Go(e){return e<=1&&e!==0?`${e*100}%`:e}const MQ=sr({prop:"width",transform:Go}),YP=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])||WP[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:Go(n)}};return Ro(e,e.maxWidth,t)}return null};YP.filterProps=["maxWidth"];const _Q=sr({prop:"minWidth",transform:Go}),TQ=sr({prop:"height",transform:Go}),$Q=sr({prop:"maxHeight",transform:Go}),RQ=sr({prop:"minHeight",transform:Go});sr({prop:"size",cssProperty:"width",transform:Go});sr({prop:"size",cssProperty:"height",transform:Go});const OQ=sr({prop:"boxSizing"});cb(MQ,YP,_Q,TQ,$Q,RQ,OQ);const DQ={border:{themeKey:"borders",transform:Is},borderTop:{themeKey:"borders",transform:Is},borderRight:{themeKey:"borders",transform:Is},borderBottom:{themeKey:"borders",transform:Is},borderLeft:{themeKey:"borders",transform:Is},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Is},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ub},color:{themeKey:"palette",transform:nd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nd},backgroundColor:{themeKey:"palette",transform:nd},p:{style:Gn},pt:{style:Gn},pr:{style:Gn},pb:{style:Gn},pl:{style:Gn},px:{style:Gn},py:{style:Gn},padding:{style:Gn},paddingTop:{style:Gn},paddingRight:{style:Gn},paddingBottom:{style:Gn},paddingLeft:{style:Gn},paddingX:{style:Gn},paddingY:{style:Gn},paddingInline:{style:Gn},paddingInlineStart:{style:Gn},paddingInlineEnd:{style:Gn},paddingBlock:{style:Gn},paddingBlockStart:{style:Gn},paddingBlockEnd:{style:Gn},m:{style:Wn},mt:{style:Wn},mr:{style:Wn},mb:{style:Wn},ml:{style:Wn},mx:{style:Wn},my:{style:Wn},margin:{style:Wn},marginTop:{style:Wn},marginRight:{style:Wn},marginBottom:{style:Wn},marginLeft:{style:Wn},marginX:{style:Wn},marginY:{style:Wn},marginInline:{style:Wn},marginInlineStart:{style:Wn},marginInlineEnd:{style:Wn},marginBlock:{style:Wn},marginBlockStart:{style:Wn},marginBlockEnd:{style:Wn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:db},rowGap:{style:pb},columnGap:{style:fb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Go},maxWidth:{style:YP},minWidth:{transform:Go},height:{transform:Go},maxHeight:{transform:Go},minHeight:{transform:Go},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},hb=DQ;function AQ(...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 LQ(e,t){return typeof e=="function"?e(t):e}function FQ(){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 m=bd(o,u)||{};return p?p(i):Ro(i,r,y=>{let g=Ov(m,f,y);return y===g&&typeof y=="string"&&(g=Ov(m,f,`${n}${y==="default"?"":Pe(y)}`,y)),a===!1?g:{[a]:g}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:hb;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=rN(s.breakpoints),p=Object.keys(f);let m=f;return Object.keys(u).forEach(v=>{const y=LQ(u[v],s);if(y!=null)if(typeof y=="object")if(i[v])m=Pp(m,e(v,y,s,i));else{const g=Ro({theme:s},y,C=>({[v]:C}));AQ(g,y)?m[v]=t({sx:y,theme:s}):m=Pp(m,g)}else m=Pp(m,e(v,y,s,i))}),oN(p,m)}return Array.isArray(o)?o.map(l):l(o)}return t}const iN=FQ();iN.filterProps=["sx"];const mb=iN,NQ=["breakpoints","palette","spacing","shape"];function gb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=le(e,NQ),l=GY(n),a=rQ(o);let u=Yr({breakpoints:l,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:a,shape:x({},qY,s)},i);return u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=x({},hb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return mb({sx:p,theme:this})},u}function BQ(e){return Object.keys(e).length===0}function vb(e=null){const t=c.useContext(ab);return!t||BQ(t)?e:t}const zQ=gb();function Wd(e=zQ){return vb(e)}function VQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Wd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return O.jsx(jY,{styles:o})}const jQ=["sx"],HQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:hb;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function yb(e){const{sx:t}=e,n=le(e,jQ),{systemProps:r,otherProps:o}=HQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return il(l)?x({},r,l):r}:s=x({},r,t),x({},o,{sx:s})}function lN(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=lN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ce(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=lN(e))&&(r&&(r+=" "),r+=t);return r}const UQ=["className","component"];function WQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=nN("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(mb);return c.forwardRef(function(a,u){const f=Wd(n),p=yb(a),{className:m,component:v="div"}=p,y=le(p,UQ);return O.jsx(s,x({as:v,ref:u,className:Ce(m,o?o(r):r),theme:t&&f[t]||f},y))})}const GQ=["variant"];function w$(e){return e.length===0}function aN(e){const{variant:t}=e,n=le(e,GQ);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=w$(r)?e[o]:Pe(e[o]):r+=`${w$(r)?o:Pe(o)}${Pe(e[o].toString())}`}),r}const KQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qQ(e){return Object.keys(e).length===0}function YQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const QQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Dv=e=>{const t={};return e&&e.forEach(n=>{const r=aN(n.props);t[r]=n.style}),t},XQ=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Dv(n)},Av=(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[aN(s.props)])}),o},ZQ=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Av(e,t,s)};function kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const JQ=gb(),eX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wg({defaultTheme:e,theme:t,themeId:n}){return qQ(t)?e:t[n]||t}function tX(e){return e?(t,n)=>n[e]:null}const C$=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(x({},t,{theme:Wg(x({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=Av(t,Dv(s),s);return[o,...i]}return o};function cN(e={}){const{themeId:t,defaultTheme:n=JQ,rootShouldForwardProp:r=kp,slotShouldForwardProp:o=kp}=e,s=i=>mb(x({},i,{theme:Wg(x({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{HY(i,E=>E.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:m=tX(eX(u))}=l,v=le(l,KQ),y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,g=p||!1;let C,w=kp;u==="Root"||u==="root"?w=r:u?w=o:YQ(i)&&(w=void 0);const b=nN(i,x({shouldForwardProp:w,label:C},v)),S=(E,..._)=>{const k=_?_.map($=>{if(typeof $=="function"&&$.__emotion_real!==$)return L=>C$({styledArg:$,props:L,defaultTheme:n,themeId:t});if(il($)){let L=$,B;return $&&$.variants&&(B=$.variants,delete L.variants,L=z=>{let M=$;return Av(z,Dv(B),B).forEach(F=>{M=Yr(M,F)}),M}),L}return $}):[];let I=E;if(il(E)){let $;E&&E.variants&&($=E.variants,delete I.variants,I=L=>{let B=E;return Av(L,Dv($),$).forEach(M=>{B=Yr(B,M)}),B})}else typeof E=="function"&&E.__emotion_real!==E&&(I=$=>C$({styledArg:E,props:$,defaultTheme:n,themeId:t}));a&&m&&k.push($=>{const L=Wg(x({},$,{defaultTheme:n,themeId:t})),B=QQ(a,L);if(B){const z={};return Object.entries(B).forEach(([M,T])=>{z[M]=typeof T=="function"?T(x({},$,{theme:L})):T}),m($,z)}return null}),a&&!y&&k.push($=>{const L=Wg(x({},$,{defaultTheme:n,themeId:t}));return ZQ($,XQ(a,L),L,a)}),g||k.push(s);const R=k.length-_.length;if(Array.isArray(E)&&R>0){const $=new Array(R).fill("");I=[...E,...$],I.raw=[...E.raw,...$]}const A=b(I,...k);return i.muiName&&(A.muiName=i.muiName),A};return b.withConfig&&(S.withConfig=b.withConfig),S}}const nX=cN(),Ir=nX;function uN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:LP(t.components[n].defaultProps,r)}function dN({props:e,name:t,defaultTheme:n,themeId:r}){let o=Wd(n);return r&&(o=o[r]||o),uN({theme:o,name:t,props:e})}function QP(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function rX(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 Mc(e){if(e.type)return e;if(e.charAt(0)==="#")return Mc(rX(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ka(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(ka(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function bb(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 oX(e){e=Mc(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])),bb({type:l,values:a})}function x$(e){e=Mc(e);let t=e.type==="hsl"||e.type==="hsla"?Mc(oX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ys((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function sX(e,t){const n=x$(e),r=x$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function lt(e,t){return e=Mc(e),t=QP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bb(e)}function _c(e,t){if(e=Mc(e),t=QP(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 bb(e)}function Tc(e,t){if(e=Mc(e),t=QP(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 bb(e)}const iX=c.createContext(null),fN=iX;function pN(){return c.useContext(fN)}const lX=typeof Symbol=="function"&&Symbol.for,aX=lX?Symbol.for("mui.nested"):"__THEME_NESTED__";function cX(e,t){return typeof t=="function"?t(e):x({},e,t)}function uX(e){const{children:t,theme:n}=e,r=pN(),o=c.useMemo(()=>{const s=r===null?n:cX(r,n);return s!=null&&(s[aX]=r!==null),s},[n,r]);return O.jsx(fN.Provider,{value:o,children:t})}const S$={};function P$(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 dX(e){const{children:t,theme:n,themeId:r}=e,o=vb(S$),s=pN()||S$,i=P$(r,o,n),l=P$(r,s,n,!0);return O.jsx(uX,{theme:l,children:O.jsx(ab.Provider,{value:i,children:t})})}const fX=["component","direction","spacing","divider","children","className","useFlexGap"],pX=gb(),hX=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mX(e){return dN({props:e,name:"MuiStack",defaultTheme:pX})}function gX(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 vX=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yX=({ownerState:e,theme:t})=>{let n=x({display:"flex",flexDirection:"column"},Ro({theme:t},pc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=qP(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=pc({values:e.direction,base:o}),i=pc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((a,u,f)=>{if(!s[a]){const m=u>0?s[f[u-1]]:"column";s[a]=m}}),n=Yr(n,Ro({theme:t},i,(a,u)=>e.useFlexGap?{gap:Ic(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${vX(u?s[u]:e.direction)}`]:Ic(r,a)}}))}return n=YY(t.breakpoints,n),n};function bX(e={}){const{createStyledComponent:t=hX,useThemeProps:n=mX,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},a=>Ke(r,a),{}),s=t(yX);return c.forwardRef(function(a,u){const f=n(a),p=yb(f),{component:m="div",direction:v="column",spacing:y=0,divider:g,children:C,className:w,useFlexGap:b=!1}=p,S=le(p,fX),E={direction:v,spacing:y,useFlexGap:b},_=o();return O.jsx(s,x({as:m,ownerState:E,ref:u,className:Ce(_.root,w)},S,{children:g?gX(C,g):C}))})}function wX(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const CX=["mode","contrastThreshold","tonalOffset"],k$={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:eh.white,default:eh.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:eh.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:eh.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 E$(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=Tc(e.main,o):t==="dark"&&(e.dark=_c(e.main,s)))}function xX(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[700],light:uu[400],dark:uu[800]}}function SX(e="light"){return e==="dark"?{main:cu[200],light:cu[50],dark:cu[400]}:{main:cu[500],light:cu[300],dark:cu[700]}}function PX(e="light"){return e==="dark"?{main:au[500],light:au[300],dark:au[700]}:{main:au[700],light:au[400],dark:au[800]}}function kX(e="light"){return e==="dark"?{main:du[400],light:du[300],dark:du[700]}:{main:du[700],light:du[500],dark:du[900]}}function EX(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[800],light:fu[500],dark:fu[900]}}function IX(e="light"){return e==="dark"?{main:Ff[400],light:Ff[300],dark:Ff[700]}:{main:"#ed6c02",light:Ff[500],dark:Ff[900]}}function MX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,CX),s=e.primary||xX(t),i=e.secondary||SX(t),l=e.error||PX(t),a=e.info||kX(t),u=e.success||EX(t),f=e.warning||IX(t);function p(g){return sX(g,Mw.text.primary)>=n?Mw.text.primary:k$.text.primary}const m=({color:g,name:C,mainShade:w=500,lightShade:b=300,darkShade:S=700})=>{if(g=x({},g),!g.main&&g[w]&&(g.main=g[w]),!g.hasOwnProperty("main"))throw new Error(ka(11,C?` (${C})`:"",w));if(typeof g.main!="string")throw new Error(ka(12,C?` (${C})`:"",JSON.stringify(g.main)));return E$(g,"light",b,r),E$(g,"dark",S,r),g.contrastText||(g.contrastText=p(g.main)),g},v={dark:Mw,light:k$};return Yr(x({common:x({},eh),mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:a,name:"info"}),success:m({color:u,name:"success"}),grey:hq,contrastThreshold:n,getContrastText:p,augmentColor:m,tonalOffset:r},v[t]),o)}const _X=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function TX(e){return Math.round(e*1e5)/1e5}const I$={textTransform:"uppercase"},M$='"Roboto", "Helvetica", "Arial", sans-serif';function $X(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=M$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:f,pxToRem:p}=n,m=le(n,_X),v=o/14,y=p||(w=>`${w/u*v}rem`),g=(w,b,S,E,_)=>x({fontFamily:r,fontWeight:w,fontSize:y(b),lineHeight:S},r===M$?{letterSpacing:`${TX(E/b)}em`}:{},_,f),C={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(l,14,1.75,.4,I$),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,I$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr(x({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),m,{clone:!1})}const RX=.2,OX=.14,DX=.12;function On(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${OX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${DX})`].join(",")}const AX=["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)],LX=AX,FX=["duration","easing","delay"],NX={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)"},hN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _$(e){return`${Math.round(e)}ms`}function BX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ys(t,.25)+t/5)*10)}function zX(e){const t=x({},NX,e.easing),n=x({},hN,e.duration);return x({getAutoHeightDuration:BX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return le(s,FX),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:_$(i)} ${l} ${typeof a=="string"?a:_$(a)}`).join(",")}},e,{easing:t,duration:n})}const VX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},jX=VX,HX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function XP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=le(e,HX);if(e.vars)throw new Error(ka(18));const l=MX(r),a=gb(e);let u=Yr(a,{mixins:wX(a.breakpoints,n),palette:l,shadows:LX.slice(),typography:$X(l,s),transitions:zX(o),zIndex:x({},jX)});return u=Yr(u,i),u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=x({},hb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return mb({sx:p,theme:this})},u}function UX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function WX(e){return parseFloat(e)}const GX=XP(),wb=GX;function yn(){const e=Wd(wb);return e[Ec]||e}function je({props:e,name:t}){return dN({props:e,name:t,defaultTheme:wb,themeId:Ec})}const Jr=e=>kp(e)&&e!=="classes",KX=kp,qX=cN({themeId:Ec,defaultTheme:wb,rootShouldForwardProp:Jr}),oe=qX,YX=["theme"];function QX(e){let{theme:t}=e,n=le(e,YX);const r=t[Ec];return O.jsx(dX,x({},n,{themeId:r?Ec:void 0,theme:r||t}))}const XX=e=>{let t;return e<1?t=5.11916*ys(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},T$=XX;function ZX(e){return Ke("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JX=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],eZ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Te(o,ZX,r)},tZ=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,a,u,f,p,m,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=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.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]}}),mN=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:m="0 0 24 24"}=r,v=le(r,JX),y=c.isValidElement(o)&&o.type==="svg",g=x({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y}),C={};f||(C.viewBox=m);const w=eZ(g);return O.jsxs(tZ,x({as:l,className:Ce(w.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:g,children:[y?o.props.children:o,p?O.jsx("title",{children:p}):null]}))});mN.muiName="SvgIcon";const $$=mN;function bt(e,t){function n(r,o){return O.jsx($$,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=$$.muiName,c.memo(c.forwardRef(n))}const nZ={configure:e=>{FP.configure(e)}},rZ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:xx,createSvgIcon:bt,debounce:Aa,deprecatedPropType:Pq,isMuiElement:Sp,ownerDocument:fn,ownerWindow:Jo,requirePropFactory:kq,setRef:th,unstable_ClassNameGenerator:nZ,unstable_useEnhancedEffect:Nt,unstable_useId:Kt,unsupportedProp:Mq,useControlled:Qr,useEventCallback:Ye,useForkRef:Et,useIsFocusVisible:qy},Symbol.toStringTag,{value:"Module"}));function Ix(e,t){return Ix=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ix(e,t)}function Cb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ix(e,t)}function oZ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function sZ(e,t){e.classList?e.classList.add(t):oZ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function R$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function iZ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=R$(e.className,t):e.setAttribute("class",R$(e.className&&e.className.baseVal||"",t))}const O$={disabled:!1},Lv=co.createContext(null);var gN=function(t){return t.scrollTop},rp="unmounted",nc="exited",rc="entering",Pu="entered",Mx="exiting",El=function(e){Cb(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=nc,s.appearStatus=rc):a=Pu:r.unmountOnExit||r.mountOnEnter?a=rp:a=nc,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===rp?{status:nc}: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!==rc&&i!==Pu&&(s=rc):(i===rc||i===Pu)&&(s=Mx)}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===rc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ig.findDOMNode(this);i&&gN(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nc&&this.setState({status:rp})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[ig.findDOMNode(this),l],u=a[0],f=a[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!o&&!i||O$.disabled){this.safeSetState({status:Pu},function(){s.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:rc},function(){s.props.onEntering(u,f),s.onTransitionEnd(m,function(){s.safeSetState({status:Pu},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:ig.findDOMNode(this);if(!s||O$.disabled){this.safeSetState({status:nc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Mx},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:nc},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:ig.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===rp)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=le(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return co.createElement(Lv.Provider,{value:null},typeof i=="function"?i(o,l):co.cloneElement(co.Children.only(i),l))},t}(co.Component);El.contextType=Lv;El.propTypes={};function hu(){}El.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hu,onEntering:hu,onEntered:hu,onExit:hu,onExiting:hu,onExited:hu};El.UNMOUNTED=rp;El.EXITED=nc;El.ENTERING=rc;El.ENTERED=Pu;El.EXITING=Mx;const Dh=El;var lZ=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return sZ(t,r)})},_w=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return iZ(t,r)})},ZP=function(e){Cb(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],m=p?"appear":"enter";r.addClass(f,m,"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],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"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],m=u?p+"-active":a[l+"Active"],v=u?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:m,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&&gN(o),l&&(this.appliedClasses[s][i]=l,lZ(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&&_w(o,l),a&&_w(o,a),u&&_w(o,u)},n.render=function(){var o=this.props;o.classNames;var s=le(o,["classNames"]);return co.createElement(Dh,x({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(co.Component);ZP.defaultProps={classNames:""};ZP.propTypes={};const aZ=ZP;function _x(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(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 cZ(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 ac(e,t,n){return n[t]!=null?n[t]:e.props[t]}function uZ(e,t){return JP(e.children,function(n){return c.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ac(n,"appear",e),enter:ac(n,"enter",e),exit:ac(n,"exit",e)})})}function dZ(e,t,n){var r=JP(e.children),o=cZ(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:ac(i,"exit",e),enter:ac(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:ac(i,"exit",e),enter:ac(i,"enter",e)}))}}),o}var fZ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pZ={component:"div",childFactory:function(t){return t}},ek=function(e){Cb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(_x(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?uZ(o,l):dZ(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=JP(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=le(o,["component","childFactory"]),a=this.state.contextValue,u=fZ(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?co.createElement(Lv.Provider,{value:a},u):co.createElement(Lv.Provider,{value:a},co.createElement(s,l,u))},t}(co.Component);ek.propTypes={};ek.defaultProps=pZ;const tk=ek,nk=e=>e.scrollTop;function Ia(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 hZ(e){return Ke("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const mZ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gZ=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,hZ,n)},vZ=oe("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"})),yZ=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),bZ=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),vN=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:m,onEntering:v,onExit:y,onExited:g,onExiting:C,orientation:w="vertical",style:b,timeout:S=hN.standard,TransitionComponent:E=Dh}=r,_=le(r,mZ),k=x({},r,{orientation:w,collapsedSize:l}),I=gZ(k),R=yn(),A=c.useRef(),$=c.useRef(null),L=c.useRef(),B=typeof l=="number"?`${l}px`:l,z=w==="horizontal",M=z?"width":"height";c.useEffect(()=>()=>{clearTimeout(A.current)},[]);const T=c.useRef(null),F=Et(n,T),j=J=>se=>{if(J){const Z=T.current;se===void 0?J(Z):J(Z,se)}},D=()=>$.current?$.current[z?"clientWidth":"clientHeight"]:0,N=j((J,se)=>{$.current&&z&&($.current.style.position="absolute"),J.style[M]=B,p&&p(J,se)}),H=j((J,se)=>{const Z=D();$.current&&z&&($.current.style.position="");const{duration:he,easing:ne}=Ia({style:b,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const re=R.transitions.getAutoHeightDuration(Z);J.style.transitionDuration=`${re}ms`,L.current=re}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[M]=`${Z}px`,J.style.transitionTimingFunction=ne,v&&v(J,se)}),K=j((J,se)=>{J.style[M]="auto",m&&m(J,se)}),Y=j(J=>{J.style[M]=`${D()}px`,y&&y(J)}),te=j(g),Q=j(J=>{const se=D(),{duration:Z,easing:he}=Ia({style:b,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const ne=R.transitions.getAutoHeightDuration(se);J.style.transitionDuration=`${ne}ms`,L.current=ne}else J.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;J.style[M]=B,J.style.transitionTimingFunction=he,C&&C(J)}),X=J=>{S==="auto"&&(A.current=setTimeout(J,L.current||0)),o&&o(T.current,J)};return O.jsx(E,x({in:f,onEnter:N,onEntered:K,onEntering:H,onExit:Y,onExited:te,onExiting:Q,addEndListener:X,nodeRef:T,timeout:S==="auto"?null:S},_,{children:(J,se)=>O.jsx(vZ,x({as:a,className:Ce(I.root,i,{entered:I.entered,exited:!f&&B==="0px"&&I.hidden}[J]),style:x({[z?"minWidth":"minHeight"]:B},b),ownerState:x({},k,{state:J}),ref:F},se,{children:O.jsx(yZ,{ownerState:x({},k,{state:J}),className:I.wrapper,ref:$,children:O.jsx(bZ,{ownerState:x({},k,{state:J}),className:I.wrapperInner,children:s})})}))}))});vN.muiSupportAuto=!0;const Fv=vN;function wZ(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 CZ=["className","component","elevation","square","variant"],xZ=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(s,wZ,o)},SZ=oe("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(${lt("#fff",T$(t.elevation))}, ${lt("#fff",T$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),PZ=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=le(r,CZ),f=x({},r,{component:s,elevation:i,square:l,variant:a}),p=xZ(f);return O.jsx(SZ,x({as:s,ownerState:f,className:Ce(p.root,o),ref:n},u))}),Vs=PZ;function kZ(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),m=Ce(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},y=Ce(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),c.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,u);return()=>{clearTimeout(g)}}},[a,l,u]),O.jsx("span",{className:m,style:v,children:O.jsx("span",{className:y})})}const EZ=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ss=EZ,IZ=["center","classes","className"];let xb=e=>e,D$,A$,L$,F$;const Tx=550,MZ=80,_Z=Ui(D$||(D$=xb`
|
|
89
|
+
0% {
|
|
90
|
+
transform: scale(0);
|
|
91
|
+
opacity: 0.1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
transform: scale(1);
|
|
96
|
+
opacity: 0.3;
|
|
97
|
+
}
|
|
98
|
+
`)),TZ=Ui(A$||(A$=xb`
|
|
99
|
+
0% {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
100% {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
`)),$Z=Ui(L$||(L$=xb`
|
|
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
|
+
`)),RZ=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OZ=oe(kZ,{name:"MuiTouchRipple",slot:"Ripple"})(F$||(F$=xb`
|
|
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
|
+
`),Ss.rippleVisible,_Z,Tx,({theme:e})=>e.transitions.easing.easeInOut,Ss.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ss.child,Ss.childLeaving,TZ,Tx,({theme:e})=>e.transitions.easing.easeInOut,Ss.childPulsate,$Z,({theme:e})=>e.transitions.easing.easeInOut),DZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=le(r,IZ),[a,u]=c.useState([]),f=c.useRef(0),p=c.useRef(null);c.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const m=c.useRef(!1),v=c.useRef(0),y=c.useRef(null),g=c.useRef(null);c.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const C=c.useCallback(E=>{const{pulsate:_,rippleX:k,rippleY:I,rippleSize:R,cb:A}=E;u($=>[...$,O.jsx(OZ,{classes:{ripple:Ce(s.ripple,Ss.ripple),rippleVisible:Ce(s.rippleVisible,Ss.rippleVisible),ripplePulsate:Ce(s.ripplePulsate,Ss.ripplePulsate),child:Ce(s.child,Ss.child),childLeaving:Ce(s.childLeaving,Ss.childLeaving),childPulsate:Ce(s.childPulsate,Ss.childPulsate)},timeout:Tx,pulsate:_,rippleX:k,rippleY:I,rippleSize:R},f.current)]),f.current+=1,p.current=A},[s]),w=c.useCallback((E={},_={},k=()=>{})=>{const{pulsate:I=!1,center:R=o||_.pulsate,fakeElement:A=!1}=_;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const $=A?null:g.current,L=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,z,M;if(R||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)B=Math.round(L.width/2),z=Math.round(L.height/2);else{const{clientX:T,clientY:F}=E.touches&&E.touches.length>0?E.touches[0]:E;B=Math.round(T-L.left),z=Math.round(F-L.top)}if(R)M=Math.sqrt((2*ys(L.width,2)+ys(L.height,2))/3),M%2===0&&(M+=1);else{const T=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,F=Math.max(Math.abs(($?$.clientHeight:0)-z),z)*2+2;M=Math.sqrt(ys(T,2)+ys(F,2))}E!=null&&E.touches?y.current===null&&(y.current=()=>{C({pulsate:I,rippleX:B,rippleY:z,rippleSize:M,cb:k})},v.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},MZ)):C({pulsate:I,rippleX:B,rippleY:z,rippleSize:M,cb:k})},[o,C]),b=c.useCallback(()=>{w({},{pulsate:!0})},[w]),S=c.useCallback((E,_)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&y.current){y.current(),y.current=null,v.current=setTimeout(()=>{S(E,_)});return}y.current=null,u(k=>k.length>0?k.slice(1):k),p.current=_},[]);return c.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:S}),[b,w,S]),O.jsx(RZ,x({className:Ce(Ss.root,s.root,i),ref:g},l,{children:O.jsx(tk,{component:null,exit:!0,children:a})}))}),AZ=DZ;function LZ(e){return Ke("MuiButtonBase",e)}const FZ=We("MuiButtonBase",["root","disabled","focusVisible"]),NZ=FZ,BZ=["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"],zZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Te({root:["root",t&&"disabled",n&&"focusVisible"]},LZ,o);return n&&r&&(i.root+=` ${r}`),i},VZ=oe("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"},[`&.${NZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jZ=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:m=!1,LinkComponent:v="a",onBlur:y,onClick:g,onContextMenu:C,onDragLeave:w,onFocus:b,onFocusVisible:S,onKeyDown:E,onKeyUp:_,onMouseDown:k,onMouseLeave:I,onMouseUp:R,onTouchEnd:A,onTouchMove:$,onTouchStart:L,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:M,type:T}=r,F=le(r,BZ),j=c.useRef(null),D=c.useRef(null),N=Et(D,M),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:te}=qy(),[Q,X]=c.useState(!1);u&&Q&&X(!1),c.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),j.current.focus()}}),[]);const[J,se]=c.useState(!1);c.useEffect(()=>{se(!0)},[]);const Z=J&&!f&&!u;c.useEffect(()=>{Q&&m&&!f&&J&&D.current.pulsate()},[f,m,Q,J]);function he(Le,ht,Zt=p){return Ye(Pt=>(ht&&ht(Pt),!Zt&&D.current&&D.current[Le](Pt),!0))}const ne=he("start",k),re=he("stop",C),me=he("stop",w),ce=he("stop",R),Se=he("stop",Le=>{Q&&Le.preventDefault(),I&&I(Le)}),Ee=he("start",L),ae=he("stop",A),Ie=he("stop",$),ye=he("stop",Le=>{Y(Le),H.current===!1&&X(!1),y&&y(Le)},!1),Me=Ye(Le=>{j.current||(j.current=Le.currentTarget),K(Le),H.current===!0&&(X(!0),S&&S(Le)),b&&b(Le)}),pe=()=>{const Le=j.current;return a&&a!=="button"&&!(Le.tagName==="A"&&Le.href)},fe=c.useRef(!1),de=Ye(Le=>{m&&!fe.current&&Q&&D.current&&Le.key===" "&&(fe.current=!0,D.current.stop(Le,()=>{D.current.start(Le)})),Le.target===Le.currentTarget&&pe()&&Le.key===" "&&Le.preventDefault(),E&&E(Le),Le.target===Le.currentTarget&&pe()&&Le.key==="Enter"&&!u&&(Le.preventDefault(),g&&g(Le))}),be=Ye(Le=>{m&&Le.key===" "&&D.current&&Q&&!Le.defaultPrevented&&(fe.current=!1,D.current.stop(Le,()=>{D.current.pulsate(Le)})),_&&_(Le),g&&Le.target===Le.currentTarget&&pe()&&Le.key===" "&&!Le.defaultPrevented&&g(Le)});let _e=a;_e==="button"&&(F.href||F.to)&&(_e=v);const Ne={};_e==="button"?(Ne.type=T===void 0?"button":T,Ne.disabled=u):(!F.href&&!F.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const Ge=Et(n,te,j),Ve=x({},r,{centerRipple:s,component:a,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:B,focusVisible:Q}),Ue=zZ(Ve);return O.jsxs(VZ,x({as:_e,className:Ce(Ue.root,l),ownerState:Ve,onBlur:ye,onClick:g,onContextMenu:re,onFocus:Me,onKeyDown:de,onKeyUp:be,onMouseDown:ne,onMouseLeave:Se,onMouseUp:ce,onDragLeave:me,onTouchEnd:ae,onTouchMove:Ie,onTouchStart:Ee,ref:Ge,tabIndex:u?-1:B,type:T},Ne,F,{children:[i,Z?O.jsx(AZ,x({ref:N,center:s},z)):null]}))}),ui=jZ;function HZ(e){return Ke("MuiAlert",e)}const UZ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),N$=UZ;function WZ(e){return Ke("MuiIconButton",e)}const GZ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),KZ=GZ,qZ=["edge","children","className","color","disabled","disableFocusRipple","size"],YZ=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Pe(r)}`,o&&`edge${Pe(o)}`,`size${Pe(s)}`]};return Te(i,WZ,t)},QZ=oe(ui,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pe(n.color)}`],n.edge&&t[`edge${Pe(n.edge)}`],t[`size${Pe(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})`:lt(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})`:lt(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)},{[`&.${KZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),XZ=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=le(r,qZ),m=x({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:f}),v=YZ(m);return O.jsx(QZ,x({className:Ce(v.root,i),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:m},p,{children:s}))}),xr=XZ,ZZ=bt(O.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"),JZ=bt(O.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),eJ=bt(O.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"),tJ=bt(O.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"),yN=bt(O.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"),nJ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],rJ=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`${t}${Pe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Te(s,HZ,o)},oJ=oe(Vs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?_c:Tc,r=e.palette.mode==="light"?Tc:_c,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),[`& .${N$.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}`,[`& .${N$.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)}))}),sJ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),iJ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),B$=oe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),z$={success:O.jsx(ZZ,{fontSize:"inherit"}),warning:O.jsx(JZ,{fontSize:"inherit"}),error:O.jsx(eJ,{fontSize:"inherit"}),info:O.jsx(tJ,{fontSize:"inherit"})},lJ=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiAlert"}),{action:f,children:p,className:m,closeText:v="Close",color:y,components:g={},componentsProps:C={},icon:w,iconMapping:b=z$,onClose:S,role:E="alert",severity:_="success",slotProps:k={},slots:I={},variant:R="standard"}=u,A=le(u,nJ),$=x({},u,{color:y,severity:_,variant:R}),L=rJ($),B=(r=(o=I.closeButton)!=null?o:g.CloseButton)!=null?r:xr,z=(s=(i=I.closeIcon)!=null?i:g.CloseIcon)!=null?s:yN,M=(l=k.closeButton)!=null?l:C.closeButton,T=(a=k.closeIcon)!=null?a:C.closeIcon;return O.jsxs(oJ,x({role:E,elevation:0,ownerState:$,className:Ce(L.root,m),ref:n},A,{children:[w!==!1?O.jsx(sJ,{ownerState:$,className:L.icon,children:w||b[_]||z$[_]}):null,O.jsx(iJ,{ownerState:$,className:L.message,children:p}),f!=null?O.jsx(B$,{ownerState:$,className:L.action,children:f}):null,f==null&&S?O.jsx(B$,{ownerState:$,className:L.action,children:O.jsx(B,x({size:"small","aria-label":v,title:v,color:"inherit",onClick:S},M,{children:O.jsx(z,x({fontSize:"small"},T))}))}):null]}))}),kr=lJ;function aJ(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 cJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uJ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,l={root:["root",s,e.align!=="inherit"&&`align${Pe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Te(l,aJ,i)},dJ=oe("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${Pe(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})),V$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pJ=e=>fJ[e]||e,hJ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTypography"}),o=pJ(r.color),s=yb(x({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:m="body1",variantMapping:v=V$}=s,y=le(s,cJ),g=x({},s,{align:i,color:o,className:l,component:a,gutterBottom:u,noWrap:f,paragraph:p,variant:m,variantMapping:v}),C=a||(p?"p":v[m]||V$[m])||"span",w=uJ(g);return O.jsx(dJ,x({as:C,ref:n,ownerState:g,className:Ce(w.root,l)},y))}),qn=hJ;function mJ(e){return Ke("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const gJ=["className","color","enableColorOnDark","position"],vJ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return Te(o,mJ,r)},ag=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,yJ=oe(Vs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],t[`color${Pe(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:ag(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ag(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:ag(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ag(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"}))}),bJ=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=le(r,gJ),u=x({},r,{color:s,position:l,enableColorOnDark:i}),f=vJ(u);return O.jsx(yJ,x({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),wJ=bJ;function $c(e){return typeof e=="string"}function op(e,t,n){return e===void 0||$c(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}const CJ={disableDefaultClasses:!1},xJ=c.createContext(CJ);function SJ(e){const{disableDefaultClasses:t}=c.useContext(xJ);return n=>t?"":e(n)}function bN(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 Sb(e,t,n){return typeof e=="function"?e(t,n):e}function j$(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 PJ(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=Ce(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),g=x({},n,o,r);return v.length>0&&(g.className=v),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const i=bN(x({},o,r)),l=j$(r),a=j$(o),u=t(i),f=Ce(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),m=x({},u,n,a,l);return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}const kJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,kJ),l=s?{}:Sb(r,o),{props:a,internalRef:u}=PJ(x({},i,{externalSlotProps:l})),f=Et(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return op(n,x({},a,{ref:f}),o)}function EJ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=AP({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 H$(e){return e.substring(2).toLowerCase()}function IJ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function wN(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=Et(t.ref,l),p=Ye(y=>{const g=u.current;u.current=!1;const C=fn(l.current);if(!a.current||!l.current||"clientX"in y&&IJ(y,C))return;if(i.current){i.current=!1;return}let w;y.composedPath?w=y.composedPath().indexOf(l.current)>-1:w=!C.documentElement.contains(y.target)||l.current.contains(y.target),!w&&(n||!g)&&o(y)}),m=y=>g=>{u.current=!0;const C=t.props[y];C&&C(g)},v={ref:f};return s!==!1&&(v[s]=m(s)),c.useEffect(()=>{if(s!==!1){const y=H$(s),g=fn(l.current),C=()=>{i.current=!0};return g.addEventListener(y,p),g.addEventListener("touchmove",C),()=>{g.removeEventListener(y,p),g.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(v[r]=m(r)),c.useEffect(()=>{if(r!==!1){const y=H$(r),g=fn(l.current);return g.addEventListener(y,p),()=>{g.removeEventListener(y,p)}}},[p,r]),O.jsx(c.Fragment,{children:c.cloneElement(t,v)})}const MJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _J(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 TJ(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 $J(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||TJ(e))}function RJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(MJ)).forEach((r,o)=>{const s=_J(r);s===-1||!$J(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 OJ(){return!0}function rk(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=RJ,isEnabled:i=OJ,open:l}=e,a=c.useRef(!1),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),m=c.useRef(null),v=c.useRef(!1),y=c.useRef(null),g=Et(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),E=I=>{C.current=I,!(r||!i()||I.key!=="Tab")&&S.activeElement===y.current&&I.shiftKey&&(a.current=!0,f.current&&f.current.focus())},_=()=>{const I=y.current;if(I===null)return;if(!S.hasFocus()||!i()||a.current){a.current=!1;return}if(I.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==f.current)return;if(S.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let R=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(R=s(y.current)),R.length>0){var A,$;const L=!!((A=C.current)!=null&&A.shiftKey&&(($=C.current)==null?void 0:$.key)==="Tab"),B=R[0],z=R[R.length-1];typeof B!="string"&&typeof z!="string"&&(L?z.focus():B.focus())}else I.focus()};S.addEventListener("focusin",_),S.addEventListener("keydown",E,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",_),S.removeEventListener("keydown",E,!0)}},[n,r,o,i,l,s]);const w=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0,m.current=S.target;const E=t.props.onFocus;E&&E(S)},b=S=>{p.current===null&&(p.current=S.relatedTarget),v.current=!0};return O.jsxs(c.Fragment,{children:[O.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:g,onFocus:w}),O.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var Mo="top",Ds="bottom",As="right",_o="left",ok="auto",Ah=[Mo,Ds,As,_o],wd="start",sh="end",DJ="clippingParents",CN="viewport",zf="popper",AJ="reference",U$=Ah.reduce(function(e,t){return e.concat([t+"-"+wd,t+"-"+sh])},[]),xN=[].concat(Ah,[ok]).reduce(function(e,t){return e.concat([t,t+"-"+wd,t+"-"+sh])},[]),LJ="beforeRead",FJ="read",NJ="afterRead",BJ="beforeMain",zJ="main",VJ="afterMain",jJ="beforeWrite",HJ="write",UJ="afterWrite",WJ=[LJ,FJ,NJ,BJ,zJ,VJ,jJ,HJ,UJ];function zi(e){return e?(e.nodeName||"").toLowerCase():null}function es(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rc(e){var t=es(e).Element;return e instanceof t||e instanceof Element}function Ts(e){var t=es(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sk(e){if(typeof ShadowRoot=="undefined")return!1;var t=es(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GJ(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];!Ts(s)||!zi(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 KJ(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},{});!Ts(o)||!zi(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const qJ={name:"applyStyles",enabled:!0,phase:"write",fn:GJ,effect:KJ,requires:["computeStyles"]};function Ri(e){return e.split("-")[0]}var hc=Math.max,Nv=Math.min,Cd=Math.round;function $x(){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 SN(){return!/^((?!chrome|android).)*safari/i.test($x())}function xd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Ts(e)&&(o=e.offsetWidth>0&&Cd(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Cd(r.height)/e.offsetHeight||1);var i=Rc(e)?es(e):window,l=i.visualViewport,a=!SN()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,m=r.height/s;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function ik(e){var t=xd(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 PN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wl(e){return es(e).getComputedStyle(e)}function YJ(e){return["table","td","th"].indexOf(zi(e))>=0}function La(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pb(e){return zi(e)==="html"?e:e.assignedSlot||e.parentNode||(sk(e)?e.host:null)||La(e)}function W$(e){return!Ts(e)||wl(e).position==="fixed"?null:e.offsetParent}function QJ(e){var t=/firefox/i.test($x()),n=/Trident/i.test($x());if(n&&Ts(e)){var r=wl(e);if(r.position==="fixed")return null}var o=Pb(e);for(sk(o)&&(o=o.host);Ts(o)&&["html","body"].indexOf(zi(o))<0;){var s=wl(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 Lh(e){for(var t=es(e),n=W$(e);n&&YJ(n)&&wl(n).position==="static";)n=W$(n);return n&&(zi(n)==="html"||zi(n)==="body"&&wl(n).position==="static")?t:n||QJ(e)||t}function lk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ep(e,t,n){return hc(e,Nv(t,n))}function XJ(e,t,n){var r=Ep(e,t,n);return r>n?n:r}function kN(){return{top:0,right:0,bottom:0,left:0}}function EN(e){return Object.assign({},kN(),e)}function IN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZJ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,EN(typeof t!="number"?t:IN(t,Ah))};function JJ(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ri(n.placement),a=lk(l),u=[_o,As].indexOf(l)>=0,f=u?"height":"width";if(!(!s||!i)){var p=ZJ(o.padding,n),m=ik(s),v=a==="y"?Mo:_o,y=a==="y"?Ds:As,g=n.rects.reference[f]+n.rects.reference[a]-i[a]-n.rects.popper[f],C=i[a]-n.rects.reference[a],w=Lh(s),b=w?a==="y"?w.clientHeight||0:w.clientWidth||0:0,S=g/2-C/2,E=p[v],_=b-m[f]-p[y],k=b/2-m[f]/2+S,I=Ep(E,k,_),R=a;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function eee(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)||PN(t.elements.popper,o)&&(t.elements.arrow=o))}const tee={name:"arrow",enabled:!0,phase:"main",fn:JJ,effect:eee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sd(e){return e.split("-")[1]}var nee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ree(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cd(n*o)/o||0,y:Cd(r*o)/o||0}}function G$(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,m=i.x,v=m===void 0?0:m,y=i.y,g=y===void 0?0:y,C=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=C.x,g=C.y;var w=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),S=_o,E=Mo,_=window;if(u){var k=Lh(n),I="clientHeight",R="clientWidth";if(k===es(n)&&(k=La(n),wl(k).position!=="static"&&l==="absolute"&&(I="scrollHeight",R="scrollWidth")),k=k,o===Mo||(o===_o||o===As)&&s===sh){E=Ds;var A=p&&k===_&&_.visualViewport?_.visualViewport.height:k[I];g-=A-r.height,g*=a?1:-1}if(o===_o||(o===Mo||o===Ds)&&s===sh){S=As;var $=p&&k===_&&_.visualViewport?_.visualViewport.width:k[R];v-=$-r.width,v*=a?1:-1}}var L=Object.assign({position:l},u&&nee),B=f===!0?ree({x:v,y:g},es(n)):{x:v,y:g};if(v=B.x,g=B.y,a){var z;return Object.assign({},L,(z={},z[E]=b?"0":"",z[S]=w?"0":"",z.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",z))}return Object.assign({},L,(t={},t[E]=b?g+"px":"",t[S]=w?v+"px":"",t.transform="",t))}function oee(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:Ri(t.placement),variation:Sd(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,G$(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,G$(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 see={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oee,data:{}};var cg={passive:!0};function iee(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=es(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(f){f.addEventListener("scroll",n.update,cg)}),l&&a.addEventListener("resize",n.update,cg),function(){s&&u.forEach(function(f){f.removeEventListener("scroll",n.update,cg)}),l&&a.removeEventListener("resize",n.update,cg)}}const lee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iee,data:{}};var aee={left:"right",right:"left",bottom:"top",top:"bottom"};function Gg(e){return e.replace(/left|right|bottom|top/g,function(t){return aee[t]})}var cee={start:"end",end:"start"};function K$(e){return e.replace(/start|end/g,function(t){return cee[t]})}function ak(e){var t=es(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ck(e){return xd(La(e)).left+ak(e).scrollLeft}function uee(e,t){var n=es(e),r=La(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var u=SN();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+ck(e),y:a}}function dee(e){var t,n=La(e),r=ak(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=hc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=hc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ck(e),a=-r.scrollTop;return wl(o||n).direction==="rtl"&&(l+=hc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function uk(e){var t=wl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function MN(e){return["html","body","#document"].indexOf(zi(e))>=0?e.ownerDocument.body:Ts(e)&&uk(e)?e:MN(Pb(e))}function Ip(e,t){var n;t===void 0&&(t=[]);var r=MN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=es(r),i=o?[s].concat(s.visualViewport||[],uk(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ip(Pb(i)))}function Rx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fee(e,t){var n=xd(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 q$(e,t,n){return t===CN?Rx(uee(e,n)):Rc(t)?fee(t,n):Rx(dee(La(e)))}function pee(e){var t=Ip(Pb(e)),n=["absolute","fixed"].indexOf(wl(e).position)>=0,r=n&&Ts(e)?Lh(e):e;return Rc(r)?t.filter(function(o){return Rc(o)&&PN(o,r)&&zi(o)!=="body"}):[]}function hee(e,t,n,r){var o=t==="clippingParents"?pee(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,u){var f=q$(e,u,r);return a.top=hc(f.top,a.top),a.right=Nv(f.right,a.right),a.bottom=Nv(f.bottom,a.bottom),a.left=hc(f.left,a.left),a},q$(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 _N(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ri(r):null,s=r?Sd(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case Mo:a={x:i,y:t.y-n.height};break;case Ds:a={x:i,y:t.y+t.height};break;case As:a={x:t.x+t.width,y:l};break;case _o:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?lk(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(s){case wd:a[u]=a[u]-(t[f]/2-n[f]/2);break;case sh:a[u]=a[u]+(t[f]/2-n[f]/2);break}}return a}function ih(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?DJ:l,u=n.rootBoundary,f=u===void 0?CN:u,p=n.elementContext,m=p===void 0?zf:p,v=n.altBoundary,y=v===void 0?!1:v,g=n.padding,C=g===void 0?0:g,w=EN(typeof C!="number"?C:IN(C,Ah)),b=m===zf?AJ:zf,S=e.rects.popper,E=e.elements[y?b:m],_=hee(Rc(E)?E:E.contextElement||La(e.elements.popper),a,f,i),k=xd(e.elements.reference),I=_N({reference:k,element:S,strategy:"absolute",placement:o}),R=Rx(Object.assign({},S,I)),A=m===zf?R:k,$={top:_.top-A.top+w.top,bottom:A.bottom-_.bottom+w.bottom,left:_.left-A.left+w.left,right:A.right-_.right+w.right},L=e.modifiersData.offset;if(m===zf&&L){var B=L[o];Object.keys($).forEach(function(z){var M=[As,Ds].indexOf(z)>=0?1:-1,T=[Mo,Ds].indexOf(z)>=0?"y":"x";$[z]+=B[T]*M})}return $}function mee(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?xN:a,f=Sd(r),p=f?l?U$:U$.filter(function(y){return Sd(y)===f}):Ah,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var v=m.reduce(function(y,g){return y[g]=ih(e,{placement:g,boundary:o,rootBoundary:s,padding:i})[Ri(g)],y},{});return Object.keys(v).sort(function(y,g){return v[y]-v[g]})}function gee(e){if(Ri(e)===ok)return[];var t=Gg(e);return[K$(e),t,K$(t)]}function vee(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,m=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,g=n.allowedAutoPlacements,C=t.options.placement,w=Ri(C),b=w===C,S=a||(b||!y?[Gg(C)]:gee(C)),E=[C].concat(S).reduce(function(Q,X){return Q.concat(Ri(X)===ok?mee(t,{placement:X,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:g}):X)},[]),_=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,A=E[0],$=0;$<E.length;$++){var L=E[$],B=Ri(L),z=Sd(L)===wd,M=[Mo,Ds].indexOf(B)>=0,T=M?"width":"height",F=ih(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),j=M?z?As:_o:z?Ds:Mo;_[T]>k[T]&&(j=Gg(j));var D=Gg(j),N=[];if(s&&N.push(F[B]<=0),l&&N.push(F[j]<=0,F[D]<=0),N.every(function(Q){return Q})){A=L,R=!1;break}I.set(L,N)}if(R)for(var H=y?3:1,K=function(X){var J=E.find(function(se){var Z=I.get(se);if(Z)return Z.slice(0,X).every(function(he){return he})});if(J)return A=J,"break"},Y=H;Y>0;Y--){var te=K(Y);if(te==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const yee={name:"flip",enabled:!0,phase:"main",fn:vee,requiresIfExists:["offset"],data:{_skip:!1}};function Y$(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 Q$(e){return[Mo,As,Ds,_o].some(function(t){return e[t]>=0})}function bee(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=ih(t,{elementContext:"reference"}),l=ih(t,{altBoundary:!0}),a=Y$(i,r),u=Y$(l,o,s),f=Q$(a),p=Q$(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 wee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bee};function Cee(e,t,n){var r=Ri(e),o=[_o,Mo].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,[_o,As].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function xee(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=xN.reduce(function(f,p){return f[p]=Cee(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 See={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xee};function Pee(e){var t=e.state,n=e.name;t.modifiersData[n]=_N({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kee={name:"popperOffsets",enabled:!0,phase:"read",fn:Pee,data:{}};function Eee(e){return e==="x"?"y":"x"}function Iee(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,m=n.tether,v=m===void 0?!0:m,y=n.tetherOffset,g=y===void 0?0:y,C=ih(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:f}),w=Ri(t.placement),b=Sd(t.placement),S=!b,E=lk(w),_=Eee(E),k=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(k){if(s){var z,M=E==="y"?Mo:_o,T=E==="y"?Ds:As,F=E==="y"?"height":"width",j=k[E],D=j+C[M],N=j-C[T],H=v?-R[F]/2:0,K=b===wd?I[F]:R[F],Y=b===wd?-R[F]:-I[F],te=t.elements.arrow,Q=v&&te?ik(te):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kN(),J=X[M],se=X[T],Z=Ep(0,I[F],Q[F]),he=S?I[F]/2-H-Z-J-$.mainAxis:K-Z-J-$.mainAxis,ne=S?-I[F]/2+H+Z+se+$.mainAxis:Y+Z+se+$.mainAxis,re=t.elements.arrow&&Lh(t.elements.arrow),me=re?E==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(z=L==null?void 0:L[E])!=null?z:0,Se=j+he-ce-me,Ee=j+ne-ce,ae=Ep(v?Nv(D,Se):D,j,v?hc(N,Ee):N);k[E]=ae,B[E]=ae-j}if(l){var Ie,ye=E==="x"?Mo:_o,Me=E==="x"?Ds:As,pe=k[_],fe=_==="y"?"height":"width",de=pe+C[ye],be=pe-C[Me],_e=[Mo,_o].indexOf(w)!==-1,Ne=(Ie=L==null?void 0:L[_])!=null?Ie:0,Ge=_e?de:pe-I[fe]-R[fe]-Ne+$.altAxis,Ve=_e?pe+I[fe]+R[fe]-Ne-$.altAxis:be,Ue=v&&_e?XJ(Ge,pe,Ve):Ep(v?Ge:de,pe,v?Ve:be);k[_]=Ue,B[_]=Ue-pe}t.modifiersData[r]=B}}const Mee={name:"preventOverflow",enabled:!0,phase:"main",fn:Iee,requiresIfExists:["offset"]};function _ee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tee(e){return e===es(e)||!Ts(e)?ak(e):_ee(e)}function $ee(e){var t=e.getBoundingClientRect(),n=Cd(t.width)/e.offsetWidth||1,r=Cd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ree(e,t,n){n===void 0&&(n=!1);var r=Ts(t),o=Ts(t)&&$ee(t),s=La(t),i=xd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zi(t)!=="body"||uk(s))&&(l=Tee(t)),Ts(t)?(a=xd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=ck(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Oee(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 Dee(e){var t=Oee(e);return WJ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Aee(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Lee(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 X$={placement:"bottom",modifiers:[],strategy:"absolute"};function Z$(){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 Fee(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?X$:o;return function(l,a,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},X$,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],m=!1,v={state:f,setOptions:function(w){var b=typeof w=="function"?w(f.options):w;g(),f.options=Object.assign({},s,f.options,b),f.scrollParents={reference:Rc(l)?Ip(l):l.contextElement?Ip(l.contextElement):[],popper:Ip(a)};var S=Dee(Lee([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(E){return E.enabled}),y(),v.update()},forceUpdate:function(){if(!m){var w=f.elements,b=w.reference,S=w.popper;if(Z$(b,S)){f.rects={reference:Ree(b,Lh(S),f.options.strategy==="fixed"),popper:ik(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function($){return f.modifiersData[$.name]=Object.assign({},$.data)});for(var E=0;E<f.orderedModifiers.length;E++){if(f.reset===!0){f.reset=!1,E=-1;continue}var _=f.orderedModifiers[E],k=_.fn,I=_.options,R=I===void 0?{}:I,A=_.name;typeof k=="function"&&(f=k({state:f,options:R,name:A,instance:v})||f)}}}},update:Aee(function(){return new Promise(function(C){v.forceUpdate(),C(f)})}),destroy:function(){g(),m=!0}};if(!Z$(l,a))return v;v.setOptions(u).then(function(C){!m&&u.onFirstUpdate&&u.onFirstUpdate(C)});function y(){f.orderedModifiers.forEach(function(C){var w=C.name,b=C.options,S=b===void 0?{}:b,E=C.effect;if(typeof E=="function"){var _=E({state:f,name:w,instance:v,options:S}),k=function(){};p.push(_||k)}})}function g(){p.forEach(function(C){return C()}),p=[]}return v}}var Nee=[lee,kee,see,qJ,See,yee,Mee,tee,wee],Bee=Fee({defaultModifiers:Nee});function zee(e){return typeof e=="function"?e():e}const TN=c.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=c.useState(null),a=Et(c.isValidElement(r)?r.ref:null,n);if(Nt(()=>{s||l(zee(o)||document.body)},[o,s]),Nt(()=>{if(i&&!s)return th(n,i),()=>{th(n,null)}},[n,i,s]),s){if(c.isValidElement(r)){const u={ref:a};return c.cloneElement(r,u)}return O.jsx(c.Fragment,{children:r})}return O.jsx(c.Fragment,{children:i&&zd.createPortal(r,i)})});function Vee(e){return Ke("MuiPopper",e)}We("MuiPopper",["root"]);const jee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Hee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Uee(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 Ox(e){return typeof e=="function"?e():e}function Wee(e){return e.nodeType!==void 0}const Gee=()=>Te({root:["root"]},SJ(Vee)),Kee={},qee=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:m,slotProps:v={},slots:y={},TransitionProps:g}=t,C=le(t,jee),w=c.useRef(null),b=Et(w,n),S=c.useRef(null),E=Et(S,m),_=c.useRef(E);Nt(()=>{_.current=E},[E]),c.useImperativeHandle(m,()=>S.current,[]);const k=Uee(f,i),[I,R]=c.useState(k),[A,$]=c.useState(Ox(o));c.useEffect(()=>{S.current&&S.current.forceUpdate()}),c.useEffect(()=>{o&&$(Ox(o))},[o]),Nt(()=>{if(!A||!u)return;const T=D=>{R(D.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{T(D)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const j=Bee(A,w.current,x({placement:k},p,{modifiers:F}));return _.current(j),()=>{j.destroy(),_.current(null)}},[A,l,a,u,p,k]);const L={placement:I};g!==null&&(L.TransitionProps=g);const B=Gee(),z=(r=y.root)!=null?r:"div",M=qt({elementType:z,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:B.root});return O.jsx(z,x({},M,{children:typeof s=="function"?s(L):s}))}),Yee=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:m=Kee,popperRef:v,style:y,transition:g=!1,slotProps:C={},slots:w={}}=t,b=le(t,Hee),[S,E]=c.useState(!0),_=()=>{E(!1)},k=()=>{E(!0)};if(!a&&!f&&(!g||S))return null;let I;if(s)I=s;else if(r){const $=Ox(r);I=$&&Wee($)?fn($).body:fn(null).body}const R=!f&&a&&(!g||S)?"none":void 0,A=g?{in:f,onEnter:_,onExited:k}:void 0;return O.jsx(TN,{disablePortal:l,container:I,children:O.jsx(qee,x({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:g?!S:f,placement:p,popperOptions:m,popperRef:v,slotProps:C,slots:w},b,{style:x({position:"fixed",top:0,left:0,display:R},y),TransitionProps:A,children:o}))})});function Qee(e){const t=fn(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J$(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function Xee(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 eR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!Xee(i);l&&a&&Mp(i,o)})}function Tw(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Zee(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Qee(r)){const i=LF(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J$(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=`${J$(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=fn(r).body;else{const i=r.parentElement,l=Jo(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 Jee(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ete{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&&Mp(t.modalRef,!1);const o=Jee(n);eR(n,t.mount,t.modalRef,o,!0);const s=Tw(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=Tw(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Zee(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Tw(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&&Mp(t.modalRef,n),eR(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&&Mp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function tte(e){return typeof e=="function"?e():e}function nte(e){return e?e.props.hasOwnProperty("in"):!1}const rte=new ete;function ote(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rte,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:u,open:f,rootRef:p}=e,m=c.useRef({}),v=c.useRef(null),y=c.useRef(null),g=Et(y,p),[C,w]=c.useState(!f),b=nte(a);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const E=()=>fn(v.current),_=()=>(m.current.modalRef=y.current,m.current.mount=v.current,m.current),k=()=>{o.mount(_(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},I=Ye(()=>{const F=tte(t)||E().body;o.add(_(),F),y.current&&k()}),R=c.useCallback(()=>o.isTopModal(_()),[o]),A=Ye(F=>{v.current=F,F&&(f&&R()?k():y.current&&Mp(y.current,S))}),$=c.useCallback(()=>{o.remove(_(),S)},[S,o]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{f?I():(!b||!s)&&$()},[f,$,b,s,I]);const L=F=>j=>{var D;(D=F.onKeyDown)==null||D.call(F,j),!(j.key!=="Escape"||j.which===229||!R())&&(n||(j.stopPropagation(),u&&u(j,"escapeKeyDown")))},B=F=>j=>{var D;(D=F.onClick)==null||D.call(F,j),j.target===j.currentTarget&&u&&u(j,"backdropClick")};return{getRootProps:(F={})=>{const j=bN(e);delete j.onTransitionEnter,delete j.onTransitionExited;const D=x({},j,F);return x({role:"presentation"},D,{onKeyDown:L(D),ref:g})},getBackdropProps:(F={})=>{const j=F;return x({"aria-hidden":!0},j,{onClick:B(j),open:f})},getTransitionProps:()=>{const F=()=>{w(!1),i&&i()},j=()=>{w(!0),l&&l(),s&&$()};return{onEnter:xx(F,a==null?void 0:a.props.onEnter),onExited:xx(j,a==null?void 0:a.props.onExited)}},rootRef:g,portalRef:A,isTopModal:R,exited:C,hasTransition:b}}const ste=["onChange","maxRows","minRows","style","value"];function ug(e){return parseInt(e,10)||0}const ite={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lte=c.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=le(t,ste),{current:u}=c.useRef(l!=null),f=c.useRef(null),p=Et(n,f),m=c.useRef(null),v=c.useRef(0),[y,g]=c.useState({outerHeightStyle:0}),C=c.useCallback(()=>{const E=f.current,k=Jo(E).getComputedStyle(E);if(k.width==="0px")return{outerHeightStyle:0};const I=m.current;I.style.width=k.width,I.value=E.value||t.placeholder||"x",I.value.slice(-1)===`
|
|
162
|
+
`&&(I.value+=" ");const R=k.boxSizing,A=ug(k.paddingBottom)+ug(k.paddingTop),$=ug(k.borderBottomWidth)+ug(k.borderTopWidth),L=I.scrollHeight;I.value="x";const B=I.scrollHeight;let z=L;s&&(z=Math.max(Number(s)*B,z)),o&&(z=Math.min(Number(o)*B,z)),z=Math.max(z,B);const M=z+(R==="border-box"?A+$:0),T=Math.abs(z-L)<=1;return{outerHeightStyle:M,overflow:T}},[o,s,t.placeholder]),w=(E,_)=>{const{outerHeightStyle:k,overflow:I}=_;return v.current<20&&(k>0&&Math.abs((E.outerHeightStyle||0)-k)>1||E.overflow!==I)?(v.current+=1,{overflow:I,outerHeightStyle:k}):E},b=c.useCallback(()=>{const E=C();tR(E)||g(_=>w(_,E))},[C]);Nt(()=>{const E=()=>{const L=C();tR(L)||zd.flushSync(()=>{g(B=>w(B,L))})},_=()=>{v.current=0,E()};let k;const I=Aa(_),R=f.current,A=Jo(R);A.addEventListener("resize",I);let $;return typeof ResizeObserver!="undefined"&&($=new ResizeObserver(_),$.observe(R)),()=>{I.clear(),cancelAnimationFrame(k),A.removeEventListener("resize",I),$&&$.disconnect()}},[C]),Nt(()=>{b()}),c.useEffect(()=>{v.current=0},[l]);const S=E=>{v.current=0,u||b(),r&&r(E)};return O.jsxs(c.Fragment,{children:[O.jsx("textarea",x({value:l,onChange:S,ref:p,rows:s,style:x({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},i)},a)),O.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:x({},ite.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function nR(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function $N(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=nR(f));const p=f?l.filter(m=>{let v=(s||u)(m);return n&&(v=v.toLowerCase()),t&&(v=nR(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function $w(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const ate=$N(),rR=5,cte=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function ute(e){const{unstable_isActiveElementInListbox:t=cte,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:m=!1,disabled:v,disabledItemsFocusable:y=!1,disableListWrap:g=!1,filterOptions:C=ate,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:S,getOptionKey:E,getOptionLabel:_=$e=>{var we;return(we=$e.label)!=null?we:$e},groupBy:k,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:A=!1,inputValue:$,isOptionEqualToValue:L=($e,we)=>$e===we,multiple:B=!1,onChange:z,onClose:M,onHighlightChange:T,onInputChange:F,onOpen:j,open:D,openOnFocus:N=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:te}=e,Q=Kt(R);let X=_;X=$e=>{const we=_($e);return typeof we!="string"?String(we):we};const J=c.useRef(!1),se=c.useRef(!0),Z=c.useRef(null),he=c.useRef(null),[ne,re]=c.useState(null),[me,ce]=c.useState(-1),Se=o?0:-1,Ee=c.useRef(Se),[ae,Ie]=Qr({controlled:te,default:f,name:u}),[ye,Me]=Qr({controlled:$,default:"",name:u,state:"inputValue"}),[pe,fe]=c.useState(!1),de=c.useCallback(($e,we)=>{if(!(B?ae.length<we.length:we!==null)&&!l)return;let ft;if(B)ft="";else if(we==null)ft="";else{const Wt=X(we);ft=typeof Wt=="string"?Wt:""}ye!==ft&&(Me(ft),F&&F($e,ft,"reset"))},[X,ye,B,F,Me,l,ae]),[be,_e]=Qr({controlled:D,default:!1,name:u,state:"open"}),[Ne,Ge]=c.useState(!0),Ve=!B&&ae!=null&&ye===X(ae),Ue=be&&!K,Le=Ue?C(H.filter($e=>!(w&&(B?ae:[ae]).some(we=>we!==null&&L($e,we)))),{inputValue:Ve&&Ne?"":ye,getOptionLabel:X}):[],ht=AP({filteredOptions:Le,value:ae,inputValue:ye});c.useEffect(()=>{const $e=ae!==ht.value;pe&&!$e||b&&!$e||de(null,ae)},[ae,de,pe,ht.value,b]);const Zt=be&&Le.length>0&&!K,Pt=Ye($e=>{$e===-1?Z.current.focus():ne.querySelector(`[data-tag-index="${$e}"]`).focus()});c.useEffect(()=>{B&&me>ae.length-1&&(ce(-1),Pt(-1))},[ae,B,me,Pt]);function wt($e,we){if(!he.current||$e<0||$e>=Le.length)return-1;let Qe=$e;for(;;){const ft=he.current.querySelector(`[data-option-index="${Qe}"]`),Wt=y?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&ft.hasAttribute("tabindex")&&!Wt)return Qe;if(we==="next"?Qe=(Qe+1)%Le.length:Qe=(Qe-1+Le.length)%Le.length,Qe===$e)return-1}}const Xe=Ye(({event:$e,index:we,reason:Qe="auto"})=>{if(Ee.current=we,we===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${Q}-option-${we}`),T&&T($e,we===-1?null:Le[we],Qe),!he.current)return;const ft=he.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));let Wt=he.current;if(he.current.getAttribute("role")!=="listbox"&&(Wt=he.current.parentElement.querySelector('[role="listbox"]')),!Wt)return;if(we===-1){Wt.scrollTop=0;return}const $n=he.current.querySelector(`[data-option-index="${we}"]`);if($n&&($n.classList.add(`${n}-focused`),Qe==="keyboard"&&$n.classList.add(`${n}-focusVisible`),Wt.scrollHeight>Wt.clientHeight&&Qe!=="mouse"&&Qe!=="touch")){const Fn=$n,St=Wt.clientHeight+Wt.scrollTop,Xn=Fn.offsetTop+Fn.offsetHeight;Xn>St?Wt.scrollTop=Xn-Wt.clientHeight:Fn.offsetTop-Fn.offsetHeight*(k?1.3:0)<Wt.scrollTop&&(Wt.scrollTop=Fn.offsetTop-Fn.offsetHeight*(k?1.3:0))}}),Oe=Ye(({event:$e,diff:we,direction:Qe="next",reason:ft="auto"})=>{if(!Ue)return;const $n=wt((()=>{const Fn=Le.length-1;if(we==="reset")return Se;if(we==="start")return 0;if(we==="end")return Fn;const St=Ee.current+we;return St<0?St===-1&&A?-1:g&&Ee.current!==-1||Math.abs(we)>1?0:Fn:St>Fn?St===Fn+1&&A?-1:g||Math.abs(we)>1?Fn:0:St})(),Qe);if(Xe({index:$n,reason:ft,event:$e}),r&&we!=="reset")if($n===-1)Z.current.value=ye;else{const Fn=X(Le[$n]);Z.current.value=Fn,Fn.toLowerCase().indexOf(ye.toLowerCase())===0&&ye.length>0&&Z.current.setSelectionRange(ye.length,Fn.length)}}),qe=()=>{const $e=(we,Qe)=>{const ft=we?X(we):"",Wt=Qe?X(Qe):"";return ft===Wt};if(Ee.current!==-1&&ht.filteredOptions&&ht.filteredOptions.length!==Le.length&&ht.inputValue===ye&&(B?ae.length===ht.value.length&&ht.value.every((we,Qe)=>X(ae[Qe])===X(we)):$e(ht.value,ae))){const we=ht.filteredOptions[Ee.current];if(we&&Le.some(ft=>X(ft)===X(we)))return!0}return!1},mt=c.useCallback(()=>{if(!Ue||qe())return;const $e=B?ae[0]:ae;if(Le.length===0||$e==null){Oe({diff:"reset"});return}if(he.current){if($e!=null){const we=Le[Ee.current];if(B&&we&&$w(ae,ft=>L(we,ft))!==-1)return;const Qe=$w(Le,ft=>L(ft,$e));Qe===-1?Oe({diff:"reset"}):Xe({index:Qe});return}if(Ee.current>=Le.length-1){Xe({index:Le.length-1});return}Xe({index:Ee.current})}},[Le.length,B?!1:ae,w,Oe,Xe,Ue,ye,B]),vt=Ye($e=>{th(he,$e),$e&&mt()});c.useEffect(()=>{mt()},[mt]);const Tt=$e=>{be||(_e(!0),Ge(!0),j&&j($e))},Yt=($e,we)=>{be&&(_e(!1),M&&M($e,we))},Qt=($e,we,Qe,ft)=>{if(B){if(ae.length===we.length&&ae.every((Wt,$n)=>Wt===we[$n]))return}else if(ae===we)return;z&&z($e,we,Qe,ft),Ie(we)},Pn=c.useRef(!1),bn=($e,we,Qe="selectOption",ft="options")=>{let Wt=Qe,$n=we;if(B){$n=Array.isArray(ae)?ae.slice():[];const Fn=$w($n,St=>L(we,St));Fn===-1?$n.push(we):ft!=="freeSolo"&&($n.splice(Fn,1),Wt="removeOption")}de($e,$n),Qt($e,$n,Wt,{option:we}),!m&&(!$e||!$e.ctrlKey&&!$e.metaKey)&&Yt($e,Wt),(i===!0||i==="touch"&&Pn.current||i==="mouse"&&!Pn.current)&&Z.current.blur()};function gt($e,we){if($e===-1)return-1;let Qe=$e;for(;;){if(we==="next"&&Qe===ae.length||we==="previous"&&Qe===-1)return-1;const ft=ne.querySelector(`[data-tag-index="${Qe}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")Qe+=we==="next"?1:-1;else return Qe}}const Rt=($e,we)=>{if(!B)return;ye===""&&Yt($e,"toggleInput");let Qe=me;me===-1?ye===""&&we==="previous"&&(Qe=ae.length-1):(Qe+=we==="next"?1:-1,Qe<0&&(Qe=0),Qe===ae.length&&(Qe=-1)),Qe=gt(Qe,we),ce(Qe),Pt(Qe)},vr=$e=>{J.current=!0,Me(""),F&&F($e,"","clear"),Qt($e,B?[]:null,"clear")},ir=$e=>we=>{if($e.onKeyDown&&$e.onKeyDown(we),!we.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(ce(-1),Pt(-1)),we.which!==229))switch(we.key){case"Home":Ue&&I&&(we.preventDefault(),Oe({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":Ue&&I&&(we.preventDefault(),Oe({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),Oe({diff:-rR,direction:"previous",reason:"keyboard",event:we}),Tt(we);break;case"PageDown":we.preventDefault(),Oe({diff:rR,direction:"next",reason:"keyboard",event:we}),Tt(we);break;case"ArrowDown":we.preventDefault(),Oe({diff:1,direction:"next",reason:"keyboard",event:we}),Tt(we);break;case"ArrowUp":we.preventDefault(),Oe({diff:-1,direction:"previous",reason:"keyboard",event:we}),Tt(we);break;case"ArrowLeft":Rt(we,"previous");break;case"ArrowRight":Rt(we,"next");break;case"Enter":if(Ee.current!==-1&&Ue){const Qe=Le[Ee.current],ft=S?S(Qe):!1;if(we.preventDefault(),ft)return;bn(we,Qe,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else b&&ye!==""&&Ve===!1&&(B&&we.preventDefault(),bn(we,ye,"createOption","freeSolo"));break;case"Escape":Ue?(we.preventDefault(),we.stopPropagation(),Yt(we,"escape")):a&&(ye!==""||B&&ae.length>0)&&(we.preventDefault(),we.stopPropagation(),vr(we));break;case"Backspace":if(B&&!K&&ye===""&&ae.length>0){const Qe=me===-1?ae.length-1:me,ft=ae.slice();ft.splice(Qe,1),Qt(we,ft,"removeOption",{option:ae[Qe]})}break;case"Delete":if(B&&!K&&ye===""&&ae.length>0&&me!==-1){const Qe=me,ft=ae.slice();ft.splice(Qe,1),Qt(we,ft,"removeOption",{option:ae[Qe]})}break}},Tl=$e=>{fe(!0),N&&!J.current&&Tt($e)},as=$e=>{if(t(he)){Z.current.focus();return}fe(!1),se.current=!0,J.current=!1,s&&Ee.current!==-1&&Ue?bn($e,Le[Ee.current],"blur"):s&&b&&ye!==""?bn($e,ye,"blur","freeSolo"):l&&de($e,ae),Yt($e,"blur")},Tn=$e=>{const we=$e.target.value;ye!==we&&(Me(we),Ge(!1),F&&F($e,we,"input")),we===""?!p&&!B&&Qt($e,null,"clear"):Tt($e)},an=$e=>{const we=Number($e.currentTarget.getAttribute("data-option-index"));Ee.current!==we&&Xe({event:$e,index:we,reason:"mouse"})},yr=$e=>{Xe({event:$e,index:Number($e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Pn.current=!0},ho=$e=>{const we=Number($e.currentTarget.getAttribute("data-option-index"));bn($e,Le[we],"selectOption"),Pn.current=!1},cs=$e=>we=>{const Qe=ae.slice();Qe.splice($e,1),Qt(we,Qe,"removeOption",{option:ae[$e]})},lr=$e=>{be?Yt($e,"toggleInput"):Tt($e)},Do=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Q&&$e.preventDefault()},mi=$e=>{$e.currentTarget.contains($e.target)&&(Z.current.focus(),Y&&se.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),se.current=!1)},Mr=$e=>{!v&&(ye===""||!be)&&lr($e)};let Nr=b&&ye.length>0;Nr=Nr||(B?ae.length>0:ae!==null);let js=Le;return k&&(js=Le.reduce(($e,we,Qe)=>{const ft=k(we);return $e.length>0&&$e[$e.length-1].group===ft?$e[$e.length-1].options.push(we):$e.push({key:Qe,index:Qe,group:ft,options:[we]}),$e},[])),v&&pe&&as(),{getRootProps:($e={})=>x({"aria-owns":Zt?`${Q}-listbox`:null},$e,{onKeyDown:ir($e),onMouseDown:Do,onClick:mi}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ye,onBlur:as,onFocus:Tl,onChange:Tn,onMouseDown:Mr,"aria-activedescendant":Ue?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Q}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:vr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:lr}),getTagProps:({index:$e})=>x({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:cs($e)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:vt,onMouseDown:$e=>{$e.preventDefault()}}),getOptionProps:({index:$e,option:we})=>{var Qe;const ft=(B?ae:[ae]).some($n=>$n!=null&&L(we,$n)),Wt=S?S(we):!1;return{key:(Qe=E==null?void 0:E(we))!=null?Qe:X(we),tabIndex:-1,role:"option",id:`${Q}-option-${$e}`,onMouseMove:an,onClick:ho,onTouchStart:yr,"data-option-index":$e,"aria-disabled":Wt,"aria-selected":ft}},id:Q,inputValue:ye,value:ae,dirty:Nr,expanded:Ue&&ne,popupOpen:Ue,focused:pe||me!==-1,anchorEl:ne,setAnchorEl:re,focusedTag:me,groupedOptions:js}}const dte=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],fte=oe(Yee,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pte=c.forwardRef(function(t,n){var r;const o=vb(),s=je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:u,container:f,disablePortal:p,keepMounted:m,modifiers:v,open:y,placement:g,popperOptions:C,popperRef:w,transition:b,slots:S,slotProps:E}=s,_=le(s,dte),k=(r=S==null?void 0:S.root)!=null?r:a==null?void 0:a.Root,I=x({anchorEl:i,container:f,disablePortal:p,keepMounted:m,modifiers:v,open:y,placement:g,popperOptions:C,popperRef:w,transition:b},_);return O.jsx(fte,x({as:l,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:E!=null?E:u},I,{ref:n}))}),Fa=pte;function hte(e){return Ke("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const mte=["className","color","component","disableGutters","disableSticky","inset"],gte=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${Pe(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return Te(i,hte,t)},vte=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pe(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})),RN=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=le(r,mte),p=x({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:u}),m=gte(p);return O.jsx(vte,x({as:i,className:Ce(m.root,o),ref:n,ownerState:p},f))});RN.muiSkipListHighlight=!0;const yte=RN,bte=bt(O.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 wte(e){return Ke("MuiChip",e)}const Cte=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=Cte,xte=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ste=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${Pe(r)}`,`color${Pe(o)}`,l&&"clickable",l&&`clickableColor${Pe(o)}`,i&&"deletable",i&&`deletableColor${Pe(o)}`,`${a}${Pe(o)}`],label:["label",`label${Pe(r)}`],avatar:["avatar",`avatar${Pe(r)}`,`avatarColor${Pe(o)}`],icon:["icon",`icon${Pe(r)}`,`iconColor${Pe(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Pe(r)}`,`deleteIconColor${Pe(o)}`,`deleteIcon${Pe(a)}Color${Pe(o)}`]};return Te(u,wte,t)},Pte=oe("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${Pe(l)}`]},{[`& .${Jt.avatar}`]:t[`avatarColor${Pe(r)}`]},{[`& .${Jt.icon}`]:t.icon},{[`& .${Jt.icon}`]:t[`icon${Pe(l)}`]},{[`& .${Jt.icon}`]:t[`iconColor${Pe(o)}`]},{[`& .${Jt.deleteIcon}`]:t.deleteIcon},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Pe(l)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIconColor${Pe(r)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Pe(a)}Color${Pe(r)}`]},t.root,t[`size${Pe(l)}`],t[`color${Pe(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Pe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Pe(r)}`],t[a],t[`${a}${Pe(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)`:lt(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)`:lt(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)`:lt(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}))`:lt(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}))`:lt(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}))`:lt(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)`:lt(e.palette[t.color].main,.7)}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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})`:lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),kte=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Pe(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 oR(e){return e.key==="Backspace"||e.key==="Delete"}const Ete=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:m,onClick:v,onDelete:y,onKeyDown:g,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:S,skipFocusWhenDisabled:E=!1}=r,_=le(r,xte),k=c.useRef(null),I=Et(k,n),R=N=>{N.stopPropagation(),y&&y(N)},A=N=>{N.currentTarget===N.target&&oR(N)&&N.preventDefault(),g&&g(N)},$=N=>{N.currentTarget===N.target&&(y&&oR(N)?y(N):N.key==="Escape"&&k.current&&k.current.blur()),C&&C(N)},L=i!==!1&&v?!0:i,B=L||y?ui:a||"div",z=x({},r,{component:B,disabled:f,size:w,color:l,iconColor:c.isValidElement(p)&&p.props.color||l,onDelete:!!y,clickable:L,variant:b}),M=Ste(z),T=B===ui?x({component:a||"div",focusVisibleClassName:M.focusVisible},y&&{disableRipple:!0}):{};let F=null;y&&(F=u&&c.isValidElement(u)?c.cloneElement(u,{className:Ce(u.props.className,M.deleteIcon),onClick:R}):O.jsx(bte,{className:Ce(M.deleteIcon),onClick:R}));let j=null;o&&c.isValidElement(o)&&(j=c.cloneElement(o,{className:Ce(M.avatar,o.props.className)}));let D=null;return p&&c.isValidElement(p)&&(D=c.cloneElement(p,{className:Ce(M.icon,p.props.className)})),O.jsxs(Pte,x({as:B,className:Ce(M.root,s),disabled:L&&f?!0:void 0,onClick:v,onKeyDown:A,onKeyUp:$,ref:I,tabIndex:E&&f?-1:S,ownerState:z},T,_,{children:[j||D,O.jsx(kte,{className:Ce(M.label),ownerState:z,children:m}),F]}))}),kb=Ete;function Vc({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 Ite=c.createContext(void 0),Eb=Ite;function Il(){return c.useContext(Eb)}function Mte(e){return O.jsx(VQ,x({},e,{defaultTheme:wb,themeId:Ec}))}function sR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bv(e,t=!1){return e&&(sR(e.value)&&e.value!==""||t&&sR(e.defaultValue)&&e.defaultValue!=="")}function _te(e){return e.startAdornment}function Tte(e){return Ke("MuiInputBase",e)}const $te=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Uo=$te,Rte=["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"],Ib=(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${Pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Mb=(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]},Ote=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:m,startAdornment:v,type:y}=e,g={root:["root",`color${Pe(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",m&&m!=="medium"&&`size${Pe(m)}`,f&&"multiline",v&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Te(g,Tte,t)},_b=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ib})(({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",[`&.${Uo.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%"})),Tb=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Mb})(({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] + .${Uo.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},[`&.${Uo.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"})}),Dte=O.jsx(Mte,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ate=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:m,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:g=!1,id:C,inputComponent:w="input",inputProps:b={},inputRef:S,maxRows:E,minRows:_,multiline:k=!1,name:I,onBlur:R,onChange:A,onClick:$,onFocus:L,onKeyDown:B,onKeyUp:z,placeholder:M,readOnly:T,renderSuffix:F,rows:j,slotProps:D={},slots:N={},startAdornment:H,type:K="text",value:Y}=o,te=le(o,Rte),Q=b.value!=null?b.value:Y,{current:X}=c.useRef(Q!=null),J=c.useRef(),se=c.useCallback(Ue=>{},[]),Z=Et(J,S,b.ref,se),[he,ne]=c.useState(!1),re=Il(),me=Vc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:he,c.useEffect(()=>{!re&&m&&he&&(ne(!1),R&&R())},[re,m,he,R]);const ce=re&&re.onFilled,Se=re&&re.onEmpty,Ee=c.useCallback(Ue=>{Bv(Ue)?ce&&ce():Se&&Se()},[ce,Se]);Nt(()=>{X&&Ee({value:Q})},[Q,Ee,X]);const ae=Ue=>{if(me.disabled){Ue.stopPropagation();return}L&&L(Ue),b.onFocus&&b.onFocus(Ue),re&&re.onFocus?re.onFocus(Ue):ne(!0)},Ie=Ue=>{R&&R(Ue),b.onBlur&&b.onBlur(Ue),re&&re.onBlur?re.onBlur(Ue):ne(!1)},ye=(Ue,...Le)=>{if(!X){const ht=Ue.target||J.current;if(ht==null)throw new Error(ka(1));Ee({value:ht.value})}b.onChange&&b.onChange(Ue,...Le),A&&A(Ue,...Le)};c.useEffect(()=>{Ee(J.current)},[]);const Me=Ue=>{J.current&&Ue.currentTarget===Ue.target&&J.current.focus(),$&&$(Ue)};let pe=w,fe=b;k&&pe==="input"&&(j?fe=x({type:void 0,minRows:j,maxRows:j},fe):fe=x({type:void 0,maxRows:E,minRows:_},fe),pe=lte);const de=Ue=>{Ee(Ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};c.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const be=x({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:y,error:me.error,focused:me.focused,formControl:re,fullWidth:g,hiddenLabel:me.hiddenLabel,multiline:k,size:me.size,startAdornment:H,type:K}),_e=Ote(be),Ne=N.root||u.Root||_b,Ge=D.root||f.root||{},Ve=N.input||u.Input||Tb;return fe=x({},fe,(r=D.input)!=null?r:f.input),O.jsxs(c.Fragment,{children:[!v&&Dte,O.jsxs(Ne,x({},Ge,!$c(Ne)&&{ownerState:x({},be,Ge.ownerState)},{ref:n,onClick:Me},te,{className:Ce(_e.root,Ge.className,a,T&&"MuiInputBase-readOnly"),children:[H,O.jsx(Eb.Provider,{value:null,children:O.jsx(Ve,x({ownerState:be,"aria-invalid":me.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:me.disabled,id:C,onAnimationStart:de,name:I,placeholder:M,readOnly:T,required:me.required,rows:j,value:Q,onKeyDown:B,onKeyUp:z,type:K},fe,!$c(Ve)&&{as:pe,ownerState:x({},be,fe.ownerState)},{ref:Z,className:Ce(_e.input,fe.className,T&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:ye,onFocus:ae}))}),y,F?F(x({},me,{startAdornment:H})):null]}))]})}),Gd=Ate;function Lte(e){return Ke("MuiInput",e)}const Fte=x({},Uo,We("MuiInput",["root","underline","input"])),ra=Fte;function Nte(e){return Ke("MuiOutlinedInput",e)}const Bte=x({},Uo,We("MuiOutlinedInput",["root","notchedOutline","input"])),Si=Bte;function zte(e){return Ke("MuiFilledInput",e)}const Vte=x({},Uo,We("MuiFilledInput",["root","underline","input"])),Wo=Vte,ON=bt(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jte(e){return Ke("MuiAutocomplete",e)}const Hte=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=Hte;var iR,lR;const Ute=["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"],Wte=["ref"],Gte=["key"],Kte=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${Pe(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 Te(p,jte,t)},qte=oe("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${Pe(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}},[`& .${ra.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ra.root}.${Uo.sizeSmall}`]:{[`& .${ra.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Si.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}},[`& .${Si.root}.${Uo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Wo.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Wo.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Wo.root}.${Uo.sizeSmall}`]:{paddingBottom:1,[`& .${Wo.input}`]:{padding:"2.5px 4px"}},[`& .${Uo.hiddenLabel}`]:{paddingTop:8},[`& .${Wo.root}.${Uo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Wo.root}.${Uo.hiddenLabel}.${Uo.sizeSmall}`]:{[`& .${zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${zt.input}`]:x({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Yte=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Qte=oe(xr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Xte=oe(xr,{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)"})),Zte=oe(Fa,{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"})),Jte=oe(Vs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>x({},e.typography.body1,{overflow:"auto"})),ene=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),tne=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),nne=oe("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})`:lt(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}))`:lt(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}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),rne=oe(yte,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),one=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),sne=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:m,className:v,clearIcon:y=iR||(iR=O.jsx(yN,{fontSize:"small"})),clearOnBlur:g=!l.freeSolo,clearOnEscape:C=!1,clearText:w="Clear",closeText:b="Close",componentsProps:S={},defaultValue:E=l.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:$=!1,filterSelectedOptions:L=!1,forcePopupIcon:B="auto",freeSolo:z=!1,fullWidth:M=!1,getLimitTagsText:T=we=>`+${we}`,getOptionLabel:F,groupBy:j,handleHomeEndKeys:D=!l.freeSolo,includeInputInList:N=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:te=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:J="No options",openOnFocus:se=!1,openText:Z="Open",PaperComponent:he=Vs,PopperComponent:ne=Fa,popupIcon:re=lR||(lR=O.jsx(ON,{})),readOnly:me=!1,renderGroup:ce,renderInput:Se,renderOption:Ee,renderTags:ae,selectOnFocus:Ie=!l.freeSolo,size:ye="medium",slotProps:Me={}}=l,pe=le(l,Ute),{getRootProps:fe,getInputProps:de,getInputLabelProps:be,getPopupIndicatorProps:_e,getClearProps:Ne,getTagProps:Ge,getListboxProps:Ve,getOptionProps:Ue,value:Le,dirty:ht,expanded:Zt,id:Pt,popupOpen:wt,focused:Xe,focusedTag:Oe,anchorEl:qe,setAnchorEl:mt,inputValue:vt,groupedOptions:Tt}=ute(x({},l,{componentName:"Autocomplete"})),Yt=!_&&!I&&ht&&!me,Qt=(!z||B===!0)&&B!==!1,{onMouseDown:Pn}=de(),{ref:bn}=Y!=null?Y:{},gt=Ve(),{ref:Rt}=gt,vr=le(gt,Wte),ir=Et(Rt,bn),as=F||(we=>{var Qe;return(Qe=we.label)!=null?Qe:we}),Tn=x({},l,{disablePortal:$,expanded:Zt,focused:Xe,fullWidth:M,getOptionLabel:as,hasClearIcon:Yt,hasPopupIcon:Qt,inputFocused:Oe===-1,popupOpen:wt,size:ye}),an=Kte(Tn);let yr;if(X&&Le.length>0){const we=Qe=>x({className:an.tag,disabled:I},Ge(Qe));ae?yr=ae(Le,we,Tn):yr=Le.map((Qe,ft)=>O.jsx(kb,x({label:as(Qe),size:ye},we({index:ft}),m)))}if(H>-1&&Array.isArray(yr)){const we=yr.length-H;!Xe&&we>0&&(yr=yr.splice(0,H),yr.push(O.jsx("span",{className:an.tag,children:T(we)},yr.length)))}const cs=ce||(we=>O.jsxs("li",{children:[O.jsx(rne,{className:an.groupLabel,ownerState:Tn,component:"div",children:we.group}),O.jsx(one,{className:an.groupUl,ownerState:Tn,children:we.children})]},we.key)),Do=Ee||((we,Qe)=>{const{key:ft}=we,Wt=le(we,Gte);return O.jsx("li",x({},Wt,{children:as(Qe)}),ft)}),mi=(we,Qe)=>{const ft=Ue({option:we,index:Qe});return Do(x({},ft,{className:an.option}),we,{selected:ft["aria-selected"],index:Qe,inputValue:vt},Tn)},Mr=(r=Me.clearIndicator)!=null?r:S.clearIndicator,Nr=(o=Me.paper)!=null?o:S.paper,js=(s=Me.popper)!=null?s:S.popper,$e=(i=Me.popupIndicator)!=null?i:S.popupIndicator;return O.jsxs(c.Fragment,{children:[O.jsx(qte,x({ref:n,className:Ce(an.root,v),ownerState:Tn},fe(pe),{children:Se({id:Pt,disabled:I,fullWidth:!0,size:ye==="small"?"small":void 0,InputLabelProps:be(),InputProps:x({ref:mt,className:an.inputRoot,startAdornment:yr,onClick:we=>{we.target===we.currentTarget&&Pn(we)}},(Yt||Qt)&&{endAdornment:O.jsxs(Yte,{className:an.endAdornment,ownerState:Tn,children:[Yt?O.jsx(Qte,x({},Ne(),{"aria-label":w,title:w,ownerState:Tn},Mr,{className:Ce(an.clearIndicator,Mr==null?void 0:Mr.className),children:y})):null,Qt?O.jsx(Xte,x({},_e(),{disabled:I,"aria-label":wt?b:Z,title:wt?b:Z,ownerState:Tn},$e,{className:Ce(an.popupIndicator,$e==null?void 0:$e.className),children:re})):null]})}),inputProps:x({className:an.input,disabled:I,readOnly:me},de())})})),qe?O.jsx(Zte,x({as:ne,disablePortal:$,style:{width:qe?qe.clientWidth:null},ownerState:Tn,role:"presentation",anchorEl:qe,open:wt},js,{className:Ce(an.popper,js==null?void 0:js.className),children:O.jsxs(Jte,x({ownerState:Tn,as:he},Nr,{className:Ce(an.paper,Nr==null?void 0:Nr.className),children:[te&&Tt.length===0?O.jsx(ene,{className:an.loading,ownerState:Tn,children:Q}):null,Tt.length===0&&!z&&!te?O.jsx(tne,{className:an.noOptions,ownerState:Tn,role:"presentation",onMouseDown:we=>{we.preventDefault()},children:J}):null,Tt.length>0?O.jsx(nne,x({as:K,className:an.listbox,ownerState:Tn},vr,Y,{ref:ir,children:Tt.map((we,Qe)=>j?cs({key:we.key,group:we.group,children:we.options.map((ft,Wt)=>mi(ft,we.index+Wt))}):mi(we,Qe))})):null]}))})):null]})}),Fh=sne,ine=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lne={entering:{opacity:1},entered:{opacity:1}},ane=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:m,onExit:v,onExited:y,onExiting:g,style:C,timeout:w=o,TransitionComponent:b=Dh}=t,S=le(t,ine),E=c.useRef(null),_=Et(E,l.ref,n),k=M=>T=>{if(M){const F=E.current;T===void 0?M(F):M(F,T)}},I=k(m),R=k((M,T)=>{nk(M);const F=Ia({style:C,timeout:w,easing:a},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",F),M.style.transition=r.transitions.create("opacity",F),f&&f(M,T)}),A=k(p),$=k(g),L=k(M=>{const T=Ia({style:C,timeout:w,easing:a},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",T),M.style.transition=r.transitions.create("opacity",T),v&&v(M)}),B=k(y),z=M=>{s&&s(E.current,M)};return O.jsx(b,x({appear:i,in:u,nodeRef:E,onEnter:R,onEntered:A,onEntering:I,onExit:L,onExited:B,onExiting:$,addEndListener:z,timeout:w},S,{children:(M,T)=>c.cloneElement(l,x({style:x({opacity:0,visibility:M==="exited"&&!u?"hidden":void 0},lne[M],C,l.props.style),ref:_},T))}))}),Kd=ane;function cne(e){return Ke("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const une=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dne=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},cne,t)},fne=oe("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"})),pne=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:m=!1,open:v,slotProps:y={},slots:g={},TransitionComponent:C=Kd,transitionDuration:w}=i,b=le(i,une),S=x({},i,{component:u,invisible:m}),E=dne(S),_=(r=y.root)!=null?r:p.root;return O.jsx(C,x({in:v,timeout:w},b,{children:O.jsx(fne,x({"aria-hidden":!0},_,{as:(o=(s=g.root)!=null?s:f.Root)!=null?o:u,className:Ce(E.root,a,_==null?void 0:_.className),ownerState:x({},S,_==null?void 0:_.ownerState),classes:E,ref:n,children:l}))}))}),DN=pne;function hne(e){return Ke("MuiBadge",e)}const mne=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"]),Vl=mne,gne=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Rw=10,Ow=4,vne=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${Pe(n.vertical)}${Pe(n.horizontal)}`,`anchorOrigin${Pe(n.vertical)}${Pe(n.horizontal)}${Pe(o)}`,`overlap${Pe(o)}`,t!=="default"&&`color${Pe(t)}`]};return Te(l,hne,i)},yne=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),bne=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Pe(n.anchorOrigin.vertical)}${Pe(n.anchorOrigin.horizontal)}${Pe(n.overlap)}`],n.color!=="default"&&t[`color${Pe(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:Rw*2,lineHeight:1,padding:"0 6px",height:Rw*2,borderRadius:Rw,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:Ow,height:Ow*2,minWidth:Ow*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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.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%",[`&.${Vl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),wne=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:m,components:v={},componentsProps:y={},children:g,overlap:C="rectangular",color:w="default",invisible:b=!1,max:S=99,badgeContent:E,slots:_,slotProps:k,showZero:I=!1,variant:R="standard"}=u,A=le(u,gne),{badgeContent:$,invisible:L,max:B,displayValue:z}=EJ({max:S,invisible:b,badgeContent:E,showZero:I}),M=AP({anchorOrigin:f,color:w,overlap:C,variant:R,badgeContent:E}),T=L||$==null&&R!=="dot",{color:F=w,overlap:j=C,anchorOrigin:D=f,variant:N=R}=T?M:u,H=N!=="dot"?z:void 0,K=x({},u,{badgeContent:$,invisible:T,max:B,displayValue:H,showZero:I,anchorOrigin:D,color:F,overlap:j,variant:N}),Y=vne(K),te=(r=(o=_==null?void 0:_.root)!=null?o:v.Root)!=null?r:yne,Q=(s=(i=_==null?void 0:_.badge)!=null?i:v.Badge)!=null?s:bne,X=(l=k==null?void 0:k.root)!=null?l:y.root,J=(a=k==null?void 0:k.badge)!=null?a:y.badge,se=qt({elementType:te,externalSlotProps:X,externalForwardedProps:A,additionalProps:{ref:n,as:m},ownerState:K,className:Ce(X==null?void 0:X.className,Y.root,p)}),Z=qt({elementType:Q,externalSlotProps:J,ownerState:K,className:Ce(Y.badge,J==null?void 0:J.className)});return O.jsxs(te,x({},se,{children:[g,O.jsx(Q,x({},Z,{children:H}))]}))}),AN=wne,Cne=We("MuiBox",["root"]),xne=Cne,Sne=XP(),Pne=WQ({themeId:Ec,defaultTheme:Sne,defaultClassName:xne.root,generateClassName:FP.generate}),ze=Pne;function kne(e){return Ke("MuiButton",e)}const Ene=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"]),dg=Ene,Ine=c.createContext({}),Mne=Ine,_ne=c.createContext(void 0),Tne=_ne,$ne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rne=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,l={root:["root",s,`${s}${Pe(t)}`,`size${Pe(o)}`,`${s}Size${Pe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Pe(o)}`],endIcon:["endIcon",`iconSize${Pe(o)}`]},a=Te(l,kne,i);return x({},i,a)},LN=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}}),One=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pe(n.color)}`],t[`size${Pe(n.size)}`],t[`${n.variant}Size${Pe(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})`:lt(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})`:lt(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})`:lt(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]}),[`&.${dg.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dg.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 ${lt(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"},[`&.${dg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dg.disabled}`]:{boxShadow:"none"}}),Dne=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},LN(e))),Ane=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},LN(e))),Lne=c.forwardRef(function(t,n){const r=c.useContext(Mne),o=c.useContext(Tne),s=LP(r,t),i=je({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:v=!1,endIcon:y,focusVisibleClassName:g,fullWidth:C=!1,size:w="medium",startIcon:b,type:S,variant:E="text"}=i,_=le(i,$ne),k=x({},i,{color:a,component:u,disabled:p,disableElevation:m,disableFocusRipple:v,fullWidth:C,size:w,type:S,variant:E}),I=Rne(k),R=b&&O.jsx(Dne,{className:I.startIcon,ownerState:k,children:b}),A=y&&O.jsx(Ane,{className:I.endIcon,ownerState:k,children:y}),$=o||"";return O.jsxs(One,x({ownerState:k,className:Ce(r.className,I.root,f,$),component:u,disabled:p,focusRipple:!v,focusVisibleClassName:Ce(I.focusVisible,g),ref:n,type:S},_,{classes:I,children:[R,l,A]}))}),Yn=Lne;function Fne(e){return Ke("MuiCard",e)}We("MuiCard",["root"]);const Nne=["className","raised"],Bne=e=>{const{classes:t}=e;return Te({root:["root"]},Fne,t)},zne=oe(Vs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Vne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=le(r,Nne),l=x({},r,{raised:s}),a=Bne(l);return O.jsx(zne,x({className:Ce(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),$b=Vne;function jne(e){return Ke("MuiCardContent",e)}We("MuiCardContent",["root"]);const Hne=["className","component"],Une=e=>{const{classes:t}=e;return Te({root:["root"]},jne,t)},Wne=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Gne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=le(r,Hne),l=x({},r,{component:s}),a=Une(l);return O.jsx(Wne,x({as:s,className:Ce(a.root,o),ownerState:l,ref:n},i))}),Rb=Gne;function Kne(e){return Ke("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qne=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Yne=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${Pe(o)}`],input:["input"]};return Te(s,Kne,t)},Qne=oe(ui)(({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})),Xne=oe("input",{shouldForwardProp:Jr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Zne=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:m,inputProps:v,inputRef:y,name:g,onBlur:C,onChange:w,onFocus:b,readOnly:S,required:E=!1,tabIndex:_,type:k,value:I}=t,R=le(t,qne),[A,$]=Qr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Il(),B=N=>{b&&b(N),L&&L.onFocus&&L.onFocus(N)},z=N=>{C&&C(N),L&&L.onBlur&&L.onBlur(N)},M=N=>{if(N.nativeEvent.defaultPrevented)return;const H=N.target.checked;$(H),w&&w(N,H)};let T=a;L&&typeof T=="undefined"&&(T=L.disabled);const F=k==="checkbox"||k==="radio",j=x({},t,{checked:A,disabled:T,disableFocusRipple:u,edge:f}),D=Yne(j);return O.jsxs(Qne,x({component:"span",className:Ce(D.root,i),centerRipple:!0,focusRipple:!u,disabled:T,tabIndex:null,role:void 0,onFocus:B,onBlur:z,ownerState:j,ref:n},R,{children:[O.jsx(Xne,x({autoFocus:r,checked:o,defaultChecked:l,className:D.input,disabled:T,id:F?m:void 0,name:g,onChange:M,readOnly:S,ref:y,required:E,ownerState:j,tabIndex:_,type:k},k==="checkbox"&&I===void 0?{}:{value:I},v)),A?s:p]}))}),FN=Zne,Jne=bt(O.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"),ere=bt(O.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"),tre=bt(O.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 nre(e){return Ke("MuiCheckbox",e)}const rre=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Dw=rre,ore=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],sre=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${Pe(r)}`,`size${Pe(o)}`]},i=Te(s,nre,t);return x({},t,i)},ire=oe(FN,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Pe(n.size)}`],n.color!=="default"&&t[`color${Pe(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})`:lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Dw.checked}, &.${Dw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Dw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),lre=O.jsx(ere,{}),are=O.jsx(Jne,{}),cre=O.jsx(tre,{}),ure=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=lre,color:l="primary",icon:a=are,indeterminate:u=!1,indeterminateIcon:f=cre,inputProps:p,size:m="medium",className:v}=s,y=le(s,ore),g=u?f:a,C=u?f:i,w=x({},s,{color:l,indeterminate:u,size:m}),b=sre(w);return O.jsx(ire,x({type:"checkbox",inputProps:x({"data-indeterminate":u},p),icon:c.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:m}),checkedIcon:c.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:m}),ownerState:w,ref:n,className:Ce(b.root,v)},y,{classes:b}))}),NN=ure;function dre(e){return Ke("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fre=["className","color","disableShrink","size","style","thickness","value","variant"];let Ob=e=>e,aR,cR,uR,dR;const jl=44,pre=Ui(aR||(aR=Ob`
|
|
163
|
+
0% {
|
|
164
|
+
transform: rotate(0deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: rotate(360deg);
|
|
169
|
+
}
|
|
170
|
+
`)),hre=Ui(cR||(cR=Ob`
|
|
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
|
+
`)),mre=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${Pe(r)}`],svg:["svg"],circle:["circle",`circle${Pe(n)}`,o&&"circleDisableShrink"]};return Te(s,dre,t)},gre=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Pe(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"&&Ea(uR||(uR=Ob`
|
|
186
|
+
animation: ${0} 1.4s linear infinite;
|
|
187
|
+
`),pre)),vre=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),yre=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Pe(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&&Ea(dR||(dR=Ob`
|
|
188
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
+
`),hre)),bre=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,m=le(r,fre),v=x({},r,{color:s,disableShrink:i,size:l,thickness:u,value:f,variant:p}),y=mre(v),g={},C={},w={};if(p==="determinate"){const b=2*Math.PI*((jl-u)/2);g.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),g.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return O.jsx(gre,x({className:Ce(y.root,o),style:x({width:l,height:l},C,a),ownerState:v,ref:n,role:"progressbar"},w,m,{children:O.jsx(vre,{className:y.svg,ownerState:v,viewBox:`${jl/2} ${jl/2} ${jl} ${jl}`,children:O.jsx(yre,{className:y.circle,style:g,ownerState:v,cx:jl,cy:jl,r:(jl-u)/2,fill:"none",strokeWidth:u})})}))}),Vi=bre;function wre(e){return Ke("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Cre=["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"],xre=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wre,r)},Sre=oe("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"})),Pre=oe(DN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kre=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:f=Pre,BackdropProps:p,className:m,closeAfterTransition:v=!1,children:y,container:g,component:C,components:w={},componentsProps:b={},disableAutoFocus:S=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:R=!1,hideBackdrop:A=!1,keepMounted:$=!1,onBackdropClick:L,open:B,slotProps:z,slots:M}=u,T=le(u,Cre),F=x({},u,{closeAfterTransition:v,disableAutoFocus:S,disableEnforceFocus:E,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:A,keepMounted:$}),{getRootProps:j,getBackdropProps:D,getTransitionProps:N,portalRef:H,isTopModal:K,exited:Y,hasTransition:te}=ote(x({},F,{rootRef:n})),Q=x({},F,{exited:Y}),X=xre(Q),J={};if(y.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:ce,onExited:Se}=N();J.onEnter=ce,J.onExited=Se}const se=(r=(o=M==null?void 0:M.root)!=null?o:w.Root)!=null?r:Sre,Z=(s=(i=M==null?void 0:M.backdrop)!=null?i:w.Backdrop)!=null?s:f,he=(l=z==null?void 0:z.root)!=null?l:b.root,ne=(a=z==null?void 0:z.backdrop)!=null?a:b.backdrop,re=qt({elementType:se,externalSlotProps:he,externalForwardedProps:T,getSlotProps:j,additionalProps:{ref:n,as:C},ownerState:Q,className:Ce(m,he==null?void 0:he.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),me=qt({elementType:Z,externalSlotProps:ne,additionalProps:p,getSlotProps:ce=>D(x({},ce,{onClick:Se=>{L&&L(Se),ce!=null&&ce.onClick&&ce.onClick(Se)}})),className:Ce(ne==null?void 0:ne.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!$&&!B&&(!te||Y)?null:O.jsx(TN,{ref:H,container:g,disablePortal:k,children:O.jsxs(se,x({},re,{children:[!A&&f?O.jsx(Z,x({},me)):null,O.jsx(rk,{disableEnforceFocus:E,disableAutoFocus:S,disableRestoreFocus:I,isEnabled:K,open:B,children:c.cloneElement(y,J)})]}))})}),Db=kre;function Ere(e){return Ke("MuiDialog",e)}const Ire=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_p=Ire,Mre=c.createContext({}),BN=Mre,_re=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Tre=oe(DN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),$re=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${Pe(n)}`],paper:["paper",`paperScroll${Pe(n)}`,`paperWidth${Pe(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Te(i,Ere,t)},Rre=oe(Db,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ore=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pe(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"}})),Dre=oe(Vs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Pe(n.scroll)}`],t[`paperWidth${Pe(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)`,[`&.${_p.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}`,[`&.${_p.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,[`&.${_p.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Are=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:m=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:g="sm",onBackdropClick:C,onClose:w,open:b,PaperComponent:S=Vs,PaperProps:E={},scroll:_="paper",TransitionComponent:k=Kd,transitionDuration:I=s,TransitionProps:R}=r,A=le(r,_re),$=x({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:y,maxWidth:g,scroll:_}),L=$re($),B=c.useRef(),z=j=>{B.current=j.target===j.currentTarget},M=j=>{B.current&&(B.current=null,C&&C(j),w&&w(j,"backdropClick"))},T=Kt(l),F=c.useMemo(()=>({titleId:T}),[T]);return O.jsx(Rre,x({className:Ce(L.root,p),closeAfterTransition:!0,components:{Backdrop:Tre},componentsProps:{backdrop:x({transitionDuration:I,as:a},u)},disableEscapeKeyDown:m,onClose:w,open:b,ref:n,onClick:M,ownerState:$},A,{children:O.jsx(k,x({appear:!0,in:b,timeout:I,role:"presentation"},R,{children:O.jsx(Ore,{className:Ce(L.container),onMouseDown:z,ownerState:$,children:O.jsx(Dre,x({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":T},E,{className:Ce(L.paper,E.className),ownerState:$,children:O.jsx(BN.Provider,{value:F,children:f})}))})}))}))}),zN=Are;function Lre(e){return Ke("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Fre=["className","disableSpacing"],Nre=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Lre,t)},Bre=oe("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}})),zre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=le(r,Fre),l=x({},r,{disableSpacing:s}),a=Nre(l);return O.jsx(Bre,x({className:Ce(a.root,o),ownerState:l,ref:n},i))}),Vre=zre;function jre(e){return Ke("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function Hre(e){return Ke("MuiDialogTitle",e)}const Ure=We("MuiDialogTitle",["root"]),Wre=Ure,Gre=["className","dividers"],Kre=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},jre,t)},qre=oe("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}`}:{[`.${Wre.root} + &`]:{paddingTop:0}})),Yre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=le(r,Gre),l=x({},r,{dividers:s}),a=Kre(l);return O.jsx(qre,x({className:Ce(a.root,o),ownerState:l,ref:n},i))}),VN=Yre,Qre=["className","id"],Xre=e=>{const{classes:t}=e;return Te({root:["root"]},Hre,t)},Zre=oe(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Jre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=le(r,Qre),l=r,a=Xre(l),{titleId:u=s}=c.useContext(BN);return O.jsx(Zre,x({component:"h2",className:Ce(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:u},i))}),eoe=Jre;function toe(e){return Ke("MuiDivider",e)}const noe=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fR=noe,roe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ooe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:l,variant:a}=e;return Te({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"]},toe,r)},soe=oe("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)`:lt(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%"}})),ioe=oe("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)`})),jN=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:m="center",variant:v="fullWidth"}=r,y=le(r,roe),g=x({},r,{absolute:o,component:l,flexItem:a,light:u,orientation:f,role:p,textAlign:m,variant:v}),C=ooe(g);return O.jsx(soe,x({as:l,className:Ce(C.root,i),role:p,ref:n,ownerState:g},y,{children:s?O.jsx(ioe,{className:C.wrapper,ownerState:g,children:s}):null}))});jN.muiSkipListHighlight=!0;const Pd=jN,loe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aoe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Jo(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 coe(e){return typeof e=="function"?e():e}function fg(e,t,n){const r=coe(n),o=aoe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const uoe=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:m,onEnter:v,onEntered:y,onEntering:g,onExit:C,onExited:w,onExiting:b,style:S,timeout:E=s,TransitionComponent:_=Dh}=t,k=le(t,loe),I=c.useRef(null),R=Et(a.ref,I,n),A=D=>N=>{D&&(N===void 0?D(I.current):D(I.current,N))},$=A((D,N)=>{fg(f,D,u),nk(D),v&&v(D,N)}),L=A((D,N)=>{const H=Ia({timeout:E,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",g&&g(D,N)}),B=A(y),z=A(b),M=A(D=>{const N=Ia({timeout:E,style:S,easing:p},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",N),D.style.transition=r.transitions.create("transform",N),fg(f,D,u),C&&C(D)}),T=A(D=>{D.style.webkitTransition="",D.style.transition="",w&&w(D)}),F=D=>{i&&i(I.current,D)},j=c.useCallback(()=>{I.current&&fg(f,I.current,u)},[f,u]);return c.useEffect(()=>{if(m||f==="down"||f==="right")return;const D=Aa(()=>{I.current&&fg(f,I.current,u)}),N=Jo(I.current);return N.addEventListener("resize",D),()=>{D.clear(),N.removeEventListener("resize",D)}},[f,m,u]),c.useEffect(()=>{m||j()},[m,j]),O.jsx(_,x({nodeRef:I,onEnter:$,onEntered:B,onEntering:L,onExit:M,onExited:T,onExiting:z,addEndListener:F,appear:l,in:m,timeout:E},k,{children:(D,N)=>c.cloneElement(a,x({ref:R,style:x({visibility:D==="exited"&&!m?"hidden":void 0},S,a.props.style)},N))}))}),doe=uoe;function foe(e){return Ke("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const poe=["BackdropProps"],hoe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],HN=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},moe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Pe(n)}`,r!=="temporary"&&`paperAnchorDocked${Pe(n)}`]};return Te(o,foe,t)},goe=oe(Db,{name:"MuiDrawer",slot:"Root",overridesResolver:HN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pR=oe("div",{shouldForwardProp:Jr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:HN})({flex:"0 0 auto"}),voe=oe(Vs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Pe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Pe(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}`})),UN={left:"right",right:"left",top:"down",bottom:"up"};function yoe(e){return["left","right"].indexOf(e)!==-1}function boe(e,t){return e.direction==="rtl"&&yoe(t)?UN[t]:t}const woe=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:m}={},onClose:v,open:y=!1,PaperProps:g={},SlideProps:C,TransitionComponent:w=doe,transitionDuration:b=s,variant:S="temporary"}=r,E=le(r.ModalProps,poe),_=le(r,hoe),k=c.useRef(!1);c.useEffect(()=>{k.current=!0},[]);const I=boe(o,i),A=x({},r,{anchor:i,elevation:f,open:y,variant:S},_),$=moe(A),L=O.jsx(voe,x({elevation:S==="temporary"?f:0,square:!0},g,{className:Ce($.paper,g.className),ownerState:A,children:a}));if(S==="permanent")return O.jsx(pR,x({className:Ce($.root,$.docked,u),ownerState:A,ref:n},_,{children:L}));const B=O.jsx(w,x({in:y,direction:UN[I],timeout:b,appear:k.current},C,{children:L}));return S==="persistent"?O.jsx(pR,x({className:Ce($.root,$.docked,u),ownerState:A,ref:n},_,{children:B})):O.jsx(goe,x({BackdropProps:x({},l,m,{transitionDuration:b}),className:Ce($.root,$.modal,u),open:y,ownerState:A,onClose:v,hideBackdrop:p,ref:n},_,E,{children:B}))}),Coe=woe,xoe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Soe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},zte,t);return x({},t,o)},Poe=oe(_b,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ib(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}},[`&.${Wo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Wo.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"},[`&.${Wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wo.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(.${Wo.disabled}, .${Wo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wo.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}))}),koe=oe(Tb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Mb})(({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})),WN=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:m=!1,slotProps:v,slots:y={},type:g="text"}=l,C=le(l,xoe),w=x({},l,{fullWidth:f,inputComponent:p,multiline:m,type:g}),b=Soe(l),S={root:{ownerState:w},input:{ownerState:w}},E=(v!=null?v:u)?Yr(S,v!=null?v:u):S,_=(r=(o=y.root)!=null?o:a.Root)!=null?r:Poe,k=(s=(i=y.input)!=null?i:a.Input)!=null?s:koe;return O.jsx(Gd,x({slots:{root:_,input:k},componentsProps:E,fullWidth:f,inputComponent:p,multiline:m,ref:n,type:g},C,{classes:b}))});WN.muiName="Input";const GN=WN;function Eoe(e){return Ke("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Ioe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Moe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Pe(n)}`,r&&"fullWidth"]};return Te(o,Eoe,t)},_oe=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${Pe(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%"})),Toe=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:m=!1,margin:v="none",required:y=!1,size:g="medium",variant:C="outlined"}=r,w=le(r,Ioe),b=x({},r,{color:i,component:l,disabled:a,error:u,fullWidth:p,hiddenLabel:m,margin:v,required:y,size:g,variant:C}),S=Moe(b),[E,_]=c.useState(()=>{let z=!1;return o&&c.Children.forEach(o,M=>{if(!Sp(M,["Input","Select"]))return;const T=Sp(M,["Select"])?M.props.input:M;T&&_te(T.props)&&(z=!0)}),z}),[k,I]=c.useState(()=>{let z=!1;return o&&c.Children.forEach(o,M=>{Sp(M,["Input","Select"])&&(Bv(M.props,!0)||Bv(M.props.inputProps,!0))&&(z=!0)}),z}),[R,A]=c.useState(!1);a&&R&&A(!1);const $=f!==void 0&&!a?f:R;let L;const B=c.useMemo(()=>({adornedStart:E,setAdornedStart:_,color:i,disabled:a,error:u,filled:k,focused:$,fullWidth:p,hiddenLabel:m,size:g,onBlur:()=>{A(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{A(!0)},registerEffect:L,required:y,variant:C}),[E,i,a,u,k,$,p,m,L,y,g,C]);return O.jsx(Eb.Provider,{value:B,children:O.jsx(_oe,x({as:l,ownerState:b,className:Ce(S.root,s),ref:n},w,{children:o}))})}),KN=Toe,$oe=bX({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),Roe=$oe;function Ooe(e){return Ke("MuiFormControlLabel",e)}const Doe=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sp=Doe,Aoe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Loe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${Pe(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Te(i,Ooe,t)},Foe=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sp.label}`]:t.label},t.root,t[`labelPlacement${Pe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sp.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},{[`& .${sp.label}`]:{[`&.${sp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Noe=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sp.error}`]:{color:(e.vars||e).palette.error.main}})),Boe=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:m="end",required:v,slotProps:y={}}=s,g=le(s,Aoe),C=Il(),w=(r=u!=null?u:a.props.disabled)!=null?r:C==null?void 0:C.disabled,b=v!=null?v:a.props.required,S={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof a.props[A]=="undefined"&&typeof s[A]!="undefined"&&(S[A]=s[A])});const E=Vc({props:s,muiFormControl:C,states:["error"]}),_=x({},s,{disabled:w,labelPlacement:m,required:b,error:E.error}),k=Loe(_),I=(o=y.typography)!=null?o:l.typography;let R=p;return R!=null&&R.type!==qn&&!f&&(R=O.jsx(qn,x({component:"span"},I,{className:Ce(k.label,I==null?void 0:I.className),children:R}))),O.jsxs(Foe,x({className:Ce(k.root,i),ownerState:_,ref:n},g,{children:[c.cloneElement(a,S),b?O.jsxs(Roe,{display:"block",children:[R,O.jsxs(Noe,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):R]}))}),qN=Boe;function zoe(e){return Ke("MuiFormHelperText",e)}const Voe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hR=Voe;var mR;const joe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Hoe=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${Pe(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return Te(u,zoe,t)},Uoe=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Pe(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,[`&.${hR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Woe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=le(r,joe),a=Il(),u=Vc({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=Hoe(f);return O.jsx(Uoe,x({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:o===" "?mR||(mR=O.jsx("span",{className:"notranslate",children:""})):o}))}),qd=Woe;function Goe(e){return Ke("MuiFormLabel",e)}const Koe=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Tp=Koe,qoe=["children","className","color","component","disabled","error","filled","focused","required"],Yoe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:l}=e,a={root:["root",`color${Pe(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return Te(a,Goe,t)},Qoe=oe("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",[`&.${Tp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Tp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tp.error}`]:{color:(e.vars||e).palette.error.main}})),Xoe=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Tp.error}`]:{color:(e.vars||e).palette.error.main}})),Zoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=le(r,qoe),a=Il(),u=Vc({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=Yoe(f);return O.jsxs(Qoe,x({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:[o,u.required&&O.jsxs(Xoe,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),YN=Zoe,Joe=c.createContext(),gR=Joe;function ese(e){return Ke("MuiGrid",e)}const tse=[0,1,2,3,4,5,6,7,8,9,10],nse=["column-reverse","column","row-reverse","row"],rse=["nowrap","wrap-reverse","wrap"],Vf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lh=We("MuiGrid",["root","container","item","zeroMinWidth",...tse.map(e=>`spacing-xs-${e}`),...nse.map(e=>`direction-xs-${e}`),...rse.map(e=>`wrap-xs-${e}`),...Vf.map(e=>`grid-xs-${e}`),...Vf.map(e=>`grid-sm-${e}`),...Vf.map(e=>`grid-md-${e}`),...Vf.map(e=>`grid-lg-${e}`),...Vf.map(e=>`grid-xl-${e}`)]),ose=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function rd(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function sse({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=pc({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} + ${rd(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 ise({theme:e,ownerState:t}){const n=pc({values:t.direction,breakpoints:e.breakpoints.values});return Ro({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${lh.item}`]={maxWidth:"none"}),o})}function QN({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 lse({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=pc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=QN({breakpoints:e.breakpoints.values,values:s})),o=Ro({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingTop:rd(f)}}:(u=i)!=null&&u.includes(a)?{}:{marginTop:0,[`& > .${lh.item}`]:{paddingTop:0}}})}return o}function ase({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=pc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=QN({breakpoints:e.breakpoints.values,values:s})),o=Ro({theme:e},s,(l,a)=>{var u;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${rd(f)})`,marginLeft:`-${rd(f)}`,[`& > .${lh.item}`]:{paddingLeft:rd(f)}}:(u=i)!=null&&u.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${lh.item}`]:{paddingLeft:0}}})}return o}function cse(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 use=oe("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=cse(i,u,t));const p=[];return u.forEach(m=>{const v=n[m];v&&p.push(t[`grid-${m}-${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}),ise,lse,ase,sse);function dse(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 fse=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let u=[];n&&(u=dse(s,a));const f=[];a.forEach(m=>{const v=e[m];v&&f.push(`grid-${m}-${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 Te(p,ese,t)},pse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiGrid"}),{breakpoints:o}=yn(),s=yb(r),{className:i,columns:l,columnSpacing:a,component:u="div",container:f=!1,direction:p="row",item:m=!1,rowSpacing:v,spacing:y=0,wrap:g="wrap",zeroMinWidth:C=!1}=s,w=le(s,ose),b=v||y,S=a||y,E=c.useContext(gR),_=f?l||12:E,k={},I=x({},w);o.keys.forEach($=>{w[$]!=null&&(k[$]=w[$],delete I[$])});const R=x({},s,{columns:_,container:f,direction:p,item:m,rowSpacing:b,columnSpacing:S,wrap:g,zeroMinWidth:C,spacing:y},k,{breakpoints:o.keys}),A=fse(R);return O.jsx(gR.Provider,{value:_,children:O.jsx(use,x({ownerState:R,className:Ce(A.root,i),as:u,ref:n},I))})}),ri=pse,hse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dx(e){return`scale(${e}, ${ys(e,2)})`}const mse={entering:{opacity:1,transform:Dx(1)},entered:{opacity:1,transform:"none"}},Aw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XN=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:m,onExiting:v,style:y,timeout:g="auto",TransitionComponent:C=Dh}=t,w=le(t,hse),b=c.useRef(),S=c.useRef(),E=yn(),_=c.useRef(null),k=Et(_,s.ref,n),I=T=>F=>{if(T){const j=_.current;F===void 0?T(j):T(j,F)}},R=I(f),A=I((T,F)=>{nk(T);const{duration:j,delay:D,easing:N}=Ia({style:y,timeout:g,easing:i},{mode:"enter"});let H;g==="auto"?(H=E.transitions.getAutoHeightDuration(T.clientHeight),S.current=H):H=j,T.style.transition=[E.transitions.create("opacity",{duration:H,delay:D}),E.transitions.create("transform",{duration:Aw?H:H*.666,delay:D,easing:N})].join(","),a&&a(T,F)}),$=I(u),L=I(v),B=I(T=>{const{duration:F,delay:j,easing:D}=Ia({style:y,timeout:g,easing:i},{mode:"exit"});let N;g==="auto"?(N=E.transitions.getAutoHeightDuration(T.clientHeight),S.current=N):N=F,T.style.transition=[E.transitions.create("opacity",{duration:N,delay:j}),E.transitions.create("transform",{duration:Aw?N:N*.666,delay:Aw?j:j||N*.333,easing:D})].join(","),T.style.opacity=0,T.style.transform=Dx(.75),p&&p(T)}),z=I(m),M=T=>{g==="auto"&&(b.current=setTimeout(T,S.current||0)),r&&r(_.current,T)};return c.useEffect(()=>()=>{clearTimeout(b.current)},[]),O.jsx(C,x({appear:o,in:l,nodeRef:_,onEnter:A,onEntered:$,onEntering:R,onExit:B,onExited:z,onExiting:L,addEndListener:M,timeout:g==="auto"?null:g},w,{children:(T,F)=>c.cloneElement(s,x({style:x({opacity:0,transform:Dx(.75),visibility:T==="exited"&&!l?"hidden":void 0},mse[T],y,s.props.style),ref:k},F))}))});XN.muiSupportAuto=!0;const ah=XN;function gse(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 ZN=wc["useSyncExternalStore"];function vse(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 ZN(a,l,i)}function Ab(e,t={}){const n=vb(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=uN({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(ZN!==void 0?vse:gse)(a,o,s,i,l)}const yse=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],bse=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Lte,t);return x({},t,o)},wse=oe(_b,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ib(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"},[`&.${ra.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ra.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(.${ra.disabled}, .${ra.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ra.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Cse=oe(Tb,{name:"MuiInput",slot:"Input",overridesResolver:Mb})({}),JN=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:m="input",multiline:v=!1,slotProps:y,slots:g={},type:C="text"}=l,w=le(l,yse),b=bse(l),E={root:{ownerState:{disableUnderline:a}}},_=(y!=null?y:f)?Yr(y!=null?y:f,E):E,k=(r=(o=g.root)!=null?o:u.Root)!=null?r:wse,I=(s=(i=g.input)!=null?i:u.Input)!=null?s:Cse;return O.jsx(Gd,x({slots:{root:k,input:I},slotProps:_,fullWidth:p,inputComponent:m,multiline:v,ref:n,type:C},w,{classes:b}))});JN.muiName="Input";const e4=JN;function xse(e){return Ke("MuiInputAdornment",e)}const Sse=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),vR=Sse;var yR;const Pse=["children","className","component","disablePointerEvents","disableTypography","position","variant"],kse=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Ese=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Pe(o)}`,i,r&&"hiddenLabel",s&&`size${Pe(s)}`]};return Te(l,xse,t)},Ise=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:kse})(({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"&&{[`&.${vR.positionStart}&:not(.${vR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Mse=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=le(r,Pse),m=Il()||{};let v=f;f&&m.variant,m&&!v&&(v=m.variant);const y=x({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:u,variant:v}),g=Ese(y);return O.jsx(Eb.Provider,{value:null,children:O.jsx(Ise,x({as:i,ownerState:y,className:Ce(g.root,s),ref:n},p,{children:typeof o=="string"&&!a?O.jsx(qn,{color:"text.secondary",children:o}):O.jsxs(c.Fragment,{children:[u==="start"?yR||(yR=O.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Cl=Mse;function _se(e){return Ke("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Tse=["disableAnimation","margin","shrink","variant","className"],$se=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${Pe(r)}`,i],asterisk:[l&&"asterisk"]},u=Te(a,_se,t);return x({},t,u)},Rse=oe(YN,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tp.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}})),Ose=c.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=le(r,Tse),a=Il();let u=s;typeof u=="undefined"&&a&&(u=a.filled||a.focused||a.adornedStart);const f=Vc({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}),m=$se(p);return O.jsx(Rse,x({"data-shrink":u,ownerState:p,ref:n,className:Ce(m.root,i)},l,{classes:m}))}),t4=Ose;function Dse(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 Ase=["className","color","value","valueBuffer","variant"];let Yd=e=>e,bR,wR,CR,xR,SR,PR;const Ax=4,Lse=Ui(bR||(bR=Yd`
|
|
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
|
+
`)),Fse=Ui(wR||(wR=Yd`
|
|
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
|
+
`)),Nse=Ui(CR||(CR=Yd`
|
|
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
|
+
`)),Bse=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Pe(r)}`,n],dashed:["dashed",`dashedColor${Pe(r)}`],bar1:["bar",`barColor${Pe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Pe(r)}`,n==="buffer"&&`color${Pe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Te(o,Dse,t)},dk=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Tc(e.palette[t].main,.62):_c(e.palette[t].main,.5),zse=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Pe(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:dk(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)"})),Vse=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Pe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=dk(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"})},Ea(xR||(xR=Yd`
|
|
235
|
+
animation: ${0} 3s infinite linear;
|
|
236
|
+
`),Nse)),jse=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(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 .${Ax}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Ax}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(SR||(SR=Yd`
|
|
237
|
+
width: auto;
|
|
238
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
+
`),Lse)),Hse=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(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:dk(t,e.color),transition:`transform .${Ax}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(PR||(PR=Yd`
|
|
240
|
+
width: auto;
|
|
241
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
+
`),Fse)),Use=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=le(r,Ase),f=x({},r,{color:s,variant:a}),p=Bse(f),m=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 g=i-100;m.direction==="rtl"&&(g=-g),y.bar1.transform=`translateX(${g}%)`}if(a==="buffer"&&l!==void 0){let g=(l||0)-100;m.direction==="rtl"&&(g=-g),y.bar2.transform=`translateX(${g}%)`}return O.jsxs(zse,x({className:Ce(p.root,o),ownerState:f,role:"progressbar"},v,{ref:n},u,{children:[a==="buffer"?O.jsx(Vse,{className:p.dashed,ownerState:f}):null,O.jsx(jse,{className:p.bar1,ownerState:f,style:y.bar1}),a==="determinate"?null:O.jsx(Hse,{className:p.bar2,ownerState:f,style:y.bar2})]}))}),zv=Use;function Wse(e){return Ke("MuiLink",e)}const Gse=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Kse=Gse,n4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qse=e=>n4[e]||e,Yse=({theme:e,ownerState:t})=>{const n=qse(t.color),r=bd(e,`palette.${n}`,!1)||t.color,o=bd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:lt(r,.4)},Qse=Yse,Xse=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Zse=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${Pe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Te(s,Wse,t)},Jse=oe(qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Pe(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:Qse({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"},[`&.${Kse.focusVisible}`]:{outline:"auto"}})),eie=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:m}=r,v=le(r,Xse),{isFocusVisibleRef:y,onBlur:g,onFocus:C,ref:w}=qy(),[b,S]=c.useState(!1),E=Et(n,w),_=A=>{g(A),y.current===!1&&S(!1),l&&l(A)},k=A=>{C(A),y.current===!0&&S(!0),a&&a(A)},I=x({},r,{color:s,component:i,focusVisible:b,underline:f,variant:p}),R=Zse(I);return O.jsx(Jse,x({color:s,className:Ce(R.root,o),classes:u,component:i,onBlur:_,onFocus:k,ref:E,ownerState:I,variant:p,sx:[...Object.keys(n4).includes(s)?[]:[{color:s}],...Array.isArray(m)?m:[m]]},v))}),Ls=eie,tie=c.createContext({}),li=tie;function nie(e){return Ke("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const rie=["children","className","component","dense","disablePadding","subheader"],oie=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nie,t)},sie=oe("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})),iie=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=le(r,rie),p=c.useMemo(()=>({dense:l}),[l]),m=x({},r,{component:i,dense:l,disablePadding:a}),v=oie(m);return O.jsx(li.Provider,{value:p,children:O.jsxs(sie,x({as:i,className:Ce(v.root,s),ref:n,ownerState:m},f,{children:[u,o]}))})}),Nh=iie;function lie(e){return Ke("MuiListItem",e)}const aie=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ku=aie;function cie(e){return Ke("MuiListItemButton",e)}const uie=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Eu=uie,die=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],fie=(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]},pie=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:l}=e,u=Te({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},cie,n);return x({},n,u)},hie=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fie})(({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"}},[`&.${Eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eu.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})),mie=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:m=!1,className:v}=r,y=le(r,die),g=c.useContext(li),C=c.useMemo(()=>({dense:a||g.dense||!1,alignItems:o,disableGutters:u}),[o,g.dense,a,u]),w=c.useRef(null);Nt(()=>{s&&w.current&&w.current.focus()},[s]);const b=x({},r,{alignItems:o,dense:C.dense,disableGutters:u,divider:f,selected:m}),S=pie(b),E=Et(w,n);return O.jsx(li.Provider,{value:C,children:O.jsx(hie,x({ref:E,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:Ce(S.focusVisible,p),ownerState:b,className:Ce(S.root,v)},y,{classes:S,children:l}))})}),gie=mie;function vie(e){return Ke("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const yie=["className"],bie=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},vie,n)},wie=oe("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})),r4=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=le(r,yie),i=c.useContext(li),l=x({},r,{disableGutters:i.disableGutters}),a=bie(l);return O.jsx(wie,x({className:Ce(a.root,o),ownerState:l,ref:n},s))});r4.muiName="ListItemSecondaryAction";const Cie=r4,xie=["className"],Sie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pie=(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]},kie=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:l,divider:a,hasSecondaryAction:u,selected:f}=e;return Te({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",a&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},lie,r)},Eie=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Pie})(({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&&{[`& > .${Eu.root}`]:{paddingRight:48}},{[`&.${ku.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ku.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ku.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ku.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"}},[`&.${ku.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Iie=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Mie=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:m="li",ContainerProps:{className:v}={},dense:y=!1,disabled:g=!1,disableGutters:C=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:S,secondaryAction:E,selected:_=!1,slotProps:k={},slots:I={}}=r,R=le(r.ContainerProps,xie),A=le(r,Sie),$=c.useContext(li),L=c.useMemo(()=>({dense:y||$.dense||!1,alignItems:o,disableGutters:C}),[o,$.dense,y,C]),B=c.useRef(null);Nt(()=>{s&&B.current&&B.current.focus()},[s]);const z=c.Children.toArray(l),M=z.length&&Sp(z[z.length-1],["ListItemSecondaryAction"]),T=x({},r,{alignItems:o,autoFocus:s,button:i,dense:L.dense,disabled:g,disableGutters:C,disablePadding:w,divider:b,hasSecondaryAction:M,selected:_}),F=kie(T),j=Et(B,n),D=I.root||f.Root||Eie,N=k.root||p.root||{},H=x({className:Ce(F.root,N.className,a),disabled:g},A);let K=u||"li";return i&&(H.component=u||"div",H.focusVisibleClassName=Ce(ku.focusVisible,S),K=ui),M?(K=!H.component&&!u?"div":K,m==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),O.jsx(li.Provider,{value:L,children:O.jsxs(Iie,x({as:m,className:Ce(F.container,v),ref:j,ownerState:T},R,{children:[O.jsx(D,x({},N,!$c(D)&&{as:K,ownerState:x({},T,N.ownerState)},H,{children:z})),z.pop()]}))})):O.jsx(li.Provider,{value:L,children:O.jsxs(D,x({},N,{as:K,ref:j},!$c(D)&&{ownerState:x({},T,N.ownerState)},H,{children:[z,E&&O.jsx(Cie,{children:E})]}))})}),fk=Mie;function _ie(e){return Ke("MuiListItemIcon",e)}const Tie=We("MuiListItemIcon",["root","alignItemsFlexStart"]),kR=Tie,$ie=["className"],Rie=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},_ie,n)},Oie=oe("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})),Die=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=le(r,$ie),i=c.useContext(li),l=x({},r,{alignItems:i.alignItems}),a=Rie(l);return O.jsx(Oie,x({className:Ce(a.root,o),ownerState:l,ref:n},s))}),hl=Die;function Aie(e){return Ke("MuiListItemText",e)}const Lie=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Vv=Lie,Fie=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Nie=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return Te({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Aie,t)},Bie=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vv.primary}`]:t.primary},{[`& .${Vv.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})),zie=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,m=le(r,Fie),{dense:v}=c.useContext(li);let y=a!=null?a:o,g=f;const C=x({},r,{disableTypography:i,inset:l,primary:!!y,secondary:!!g,dense:v}),w=Nie(C);return y!=null&&y.type!==qn&&!i&&(y=O.jsx(qn,x({variant:v?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),g!=null&&g.type!==qn&&!i&&(g=O.jsx(qn,x({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},p,{children:g}))),O.jsxs(Bie,x({className:Ce(w.root,s),ownerState:C,ref:n},m,{children:[y,g]}))}),Oi=zie,Vie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Lw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ER(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function o4(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 jf(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")||!o4(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const jie=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,m=le(t,Vie),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,E)=>{const _=!v.current.style.width;if(S.clientHeight<v.current.clientHeight&&_){const k=`${LF(fn(S))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=k,v.current.style.width=`calc(100% + ${k})`}return v.current}}),[]);const g=S=>{const E=v.current,_=S.key,k=fn(E).activeElement;if(_==="ArrowDown")S.preventDefault(),jf(E,k,u,a,Lw);else if(_==="ArrowUp")S.preventDefault(),jf(E,k,u,a,ER);else if(_==="Home")S.preventDefault(),jf(E,null,u,a,Lw);else if(_==="End")S.preventDefault(),jf(E,null,u,a,ER);else if(_.length===1){const I=y.current,R=_.toLowerCase(),A=performance.now();I.keys.length>0&&(A-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=A,I.keys.push(R);const $=k&&!I.repeating&&o4(k,I);I.previousKeyMatched&&($||jf(E,k,!1,a,Lw,I))?S.preventDefault():I.previousKeyMatched=!1}f&&f(S)},C=Et(v,n);let w=-1;c.Children.forEach(i,(S,E)=>{if(!c.isValidElement(S)){w===E&&(w+=1,w>=i.length&&(w=-1));return}S.props.disabled||(p==="selectedMenu"&&S.props.selected||w===-1)&&(w=E),w===E&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const b=c.Children.map(i,(S,E)=>{if(E===w){const _={};return s&&(_.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(_.tabIndex=0),c.cloneElement(S,_)}return S});return O.jsx(Nh,x({role:"menu",ref:C,className:l,onKeyDown:g,tabIndex:o?0:-1},m,{children:b}))}),Qd=jie;function Hie(e){return Ke("MuiPopover",e)}We("MuiPopover",["root","paper"]);const Uie=["onEntering"],Wie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Gie=["slotProps"];function IR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function MR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _R(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fw(e){return typeof e=="function"?e():e}const Kie=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},Hie,t)},qie=oe(Db,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s4=oe(Vs,{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}),Yie=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:m,className:v,container:y,elevation:g=8,marginThreshold:C=16,open:w,PaperProps:b={},slots:S,slotProps:E,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:k=ah,transitionDuration:I="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=i,$=le(i.TransitionProps,Uie),L=le(i,Wie),B=(r=E==null?void 0:E.paper)!=null?r:b,z=c.useRef(),M=Et(z,B.ref),T=x({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:C,externalPaperSlotProps:B,transformOrigin:_,TransitionComponent:k,transitionDuration:I,TransitionProps:$}),F=Kie(T),j=c.useCallback(()=>{if(p==="anchorPosition")return f;const ce=Fw(a),Ee=(ce&&ce.nodeType===1?ce:fn(z.current).body).getBoundingClientRect();return{top:Ee.top+IR(Ee,u.vertical),left:Ee.left+MR(Ee,u.horizontal)}},[a,u.horizontal,u.vertical,f,p]),D=c.useCallback(ce=>({vertical:IR(ce,_.vertical),horizontal:MR(ce,_.horizontal)}),[_.horizontal,_.vertical]),N=c.useCallback(ce=>{const Se={width:ce.offsetWidth,height:ce.offsetHeight},Ee=D(Se);if(p==="none")return{top:null,left:null,transformOrigin:_R(Ee)};const ae=j();let Ie=ae.top-Ee.vertical,ye=ae.left-Ee.horizontal;const Me=Ie+Se.height,pe=ye+Se.width,fe=Jo(Fw(a)),de=fe.innerHeight-C,be=fe.innerWidth-C;if(C!==null&&Ie<C){const _e=Ie-C;Ie-=_e,Ee.vertical+=_e}else if(C!==null&&Me>de){const _e=Me-de;Ie-=_e,Ee.vertical+=_e}if(C!==null&&ye<C){const _e=ye-C;ye-=_e,Ee.horizontal+=_e}else if(pe>be){const _e=pe-be;ye-=_e,Ee.horizontal+=_e}return{top:`${Math.round(Ie)}px`,left:`${Math.round(ye)}px`,transformOrigin:_R(Ee)}},[a,p,j,D,C]),[H,K]=c.useState(w),Y=c.useCallback(()=>{const ce=z.current;if(!ce)return;const Se=N(ce);Se.top!==null&&(ce.style.top=Se.top),Se.left!==null&&(ce.style.left=Se.left),ce.style.transformOrigin=Se.transformOrigin,K(!0)},[N]);c.useEffect(()=>(A&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,A,Y]);const te=(ce,Se)=>{R&&R(ce,Se),Y()},Q=()=>{K(!1)};c.useEffect(()=>{w&&Y()}),c.useImperativeHandle(l,()=>w?{updatePosition:()=>{Y()}}:null,[w,Y]),c.useEffect(()=>{if(!w)return;const ce=Aa(()=>{Y()}),Se=Jo(a);return Se.addEventListener("resize",ce),()=>{ce.clear(),Se.removeEventListener("resize",ce)}},[a,w,Y]);let X=I;I==="auto"&&!k.muiSupportAuto&&(X=void 0);const J=y||(a?fn(Fw(a)).body:void 0),se=(o=S==null?void 0:S.root)!=null?o:qie,Z=(s=S==null?void 0:S.paper)!=null?s:s4,he=qt({elementType:Z,externalSlotProps:x({},B,{style:H?B.style:x({},B.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:T,className:Ce(F.paper,B==null?void 0:B.className)}),ne=qt({elementType:se,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:T,className:Ce(F.root,v)}),{slotProps:re}=ne,me=le(ne,Gie);return O.jsx(se,x({},me,!$c(se)&&{slotProps:re,disableScrollLock:A},{children:O.jsx(k,x({appear:!0,in:w,onEntering:te,onExited:Q,timeout:X},$,{children:O.jsx(Z,x({},he,{children:m}))}))}))}),Qie=Yie;function Xie(e){return Ke("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Zie=["onEntering"],Jie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ele={vertical:"top",horizontal:"right"},tle={vertical:"top",horizontal:"left"},nle=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},Xie,t)},rle=oe(Qie,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ole=oe(s4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sle=oe(Qd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ile=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:m,PaperProps:v={},PopoverClasses:y,transitionDuration:g="auto",TransitionProps:{onEntering:C}={},variant:w="selectedMenu",slots:b={},slotProps:S={}}=s,E=le(s.TransitionProps,Zie),_=le(s,Jie),k=yn(),I=k.direction==="rtl",R=x({},s,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:f,onEntering:C,PaperProps:v,transitionDuration:g,TransitionProps:E,variant:w}),A=nle(R),$=i&&!u&&m,L=c.useRef(null),B=(N,H)=>{L.current&&L.current.adjustStyleForScrollbar(N,k),C&&C(N,H)},z=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let M=-1;c.Children.map(l,(N,H)=>{c.isValidElement(N)&&(N.props.disabled||(w==="selectedMenu"&&N.props.selected||M===-1)&&(M=H))});const T=(r=b.paper)!=null?r:ole,F=(o=S.paper)!=null?o:v,j=qt({elementType:b.root,externalSlotProps:S.root,ownerState:R,className:[A.root,a]}),D=qt({elementType:T,externalSlotProps:F,ownerState:R,className:A.paper});return O.jsx(rle,x({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?ele:tle,slots:{paper:T,root:b.root},slotProps:{root:j,paper:D},open:m,ref:n,transitionDuration:g,TransitionProps:x({onEntering:B},E),ownerState:R},_,{classes:y,children:O.jsx(sle,x({onKeyDown:z,actions:L,autoFocus:i&&(M===-1||u),autoFocusItem:$,variant:w},f,{className:Ce(A.list,f.className),children:l}))}))}),i4=ile;function lle(e){return Ke("MuiMenuItem",e)}const ale=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=ale,cle=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ule=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},dle=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,a=Te({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},lle,i);return x({},i,a)},fle=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ule})(({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"}},[`&.${Hf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fR.inset}`]:{marginLeft:52},[`& .${Vv.root}`]:{marginTop:0,marginBottom:0},[`& .${Vv.inset}`]:{paddingLeft:36},[`& .${kR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${kR.root} svg`]:{fontSize:"1.25rem"}}))),ple=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:m}=r,v=le(r,cle),y=c.useContext(li),g=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 w=x({},r,{dense:g.dense,divider:l,disableGutters:a}),b=dle(r),S=Et(C,n);let E;return r.disabled||(E=p!==void 0?p:-1),O.jsx(li.Provider,{value:g,children:O.jsx(fle,x({ref:S,role:f,tabIndex:E,component:s,focusVisibleClassName:Ce(b.focusVisible,u),className:Ce(b.root,m)},v,{ownerState:w,classes:b}))})}),Pr=ple;function hle(e){return Ke("MuiNativeSelect",e)}const mle=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),pk=mle,gle=["className","disabled","error","IconComponent","inputRef","variant"],vle=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${Pe(n)}`,s&&"iconOpen",r&&"disabled"]};return Te(l,hle,t)},l4=({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"},[`&.${pk.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}}),yle=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Jr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${pk.multiple}`]:t.multiple}]}})(l4),a4=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${pk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ble=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(a4),wle=c.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,u=le(t,gle),f=x({},t,{disabled:o,variant:a,error:s}),p=vle(f);return O.jsxs(c.Fragment,{children:[O.jsx(yle,x({ownerState:f,className:Ce(p.select,r),disabled:o,ref:l||n},u)),t.multiple?null:O.jsx(ble,{as:i,ownerState:f,className:p.icon})]})}),Cle=wle;var TR;const xle=["children","classes","className","label","notched"],Sle=oe("fieldset",{shouldForwardProp:Jr})({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%"}),Ple=oe("legend",{shouldForwardProp:Jr})(({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 kle(e){const{className:t,label:n,notched:r}=e,o=le(e,xle),s=n!=null&&n!=="",i=x({},e,{notched:r,withLabel:s});return O.jsx(Sle,x({"aria-hidden":!0,className:t,ownerState:i},o,{children:O.jsx(Ple,{ownerState:i,children:s?O.jsx("span",{children:n}):TR||(TR=O.jsx("span",{className:"notranslate",children:""}))})}))}const Ele=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ile=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nte,t);return x({},t,r)},Mle=oe(_b,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ib})(({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 .${Si.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Si.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Si.focused} .${Si.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Si.error} .${Si.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Si.disabled} .${Si.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"}))}),_le=oe(kle,{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}}),Tle=oe(Tb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Mb})(({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})),c4=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:m,multiline:v=!1,notched:y,slots:g={},type:C="text"}=a,w=le(a,Ele),b=Ile(a),S=Il(),E=Vc({props:a,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=x({},a,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:S,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:v,size:E.size,type:C}),k=(r=(o=g.root)!=null?o:u.Root)!=null?r:Mle,I=(s=(i=g.input)!=null?i:u.Input)!=null?s:Tle;return O.jsx(Gd,x({slots:{root:k,input:I},renderSuffix:R=>O.jsx(_le,{ownerState:_,className:b.notchedOutline,label:m!=null&&m!==""&&E.required?l||(l=O.jsxs(c.Fragment,{children:[m," ","*"]})):m,notched:typeof y!="undefined"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:C},w,{classes:x({},b,{notchedOutline:null})}))});c4.muiName="Input";const u4=c4,$R=bt(O.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),RR=bt(O.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function $le(e){return Ke("MuiSelect",e)}const Rle=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uf=Rle;var OR;const Ole=["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"],Dle=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Uf.select}`]:t.select},{[`&.${Uf.select}`]:t[n.variant]},{[`&.${Uf.error}`]:t.error},{[`&.${Uf.multiple}`]:t.multiple}]}})(l4,{[`&.${Uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ale=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Pe(n.variant)}`],n.open&&t.iconOpen]}})(a4),Lle=oe("input",{shouldForwardProp:e=>KX(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 Fle(e){return e==null||typeof e=="string"&&!e.trim()}const Nle=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${Pe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Te(l,$le,t)},Ble=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:m,displayEmpty:v,error:y=!1,IconComponent:g,inputRef:C,labelId:w,MenuProps:b={},multiple:S,name:E,onBlur:_,onChange:k,onClose:I,onFocus:R,onOpen:A,open:$,readOnly:L,renderValue:B,SelectDisplayProps:z={},tabIndex:M,value:T,variant:F="standard"}=t,j=le(t,Ole),[D,N]=Qr({controlled:T,default:p,name:"Select"}),[H,K]=Qr({controlled:$,default:f,name:"Select"}),Y=c.useRef(null),te=c.useRef(null),[Q,X]=c.useState(null),{current:J}=c.useRef($!=null),[se,Z]=c.useState(),he=Et(n,C),ne=c.useCallback(Xe=>{te.current=Xe,Xe&&X(Xe)},[]),re=Q==null?void 0:Q.parentNode;c.useImperativeHandle(he,()=>({focus:()=>{te.current.focus()},node:Y.current,value:D}),[D]),c.useEffect(()=>{f&&H&&Q&&!J&&(Z(l?null:re.clientWidth),te.current.focus())},[Q,l]),c.useEffect(()=>{i&&te.current.focus()},[i]),c.useEffect(()=>{if(!w)return;const Xe=fn(te.current).getElementById(w);if(Xe){const Oe=()=>{getSelection().isCollapsed&&te.current.focus()};return Xe.addEventListener("click",Oe),()=>{Xe.removeEventListener("click",Oe)}}},[w]);const me=(Xe,Oe)=>{Xe?A&&A(Oe):I&&I(Oe),J||(Z(l?null:re.clientWidth),K(Xe))},ce=Xe=>{Xe.button===0&&(Xe.preventDefault(),te.current.focus(),me(!0,Xe))},Se=Xe=>{me(!1,Xe)},Ee=c.Children.toArray(a),ae=Xe=>{const Oe=Ee.find(qe=>qe.props.value===Xe.target.value);Oe!==void 0&&(N(Oe.props.value),k&&k(Xe,Oe))},Ie=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),k)){const mt=Oe.nativeEvent||Oe,vt=new mt.constructor(mt.type,mt);Object.defineProperty(vt,"target",{writable:!0,value:{value:qe,name:E}}),k(vt,Xe)}S||me(!1,Oe)}},ye=Xe=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Xe.key)!==-1&&(Xe.preventDefault(),me(!0,Xe))},Me=Q!==null&&H,pe=Xe=>{!Me&&_&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:D,name:E}}),_(Xe))};delete j["aria-invalid"];let fe,de;const be=[];let _e=!1;(Bv({value:D})||v)&&(B?fe=B(D):_e=!0);const Ne=Ee.map(Xe=>{if(!c.isValidElement(Xe))return null;let Oe;if(S){if(!Array.isArray(D))throw new Error(ka(2));Oe=D.some(qe=>DR(qe,Xe.props.value)),Oe&&_e&&be.push(Xe.props.children)}else Oe=DR(D,Xe.props.value),Oe&&_e&&(de=Xe.props.children);return c.cloneElement(Xe,{"aria-selected":Oe?"true":"false",onClick:Ie(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})});_e&&(S?be.length===0?fe=null:fe=be.reduce((Xe,Oe,qe)=>(Xe.push(Oe),qe<be.length-1&&Xe.push(", "),Xe),[]):fe=de);let Ge=se;!l&&J&&Q&&(Ge=re.clientWidth);let Ve;typeof M!="undefined"?Ve=M:Ve=m?null:0;const Ue=z.id||(E?`mui-component-select-${E}`:void 0),Le=x({},t,{variant:F,value:D,open:Me,error:y}),ht=Nle(Le),Zt=x({},b.PaperProps,(r=b.slotProps)==null?void 0:r.paper),Pt=Kt(),wt=Kt();return O.jsxs(c.Fragment,{children:[O.jsx(Dle,x({ref:ne,tabIndex:Ve,role:"combobox","aria-controls":Pt,"aria-disabled":m?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[w,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ye,onMouseDown:m||L?null:ce,onBlur:pe,onFocus:R},z,{ownerState:Le,className:Ce(z.className,ht.select,u),id:Ue,children:Fle(fe)?OR||(OR=O.jsx("span",{className:"notranslate",children:""})):fe})),O.jsx(Lle,x({"aria-invalid":y,value:Array.isArray(D)?D.join(","):D,name:E!=null?E:wt,ref:Y,"aria-hidden":!0,onChange:ae,tabIndex:-1,disabled:m,className:ht.nativeInput,autoFocus:i,ownerState:Le},j)),O.jsx(Ale,{as:g,className:ht.icon,ownerState:Le}),O.jsx(i4,x({id:`menu-${E||""}`,anchorEl:re,open:Me,onClose:Se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:x({"aria-labelledby":w,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Pt},b.MenuListProps),slotProps:x({},b.slotProps,{paper:x({},Zt,{style:x({minWidth:Ge},Zt!=null?Zt.style:null)})}),children:Ne}))]})}),zle=Ble,Vle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],jle=["root"],Hle=e=>{const{classes:t}=e;return t},hk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jr(e)&&e!=="variant",slot:"Root"},Ule=oe(e4,hk)(""),Wle=oe(u4,hk)(""),Gle=oe(GN,hk)(""),d4=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=ON,id:p,input:m,inputProps:v,label:y,labelId:g,MenuProps:C,multiple:w=!1,native:b=!1,onClose:S,onOpen:E,open:_,renderValue:k,SelectDisplayProps:I,variant:R="outlined"}=r,A=le(r,Vle),$=b?Cle:zle,L=Il(),B=Vc({props:r,muiFormControl:L,states:["variant","error"]}),z=B.variant||R,M=x({},r,{variant:z,classes:i}),T=Hle(M),F=le(T,jle),j=m||{standard:O.jsx(Ule,{ownerState:M}),outlined:O.jsx(Wle,{label:y,ownerState:M}),filled:O.jsx(Gle,{ownerState:M})}[z],D=Et(n,j.ref);return O.jsx(c.Fragment,{children:c.cloneElement(j,x({inputComponent:$,inputProps:x({children:s,error:B.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:g,MenuProps:C,onClose:S,onOpen:E,open:_,renderValue:k,SelectDisplayProps:x({id:p},I)},v,{classes:v?Yr(F,v.classes):F},m?m.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:D,className:Ce(j.props.className,l,T.root)},!m&&{variant:z},A))})});d4.muiName="Select";const mk=d4;function Kle(e){return Ke("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const qle=["animation","className","component","height","style","variant","width"];let jv=e=>e,AR,LR,FR,NR;const Yle=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return Te({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},Kle,t)},Qle=Ui(AR||(AR=jv`
|
|
243
|
+
0% {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
50% {
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
`)),Xle=Ui(LR||(LR=jv`
|
|
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
|
+
`)),Zle=oe("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=UX(e.shape.borderRadius)||"px",r=WX(e.shape.borderRadius);return x({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:lt(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"&&Ea(FR||(FR=jv`
|
|
268
|
+
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
269
|
+
`),Qle),({ownerState:e,theme:t})=>e.animation==="wave"&&Ea(NR||(NR=jv`
|
|
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
|
+
`),Xle,(t.vars||t).palette.action.hover)),Jle=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=le(r,qle),m=x({},r,{animation:o,component:i,variant:u,hasChildren:!!p.children}),v=Yle(m);return O.jsx(Zle,x({as:i,ref:n,className:Ce(v.root,s),ownerState:m},p,{style:x({width:f,height:l},a)}))}),eae=Jle;function tae(e){return Ke("MuiTooltip",e)}const nae=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),la=nae,rae=["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 oae(e){return Math.round(e*1e5)/1e5}const sae=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${Pe(s.split("-")[0])}`],arrow:["arrow"]};return Te(i,tae,t)},iae=oe(Fa,{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"] .${la.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${la.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${la.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"] .${la.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),lae=oe("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${Pe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lt(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:`${oae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${la.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"})),[`.${la.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"})),[`.${la.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${la.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),aae=oe("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:lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let pg=!1,Nw=null,Wf={x:0,y:0};function hg(e,t){return n=>{t&&t(n),e(n)}}const cae=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,m,v,y,g,C,w,b,S,E,_;const k=je({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:A={},componentsProps:$={},describeChild:L=!1,disableFocusListener:B=!1,disableHoverListener:z=!1,disableInteractive:M=!1,disableTouchListener:T=!1,enterDelay:F=100,enterNextDelay:j=0,enterTouchDelay:D=700,followCursor:N=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:te,onOpen:Q,open:X,placement:J="bottom",PopperComponent:se,PopperProps:Z={},slotProps:he={},slots:ne={},title:re,TransitionComponent:me=ah,TransitionProps:ce}=k,Se=le(k,rae),Ee=c.isValidElement(R)?R:O.jsx("span",{children:R}),ae=yn(),Ie=ae.direction==="rtl",[ye,Me]=c.useState(),[pe,fe]=c.useState(null),de=c.useRef(!1),be=M||N,_e=c.useRef(),Ne=c.useRef(),Ge=c.useRef(),Ve=c.useRef(),[Ue,Le]=Qr({controlled:X,default:!1,name:"Tooltip",state:"open"});let ht=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(_e.current),clearTimeout(Ne.current),clearTimeout(Ge.current),wt()},[wt]);const Xe=St=>{clearTimeout(Nw),pg=!0,Le(!0),Q&&!ht&&Q(St)},Oe=Ye(St=>{clearTimeout(Nw),Nw=setTimeout(()=>{pg=!1},800+K),Le(!1),te&&ht&&te(St),clearTimeout(_e.current),_e.current=setTimeout(()=>{de.current=!1},ae.transitions.duration.shortest)}),qe=St=>{de.current&&St.type!=="touchstart"||(ye&&ye.removeAttribute("title"),clearTimeout(Ne.current),clearTimeout(Ge.current),F||pg&&j?Ne.current=setTimeout(()=>{Xe(St)},pg?j:F):Xe(St))},mt=St=>{clearTimeout(Ne.current),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},K)},{isFocusVisibleRef:vt,onBlur:Tt,onFocus:Yt,ref:Qt}=qy(),[,Pn]=c.useState(!1),bn=St=>{Tt(St),vt.current===!1&&(Pn(!1),mt(St))},gt=St=>{ye||Me(St.currentTarget),Yt(St),vt.current===!0&&(Pn(!0),qe(St))},Rt=St=>{de.current=!0;const Xn=Ee.props;Xn.onTouchStart&&Xn.onTouchStart(St)},vr=qe,ir=mt,Tl=St=>{Rt(St),clearTimeout(Ge.current),clearTimeout(_e.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)},as=St=>{Ee.props.onTouchEnd&&Ee.props.onTouchEnd(St),wt(),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{Oe(St)},Y)};c.useEffect(()=>{if(!ht)return;function St(Xn){(Xn.key==="Escape"||Xn.key==="Esc")&&Oe(Xn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Oe,ht]);const Tn=Et(Ee.ref,Qt,Me,n);!re&&re!==0&&(ht=!1);const an=c.useRef(),yr=St=>{const Xn=Ee.props;Xn.onMouseMove&&Xn.onMouseMove(St),Wf={x:St.clientX,y:St.clientY},an.current&&an.current.update()},ho={},cs=typeof re=="string";L?(ho.title=!ht&&cs&&!z?re:null,ho["aria-describedby"]=ht?Zt:null):(ho["aria-label"]=cs?re:null,ho["aria-labelledby"]=ht&&!cs?Zt:null);const lr=x({},ho,Se,Ee.props,{className:Ce(Se.className,Ee.props.className),onTouchStart:Rt,ref:Tn},N?{onMouseMove:yr}:{}),Do={};T||(lr.onTouchStart=Tl,lr.onTouchEnd=as),z||(lr.onMouseOver=hg(vr,lr.onMouseOver),lr.onMouseLeave=hg(ir,lr.onMouseLeave),be||(Do.onMouseOver=vr,Do.onMouseLeave=ir)),B||(lr.onFocus=hg(gt,lr.onFocus),lr.onBlur=hg(bn,lr.onBlur),be||(Do.onFocus=gt,Do.onBlur=bn));const mi=c.useMemo(()=>{var St;let Xn=[{name:"arrow",enabled:!!pe,options:{element:pe,padding:4}}];return(St=Z.popperOptions)!=null&&St.modifiers&&(Xn=Xn.concat(Z.popperOptions.modifiers)),x({},Z.popperOptions,{modifiers:Xn})},[pe,Z]),Mr=x({},k,{isRtl:Ie,arrow:I,disableInteractive:be,placement:J,PopperComponentProp:se,touch:de.current}),Nr=sae(Mr),js=(r=(o=ne.popper)!=null?o:A.Popper)!=null?r:iae,$e=(s=(i=(l=ne.transition)!=null?l:A.Transition)!=null?i:me)!=null?s:ah,we=(a=(u=ne.tooltip)!=null?u:A.Tooltip)!=null?a:lae,Qe=(f=(p=ne.arrow)!=null?p:A.Arrow)!=null?f:aae,ft=op(js,x({},Z,(m=he.popper)!=null?m:$.popper,{className:Ce(Nr.popper,Z==null?void 0:Z.className,(v=(y=he.popper)!=null?y:$.popper)==null?void 0:v.className)}),Mr),Wt=op($e,x({},ce,(g=he.transition)!=null?g:$.transition),Mr),$n=op(we,x({},(C=he.tooltip)!=null?C:$.tooltip,{className:Ce(Nr.tooltip,(w=(b=he.tooltip)!=null?b:$.tooltip)==null?void 0:w.className)}),Mr),Fn=op(Qe,x({},(S=he.arrow)!=null?S:$.arrow,{className:Ce(Nr.arrow,(E=(_=he.arrow)!=null?_:$.arrow)==null?void 0:E.className)}),Mr);return O.jsxs(c.Fragment,{children:[c.cloneElement(Ee,lr),O.jsx(js,x({as:se!=null?se:Fa,placement:J,anchorEl:N?{getBoundingClientRect:()=>({top:Wf.y,left:Wf.x,right:Wf.x,bottom:Wf.y,width:0,height:0})}:ye,popperRef:an,open:ye?ht:!1,id:Zt,transition:!0},Do,ft,{popperOptions:mi,children:({TransitionProps:St})=>O.jsx($e,x({timeout:ae.transitions.duration.shorter},St,Wt,{children:O.jsxs(we,x({},$n,{children:[re,I?O.jsx(Qe,x({},Fn,{ref:fe})):null]}))}))}))]})}),Ml=cae;function uae(e){return Ke("MuiSwitch",e)}const dae=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ur=dae,fae=["className","color","edge","size","sx"],pae=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,l={root:["root",n&&`edge${Pe(n)}`,`size${Pe(r)}`],switchBase:["switchBase",`color${Pe(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=Te(l,uae,t);return x({},t,a)},hae=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Pe(n.edge)}`],t[`size${Pe(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,[`& .${Ur.thumb}`]:{width:16,height:16},[`& .${Ur.switchBase}`]:{padding:4,[`&.${Ur.checked}`]:{transform:"translateX(16px)"}}})),mae=oe(FN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ur.input}`]:t.input},n.color!=="default"&&t[`color${Pe(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}),[`&.${Ur.checked}`]:{transform:"translateX(20px)"},[`&.${Ur.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ur.checked} + .${Ur.track}`]:{opacity:.5},[`&.${Ur.disabled} + .${Ur.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ur.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})`:lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ur.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})`:lt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ur.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Tc(e.palette[t.color].main,.62):_c(e.palette[t.color].main,.55)}`}},[`&.${Ur.checked} + .${Ur.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),gae=oe("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}`})),vae=oe("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%"})),yae=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=le(r,fae),f=x({},r,{color:s,edge:i,size:l}),p=pae(f),m=O.jsx(vae,{className:p.thumb,ownerState:f});return O.jsxs(hae,{className:Ce(p.root,o),sx:a,ownerState:f,children:[O.jsx(mae,x({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:f},u,{classes:x({},p,{root:p.switchBase})})),O.jsx(gae,{className:p.track,ownerState:f})]})}),f4=yae;function bae(e){return Ke("MuiTab",e)}const wae=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Xa=wae,Cae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],xae=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${Pe(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return Te(u,bae,t)},Sae=oe(ui,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Pe(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,[`& > .${Xa.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,[`&.${Xa.selected}`]:{opacity:1},[`&.${Xa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Xa.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Xa.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Xa.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Xa.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)})),Pae=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:m,onClick:v,onFocus:y,selected:g,selectionFollowsFocus:C,textColor:w="inherit",value:b,wrapped:S=!1}=r,E=le(r,Cae),_=x({},r,{disabled:s,disableFocusRipple:i,selected:g,icon:!!a,iconPosition:u,label:!!p,fullWidth:l,textColor:w,wrapped:S}),k=xae(_),I=a&&p&&c.isValidElement(a)?c.cloneElement(a,{className:Ce(k.iconWrapper,a.props.className)}):a,R=$=>{!g&&m&&m($,b),v&&v($)},A=$=>{C&&!g&&m&&m($,b),y&&y($)};return O.jsxs(Sae,x({focusRipple:!i,className:Ce(k.root,o),ref:n,role:"tab","aria-selected":g,disabled:s,onClick:R,onFocus:A,ownerState:_,tabIndex:g?0:-1},E,{children:[u==="top"||u==="start"?O.jsxs(c.Fragment,{children:[I,p]}):O.jsxs(c.Fragment,{children:[p,I]}),f]}))}),Hv=Pae,kae=c.createContext(),Eae=kae,Iae=c.createContext(),Mae=Iae;function _ae(e){return Ke("MuiTableCell",e)}const Tae=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$ae=Tae,Rae=["align","className","component","padding","scope","size","sortDirection","variant"],Oae=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Pe(r)}`,o!=="normal"&&`padding${Pe(o)}`,`size${Pe(s)}`]};return Te(l,_ae,t)},Dae=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Pe(n.size)}`],n.padding!=="normal"&&t[`padding${Pe(n.padding)}`],n.align!=="inherit"&&t[`align${Pe(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"?Tc(lt(e.palette.divider,1),.88):_c(lt(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",[`&.${$ae.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})),Aae=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,m=le(r,Rae),v=c.useContext(Eae),y=c.useContext(Mae),g=y&&y.variant==="head";let C;i?C=i:C=g?"th":"td";let w=a;C==="td"?w=void 0:!w&&g&&(w="col");const b=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:b==="head"&&v&&v.stickyHeader,variant:b}),E=Oae(S);let _=null;return f&&(_=f==="asc"?"ascending":"descending"),O.jsx(Dae,x({as:C,ref:n,className:Ce(E.root,s),"aria-sort":_,scope:w,ownerState:S},m))}),Lx=Aae;function Lae(e){return Ke("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Fae=["className","component","disableGutters","variant"],Nae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},Lae,t)},Bae=oe("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),zae=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=le(r,Fae),u=x({},r,{component:s,disableGutters:i,variant:l}),f=Nae(u);return O.jsx(Bae,x({as:s,className:Ce(f.root,o),ref:n,ownerState:u},a))}),p4=zae,Fx=bt(O.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Nx=bt(O.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var BR,zR,VR,jR,HR,UR,WR,GR;const Vae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slotProps"],jae=c.forwardRef(function(t,n){var r,o,s,i;const{backIconButtonProps:l,count:a,disabled:u=!1,getItemAriaLabel:f,nextIconButtonProps:p,onPageChange:m,page:v,rowsPerPage:y,showFirstButton:g,showLastButton:C,slotProps:w}=t,b=le(t,Vae),S=yn(),E=R=>{m(R,0)},_=R=>{m(R,v-1)},k=R=>{m(R,v+1)},I=R=>{m(R,Math.max(0,Math.ceil(a/y)-1))};return O.jsxs("div",x({ref:n},b,{children:[g&&O.jsx(xr,x({onClick:E,disabled:u||v===0,"aria-label":f("first",v),title:f("first",v)},(r=w==null?void 0:w.firstButton)!=null?r:{},{children:S.direction==="rtl"?BR||(BR=O.jsx(RR,{})):zR||(zR=O.jsx($R,{}))})),O.jsx(xr,x({onClick:_,disabled:u||v===0,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},(o=w==null?void 0:w.previousButton)!=null?o:l,{children:S.direction==="rtl"?VR||(VR=O.jsx(Nx,{})):jR||(jR=O.jsx(Fx,{}))})),O.jsx(xr,x({onClick:k,disabled:u||(a!==-1?v>=Math.ceil(a/y)-1:!1),color:"inherit","aria-label":f("next",v),title:f("next",v)},(s=w==null?void 0:w.nextButton)!=null?s:p,{children:S.direction==="rtl"?HR||(HR=O.jsx(Fx,{})):UR||(UR=O.jsx(Nx,{}))})),C&&O.jsx(xr,x({onClick:I,disabled:u||v>=Math.ceil(a/y)-1,"aria-label":f("last",v),title:f("last",v)},(i=w==null?void 0:w.lastButton)!=null?i:{},{children:S.direction==="rtl"?WR||(WR=O.jsx($R,{})):GR||(GR=O.jsx(RR,{}))}))]}))}),Hae=jae;function Uae(e){return Ke("MuiTablePagination",e)}const Wae=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),mc=Wae;var KR;const Gae=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps"],Kae=oe(Lx,{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}})),qae=oe(p4,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>x({[`& .${mc.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},[`& .${mc.actions}`]:{flexShrink:0,marginLeft:20}})),Yae=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Qae=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>x({},e.typography.body2,{flexShrink:0})),Xae=oe(mk,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>x({[`& .${mc.selectIcon}`]:t.selectIcon,[`& .${mc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${mc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Zae=oe(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Jae=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>x({},e.typography.body2,{flexShrink:0}));function ece({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function tce(e){return`Go to ${e} page`}const nce=e=>{const{classes:t}=e;return Te({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Uae,t)},rce=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=Hae,backIconButtonProps:i,className:l,colSpan:a,component:u=Lx,count:f,disabled:p=!1,getItemAriaLabel:m=tce,labelDisplayedRows:v=ece,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:g,onPageChange:C,onRowsPerPageChange:w,page:b,rowsPerPage:S,rowsPerPageOptions:E=[10,25,50,100],SelectProps:_={},showFirstButton:k=!1,showLastButton:I=!1,slotProps:R}=o,A=le(o,Gae),$=o,L=nce($),B=(r=R==null?void 0:R.select)!=null?r:_,z=B.native?"option":Zae;let M;(u===Lx||u==="td")&&(M=a||1e3);const T=Kt(B.id),F=Kt(B.labelId),j=()=>f===-1?(b+1)*S:S===-1?f:Math.min(f,(b+1)*S);return O.jsx(Kae,x({colSpan:M,ref:n,as:u,ownerState:$,className:Ce(L.root,l)},A,{children:O.jsxs(qae,{className:L.toolbar,children:[O.jsx(Yae,{className:L.spacer}),E.length>1&&O.jsx(Qae,{className:L.selectLabel,id:F,children:y}),E.length>1&&O.jsx(Xae,x({variant:"standard"},!B.variant&&{input:KR||(KR=O.jsx(Gd,{}))},{value:S,onChange:w,id:T,labelId:F},B,{classes:x({},B.classes,{root:Ce(L.input,L.selectRoot,(B.classes||{}).root),select:Ce(L.select,(B.classes||{}).select),icon:Ce(L.selectIcon,(B.classes||{}).icon)}),disabled:p,children:E.map(D=>c.createElement(z,x({},!$c(z)&&{ownerState:$},{className:L.menuItem,key:D.label?D.label:D,value:D.value?D.value:D}),D.label?D.label:D))})),O.jsx(Jae,{className:L.displayedRows,children:v({from:f===0?0:b*S+1,to:j(),count:f===-1?-1:f,page:b})}),O.jsx(s,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:g,onPageChange:C,page:b,rowsPerPage:S,showFirstButton:k,showLastButton:I,slotProps:R==null?void 0:R.actions,getItemAriaLabel:m,disabled:p})]})}))}),oce=rce;function sce(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ice(e,t,n,r={},o=()=>{}){const{ease:s=sce,duration:i=300}=r;let l=null;const a=t[e];let u=!1;const f=()=>{u=!0},p=m=>{if(u){o(new Error("Animation cancelled"));return}l===null&&(l=m);const v=Math.min(1,(m-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 lce=["onChange"],ace={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cce(e){const{onChange:t}=e,n=le(e,lce),r=c.useRef(),o=c.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Nt(()=>{const i=Aa(()=>{const a=r.current;s(),a!==r.current&&t(r.current)}),l=Jo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),c.useEffect(()=>{s(),t(r.current)},[t]),O.jsx("div",x({style:ace,ref:o},n))}function uce(e){return Ke("MuiTabScrollButton",e)}const dce=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fce=dce,pce=["className","slots","slotProps","direction","orientation","disabled"],hce=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},uce,t)},mce=oe(ui,{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,[`&.${fce.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),gce=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=le(s,pce),m=yn().direction==="rtl",v=x({isRtl:m},s),y=hce(v),g=(r=l.StartScrollButtonIcon)!=null?r:Fx,C=(o=l.EndScrollButtonIcon)!=null?o:Nx,w=qt({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),b=qt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return O.jsx(mce,x({component:"div",className:Ce(y.root,i),ref:n,role:null,ownerState:v,tabIndex:null},f,{children:u==="left"?O.jsx(g,x({},w)):O.jsx(C,x({},b))}))}),vce=gce;function yce(e){return Ke("MuiTabs",e)}const bce=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Kg=bce,wce=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,YR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,mg=(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}}},Cce=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:i,scrollButtonsHideMobile:l,classes:a}=e;return Te({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"]},yce,a)},xce=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kg.scrollButtons}`]:t.scrollButtons},{[`& .${Kg.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&&{[`& .${Kg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Sce=oe("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"})),Pce=oe("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"})),kce=oe("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})),Ece=oe(cce)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),QR={},Ice=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:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:y="primary",onChange:g,orientation:C="horizontal",ScrollButtonComponent:w=vce,scrollButtons:b="auto",selectionFollowsFocus:S,slots:E={},slotProps:_={},TabIndicatorProps:k={},TabScrollButtonProps:I={},textColor:R="primary",value:A,variant:$="standard",visibleScrollbar:L=!1}=r,B=le(r,wce),z=$==="scrollable",M=C==="vertical",T=M?"scrollTop":"scrollLeft",F=M?"top":"left",j=M?"bottom":"right",D=M?"clientHeight":"clientWidth",N=M?"height":"width",H=x({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:y,orientation:C,vertical:M,scrollButtons:b,textColor:R,variant:$,visibleScrollbar:L,fixed:!z,hideScrollbar:z&&!L,scrollableX:z&&!M,scrollableY:z&&M,centered:u&&!z,scrollButtonsHideMobile:!v}),K=Cce(H),Y=qt({elementType:E.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:H}),te=qt({elementType:E.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:H}),[Q,X]=c.useState(!1),[J,se]=c.useState(QR),[Z,he]=c.useState(!1),[ne,re]=c.useState(!1),[me,ce]=c.useState(!1),[Se,Ee]=c.useState({overflow:"hidden",scrollbarWidth:0}),ae=new Map,Ie=c.useRef(null),ye=c.useRef(null),Me=()=>{const Oe=Ie.current;let qe;if(Oe){const vt=Oe.getBoundingClientRect();qe={clientWidth:Oe.clientWidth,scrollLeft:Oe.scrollLeft,scrollTop:Oe.scrollTop,scrollLeftNormalized:Aq(Oe,o.direction),scrollWidth:Oe.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let mt;if(Oe&&A!==!1){const vt=ye.current.children;if(vt.length>0){const Tt=vt[ae.get(A)];mt=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:qe,tabMeta:mt}},pe=Ye(()=>{const{tabsMeta:Oe,tabMeta:qe}=Me();let mt=0,vt;if(M)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 Tt={[vt]:mt,[N]:qe?qe[N]:0};if(isNaN(J[vt])||isNaN(J[N]))se(Tt);else{const Yt=Math.abs(J[vt]-Tt[vt]),Qt=Math.abs(J[N]-Tt[N]);(Yt>=1||Qt>=1)&&se(Tt)}}),fe=(Oe,{animation:qe=!0}={})=>{qe?ice(T,Ie.current,Oe,{duration:o.transitions.duration.standard}):Ie.current[T]=Oe},de=Oe=>{let qe=Ie.current[T];M?qe+=Oe:(qe+=Oe*(s?-1:1),qe*=s&&FF()==="reverse"?-1:1),fe(qe)},be=()=>{const Oe=Ie.current[D];let qe=0;const mt=Array.from(ye.current.children);for(let vt=0;vt<mt.length;vt+=1){const Tt=mt[vt];if(qe+Tt[D]>Oe){vt===0&&(qe=Oe);break}qe+=Tt[D]}return qe},_e=()=>{de(-1*be())},Ne=()=>{de(be())},Ge=c.useCallback(Oe=>{Ee({overflow:null,scrollbarWidth:Oe})},[]),Ve=()=>{const Oe={};Oe.scrollbarSizeListener=z?O.jsx(Ece,{onChange:Ge,className:Ce(K.scrollableX,K.hideScrollbar)}):null;const mt=z&&(b==="auto"&&(Z||ne)||b===!0);return Oe.scrollButtonStart=mt?O.jsx(w,x({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:s?"right":"left",onClick:_e,disabled:!Z},I,{className:Ce(K.scrollButtons,I.className)})):null,Oe.scrollButtonEnd=mt?O.jsx(w,x({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:C,direction:s?"left":"right",onClick:Ne,disabled:!ne},I,{className:Ce(K.scrollButtons,I.className)})):null,Oe},Ue=Ye(Oe=>{const{tabsMeta:qe,tabMeta:mt}=Me();if(!(!mt||!qe)){if(mt[F]<qe[F]){const vt=qe[T]+(mt[F]-qe[F]);fe(vt,{animation:Oe})}else if(mt[j]>qe[j]){const vt=qe[T]+(mt[j]-qe[j]);fe(vt,{animation:Oe})}}}),Le=Ye(()=>{z&&b!==!1&&ce(!me)});c.useEffect(()=>{const Oe=Aa(()=>{Ie.current&&pe()});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=Jo(Ie.current);vt.addEventListener("resize",Oe);let Tt;return typeof ResizeObserver!="undefined"&&(qe=new ResizeObserver(Oe),Array.from(ye.current.children).forEach(Yt=>{qe.observe(Yt)})),typeof MutationObserver!="undefined"&&(Tt=new MutationObserver(mt),Tt.observe(ye.current,{childList:!0})),()=>{var Yt,Qt;Oe.clear(),vt.removeEventListener("resize",Oe),(Yt=Tt)==null||Yt.disconnect(),(Qt=qe)==null||Qt.disconnect()}},[pe,Le]),c.useEffect(()=>{const Oe=Array.from(ye.current.children),qe=Oe.length;if(typeof IntersectionObserver!="undefined"&&qe>0&&z&&b!==!1){const mt=Oe[0],vt=Oe[qe-1],Tt={root:Ie.current,threshold:.99},Yt=gt=>{he(!gt[0].isIntersecting)},Qt=new IntersectionObserver(Yt,Tt);Qt.observe(mt);const Pn=gt=>{re(!gt[0].isIntersecting)},bn=new IntersectionObserver(Pn,Tt);return bn.observe(vt),()=>{Qt.disconnect(),bn.disconnect()}}},[z,b,me,f==null?void 0:f.length]),c.useEffect(()=>{X(!0)},[]),c.useEffect(()=>{pe()}),c.useEffect(()=>{Ue(QR!==J)},[Ue,J]),c.useImperativeHandle(a,()=>({updateIndicator:pe,updateScrollButtons:Le}),[pe,Le]);const ht=O.jsx(kce,x({},k,{className:Ce(K.indicator,k.className),ownerState:H,style:x({},J,k.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;ae.set(qe,Zt);const mt=qe===A;return Zt+=1,c.cloneElement(Oe,x({fullWidth:$==="fullWidth",indicator:mt&&!Q&&ht,selected:mt,selectionFollowsFocus:S,onChange:g,textColor:R,value:qe},Zt===1&&A===!1&&!Oe.props.tabIndex?{tabIndex:0}:{}))}),wt=Oe=>{const qe=ye.current,mt=fn(qe).activeElement;if(mt.getAttribute("role")!=="tab")return;let Tt=C==="horizontal"?"ArrowLeft":"ArrowUp",Yt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(Tt="ArrowRight",Yt="ArrowLeft"),Oe.key){case Tt:Oe.preventDefault(),mg(qe,mt,YR);break;case Yt:Oe.preventDefault(),mg(qe,mt,qR);break;case"Home":Oe.preventDefault(),mg(qe,null,qR);break;case"End":Oe.preventDefault(),mg(qe,null,YR);break}},Xe=Ve();return O.jsxs(xce,x({className:Ce(K.root,p),ownerState:H,ref:n,as:m},B,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,O.jsxs(Sce,{className:K.scroller,ownerState:H,style:{overflow:Se.overflow,[M?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Se.scrollbarWidth},ref:Ie,children:[O.jsx(Pce,{"aria-label":i,"aria-labelledby":l,"aria-orientation":C==="vertical"?"vertical":null,className:K.flexContainer,ownerState:H,onKeyDown:wt,ref:ye,role:"tablist",children:Pt}),Q&&ht]}),Xe.scrollButtonEnd]}))}),gk=Ice;function Mce(e){return Ke("MuiTextField",e)}We("MuiTextField",["root"]);const _ce=["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"],Tce={standard:e4,filled:GN,outlined:u4},$ce=e=>{const{classes:t}=e;return Te({root:["root"]},Mce,t)},Rce=oe(KN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Oce=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:m,fullWidth:v=!1,helperText:y,id:g,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:S,label:E,maxRows:_,minRows:k,multiline:I=!1,name:R,onBlur:A,onChange:$,onFocus:L,placeholder:B,required:z=!1,rows:M,select:T=!1,SelectProps:F,type:j,value:D,variant:N="outlined"}=r,H=le(r,_ce),K=x({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:v,multiline:I,required:z,select:T,variant:N}),Y=$ce(K),te={};N==="outlined"&&(C&&typeof C.shrink!="undefined"&&(te.notched=C.shrink),te.label=E),T&&((!F||!F.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const Q=Kt(g),X=y&&Q?`${Q}-helper-text`:void 0,J=E&&Q?`${Q}-label`:void 0,se=Tce[N],Z=O.jsx(se,x({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:u,fullWidth:v,multiline:I,name:R,rows:M,maxRows:_,minRows:k,type:j,value:D,id:Q,inputRef:S,onBlur:A,onChange:$,onFocus:L,placeholder:B,inputProps:w},te,b));return O.jsxs(Rce,x({className:Ce(Y.root,l),disabled:f,error:p,fullWidth:v,ref:n,required:z,color:a,variant:N,ownerState:K},H,{children:[E!=null&&E!==""&&O.jsx(t4,x({htmlFor:Q,id:J},C,{children:E})),T?O.jsx(mk,x({"aria-describedby":X,id:Q,labelId:J,value:D,input:Z},F,{children:i})):Z,y&&O.jsx(qd,x({id:X},m,{children:y}))]}))}),Na=Oce;var vk={},h4={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})(h4);var tt=h4.exports,Bw={};const Dce=cA(rZ);var XR;function nt(){return XR||(XR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Dce}(Bw)),Bw}var Ace=tt;Object.defineProperty(vk,"__esModule",{value:!0});var m4=vk.default=void 0,Lce=Ace(nt()),Fce=Ze(),Nce=(0,Lce.default)((0,Fce.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");m4=vk.default=Nce;var yk={},Bce=tt;Object.defineProperty(yk,"__esModule",{value:!0});var g4=yk.default=void 0,zce=Bce(nt()),Vce=Ze(),jce=(0,zce.default)((0,Vce.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");g4=yk.default=jce;var bk={},Hce=tt;Object.defineProperty(bk,"__esModule",{value:!0});var v4=bk.default=void 0,Uce=Hce(nt()),Wce=Ze(),Gce=(0,Uce.default)((0,Wce.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");v4=bk.default=Gce;var wk={},Kce=tt;Object.defineProperty(wk,"__esModule",{value:!0});var Lb=wk.default=void 0,qce=Kce(nt()),Yce=Ze(),Qce=(0,qce.default)((0,Yce.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");Lb=wk.default=Qce;var Ck={},Xce=tt;Object.defineProperty(Ck,"__esModule",{value:!0});var xk=Ck.default=void 0,Zce=Xce(nt()),Jce=Ze(),eue=(0,Zce.default)((0,Jce.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");xk=Ck.default=eue;var Sk={},tue=tt;Object.defineProperty(Sk,"__esModule",{value:!0});var y4=Sk.default=void 0,nue=tue(nt()),ZR=Ze(),rue=(0,nue.default)([(0,ZR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,ZR.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");y4=Sk.default=rue;var Pk={},oue=tt;Object.defineProperty(Pk,"__esModule",{value:!0});var b4=Pk.default=void 0,sue=oue(nt()),iue=Ze(),lue=(0,sue.default)((0,iue.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");b4=Pk.default=lue;var kk={},aue=tt;Object.defineProperty(kk,"__esModule",{value:!0});var Uv=kk.default=void 0,cue=aue(nt()),uue=Ze(),due=(0,cue.default)((0,uue.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");Uv=kk.default=due;var Ek={},fue=tt;Object.defineProperty(Ek,"__esModule",{value:!0});var Ik=Ek.default=void 0,pue=fue(nt()),hue=Ze(),mue=(0,pue.default)((0,hue.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=Ek.default=mue;var Mk={},gue=tt;Object.defineProperty(Mk,"__esModule",{value:!0});var w4=Mk.default=void 0,vue=gue(nt()),yue=Ze(),bue=(0,vue.default)((0,yue.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");w4=Mk.default=bue;var _k={},wue=tt;Object.defineProperty(_k,"__esModule",{value:!0});var C4=_k.default=void 0,Cue=wue(nt()),xue=Ze(),Sue=(0,Cue.default)((0,xue.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");C4=_k.default=Sue;var Wv={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
|
+
*/Wv.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,m=2,v=4,y=1,g=2,C=1,w=2,b=4,S=8,E=16,_=32,k=64,I=128,R=256,A=512,$=30,L="...",B=800,z=16,M=1,T=2,F=3,j=1/0,D=9007199254740991,N=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,te=K>>>1,Q=[["ary",I],["bind",C],["bindKey",w],["curry",S],["curryRight",E],["flip",A],["partial",_],["partialRight",k],["rearg",R]],X="[object Arguments]",J="[object Array]",se="[object AsyncFunction]",Z="[object Boolean]",he="[object Date]",ne="[object DOMException]",re="[object Error]",me="[object Function]",ce="[object GeneratorFunction]",Se="[object Map]",Ee="[object Number]",ae="[object Null]",Ie="[object Object]",ye="[object Promise]",Me="[object Proxy]",pe="[object RegExp]",fe="[object Set]",de="[object String]",be="[object Symbol]",_e="[object Undefined]",Ne="[object WeakMap]",Ge="[object WeakSet]",Ve="[object ArrayBuffer]",Ue="[object DataView]",Le="[object Float32Array]",ht="[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,Tt=/\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,vr=/<%([\s\S]+?)%>/g,ir=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,as=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,yr=RegExp(an.source),ho=/^\s+/,cs=/\s/,lr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Do=/\{\n\/\* \[wrapped with (.+)\] \*/,mi=/,? & /,Mr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nr=/[()=,{}\[\]\/\s]/,js=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/\w*$/,Qe=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,Wt=/^\[object .+?Constructor\]$/,$n=/^0o[0-7]+$/i,Fn=/^(?:0|[1-9]\d*)$/,St=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xn=/($^)/,xV=/['\n\r\u2028\u2029\\]/g,tm="\\ud800-\\udfff",SV="\\u0300-\\u036f",PV="\\ufe20-\\ufe2f",kV="\\u20d0-\\u20ff",f2=SV+PV+kV,p2="\\u2700-\\u27bf",h2="a-z\\xdf-\\xf6\\xf8-\\xff",EV="\\xac\\xb1\\xd7\\xf7",IV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",MV="\\u2000-\\u206f",_V=" \\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",m2="A-Z\\xc0-\\xd6\\xd8-\\xde",g2="\\ufe0e\\ufe0f",v2=EV+IV+MV+_V,B0="['’]",TV="["+tm+"]",y2="["+v2+"]",nm="["+f2+"]",b2="\\d+",$V="["+p2+"]",w2="["+h2+"]",C2="[^"+tm+v2+b2+p2+h2+m2+"]",z0="\\ud83c[\\udffb-\\udfff]",RV="(?:"+nm+"|"+z0+")",x2="[^"+tm+"]",V0="(?:\\ud83c[\\udde6-\\uddff]){2}",j0="[\\ud800-\\udbff][\\udc00-\\udfff]",Kc="["+m2+"]",S2="\\u200d",P2="(?:"+w2+"|"+C2+")",OV="(?:"+Kc+"|"+C2+")",k2="(?:"+B0+"(?:d|ll|m|re|s|t|ve))?",E2="(?:"+B0+"(?:D|LL|M|RE|S|T|VE))?",I2=RV+"?",M2="["+g2+"]?",DV="(?:"+S2+"(?:"+[x2,V0,j0].join("|")+")"+M2+I2+")*",AV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_2=M2+I2+DV,FV="(?:"+[$V,V0,j0].join("|")+")"+_2,NV="(?:"+[x2+nm+"?",nm,V0,j0,TV].join("|")+")",BV=RegExp(B0,"g"),zV=RegExp(nm,"g"),H0=RegExp(z0+"(?="+z0+")|"+NV+_2,"g"),VV=RegExp([Kc+"?"+w2+"+"+k2+"(?="+[y2,Kc,"$"].join("|")+")",OV+"+"+E2+"(?="+[y2,Kc+P2,"$"].join("|")+")",Kc+"?"+P2+"+"+k2,Kc+"+"+E2,LV,AV,b2,FV].join("|"),"g"),jV=RegExp("["+S2+tm+f2+g2+"]"),HV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,UV=["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"],WV=-1,kn={};kn[Le]=kn[ht]=kn[Zt]=kn[Pt]=kn[wt]=kn[Xe]=kn[Oe]=kn[qe]=kn[mt]=!0,kn[X]=kn[J]=kn[Ve]=kn[Z]=kn[Ue]=kn[he]=kn[re]=kn[me]=kn[Se]=kn[Ee]=kn[Ie]=kn[pe]=kn[fe]=kn[de]=kn[Ne]=!1;var wn={};wn[X]=wn[J]=wn[Ve]=wn[Ue]=wn[Z]=wn[he]=wn[Le]=wn[ht]=wn[Zt]=wn[Pt]=wn[wt]=wn[Se]=wn[Ee]=wn[Ie]=wn[pe]=wn[fe]=wn[de]=wn[be]=wn[Xe]=wn[Oe]=wn[qe]=wn[mt]=!0,wn[re]=wn[me]=wn[Ne]=!1;var GV={À:"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"},KV={"&":"&","<":"<",">":">",'"':""","'":"'"},qV={"&":"&","<":"<",">":">",""":'"',"'":"'"},YV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QV=parseFloat,XV=parseInt,T2=typeof ln=="object"&&ln&&ln.Object===Object&&ln,ZV=typeof self=="object"&&self&&self.Object===Object&&self,_r=T2||ZV||Function("return this")(),U0=t&&!t.nodeType&&t,ja=U0&&!0&&e&&!e.nodeType&&e,$2=ja&&ja.exports===U0,W0=$2&&T2.process,us=function(){try{var ge=ja&&ja.require&&ja.require("util").types;return ge||W0&&W0.binding&&W0.binding("util")}catch(Re){}}(),R2=us&&us.isArrayBuffer,O2=us&&us.isDate,D2=us&&us.isMap,A2=us&&us.isRegExp,L2=us&&us.isSet,F2=us&&us.isTypedArray;function Ao(ge,Re,ke){switch(ke.length){case 0:return ge.call(Re);case 1:return ge.call(Re,ke[0]);case 2:return ge.call(Re,ke[0],ke[1]);case 3:return ge.call(Re,ke[0],ke[1],ke[2])}return ge.apply(Re,ke)}function JV(ge,Re,ke,it){for(var It=-1,en=ge==null?0:ge.length;++It<en;){var ur=ge[It];Re(it,ur,ke(ur),ge)}return it}function ds(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it&&Re(ge[ke],ke,ge)!==!1;);return ge}function ej(ge,Re){for(var ke=ge==null?0:ge.length;ke--&&Re(ge[ke],ke,ge)!==!1;);return ge}function N2(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it;)if(!Re(ge[ke],ke,ge))return!1;return!0}function $l(ge,Re){for(var ke=-1,it=ge==null?0:ge.length,It=0,en=[];++ke<it;){var ur=ge[ke];Re(ur,ke,ge)&&(en[It++]=ur)}return en}function rm(ge,Re){var ke=ge==null?0:ge.length;return!!ke&&qc(ge,Re,0)>-1}function G0(ge,Re,ke){for(var it=-1,It=ge==null?0:ge.length;++it<It;)if(ke(Re,ge[it]))return!0;return!1}function Rn(ge,Re){for(var ke=-1,it=ge==null?0:ge.length,It=Array(it);++ke<it;)It[ke]=Re(ge[ke],ke,ge);return It}function Rl(ge,Re){for(var ke=-1,it=Re.length,It=ge.length;++ke<it;)ge[It+ke]=Re[ke];return ge}function K0(ge,Re,ke,it){var It=-1,en=ge==null?0:ge.length;for(it&&en&&(ke=ge[++It]);++It<en;)ke=Re(ke,ge[It],It,ge);return ke}function tj(ge,Re,ke,it){var It=ge==null?0:ge.length;for(it&&It&&(ke=ge[--It]);It--;)ke=Re(ke,ge[It],It,ge);return ke}function q0(ge,Re){for(var ke=-1,it=ge==null?0:ge.length;++ke<it;)if(Re(ge[ke],ke,ge))return!0;return!1}var nj=Y0("length");function rj(ge){return ge.split("")}function oj(ge){return ge.match(Mr)||[]}function B2(ge,Re,ke){var it;return ke(ge,function(It,en,ur){if(Re(It,en,ur))return it=en,!1}),it}function om(ge,Re,ke,it){for(var It=ge.length,en=ke+(it?1:-1);it?en--:++en<It;)if(Re(ge[en],en,ge))return en;return-1}function qc(ge,Re,ke){return Re===Re?gj(ge,Re,ke):om(ge,z2,ke)}function sj(ge,Re,ke,it){for(var It=ke-1,en=ge.length;++It<en;)if(it(ge[It],Re))return It;return-1}function z2(ge){return ge!==ge}function V2(ge,Re){var ke=ge==null?0:ge.length;return ke?X0(ge,Re)/ke:H}function Y0(ge){return function(Re){return Re==null?n:Re[ge]}}function Q0(ge){return function(Re){return ge==null?n:ge[Re]}}function j2(ge,Re,ke,it,It){return It(ge,function(en,ur,vn){ke=it?(it=!1,en):Re(ke,en,ur,vn)}),ke}function ij(ge,Re){var ke=ge.length;for(ge.sort(Re);ke--;)ge[ke]=ge[ke].value;return ge}function X0(ge,Re){for(var ke,it=-1,It=ge.length;++it<It;){var en=Re(ge[it]);en!==n&&(ke=ke===n?en:ke+en)}return ke}function Z0(ge,Re){for(var ke=-1,it=Array(ge);++ke<ge;)it[ke]=Re(ke);return it}function lj(ge,Re){return Rn(Re,function(ke){return[ke,ge[ke]]})}function H2(ge){return ge&&ge.slice(0,K2(ge)+1).replace(ho,"")}function Lo(ge){return function(Re){return ge(Re)}}function J0(ge,Re){return Rn(Re,function(ke){return ge[ke]})}function hf(ge,Re){return ge.has(Re)}function U2(ge,Re){for(var ke=-1,it=ge.length;++ke<it&&qc(Re,ge[ke],0)>-1;);return ke}function W2(ge,Re){for(var ke=ge.length;ke--&&qc(Re,ge[ke],0)>-1;);return ke}function aj(ge,Re){for(var ke=ge.length,it=0;ke--;)ge[ke]===Re&&++it;return it}var cj=Q0(GV),uj=Q0(KV);function dj(ge){return"\\"+YV[ge]}function fj(ge,Re){return ge==null?n:ge[Re]}function Yc(ge){return jV.test(ge)}function pj(ge){return HV.test(ge)}function hj(ge){for(var Re,ke=[];!(Re=ge.next()).done;)ke.push(Re.value);return ke}function e1(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it,It){ke[++Re]=[It,it]}),ke}function G2(ge,Re){return function(ke){return ge(Re(ke))}}function Ol(ge,Re){for(var ke=-1,it=ge.length,It=0,en=[];++ke<it;){var ur=ge[ke];(ur===Re||ur===f)&&(ge[ke]=f,en[It++]=ke)}return en}function sm(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it){ke[++Re]=it}),ke}function mj(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(it){ke[++Re]=[it,it]}),ke}function gj(ge,Re,ke){for(var it=ke-1,It=ge.length;++it<It;)if(ge[it]===Re)return it;return-1}function vj(ge,Re,ke){for(var it=ke+1;it--;)if(ge[it]===Re)return it;return it}function Qc(ge){return Yc(ge)?bj(ge):nj(ge)}function Hs(ge){return Yc(ge)?wj(ge):rj(ge)}function K2(ge){for(var Re=ge.length;Re--&&cs.test(ge.charAt(Re)););return Re}var yj=Q0(qV);function bj(ge){for(var Re=H0.lastIndex=0;H0.test(ge);)++Re;return Re}function wj(ge){return ge.match(H0)||[]}function Cj(ge){return ge.match(VV)||[]}var xj=function ge(Re){Re=Re==null?_r:Xc.defaults(_r.Object(),Re,Xc.pick(_r,UV));var ke=Re.Array,it=Re.Date,It=Re.Error,en=Re.Function,ur=Re.Math,vn=Re.Object,t1=Re.RegExp,Sj=Re.String,fs=Re.TypeError,im=ke.prototype,Pj=en.prototype,Zc=vn.prototype,lm=Re["__core-js_shared__"],am=Pj.toString,cn=Zc.hasOwnProperty,kj=0,q2=function(){var d=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),cm=Zc.toString,Ej=am.call(vn),Ij=_r._,Mj=t1("^"+am.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),um=$2?Re.Buffer:n,Dl=Re.Symbol,dm=Re.Uint8Array,Y2=um?um.allocUnsafe:n,fm=G2(vn.getPrototypeOf,vn),Q2=vn.create,X2=Zc.propertyIsEnumerable,pm=im.splice,Z2=Dl?Dl.isConcatSpreadable:n,mf=Dl?Dl.iterator:n,Ha=Dl?Dl.toStringTag:n,hm=function(){try{var d=qa(vn,"defineProperty");return d({},"",{}),d}catch(h){}}(),_j=Re.clearTimeout!==_r.clearTimeout&&Re.clearTimeout,Tj=it&&it.now!==_r.Date.now&&it.now,$j=Re.setTimeout!==_r.setTimeout&&Re.setTimeout,mm=ur.ceil,gm=ur.floor,n1=vn.getOwnPropertySymbols,Rj=um?um.isBuffer:n,J2=Re.isFinite,Oj=im.join,Dj=G2(vn.keys,vn),dr=ur.max,Br=ur.min,Aj=it.now,Lj=Re.parseInt,eM=ur.random,Fj=im.reverse,r1=qa(Re,"DataView"),gf=qa(Re,"Map"),o1=qa(Re,"Promise"),Jc=qa(Re,"Set"),vf=qa(Re,"WeakMap"),yf=qa(vn,"create"),vm=vf&&new vf,eu={},Nj=Ya(r1),Bj=Ya(gf),zj=Ya(o1),Vj=Ya(Jc),jj=Ya(vf),ym=Dl?Dl.prototype:n,bf=ym?ym.valueOf:n,tM=ym?ym.toString:n;function G(d){if(Un(d)&&!Mt(d)&&!(d instanceof Ht)){if(d instanceof ps)return d;if(cn.call(d,"__wrapped__"))return n_(d)}return new ps(d)}var tu=function(){function d(){}return function(h){if(!Nn(h))return{};if(Q2)return Q2(h);d.prototype=h;var P=new d;return d.prototype=n,P}}();function bm(){}function ps(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}G.templateSettings={escape:Rt,evaluate:vr,interpolate:ir,variable:"",imports:{_:G}},G.prototype=bm.prototype,G.prototype.constructor=G,ps.prototype=tu(bm.prototype),ps.prototype.constructor=ps;function Ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Hj(){var d=new Ht(this.__wrapped__);return d.__actions__=mo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=mo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=mo(this.__views__),d}function Uj(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function Wj(){var d=this.__wrapped__.value(),h=this.__dir__,P=Mt(d),V=h<0,U=P?d.length:0,q=r6(0,U,this.__views__),ee=q.start,ie=q.end,ve=ie-ee,De=V?ie:ee-1,Fe=this.__iteratees__,Be=Fe.length,Je=0,pt=Br(ve,this.__takeCount__);if(!P||!V&&U==ve&&pt==ve)return kM(d,this.__actions__);var Ct=[];e:for(;ve--&&Je<pt;){De+=h;for(var Dt=-1,xt=d[De];++Dt<Be;){var Bt=Fe[Dt],Gt=Bt.iteratee,Bo=Bt.type,ro=Gt(xt);if(Bo==T)xt=ro;else if(!ro){if(Bo==M)continue e;break e}}Ct[Je++]=xt}return Ct}Ht.prototype=tu(bm.prototype),Ht.prototype.constructor=Ht;function Ua(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var V=d[h];this.set(V[0],V[1])}}function Gj(){this.__data__=yf?yf(null):{},this.size=0}function Kj(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function qj(d){var h=this.__data__;if(yf){var P=h[d];return P===a?n:P}return cn.call(h,d)?h[d]:n}function Yj(d){var h=this.__data__;return yf?h[d]!==n:cn.call(h,d)}function Qj(d,h){var P=this.__data__;return this.size+=this.has(d)?0:1,P[d]=yf&&h===n?a:h,this}Ua.prototype.clear=Gj,Ua.prototype.delete=Kj,Ua.prototype.get=qj,Ua.prototype.has=Yj,Ua.prototype.set=Qj;function Ki(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var V=d[h];this.set(V[0],V[1])}}function Xj(){this.__data__=[],this.size=0}function Zj(d){var h=this.__data__,P=wm(h,d);if(P<0)return!1;var V=h.length-1;return P==V?h.pop():pm.call(h,P,1),--this.size,!0}function Jj(d){var h=this.__data__,P=wm(h,d);return P<0?n:h[P][1]}function eH(d){return wm(this.__data__,d)>-1}function tH(d,h){var P=this.__data__,V=wm(P,d);return V<0?(++this.size,P.push([d,h])):P[V][1]=h,this}Ki.prototype.clear=Xj,Ki.prototype.delete=Zj,Ki.prototype.get=Jj,Ki.prototype.has=eH,Ki.prototype.set=tH;function qi(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var V=d[h];this.set(V[0],V[1])}}function nH(){this.size=0,this.__data__={hash:new Ua,map:new(gf||Ki),string:new Ua}}function rH(d){var h=Rm(this,d).delete(d);return this.size-=h?1:0,h}function oH(d){return Rm(this,d).get(d)}function sH(d){return Rm(this,d).has(d)}function iH(d,h){var P=Rm(this,d),V=P.size;return P.set(d,h),this.size+=P.size==V?0:1,this}qi.prototype.clear=nH,qi.prototype.delete=rH,qi.prototype.get=oH,qi.prototype.has=sH,qi.prototype.set=iH;function Wa(d){var h=-1,P=d==null?0:d.length;for(this.__data__=new qi;++h<P;)this.add(d[h])}function lH(d){return this.__data__.set(d,a),this}function aH(d){return this.__data__.has(d)}Wa.prototype.add=Wa.prototype.push=lH,Wa.prototype.has=aH;function Us(d){var h=this.__data__=new Ki(d);this.size=h.size}function cH(){this.__data__=new Ki,this.size=0}function uH(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P}function dH(d){return this.__data__.get(d)}function fH(d){return this.__data__.has(d)}function pH(d,h){var P=this.__data__;if(P instanceof Ki){var V=P.__data__;if(!gf||V.length<o-1)return V.push([d,h]),this.size=++P.size,this;P=this.__data__=new qi(V)}return P.set(d,h),this.size=P.size,this}Us.prototype.clear=cH,Us.prototype.delete=uH,Us.prototype.get=dH,Us.prototype.has=fH,Us.prototype.set=pH;function nM(d,h){var P=Mt(d),V=!P&&Qa(d),U=!P&&!V&&Bl(d),q=!P&&!V&&!U&&su(d),ee=P||V||U||q,ie=ee?Z0(d.length,Sj):[],ve=ie.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")||Zi(De,ve)))&&ie.push(De);return ie}function rM(d){var h=d.length;return h?d[m1(0,h-1)]:n}function hH(d,h){return Om(mo(d),Ga(h,0,d.length))}function mH(d){return Om(mo(d))}function s1(d,h,P){(P!==n&&!Ws(d[h],P)||P===n&&!(h in d))&&Yi(d,h,P)}function wf(d,h,P){var V=d[h];(!(cn.call(d,h)&&Ws(V,P))||P===n&&!(h in d))&&Yi(d,h,P)}function wm(d,h){for(var P=d.length;P--;)if(Ws(d[P][0],h))return P;return-1}function gH(d,h,P,V){return Al(d,function(U,q,ee){h(V,U,P(U),ee)}),V}function oM(d,h){return d&&vi(h,br(h),d)}function vH(d,h){return d&&vi(h,vo(h),d)}function Yi(d,h,P){h=="__proto__"&&hm?hm(d,h,{configurable:!0,enumerable:!0,value:P,writable:!0}):d[h]=P}function i1(d,h){for(var P=-1,V=h.length,U=ke(V),q=d==null;++P<V;)U[P]=q?n:z1(d,h[P]);return U}function Ga(d,h,P){return d===d&&(P!==n&&(d=d<=P?d:P),h!==n&&(d=d>=h?d:h)),d}function hs(d,h,P,V,U,q){var ee,ie=h&p,ve=h&m,De=h&v;if(P&&(ee=U?P(d,V,U,q):P(d)),ee!==n)return ee;if(!Nn(d))return d;var Fe=Mt(d);if(Fe){if(ee=s6(d),!ie)return mo(d,ee)}else{var Be=zr(d),Je=Be==me||Be==ce;if(Bl(d))return MM(d,ie);if(Be==Ie||Be==X||Je&&!U){if(ee=ve||Je?{}:KM(d),!ie)return ve?qH(d,vH(ee,d)):KH(d,oM(ee,d))}else{if(!wn[Be])return U?d:{};ee=i6(d,Be,ie)}}q||(q=new Us);var pt=q.get(d);if(pt)return pt;q.set(d,ee),x_(d)?d.forEach(function(xt){ee.add(hs(xt,h,P,xt,d,q))}):w_(d)&&d.forEach(function(xt,Bt){ee.set(Bt,hs(xt,h,P,Bt,d,q))});var Ct=De?ve?E1:k1:ve?vo:br,Dt=Fe?n:Ct(d);return ds(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),wf(ee,Bt,hs(xt,h,P,Bt,d,q))}),ee}function yH(d){var h=br(d);return function(P){return sM(P,d,h)}}function sM(d,h,P){var V=P.length;if(d==null)return!V;for(d=vn(d);V--;){var U=P[V],q=h[U],ee=d[U];if(ee===n&&!(U in d)||!q(ee))return!1}return!0}function iM(d,h,P){if(typeof d!="function")throw new fs(i);return If(function(){d.apply(n,P)},h)}function Cf(d,h,P,V){var U=-1,q=rm,ee=!0,ie=d.length,ve=[],De=h.length;if(!ie)return ve;P&&(h=Rn(h,Lo(P))),V?(q=G0,ee=!1):h.length>=o&&(q=hf,ee=!1,h=new Wa(h));e:for(;++U<ie;){var Fe=d[U],Be=P==null?Fe:P(Fe);if(Fe=V||Fe!==0?Fe:0,ee&&Be===Be){for(var Je=De;Je--;)if(h[Je]===Be)continue e;ve.push(Fe)}else q(h,Be,V)||ve.push(Fe)}return ve}var Al=OM(gi),lM=OM(a1,!0);function bH(d,h){var P=!0;return Al(d,function(V,U,q){return P=!!h(V,U,q),P}),P}function Cm(d,h,P){for(var V=-1,U=d.length;++V<U;){var q=d[V],ee=h(q);if(ee!=null&&(ie===n?ee===ee&&!No(ee):P(ee,ie)))var ie=ee,ve=q}return ve}function wH(d,h,P,V){var U=d.length;for(P=Ot(P),P<0&&(P=-P>U?0:U+P),V=V===n||V>U?U:Ot(V),V<0&&(V+=U),V=P>V?0:P_(V);P<V;)d[P++]=h;return d}function aM(d,h){var P=[];return Al(d,function(V,U,q){h(V,U,q)&&P.push(V)}),P}function Tr(d,h,P,V,U){var q=-1,ee=d.length;for(P||(P=a6),U||(U=[]);++q<ee;){var ie=d[q];h>0&&P(ie)?h>1?Tr(ie,h-1,P,V,U):Rl(U,ie):V||(U[U.length]=ie)}return U}var l1=DM(),cM=DM(!0);function gi(d,h){return d&&l1(d,h,br)}function a1(d,h){return d&&cM(d,h,br)}function xm(d,h){return $l(h,function(P){return Ji(d[P])})}function Ka(d,h){h=Fl(h,d);for(var P=0,V=h.length;d!=null&&P<V;)d=d[yi(h[P++])];return P&&P==V?d:n}function uM(d,h,P){var V=h(d);return Mt(d)?V:Rl(V,P(d))}function to(d){return d==null?d===n?_e:ae:Ha&&Ha in vn(d)?n6(d):m6(d)}function c1(d,h){return d>h}function CH(d,h){return d!=null&&cn.call(d,h)}function xH(d,h){return d!=null&&h in vn(d)}function SH(d,h,P){return d>=Br(h,P)&&d<dr(h,P)}function u1(d,h,P){for(var V=P?G0:rm,U=d[0].length,q=d.length,ee=q,ie=ke(q),ve=1/0,De=[];ee--;){var Fe=d[ee];ee&&h&&(Fe=Rn(Fe,Lo(h))),ve=Br(Fe.length,ve),ie[ee]=!P&&(h||U>=120&&Fe.length>=120)?new Wa(ee&&Fe):n}Fe=d[0];var Be=-1,Je=ie[0];e:for(;++Be<U&&De.length<ve;){var pt=Fe[Be],Ct=h?h(pt):pt;if(pt=P||pt!==0?pt:0,!(Je?hf(Je,Ct):V(De,Ct,P))){for(ee=q;--ee;){var Dt=ie[ee];if(!(Dt?hf(Dt,Ct):V(d[ee],Ct,P)))continue e}Je&&Je.push(Ct),De.push(pt)}}return De}function PH(d,h,P,V){return gi(d,function(U,q,ee){h(V,P(U),q,ee)}),V}function xf(d,h,P){h=Fl(h,d),d=XM(d,h);var V=d==null?d:d[yi(gs(h))];return V==null?n:Ao(V,d,P)}function dM(d){return Un(d)&&to(d)==X}function kH(d){return Un(d)&&to(d)==Ve}function EH(d){return Un(d)&&to(d)==he}function Sf(d,h,P,V,U){return d===h?!0:d==null||h==null||!Un(d)&&!Un(h)?d!==d&&h!==h:IH(d,h,P,V,Sf,U)}function IH(d,h,P,V,U,q){var ee=Mt(d),ie=Mt(h),ve=ee?J:zr(d),De=ie?J:zr(h);ve=ve==X?Ie:ve,De=De==X?Ie:De;var Fe=ve==Ie,Be=De==Ie,Je=ve==De;if(Je&&Bl(d)){if(!Bl(h))return!1;ee=!0,Fe=!1}if(Je&&!Fe)return q||(q=new Us),ee||su(d)?UM(d,h,P,V,U,q):e6(d,h,ve,P,V,U,q);if(!(P&y)){var pt=Fe&&cn.call(d,"__wrapped__"),Ct=Be&&cn.call(h,"__wrapped__");if(pt||Ct){var Dt=pt?d.value():d,xt=Ct?h.value():h;return q||(q=new Us),U(Dt,xt,P,V,q)}}return Je?(q||(q=new Us),t6(d,h,P,V,U,q)):!1}function MH(d){return Un(d)&&zr(d)==Se}function d1(d,h,P,V){var U=P.length,q=U,ee=!V;if(d==null)return!q;for(d=vn(d);U--;){var ie=P[U];if(ee&&ie[2]?ie[1]!==d[ie[0]]:!(ie[0]in d))return!1}for(;++U<q;){ie=P[U];var ve=ie[0],De=d[ve],Fe=ie[1];if(ee&&ie[2]){if(De===n&&!(ve in d))return!1}else{var Be=new Us;if(V)var Je=V(De,Fe,ve,d,h,Be);if(!(Je===n?Sf(Fe,De,y|g,V,Be):Je))return!1}}return!0}function fM(d){if(!Nn(d)||u6(d))return!1;var h=Ji(d)?Mj:Wt;return h.test(Ya(d))}function _H(d){return Un(d)&&to(d)==pe}function TH(d){return Un(d)&&zr(d)==fe}function $H(d){return Un(d)&&Bm(d.length)&&!!kn[to(d)]}function pM(d){return typeof d=="function"?d:d==null?yo:typeof d=="object"?Mt(d)?gM(d[0],d[1]):mM(d):A_(d)}function f1(d){if(!Ef(d))return Dj(d);var h=[];for(var P in vn(d))cn.call(d,P)&&P!="constructor"&&h.push(P);return h}function RH(d){if(!Nn(d))return h6(d);var h=Ef(d),P=[];for(var V in d)V=="constructor"&&(h||!cn.call(d,V))||P.push(V);return P}function p1(d,h){return d<h}function hM(d,h){var P=-1,V=go(d)?ke(d.length):[];return Al(d,function(U,q,ee){V[++P]=h(U,q,ee)}),V}function mM(d){var h=M1(d);return h.length==1&&h[0][2]?YM(h[0][0],h[0][1]):function(P){return P===d||d1(P,d,h)}}function gM(d,h){return T1(d)&&qM(h)?YM(yi(d),h):function(P){var V=z1(P,d);return V===n&&V===h?V1(P,d):Sf(h,V,y|g)}}function Sm(d,h,P,V,U){d!==h&&l1(h,function(q,ee){if(U||(U=new Us),Nn(q))OH(d,h,ee,P,Sm,V,U);else{var ie=V?V(R1(d,ee),q,ee+"",d,h,U):n;ie===n&&(ie=q),s1(d,ee,ie)}},vo)}function OH(d,h,P,V,U,q,ee){var ie=R1(d,P),ve=R1(h,P),De=ee.get(ve);if(De){s1(d,P,De);return}var Fe=q?q(ie,ve,P+"",d,h,ee):n,Be=Fe===n;if(Be){var Je=Mt(ve),pt=!Je&&Bl(ve),Ct=!Je&&!pt&&su(ve);Fe=ve,Je||pt||Ct?Mt(ie)?Fe=ie:Zn(ie)?Fe=mo(ie):pt?(Be=!1,Fe=MM(ve,!0)):Ct?(Be=!1,Fe=_M(ve,!0)):Fe=[]:Mf(ve)||Qa(ve)?(Fe=ie,Qa(ie)?Fe=k_(ie):(!Nn(ie)||Ji(ie))&&(Fe=KM(ve))):Be=!1}Be&&(ee.set(ve,Fe),U(Fe,ve,V,q,ee),ee.delete(ve)),s1(d,P,Fe)}function vM(d,h){var P=d.length;if(P)return h+=h<0?P:0,Zi(h,P)?d[h]:n}function yM(d,h,P){h.length?h=Rn(h,function(q){return Mt(q)?function(ee){return Ka(ee,q.length===1?q[0]:q)}:q}):h=[yo];var V=-1;h=Rn(h,Lo(yt()));var U=hM(d,function(q,ee,ie){var ve=Rn(h,function(De){return De(q)});return{criteria:ve,index:++V,value:q}});return ij(U,function(q,ee){return GH(q,ee,P)})}function DH(d,h){return bM(d,h,function(P,V){return V1(d,V)})}function bM(d,h,P){for(var V=-1,U=h.length,q={};++V<U;){var ee=h[V],ie=Ka(d,ee);P(ie,ee)&&Pf(q,Fl(ee,d),ie)}return q}function AH(d){return function(h){return Ka(h,d)}}function h1(d,h,P,V){var U=V?sj:qc,q=-1,ee=h.length,ie=d;for(d===h&&(h=mo(h)),P&&(ie=Rn(d,Lo(P)));++q<ee;)for(var ve=0,De=h[q],Fe=P?P(De):De;(ve=U(ie,Fe,ve,V))>-1;)ie!==d&&pm.call(ie,ve,1),pm.call(d,ve,1);return d}function wM(d,h){for(var P=d?h.length:0,V=P-1;P--;){var U=h[P];if(P==V||U!==q){var q=U;Zi(U)?pm.call(d,U,1):y1(d,U)}}return d}function m1(d,h){return d+gm(eM()*(h-d+1))}function LH(d,h,P,V){for(var U=-1,q=dr(mm((h-d)/(P||1)),0),ee=ke(q);q--;)ee[V?q:++U]=d,d+=P;return ee}function g1(d,h){var P="";if(!d||h<1||h>D)return P;do h%2&&(P+=d),h=gm(h/2),h&&(d+=d);while(h);return P}function Lt(d,h){return O1(QM(d,h,yo),d+"")}function FH(d){return rM(iu(d))}function NH(d,h){var P=iu(d);return Om(P,Ga(h,0,P.length))}function Pf(d,h,P,V){if(!Nn(d))return d;h=Fl(h,d);for(var U=-1,q=h.length,ee=q-1,ie=d;ie!=null&&++U<q;){var ve=yi(h[U]),De=P;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return d;if(U!=ee){var Fe=ie[ve];De=V?V(Fe,ve,ie):n,De===n&&(De=Nn(Fe)?Fe:Zi(h[U+1])?[]:{})}wf(ie,ve,De),ie=ie[ve]}return d}var CM=vm?function(d,h){return vm.set(d,h),d}:yo,BH=hm?function(d,h){return hm(d,"toString",{configurable:!0,enumerable:!1,value:H1(h),writable:!0})}:yo;function zH(d){return Om(iu(d))}function ms(d,h,P){var V=-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=ke(U);++V<U;)q[V]=d[V+h];return q}function VH(d,h){var P;return Al(d,function(V,U,q){return P=h(V,U,q),!P}),!!P}function Pm(d,h,P){var V=0,U=d==null?V:d.length;if(typeof h=="number"&&h===h&&U<=te){for(;V<U;){var q=V+U>>>1,ee=d[q];ee!==null&&!No(ee)&&(P?ee<=h:ee<h)?V=q+1:U=q}return U}return v1(d,h,yo,P)}function v1(d,h,P,V){var U=0,q=d==null?0:d.length;if(q===0)return 0;h=P(h);for(var ee=h!==h,ie=h===null,ve=No(h),De=h===n;U<q;){var Fe=gm((U+q)/2),Be=P(d[Fe]),Je=Be!==n,pt=Be===null,Ct=Be===Be,Dt=No(Be);if(ee)var xt=V||Ct;else De?xt=Ct&&(V||Je):ie?xt=Ct&&Je&&(V||!pt):ve?xt=Ct&&Je&&!pt&&(V||!Dt):pt||Dt?xt=!1:xt=V?Be<=h:Be<h;xt?U=Fe+1:q=Fe}return Br(q,Y)}function xM(d,h){for(var P=-1,V=d.length,U=0,q=[];++P<V;){var ee=d[P],ie=h?h(ee):ee;if(!P||!Ws(ie,ve)){var ve=ie;q[U++]=ee===0?0:ee}}return q}function SM(d){return typeof d=="number"?d:No(d)?H:+d}function Fo(d){if(typeof d=="string")return d;if(Mt(d))return Rn(d,Fo)+"";if(No(d))return tM?tM.call(d):"";var h=d+"";return h=="0"&&1/d==-j?"-0":h}function Ll(d,h,P){var V=-1,U=rm,q=d.length,ee=!0,ie=[],ve=ie;if(P)ee=!1,U=G0;else if(q>=o){var De=h?null:ZH(d);if(De)return sm(De);ee=!1,U=hf,ve=new Wa}else ve=h?[]:ie;e:for(;++V<q;){var Fe=d[V],Be=h?h(Fe):Fe;if(Fe=P||Fe!==0?Fe:0,ee&&Be===Be){for(var Je=ve.length;Je--;)if(ve[Je]===Be)continue e;h&&ve.push(Be),ie.push(Fe)}else U(ve,Be,P)||(ve!==ie&&ve.push(Be),ie.push(Fe))}return ie}function y1(d,h){return h=Fl(h,d),d=XM(d,h),d==null||delete d[yi(gs(h))]}function PM(d,h,P,V){return Pf(d,h,P(Ka(d,h)),V)}function km(d,h,P,V){for(var U=d.length,q=V?U:-1;(V?q--:++q<U)&&h(d[q],q,d););return P?ms(d,V?0:q,V?q+1:U):ms(d,V?q+1:0,V?U:q)}function kM(d,h){var P=d;return P instanceof Ht&&(P=P.value()),K0(h,function(V,U){return U.func.apply(U.thisArg,Rl([V],U.args))},P)}function b1(d,h,P){var V=d.length;if(V<2)return V?Ll(d[0]):[];for(var U=-1,q=ke(V);++U<V;)for(var ee=d[U],ie=-1;++ie<V;)ie!=U&&(q[U]=Cf(q[U]||ee,d[ie],h,P));return Ll(Tr(q,1),h,P)}function EM(d,h,P){for(var V=-1,U=d.length,q=h.length,ee={};++V<U;){var ie=V<q?h[V]:n;P(ee,d[V],ie)}return ee}function w1(d){return Zn(d)?d:[]}function C1(d){return typeof d=="function"?d:yo}function Fl(d,h){return Mt(d)?d:T1(d,h)?[d]:t_(sn(d))}var jH=Lt;function Nl(d,h,P){var V=d.length;return P=P===n?V:P,!h&&P>=V?d:ms(d,h,P)}var IM=_j||function(d){return _r.clearTimeout(d)};function MM(d,h){if(h)return d.slice();var P=d.length,V=Y2?Y2(P):new d.constructor(P);return d.copy(V),V}function x1(d){var h=new d.constructor(d.byteLength);return new dm(h).set(new dm(d)),h}function HH(d,h){var P=h?x1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.byteLength)}function UH(d){var h=new d.constructor(d.source,we.exec(d));return h.lastIndex=d.lastIndex,h}function WH(d){return bf?vn(bf.call(d)):{}}function _M(d,h){var P=h?x1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function TM(d,h){if(d!==h){var P=d!==n,V=d===null,U=d===d,q=No(d),ee=h!==n,ie=h===null,ve=h===h,De=No(h);if(!ie&&!De&&!q&&d>h||q&&ee&&ve&&!ie&&!De||V&&ee&&ve||!P&&ve||!U)return 1;if(!V&&!q&&!De&&d<h||De&&P&&U&&!V&&!q||ie&&P&&U||!ee&&U||!ve)return-1}return 0}function GH(d,h,P){for(var V=-1,U=d.criteria,q=h.criteria,ee=U.length,ie=P.length;++V<ee;){var ve=TM(U[V],q[V]);if(ve){if(V>=ie)return ve;var De=P[V];return ve*(De=="desc"?-1:1)}}return d.index-h.index}function $M(d,h,P,V){for(var U=-1,q=d.length,ee=P.length,ie=-1,ve=h.length,De=dr(q-ee,0),Fe=ke(ve+De),Be=!V;++ie<ve;)Fe[ie]=h[ie];for(;++U<ee;)(Be||U<q)&&(Fe[P[U]]=d[U]);for(;De--;)Fe[ie++]=d[U++];return Fe}function RM(d,h,P,V){for(var U=-1,q=d.length,ee=-1,ie=P.length,ve=-1,De=h.length,Fe=dr(q-ie,0),Be=ke(Fe+De),Je=!V;++U<Fe;)Be[U]=d[U];for(var pt=U;++ve<De;)Be[pt+ve]=h[ve];for(;++ee<ie;)(Je||U<q)&&(Be[pt+P[ee]]=d[U++]);return Be}function mo(d,h){var P=-1,V=d.length;for(h||(h=ke(V));++P<V;)h[P]=d[P];return h}function vi(d,h,P,V){var U=!P;P||(P={});for(var q=-1,ee=h.length;++q<ee;){var ie=h[q],ve=V?V(P[ie],d[ie],ie,P,d):n;ve===n&&(ve=d[ie]),U?Yi(P,ie,ve):wf(P,ie,ve)}return P}function KH(d,h){return vi(d,_1(d),h)}function qH(d,h){return vi(d,WM(d),h)}function Em(d,h){return function(P,V){var U=Mt(P)?JV:gH,q=h?h():{};return U(P,d,yt(V,2),q)}}function nu(d){return Lt(function(h,P){var V=-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&&no(P[0],P[1],ee)&&(q=U<3?n:q,U=1),h=vn(h);++V<U;){var ie=P[V];ie&&d(h,ie,V,q)}return h})}function OM(d,h){return function(P,V){if(P==null)return P;if(!go(P))return d(P,V);for(var U=P.length,q=h?U:-1,ee=vn(P);(h?q--:++q<U)&&V(ee[q],q,ee)!==!1;);return P}}function DM(d){return function(h,P,V){for(var U=-1,q=vn(h),ee=V(h),ie=ee.length;ie--;){var ve=ee[d?ie:++U];if(P(q[ve],ve,q)===!1)break}return h}}function YH(d,h,P){var V=h&C,U=kf(d);function q(){var ee=this&&this!==_r&&this instanceof q?U:d;return ee.apply(V?P:this,arguments)}return q}function AM(d){return function(h){h=sn(h);var P=Yc(h)?Hs(h):n,V=P?P[0]:h.charAt(0),U=P?Nl(P,1).join(""):h.slice(1);return V[d]()+U}}function ru(d){return function(h){return K0(O_(R_(h).replace(BV,"")),d,"")}}function kf(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=tu(d.prototype),V=d.apply(P,h);return Nn(V)?V:P}}function QH(d,h,P){var V=kf(d);function U(){for(var q=arguments.length,ee=ke(q),ie=q,ve=ou(U);ie--;)ee[ie]=arguments[ie];var De=q<3&&ee[0]!==ve&&ee[q-1]!==ve?[]:Ol(ee,ve);if(q-=De.length,q<P)return zM(d,h,Im,U.placeholder,n,ee,De,n,n,P-q);var Fe=this&&this!==_r&&this instanceof U?V:d;return Ao(Fe,this,ee)}return U}function LM(d){return function(h,P,V){var U=vn(h);if(!go(h)){var q=yt(P,3);h=br(h),P=function(ie){return q(U[ie],ie,U)}}var ee=d(h,P,V);return ee>-1?U[q?h[ee]:ee]:n}}function FM(d){return Xi(function(h){var P=h.length,V=P,U=ps.prototype.thru;for(d&&h.reverse();V--;){var q=h[V];if(typeof q!="function")throw new fs(i);if(U&&!ee&&$m(q)=="wrapper")var ee=new ps([],!0)}for(V=ee?V:P;++V<P;){q=h[V];var ie=$m(q),ve=ie=="wrapper"?I1(q):n;ve&&$1(ve[0])&&ve[1]==(I|S|_|R)&&!ve[4].length&&ve[9]==1?ee=ee[$m(ve[0])].apply(ee,ve[3]):ee=q.length==1&&$1(q)?ee[ie]():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 Im(d,h,P,V,U,q,ee,ie,ve,De){var Fe=h&I,Be=h&C,Je=h&w,pt=h&(S|E),Ct=h&A,Dt=Je?n:kf(d);function xt(){for(var Bt=arguments.length,Gt=ke(Bt),Bo=Bt;Bo--;)Gt[Bo]=arguments[Bo];if(pt)var ro=ou(xt),zo=aj(Gt,ro);if(V&&(Gt=$M(Gt,V,U,pt)),q&&(Gt=RM(Gt,q,ee,pt)),Bt-=zo,pt&&Bt<De){var Jn=Ol(Gt,ro);return zM(d,h,Im,xt.placeholder,P,Gt,Jn,ie,ve,De-Bt)}var Gs=Be?P:this,tl=Je?Gs[d]:d;return Bt=Gt.length,ie?Gt=g6(Gt,ie):Ct&&Bt>1&&Gt.reverse(),Fe&&ve<Bt&&(Gt.length=ve),this&&this!==_r&&this instanceof xt&&(tl=Dt||kf(tl)),tl.apply(Gs,Gt)}return xt}function NM(d,h){return function(P,V){return PH(P,d,h(V),{})}}function Mm(d,h){return function(P,V){var U;if(P===n&&V===n)return h;if(P!==n&&(U=P),V!==n){if(U===n)return V;typeof P=="string"||typeof V=="string"?(P=Fo(P),V=Fo(V)):(P=SM(P),V=SM(V)),U=d(P,V)}return U}}function S1(d){return Xi(function(h){return h=Rn(h,Lo(yt())),Lt(function(P){var V=this;return d(h,function(U){return Ao(U,V,P)})})})}function _m(d,h){h=h===n?" ":Fo(h);var P=h.length;if(P<2)return P?g1(h,d):h;var V=g1(h,mm(d/Qc(h)));return Yc(h)?Nl(Hs(V),0,d).join(""):V.slice(0,d)}function XH(d,h,P,V){var U=h&C,q=kf(d);function ee(){for(var ie=-1,ve=arguments.length,De=-1,Fe=V.length,Be=ke(Fe+ve),Je=this&&this!==_r&&this instanceof ee?q:d;++De<Fe;)Be[De]=V[De];for(;ve--;)Be[De++]=arguments[++ie];return Ao(Je,U?P:this,Be)}return ee}function BM(d){return function(h,P,V){return V&&typeof V!="number"&&no(h,P,V)&&(P=V=n),h=el(h),P===n?(P=h,h=0):P=el(P),V=V===n?h<P?1:-1:el(V),LH(h,P,V,d)}}function Tm(d){return function(h,P){return typeof h=="string"&&typeof P=="string"||(h=vs(h),P=vs(P)),d(h,P)}}function zM(d,h,P,V,U,q,ee,ie,ve,De){var Fe=h&S,Be=Fe?ee:n,Je=Fe?n:ee,pt=Fe?q:n,Ct=Fe?n:q;h|=Fe?_:k,h&=~(Fe?k:_),h&b||(h&=~(C|w));var Dt=[d,h,U,pt,Be,Ct,Je,ie,ve,De],xt=P.apply(n,Dt);return $1(d)&&ZM(xt,Dt),xt.placeholder=V,JM(xt,d,h)}function P1(d){var h=ur[d];return function(P,V){if(P=vs(P),V=V==null?0:Br(Ot(V),292),V&&J2(P)){var U=(sn(P)+"e").split("e"),q=h(U[0]+"e"+(+U[1]+V));return U=(sn(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-V))}return h(P)}}var ZH=Jc&&1/sm(new Jc([,-0]))[1]==j?function(d){return new Jc(d)}:G1;function VM(d){return function(h){var P=zr(h);return P==Se?e1(h):P==fe?mj(h):lj(h,d(h))}}function Qi(d,h,P,V,U,q,ee,ie){var ve=h&w;if(!ve&&typeof d!="function")throw new fs(i);var De=V?V.length:0;if(De||(h&=~(_|k),V=U=n),ee=ee===n?ee:dr(Ot(ee),0),ie=ie===n?ie:Ot(ie),De-=U?U.length:0,h&k){var Fe=V,Be=U;V=U=n}var Je=ve?n:I1(d),pt=[d,h,P,V,U,Fe,Be,q,ee,ie];if(Je&&p6(pt,Je),d=pt[0],h=pt[1],P=pt[2],V=pt[3],U=pt[4],ie=pt[9]=pt[9]===n?ve?0:d.length:dr(pt[9]-De,0),!ie&&h&(S|E)&&(h&=~(S|E)),!h||h==C)var Ct=YH(d,h,P);else h==S||h==E?Ct=QH(d,h,ie):(h==_||h==(C|_))&&!U.length?Ct=XH(d,h,P,V):Ct=Im.apply(n,pt);var Dt=Je?CM:ZM;return JM(Dt(Ct,pt),d,h)}function jM(d,h,P,V){return d===n||Ws(d,Zc[P])&&!cn.call(V,P)?h:d}function HM(d,h,P,V,U,q){return Nn(d)&&Nn(h)&&(q.set(h,d),Sm(d,h,n,HM,q),q.delete(h)),d}function JH(d){return Mf(d)?n:d}function UM(d,h,P,V,U,q){var ee=P&y,ie=d.length,ve=h.length;if(ie!=ve&&!(ee&&ve>ie))return!1;var De=q.get(d),Fe=q.get(h);if(De&&Fe)return De==h&&Fe==d;var Be=-1,Je=!0,pt=P&g?new Wa:n;for(q.set(d,h),q.set(h,d);++Be<ie;){var Ct=d[Be],Dt=h[Be];if(V)var xt=ee?V(Dt,Ct,Be,h,d,q):V(Ct,Dt,Be,d,h,q);if(xt!==n){if(xt)continue;Je=!1;break}if(pt){if(!q0(h,function(Bt,Gt){if(!hf(pt,Gt)&&(Ct===Bt||U(Ct,Bt,P,V,q)))return pt.push(Gt)})){Je=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,P,V,q))){Je=!1;break}}return q.delete(d),q.delete(h),Je}function e6(d,h,P,V,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 dm(d),new dm(h)));case Z:case he:case Ee:return Ws(+d,+h);case re:return d.name==h.name&&d.message==h.message;case pe:case de:return d==h+"";case Se:var ie=e1;case fe:var ve=V&y;if(ie||(ie=sm),d.size!=h.size&&!ve)return!1;var De=ee.get(d);if(De)return De==h;V|=g,ee.set(d,h);var Fe=UM(ie(d),ie(h),V,U,q,ee);return ee.delete(d),Fe;case be:if(bf)return bf.call(d)==bf.call(h)}return!1}function t6(d,h,P,V,U,q){var ee=P&y,ie=k1(d),ve=ie.length,De=k1(h),Fe=De.length;if(ve!=Fe&&!ee)return!1;for(var Be=ve;Be--;){var Je=ie[Be];if(!(ee?Je in h:cn.call(h,Je)))return!1}var pt=q.get(d),Ct=q.get(h);if(pt&&Ct)return pt==h&&Ct==d;var Dt=!0;q.set(d,h),q.set(h,d);for(var xt=ee;++Be<ve;){Je=ie[Be];var Bt=d[Je],Gt=h[Je];if(V)var Bo=ee?V(Gt,Bt,Je,h,d,q):V(Bt,Gt,Je,d,h,q);if(!(Bo===n?Bt===Gt||U(Bt,Gt,P,V,q):Bo)){Dt=!1;break}xt||(xt=Je=="constructor")}if(Dt&&!xt){var ro=d.constructor,zo=h.constructor;ro!=zo&&"constructor"in d&&"constructor"in h&&!(typeof ro=="function"&&ro instanceof ro&&typeof zo=="function"&&zo instanceof zo)&&(Dt=!1)}return q.delete(d),q.delete(h),Dt}function Xi(d){return O1(QM(d,n,s_),d+"")}function k1(d){return uM(d,br,_1)}function E1(d){return uM(d,vo,WM)}var I1=vm?function(d){return vm.get(d)}:G1;function $m(d){for(var h=d.name+"",P=eu[h],V=cn.call(eu,h)?P.length:0;V--;){var U=P[V],q=U.func;if(q==null||q==d)return U.name}return h}function ou(d){var h=cn.call(G,"placeholder")?G:d;return h.placeholder}function yt(){var d=G.iteratee||U1;return d=d===U1?pM:d,arguments.length?d(arguments[0],arguments[1]):d}function Rm(d,h){var P=d.__data__;return c6(h)?P[typeof h=="string"?"string":"hash"]:P.map}function M1(d){for(var h=br(d),P=h.length;P--;){var V=h[P],U=d[V];h[P]=[V,U,qM(U)]}return h}function qa(d,h){var P=fj(d,h);return fM(P)?P:n}function n6(d){var h=cn.call(d,Ha),P=d[Ha];try{d[Ha]=n;var V=!0}catch(q){}var U=cm.call(d);return V&&(h?d[Ha]=P:delete d[Ha]),U}var _1=n1?function(d){return d==null?[]:(d=vn(d),$l(n1(d),function(h){return X2.call(d,h)}))}:K1,WM=n1?function(d){for(var h=[];d;)Rl(h,_1(d)),d=fm(d);return h}:K1,zr=to;(r1&&zr(new r1(new ArrayBuffer(1)))!=Ue||gf&&zr(new gf)!=Se||o1&&zr(o1.resolve())!=ye||Jc&&zr(new Jc)!=fe||vf&&zr(new vf)!=Ne)&&(zr=function(d){var h=to(d),P=h==Ie?d.constructor:n,V=P?Ya(P):"";if(V)switch(V){case Nj:return Ue;case Bj:return Se;case zj:return ye;case Vj:return fe;case jj:return Ne}return h});function r6(d,h,P){for(var V=-1,U=P.length;++V<U;){var q=P[V],ee=q.size;switch(q.type){case"drop":d+=ee;break;case"dropRight":h-=ee;break;case"take":h=Br(h,d+ee);break;case"takeRight":d=dr(d,h-ee);break}}return{start:d,end:h}}function o6(d){var h=d.match(Do);return h?h[1].split(mi):[]}function GM(d,h,P){h=Fl(h,d);for(var V=-1,U=h.length,q=!1;++V<U;){var ee=yi(h[V]);if(!(q=d!=null&&P(d,ee)))break;d=d[ee]}return q||++V!=U?q:(U=d==null?0:d.length,!!U&&Bm(U)&&Zi(ee,U)&&(Mt(d)||Qa(d)))}function s6(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 KM(d){return typeof d.constructor=="function"&&!Ef(d)?tu(fm(d)):{}}function i6(d,h,P){var V=d.constructor;switch(h){case Ve:return x1(d);case Z:case he:return new V(+d);case Ue:return HH(d,P);case Le:case ht:case Zt:case Pt:case wt:case Xe:case Oe:case qe:case mt:return _M(d,P);case Se:return new V;case Ee:case de:return new V(d);case pe:return UH(d);case fe:return new V;case be:return WH(d)}}function l6(d,h){var P=h.length;if(!P)return d;var V=P-1;return h[V]=(P>1?"& ":"")+h[V],h=h.join(P>2?", ":" "),d.replace(lr,`{
|
|
301
|
+
/* [wrapped with `+h+`] */
|
|
302
|
+
`)}function a6(d){return Mt(d)||Qa(d)||!!(Z2&&d&&d[Z2])}function Zi(d,h){var P=typeof d;return h=h==null?D:h,!!h&&(P=="number"||P!="symbol"&&Fn.test(d))&&d>-1&&d%1==0&&d<h}function no(d,h,P){if(!Nn(P))return!1;var V=typeof h;return(V=="number"?go(P)&&Zi(h,P.length):V=="string"&&h in P)?Ws(P[h],d):!1}function T1(d,h){if(Mt(d))return!1;var P=typeof d;return P=="number"||P=="symbol"||P=="boolean"||d==null||No(d)?!0:as.test(d)||!Tl.test(d)||h!=null&&d in vn(h)}function c6(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function $1(d){var h=$m(d),P=G[h];if(typeof P!="function"||!(h in Ht.prototype))return!1;if(d===P)return!0;var V=I1(P);return!!V&&d===V[0]}function u6(d){return!!q2&&q2 in d}var d6=lm?Ji:q1;function Ef(d){var h=d&&d.constructor,P=typeof h=="function"&&h.prototype||Zc;return d===P}function qM(d){return d===d&&!Nn(d)}function YM(d,h){return function(P){return P==null?!1:P[d]===h&&(h!==n||d in vn(P))}}function f6(d){var h=Fm(d,function(V){return P.size===u&&P.clear(),V}),P=h.cache;return h}function p6(d,h){var P=d[1],V=h[1],U=P|V,q=U<(C|w|I),ee=V==I&&P==S||V==I&&P==R&&d[7].length<=h[8]||V==(I|R)&&h[7].length<=h[8]&&P==S;if(!(q||ee))return d;V&C&&(d[2]=h[2],U|=P&C?0:b);var ie=h[3];if(ie){var ve=d[3];d[3]=ve?$M(ve,ie,h[4]):ie,d[4]=ve?Ol(d[3],f):h[4]}return ie=h[5],ie&&(ve=d[5],d[5]=ve?RM(ve,ie,h[6]):ie,d[6]=ve?Ol(d[5],f):h[6]),ie=h[7],ie&&(d[7]=ie),V&I&&(d[8]=d[8]==null?h[8]:Br(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=U,d}function h6(d){var h=[];if(d!=null)for(var P in vn(d))h.push(P);return h}function m6(d){return cm.call(d)}function QM(d,h,P){return h=dr(h===n?d.length-1:h,0),function(){for(var V=arguments,U=-1,q=dr(V.length-h,0),ee=ke(q);++U<q;)ee[U]=V[h+U];U=-1;for(var ie=ke(h+1);++U<h;)ie[U]=V[U];return ie[h]=P(ee),Ao(d,this,ie)}}function XM(d,h){return h.length<2?d:Ka(d,ms(h,0,-1))}function g6(d,h){for(var P=d.length,V=Br(h.length,P),U=mo(d);V--;){var q=h[V];d[V]=Zi(q,P)?U[q]:n}return d}function R1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var ZM=e_(CM),If=$j||function(d,h){return _r.setTimeout(d,h)},O1=e_(BH);function JM(d,h,P){var V=h+"";return O1(d,l6(V,v6(o6(V),P)))}function e_(d){var h=0,P=0;return function(){var V=Aj(),U=z-(V-P);if(P=V,U>0){if(++h>=B)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Om(d,h){var P=-1,V=d.length,U=V-1;for(h=h===n?V:h;++P<h;){var q=m1(P,U),ee=d[q];d[q]=d[P],d[P]=ee}return d.length=h,d}var t_=f6(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(Tn,function(P,V,U,q){h.push(U?q.replace(js,"$1"):V||P)}),h});function yi(d){if(typeof d=="string"||No(d))return d;var h=d+"";return h=="0"&&1/d==-j?"-0":h}function Ya(d){if(d!=null){try{return am.call(d)}catch(h){}try{return d+""}catch(h){}}return""}function v6(d,h){return ds(Q,function(P){var V="_."+P[0];h&P[1]&&!rm(d,V)&&d.push(V)}),d.sort()}function n_(d){if(d instanceof Ht)return d.clone();var h=new ps(d.__wrapped__,d.__chain__);return h.__actions__=mo(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function y6(d,h,P){(P?no(d,h,P):h===n)?h=1:h=dr(Ot(h),0);var V=d==null?0:d.length;if(!V||h<1)return[];for(var U=0,q=0,ee=ke(mm(V/h));U<V;)ee[q++]=ms(d,U,U+=h);return ee}function b6(d){for(var h=-1,P=d==null?0:d.length,V=0,U=[];++h<P;){var q=d[h];q&&(U[V++]=q)}return U}function w6(){var d=arguments.length;if(!d)return[];for(var h=ke(d-1),P=arguments[0],V=d;V--;)h[V-1]=arguments[V];return Rl(Mt(P)?mo(P):[P],Tr(h,1))}var C6=Lt(function(d,h){return Zn(d)?Cf(d,Tr(h,1,Zn,!0)):[]}),x6=Lt(function(d,h){var P=gs(h);return Zn(P)&&(P=n),Zn(d)?Cf(d,Tr(h,1,Zn,!0),yt(P,2)):[]}),S6=Lt(function(d,h){var P=gs(h);return Zn(P)&&(P=n),Zn(d)?Cf(d,Tr(h,1,Zn,!0),n,P):[]});function P6(d,h,P){var V=d==null?0:d.length;return V?(h=P||h===n?1:Ot(h),ms(d,h<0?0:h,V)):[]}function k6(d,h,P){var V=d==null?0:d.length;return V?(h=P||h===n?1:Ot(h),h=V-h,ms(d,0,h<0?0:h)):[]}function E6(d,h){return d&&d.length?km(d,yt(h,3),!0,!0):[]}function I6(d,h){return d&&d.length?km(d,yt(h,3),!0):[]}function M6(d,h,P,V){var U=d==null?0:d.length;return U?(P&&typeof P!="number"&&no(d,h,P)&&(P=0,V=U),wH(d,h,P,V)):[]}function r_(d,h,P){var V=d==null?0:d.length;if(!V)return-1;var U=P==null?0:Ot(P);return U<0&&(U=dr(V+U,0)),om(d,yt(h,3),U)}function o_(d,h,P){var V=d==null?0:d.length;if(!V)return-1;var U=V-1;return P!==n&&(U=Ot(P),U=P<0?dr(V+U,0):Br(U,V-1)),om(d,yt(h,3),U,!0)}function s_(d){var h=d==null?0:d.length;return h?Tr(d,1):[]}function _6(d){var h=d==null?0:d.length;return h?Tr(d,j):[]}function T6(d,h){var P=d==null?0:d.length;return P?(h=h===n?1:Ot(h),Tr(d,h)):[]}function $6(d){for(var h=-1,P=d==null?0:d.length,V={};++h<P;){var U=d[h];V[U[0]]=U[1]}return V}function i_(d){return d&&d.length?d[0]:n}function R6(d,h,P){var V=d==null?0:d.length;if(!V)return-1;var U=P==null?0:Ot(P);return U<0&&(U=dr(V+U,0)),qc(d,h,U)}function O6(d){var h=d==null?0:d.length;return h?ms(d,0,-1):[]}var D6=Lt(function(d){var h=Rn(d,w1);return h.length&&h[0]===d[0]?u1(h):[]}),A6=Lt(function(d){var h=gs(d),P=Rn(d,w1);return h===gs(P)?h=n:P.pop(),P.length&&P[0]===d[0]?u1(P,yt(h,2)):[]}),L6=Lt(function(d){var h=gs(d),P=Rn(d,w1);return h=typeof h=="function"?h:n,h&&P.pop(),P.length&&P[0]===d[0]?u1(P,n,h):[]});function F6(d,h){return d==null?"":Oj.call(d,h)}function gs(d){var h=d==null?0:d.length;return h?d[h-1]:n}function N6(d,h,P){var V=d==null?0:d.length;if(!V)return-1;var U=V;return P!==n&&(U=Ot(P),U=U<0?dr(V+U,0):Br(U,V-1)),h===h?vj(d,h,U):om(d,z2,U,!0)}function B6(d,h){return d&&d.length?vM(d,Ot(h)):n}var z6=Lt(l_);function l_(d,h){return d&&d.length&&h&&h.length?h1(d,h):d}function V6(d,h,P){return d&&d.length&&h&&h.length?h1(d,h,yt(P,2)):d}function j6(d,h,P){return d&&d.length&&h&&h.length?h1(d,h,n,P):d}var H6=Xi(function(d,h){var P=d==null?0:d.length,V=i1(d,h);return wM(d,Rn(h,function(U){return Zi(U,P)?+U:U}).sort(TM)),V});function U6(d,h){var P=[];if(!(d&&d.length))return P;var V=-1,U=[],q=d.length;for(h=yt(h,3);++V<q;){var ee=d[V];h(ee,V,d)&&(P.push(ee),U.push(V))}return wM(d,U),P}function D1(d){return d==null?d:Fj.call(d)}function W6(d,h,P){var V=d==null?0:d.length;return V?(P&&typeof P!="number"&&no(d,h,P)?(h=0,P=V):(h=h==null?0:Ot(h),P=P===n?V:Ot(P)),ms(d,h,P)):[]}function G6(d,h){return Pm(d,h)}function K6(d,h,P){return v1(d,h,yt(P,2))}function q6(d,h){var P=d==null?0:d.length;if(P){var V=Pm(d,h);if(V<P&&Ws(d[V],h))return V}return-1}function Y6(d,h){return Pm(d,h,!0)}function Q6(d,h,P){return v1(d,h,yt(P,2),!0)}function X6(d,h){var P=d==null?0:d.length;if(P){var V=Pm(d,h,!0)-1;if(Ws(d[V],h))return V}return-1}function Z6(d){return d&&d.length?xM(d):[]}function J6(d,h){return d&&d.length?xM(d,yt(h,2)):[]}function e9(d){var h=d==null?0:d.length;return h?ms(d,1,h):[]}function t9(d,h,P){return d&&d.length?(h=P||h===n?1:Ot(h),ms(d,0,h<0?0:h)):[]}function n9(d,h,P){var V=d==null?0:d.length;return V?(h=P||h===n?1:Ot(h),h=V-h,ms(d,h<0?0:h,V)):[]}function r9(d,h){return d&&d.length?km(d,yt(h,3),!1,!0):[]}function o9(d,h){return d&&d.length?km(d,yt(h,3)):[]}var s9=Lt(function(d){return Ll(Tr(d,1,Zn,!0))}),i9=Lt(function(d){var h=gs(d);return Zn(h)&&(h=n),Ll(Tr(d,1,Zn,!0),yt(h,2))}),l9=Lt(function(d){var h=gs(d);return h=typeof h=="function"?h:n,Ll(Tr(d,1,Zn,!0),n,h)});function a9(d){return d&&d.length?Ll(d):[]}function c9(d,h){return d&&d.length?Ll(d,yt(h,2)):[]}function u9(d,h){return h=typeof h=="function"?h:n,d&&d.length?Ll(d,n,h):[]}function A1(d){if(!(d&&d.length))return[];var h=0;return d=$l(d,function(P){if(Zn(P))return h=dr(P.length,h),!0}),Z0(h,function(P){return Rn(d,Y0(P))})}function a_(d,h){if(!(d&&d.length))return[];var P=A1(d);return h==null?P:Rn(P,function(V){return Ao(h,n,V)})}var d9=Lt(function(d,h){return Zn(d)?Cf(d,h):[]}),f9=Lt(function(d){return b1($l(d,Zn))}),p9=Lt(function(d){var h=gs(d);return Zn(h)&&(h=n),b1($l(d,Zn),yt(h,2))}),h9=Lt(function(d){var h=gs(d);return h=typeof h=="function"?h:n,b1($l(d,Zn),n,h)}),m9=Lt(A1);function g9(d,h){return EM(d||[],h||[],wf)}function v9(d,h){return EM(d||[],h||[],Pf)}var y9=Lt(function(d){var h=d.length,P=h>1?d[h-1]:n;return P=typeof P=="function"?(d.pop(),P):n,a_(d,P)});function c_(d){var h=G(d);return h.__chain__=!0,h}function b9(d,h){return h(d),d}function Dm(d,h){return h(d)}var w9=Xi(function(d){var h=d.length,P=h?d[0]:0,V=this.__wrapped__,U=function(q){return i1(q,d)};return h>1||this.__actions__.length||!(V instanceof Ht)||!Zi(P)?this.thru(U):(V=V.slice(P,+P+(h?1:0)),V.__actions__.push({func:Dm,args:[U],thisArg:n}),new ps(V,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function C9(){return c_(this)}function x9(){return new ps(this.value(),this.__chain__)}function S9(){this.__values__===n&&(this.__values__=S_(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function P9(){return this}function k9(d){for(var h,P=this;P instanceof bm;){var V=n_(P);V.__index__=0,V.__values__=n,h?U.__wrapped__=V:h=V;var U=V;P=P.__wrapped__}return U.__wrapped__=d,h}function E9(){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:Dm,args:[D1],thisArg:n}),new ps(h,this.__chain__)}return this.thru(D1)}function I9(){return kM(this.__wrapped__,this.__actions__)}var M9=Em(function(d,h,P){cn.call(d,P)?++d[P]:Yi(d,P,1)});function _9(d,h,P){var V=Mt(d)?N2:bH;return P&&no(d,h,P)&&(h=n),V(d,yt(h,3))}function T9(d,h){var P=Mt(d)?$l:aM;return P(d,yt(h,3))}var $9=LM(r_),R9=LM(o_);function O9(d,h){return Tr(Am(d,h),1)}function D9(d,h){return Tr(Am(d,h),j)}function A9(d,h,P){return P=P===n?1:Ot(P),Tr(Am(d,h),P)}function u_(d,h){var P=Mt(d)?ds:Al;return P(d,yt(h,3))}function d_(d,h){var P=Mt(d)?ej:lM;return P(d,yt(h,3))}var L9=Em(function(d,h,P){cn.call(d,P)?d[P].push(h):Yi(d,P,[h])});function F9(d,h,P,V){d=go(d)?d:iu(d),P=P&&!V?Ot(P):0;var U=d.length;return P<0&&(P=dr(U+P,0)),zm(d)?P<=U&&d.indexOf(h,P)>-1:!!U&&qc(d,h,P)>-1}var N9=Lt(function(d,h,P){var V=-1,U=typeof h=="function",q=go(d)?ke(d.length):[];return Al(d,function(ee){q[++V]=U?Ao(h,ee,P):xf(ee,h,P)}),q}),B9=Em(function(d,h,P){Yi(d,P,h)});function Am(d,h){var P=Mt(d)?Rn:hM;return P(d,yt(h,3))}function z9(d,h,P,V){return d==null?[]:(Mt(h)||(h=h==null?[]:[h]),P=V?n:P,Mt(P)||(P=P==null?[]:[P]),yM(d,h,P))}var V9=Em(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]});function j9(d,h,P){var V=Mt(d)?K0:j2,U=arguments.length<3;return V(d,yt(h,4),P,U,Al)}function H9(d,h,P){var V=Mt(d)?tj:j2,U=arguments.length<3;return V(d,yt(h,4),P,U,lM)}function U9(d,h){var P=Mt(d)?$l:aM;return P(d,Nm(yt(h,3)))}function W9(d){var h=Mt(d)?rM:FH;return h(d)}function G9(d,h,P){(P?no(d,h,P):h===n)?h=1:h=Ot(h);var V=Mt(d)?hH:NH;return V(d,h)}function K9(d){var h=Mt(d)?mH:zH;return h(d)}function q9(d){if(d==null)return 0;if(go(d))return zm(d)?Qc(d):d.length;var h=zr(d);return h==Se||h==fe?d.size:f1(d).length}function Y9(d,h,P){var V=Mt(d)?q0:VH;return P&&no(d,h,P)&&(h=n),V(d,yt(h,3))}var Q9=Lt(function(d,h){if(d==null)return[];var P=h.length;return P>1&&no(d,h[0],h[1])?h=[]:P>2&&no(h[0],h[1],h[2])&&(h=[h[0]]),yM(d,Tr(h,1),[])}),Lm=Tj||function(){return _r.Date.now()};function X9(d,h){if(typeof h!="function")throw new fs(i);return d=Ot(d),function(){if(--d<1)return h.apply(this,arguments)}}function f_(d,h,P){return h=P?n:h,h=d&&h==null?d.length:h,Qi(d,I,n,n,n,n,h)}function p_(d,h){var P;if(typeof h!="function")throw new fs(i);return d=Ot(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=n),P}}var L1=Lt(function(d,h,P){var V=C;if(P.length){var U=Ol(P,ou(L1));V|=_}return Qi(d,V,h,P,U)}),h_=Lt(function(d,h,P){var V=C|w;if(P.length){var U=Ol(P,ou(h_));V|=_}return Qi(h,V,d,P,U)});function m_(d,h,P){h=P?n:h;var V=Qi(d,S,n,n,n,n,n,h);return V.placeholder=m_.placeholder,V}function g_(d,h,P){h=P?n:h;var V=Qi(d,E,n,n,n,n,n,h);return V.placeholder=g_.placeholder,V}function v_(d,h,P){var V,U,q,ee,ie,ve,De=0,Fe=!1,Be=!1,Je=!0;if(typeof d!="function")throw new fs(i);h=vs(h)||0,Nn(P)&&(Fe=!!P.leading,Be="maxWait"in P,q=Be?dr(vs(P.maxWait)||0,h):q,Je="trailing"in P?!!P.trailing:Je);function pt(Jn){var Gs=V,tl=U;return V=U=n,De=Jn,ee=d.apply(tl,Gs),ee}function Ct(Jn){return De=Jn,ie=If(Bt,h),Fe?pt(Jn):ee}function Dt(Jn){var Gs=Jn-ve,tl=Jn-De,L_=h-Gs;return Be?Br(L_,q-tl):L_}function xt(Jn){var Gs=Jn-ve,tl=Jn-De;return ve===n||Gs>=h||Gs<0||Be&&tl>=q}function Bt(){var Jn=Lm();if(xt(Jn))return Gt(Jn);ie=If(Bt,Dt(Jn))}function Gt(Jn){return ie=n,Je&&V?pt(Jn):(V=U=n,ee)}function Bo(){ie!==n&&IM(ie),De=0,V=ve=U=ie=n}function ro(){return ie===n?ee:Gt(Lm())}function zo(){var Jn=Lm(),Gs=xt(Jn);if(V=arguments,U=this,ve=Jn,Gs){if(ie===n)return Ct(ve);if(Be)return IM(ie),ie=If(Bt,h),pt(ve)}return ie===n&&(ie=If(Bt,h)),ee}return zo.cancel=Bo,zo.flush=ro,zo}var Z9=Lt(function(d,h){return iM(d,1,h)}),J9=Lt(function(d,h,P){return iM(d,vs(h)||0,P)});function e8(d){return Qi(d,A)}function Fm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new fs(i);var P=function(){var V=arguments,U=h?h.apply(this,V):V[0],q=P.cache;if(q.has(U))return q.get(U);var ee=d.apply(this,V);return P.cache=q.set(U,ee)||q,ee};return P.cache=new(Fm.Cache||qi),P}Fm.Cache=qi;function Nm(d){if(typeof d!="function")throw new fs(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 t8(d){return p_(2,d)}var n8=jH(function(d,h){h=h.length==1&&Mt(h[0])?Rn(h[0],Lo(yt())):Rn(Tr(h,1),Lo(yt()));var P=h.length;return Lt(function(V){for(var U=-1,q=Br(V.length,P);++U<q;)V[U]=h[U].call(this,V[U]);return Ao(d,this,V)})}),F1=Lt(function(d,h){var P=Ol(h,ou(F1));return Qi(d,_,n,h,P)}),y_=Lt(function(d,h){var P=Ol(h,ou(y_));return Qi(d,k,n,h,P)}),r8=Xi(function(d,h){return Qi(d,R,n,n,n,h)});function o8(d,h){if(typeof d!="function")throw new fs(i);return h=h===n?h:Ot(h),Lt(d,h)}function s8(d,h){if(typeof d!="function")throw new fs(i);return h=h==null?0:dr(Ot(h),0),Lt(function(P){var V=P[h],U=Nl(P,0,h);return V&&Rl(U,V),Ao(d,this,U)})}function i8(d,h,P){var V=!0,U=!0;if(typeof d!="function")throw new fs(i);return Nn(P)&&(V="leading"in P?!!P.leading:V,U="trailing"in P?!!P.trailing:U),v_(d,h,{leading:V,maxWait:h,trailing:U})}function l8(d){return f_(d,1)}function a8(d,h){return F1(C1(h),d)}function c8(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function u8(d){return hs(d,v)}function d8(d,h){return h=typeof h=="function"?h:n,hs(d,v,h)}function f8(d){return hs(d,p|v)}function p8(d,h){return h=typeof h=="function"?h:n,hs(d,p|v,h)}function h8(d,h){return h==null||sM(d,h,br(h))}function Ws(d,h){return d===h||d!==d&&h!==h}var m8=Tm(c1),g8=Tm(function(d,h){return d>=h}),Qa=dM(function(){return arguments}())?dM:function(d){return Un(d)&&cn.call(d,"callee")&&!X2.call(d,"callee")},Mt=ke.isArray,v8=R2?Lo(R2):kH;function go(d){return d!=null&&Bm(d.length)&&!Ji(d)}function Zn(d){return Un(d)&&go(d)}function y8(d){return d===!0||d===!1||Un(d)&&to(d)==Z}var Bl=Rj||q1,b8=O2?Lo(O2):EH;function w8(d){return Un(d)&&d.nodeType===1&&!Mf(d)}function C8(d){if(d==null)return!0;if(go(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||Bl(d)||su(d)||Qa(d)))return!d.length;var h=zr(d);if(h==Se||h==fe)return!d.size;if(Ef(d))return!f1(d).length;for(var P in d)if(cn.call(d,P))return!1;return!0}function x8(d,h){return Sf(d,h)}function S8(d,h,P){P=typeof P=="function"?P:n;var V=P?P(d,h):n;return V===n?Sf(d,h,n,P):!!V}function N1(d){if(!Un(d))return!1;var h=to(d);return h==re||h==ne||typeof d.message=="string"&&typeof d.name=="string"&&!Mf(d)}function P8(d){return typeof d=="number"&&J2(d)}function Ji(d){if(!Nn(d))return!1;var h=to(d);return h==me||h==ce||h==se||h==Me}function b_(d){return typeof d=="number"&&d==Ot(d)}function Bm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=D}function Nn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Un(d){return d!=null&&typeof d=="object"}var w_=D2?Lo(D2):MH;function k8(d,h){return d===h||d1(d,h,M1(h))}function E8(d,h,P){return P=typeof P=="function"?P:n,d1(d,h,M1(h),P)}function I8(d){return C_(d)&&d!=+d}function M8(d){if(d6(d))throw new It(s);return fM(d)}function _8(d){return d===null}function T8(d){return d==null}function C_(d){return typeof d=="number"||Un(d)&&to(d)==Ee}function Mf(d){if(!Un(d)||to(d)!=Ie)return!1;var h=fm(d);if(h===null)return!0;var P=cn.call(h,"constructor")&&h.constructor;return typeof P=="function"&&P instanceof P&&am.call(P)==Ej}var B1=A2?Lo(A2):_H;function $8(d){return b_(d)&&d>=-D&&d<=D}var x_=L2?Lo(L2):TH;function zm(d){return typeof d=="string"||!Mt(d)&&Un(d)&&to(d)==de}function No(d){return typeof d=="symbol"||Un(d)&&to(d)==be}var su=F2?Lo(F2):$H;function R8(d){return d===n}function O8(d){return Un(d)&&zr(d)==Ne}function D8(d){return Un(d)&&to(d)==Ge}var A8=Tm(p1),L8=Tm(function(d,h){return d<=h});function S_(d){if(!d)return[];if(go(d))return zm(d)?Hs(d):mo(d);if(mf&&d[mf])return hj(d[mf]());var h=zr(d),P=h==Se?e1:h==fe?sm:iu;return P(d)}function el(d){if(!d)return d===0?d:0;if(d=vs(d),d===j||d===-j){var h=d<0?-1:1;return h*N}return d===d?d:0}function Ot(d){var h=el(d),P=h%1;return h===h?P?h-P:h:0}function P_(d){return d?Ga(Ot(d),0,K):0}function vs(d){if(typeof d=="number")return d;if(No(d))return H;if(Nn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Nn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=H2(d);var P=ft.test(d);return P||$n.test(d)?XV(d.slice(2),P?2:8):Qe.test(d)?H:+d}function k_(d){return vi(d,vo(d))}function F8(d){return d?Ga(Ot(d),-D,D):d===0?d:0}function sn(d){return d==null?"":Fo(d)}var N8=nu(function(d,h){if(Ef(h)||go(h)){vi(h,br(h),d);return}for(var P in h)cn.call(h,P)&&wf(d,P,h[P])}),E_=nu(function(d,h){vi(h,vo(h),d)}),Vm=nu(function(d,h,P,V){vi(h,vo(h),d,V)}),B8=nu(function(d,h,P,V){vi(h,br(h),d,V)}),z8=Xi(i1);function V8(d,h){var P=tu(d);return h==null?P:oM(P,h)}var j8=Lt(function(d,h){d=vn(d);var P=-1,V=h.length,U=V>2?h[2]:n;for(U&&no(h[0],h[1],U)&&(V=1);++P<V;)for(var q=h[P],ee=vo(q),ie=-1,ve=ee.length;++ie<ve;){var De=ee[ie],Fe=d[De];(Fe===n||Ws(Fe,Zc[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),H8=Lt(function(d){return d.push(n,HM),Ao(I_,n,d)});function U8(d,h){return B2(d,yt(h,3),gi)}function W8(d,h){return B2(d,yt(h,3),a1)}function G8(d,h){return d==null?d:l1(d,yt(h,3),vo)}function K8(d,h){return d==null?d:cM(d,yt(h,3),vo)}function q8(d,h){return d&&gi(d,yt(h,3))}function Y8(d,h){return d&&a1(d,yt(h,3))}function Q8(d){return d==null?[]:xm(d,br(d))}function X8(d){return d==null?[]:xm(d,vo(d))}function z1(d,h,P){var V=d==null?n:Ka(d,h);return V===n?P:V}function Z8(d,h){return d!=null&&GM(d,h,CH)}function V1(d,h){return d!=null&&GM(d,h,xH)}var J8=NM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=cm.call(h)),d[h]=P},H1(yo)),e7=NM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=cm.call(h)),cn.call(d,h)?d[h].push(P):d[h]=[P]},yt),t7=Lt(xf);function br(d){return go(d)?nM(d):f1(d)}function vo(d){return go(d)?nM(d,!0):RH(d)}function n7(d,h){var P={};return h=yt(h,3),gi(d,function(V,U,q){Yi(P,h(V,U,q),V)}),P}function r7(d,h){var P={};return h=yt(h,3),gi(d,function(V,U,q){Yi(P,U,h(V,U,q))}),P}var o7=nu(function(d,h,P){Sm(d,h,P)}),I_=nu(function(d,h,P,V){Sm(d,h,P,V)}),s7=Xi(function(d,h){var P={};if(d==null)return P;var V=!1;h=Rn(h,function(q){return q=Fl(q,d),V||(V=q.length>1),q}),vi(d,E1(d),P),V&&(P=hs(P,p|m|v,JH));for(var U=h.length;U--;)y1(P,h[U]);return P});function i7(d,h){return M_(d,Nm(yt(h)))}var l7=Xi(function(d,h){return d==null?{}:DH(d,h)});function M_(d,h){if(d==null)return{};var P=Rn(E1(d),function(V){return[V]});return h=yt(h),bM(d,P,function(V,U){return h(V,U[0])})}function a7(d,h,P){h=Fl(h,d);var V=-1,U=h.length;for(U||(U=1,d=n);++V<U;){var q=d==null?n:d[yi(h[V])];q===n&&(V=U,q=P),d=Ji(q)?q.call(d):q}return d}function c7(d,h,P){return d==null?d:Pf(d,h,P)}function u7(d,h,P,V){return V=typeof V=="function"?V:n,d==null?d:Pf(d,h,P,V)}var __=VM(br),T_=VM(vo);function d7(d,h,P){var V=Mt(d),U=V||Bl(d)||su(d);if(h=yt(h,4),P==null){var q=d&&d.constructor;U?P=V?new q:[]:Nn(d)?P=Ji(q)?tu(fm(d)):{}:P={}}return(U?ds:gi)(d,function(ee,ie,ve){return h(P,ee,ie,ve)}),P}function f7(d,h){return d==null?!0:y1(d,h)}function p7(d,h,P){return d==null?d:PM(d,h,C1(P))}function h7(d,h,P,V){return V=typeof V=="function"?V:n,d==null?d:PM(d,h,C1(P),V)}function iu(d){return d==null?[]:J0(d,br(d))}function m7(d){return d==null?[]:J0(d,vo(d))}function g7(d,h,P){return P===n&&(P=h,h=n),P!==n&&(P=vs(P),P=P===P?P:0),h!==n&&(h=vs(h),h=h===h?h:0),Ga(vs(d),h,P)}function v7(d,h,P){return h=el(h),P===n?(P=h,h=0):P=el(P),d=vs(d),SH(d,h,P)}function y7(d,h,P){if(P&&typeof P!="boolean"&&no(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=el(d),h===n?(h=d,d=0):h=el(h)),d>h){var V=d;d=h,h=V}if(P||d%1||h%1){var U=eM();return Br(d+U*(h-d+QV("1e-"+((U+"").length-1))),h)}return m1(d,h)}var b7=ru(function(d,h,P){return h=h.toLowerCase(),d+(P?$_(h):h)});function $_(d){return j1(sn(d).toLowerCase())}function R_(d){return d=sn(d),d&&d.replace(St,cj).replace(zV,"")}function w7(d,h,P){d=sn(d),h=Fo(h);var V=d.length;P=P===n?V:Ga(Ot(P),0,V);var U=P;return P-=h.length,P>=0&&d.slice(P,U)==h}function C7(d){return d=sn(d),d&>.test(d)?d.replace(Pn,uj):d}function x7(d){return d=sn(d),d&&yr.test(d)?d.replace(an,"\\$&"):d}var S7=ru(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),P7=ru(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),k7=AM("toLowerCase");function E7(d,h,P){d=sn(d),h=Ot(h);var V=h?Qc(d):0;if(!h||V>=h)return d;var U=(h-V)/2;return _m(gm(U),P)+d+_m(mm(U),P)}function I7(d,h,P){d=sn(d),h=Ot(h);var V=h?Qc(d):0;return h&&V<h?d+_m(h-V,P):d}function M7(d,h,P){d=sn(d),h=Ot(h);var V=h?Qc(d):0;return h&&V<h?_m(h-V,P)+d:d}function _7(d,h,P){return P||h==null?h=0:h&&(h=+h),Lj(sn(d).replace(ho,""),h||0)}function T7(d,h,P){return(P?no(d,h,P):h===n)?h=1:h=Ot(h),g1(sn(d),h)}function $7(){var d=arguments,h=sn(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var R7=ru(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()});function O7(d,h,P){return P&&typeof P!="number"&&no(d,h,P)&&(h=P=n),P=P===n?K:P>>>0,P?(d=sn(d),d&&(typeof h=="string"||h!=null&&!B1(h))&&(h=Fo(h),!h&&Yc(d))?Nl(Hs(d),0,P):d.split(h,P)):[]}var D7=ru(function(d,h,P){return d+(P?" ":"")+j1(h)});function A7(d,h,P){return d=sn(d),P=P==null?0:Ga(Ot(P),0,d.length),h=Fo(h),d.slice(P,P+h.length)==h}function L7(d,h,P){var V=G.templateSettings;P&&no(d,h,P)&&(h=n),d=sn(d),h=Vm({},h,V,jM);var U=Vm({},h.imports,V.imports,jM),q=br(U),ee=J0(U,q),ie,ve,De=0,Fe=h.interpolate||Xn,Be="__p += '",Je=t1((h.escape||Xn).source+"|"+Fe.source+"|"+(Fe===ir?$e:Xn).source+"|"+(h.evaluate||Xn).source+"|$","g"),pt="//# sourceURL="+(cn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++WV+"]")+`
|
|
303
|
+
`;d.replace(Je,function(xt,Bt,Gt,Bo,ro,zo){return Gt||(Gt=Bo),Be+=d.slice(De,zo).replace(xV,dj),Bt&&(ie=!0,Be+=`' +
|
|
304
|
+
__e(`+Bt+`) +
|
|
305
|
+
'`),ro&&(ve=!0,Be+=`';
|
|
306
|
+
`+ro+`;
|
|
307
|
+
__p += '`),Gt&&(Be+=`' +
|
|
308
|
+
((__t = (`+Gt+`)) == null ? '' : __t) +
|
|
309
|
+
'`),De=zo+xt.length,xt}),Be+=`';
|
|
310
|
+
`;var Ct=cn.call(h,"variable")&&h.variable;if(!Ct)Be=`with (obj) {
|
|
311
|
+
`+Be+`
|
|
312
|
+
}
|
|
313
|
+
`;else if(Nr.test(Ct))throw new It(l);Be=(ve?Be.replace(vt,""):Be).replace(Tt,"$1").replace(Yt,"$1;"),Be="function("+(Ct||"obj")+`) {
|
|
314
|
+
`+(Ct?"":`obj || (obj = {});
|
|
315
|
+
`)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
316
|
+
function print() { __p += __j.call(arguments, '') }
|
|
317
|
+
`:`;
|
|
318
|
+
`)+Be+`return __p
|
|
319
|
+
}`;var Dt=D_(function(){return en(q,pt+"return "+Be).apply(n,ee)});if(Dt.source=Be,N1(Dt))throw Dt;return Dt}function F7(d){return sn(d).toLowerCase()}function N7(d){return sn(d).toUpperCase()}function B7(d,h,P){if(d=sn(d),d&&(P||h===n))return H2(d);if(!d||!(h=Fo(h)))return d;var V=Hs(d),U=Hs(h),q=U2(V,U),ee=W2(V,U)+1;return Nl(V,q,ee).join("")}function z7(d,h,P){if(d=sn(d),d&&(P||h===n))return d.slice(0,K2(d)+1);if(!d||!(h=Fo(h)))return d;var V=Hs(d),U=W2(V,Hs(h))+1;return Nl(V,0,U).join("")}function V7(d,h,P){if(d=sn(d),d&&(P||h===n))return d.replace(ho,"");if(!d||!(h=Fo(h)))return d;var V=Hs(d),U=U2(V,Hs(h));return Nl(V,U).join("")}function j7(d,h){var P=$,V=L;if(Nn(h)){var U="separator"in h?h.separator:U;P="length"in h?Ot(h.length):P,V="omission"in h?Fo(h.omission):V}d=sn(d);var q=d.length;if(Yc(d)){var ee=Hs(d);q=ee.length}if(P>=q)return d;var ie=P-Qc(V);if(ie<1)return V;var ve=ee?Nl(ee,0,ie).join(""):d.slice(0,ie);if(U===n)return ve+V;if(ee&&(ie+=ve.length-ie),B1(U)){if(d.slice(ie).search(U)){var De,Fe=ve;for(U.global||(U=t1(U.source,sn(we.exec(U))+"g")),U.lastIndex=0;De=U.exec(Fe);)var Be=De.index;ve=ve.slice(0,Be===n?ie:Be)}}else if(d.indexOf(Fo(U),ie)!=ie){var Je=ve.lastIndexOf(U);Je>-1&&(ve=ve.slice(0,Je))}return ve+V}function H7(d){return d=sn(d),d&&bn.test(d)?d.replace(Qt,yj):d}var U7=ru(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),j1=AM("toUpperCase");function O_(d,h,P){return d=sn(d),h=P?n:h,h===n?pj(d)?Cj(d):oj(d):d.match(h)||[]}var D_=Lt(function(d,h){try{return Ao(d,n,h)}catch(P){return N1(P)?P:new It(P)}}),W7=Xi(function(d,h){return ds(h,function(P){P=yi(P),Yi(d,P,L1(d[P],d))}),d});function G7(d){var h=d==null?0:d.length,P=yt();return d=h?Rn(d,function(V){if(typeof V[1]!="function")throw new fs(i);return[P(V[0]),V[1]]}):[],Lt(function(V){for(var U=-1;++U<h;){var q=d[U];if(Ao(q[0],this,V))return Ao(q[1],this,V)}})}function K7(d){return yH(hs(d,p))}function H1(d){return function(){return d}}function q7(d,h){return d==null||d!==d?h:d}var Y7=FM(),Q7=FM(!0);function yo(d){return d}function U1(d){return pM(typeof d=="function"?d:hs(d,p))}function X7(d){return mM(hs(d,p))}function Z7(d,h){return gM(d,hs(h,p))}var J7=Lt(function(d,h){return function(P){return xf(P,d,h)}}),eU=Lt(function(d,h){return function(P){return xf(d,P,h)}});function W1(d,h,P){var V=br(h),U=xm(h,V);P==null&&!(Nn(h)&&(U.length||!V.length))&&(P=h,h=d,d=this,U=xm(h,br(h)));var q=!(Nn(P)&&"chain"in P)||!!P.chain,ee=Ji(d);return ds(U,function(ie){var ve=h[ie];d[ie]=ve,ee&&(d.prototype[ie]=function(){var De=this.__chain__;if(q||De){var Fe=d(this.__wrapped__),Be=Fe.__actions__=mo(this.__actions__);return Be.push({func:ve,args:arguments,thisArg:d}),Fe.__chain__=De,Fe}return ve.apply(d,Rl([this.value()],arguments))})}),d}function tU(){return _r._===this&&(_r._=Ij),this}function G1(){}function nU(d){return d=Ot(d),Lt(function(h){return vM(h,d)})}var rU=S1(Rn),oU=S1(N2),sU=S1(q0);function A_(d){return T1(d)?Y0(yi(d)):AH(d)}function iU(d){return function(h){return d==null?n:Ka(d,h)}}var lU=BM(),aU=BM(!0);function K1(){return[]}function q1(){return!1}function cU(){return{}}function uU(){return""}function dU(){return!0}function fU(d,h){if(d=Ot(d),d<1||d>D)return[];var P=K,V=Br(d,K);h=yt(h),d-=K;for(var U=Z0(V,h);++P<d;)h(P);return U}function pU(d){return Mt(d)?Rn(d,yi):No(d)?[d]:mo(t_(sn(d)))}function hU(d){var h=++kj;return sn(d)+h}var mU=Mm(function(d,h){return d+h},0),gU=P1("ceil"),vU=Mm(function(d,h){return d/h},1),yU=P1("floor");function bU(d){return d&&d.length?Cm(d,yo,c1):n}function wU(d,h){return d&&d.length?Cm(d,yt(h,2),c1):n}function CU(d){return V2(d,yo)}function xU(d,h){return V2(d,yt(h,2))}function SU(d){return d&&d.length?Cm(d,yo,p1):n}function PU(d,h){return d&&d.length?Cm(d,yt(h,2),p1):n}var kU=Mm(function(d,h){return d*h},1),EU=P1("round"),IU=Mm(function(d,h){return d-h},0);function MU(d){return d&&d.length?X0(d,yo):0}function _U(d,h){return d&&d.length?X0(d,yt(h,2)):0}return G.after=X9,G.ary=f_,G.assign=N8,G.assignIn=E_,G.assignInWith=Vm,G.assignWith=B8,G.at=z8,G.before=p_,G.bind=L1,G.bindAll=W7,G.bindKey=h_,G.castArray=c8,G.chain=c_,G.chunk=y6,G.compact=b6,G.concat=w6,G.cond=G7,G.conforms=K7,G.constant=H1,G.countBy=M9,G.create=V8,G.curry=m_,G.curryRight=g_,G.debounce=v_,G.defaults=j8,G.defaultsDeep=H8,G.defer=Z9,G.delay=J9,G.difference=C6,G.differenceBy=x6,G.differenceWith=S6,G.drop=P6,G.dropRight=k6,G.dropRightWhile=E6,G.dropWhile=I6,G.fill=M6,G.filter=T9,G.flatMap=O9,G.flatMapDeep=D9,G.flatMapDepth=A9,G.flatten=s_,G.flattenDeep=_6,G.flattenDepth=T6,G.flip=e8,G.flow=Y7,G.flowRight=Q7,G.fromPairs=$6,G.functions=Q8,G.functionsIn=X8,G.groupBy=L9,G.initial=O6,G.intersection=D6,G.intersectionBy=A6,G.intersectionWith=L6,G.invert=J8,G.invertBy=e7,G.invokeMap=N9,G.iteratee=U1,G.keyBy=B9,G.keys=br,G.keysIn=vo,G.map=Am,G.mapKeys=n7,G.mapValues=r7,G.matches=X7,G.matchesProperty=Z7,G.memoize=Fm,G.merge=o7,G.mergeWith=I_,G.method=J7,G.methodOf=eU,G.mixin=W1,G.negate=Nm,G.nthArg=nU,G.omit=s7,G.omitBy=i7,G.once=t8,G.orderBy=z9,G.over=rU,G.overArgs=n8,G.overEvery=oU,G.overSome=sU,G.partial=F1,G.partialRight=y_,G.partition=V9,G.pick=l7,G.pickBy=M_,G.property=A_,G.propertyOf=iU,G.pull=z6,G.pullAll=l_,G.pullAllBy=V6,G.pullAllWith=j6,G.pullAt=H6,G.range=lU,G.rangeRight=aU,G.rearg=r8,G.reject=U9,G.remove=U6,G.rest=o8,G.reverse=D1,G.sampleSize=G9,G.set=c7,G.setWith=u7,G.shuffle=K9,G.slice=W6,G.sortBy=Q9,G.sortedUniq=Z6,G.sortedUniqBy=J6,G.split=O7,G.spread=s8,G.tail=e9,G.take=t9,G.takeRight=n9,G.takeRightWhile=r9,G.takeWhile=o9,G.tap=b9,G.throttle=i8,G.thru=Dm,G.toArray=S_,G.toPairs=__,G.toPairsIn=T_,G.toPath=pU,G.toPlainObject=k_,G.transform=d7,G.unary=l8,G.union=s9,G.unionBy=i9,G.unionWith=l9,G.uniq=a9,G.uniqBy=c9,G.uniqWith=u9,G.unset=f7,G.unzip=A1,G.unzipWith=a_,G.update=p7,G.updateWith=h7,G.values=iu,G.valuesIn=m7,G.without=d9,G.words=O_,G.wrap=a8,G.xor=f9,G.xorBy=p9,G.xorWith=h9,G.zip=m9,G.zipObject=g9,G.zipObjectDeep=v9,G.zipWith=y9,G.entries=__,G.entriesIn=T_,G.extend=E_,G.extendWith=Vm,W1(G,G),G.add=mU,G.attempt=D_,G.camelCase=b7,G.capitalize=$_,G.ceil=gU,G.clamp=g7,G.clone=u8,G.cloneDeep=f8,G.cloneDeepWith=p8,G.cloneWith=d8,G.conformsTo=h8,G.deburr=R_,G.defaultTo=q7,G.divide=vU,G.endsWith=w7,G.eq=Ws,G.escape=C7,G.escapeRegExp=x7,G.every=_9,G.find=$9,G.findIndex=r_,G.findKey=U8,G.findLast=R9,G.findLastIndex=o_,G.findLastKey=W8,G.floor=yU,G.forEach=u_,G.forEachRight=d_,G.forIn=G8,G.forInRight=K8,G.forOwn=q8,G.forOwnRight=Y8,G.get=z1,G.gt=m8,G.gte=g8,G.has=Z8,G.hasIn=V1,G.head=i_,G.identity=yo,G.includes=F9,G.indexOf=R6,G.inRange=v7,G.invoke=t7,G.isArguments=Qa,G.isArray=Mt,G.isArrayBuffer=v8,G.isArrayLike=go,G.isArrayLikeObject=Zn,G.isBoolean=y8,G.isBuffer=Bl,G.isDate=b8,G.isElement=w8,G.isEmpty=C8,G.isEqual=x8,G.isEqualWith=S8,G.isError=N1,G.isFinite=P8,G.isFunction=Ji,G.isInteger=b_,G.isLength=Bm,G.isMap=w_,G.isMatch=k8,G.isMatchWith=E8,G.isNaN=I8,G.isNative=M8,G.isNil=T8,G.isNull=_8,G.isNumber=C_,G.isObject=Nn,G.isObjectLike=Un,G.isPlainObject=Mf,G.isRegExp=B1,G.isSafeInteger=$8,G.isSet=x_,G.isString=zm,G.isSymbol=No,G.isTypedArray=su,G.isUndefined=R8,G.isWeakMap=O8,G.isWeakSet=D8,G.join=F6,G.kebabCase=S7,G.last=gs,G.lastIndexOf=N6,G.lowerCase=P7,G.lowerFirst=k7,G.lt=A8,G.lte=L8,G.max=bU,G.maxBy=wU,G.mean=CU,G.meanBy=xU,G.min=SU,G.minBy=PU,G.stubArray=K1,G.stubFalse=q1,G.stubObject=cU,G.stubString=uU,G.stubTrue=dU,G.multiply=kU,G.nth=B6,G.noConflict=tU,G.noop=G1,G.now=Lm,G.pad=E7,G.padEnd=I7,G.padStart=M7,G.parseInt=_7,G.random=y7,G.reduce=j9,G.reduceRight=H9,G.repeat=T7,G.replace=$7,G.result=a7,G.round=EU,G.runInContext=ge,G.sample=W9,G.size=q9,G.snakeCase=R7,G.some=Y9,G.sortedIndex=G6,G.sortedIndexBy=K6,G.sortedIndexOf=q6,G.sortedLastIndex=Y6,G.sortedLastIndexBy=Q6,G.sortedLastIndexOf=X6,G.startCase=D7,G.startsWith=A7,G.subtract=IU,G.sum=MU,G.sumBy=_U,G.template=L7,G.times=fU,G.toFinite=el,G.toInteger=Ot,G.toLength=P_,G.toLower=F7,G.toNumber=vs,G.toSafeInteger=F8,G.toString=sn,G.toUpper=N7,G.trim=B7,G.trimEnd=z7,G.trimStart=V7,G.truncate=j7,G.unescape=H7,G.uniqueId=hU,G.upperCase=U7,G.upperFirst=j1,G.each=u_,G.eachRight=d_,G.first=i_,W1(G,function(){var d={};return gi(G,function(h,P){cn.call(G.prototype,P)||(d[P]=h)}),d}(),{chain:!1}),G.VERSION=r,ds(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),ds(["drop","take"],function(d,h){Ht.prototype[d]=function(P){P=P===n?1:dr(Ot(P),0);var V=this.__filtered__&&!h?new Ht(this):this.clone();return V.__filtered__?V.__takeCount__=Br(P,V.__takeCount__):V.__views__.push({size:Br(P,K),type:d+(V.__dir__<0?"Right":"")}),V},Ht.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),ds(["filter","map","takeWhile"],function(d,h){var P=h+1,V=P==M||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__||V,q}}),ds(["head","last"],function(d,h){var P="take"+(h?"Right":"");Ht.prototype[d]=function(){return this[P](1).value()[0]}}),ds(["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(yo)},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 xf(P,d,h)})}),Ht.prototype.reject=function(d){return this.filter(Nm(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)},gi(Ht.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),V=/^(?:head|last)$/.test(h),U=G[V?"take"+(h=="last"?"Right":""):h],q=V||/^find/.test(h);U&&(G.prototype[h]=function(){var ee=this.__wrapped__,ie=V?[1]:arguments,ve=ee instanceof Ht,De=ie[0],Fe=ve||Mt(ee),Be=function(Bt){var Gt=U.apply(G,Rl([Bt],ie));return V&&Je?Gt[0]:Gt};Fe&&P&&typeof De=="function"&&De.length!=1&&(ve=Fe=!1);var Je=this.__chain__,pt=!!this.__actions__.length,Ct=q&&!Je,Dt=ve&&!pt;if(!q&&Fe){ee=Dt?ee:new Ht(this);var xt=d.apply(ee,ie);return xt.__actions__.push({func:Dm,args:[Be],thisArg:n}),new ps(xt,Je)}return Ct&&Dt?d.apply(this,ie):(xt=this.thru(Be),Ct?V?xt.value()[0]:xt.value():xt)})}),ds(["pop","push","shift","sort","splice","unshift"],function(d){var h=im[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",V=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(V&&!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)})}}),gi(Ht.prototype,function(d,h){var P=G[h];if(P){var V=P.name+"";cn.call(eu,V)||(eu[V]=[]),eu[V].push({name:h,func:P})}}),eu[Im(n,w).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=Hj,Ht.prototype.reverse=Uj,Ht.prototype.value=Wj,G.prototype.at=w9,G.prototype.chain=C9,G.prototype.commit=x9,G.prototype.next=S9,G.prototype.plant=k9,G.prototype.reverse=E9,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=I9,G.prototype.first=G.prototype.head,mf&&(G.prototype[mf]=P9),G},Xc=xj();ja?((ja.exports=Xc)._=Xc,U0._=Xc):_r._=Xc}).call(ln)})(Wv,Wv.exports);var Pue=Wv.exports;const et=di(Pue),ju="/~/api/",kue={loginSrp1:90,update:600,get_status:20},x4={};function Eue(e){Object.assign(x4,e)}function ct(e,t,n={}){var a,u,f;et.defaults(n,x4);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(u=kue[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(q4()+ju+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(p=>ot(this,null,function*(){var g;r==null||r();let m=yield p.text(),v;try{v=JSON.parse(m)}catch(C){}const y=v!=null?v:m;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",y),yield(g=n.onResponse)==null?void 0:g.call(n,p,y),!p.ok)throw new S4(p.status,v===void 0?m:`Failed API ${e}: ${p.statusText}`,v);return y}),p=>{var m;throw r==null||r(),(m=p==null?void 0:p.message)!=null&&m.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class S4 extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function P4(e,t,n={}){const[r,o]=Co(void 0),[s,i]=Co(void 0),[l,a]=Co(0),u=c.useRef(),f=c.useRef(),p=c.useRef();c.useEffect(()=>{var C,w;(C=u.current)==null||C.abort(),o(void 0),i(void 0);let v=!1,y;const g=Bh(0).then(()=>!e||v?void 0:y=ct(e,t,n)).then(b=>v||o(p.current=b),b=>{v||(i(b),o(p.current=void 0))}).finally(()=>u.current=f.current=void 0);u.current=Object.assign(g,{abort(){v=!0,y==null||y.abort()}}),(w=f.current)==null||w.resolve(g)},[e,JSON.stringify(t),l]);const m=c.useCallback(()=>{u.current||(a(v=>v+1),f.current=Bk())},[a]);return{data:r,setData:o,error:s,reload:m,loading:u.current||f.current,getData:()=>p.current}}function k4(e,t,n){t=et.omitBy(t,et.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(q4()+ju+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 Iue(e,t={}){const[n,r]=Co(void 0),[o,s]=Co(void 0),[i,l]=Co(!1);return c.useEffect(()=>{const a=k4(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 Tk(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 Mue(e,t,n,r){const o=c.useRef(t);E4(()=>{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 _ue(){const e=c.useRef(!1);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),c.useCallback(()=>e.current,[])}const E4=typeof window!="undefined"?c.useLayoutEffect:c.useEffect;function Fb(){const[e,t]=c.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Mue("resize",n),E4(()=>{n()},[]),e}function Co(e){const t=_ue(),[n,r]=c.useState(e),o=c.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function Tue(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function $ue(e,t){const n=[];for(const r of Tue(t))n.push(r,e);return n.splice(-1,1),ch(n)}function ch(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?ch(t):c.createElement(c.Fragment,{key:n,children:t}))}function I4(){const[e,t]=c.useState(0);return Object.assign(c.useCallback(()=>t(n=>n+1),[t]),{state:e})}function qg(e,t,{delay:n=0}={}){const r=qg.worker2env||(qg.worker2env=e&&new Map),o=r&&(r.get(e)||(()=>{const l={batch:new Set,cache:new Map};return r.set(e,l),l})()),s=I4();c.useEffect(()=>{e&&(o.waiter||(o.waiter=new Promise(l=>{setTimeout(()=>ot(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 m;return o.cache.set(f,(m=u[p])!=null?m: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),xe({data:i},o)}function Rue(n){var r=n,{margin:e}=r,t=Ft(r,["margin"]);const o=c.useRef(),[s,i]=c.useState(),l=Fb();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",xe({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}const Oue=navigator.platform.match("Mac");function Nb(e){return(e.ctrlKey||Oue&&e.metaKey)&&e.key}const Due=Symbol(),$k=Symbol(),Gf="a",Yg="w";let Aue=(e,t)=>new Proxy(e,t);const Bx=Object.getPrototypeOf,zx=new WeakMap,M4=e=>e&&(zx.has(e)?zx.get(e):Bx(e)===Object.prototype||Bx(e)===Array.prototype),JR=e=>typeof e=="object"&&e!==null,Lue=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(Bx(e),t)},_4=e=>e[$k]||e,T4=(e,t,n,r)=>{if(!M4(e))return e;let o=r&&r.get(e);if(!o){const a=_4(e);o=(u=>Object.values(Object.getOwnPropertyDescriptors(u)).some(f=>!f.configurable&&!f.writable))(a)?[a,Lue(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 m=(y,g)=>{if(!p){let C=f[Gf].get(a);if(C||(C={},f[Gf].set(a,C)),y===Yg)C[Yg]=!0;else{let w=C[y];w||(w=new Set,C[y]=w),w.add(g)}}},v={get:(y,g)=>g===$k?a:(m("k",g),T4(Reflect.get(y,g),f[Gf],f.c,f.t)),has:(y,g)=>g===Due?(p=!0,f[Gf].delete(a),!0):(m("h",g),Reflect.has(y,g)),getOwnPropertyDescriptor:(y,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(y,g)),ownKeys:y=>(m(Yg),Reflect.ownKeys(y))};return u&&(v.set=v.deleteProperty=()=>!1),[v,f]})(s,!!i),l[1].p=Aue(i||s,l[0]),n&&n.set(s,l)),l[1][Gf]=t,l[1].c=n,l[1].t=r,l[1].p},$4=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!JR(e)||!JR(t))return!0;const o=n.get(_4(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[Yg]===!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=$4(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},Fue=e=>M4(e)&&e[$k]||null,eO=(e,t=!0)=>{zx.set(e,t)};const zw=e=>typeof e=="object"&&e!==null,Zl=new WeakMap,ip=new WeakSet,Nue=(e=Object.is,t=(u,f)=>new Proxy(u,f),n=u=>zw(u)&&!ip.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 m=o.get(u);if((m==null?void 0:m[0])===f)return m[1];const v=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return eO(v,!0),o.set(u,[f,v]),Reflect.ownKeys(u).forEach(y=>{if(Object.getOwnPropertyDescriptor(v,y))return;const g=Reflect.get(u,y),{enumerable:C}=Reflect.getOwnPropertyDescriptor(u,y),w={value:g,enumerable:C,configurable:!0};if(ip.has(g))eO(g,!1);else if(g instanceof Promise)delete w.value,w.get=()=>p(g);else if(Zl.has(g)){const[b,S]=Zl.get(g);w.value=s(b,S(),p)}Object.defineProperty(v,y,w)}),Object.preventExtensions(v)},i=new WeakMap,l=[1,1],a=u=>{if(!zw(u))throw new Error("object required");const f=i.get(u);if(f)return f;let p=l[0];const m=new Set,v=(A,$=++l[0])=>{p!==$&&(p=$,m.forEach(L=>L(A,$)))};let y=l[1];const g=(A=++l[1])=>(y!==A&&!m.size&&(y=A,w.forEach(([$])=>{const L=$[1](A);L>p&&(p=L)})),p),C=A=>($,L)=>{const B=[...$];B[1]=[A,...B[1]],v(B,L)},w=new Map,b=(A,$)=>{if(m.size){const L=$[3](C(A));w.set(A,[$,L])}else w.set(A,[$])},S=A=>{var $;const L=w.get(A);L&&(w.delete(A),($=L[1])==null||$.call(L))},E=A=>(m.add(A),m.size===1&&w.forEach(([L,B],z)=>{const M=L[3](C(z));w.set(z,[L,M])}),()=>{m.delete(A),m.size===0&&w.forEach(([L,B],z)=>{B&&(B(),w.set(z,[L]))})}),_=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),I=t(_,{deleteProperty(A,$){const L=Reflect.get(A,$);S($);const B=Reflect.deleteProperty(A,$);return B&&v(["delete",[$],L]),B},set(A,$,L,B){const z=Reflect.has(A,$),M=Reflect.get(A,$,B);if(z&&(e(M,L)||i.has(L)&&e(M,i.get(L))))return!0;S($),zw(L)&&(L=Fue(L)||L);let T=L;if(L instanceof Promise)L.then(F=>{L.status="fulfilled",L.value=F,v(["resolve",[$],F])}).catch(F=>{L.status="rejected",L.reason=F,v(["reject",[$],F])});else{!Zl.has(L)&&n(L)&&(T=a(L));const F=!ip.has(T)&&Zl.get(T);F&&b($,F)}return Reflect.set(A,$,T,B),v(["set",[$],L,M]),!0}});i.set(u,I);const R=[_,g,s,E];return Zl.set(I,R),Reflect.ownKeys(u).forEach(A=>{const $=Object.getOwnPropertyDescriptor(u,A);"value"in $&&(I[A]=u[A],delete $.value,delete $.writable),Object.defineProperty(_,A,$)}),I})=>[a,Zl,ip,e,t,n,r,o,s,i,l],[Bue]=Nue();function Rk(e={}){return Bue(e)}function Ok(e,t,n){const r=Zl.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 tO(e,t){const n=Zl.get(e),[r,o,s]=n;return s(r,o(),t)}function zue(e){return ip.add(e),e}var R4={exports:{}},O4={};/**
|
|
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 kd=c;function Vue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jue=typeof Object.is=="function"?Object.is:Vue,Hue=kd.useState,Uue=kd.useEffect,Wue=kd.useLayoutEffect,Gue=kd.useDebugValue;function Kue(e,t){var n=t(),r=Hue({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Wue(function(){o.value=n,o.getSnapshot=t,Vw(o)&&s({inst:o})},[e,n,t]),Uue(function(){return Vw(o)&&s({inst:o}),e(function(){Vw(o)&&s({inst:o})})},[e]),Gue(n),n}function Vw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jue(e,n)}catch(r){return!0}}function que(e,t){return t()}var Yue=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?que:Kue;O4.useSyncExternalStore=kd.useSyncExternalStore!==void 0?kd.useSyncExternalStore:Yue;R4.exports=O4;var Que=R4.exports;const Xue=di(Que),{use:nO}=co,{useSyncExternalStore:Zue}=Xue;const Jue=new WeakMap;function Dk(e,t){const n=t==null?void 0:t.sync,r=c.useRef(),o=c.useRef();let s=!0;const i=Zue(c.useCallback(u=>{const f=Ok(e,u,n);return u(),f},[e,n]),()=>{const u=tO(e,nO);try{if(!s&&r.current&&o.current&&!$4(r.current,u,o.current,new WeakMap))return r.current}catch(f){}return u},()=>tO(e,nO));s=!1;const l=new WeakMap;c.useEffect(()=>{r.current=i,o.current=l});const a=c.useMemo(()=>new WeakMap,[]);return T4(i,l,a,Jue)}const Ed=Rk([]),Vx={closableContent:"x",padding:!0},D4=['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(D4),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&ede(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function ede(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function tde(){const e=Dk(Ed);return c.useEffect(()=>{document.body.style.overflow=e.length?"hidden":""},[e.length]),c.createElement(c.Fragment,{},e.length>0&&e.map(t=>c.createElement(nde,xe({key:t.$id},t))))}function nde(e){var r;const t=c.useRef();if(c.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=xe(xe({},Vx),e),e.Container)return c.createElement(e.Container,e);return c.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:rde,onClick:o=>o.target===o.currentTarget&&ji()},e.noFrame?c.createElement(e.Content||"div"):c.createElement("div",xe({role:"dialog","aria-modal":!0,className:"dialog",style:xe(xe({},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(){ji()}},e.closableContent),e.icon&&c.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},Gv(e.icon)),c.createElement("div",{className:"dialog-title"},Gv(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&&xe(xe({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 Gv(e){return yfe(e)||c.isValidElement(e)?e:c.createElement(e)}function rde(e){e.key==="Escape"&&ji()}function Oo(e){const t=Math.random();return e.$id=t,e=Qb(e,r=>c.isValidElement(r)?zue(r):r),Ed.push(e),{close:n};function n(r){const o=Ed.findIndex(s=>s.$id===t);if(!(o<0))return A4(o,r)}}function ji(e){let t=Ed.length;for(;t--;){const n=Ed[t];if(!n.reserveClosing)return A4(t,e),n}}function A4(e,t){var r;const[n]=Ed.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var gc={},Bb={},Id={};const ode={},sde=Object.freeze(Object.defineProperty({__proto__:null,default:ode},Symbol.toStringTag,{value:"Module"})),rO=cA(sde);Object.defineProperty(Id,"__esModule",{value:!0});var oO=Id.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||rO.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);oO=Id.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=rO,n=r=>o=>t.createHash(r).update(o).digest().buffer;oO=Id.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(Bb,"__esModule",{value:!0});Bb.SRPParameters=void 0;const gg=Id;class Md{constructor(t=Md.PrimeGroup[2048],n=Md.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}Bb.SRPParameters=Md;Md.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)}};Md.H={SHA1:gg.crossEnvCrypto.hashFunctions.SHA1,SHA256:gg.crossEnvCrypto.hashFunctions.SHA256,SHA384:gg.crossEnvCrypto.hashFunctions.SHA384,SHA512:gg.crossEnvCrypto.hashFunctions.SHA512};var zb={},Vb={};(function(e){var t=ln&&ln.__awaiter||function(S,E,_,k){function I(R){return R instanceof _?R:new _(function(A){A(R)})}return new(_||(_=Promise))(function(R,A){function $(z){try{B(k.next(z))}catch(M){A(M)}}function L(z){try{B(k.throw(z))}catch(M){A(M)}}function B(z){z.done?R(z.value):I(z.value).then($,L)}B((k=k.apply(S,E||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=Id,r=BigInt(0),o=BigInt(1),s=BigInt(2),i=S=>{const E=S.toString(16),_=new ArrayBuffer(Math.ceil(E.length/2)),k=new Uint8Array(_);let I=0;E.length%2!==0&&(k[0]=parseInt(E[0],16),I=1);for(let R=0;R<_.byteLength;R++)k[R+I]=parseInt(E.slice(2*R+I,2*R+2+I),16);return _};e.bigIntToArrayBuffer=i;const l=S=>{const E=[];return new Uint8Array(S).forEach(_=>{E.push(("0"+_.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=l;function a(S){return new TextEncoder().encode(S).buffer}e.stringToArrayBuffer=a;const u=(S,E)=>{const _=new Uint8Array(S);if(_.length<E){const k=new Uint8Array(E);return k.fill(0,0,E-_.length),k.set(_,E-_.length),k}return _};e.padStartArrayBuffer=u;function f(S,...E){const _=E.reduce((I,R)=>I+R.byteLength,0),k=new Uint8Array(_);for(let I=0,R=0;R<E.length;R++)k.set(new Uint8Array(E[R]),I),I+=E[R].byteLength;return S.H(k)}e.hash=f;function p(S,E,..._){const k=_.map(I=>e.padStartArrayBuffer(I,E));return f(S,...k)}e.hashPadded=p;function m(S=10){const E=new Uint8Array(Math.ceil(Math.ceil(S/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((_,k)=>{const I=k.toString(16).toString();return I.length===1?_+"0"+I:_+I},"").slice(0,S)}e.generateRandomString=m;function v(S=16){return e.arrayBufferToBigInt(b(S))}e.generateRandomBigInt=v;function y(S,E,_,k){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!_)throw new Error("Salt (s) must not be null.");if(!k)throw new Error("Password (P) must not be null");const I=yield S.computeX(E,_,k);return S.computeVerifier(I)})}e.createVerifier=y;function g(S,E,_,k){return t(this,void 0,void 0,function*(){const I=yield S.generateRandomSalt(k);return{s:I,v:yield y(S,E,I,_)}})}e.createVerifierAndSalt=g;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 w(S,E,_){let k=o;for(;E>r;)E%s==o?(k=S*k%_,E-=o):(S=S*S%_,E/=s);return k}e.modPow=w;const b=S=>{const E=new Uint8Array(S);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(Vb);var Hl=ln&&ln.__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(zb,"__esModule",{value:!0});zb.SRPRoutines=void 0;const hn=Vb;class ide{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 Hl(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 Hl(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 Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Hl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Hl(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 Hl(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 Hl(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 Hl(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)}}zb.SRPRoutines=ide;var wa={},Ak=ln&&ln.__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(wa,"__esModule",{value:!0});wa.SRPClientSessionStep2=wa.SRPClientSessionStep1=wa.SRPClientSession=void 0;class lde{constructor(t){this.routines=t}step1(t,n){return Ak(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 jb(this.routines,t,r)})}}wa.SRPClientSession=lde;class jb{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return Ak(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 Hb(this.routines,s,u,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new jb(t,n.I,new Uint8Array(n.IH).buffer)}}wa.SRPClientSessionStep1=jb;class Hb{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return Ak(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 Hb(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}wa.SRPClientSessionStep2=Hb;var _d={},jx=ln&&ln.__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(_d,"__esModule",{value:!0});_d.SRPServerSessionStep1=_d.SRPServerSession=void 0;const Hx=Vb;class ade{constructor(t){this.routines=t}step1(t,n,r){return jx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=cde(this.routines.parameters,s,r,o);return new Ub(this.routines,t,n,r,o,i)})}}_d.SRPServerSession=ade;class Ub{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 jx(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 ude(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return jx(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 Ub(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}_d.SRPServerSessionStep1=Ub;const cde=(e,t,n,r)=>(Hx.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,ude=(e,t,n,r,o)=>Hx.modPow(Hx.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=Bb;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=zb;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=wa;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=_d;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=Vb;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}})})(gc);function dde(e,t,n){return ot(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const s=yield fde(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 fde(e,t,n,r){return ot(this,null,function*(){const o=new gc.SRPRoutines(new gc.SRPParameters);return yield(yield new gc.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}var Wb={};const Ci="\\\\/",sO=`[^${Ci}]`,ll="\\.",pde="\\+",hde="\\?",Gb="\\/",mde="(?=.)",L4="[^/]",Lk=`(?:${Gb}|$)`,F4=`(?:^|${Gb})`,Fk=`${ll}{1,2}${Lk}`,gde=`(?!${ll})`,vde=`(?!${F4}${Fk})`,yde=`(?!${ll}{0,1}${Lk})`,bde=`(?!${Fk})`,wde=`[^.${Gb}]`,Cde=`${L4}*?`,xde="/",N4={DOT_LITERAL:ll,PLUS_LITERAL:pde,QMARK_LITERAL:hde,SLASH_LITERAL:Gb,ONE_CHAR:mde,QMARK:L4,END_ANCHOR:Lk,DOTS_SLASH:Fk,NO_DOT:gde,NO_DOTS:vde,NO_DOT_SLASH:yde,NO_DOTS_SLASH:bde,QMARK_NO_DOT:wde,STAR:Cde,START_ANCHOR:F4,SEP:xde},Sde=st(xe({},N4),{SLASH_LITERAL:`[${Ci}]`,QMARK:sO,STAR:`${sO}*?`,DOTS_SLASH:`${ll}{1,2}(?:[${Ci}]|$)`,NO_DOT:`(?!${ll})`,NO_DOTS:`(?!(?:^|[${Ci}])${ll}{1,2}(?:[${Ci}]|$))`,NO_DOT_SLASH:`(?!${ll}{0,1}(?:[${Ci}]|$))`,NO_DOTS_SLASH:`(?!${ll}{1,2}(?:[${Ci}]|$))`,QMARK_NO_DOT:`[^.${Ci}]`,START_ANCHOR:`(?:^|[${Ci}])`,END_ANCHOR:`(?:[${Ci}]|$)`,SEP:"\\"}),Pde={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Kb={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Pde,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Sde:N4}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=Kb;e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(o,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.removeBackslashes=s=>s.replace(n,i=>i==="\\"?"":i),e.supportsLookbehinds=()=>{if(typeof process!="undefined"){const s=process.version.slice(1).split(".").map(Number);if(s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10)return!0}return!1},e.escapeLast=(s,i,l)=>{const a=s.lastIndexOf(i,l);return a===-1?s:s[a-1]==="\\"?e.escapeLast(s,i,a-1):`${s.slice(0,a)}\\${s.slice(a)}`},e.removePrefix=(s,i={})=>{let l=s;return l.startsWith("./")&&(l=l.slice(2),i.prefix="./"),l},e.wrapOutput=(s,i={},l={})=>{const a=l.contains?"":"^",u=l.contains?"":"$";let f=`${a}(?:${s})${u}`;return i.negated===!0&&(f=`(?:^(?!${f}).*$)`),f},e.basename=(s,{windows:i}={})=>{const l=s.split(i?/[\\/]/:"/"),a=l[l.length-1];return a===""?l[l.length-2]:a}})(Wb);const iO=Wb,{CHAR_ASTERISK:jw,CHAR_AT:kde,CHAR_BACKWARD_SLASH:lp,CHAR_COMMA:Ede,CHAR_DOT:Hw,CHAR_EXCLAMATION_MARK:Uw,CHAR_FORWARD_SLASH:B4,CHAR_LEFT_CURLY_BRACE:Ww,CHAR_LEFT_PARENTHESES:Gw,CHAR_LEFT_SQUARE_BRACKET:Ide,CHAR_PLUS:Mde,CHAR_QUESTION_MARK:lO,CHAR_RIGHT_CURLY_BRACE:_de,CHAR_RIGHT_PARENTHESES:aO,CHAR_RIGHT_SQUARE_BRACKET:Tde}=Kb,cO=e=>e===B4||e===lp,uO=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},$de=(e,t)=>{const n=t||{},r=e.length-1,o=n.parts===!0||n.scanToEnd===!0,s=[],i=[],l=[];let a=e,u=-1,f=0,p=0,m=!1,v=!1,y=!1,g=!1,C=!1,w=!1,b=!1,S=!1,E=!1,_=!1,k=0,I,R,A={value:"",depth:0,isGlob:!1};const $=()=>u>=r,L=()=>a.charCodeAt(u+1),B=()=>(I=R,a.charCodeAt(++u));for(;u<r;){R=B();let j;if(R===lp){b=A.backslashes=!0,R=B(),R===Ww&&(w=!0);continue}if(w===!0||R===Ww){for(k++;$()!==!0&&(R=B());){if(R===lp){b=A.backslashes=!0,B();continue}if(R===Ww){k++;continue}if(w!==!0&&R===Hw&&(R=B())===Hw){if(m=A.isBrace=!0,y=A.isGlob=!0,_=!0,o===!0)continue;break}if(w!==!0&&R===Ede){if(m=A.isBrace=!0,y=A.isGlob=!0,_=!0,o===!0)continue;break}if(R===_de&&(k--,k===0)){w=!1,m=A.isBrace=!0,_=!0;break}}if(o===!0)continue;break}if(R===B4){if(s.push(u),i.push(A),A={value:"",depth:0,isGlob:!1},_===!0)continue;if(I===Hw&&u===f+1){f+=2;continue}p=u+1;continue}if(n.noext!==!0&&(R===Mde||R===kde||R===jw||R===lO||R===Uw)===!0&&L()===Gw){if(y=A.isGlob=!0,g=A.isExtglob=!0,_=!0,R===Uw&&u===f&&(E=!0),o===!0){for(;$()!==!0&&(R=B());){if(R===lp){b=A.backslashes=!0,R=B();continue}if(R===aO){y=A.isGlob=!0,_=!0;break}}continue}break}if(R===jw){if(I===jw&&(C=A.isGlobstar=!0),y=A.isGlob=!0,_=!0,o===!0)continue;break}if(R===lO){if(y=A.isGlob=!0,_=!0,o===!0)continue;break}if(R===Ide){for(;$()!==!0&&(j=B());){if(j===lp){b=A.backslashes=!0,B();continue}if(j===Tde){v=A.isBracket=!0,y=A.isGlob=!0,_=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&R===Uw&&u===f){S=A.negated=!0,f++;continue}if(n.noparen!==!0&&R===Gw){if(y=A.isGlob=!0,o===!0){for(;$()!==!0&&(R=B());){if(R===Gw){b=A.backslashes=!0,R=B();continue}if(R===aO){_=!0;break}}continue}break}if(y===!0){if(_=!0,o===!0)continue;break}}n.noext===!0&&(g=!1,y=!1);let z=a,M="",T="";f>0&&(M=a.slice(0,f),a=a.slice(f),p-=f),z&&y===!0&&p>0?(z=a.slice(0,p),T=a.slice(p)):y===!0?(z="",T=a):z=a,z&&z!==""&&z!=="/"&&z!==a&&cO(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),n.unescape===!0&&(T&&(T=iO.removeBackslashes(T)),z&&b===!0&&(z=iO.removeBackslashes(z)));const F={prefix:M,input:e,start:f,base:z,glob:T,isBrace:m,isBracket:v,isGlob:y,isExtglob:g,isGlobstar:C,negated:S,negatedExtglob:E};if(n.tokens===!0&&(F.maxDepth=0,cO(R)||i.push(A),F.tokens=i),n.parts===!0||n.tokens===!0){let j;for(let D=0;D<s.length;D++){const N=j?j+1:f,H=s[D],K=e.slice(N,H);n.tokens&&(D===0&&f!==0?(i[D].isPrefix=!0,i[D].value=M):i[D].value=K,uO(i[D]),F.maxDepth+=i[D].depth),(D!==0||K!=="")&&l.push(K),j=H}if(j&&j+1<e.length){const D=e.slice(j+1);l.push(D),n.tokens&&(i[i.length-1].value=D,uO(i[i.length-1]),F.maxDepth+=i[i.length-1].depth)}F.slashes=s,F.parts=l}return F};var Rde=$de;const Kv=Kb,qs=Wb,{MAX_LENGTH:qv,POSIX_REGEX_SOURCE:Ode,REGEX_NON_SPECIAL_CHARS:Dde,REGEX_SPECIAL_CHARS_BACKREF:Ade,REPLACEMENTS:z4}=Kv,Lde=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(r){return e.map(o=>qs.escapeRegex(o)).join("..")}return n},mu=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Nk=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=z4[e]||e;const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(qv,n.maxLength):qv;let o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},i=[s],l=n.capture?"":"?:",a=Kv.globChars(n.windows),u=Kv.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:v,DOTS_SLASH:y,NO_DOT:g,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:b,QMARK_NO_DOT:S,STAR:E,START_ANCHOR:_}=a,k=Z=>`(${l}(?:(?!${_}${Z.dot?y:f}).)*?)`,I=n.dot?"":g,R=n.dot?b:S;let A=n.bash===!0?k(n):E;n.capture&&(A=`(${A})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const $={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=qs.removePrefix(e,$),o=e.length;const L=[],B=[],z=[];let M=s,T;const F=()=>$.index===o-1,j=$.peek=(Z=1)=>e[$.index+Z],D=$.advance=()=>e[++$.index]||"",N=()=>e.slice($.index+1),H=(Z="",he=0)=>{$.consumed+=Z,$.index+=he},K=Z=>{$.output+=Z.output!=null?Z.output:Z.value,H(Z.value)},Y=()=>{let Z=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)D(),$.start++,Z++;return Z%2===0?!1:($.negated=!0,$.start++,!0)},te=Z=>{$[Z]++,z.push(Z)},Q=Z=>{$[Z]--,z.pop()},X=Z=>{if(M.type==="globstar"){const he=$.braces>0&&(Z.type==="comma"||Z.type==="brace"),ne=Z.extglob===!0||L.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!he&&!ne&&($.output=$.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=A,$.output+=M.output)}if(L.length&&Z.type!=="paren"&&(L[L.length-1].inner+=Z.value),(Z.value||Z.output)&&K(Z),M&&M.type==="text"&&Z.type==="text"){M.value+=Z.value,M.output=(M.output||"")+Z.value;return}Z.prev=M,i.push(Z),M=Z},J=(Z,he)=>{const ne=st(xe({},u[he]),{conditions:1,inner:""});ne.prev=M,ne.parens=$.parens,ne.output=$.output;const re=(n.capture?"(":"")+ne.open;te("parens"),X({type:Z,value:he,output:$.output?"":v}),X({type:"paren",extglob:!0,value:D(),output:re}),L.push(ne)},se=Z=>{let he=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=A;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=k(n)),(re!==A||F()||/^\)+$/.test(N()))&&(he=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=N())&&/^\.[^\\/.]+$/.test(ne)){const me=Nk(ne,st(xe({},t),{fastpaths:!1})).output;he=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&($.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:T,output:he}),Q("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,he=e.replace(Ade,(ne,re,me,ce,Se,Ee)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(Se?b.repeat(Se.length):""):Ee===0?R+(Se?b.repeat(Se.length):""):b.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(Se?A:""):A:re?ne:`\\${ne}`);return Z===!0&&(n.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),he===e&&n.contains===!0?($.output=e,$):($.output=qs.wrapOutput(he,$,t),$)}for(;!F();){if(T=D(),T==="\0")continue;if(T==="\\"){const ne=j();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){T+="\\",X({type:"text",value:T});continue}const re=/^\\+/.exec(N());let me=0;if(re&&re[0].length>2&&(me=re[0].length,$.index+=me,me%2!==0&&(T+="\\")),n.unescape===!0?T=D():T+=D(),$.brackets===0){X({type:"text",value:T});continue}}if($.brackets>0&&(T!=="]"||M.value==="["||M.value==="[^")){if(n.posix!==!1&&T===":"){const ne=M.value.slice(1);if(ne.includes("[")&&(M.posix=!0,ne.includes(":"))){const re=M.value.lastIndexOf("["),me=M.value.slice(0,re),ce=M.value.slice(re+2),Se=Ode[ce];if(Se){M.value=me+Se,$.backtrack=!0,D(),!s.output&&i.indexOf(M)===1&&(s.output=v);continue}}}(T==="["&&j()!==":"||T==="-"&&j()==="]")&&(T=`\\${T}`),T==="]"&&(M.value==="["||M.value==="[^")&&(T=`\\${T}`),n.posix===!0&&T==="!"&&M.value==="["&&(T="^"),M.value+=T,K({value:T});continue}if($.quotes===1&&T!=='"'){T=qs.escapeRegex(T),M.value+=T,K({value:T});continue}if(T==='"'){$.quotes=$.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:T});continue}if(T==="("){te("parens"),X({type:"paren",value:T});continue}if(T===")"){if($.parens===0&&n.strictBrackets===!0)throw new SyntaxError(mu("opening","("));const ne=L[L.length-1];if(ne&&$.parens===ne.parens+1){se(L.pop());continue}X({type:"paren",value:T,output:$.parens?")":"\\)"}),Q("parens");continue}if(T==="["){if(n.nobracket===!0||!N().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));T=`\\${T}`}else te("brackets");X({type:"bracket",value:T});continue}if(T==="]"){if(n.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){X({type:"text",value:T,output:`\\${T}`});continue}if($.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mu("opening","["));X({type:"text",value:T,output:`\\${T}`});continue}Q("brackets");const ne=M.value.slice(1);if(M.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(T=`/${T}`),M.value+=T,K({value:T}),n.literalBrackets===!1||qs.hasRegexChars(ne))continue;const re=qs.escapeRegex(M.value);if($.output=$.output.slice(0,-M.value.length),n.literalBrackets===!0){$.output+=re,M.value=re;continue}M.value=`(${l}${re}|${M.value})`,$.output+=M.value;continue}if(T==="{"&&n.nobrace!==!0){te("braces");const ne={type:"brace",value:T,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};B.push(ne),X(ne);continue}if(T==="}"){const ne=B[B.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:T,output:T});continue}let re=")";if(ne.dots===!0){const me=i.slice(),ce=[];for(let Se=me.length-1;Se>=0&&(i.pop(),me[Se].type!=="brace");Se--)me[Se].type!=="dots"&&ce.unshift(me[Se].value);re=Lde(ce,n),$.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){const me=$.output.slice(0,ne.outputIndex),ce=$.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",T=re="\\}",$.output=me;for(const Se of ce)$.output+=Se.output||Se.value}X({type:"brace",value:T,output:re}),Q("braces"),B.pop();continue}if(T==="|"){L.length>0&&L[L.length-1].conditions++,X({type:"text",value:T});continue}if(T===","){let ne=T;const re=B[B.length-1];re&&z[z.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:T,output:ne});continue}if(T==="/"){if(M.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",i.pop(),M=s;continue}X({type:"slash",value:T,output:m});continue}if(T==="."){if($.braces>0&&M.type==="dot"){M.value==="."&&(M.output=f);const ne=B[B.length-1];M.type="dots",M.output+=T,M.value+=T,ne.dots=!0;continue}if($.braces+$.parens===0&&M.type!=="bos"&&M.type!=="slash"){X({type:"text",value:T,output:f});continue}X({type:"dot",value:T,output:f});continue}if(T==="?"){if(!(M&&M.value==="(")&&n.noextglob!==!0&&j()==="("&&j(2)!=="?"){J("qmark",T);continue}if(M&&M.type==="paren"){const re=j();let me=T;if(re==="<"&&!qs.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(M.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(N()))&&(me=`\\${T}`),X({type:"text",value:T,output:me});continue}if(n.dot!==!0&&(M.type==="slash"||M.type==="bos")){X({type:"qmark",value:T,output:S});continue}X({type:"qmark",value:T,output:b});continue}if(T==="!"){if(n.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){J("negate",T);continue}if(n.nonegate!==!0&&$.index===0){Y();continue}}if(T==="+"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){J("plus",T);continue}if(M&&M.value==="("||n.regex===!1){X({type:"plus",value:T,output:p});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||$.parens>0){X({type:"plus",value:T});continue}X({type:"plus",value:p});continue}if(T==="@"){if(n.noextglob!==!0&&j()==="("&&j(2)!=="?"){X({type:"at",extglob:!0,value:T,output:""});continue}X({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const ne=Dde.exec(N());ne&&(T+=ne[0],$.index+=ne[0].length),X({type:"text",value:T});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=T,M.output=A,$.backtrack=!0,$.globstar=!0,H(T);continue}let Z=N();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){J("star",T);continue}if(M.type==="star"){if(n.noglobstar===!0){H(T);continue}const ne=M.prev,re=ne.prev,me=ne.type==="slash"||ne.type==="bos",ce=re&&(re.type==="star"||re.type==="globstar");if(n.bash===!0&&(!me||Z[0]&&Z[0]!=="/")){X({type:"star",value:T,output:""});continue}const Se=$.braces>0&&(ne.type==="comma"||ne.type==="brace"),Ee=L.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!Se&&!Ee){X({type:"star",value:T,output:""});continue}for(;Z.slice(0,3)==="/**";){const ae=e[$.index+4];if(ae&&ae!=="/")break;Z=Z.slice(3),H("/**",3)}if(ne.type==="bos"&&F()){M.type="globstar",M.value+=T,M.output=k(n),$.output=M.output,$.globstar=!0,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&F()){$.output=$.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=k(n)+(n.strictSlashes?")":"|$)"),M.value+=T,$.globstar=!0,$.output+=ne.output+M.output,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const ae=Z[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=`${k(n)}${m}|${m}${ae})`,M.value+=T,$.output+=ne.output+M.output,$.globstar=!0,H(T+D()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){M.type="globstar",M.value+=T,M.output=`(?:^|${m}|${k(n)}${m})`,$.output=M.output,$.globstar=!0,H(T+D()),X({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-M.output.length),M.type="globstar",M.output=k(n),M.value+=T,$.output+=M.output,$.globstar=!0,H(T);continue}const he={type:"star",value:T,output:A};if(n.bash===!0){he.output=".*?",(M.type==="bos"||M.type==="slash")&&(he.output=I+he.output),X(he);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&n.regex===!0){he.output=T,X(he);continue}($.index===$.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?($.output+=C,M.output+=C):n.dot===!0?($.output+=w,M.output+=w):($.output+=I,M.output+=I),j()!=="*"&&($.output+=v,M.output+=v)),X(he)}for(;$.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));$.output=qs.escapeLast($.output,"["),Q("brackets")}for(;$.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing",")"));$.output=qs.escapeLast($.output,"("),Q("parens")}for(;$.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","}"));$.output=qs.escapeLast($.output,"{"),Q("braces")}if(n.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${m}?`}),$.backtrack===!0){$.output="";for(const Z of $.tokens)$.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&($.output+=Z.suffix)}return $};Nk.fastpaths=(e,t)=>{const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(qv,n.maxLength):qv,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=z4[e]||e;const{DOT_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:l,DOTS_SLASH:a,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:v}=Kv.globChars(n.windows),y=n.dot?f:u,g=n.dot?p:u,C=n.capture?"":"?:",w={negated:!1,prefix:""};let b=n.bash===!0?".*?":m;n.capture&&(b=`(${b})`);const S=I=>I.noglobstar===!0?b:`(${C}(?:(?!${v}${I.dot?a:s}).)*?)`,E=I=>{switch(I){case"*":return`${y}${l}${b}`;case".*":return`${s}${l}${b}`;case"*.*":return`${y}${b}${s}${l}${b}`;case"*/*":return`${y}${b}${i}${l}${g}${b}`;case"**":return y+S(n);case"**/*":return`(?:${y}${S(n)}${i})?${g}${l}${b}`;case"**/*.*":return`(?:${y}${S(n)}${i})?${g}${b}${s}${l}${b}`;case"**/.*":return`(?:${y}${S(n)}${i})?${s}${l}${b}`;default:{const R=/^(.*?)\.(\w+)$/.exec(I);if(!R)return;const A=E(R[1]);return A?A+s+R[2]:void 0}}},_=qs.removePrefix(e,w);let k=E(_);return k&&n.strictSlashes!==!0&&(k+=`${i}?`),k};var Fde=Nk;const Nde=Rde,Ux=Fde,V4=Wb,Bde=Kb,zde=e=>e&&typeof e=="object"&&!Array.isArray(e),nr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(m=>nr(m,t,n));return m=>{for(const v of f){const y=v(m);if(y)return y}return!1}}const r=zde(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=o.windows,i=r?nr.compileRe(e,t):nr.makeRe(e,t,!1,!0),l=i.state;delete i.state;let a=()=>!1;if(o.ignore){const f=st(xe({},t),{ignore:null,onMatch:null,onResult:null});a=nr(o.ignore,f,n)}const u=(f,p=!1)=>{const{isMatch:m,match:v,output:y}=nr.test(f,i,t,{glob:e,posix:s}),g={glob:e,state:l,regex:i,posix:s,input:f,output:y,match:v,isMatch:m};return typeof o.onResult=="function"&&o.onResult(g),m===!1?(g.isMatch=!1,p?g:!1):a(f)?(typeof o.onIgnore=="function"&&o.onIgnore(g),g.isMatch=!1,p?g:!1):(typeof o.onMatch=="function"&&o.onMatch(g),p?g:!0)};return n&&(u.state=l),u};nr.test=(e,t,n,{glob:r,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?V4.toPosixSlashes:null);let l=e===r,a=l&&i?i(e):e;return l===!1&&(a=i?i(e):e,l=a===r),(l===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?l=nr.matchBase(e,t,n,o):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};nr.matchBase=(e,t,n)=>(t instanceof RegExp?t:nr.makeRe(t,n)).test(V4.basename(e));nr.isMatch=(e,t,n)=>nr(t,n)(e);nr.parse=(e,t)=>Array.isArray(e)?e.map(n=>nr.parse(n,t)):Ux(e,st(xe({},t),{fastpaths:!1}));nr.scan=(e,t)=>Nde(e,t);nr.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;const o=t||{},s=o.contains?"":"^",i=o.contains?"":"$";let l=`${s}(?:${e.output})${i}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);const a=nr.toRegex(l,t);return r===!0&&(a.state=e),a};nr.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=Ux.fastpaths(e,t)),o.output||(o=Ux(e,t)),nr.compileRe(o,t,n,r)};nr.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};nr.constants=Bde;var Vde=nr;const jde=di(Vde),Hde=-1,Ude=" ",Xd=401,qb=403,Wde=404,Gde=406,Kde=409,Wx=424,qde=429,Yde=500,Qde={[Xd]:"Unauthorized",[qb]:"Forbidden",[Wde]:"Not found",[Yde]:"Server error",[qde]:"Too many requests"},Yb="https://github.com/rejetto/hfs/",Xde=Yb+"wiki/",Zde=6e4,Jde=60*Zde,efe=24*Jde,tfe=10,nfe=["name","extension","size","time"],rfe={auto:"",light:"light",dark:"dark"},Bn=sfe(["geo_enable","geo_allow","geo_list","geo_allow_unknown","max_downloads","max_downloads_per_ip","max_downloads_per_account","roots","roots_mandatory"]),gu={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},ofe=!0,dO=!1,Kw={can_see:"can_read",can_read:ofe,can_list:"can_read",can_upload:dO,can_delete:dO,can_archive:"can_read"};function sfe(e){return Object.fromEntries(e.map(t=>[t,t]))}function ife(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const lfe=["","K","M","G","T"];function xl(e,{post:t="B",k:n=1024,digits:r=NaN,sep:o=" "}={}){if(isNaN(Number(e))||e<0)return"";const s=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=ys(n,s),(s&&!isNaN(r)?e.toFixed(r):et.round(e,isNaN(r)?e>=100?0:1:r))+o+(lfe[s]||"")+t}function afe(e,t={}){return xl(e,xe({post:"B/s",k:1e3},t)).replace("K","k")}function Di(e,t,n=""){return t?e+t+n:""}function Bh(e,t){return new Promise(n=>setTimeout(n,e,t))}function Qb(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function cfe(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function ufe(e,t){if(typeof e=="number")return[t.slice(0,e),t.slice(e+1)];const n=t.indexOf(e);return n<0?[t,""]:[t.slice(0,n),t.slice(n+e.length)]}function dfe(e){return!!e}function jc(e){return e.filter(dfe)}function ffe(e,t){return Object.defineProperties(e,U4(t,n=>({enumerable:!1,writable:!0,value:n})))}function pfe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Ma(e,t){return t(e)}function hfe(e){return(e*100).toFixed(1)+"%"}function Xb(e){return e==null?[]:Array.isArray(e)?e:[e]}function Bk(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function j4(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function mfe(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function gfe(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function fO(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function H4(e,t){return et.isEqualWith(e,t,(n,r)=>{if(!et.isPlainObject(n)||!et.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&&H4(n[i],r[a])})})}function U4(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)&&et.isPlainObject(a)&&(a=U4(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(jc(r))}function vfe(e){return Object.keys(e)}function Gx(e){return e?new Date(e).toLocaleString():"-"}function yfe(e){return!e||Object(e)!==e}function bfe(e){return/^([.:\da-f]+)$/i.test(e)}function wfe(e){return e&&/^[a-zA-Z]:$/.test(e)}function Yv(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Yv(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||Yv(r,e[n]))}function zk(e,t){var n;return(n=t[e])!=null?n:e}function Cfe(e){return e==="::1"||e.endsWith("127.0.0.1")}function W4(e){return e.includes(":")?"["+e+"]":e}function xfe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function Sfe(e,t=!1){return e?jde(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function Pfe(e,t,n=!1){return Sfe(t,n)(e)}function kfe(e){var t;return et.findKey(Efe,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const Efe={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i};window._=et;const qw=Zb();Object.assign(qw,{getPluginKey:()=>pO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=pO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>qw.plugins[qw.getPluginKey()]||{}});function pO(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 G4(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 K4(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 Ife(){return window.innerWidth<800}function Zb(){return window.HFS}function q4(){return Zb().prefixUrl||""}function Mfe(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,et.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=et.clamp(o-3e4,4e3,6e5);console.debug("session refresh in",Math.round(s/1e3)),setTimeout(()=>ct("refresh_session").then(t),s)}}function Qv(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function _fe(e,t){return ot(this,null,function*(){const r=(yield ct("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield ct("set_config",{values:{[e]:o}}))})}function Y4(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}var Vk={},Tfe=tt;Object.defineProperty(Vk,"__esModule",{value:!0});var Q4=Vk.default=void 0,$fe=Tfe(nt()),Rfe=Ze(),Ofe=(0,$fe.default)((0,Rfe.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");Q4=Vk.default=Ofe;var jk={},Dfe=tt;Object.defineProperty(jk,"__esModule",{value:!0});var Jb=jk.default=void 0,Afe=Dfe(nt()),Lfe=Ze(),Ffe=(0,Afe.default)((0,Lfe.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");Jb=jk.default=Ffe;var Hk={},Nfe=tt;Object.defineProperty(Hk,"__esModule",{value:!0});var e0=Hk.default=void 0,Bfe=Nfe(nt()),zfe=Ze(),Vfe=(0,Bfe.default)((0,zfe.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");e0=Hk.default=Vfe;var Uk={},jfe=tt;Object.defineProperty(Uk,"__esModule",{value:!0});var Wk=Uk.default=void 0,Hfe=jfe(nt()),Ufe=Ze(),Wfe=(0,Hfe.default)((0,Ufe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Wk=Uk.default=Wfe;var Gk={},Gfe=tt;Object.defineProperty(Gk,"__esModule",{value:!0});var t0=Gk.default=void 0,Kfe=Gfe(nt()),qfe=Ze(),Yfe=(0,Kfe.default)((0,qfe.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");t0=Gk.default=Yfe;var Kk={},Qfe=tt;Object.defineProperty(Kk,"__esModule",{value:!0});var n0=Kk.default=void 0,Xfe=Qfe(nt()),Zfe=Ze(),Jfe=(0,Xfe.default)((0,Zfe.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");n0=Kk.default=Jfe;var qk={},epe=tt;Object.defineProperty(qk,"__esModule",{value:!0});var X4=qk.default=void 0,tpe=epe(nt()),npe=Ze(),rpe=(0,tpe.default)((0,npe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");X4=qk.default=rpe;var Yk={},ope=tt;Object.defineProperty(Yk,"__esModule",{value:!0});var Xv=Yk.default=void 0,spe=ope(nt()),ipe=Ze(),lpe=(0,spe.default)((0,ipe.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");Xv=Yk.default=lpe;var Qk={},ape=tt;Object.defineProperty(Qk,"__esModule",{value:!0});var r0=Qk.default=void 0,cpe=ape(nt()),upe=Ze(),dpe=(0,cpe.default)((0,upe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");r0=Qk.default=dpe;var Xk={},fpe=tt;Object.defineProperty(Xk,"__esModule",{value:!0});var zh=Xk.default=void 0,ppe=fpe(nt()),hpe=Ze(),mpe=(0,ppe.default)((0,hpe.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");zh=Xk.default=mpe;function gpe(e){return Ke("MuiLoadingButton",e)}const vpe=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nl=vpe,ype=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],bpe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Pe(n)}`],endIcon:[t&&`endIconLoading${Pe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Pe(n)}`]},s=Te(o,gpe,r);return x({},r,s)},wpe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Cpe=oe(Yn,{shouldForwardProp:e=>wpe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${nl.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${nl.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>x({[`& .${nl.startIconLoadingStart}, & .${nl.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}),[`&.${nl.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${nl.startIconLoadingStart}, & .${nl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${nl.startIconLoadingStart}, & .${nl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),xpe=oe("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Pe(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})),Spe=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=le(r,ype),m=Kt(i),v=a!=null?a:O.jsx(Vi,{"aria-labelledby":m,color:"inherit",size:16}),y=x({},r,{disabled:s,loading:l,loadingIndicator:v,loadingPosition:u,variant:f}),g=bpe(y),C=l?O.jsx(xpe,{className:g.loadingIndicator,ownerState:y,children:v}):null;return O.jsxs(Cpe,x({disabled:s||l,id:m,ref:n},p,{variant:f,classes:g,ownerState:y,children:[y.loadingPosition==="end"?o:C,y.loadingPosition==="end"?C:o]}))}),Z4=Spe;function Wi(m){var v=m,{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[g,C]=c.useState(y),w=c.useRef(y);c.useEffect(()=>{C(y),w.current=y},[y]);const b=c.useRef(),S=_=>c.createElement(Na,xe(st(xe({fullWidth:!0,InputLabelProps:g||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:g,onChange(k){let I=k.target.value;if(u){const R=u(I);if(R===!1)return;I=R}C(I),(i||b.current===void 0)&&E(k,I)},onKeyDown(k){var I;(I=p.onKeyDown)==null||I.call(p,k),(k.key==="Enter"||k.code===void 0)&&E(k)},onFocus(k){b.current=k.target.value},onBlur(k){var I;(I=p.onBlur)==null||I.call(p,k),b.current!==k.target.value&&E(k)},InputProps:xe({startAdornment:l&&c.createElement(Cl,{position:"start"},l),endAdornment:a&&c.createElement(Cl,{position:"end"},a)},p.InputProps)}),_));return f?c.createElement(Fh,{freeSolo:!0,options:f,renderInput:S}):S(null);function E(_,k=g){k=k.trim(),k!==w.current&&(w.current=k,t(k,{was:e,event:_,cancel(){C(y)}}))}}var Zk={},Ppe=tt;Object.defineProperty(Zk,"__esModule",{value:!0});var J4=Zk.default=void 0,kpe=Ppe(nt()),Epe=Ze(),Ipe=(0,kpe.default)((0,Epe.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");J4=Zk.default=Ipe;function Kr(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(Na,st(xe(xe({},e5(e)),i),{onChange(a){try{let u=a.target.value;u=JSON.parse(u),n(u,{was:t,event:a})}catch(u){}}}))}function o0(e){const C=e,{value:t,onChange:n,setApi:r,options:o,sx:s,clearable:i,clearValue:l,placeholder:a,autocompleteProps:u}=C,f=Ft(C,["value","onChange","setApi","options","sx","clearable","clearValue","placeholder","autocompleteProps"]),w=e5(st(xe({clearValue:[]},e),{clearable:!1})),{select:p,InputProps:m}=w,v=Ft(w,["select","InputProps"]),y=c.useMemo(()=>t5(o),[o]),g=c.useMemo(()=>Array.isArray(t)?t.map(b=>y.find(S=>S.value===b)||{value:b,label:String(b)}):[],[t,y]);return c.createElement(Fh,st(xe(xe({multiple:!0,options:y,filterSelectedOptions:!0,onChange:(b,S)=>n(S.map(E=>E.value),{was:t,event:b}),isOptionEqualToValue:(b,S)=>b.value===S.value,getOptionLabel:b=>b.label,renderOption:(b,S)=>c.createElement("span",b,S.label)},v),u),{value:g,renderInput:b=>c.createElement(Na,xe(st(xe({},f),{placeholder:g.length?void 0:a,SelectProps:{multiple:!0},sx:st(xe({},f.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),b)),sx:xe({".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 e5(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=t5(t),u=JSON.stringify(l),f=a.find(m=>JSON.stringify(m.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:xe({startAdornment:(r||p)&&c.createElement(Cl,{position:"start"},p&&c.createElement(Ml,{title:"Clear",children:c.createElement(xr,{onClick(m){e.onChange(i,{was:l,event:m})}},c.createElement(J4))}),r),endAdornment:o&&c.createElement(Cl,{position:"end"},o)},e.InputProps),children:a.map((m,v)=>c.createElement(Pr,{key:v,value:JSON.stringify(m==null?void 0:m.value),children:c.createElement(c.Fragment,{key:v},m==null?void 0:m.label)}))}}function t5(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 $p(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(Wi,st(xe({},n),{value:e,disabled:!0}))}function jo(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(Wi,xe({type:"number",value:e==null?"":String(e),onChange(p,y){var g=y,{was:m}=g,v=Ft(g,["was"]);t(p?Number(p):null,st(xe({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:s,step:i},InputProps:et.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:c.createElement(Cl,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},l)})},a))}function Dn(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,m]=c.useState(f);c.useEffect(()=>m(f),[t]);const v=c.createElement(f4,st(xe({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(qN,xe({label:e,control:v,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&c.createElement(qd,{error:s},o))}function Hc(y){var g=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:m}=g,v=Ft(g,["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[w,b]=c.useState({}),[S,E]=c.useState({}),_=typeof o=="function"?{onClick:o}:o,[k,I]=c.useState(0),R=c.useRef(!1),A=c.useRef("");c.useEffect(()=>void M(),[k]);const $={},L={};return c.createElement("form",st(xe({ref:a&&(T=>a.current=T||void 0)},m),{onSubmit(T){T.preventDefault()},onKeyDown(T){_&&!_.disabled&&(T.ctrlKey||T.metaKey)&&T.key==="Enter"&&B()}}),c.createElement(ze,xe({display:"flex",flexDirection:"column",gap:3},v),c.createElement(ri,xe({container:!0,rowSpacing:3,columnSpacing:1},p),e.map((T,F)=>{if(!T)return null;if(c.isValidElement(T))return c.createElement(ri,{key:F,item:!0,xs:12},T);const Q=T,{k:j,fromField:D=et.identity,toField:N=et.identity,getError:H,error:K}=Q,Y=Ft(Q,["k","fromField","toField","getError","error"]);let te=w[j]||K||S[j];if(te===!0&&(te="Not valid"),j){const J=T.hasOwnProperty("value")?T.value:t==null?void 0:t[j],se=xe(xe({},T),Y);Object.assign(Y,{value:N(J),error:!!(te||K)||void 0,setApi(Z){L[j]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&B()},onChange(Z){var he;try{if(Z=D(Z,{originalValue:J}),E(ne=>st(xe({},ne),{[j]:!1})),(((he=L[j])==null?void 0:he.isEqual)||et.isEqual)(Z,J))return;n(Z,j),z(j)}catch(ne){E(re=>st(xe({},re),{[j]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),Array.isArray(Y.helperText)&&(Y.helperText=c.createElement(c.Fragment,{},...Y.helperText)),te&&(Y.helperText=Y.helperText?c.createElement(c.Fragment,{},c.createElement("span",{style:{borderBottom:"1px solid"}},te),c.createElement(ze,{color:"text.primary",component:"span",display:"block"},Y.helperText)):te),Y.label===void 0&&(Y.label=n5(j)),et.defaults(Y,r==null?void 0:r(se))}{const X=Y,{xs:J=12,sm:se,md:Z,lg:he,xl:ne,comp:re=Wi,before:me,after:ce,fromField:Se,toField:Ee}=X,ae=Ft(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(ae,{name:j});const Ie=$[j]=($[j]||0)+1;return c.createElement(ri,{key:j?j+Ie:F,item:!0,xs:J,sm:se,md:Z,lg:he,xl:ne},me,c.isValidElement(re)?re:c.createElement(re,ae),ce)}})),_&&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(Z4,st(xe({variant:"contained",startIcon:c.createElement(zh),children:"Save",loading:Tk(k!==0)},_),{onClick:B})),...i)));function B(){R.current=!0,z()}function z(T=""){k===0&&(A.current=T,setTimeout(()=>I(F=>F===0?1:F)))}function M(){return ot(this,null,function*(){var j,D,N;if(k===0)return;if(k===1)return I(2);const T="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],te=(yield(D=(j=L[K])==null?void 0:j.getError)==null?void 0:D.call(j,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]=te||!1,!R.current&&K===A.current)break;if(!C.current)return}b(F);try{if(!R.current)return;if(Object.values(F).some(Boolean))return yield u==null?void 0:u(T);const H=_&&_.onClick;H&&(yield H())}catch(H){yield u==null?void 0:u(H)}finally{R.current=!1,C.current&&I(0)}})}}function n5(e){return et.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function r5(){return Ab("(prefers-color-scheme: dark)")}const Mpe={};function _pe(){const e=r5()?null:Mpe;return c.useMemo(()=>XP({palette:e||{mode:"dark",text:{primary:"#bbb",secondary:"#777"},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 Tpe={"`":"code","*":"i","**":"b"};function er(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),Jk(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?c.createElement(Ls,{href:r[5],target:t},n(r[4])):r[3]?c.createElement("br"):r[1]?c.createElement(Tpe[r[1]]||c.Fragment,{},n(r[2])):c.createElement(r[6]||r[8],{},r[7]),n)}function Jk(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)))}Vx.Container=function(t){const n=c.useRef(),{width:r,height:o}=Fb(),s=r>0&&Math.min(r,o)<500;c.useEffect(()=>{const p=setTimeout(()=>{const m=n.current;m&&(m.focus(),!s&&(Qv("[autofocus]")||Qv("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=eE();t=xe(xe({},Vx),t);const f=t.dialogProps||{},{sx:l,root:a}=f,u=Ft(f,["sx","root"]);return t.noFrame?c.createElement(Db,{open:!0,children:c.createElement(jh,{},c.createElement(t.Content))}):c.createElement(zN,st(xe(xe({open:!0,maxWidth:"lg",fullScreen:s},u),a),{className:t.className,onClose:()=>ji()}),t.title&&c.createElement(eoe,{sx:xe({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center",gap:1},i)},t.icon&&Gv(t.icon),c.createElement(ze,{flex:1,minWidth:40},Gv(t.title)),c.createElement(mn,{icon:t0,title:"close",onClick:()=>ji()})),c.createElement(VN,{ref:n,sx:xe({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},c.createElement(t.Content)))};function eE(){return r5()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const o5={error:n0,warning:r0,info:Xv,success:Wk};function kt(e,t){var a;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=Bk(),i=Oo(st(xe({className:"dialog-alert dialog-alert-"+r,icon:(a=n.icon)!=null?a:c.createElement(o5[r],{color:r}),onClose:s.resolve,title:et.upperFirst(r)},o),{Content(){return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.isValidElement(e)?e:c.createElement(ze,{fontSize:"large",lineHeight:"1.8em"},String(e)),c.createElement(To,{sx:{mt:1},size:"small",onClick:i.close},"Close"))}}));return Object.assign(s,i)}function pr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=Ft(i,["href","confirmText","dontText"]);const l=Bk(),a=Oo(st(xe({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"?er(e):e),c.createElement(qr,{},c.createElement("a",{href:t,onClick:()=>ji(!0)},c.createElement(Yn,{variant:"contained"},n)),c.createElement(Yn,{onClick:()=>ji(!1)},r)))}}function uh(r){return ot(this,null,function*(){var o=r,{form:e,values:t}=o,n=Ft(o,["form","values"]);return new Promise(i=>Oo(st(xe({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(Hc,st(xe({},f),{values:i,set(m,v){l(y=>{const g=st(xe({},y),{[v]:m});return a==null||a(g,{setValues:l}),g})},save:st(xe({},f.save),{onClick(){ji(i)}})})))}})}function Vh(a){return ot(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 uh(st(xe({},s),{values:{text:t},form:xe({fields:[st(xe({k:"text",label:null,autoFocus:!0},n),{before:c.createElement(ze,{mb:2},e)})],save:xe({children:"Continue",startIcon:c.createElement(X4)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[c.createElement(Yn,{onClick:ji},"Cancel"),...o]},s.form)})).then(u=>u==null?void 0:u.text)})}function s5(){return Oo({Content:()=>c.createElement(Vi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function rr(e,t="info",n){const o=Oo(st(xe({},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(o5[t],{color:t}),c.isValidElement(e)?e:c.createElement("div",{},String(e)))}}function i5(){return c.createElement(Vi)}function Xo(e){return Ab(t=>t.breakpoints.up(e),{noSsr:!0})}function l5({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(Vi,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),c.createElement(Ml,{title:c.createElement(c.Fragment,{},hfe(t),r),children:c.createElement(Vi,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:xe({display:"flex"},o)})}))}function qr(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,xe({sx:xe(xe({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function Oc(e,t){return Array.isArray(t)&&(t=ch(t)),c.createElement(Ls,{href:Xde+e,target:"help"},t)}function s0(e,t){return c.createElement(mn,xe({icon:e0,title:"Reload",onClick:e},t))}function Zd(e){return e?{outline:"2px solid"}:void 0}const mn=c.forwardRef((m,p)=>{var v=m,{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,g]=Co(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s));let C=c.createElement(xr,st(xe({ref:p,disabled:!!(y||o||r)},f),{sx:xe({height:"fit-content"},u),onClick(...b){return ot(this,null,function*(){if(l&&!(yield pr(l)))return;const S=n==null?void 0:n.apply(this,b);S&&S instanceof Promise&&(g(!0),S.then(E=>E!==!1&&a5(a),kt).finally(()=>g(!1)))})}}),(o||y)&&o!==!1&&c.createElement(Vi,st(xe({},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(Ml,st(xe({title:e},i),{children:c.createElement("span",{},C)}))),C});function To(m){var v=m,{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,g]=Co(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Xo(u||"xs");let w=c.createElement(Z4,st(xe({variant:"contained",startIcon:e&&c.createElement(e),loading:!!(y||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:c.createElement(Vi,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:xe(xe({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...S){return ot(this,null,function*(){if(l&&!(yield pr(l===!0?"Are you sure?":l)))return;const E=n==null?void 0:n.apply(this,S);E&&E instanceof Promise&&(g(!0),E.then(_=>_!==!1&&a5(a),kt).finally(()=>g(!1)))})}}));return t&&(w=c.createElement(Ml,st(xe({title:t},i),{children:c.createElement("span",{},w)}))),w}function a5(e){e&&rr(e===!0?"Operation completed":e,"success")}function Wr(e,t,n){return c.createElement(Ml,{title:t,children:c.createElement(e,{sx:n})})}function i0(e){return c.createElement(Ls,xe({component:RP},e))}const jh=c.forwardRef((e,t)=>c.createElement(ze,xe({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function al(t){var e=Ft(t,[]);return c.createElement(Ls,st(xe({},e),{sx:xe({cursor:"pointer"},e.sx)}))}function c5(){const[e,t]=u5(n=>({title:n?"Pause":"Resume",icon:n?Q4:Jb,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function u5(e,t=!1){const[n,r]=c.useState(t),o=c.useCallback(()=>r(l=>!l),[]),s=e(n),i=c.createElement(mn,st(xe({size:"small",color:n?"primary":"default"},s),{sx:xe({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function d5(e,t,n,r){let o=e[t];return Ok(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const f5="admin_state",rn=Rk(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[f5]||null))),p5=["onlinePluginsColumns"],$pe=et.debounce(()=>localStorage[f5]=JSON.stringify(et.pick(rn,p5)),500,{maxWait:1e3});for(const e of p5)d5(rn,e,$pe);function fi(){return Dk(rn)}function ni(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 Td(e){return!!e&&!!e[ts]}function Dc(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)===Bpe}(e)||Array.isArray(e)||!!e[CO]||!!(!((t=e.constructor)===null||t===void 0)&&t[CO])||tE(e)||nE(e))}function dh(e,t,n){n===void 0&&(n=!1),Jd(e)===0?(n?Object.keys:lE)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Jd(e){var t=e[ts];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:tE(e)?2:nE(e)?3:0}function Kx(e,t){return Jd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rpe(e,t){return Jd(e)===2?e.get(t):e[t]}function h5(e,t,n){var r=Jd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Ope(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function tE(e){return Fpe&&e instanceof Map}function nE(e){return Npe&&e instanceof Set}function oc(e){return e.o||e.t}function rE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=zpe(e);delete t[ts];for(var n=lE(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 oE(e,t){return t===void 0&&(t=!1),sE(e)||Td(e)||!Dc(e)||(Jd(e)>1&&(e.set=e.add=e.clear=e.delete=Dpe),Object.freeze(e),t&&dh(e,function(n,r){return oE(r,!0)},!0)),e}function Dpe(){ni(2)}function sE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ai(e){var t=Vpe[e];return t||ni(18,e),t}function hO(){return fh}function Yw(e,t){t&&(Ai("Patches"),e.u=[],e.s=[],e.v=t)}function Zv(e){qx(e),e.p.forEach(Ape),e.p=null}function qx(e){e===fh&&(fh=e.l)}function mO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function Ape(e){var t=e[ts];t.i===0||t.i===1?t.j():t.g=!0}function Qw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ai("ES5").S(t,e,r),r?(n[ts].P&&(Zv(t),ni(4)),Dc(e)&&(e=Jv(t,e),t.l||ey(t,e)),t.u&&Ai("Patches").M(n[ts].t,e,t.u,t.s)):e=Jv(t,n,[]),Zv(t),t.u&&t.v(t.u,t.s),e!==m5?e:void 0}function Jv(e,t,n){if(sE(t))return t;var r=t[ts];if(!r)return dh(t,function(l,a){return gO(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ey(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=rE(r.k):r.o,s=o,i=!1;r.i===3&&(s=new Set(o),o.clear(),i=!0),dh(s,function(l,a){return gO(e,r,o,l,a,n,i)}),ey(e,o,!1),n&&e.u&&Ai("Patches").N(r,n,e.u,e.s)}return r.o}function gO(e,t,n,r,o,s,i){if(Td(o)){var l=Jv(e,o,s&&t&&t.i!==3&&!Kx(t.R,r)?s.concat(r):void 0);if(h5(n,r,l),!Td(l))return;e.m=!1}else i&&n.add(o);if(Dc(o)&&!sE(o)){if(!e.h.D&&e._<1)return;Jv(e,o),t&&t.A.l||ey(e,o)}}function ey(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&oE(t,n)}function Xw(e,t){var n=e[ts];return(n?oc(n):e)[t]}function vO(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 Yx(e){e.P||(e.P=!0,e.l&&Yx(e.l))}function Zw(e){e.o||(e.o=rE(e.t))}function Qx(e,t,n){var r=tE(t)?Ai("MapSet").F(t,n):nE(t)?Ai("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:hO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,u=Xx;i&&(a=[l],u=ap);var f=Proxy.revocable(a,u),p=f.revoke,m=f.proxy;return l.k=m,l.j=p,m}(t,n):Ai("ES5").J(t,n);return(n?n.A:hO()).p.push(r),r}function Lpe(e){return Td(e)||ni(22,e),function t(n){if(!Dc(n))return n;var r,o=n[ts],s=Jd(n);if(o){if(!o.P&&(o.i<4||!Ai("ES5").K(o)))return o.t;o.I=!0,r=yO(n,s),o.I=!1}else r=yO(n,s);return dh(r,function(i,l){o&&Rpe(o.t,i)===l||h5(r,i,t(l))}),s===3?new Set(r):r}(e)}function yO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return rE(e)}var bO,fh,iE=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Fpe=typeof Map!="undefined",Npe=typeof Set!="undefined",wO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",m5=iE?Symbol.for("immer-nothing"):((bO={})["immer-nothing"]=!0,bO),CO=iE?Symbol.for("immer-draftable"):"__$immer_draftable",ts=iE?Symbol.for("immer-state"):"__$immer_state",Bpe=""+Object.prototype.constructor,lE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,zpe=Object.getOwnPropertyDescriptors||function(e){var t={};return lE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Vpe={},Xx={get:function(e,t){if(t===ts)return e;var n=oc(e);if(!Kx(n,t))return function(o,s,i){var l,a=vO(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||!Dc(r)?r:r===Xw(e.t,t)?(Zw(e),e.o[t]=Qx(e.A.h,r,e)):r},has:function(e,t){return t in oc(e)},ownKeys:function(e){return Reflect.ownKeys(oc(e))},set:function(e,t,n){var r=vO(oc(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Xw(oc(e),t),s=o==null?void 0:o[ts];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Ope(n,o)&&(n!==void 0||Kx(e.t,t)))return!0;Zw(e),Yx(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 Xw(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Zw(e),Yx(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=oc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ni(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ni(12)}},ap={};dh(Xx,function(e,t){ap[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ap.deleteProperty=function(e,t){return ap.set.call(this,e,t,void 0)},ap.set=function(e,t,n){return Xx.set.call(this,e[0],t,n,e[0])};var jpe=function(){function e(n){var r=this;this.O=wO,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(g){var C=this;g===void 0&&(g=l);for(var w=arguments.length,b=Array(w>1?w-1:0),S=1;S<w;S++)b[S-1]=arguments[S];return a.produce(g,function(E){var _;return(_=s).call.apply(_,[C,E].concat(b))})}}var u;if(typeof s!="function"&&ni(6),i!==void 0&&typeof i!="function"&&ni(7),Dc(o)){var f=mO(r),p=Qx(r,o,void 0),m=!0;try{u=s(p),m=!1}finally{m?Zv(f):qx(f)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(g){return Yw(f,i),Qw(g,f)},function(g){throw Zv(f),g}):(Yw(f,i),Qw(u,f))}if(!o||typeof o!="object"){if((u=s(o))===void 0&&(u=o),u===m5&&(u=void 0),r.D&&oE(u,!0),i){var v=[],y=[];Ai("Patches").M(o,u,v,y),i(v,y)}return u}ni(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),m=1;m<f;m++)p[m-1]=arguments[m];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){Dc(n)||ni(8),Td(n)&&(n=Lpe(n));var r=mO(this),o=Qx(this,n,void 0);return o[ts].C=!0,qx(r),o},t.finishDraft=function(n,r){var o=n&&n[ts],s=o.A;return Yw(s,r),Qw(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!wO&&ni(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=Ai("Patches").$;return Td(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),ns=new jpe,Hpe=ns.produce;ns.produceWithPatches.bind(ns);ns.setAutoFreeze.bind(ns);ns.setUseProxies.bind(ns);ns.applyPatches.bind(ns);ns.createDraft.bind(ns);ns.finishDraft.bind(ns);const Upe=Hpe;Eue({onResponse(e,t){return ot(this,null,function*(){if(e.status===Xd)throw rn.loginRequired=(t==null?void 0:t.possible)!==!1||qb,new S4(e.status,"Unauthorized")})}});const Wpe={timeout:"Operation timeout"};function Qn(...e){const t=P4(...e);return st(xe({},t),{element:c.useMemo(()=>e[0]?t.error?c.createElement(kr,{severity:"error"},zk(String(t.error),Wpe),c.createElement(mn,{icon:e0,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?i5():null:null,Object.values(t))})}function Sl(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=Co([]),[l,a]=Co(void 0),[u,f]=Co(void 0),[p,m]=Co(!0),[v,y]=Co(!1),[g,C]=Co(!0),[w,b]=c.useState(0),S=c.useRef(0),[E,_]=c.useState();return c.useEffect(()=>_(o?s:void 0),[o]),c.useEffect(()=>{if(!e)return;const A=[],$=et.debounce(()=>{const z=A.splice(0,1/0);z.length&&(r&&z.reverse(),i(M=>r?[...z,...M]:[...M,...z]))},1e3,{maxWait:1e3});f(void 0),y(!0),m(!0),C(!0),i([]);const L=k4(e,t,(z,M)=>{switch(z){case"connected":return m(!1),setTimeout(()=>$.flush());case"error":return f("Connection error"),setTimeout(k,1e3),B();case"closed":return B();case"msg":const T=[],F=[];Xb(M).forEach(j=>{var H,K,Y;if(!Array.isArray(j))return console.debug("illegal list packet",j);const[D,N]=j;if(D===gu.ready){$.flush(),C(!1);return}if(D===gu.error){N===Xd?rn.loginRequired=((H=j[2])==null?void 0:H.possible)!==!1||qb:f(Y4(N));return}if(D===gu.props)return a(N);if(D===gu.add){const te=(K=n==null?void 0:n(N))!=null?K:N;(Y=te.id)!=null||(te.id=S.current=Math.max(S.current,Date.now())+.001),A.push(te),$();return}if(D===gu.remove){const te=et.matches(N);et.isEmpty(et.remove(A,te))&&T.push(te);return}if(D===gu.update){const te=j[2],Q=et.find(A,N);if(Q)return Object.assign(Q,te);F.push([N,te]);return}console.debug("unknown list api",D)}),i(j=>{let D=j,N;if(T.length&&(N=j.filter(H=>!T.some(K=>K(H))),N.length<j.length&&(D=N)),F.length)for(const[H,K]of F){const Y=et.findIndex(D,H);Y<0||(D===j&&(D=N!=null?N:j.slice()),D[Y]=xe(xe({},D[Y]),K))}return D}),(L==null?void 0:L.readyState)===(L==null?void 0:L.CLOSED)&&B()}});return()=>L.close();function B(){C(!1),y(!1),$.flush()}},[w,e,JSON.stringify(t)]),{list:E!=null?E:s,props:l,loading:v,error:u,initializing:g,connecting:p,setList:i,updateList:I,updateEntry:R,reload:k};function k(){b(A=>A+1)}function I(A){i(Upe(s,$=>{A($)}))}function R(A,$){I(L=>{const B=et.find(L,A);B&&Object.assign(B,$)})}}var aE={},Gpe=tt;Object.defineProperty(aE,"__esModule",{value:!0});var g5=aE.default=void 0,Kpe=Gpe(nt()),qpe=Ze(),Ype=(0,Kpe.default)((0,qpe.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");g5=aE.default=Ype;var cE={},Qpe=tt;Object.defineProperty(cE,"__esModule",{value:!0});var l0=cE.default=void 0,Xpe=Qpe(nt()),Zpe=Ze(),Jpe=(0,Xpe.default)((0,Zpe.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");l0=cE.default=Jpe;var uE={},ehe=tt;Object.defineProperty(uE,"__esModule",{value:!0});var v5=uE.default=void 0,the=ehe(nt()),nhe=Ze(),rhe=(0,the.default)((0,nhe.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");v5=uE.default=rhe;var dE={},ohe=tt;Object.defineProperty(dE,"__esModule",{value:!0});var y5=dE.default=void 0,she=ohe(nt()),ihe=Ze(),lhe=(0,she.default)((0,ihe.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");y5=dE.default=lhe;var fE={},ahe=tt;Object.defineProperty(fE,"__esModule",{value:!0});var Hh=fE.default=void 0,che=ahe(nt()),uhe=Ze(),dhe=(0,che.default)((0,uhe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Hh=fE.default=dhe;var pE={},fhe=tt;Object.defineProperty(pE,"__esModule",{value:!0});var hE=pE.default=void 0,phe=fhe(nt()),hhe=Ze(),mhe=(0,phe.default)((0,hhe.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");hE=pE.default=mhe;const b5=c.createContext(void 0);function Vt(){const e=c.useContext(b5);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 ghe=()=>c.useRef({}),w5=c.createContext(void 0),ut=()=>{const e=c.useContext(w5);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},C5=c.createContext(void 0);function Ba(){const e=c.useContext(C5);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 xO={};function mE(e,t){const n=c.useRef(xO);return n.current===xO&&(n.current=e(t)),n}const vhe=[];function x5(e){c.useEffect(e,vhe)}const Gi=(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))}},yhe=Object.is;function S5(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,!yhe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Gi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function bhe(e){return e.acceptsApiRef}function SO(e,t){return bhe(t)?t(e):t(e.current.state)}const whe=Object.is,gE=S5,Che=()=>({state:null,equals:null,selector:null}),rt=(e,t,n=whe)=>{const r=mE(Che),o=r.current.selector!==null,[s,i]=c.useState(o?null:SO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,x5(()=>e.current.store.subscribe(()=>{const l=SO(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 ue=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 ty="NOT_FOUND";function xhe(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ty},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function She(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 ty}function o(l,a){r(l)===ty&&(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 Phe=function(t,n){return t===n};function khe(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 a0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Phe:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=khe(o),u=i===1?xhe(a):She(i,a);function f(){var p=u.get(arguments);if(p===ty){if(p=e.apply(null,arguments),l){var m=u.getEntries(),v=m.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 Ehe(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 Ihe(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},m=l.pop();if(typeof m=="object"&&(p=m,m=l.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=p,y=v.memoizeOptions,g=y===void 0?n:y,C=Array.isArray(g)?g:[g],w=Ehe(l),b=e.apply(void 0,[function(){return u++,m.apply(null,arguments)}].concat(C)),S=e(function(){for(var _=[],k=w.length,I=0;I<k;I++)_.push(w[I].apply(null,arguments));return f=b.apply(null,_),f});return Object.assign(S,{resultFunc:m,memoizedResultFunc:b,dependencies:w,lastResult:function(){return f},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),S};return o}var Mhe=Ihe(a0);const _he={cache:new WeakMap};Gi(["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 Iu(e){return"current"in e&&"instanceId"in e.current}const Mu={id:"default"},_t=(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=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p),C=r(m,p),w=o(m,p);return s(v,y,g,C,w)};else if(e&&t&&n&&r&&o)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p),C=r(m,p);return o(v,y,g,C)};else if(e&&t&&n&&r)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p),g=n(m,p);return r(v,y,g)};else if(e&&t&&n)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p),y=t(m,p);return n(v,y)};else if(e&&t)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,m=f?a.current.state:a,v=e(m,p);return t(v)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},_n=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=Iu(s),a=l?s.current.instanceId:i!=null?i:Mu,u=l?s.current.state:s,{cache:f}=_he;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 m=Mhe(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,m),m(u,a)};return t.acceptsApiRef=!0,t},vc=e=>e.columns,ml=_t(vc,e=>e.orderedFields),ef=_t(vc,e=>e.lookup),Li=_n(ml,ef,(e,t)=>e.map(n=>t[n])),oi=_t(vc,e=>e.columnVisibilityModel),Ar=_n(Li,oi,(e,t)=>e.filter(n=>t[n.field]!==!1)),c0=_n(Ar,e=>e.map(t=>t.field)),$d=_n(Ar,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),vE=_t(Ar,$d,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),P5=_n(Li,e=>e.filter(t=>t.filterable)),The=_n(Li,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),u0=e=>e.columnGrouping,$he=_n(u0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),k5=_n(u0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),Rhe=_n(u0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Uh=_t(u0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),pi=e=>e.rows,d0=_t(pi,e=>e.totalRowCount),Ohe=_t(pi,e=>e.loading),Dhe=_t(pi,e=>e.totalTopLevelRowCount),aa=_t(pi,e=>e.dataRowIdToModelLookup),ny=_t(pi,e=>e.dataRowIdToIdLookup),ei=_t(pi,e=>e.tree),Ahe=_t(pi,e=>e.groupingName),PO=_t(pi,e=>e.treeDepths),f0=_n(pi,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}),vg=_t(pi,e=>e.dataRowIds),Lhe=_t(pi,e=>e==null?void 0:e.additionalRowGroups),tf=_n(Lhe,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:{}}})}}),Fhe=_t(tf,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)}),E5=()=>{var e;const t=Ba(),n=ut(),r=rt(t,Ar),o=rt(t,d0),s=rt(t,Uh),i=rt(t,Fhe);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}},Nhe=e=>{const{classes:t}=e;return Te({root:["main"]},jt,t)},Bhe=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),zhe=c.forwardRef((e,t)=>{var n;const r=ut(),o=Nhe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?E5:null,i=typeof s=="function"?s():null;return O.jsx(Bhe,x({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),I5=e=>e.sorting,yE=_t(I5,e=>e.sortedRows),bE=_n(yE,aa,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Cs=_t(I5,e=>e.sortModel),Vhe=_n(Cs,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),wE=e=>e.filter,Or=_t(wE,e=>e.filterModel);_t(Or,e=>e.quickFilterValues);const jhe=e=>e.visibleRowsLookup,M5=_t(wE,e=>e.filteredRowsLookup);_t(wE,e=>e.filteredDescendantCountLookup);const za=_n(jhe,bE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rp=_n(za,e=>e.map(t=>t.id)),Hhe=_n(M5,bE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Uhe=_n(Hhe,e=>e.map(t=>t.id)),_5=_n(za,ei,f0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),T5=_t(za,e=>e.length),p0=_t(_5,e=>e.length),Whe=_n(Or,ef,(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})}),Ghe=_n(Whe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),h0=e=>e.focus,Ho=_t(h0,e=>e.cell),Khe=_t(h0,e=>e.columnHeader);_t(h0,e=>e.columnHeaderFilter);const ry=_t(h0,e=>e.columnGroupHeader),m0=e=>e.tabIndex,oy=_t(m0,e=>e.cell),$5=_t(m0,e=>e.columnHeader);_t(m0,e=>e.columnHeaderFilter);const qhe=_t(m0,e=>e.columnGroupHeader),CE=e=>e.density,Yhe=_t(CE,e=>e.value),nf=_t(CE,e=>e.factor),Zx=e=>e.columnMenu;function Qhe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Ba(),s=ut(),i=c.useRef(null),l=rt(o,Ar),a=rt(o,Ghe),u=rt(o,Vhe),f=rt(o,$d),p=rt(o,$5),m=rt(o,oy),v=rt(o,qhe),y=rt(o,Khe),g=rt(o,ry),C=rt(o,nf),w=rt(o,Uh),b=rt(o,Zx),S=rt(o,oi),E=rt(o,Rhe),_=!(v===null&&p===null&&m===null);Nt(()=>{o.current.computeSizeAndPublishResizeEvent();const $=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let L;const B=new ResizeObserver(()=>{L=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return $&&B.observe($),()=>{L&&window.cancelAnimationFrame(L),$&&B.unobserve($)}},[o]);const k=c.useRef(null),I=c.useRef(null),R=c.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:I,columnHeadersElementRef:k,virtualScrollerRef:R,mainElementRef:i});const A=!!o.current.getRootDimensions();return O.jsxs(zhe,{ref:i,children:[O.jsx(s.slots.columnHeaders,x({ref:I,innerRef:k,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:u,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:v,columnHeaderFocus:y,columnGroupHeaderFocus:g,densityFactor:C,headerGroupingMaxDepth:w,columnMenuState:b,columnVisibility:S,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:_},n)),A&&O.jsx(t,{ref:R}),r]})}function Xhe(){var e;const t=ut();return t.hideFooter?null:O.jsx(t.slots.footer,x({},(e=t.slotProps)==null?void 0:e.footer))}const ao="auto-generated-group-node-root",od=Symbol("mui.id_autogenerated"),Zhe=()=>({type:"group",id:ao,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Jhe(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 sy=(e,t,n)=>{const r=t?t(e):e.id;return Jhe(r,e,n),r},Qg=({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=sy(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}},R5=({tree:e,rowCountProp:t=0})=>{const n=e[ao];return Math.max(t,n.children.length+(n.footerId==null?0:1))},O5=({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:R5({tree:f.tree,rowCountProp:t}),groupingName:u,loading:n})},ph=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,xE=(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||!ph(e[i]))&&o.push(i),o.push(...xE(e,i,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},eme=({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(m=>{const v=sy(m,t,"A row was provided without id when calling updateRows():");i.has(v)?i.set(v,x({},i.get(v),m)):i.set(v,m)});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((m,v)=>{const y=l.idToActionLookup[v];if(m._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 g=a[v];if(g){y==="remove"?(f.remove[v]=!0,l.actions.modify.push(v)):y==null&&l.actions.modify.push(v),a[v]=x({},g,m);return}y==="remove"?(f.remove[v]=!0,l.actions.insert.push(v)):y==null&&l.actions.insert.push(v),a[v]=m,u[v]=v});const p=Object.keys(f);for(let m=0;m<p.length;m+=1){const v=p[m],y=f[v];Object.keys(y).length>0&&(l.actions[v]=l.actions[v].filter(g=>!y[g]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function D5(e){var t,n;const r=tf(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 A5(e,t){const n=nf(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const tme=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})),nme=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),rme=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},jt,t)};function ome(e){var t,n;const r=Vt(),o=ut(),[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=A5(r,o.rowHeight));const u=rme(x({},e,{classes:o.classes}));return s?O.jsx(tme,{className:Ce(u.root),overlayType:e.overlayType,children:O.jsx(nme,x({className:Ce(u.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function sme(){const e=Vt(),t=ut(),n=rt(e,d0),r=rt(e,T5),o=rt(e,Ohe),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var u;l=O.jsx(t.slots.noRowsOverlay,x({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=O.jsx(t.slots.noResultsOverlay,x({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=O.jsx(t.slots.loadingOverlay,x({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:O.jsx(ome,{overlayType:a,children:l})}function g0(e){return c.memo(e,S5)}let Jw;function ime(){return Jw===void 0&&document.createElement("div").focus({get preventScroll(){return Jw=!0,!1}}),Jw}var Hi=function(e){return e.Cell="cell",e.Row="row",e}(Hi||{}),un=function(e){return e.Edit="edit",e.View="view",e}(un||{}),Cn=function(e){return e.Edit="edit",e.View="view",e}(Cn||{}),So=function(e){return e.And="and",e.Or="or",e}(So||{}),Gl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Gl||{}),Xs=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Xs||{}),Kl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Kl||{}),rl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(rl||{});function L5(e){return e.field!==void 0}function lme(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function ame(e,t){return e.closest(`.${t}`)}function SE(e){return e.replace(/["\\]/g,"\\$&")}function cme(e,t){return e.querySelector(`[role="columnheader"][data-field="${SE(t)}"]`)}function F5(e){return`.${ue.row}[data-id="${SE(String(e))}"]`}function ume(e,t){return e.querySelector(F5(t))}function dme(e,{id:t,field:n}){const r=F5(t),o=`.${ue.cell}[data-field="${SE(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 Hu extends Error{}function fme(e,t){const{getRowId:n}=t,r=c.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=c.useCallback(y=>{const g=e.current.getRow(y);if(!g)throw new Hu(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:g}},[e]),s=c.useCallback((y,g)=>{const C=e.current.getRow(y),w=e.current.getRowNode(y);if(!C||!w)throw new Hu(`No row with id #${y} found`);const b=Ho(e),S=oy(e);return{id:y,field:g,row:C,rowNode:w,value:C[g],colDef:e.current.getColumn(g),cellMode:e.current.getCellMode(y,g),api:e.current,hasFocus:b!==null&&b.field===g&&b.id===y,tabIndex:S&&S.field===g&&S.id===y?0:-1}},[e]),i=c.useCallback((y,g)=>{const C=e.current.getColumn(g),w=e.current.getCellValue(y,g),b=e.current.getRow(y),S=e.current.getRowNode(y);if(!b||!S)throw new Hu(`No row with id #${y} found`);const E=Ho(e),_=oy(e),k={id:y,field:g,row:b,rowNode:S,colDef:C,cellMode:e.current.getCellMode(y,g),hasFocus:E!==null&&E.field===g&&E.id===y,tabIndex:_&&_.field===g&&_.id===y?0:-1,value:w,formattedValue:w,isEditable:!1};return C&&C.valueFormatter&&(k.formattedValue=C.valueFormatter({id:y,field:k.field,value:k.value,api:e.current})),k.isEditable=C&&e.current.isCellEditable(k),k},[e]),l=c.useCallback((y,g)=>{const C=e.current.getColumn(g);if(!C||!C.valueGetter){const w=e.current.getRow(y);if(!w)throw new Hu(`No row with id #${y} found`);return w[g]}return C.valueGetter(s(y,g))},[e,s]),a=c.useCallback((y,g)=>{var C;const w=od in y?y[od]:(C=n==null?void 0:n(y))!=null?C:y.id,b=g.field;return!g||!g.valueGetter?y[b]:g.valueGetter(s(w,b))},[s,n]),u=c.useCallback((y,g)=>{var C;const w=a(y,g);if(!g||!g.valueFormatter)return w;const b=(C=n?n(y):y.id)!=null?C:y[od],S=g.field;return g.valueFormatter({id:b,field:S,value:w,api:e.current})},[e,n,a]),f=c.useCallback(y=>e.current.rootElementRef.current?cme(e.current.rootElementRef.current,y):null,[e]),p=c.useCallback(y=>e.current.rootElementRef.current?ume(e.current.rootElementRef.current,y):null,[e]),m=c.useCallback((y,g)=>e.current.rootElementRef.current?dme(e.current.rootElementRef.current,{id:y,field:g}):null,[e]);At(e,{getCellValue:l,getCellParams:i,getCellElement:m,getRowValue:a,getRowFormattedValue:u,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const pme=["changeReason","unstable_updateValueOnRender"],hme=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],mme=["changeReason","unstable_updateValueOnRender"],iy={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:{}},gme=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:s,classes:i}=e,l={root:["cell",`cell--text${Pe(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",s&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Te(l,jt,i)},vme=c.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Vt(),i=ut(),l=n.field,a=rt(s,()=>{try{const A=s.current.getCellParams(r,l);return A.api=s.current,A}catch(R){if(R instanceof Hu)return iy;throw R}},gE),u=rt(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===iy)return null;const{cellMode:f,hasFocus:p,isEditable:m,value:v,formattedValue:y}=a,g=n.type==="actions",C=(f==="view"||!m)&&!g?a.tabIndex:-1,{classes:w,getCellClassName:b}=i,S=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&S.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),b&&S.push(b(a));let E;if(o==null&&n.renderCell&&(E=n.renderCell(a),S.push(ue["cell--withRenderer"]),S.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=s.current.getRowWithUpdatedValues(r,n.field),A=le(o,pme),$=x({},a,{row:R},A);E=n.renderEditCell($),S.push(ue["cell--editing"]),S.push(w==null?void 0:w["cell--editing"])}const{slots:_}=i,k=_.cell,I=x({},e,{ref:t,field:l,formattedValue:y,hasFocus:p,isEditable:m,isSelected:u,value:v,cellMode:f,children:E,tabIndex:C,className:Ce(S)});return c.createElement(k,I)}),yme=g0(vme),bme=c.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:u,colIndex:f,height:p,width:m,className:v,showRightBorder:y,colSpan:g,disableDragEvents:C,isNotVisible:w,onClick:b,onDoubleClick:S,onMouseDown:E,onMouseUp:_,onMouseOver:k,onKeyDown:I,onKeyUp:R,onDragEnter:A,onDragOver:$}=e,L=le(e,hme),B=Vt(),z=ut(),M=i.field,T=rt(B,()=>{try{const be=B.current.getCellParams(l,M);return be.api=B.current,be}catch(de){if(de instanceof Hu)return iy;throw de}},gE),F=rt(B,()=>B.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:M})),{cellMode:j,hasFocus:D,isEditable:N,value:H,formattedValue:K}=T,Y=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,B.current.getRowParams(l)).some(de=>!de.props.disabled)),te=(j==="view"||!N)&&!Y?T.tabIndex:-1,{classes:Q,getCellClassName:X}=z,J=B.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:M});i.cellClassName&&J.push(typeof i.cellClassName=="function"?i.cellClassName(T):i.cellClassName),X&&J.push(X(T));const se=K==null?H:K,Z=c.useRef(null),he=Et(t,Z),ne=c.useRef(null),re=(o=z.unstable_cellSelection)!=null?o:!1,me={align:u,showRightBorder:y,isEditable:N,classes:z.classes,isSelected:F,isSelectionMode:re},ce=gme(me),Se=c.useCallback(de=>be=>{const _e=B.current.getCellParams(l,M||"");B.current.publishEvent(de,_e,be),_&&_(be)},[B,M,_,l]),Ee=c.useCallback(de=>be=>{const _e=B.current.getCellParams(l,M||"");B.current.publishEvent(de,_e,be),E&&E(be)},[B,M,E,l]),ae=c.useCallback((de,be)=>_e=>{if(!B.current.getRow(l))return;const Ne=B.current.getCellParams(l,M||"");B.current.publishEvent(de,Ne,_e),be&&be(_e)},[B,M,l]),Ie=c.useMemo(()=>w?{padding:0,opacity:0,width:0,border:0}:{minWidth:m,maxWidth:m,minHeight:p,maxHeight:p==="auto"?"none":p},[m,p,w]);if(c.useEffect(()=>{if(!D||j===un.Edit)return;const de=fn(B.current.rootElementRef.current);if(Z.current&&!Z.current.contains(de.activeElement)){const be=Z.current.querySelector('[tabindex="0"]'),_e=ne.current||be||Z.current;if(ime())_e.focus({preventScroll:!0});else{const Ne=B.current.getScrollPosition();_e.focus(),B.current.scroll(Ne)}}},[D,j,B]),T===iy)return null;let ye=L.onFocus,Me;if(a==null&&i.renderCell&&(Me=i.renderCell(T),J.push(ue["cell--withRenderer"]),J.push(Q==null?void 0:Q["cell--withRenderer"])),a!=null&&i.renderEditCell){const de=B.current.getRowWithUpdatedValues(l,i.field),be=le(a,mme),_e=x({},T,{row:de},be);Me=i.renderEditCell(_e),J.push(ue["cell--editing"]),J.push(Q==null?void 0:Q["cell--editing"])}if(Me===void 0){const de=se==null?void 0:se.toString();Me=O.jsx("div",{className:ce.content,title:de,role:"presentation",children:de})}c.isValidElement(Me)&&Y&&(Me=c.cloneElement(Me,{focusElementRef:ne}));const pe=C?null:{onDragEnter:ae("cellDragEnter",A),onDragOver:ae("cellDragOver",$)},fe=(s=z.experimentalFeatures)==null?void 0:s.ariaV7;return O.jsx("div",x({ref:he,className:Ce(v,J,ce.root),role:fe?"gridcell":"cell","data-field":M,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":g,style:Ie,tabIndex:te,onClick:ae("cellClick",b),onDoubleClick:ae("cellDoubleClick",S),onMouseOver:ae("cellMouseOver",k),onMouseDown:Ee("cellMouseDown"),onMouseUp:Se("cellMouseUp"),onKeyDown:ae("cellKeyDown",I),onKeyUp:ae("cellKeyUp",R)},pe,L,{onFocus:ye,children:Me}))}),Jx=g0(bme),wme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],Cme=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},jt,t)};function xme(e){const{value:t}=e,n=le(e,wme),r=Vt(),o=ut(),s={classes:o.classes},i=Cme(s),l=c.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return O.jsx(l,x({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Sme=c.memo(xme),Pme=e=>ph(e.rowNode)?"":O.jsx(Sme,x({},e)),kme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Eme=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},jt,t)};function Ime(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=le(e,kme),u=Vt(),f=c.useRef(null),p=Kt(),[m,v]=c.useState(r),y=ut(),g={classes:y.classes},C=Eme(g),w=c.useCallback(b=>ot(this,null,function*(){const S=b.target.checked;l&&(yield l(b,S)),v(S),yield u.current.setEditCellValue({id:n,field:o,value:S},b)}),[u,o,n,l]);return c.useEffect(()=>{v(r)},[r]),Nt(()=>{i&&f.current.focus()},[i]),O.jsx("label",x({htmlFor:p,className:Ce(C.root,s)},a,{children:O.jsx(y.slots.baseCheckbox,x({id:p,inputRef:f,checked:!!m,onChange:w,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const Mme=e=>O.jsx(Ime,x({},e)),_me=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Tme=oe(Gd)({fontSize:"inherit"}),$me=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)};function Rme(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=le(e,_me),u=o.type==="dateTime",f=Vt(),p=c.useRef(),m=c.useMemo(()=>{let I;n==null?I=null:n instanceof Date?I=n:I=new Date((n!=null?n:"").toString());let R;return I==null||Number.isNaN(I.getTime())?R="":R=new Date(I.getTime()-I.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:I,formatted:R}},[n,u]),[v,y]=c.useState(m),C={classes:ut().classes},w=$me(C),b=c.useRef(!1),S=c.useCallback(I=>{if(I==="")return null;const[R,A]=I.split("T"),[$,L,B]=R.split("-"),z=new Date;if(z.setFullYear(Number($),Number(L)-1,Number(B)),z.setHours(0,0,0,0),A){const[M,T]=A.split(":");z.setHours(Number(M),Number(T),0,0)}return z},[]),E=c.useCallback(I=>ot(this,null,function*(){const R=I.target.value,A=S(R);l&&(yield l(I,A)),y({parsed:A,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:A},I)}),[f,r,t,l,S]);c.useEffect(()=>{y(I=>{var R,A;return m.parsed!==I.parsed&&((R=m.parsed)==null?void 0:R.getTime())!==((A=I.parsed)==null?void 0:A.getTime())?m:I})},[m]),Nt(()=>{s&&p.current.focus()},[s]);const _=f.current.unstable_getEditCellMeta(t,r),k=I=>{if(p.current=I,_!=null&&_.unstable_updateValueOnRender&&!b.current){const R=p.current.value,A=S(R);y({parsed:A,formatted:R}),f.current.setEditCellValue({id:t,field:r,value:A}),b.current=!0}};return O.jsx(Tme,x({inputRef:k,fullWidth:!0,className:w.root,type:u?"datetime-local":"date",inputProps:x({max:u?"9999-12-31T23:59":"9999-12-31"},i),value:v.formatted,onChange:E},a))}const N5=e=>O.jsx(Rme,x({},e)),Ome=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Dme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)},Ame=oe(Gd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>x({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Lme=c.forwardRef((e,t)=>{const n=ut(),{id:r,value:o,field:s,colDef:i,hasFocus:l,debounceMs:a=200,isProcessingProps:u,onValueChange:f}=e,p=le(e,Ome),m=Vt(),v=c.useRef(),[y,g]=c.useState(o),C=Dme(n),w=c.useCallback(S=>ot(void 0,null,function*(){const E=S.target.value;f&&(yield f(S,E));const _=m.current.getColumn(s);let k=E;_.valueParser&&(k=_.valueParser(E,m.current.getCellParams(r,s))),g(k),m.current.setEditCellValue({id:r,field:s,value:k,debounceMs:a,unstable_skipValueParser:!0},S)}),[m,a,s,r,f]),b=m.current.unstable_getEditCellMeta(r,s);return c.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[b,o]),Nt(()=>{l&&v.current.focus()},[l]),O.jsx(Ame,x({ref:t,inputRef:v,className:C.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:y!=null?y:"",onChange:w,endAdornment:u?O.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),Fme=e=>O.jsx(Lme,x({},e)),ly=e=>e==="Escape",Nme=e=>e==="Enter",B5=e=>e==="Tab",z5=e=>e===" ",Bme=e=>e.indexOf("Arrow")===0,zme=e=>e==="Home"||e==="End",Vme=e=>e.indexOf("Page")===0;function V5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const ay=e=>zme(e)||Bme(e)||Vme(e)||z5(e),jme=e=>!!e.key,Hme=e=>B5(e)||ly(e);function yc(e){return(e==null?void 0:e.type)==="singleSelect"}function eS(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 Ume=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Wme=["MenuProps"];function Gme(e){return!!e.key}function Kme(e){var t,n,r;const o=ut(),{id:s,value:i,field:l,row:a,colDef:u,hasFocus:f,error:p,onValueChange:m,initialOpen:v=o.editMode===Hi.Cell,getOptionLabel:y,getOptionValue:g}=e,C=le(e,Ume),w=Vt(),b=c.useRef(),S=c.useRef(),[E,_]=c.useState(v),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:A}=R,$=le(R,Wme);if(Nt(()=>{if(f){var j;(j=S.current)==null||j.focus()}},[f]),!yc(u))return null;let L;if(typeof(u==null?void 0:u.valueOptions)=="function"?L=u==null?void 0:u.valueOptions({id:s,row:a,field:l}):L=u==null?void 0:u.valueOptions,!L)return null;const B=g||u.getOptionValue,z=y||u.getOptionLabel,M=j=>ot(this,null,function*(){if(!yc(u)||!L)return;_(!1);const D=j.target,N=eS(D.value,L,B);m&&(yield m(j,N)),yield w.current.setEditCellValue({id:s,field:l,value:N},j)}),T=(j,D)=>{if(o.editMode===Hi.Row){_(!1);return}if(D==="backdropClick"||ly(j.key)){const N=w.current.getCellParams(s,l);w.current.publishEvent("cellEditStop",x({},N,{reason:ly(j.key)?Xs.escapeKeyDown:Xs.cellFocusOut}))}},F=j=>{Gme(j)&&j.key==="Enter"||_(!0)};return!L||!u?null:O.jsx(o.slots.baseSelect,x({ref:b,inputRef:S,value:i,onChange:M,open:E,onOpen:F,MenuProps:x({onClose:T},A),error:p,native:I,fullWidth:!0},C,$,{children:L.map(j=>{var D;const N=B(j);return c.createElement(o.slots.baseSelectOption,x({},((D=o.slotProps)==null?void 0:D.baseSelectOption)||{},{native:I,key:N,value:N}),z(j))})}))}const qme=e=>O.jsx(Kme,x({},e)),Yme=["open","target","onClose","children","position","className","onExited"],Qme=e=>{const{classes:t}=e;return Te({root:["menu"]},jt,t)},Xme=oe(Fa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ue.menuList}`]:{outline:0}})),Zme={"bottom-start":"top left","bottom-end":"top right"};function j5(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,u=le(e,Yme),f=Vt(),p=ut(),m=Qme(p),v=c.useRef(null);Nt(()=>{if(n)v.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,w;(C=v.current)==null||(w=C.focus)==null||w.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=>w=>{C&&C(),a&&a(w)},g=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return O.jsx(Xme,x({as:p.slots.basePopper,className:Ce(l,m.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},u,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:w})=>O.jsx(wN,{onClickAway:g,mouseEvent:"onMouseDown",children:O.jsx(ah,x({},C,{style:{transformOrigin:Zme[w]},onExited:y(C==null?void 0:C.onExited),children:O.jsx(Vs,{children:s})}))})}))}const Jme=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],ege=e=>typeof e.getActions=="function";function tge(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=le(e,Jme),[u,f]=c.useState(-1),[p,m]=c.useState(!1),v=Vt(),y=c.useRef(null),g=c.useRef(null),C=c.useRef(!1),w=c.useRef({}),b=yn(),S=Kt(),E=Kt(),_=ut();if(!ege(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(v.current.getRowParams(r)),I=k.filter(F=>!F.props.showInMenu),R=k.filter(F=>F.props.showInMenu),A=I.length+(R.length?1:0);c.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([F,j])=>{j==null||j.stop({},()=>{delete w.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=k.findIndex(j=>!j.props.disabled);f(F)}}}),[k]),c.useEffect(()=>{u>=A&&f(A-1)},[u,A]);const $=()=>{m(!0),f(A-1),C.current=!0},L=()=>{m(!1)},B=F=>j=>{w.current[F]=j},z=(F,j)=>D=>{f(F),C.current=!0,j&&j(D)},M=F=>{if(A<=1)return;const j=(N,H)=>{var K;if(N<0||N>k.length)return N;const Y=b.direction==="rtl"?-1:1,te=(H==="left"?-1:1)*Y;return(K=k[N+te])!=null&&K.props.disabled?j(N+te,H):N+te};let D=u;F.key==="ArrowRight"?D=j(u,"right"):F.key==="ArrowLeft"&&(D=j(u,"left")),!(D<0||D>=A)&&D!==u&&(F.preventDefault(),F.stopPropagation(),f(D))},T=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&L()};return O.jsxs("div",x({role:"menu",ref:y,tabIndex:-1,className:ue.actionsCell,onKeyDown:M},a,{children:[I.map((F,j)=>c.cloneElement(F,{key:j,touchRippleRef:B(j),onClick:z(j,F.props.onClick),tabIndex:u===j?s:-1})),R.length>0&&E&&O.jsx(_.slots.baseIconButton,x({ref:g,id:E,"aria-label":v.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?S:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:B(E),tabIndex:u===I.length?s:-1},(t=_.slotProps)==null?void 0:t.baseIconButton,{children:O.jsx(_.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&O.jsx(j5,{open:p,target:g.current,position:i,onClose:L,onClick:L,children:O.jsx(Qd,{id:S,className:ue.menuList,onKeyDown:T,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:R.map((F,j)=>c.cloneElement(F,{key:j}))})})]}))}const nge=e=>O.jsx(tge,x({},e)),rge=["label","icon","showInMenu","onClick"],yg=c.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=le(e,rge),l=ut(),a=f=>{s&&s(f)};if(!o){var u;return O.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 O.jsxs(Pr,x({ref:t},i,{onClick:s,children:[r&&O.jsx(hl,{children:r}),n]}))}),oge=["field","align","width","contentWidth"],sge=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Pe(t)}`,"withBorderColor"]};return Te(r,jt,n)};function ige(e){const{align:t,width:n,contentWidth:r}=e,o=le(e,oge),i={classes:ut().classes,align:t},l=sge(i);return O.jsx("div",x({className:l.root,style:{width:n}},o,{children:O.jsx(eae,{width:`${r}%`})}))}function lge(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Tc(lt(e.palette.divider,1),.88):_c(lt(e.palette.divider,1),.68)}const kO={[`.${ue.columnSeparator}, .${ue["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},EO={[`& .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.menuIcon}`]:{width:"auto",visibility:"visible"}},age=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ue.autoHeight}`]:t.autoHeight},{[`&.${ue.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ue["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ue["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ue["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ue.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ue["root--disableUserSelection"]} .${ue.cell}`]:t["root--disableUserSelection"]},{[`&.${ue.autosizing}`]:t.autosizing},{[`& .${ue.editBooleanCell}`]:t.editBooleanCell},{[`& .${ue["cell--editing"]}`]:t["cell--editing"]},{[`& .${ue["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ue["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ue["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ue["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ue.cell}`]:t.cell},{[`& .${ue["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ue["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ue["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ue["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ue["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ue.cellContent}`]:t.cellContent},{[`& .${ue.cellCheckbox}`]:t.cellCheckbox},{[`& .${ue.cellSkeleton}`]:t.cellSkeleton},{[`& .${ue.checkboxInput}`]:t.checkboxInput},{[`& .${ue["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ue["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ue["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ue["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ue["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ue["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ue["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ue["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ue["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ue.columnHeader}`]:t.columnHeader},{[`& .${ue.headerFilterRow}`]:t.headerFilterRow},{[`& .${ue.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ue.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ue.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ue["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ue["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ue.columnSeparator}`]:t.columnSeparator},{[`& .${ue.filterIcon}`]:t.filterIcon},{[`& .${ue.iconSeparator}`]:t.iconSeparator},{[`& .${ue.menuIcon}`]:t.menuIcon},{[`& .${ue.menuIconButton}`]:t.menuIconButton},{[`& .${ue.menuOpen}`]:t.menuOpen},{[`& .${ue.menuList}`]:t.menuList},{[`& .${ue["row--editable"]}`]:t["row--editable"]},{[`& .${ue["row--editing"]}`]:t["row--editing"]},{[`& .${ue["row--dragging"]}`]:t["row--dragging"]},{[`& .${ue.row}`]:t.row},{[`& .${ue.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ue.rowReorderCell}`]:t.rowReorderCell},{[`& .${ue["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ue.sortIcon}`]:t.sortIcon},{[`& .${ue.withBorderColor}`]:t.withBorderColor},{[`& .${ue.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ue.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ue.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ue["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=lge(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})`:lt(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",[`&.${ue.autoHeight}`]:{height:"auto",[`& .${ue["row--lastVisible"]} .${ue.cell}`]:{borderBottomColor:"transparent"}},[`&.${ue.autosizing}`]:{[`& .${ue.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${ue.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"}},[`& .${ue["virtualScrollerContent--overflowed"]} .${ue["row--lastVisible"]} .${ue.cell}`]:{borderBottomColor:"transparent"},[`& .${ue.columnHeader}, & .${ue.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ue.columnHeader}:focus-within, & .${ue.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:lt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ue.columnHeader}:focus, & .${ue.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ue.columnHeaderCheckbox}, & .${ue.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ue.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ue["columnHeader--sorted"]} .${ue.iconButtonContainer}, & .${ue["columnHeader--filtered"]} .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}) .${ue.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ue.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${ue.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ue["columnHeader--filledGroup"]} .${ue.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ue["columnHeader--filledGroup"]}.${ue["columnHeader--showColumnBorder"]} .${ue.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ue["columnHeader--filledGroup"]}.${ue["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ue.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${ue.sortIcon}, & .${ue.filterIcon}`]:{fontSize:"inherit"},[`& .${ue["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ue["columnHeader--alignCenter"]} .${ue.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ue["columnHeader--alignRight"]} .${ue.columnHeaderDraggableContainer}, & .${ue["columnHeader--alignRight"]} .${ue.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ue["columnHeader--alignCenter"]} .${ue.menuIcon}, & .${ue["columnHeader--alignRight"]} .${ue.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ue["columnHeader--alignRight"]} .${ue.menuIcon}, & .${ue["columnHeader--alignRight"]} .${ue.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ue["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${ue.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${ue.columnHeaders}:hover`]:kO,[`& .${ue.columnHeader}:hover`]:EO,[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}):hover .${ue.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ue.columnHeaders}`]:kO,[`& .${ue.columnHeader}`]:EO},[`& .${ue["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ue["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ue["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ue["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ue.iconSeparator}`]:{color:"inherit"},[`& .${ue.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${ue.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ue.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})`:lt(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
|
+
))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ue.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(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})`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ue["root--disableUserSelection"]} .${ue.cell}`]:{userSelect:"none"},[`& .${ue.row}:not(.${ue["row--dynamicHeight"]}) > .${ue.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ue.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ue.cell}.${ue["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ue.cell}.${ue["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"}},[`& .${ue["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ue["row--editing"]} .${ue.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ue.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ue.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ue.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ue.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ue.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ue["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ue.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ue.withBorderColor}`]:{borderColor:t},[`& .${ue["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ue["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ue["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ue["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ue["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ue.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ue.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ue["columnHeader--dragging"]}, & .${ue["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ue["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ue.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ue.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ue.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ue.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ue.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),cge=["children","className"],uge=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Pe(n)}`,"withBorderColor"]};return Te(o,jt,r)},dge=c.forwardRef(function(t,n){var r;const o=ut(),{children:s,className:i}=t,l=le(t,cge),a=Ba(),u=rt(a,Yhe),f=c.useRef(null),p=Et(f,n),m=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:E5,v=typeof m=="function"?m():null,y=x({},o,{density:u}),g=uge(y);a.current.register("public",{rootElementRef:f});const[C,w]=c.useState(!1);return Nt(()=>{w(!0)},[]),C?O.jsx(age,x({ref:p,className:Ce(i,g.root),ownerState:y},v,l,{children:s})):null}),fge=["className"],pge=e=>{const{classes:t}=e;return Te({root:["footerContainer","withBorderColor"]},jt,t)},hge=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),mge=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,fge),s=ut(),i=pge(s);return O.jsx(hge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),gge=["className"],vge=e=>{const{classes:t}=e;return Te({root:["overlay"]},jt,t)},yge=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)"}),PE=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,gge),s=ut(),i=vge(s);return O.jsx(yge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),bge=["className"],wge=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},jt,t)},Cge=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),H5=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,bge),s=ut(),i=wge(s);return O.jsx(Cge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),xge=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},jt,t)};function Sge(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?O.jsx(o,x({fontSize:"small",className:n},s)):null}function Pge(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Vt(),i=ut(),l=x({},e,{classes:i.classes}),a=xge(l),u=Sge(i.slots,n,a.icon,o);if(!u)return null;const f=O.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 O.jsxs(H5,{children:[r!=null&&O.jsx(AN,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const kge=c.memo(Pge),Ege=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},jt,t)},Ige=c.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Vt(),u=ut(),f=x({},e,{classes:u.classes}),p=Ege(f),m=c.useCallback(v=>{v.preventDefault(),v.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return O.jsx("div",{className:p.root,children:O.jsx(u.slots.baseTooltip,x({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:O.jsx(u.slots.baseIconButton,x({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:O.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Mge({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:O.jsx(j5,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:O.jsx(n,x({colDef:u,hideMenu:f,open:s,id:e,labelledby:t},r))})}const _ge=["className"],Tge=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},jt,t)},$ge=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Rge=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,_ge),s=ut(),i=Tge(s);return O.jsx($ge,x({ref:n,className:Ce(i.root,r),ownerState:s},o))});function Oge(e){var t;const{label:n,description:r}=e,o=ut(),s=c.useRef(null),[i,l]=c.useState(""),a=c.useCallback(()=>{if(!r&&s!=null&&s.current){const u=lme(s.current);l(u?n:"")}},[r,n]);return O.jsx(o.slots.baseTooltip,x({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:O.jsx(Rge,{onMouseOver:a,ref:s,children:n})}))}const Dge=["resizable","resizing","height","side"];var U5=function(e){return e.Left="left",e.Right="right",e}(U5||{});const Age=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Pe(o)}`],icon:["iconSeparator"]};return Te(s,jt,r)};function Lge(e){const{height:t,side:n=U5.Right}=e,r=le(e,Dge),o=ut(),s=x({},e,{side:n,classes:o.classes}),i=Age(s),l=c.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return O.jsx("div",x({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:O.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const Fge=c.memo(Lge),Nge=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],W5=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:m,headerComponent:v,description:y,width:g,columnMenuIconButton:C=null,columnMenu:w=null,columnTitleIconButtons:b=null,headerClassName:S,label:E,resizable:_,draggableContainerProps:k,columnHeaderSeparatorProps:I}=t,R=le(t,Nge),A=Ba(),$=ut(),L=c.useRef(null),[B,z]=c.useState(o),M=Et(L,n);let T="none";return a!=null&&(T=a==="asc"?"ascending":"descending"),c.useEffect(()=>{B||z(o)},[B,o]),c.useLayoutEffect(()=>{const F=A.current.state.columnMenu;if(u&&!F.open){const D=L.current.querySelector('[tabindex="0"]')||L.current;D==null||D.focus(),A.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[A,u]),O.jsxs("div",x({ref:M,className:Ce(r.root,S),style:{height:i,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":T,"aria-label":v==null?E:void 0},R,{children:[O.jsxs("div",x({className:r.draggableContainer,draggable:m,role:"presentation"},k,{children:[O.jsxs("div",{className:r.titleContainer,role:"presentation",children:[O.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:O.jsx(Oge,{label:E,description:y,columnWidth:g})}),b]}),C]})),O.jsx(Fge,x({resizable:!$.disableColumnResize&&!!_,resizing:l,height:i,side:p},I)),w]}))}),Bge=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 Te(f,jt,n)};function zge(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:u,sortDirection:f,sortIndex:p,filterItemsCounter:m,hasFocus:v,tabIndex:y,disableReorder:g,separatorSide:C}=e,w=Ba(),b=ut(),S=c.useRef(null),E=Kt(),_=Kt(),k=c.useRef(null),[I,R]=c.useState(i),A=c.useMemo(()=>!b.disableColumnReorder&&!g&&!s.disableReorder,[b.disableColumnReorder,g,s.disableReorder]);let $;s.renderHeader&&($=s.renderHeader(w.current.getColumnHeaderParams(s.field)));const L=x({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder}),B=Bge(L),z=c.useCallback(Q=>X=>{X.currentTarget.contains(X.target)&&w.current.publishEvent(Q,w.current.getColumnHeaderParams(s.field),X)},[w,s.field]),M=c.useMemo(()=>({onClick:z("columnHeaderClick"),onDoubleClick:z("columnHeaderDoubleClick"),onMouseOver:z("columnHeaderOver"),onMouseOut:z("columnHeaderOut"),onMouseEnter:z("columnHeaderEnter"),onMouseLeave:z("columnHeaderLeave"),onKeyDown:z("columnHeaderKeyDown"),onFocus:z("columnHeaderFocus"),onBlur:z("columnHeaderBlur")}),[z]),T=c.useMemo(()=>A?{onDragStart:z("columnHeaderDragStart"),onDragEnter:z("columnHeaderDragEnter"),onDragOver:z("columnHeaderDragOver"),onDragEnd:z("columnHeaderDragEnd")}:{},[A,z]),F=c.useMemo(()=>({onMouseDown:z("columnSeparatorMouseDown"),onDoubleClick:z("columnSeparatorDoubleClick")}),[z]);c.useEffect(()=>{I||R(i)},[I,i]);const j=c.useCallback(()=>{R(!1)},[]),D=!b.disableColumnMenu&&!s.disableColumnMenu&&O.jsx(Ige,{colDef:s,columnMenuId:E,columnMenuButtonId:_,open:I,iconButtonRef:k}),N=O.jsx(Mge,{columnMenuId:E,columnMenuButtonId:_,field:s.field,open:i,target:k.current,ContentComponent:b.slots.columnMenu,contentComponentProps:(t=b.slotProps)==null?void 0:t.columnMenu,onExited:j}),H=(n=s.sortingOrder)!=null?n:b.sortingOrder,K=O.jsxs(c.Fragment,{children:[!b.disableColumnFilter&&O.jsx(b.slots.columnHeaderFilterIconButton,x({field:s.field,counter:m},(r=b.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&O.jsx(kge,{direction:f,index:p,sortingOrder:H})]});c.useLayoutEffect(()=>{const Q=w.current.state.columnMenu;if(v&&!Q.open){const J=S.current.querySelector('[tabindex="0"]')||S.current;J==null||J.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,v]);const Y=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(o=s.headerName)!=null?o:s.field;return O.jsx(W5,x({ref:S,classes:B,columnMenuOpen:i,colIndex:l,height:a,isResizing:u,sortDirection:f,hasFocus:v,tabIndex:y,separatorSide:C,isDraggable:A,headerComponent:$,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:D,columnTitleIconButtons:K,headerClassName:Y,label:te,resizable:!b.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:N,draggableContainerProps:T,columnHeaderSeparatorProps:F},M))}const hh=()=>({items:[],logicOperator:So.And,quickFilterValues:[],quickFilterLogicOperator:So.And}),IO=1e3;let Vge=class{constructor(t=IO){this.timeouts=new Map,this.cleanupTimeout=IO,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},jge=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 Fi=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Fi||{});let Hge=class{};function Uge(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new jge:new Vge);const[l]=c.useState(new Hge),a=c.useRef(null),u=c.useRef();u.current=s;const f=c.useRef(null);if(!a.current&&u.current){const p=(m,v,y)=>{if(!v.defaultMuiPrevented){var g;(g=u.current)==null||g.call(u,m,v,y)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var m;(m=a.current)==null||m.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=(m,v,y)=>{if(!v.defaultMuiPrevented){var g;(g=u.current)==null||g.call(u,m,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 Wge={registry:null},dt=Uge(Wge),Gge={isFirst:!0};function In(e,t,n){dt(e,t,n,Gge)}function eo(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 Kge(e){return typeof e=="number"&&!Number.isNaN(e)}function G5(e){return typeof e=="function"}function kE(e){return typeof e=="object"&&e!==null}function qge(){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 Xg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Rd=(e,t,n)=>Math.max(t,Math.min(n,e));function bc(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(!bc(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(!bc(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(!bc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Yge(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 Qge(e,t,n){const r=Yge(e);return()=>t+(n-t)*r()}function K5(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Xge=(e,t,n,r,o)=>{const s=eo(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(G5(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 m=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",m)}},[t,u,n,i,s,o,e])},Wh=e=>{const t=c.useRef(!0);t.current&&(t.current=!1,e())},Zge=100,Jge=e=>e?0:100,q5=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Gi(["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 Y5=e=>({page:0,pageSize:e?0:100}),eve=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Q5=(e,t)=>{if(t===Fi.DataGrid&&e>Zge)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
|
+
`))},X5=e=>e.pagination,Ps=_t(X5,e=>e.paginationModel),tve=_t(Ps,e=>e.page),nve=_t(Ps,e=>e.pageSize);_t(Ps,p0,(e,t)=>q5(t,e.pageSize));const EE=_n(Ps,ei,f0,za,_5,(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,m=0;for(;p<r.length&&m<=u;){var v;const y=r[p],g=(v=t[y.id])==null?void 0:v.depth;g===void 0?p+=1:((m<u||g>0)&&(p+=1),g===0&&(m+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),rve=_n(za,EE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Z5=_n(Rp,EE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),mh=e=>e.preferencePanel;var Ac=function(e){return e.filters="filters",e.columns="columns",e}(Ac||{});const gh=e=>e.rowsMeta,xs=e=>e.rowSelection,ove=_t(xs,e=>e.length),sve=_n(xs,aa,(e,t)=>new Map(e.map(n=>[n,t[n]]))),cy=_n(xs,e=>e.reduce((t,n)=>(t[n]=n,t),{})),ive=Gi(["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"),J5=(e,t)=>t&&e.length>1?(ive(),[e[0]]):e,MO=(e,t)=>n=>x({},n,{sorting:x({},n.sorting,{sortModel:J5(e,t)})}),lve=e=>e==="desc",ave=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=lve(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}},cve=(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),uve=(e,t)=>{const n=e.map(r=>ave(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)=>cve(n,o,s)).map(o=>o.node.id)},_O=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},IE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,dve=new Intl.Collator,fve=(e,t)=>{const n=IE(e,t);return n!==null?n:typeof e=="string"?dve.compare(e.toString(),t.toString()):e-t},eB=(e,t)=>{const n=IE(e,t);return n!==null?n:Number(e)-Number(t)},tB=(e,t)=>{const n=IE(e,t);return n!==null?n:e>t?1:e<t?-1:0},nB=e=>e.headerFiltering,pve=_t(nB,e=>e.editing),hve=_t(nB,e=>e.menuOpen),mve=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return x({},e,{virtualization:n})};function gve(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 rB=e=>e.virtualization,vve=_t(rB,e=>e.enabled),oB=_t(rB,e=>e.enabledForColumns),yve=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},jt,t)};function bve(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Vt(),l=ut(),a=x({},e,{classes:l.classes}),u=yve(a),f=rt(i,mh),p=Kt(),m=Kt(),v=c.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=mh(i.current.state);w&&b===Ac.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,m,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,m,p]);if(!r)return null;const y=f.open&&f.labelId===p,g=O.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?m:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:O.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return O.jsx(l.slots.baseTooltip,x({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:O.jsxs(H5,{children:[r>1&&O.jsx(AN,{badgeContent:r,color:"default",children:g}),r===1&&g]})}))}const wve=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Cve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},xve=c.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:u}=t,f=le(t,wve),p=Vt(),m=ut(),v={classes:m.classes},y=Cve(v),g=c.useRef(null),C=c.useRef(null),w=Et(g,n),b=p.current.getCellElement(s,o),S=I=>{const R={value:I.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",R,I)};c.useLayoutEffect(()=>{u===0&&b&&(b.tabIndex=-1)},[b,u]),c.useEffect(()=>{if(a){var I;const R=(I=g.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const E=c.useCallback(I=>{z5(I.key)&&I.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const _=p.current.isRowSelectable(s),k=p.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return O.jsx(m.slots.baseCheckbox,x({ref:w,tabIndex:u,checked:i,onChange:S,className:y.root,inputProps:{"aria-label":k},onKeyDown:E,disabled:!_,touchRippleRef:C},(r=m.slotProps)==null?void 0:r.baseCheckbox,f))}),Sve=xve,Pve=["field","colDef"],kve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},Eve=c.forwardRef(function(t,n){var r;const o=le(t,Pve),[,s]=c.useState(!1),i=Vt(),l=ut(),a={classes:l.classes},u=kve(a),f=rt(i,$5),p=rt(i,xs),m=rt(i,Rp),v=rt(i,Z5),y=c.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(R=>i.current.getRow(R)?l.isRowSelectable(i.current.getRowParams(R)):!1),[i,l.isRowSelectable,p]),g=c.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?m:v).reduce((A,$)=>(A[$]=!0,A),{}),[l.pagination,l.checkboxSelectionVisibleOnly,v,m]),C=c.useMemo(()=>y.filter(R=>g[R]).length,[y,g]),w=C>0&&C<Object.keys(g).length,b=C>0,S=R=>{const A={value:R.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",A)},E=f!==null&&f.field===t.field?0:-1;c.useLayoutEffect(()=>{const R=i.current.getColumnHeaderElement(t.field);E===0&&R&&(R.tabIndex=-1)},[E,i,t.field]);const _=c.useCallback(R=>{R.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),k=c.useCallback(()=>{s(R=>!R)},[]);c.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",k),[i,k]);const I=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return O.jsx(l.slots.baseCheckbox,x({ref:n,indeterminate:w,checked:b,onChange:S,className:u.root,inputProps:{"aria-label":I},tabIndex:E,onKeyDown:_},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),TO=bt(O.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),$O=bt(O.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),RO=bt(O.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(O.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Ive=bt(O.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),DO=bt(O.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"),Mve=bt(O.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(O.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bt(O.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 _ve=bt(O.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"),Tve=bt(O.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),$ve=bt(O.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Rve=bt(O.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Ove=bt(O.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Dve=bt(O.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"),eC=bt(O.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"),AO=bt(O.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Ave=bt(O.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Lve=bt(O.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(O.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"),Fve=bt(O.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"),Nve=bt(O.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Bve=bt(O.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"),zve=bt(O.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"),Vve=bt(O.jsx("g",{children:O.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),jve=bt(O.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(O.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 Hve=bt(O.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"),Uve=["hideMenu","colDef","id","labelledby","className","children","open"],Wve=oe(Qd)(()=>({minWidth:248})),Gve=c.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,u=le(t,Uve),f=c.useCallback(p=>{B5(p.key)&&p.preventDefault(),Hme(p.key)&&r(p)},[r]);return O.jsx(Wve,x({id:o,ref:n,className:Ce(ue.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},u,{children:l}))}),Kve=["displayOrder"],qve=e=>{const t=Ba(),{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,g])=>{v[y]=x({},g,s[y]||{})}),v},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=c.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(y=>!v.includes(y))},[o,n]);return c.useMemo(()=>{const g=Array.from(new Set([...p,...m])).filter(C=>u[C]!=null).sort((C,w)=>{const b=f[C],S=f[w],E=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,_=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return E-_});return g.reduce((C,w,b)=>{let S={colDef:l,onClick:i};const E=f[w];if(E){const _=le(E,Kve);S=x({},S,_)}return a&&b!==g.length-1?[...C,[u[w],S],[Pd,{}]]:[...C,[u[w],S]]},[])},[a,l,p,i,u,f,m])};function Yve(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),l=Ar(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:O.jsxs(Pr,{onClick:a,disabled:l,children:[O.jsx(hl,{children:O.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),O.jsx(Oi,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Qve(e){const{onClick:t}=e,n=Vt(),r=ut(),o=c.useCallback(s=>{t(s),n.current.showPreferences(Ac.columns)},[n,t]);return r.disableColumnSelector?null:O.jsxs(Pr,{onClick:o,children:[O.jsx(hl,{children:O.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),O.jsx(Oi,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Xve(e){return O.jsxs(c.Fragment,{children:[O.jsx(Yve,x({},e)),O.jsx(Qve,x({},e))]})}function Zve(e){const{colDef:t,onClick:n}=e,r=Vt(),o=ut(),s=c.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:O.jsxs(Pr,{onClick:s,children:[O.jsx(hl,{children:O.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),O.jsx(Oi,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Jve(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),s=rt(o,Cs),i=ut(),l=c.useMemo(()=>{if(!n)return null;const p=s.find(m=>m.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 m=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,m===l?null:m)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const m=o.current.getLocaleText(p);return typeof m=="function"?m(n):m};return O.jsxs(c.Fragment,{children:[a.includes("asc")&&l!=="asc"?O.jsxs(Pr,{onClick:u,"data-value":"asc",children:[O.jsx(hl,{children:O.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),O.jsx(Oi,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?O.jsxs(Pr,{onClick:u,"data-value":"desc",children:[O.jsx(hl,{children:O.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),O.jsx(Oi,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?O.jsxs(Pr,{onClick:u,children:[O.jsx(hl,{}),O.jsx(Oi,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const eye=["defaultSlots","defaultSlotProps","slots","slotProps"],tye={columnMenuSortItem:Jve,columnMenuFilterItem:Zve,columnMenuColumnsItem:Xve},nye={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},rye=c.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=le(t,eye),a=qve(x({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return O.jsx(Gve,x({ref:n},l,{children:a.map(([u,f],p)=>O.jsx(u,x({},f),p))}))}),oye=c.forwardRef(function(t,n){return O.jsx(rye,x({},t,{ref:n,defaultSlots:tye,defaultSlotProps:nye}))}),sye=["className"],iye=e=>{const{classes:t}=e;return Te({root:["panelContent"]},jt,t)},lye=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function sB(e){const{className:t}=e,n=le(e,sye),r=ut(),o=iye(r);return O.jsx(lye,x({className:Ce(t,o.root),ownerState:r},n))}const aye=["className"],cye=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},jt,t)},uye=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function iB(e){const{className:t}=e,n=le(e,aye),r=ut(),o=cye(r);return O.jsx(uye,x({className:Ce(t,o.root),ownerState:r},n))}const dye=["className"],fye=e=>{const{classes:t}=e;return Te({root:["panelHeader"]},jt,t)},pye=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function hye(e){const{className:t}=e,n=le(e,dye),r=ut(),o=fye(r);return O.jsx(pye,x({className:Ce(t,o.root),ownerState:r},n))}const mye=["className","slotProps"],gye=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},jt,t)},vye=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),yye=()=>!0,lB=c.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=le(t,mye),i=ut(),l=gye(i);return O.jsx(rk,x({open:!0,disableEnforceFocus:!0,isEnabled:yye},o.TrapFocus,{children:O.jsx(vye,x({ref:n,tabIndex:-1,className:Ce(r,l.root),ownerState:i},s))}))}),bye=!1,wye=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],Cye=e=>{const{classes:t}=e;return Te({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},jt,t)},xye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Sye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Ur.root}`]:{marginRight:e.spacing(.5)}})),Pye=oe(xr)({justifyContent:"flex-end"}),FO=new Intl.Collator,kye=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Eye(e){var t,n,r;const o=Vt(),s=c.useRef(null),i=rt(o,Li),l=rt(o,oi),a=ut(),[u,f]=c.useState(""),p=Cye(a),{sort:m,searchPredicate:v=kye,autoFocusSearchField:y=!0,disableHideAllButton:g=!1,disableShowAllButton:C=!1,getTogglableColumns:w}=e,b=le(e,wye),S=c.useMemo(()=>{switch(m){case"asc":return[...i].sort((L,B)=>FO.compare(L.headerName||L.field,B.headerName||B.field));case"desc":return[...i].sort((L,B)=>-FO.compare(L.headerName||L.field,B.headerName||B.field));default:return i}},[i,m]),E=L=>{const{name:B}=L.target;o.current.setColumnVisibility(B,l[B]===!1)},_=c.useCallback(L=>{const B=oi(o),z=x({},B),M=w?w(i):null;return i.forEach(T=>{T.hideable&&(M==null||M.includes(T.field))&&(L?delete z[T.field]:z[T.field]=!1)}),o.current.setColumnVisibilityModel(z)},[o,i,w]),k=c.useCallback(L=>{f(L.target.value)},[]),I=c.useMemo(()=>{const L=w?w(S):null,B=L?S.filter(({field:z})=>L.includes(z)):S;return u?B.filter(z=>v(z,u.toLowerCase())):B},[S,u,v,w]),R=c.useRef(null);c.useEffect(()=>{y?s.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[y]);let A=!1;const $=L=>A===!1&&L.hideable!==!1?(A=!0,!0):!1;return O.jsxs(lB,x({},b,{children:[O.jsx(hye,{children:O.jsx(a.slots.baseTextField,x({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:u,onChange:k,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),O.jsx(sB,{children:O.jsx(xye,{className:p.root,ownerState:a,children:I.map(L=>{var B;return O.jsxs(Sye,{className:p.columnsPanelRow,ownerState:a,children:[O.jsx(qN,{control:O.jsx(a.slots.baseSwitch,x({disabled:L.hideable===!1,checked:l[L.field]!==!1,onClick:E,name:L.field,size:"small",inputRef:$(L)?R:void 0},(B=a.slotProps)==null?void 0:B.baseSwitch)),label:L.headerName||L.field}),!a.disableColumnReorder&&bye&&O.jsx(Pye,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:O.jsx(a.slots.columnReorderIcon,{})})]},L.field)})})}),C&&g?null:O.jsxs(iB,{children:[g?O.jsx("span",{}):O.jsx(a.slots.baseButton,x({onClick:()=>_(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:g,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:O.jsx(a.slots.baseButton,x({onClick:()=>_(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Iye=["children","className","classes"],Mye=We("MuiDataGrid",["panel","paper"]),_ye=oe(Fa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Tye=oe(Vs,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),$ye=c.forwardRef((e,t)=>{const{children:n,className:r}=e,o=le(e,Iye),s=Vt(),i=ut(),l=Mye,[a,u]=c.useState(!1),f=c.useCallback(()=>{s.current.hidePreferences()},[s]),p=c.useCallback(g=>{ly(g.key)&&s.current.hidePreferences()},[s]),m=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 g;const C=(g=s.current.rootElementRef)==null||(g=g.current)==null?void 0:g.querySelector(`.${ue.columnHeaders}`);C&&y(C)},[s]),v?O.jsx(_ye,x({ref:t,placement:"bottom-start",className:Ce(r,l.panel),ownerState:i,anchorEl:v,modifiers:m},o,{children:O.jsx(wN,{mouseEvent:"onMouseUp",onClickAway:f,children:O.jsx(Tye,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),Rye=c.forwardRef(function(t,n){var r,o,s;const i=Vt(),l=rt(i,Li),a=ut(),u=rt(i,mh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ac.filters);return O.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}))}),Oye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Dye=["InputComponentProps"],Aye=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},jt,t)},Lye=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Fye=oe("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)})),Nye=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Bye=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),zye=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Vye=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),jye=e=>{switch(e){case So.And:return"filterPanelOperatorAnd";case So.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Kf=e=>e.headerName||e.field,NO=new Intl.Collator,Hye=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,m;const{item:v,hasMultipleFilters:y,deleteFilter:g,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:b,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:E,focusElementRef:_,logicOperators:k=[So.And,So.Or],columnsSort:I,filterColumns:R,deleteIconProps:A={},logicOperatorInputProps:$={},operatorInputProps:L={},columnInputProps:B={},valueInputProps:z={}}=t,M=le(t,Oye),T=Vt(),F=rt(T,P5),j=rt(T,Or),D=Kt(),N=Kt(),H=Kt(),K=Kt(),Y=ut(),te=Aye(Y),Q=c.useRef(null),X=c.useRef(null),J=y&&k.length>0,se=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},he=(s=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,ne=((i=Y.slotProps)==null?void 0:i.baseInputLabel)||{},re=((l=Y.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:me}=z,ce=le(z,Dye),Se=c.useMemo(()=>{if(R===void 0||typeof R!="function")return F;const de=R({field:v.field,columns:F,currentFilters:(j==null?void 0:j.items)||[]});return F.filter(be=>de.includes(be.field))},[R,j==null?void 0:j.items,F,v.field]),Ee=c.useMemo(()=>{switch(I){case"asc":return Se.sort((de,be)=>NO.compare(Kf(de),Kf(be)));case"desc":return Se.sort((de,be)=>-NO.compare(Kf(de),Kf(be)));default:return Se}},[Se,I]),ae=v.field?T.current.getColumn(v.field):null,Ie=c.useMemo(()=>{var de;return!v.operator||!ae?null:(de=ae.filterOperators)==null?void 0:de.find(be=>be.value===v.operator)},[v,ae]),ye=c.useCallback(de=>{const be=de.target.value,_e=T.current.getColumn(be);if(_e.field===ae.field)return;const Ne=_e.filterOperators.find(Ve=>Ve.value===v.operator)||_e.filterOperators[0],Ge=!Ne.InputComponent||Ne.InputComponent!==(Ie==null?void 0:Ie.InputComponent);C(x({},v,{field:be,operator:Ne.value,value:Ge?void 0:v.value}))},[T,C,v,ae,Ie]),Me=c.useCallback(de=>{const be=de.target.value,_e=ae==null?void 0:ae.filterOperators.find(Ge=>Ge.value===be),Ne=!(_e!=null&&_e.InputComponent)||(_e==null?void 0:_e.InputComponent)!==(Ie==null?void 0:Ie.InputComponent);C(x({},v,{operator:be,value:Ne?void 0:v.value}))},[C,v,ae,Ie]),pe=c.useCallback(de=>{const be=de.target.value===So.And.toString()?So.And:So.Or;E(be)},[E]),fe=()=>{Y.disableMultipleColumnsFiltering?v.value===void 0?g(v):C(x({},v,{value:void 0})):g(v)};return c.useImperativeHandle(_,()=>({focus:()=>{if(Ie!=null&&Ie.InputComponent){var de;Q==null||(de=Q.current)==null||de.focus()}else X.current.focus()}}),[Ie]),O.jsxs(Lye,x({ref:n,className:te.root,"data-id":v.id,ownerState:Y},M,{children:[O.jsx(Fye,x({variant:"standard",as:Y.slots.baseFormControl},se,A,{className:Ce(te.deleteIcon,se.className,A.className),ownerState:Y,children:O.jsx(Y.slots.baseIconButton,x({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:O.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),O.jsx(Nye,x({variant:"standard",as:Y.slots.baseFormControl},se,$,{sx:x({display:J?"flex":"none",visibility:b?"visible":"hidden"},se.sx||{},$.sx||{}),className:Ce(te.logicOperatorInput,se.className,$.className),ownerState:Y,children:O.jsx(Y.slots.baseSelect,x({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:pe,disabled:!!S||k.length===1,native:he},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(de=>c.createElement(Y.slots.baseSelectOption,x({},re,{native:he,key:de.toString(),value:de.toString()}),T.current.getLocaleText(jye(de))))}))})),O.jsxs(Bye,x({variant:"standard",as:Y.slots.baseFormControl},se,B,{className:Ce(te.columnInput,se.className,B.className),ownerState:Y,children:[O.jsx(Y.slots.baseInputLabel,x({},ne,{htmlFor:D,id:N,children:T.current.getLocaleText("filterPanelColumns")})),O.jsx(Y.slots.baseSelect,x({labelId:N,id:D,label:T.current.getLocaleText("filterPanelColumns"),value:v.field||"",onChange:ye,native:he},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:Ee.map(de=>c.createElement(Y.slots.baseSelectOption,x({},re,{native:he,key:de.field,value:de.field}),Kf(de)))}))]})),O.jsxs(zye,x({variant:"standard",as:Y.slots.baseFormControl},se,L,{className:Ce(te.operatorInput,se.className,L.className),ownerState:Y,children:[O.jsx(Y.slots.baseInputLabel,x({},ne,{htmlFor:H,id:K,children:T.current.getLocaleText("filterPanelOperator")})),O.jsx(Y.slots.baseSelect,x({labelId:K,label:T.current.getLocaleText("filterPanelOperator"),id:H,value:v.operator,onChange:Me,native:he,inputRef:X},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:ae==null||(m=ae.filterOperators)==null?void 0:m.map(de=>c.createElement(Y.slots.baseSelectOption,x({},re,{native:he,key:de.value,value:de.value}),de.label||T.current.getLocaleText(`filterOperator${Pe(de.value)}`)))}))]})),O.jsx(Vye,x({variant:"standard",as:Y.slots.baseFormControl},se,ce,{className:Ce(te.valueInput,se.className,ce.className),ownerState:Y,children:Ie!=null&&Ie.InputComponent?O.jsx(Ie.InputComponent,x({apiRef:T,item:v,applyValue:C,focusElementRef:Q},Ie.InputComponentProps,me)):null}))]}))});class ME{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ME}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function _E(){const e=mE(ME.create).current;return x5(e.disposeEffect),e}const Uye=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Ei(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:u,clearButton:f,InputProps:p}=e,m=le(e,Uye),v=_E(),[y,g]=c.useState((t=r.value)!=null?t:""),[C,w]=c.useState(!1),b=Kt(),S=ut(),E=c.useCallback(_=>{const{value:k}=_.target;g(String(k)),w(!0),v.start(S.filterDebounceMs,()=>{const I=x({},r,{value:k,fromInput:b});o(I),w(!1)})},[b,o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{if(r.fromInput!==b){var k;g(String((k=r.value)!=null?k:""))}},[b,r]),O.jsx(S.slots.baseTextField,x({id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:E,variant:"standard",type:s||"text",InputProps:x({},C||f?{endAdornment:C?O.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},m,(n=S.slotProps)==null?void 0:n.baseTextField))}const Wye=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function vu(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,InputProps:a,clearButton:u,tabIndex:f,disabled:p}=e,m=le(e,Wye),v=_E(),[y,g]=c.useState((t=r.value)!=null?t:""),[C,w]=c.useState(!1),b=Kt(),S=ut(),E=c.useCallback(_=>{const k=_.target.value;g(String(k)),w(!0),v.start(S.filterDebounceMs,()=>{o(x({},r,{value:k})),w(!1)})},[o,r,S.filterDebounceMs,v]);return c.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";g(String(k))},[r.value]),O.jsx(S.slots.baseTextField,x({fullWidth:!0,id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:E,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:x({},C||u?{endAdornment:C?O.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)})},m,(n=S.slotProps)==null?void 0:n.baseTextField))}const Gye=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],Kye=({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)}),qye=oe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function BO(e){var t,n,r,o,s,i,l,a;const{item:u,applyValue:f,type:p,apiRef:m,focusElementRef:v,getOptionLabel:y,getOptionValue:g,placeholder:C,tabIndex:w,label:b,clearButton:S}=e,E=le(e,Gye),[_,k]=c.useState((t=u.value)!=null?t:""),I=Kt(),R=Kt(),A=ut(),$=(n=(r=A.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(u.field){const j=m.current.getColumn(u.field);yc(j)&&(L=j)}const B=g||((o=L)==null?void 0:o.getOptionValue),z=y||((s=L)==null?void 0:s.getOptionLabel),M=c.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),T=c.useCallback(j=>{let D=j.target.value;D=eS(D,M,B),k(String(D)),f(x({},u,{value:D}))},[M,B,f,u]);if(c.useEffect(()=>{var j;let D;if(M!==void 0){if(D=eS(u.value,M,B),D!==u.value){f(x({},u,{value:D}));return}}else D=u.value;D=(j=D)!=null?j:"",k(String(D))},[u,M,f,B]),!yc(L)||!yc(L))return null;const F=b!=null?b:m.current.getLocaleText("filterPanelInputLabel");return O.jsxs(qye,{children:[O.jsxs(A.slots.baseFormControl,{children:[O.jsx(A.slots.baseInputLabel,x({},(i=A.slotProps)==null?void 0:i.baseInputLabel,{id:R,htmlFor:I,shrink:!0,variant:"standard",children:F})),O.jsx(A.slots.baseSelect,x({id:I,label:F,labelId:R,value:_,onChange:T,variant:"standard",type:p||"text",inputProps:{tabIndex:w,ref:v,placeholder:C!=null?C:m.current.getLocaleText("filterPanelInputPlaceholder")},native:$},E,(l=A.slotProps)==null?void 0:l.baseSelect,{children:Kye({column:L,OptionComponent:A.slots.baseSelectOption,getOptionLabel:z,getOptionValue:B,isSelectNative:$,baseSelectOptionProps:(a=A.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const Yye=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],Qye=oe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Xye(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:u,tabIndex:f,label:p}=e,m=le(e,Yye),[v,y]=c.useState(s.value||""),g=ut(),C=Kt(),w=Kt(),b=((t=g.slotProps)==null?void 0:t.baseSelect)||{},S=(n=b.native)!=null?n:!0,E=((r=g.slotProps)==null?void 0:r.baseSelectOption)||{},_=c.useCallback(I=>{const R=I.target.value;y(R),i(x({},s,{value:R}))},[i,s]);c.useEffect(()=>{y(s.value||"")},[s.value]);const k=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return O.jsxs(Qye,{children:[O.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[O.jsx(g.slots.baseInputLabel,x({},(o=g.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),O.jsxs(g.slots.baseSelect,x({labelId:C,id:w,label:k,value:v,onChange:_,variant:"standard",native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},m,b,{children:[O.jsx(g.slots.baseSelectOption,x({},E,{native:S,value:"",children:l.current.getLocaleText("filterValueAny")})),O.jsx(g.slots.baseSelectOption,x({},E,{native:S,value:"true",children:l.current.getLocaleText("filterValueTrue")})),O.jsx(g.slots.baseSelectOption,x({},E,{native:S,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Zye=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],zO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Jye=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=rt(s,Or),a=rt(s,P5),u=c.useRef(null),f=c.useRef(null),{logicOperators:p=[So.And,So.Or],columnsSort:m,filterFormProps:v,getColumnForNewFilter:y,disableAddFilterButton:g=!1,disableRemoveAllButton:C=!1}=t,w=le(t,Zye),b=s.current.upsertFilterItem,S=c.useCallback(L=>{s.current.setFilterLogicOperator(L)},[s]),E=c.useCallback(()=>{let L;if(y&&typeof y=="function"){const B=y({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(B===null)return null;L=a.find(({field:z})=>z===B)}else L=a.find(B=>{var z;return(z=B.filterOperators)==null?void 0:z.length});return L?zO(L):null},[l==null?void 0:l.items,a,y]),_=c.useCallback(()=>{if(y===void 0||typeof y!="function")return E();const L=l.items.length?l.items:[E()].filter(Boolean),B=y({currentFilters:L,columns:a});if(B===null)return null;const z=a.find(({field:M})=>M===B);return z?zO(z):null},[l.items,a,y,E]),k=c.useMemo(()=>l.items.length?l.items:(f.current||(f.current=E()),f.current?[f.current]:[]),[l.items,E]),I=k.length>1,R=()=>{const L=_();L&&s.current.upsertFilterItems([...k,L])},A=c.useCallback(L=>{const B=k.length===1;s.current.deleteFilterItem(L),B&&s.current.hideFilterPanel()},[s,k.length]),$=()=>{k.length===1&&k[0].value===void 0&&(s.current.deleteFilterItem(k[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(()=>{k.length>0&&u.current.focus()},[k.length]),O.jsxs(lB,x({ref:n},w,{children:[O.jsx(sB,{children:k.map((L,B)=>O.jsx(Hye,x({item:L,applyFilterChanges:b,deleteFilter:A,hasMultipleFilters:I,showMultiFilterOperators:B>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:B!==1,applyMultiFilterOperatorChanges:S,focusElementRef:B===k.length-1?u:null,logicOperators:p,columnsSort:m},v),L.id==null?B:L.id))}),!i.disableMultipleColumnsFiltering&&!(g&&C)?O.jsxs(iB,{children:[g?O.jsx("span",{}):O.jsx(i.slots.baseButton,x({onClick:R,startIcon:O.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:O.jsx(i.slots.baseButton,x({onClick:$,startIcon:O.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),ebe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function aB(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:u,variant:f}=e,p=le(e,ebe),m={color:i,error:l,helperText:a,size:u,variant:f},[v,y]=c.useState(t.value||[]),g=Kt(),C=ut();c.useEffect(()=>{var b;const S=(b=t.value)!=null?b:[];y(S.map(String))},[t.value]);const w=c.useCallback((b,S)=>{y(S.map(String)),n(x({},t,{value:[...S]}))},[n,t]);return O.jsx(Fh,x({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,S)=>{const{inputValue:E}=S;return E==null||E===""?[]:[E]},id:g,value:v,onChange:w,renderTags:(b,S)=>b.map((E,_)=>O.jsx(C.slots.baseChip,x({variant:"outlined",size:"small",label:E},S({index:_})))),renderInput:b=>{var S;return O.jsx(C.slots.baseTextField,x({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},b.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},m,(S=C.slotProps)==null?void 0:S.baseTextField))}},p))}const tbe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],nbe=$N();function rbe(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:m,getOptionValue:v}=e,y=le(e,tbe),g={color:l,error:a,helperText:u,size:f,variant:p},C=Kt(),w=ut();let b=null;if(r.field){const $=s.current.getColumn(r.field);yc($)&&(b=$)}const S=v||((t=b)==null?void 0:t.getOptionValue),E=m||((n=b)==null?void 0:n.getOptionLabel),_=c.useCallback(($,L)=>S($)===S(L),[S]),k=c.useMemo(()=>{var $;return($=b)!=null&&$.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[]},[b]),I=c.useMemo(()=>k==null?void 0:k.map(S),[k,S]),R=c.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(L=>I==null?void 0:I.findIndex(B=>B===L)).filter(L=>L>=0).map(L=>k[L]):r.value:[],[r.value,k,I]);c.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(x({},r,{value:R.map(S)}))},[r,R,o,S]);const A=c.useCallback(($,L)=>{o(x({},r,{value:L.map(S)}))},[o,r,S]);return O.jsx(Fh,x({multiple:!0,options:k,isOptionEqualToValue:_,filterOptions:nbe,id:C,value:R,onChange:A,getOptionLabel:E,renderTags:($,L)=>$.map((B,z)=>O.jsx(w.slots.baseChip,x({variant:"outlined",size:"small",label:E(B)},L({index:z})))),renderInput:$=>{var L;return O.jsx(w.slots.baseTextField,x({},$,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},$.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},g,(L=w.slotProps)==null?void 0:L.baseTextField))}},y))}const obe=["hideMenu","options"],sbe=["hideMenu","options"];function ibe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,obe);return O.jsx(Pr,x({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function lbe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,sbe);return O.jsx(Pr,x({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const abe=["className","selectedRowCount"],cbe=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},jt,t)},ube=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"}})),dbe=c.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=le(t,abe),i=Vt(),l=ut(),a=cbe(l),u=i.current.getLocaleText("footerRowSelected")(o);return O.jsx(ube,x({ref:n,className:Ce(a.root,r),ownerState:l},s,{children:u}))}),fbe=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=rt(s,Dhe),a=rt(s,ove),u=rt(s,p0),f=!i.hideFooterSelectedRowCount&&a>0?O.jsx(dbe,{selectedRowCount:a}):O.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?O.jsx(i.slots.footerRowCount,x({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:u})):null,m=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&O.jsx(i.slots.pagination,x({},(o=i.slotProps)==null?void 0:o.pagination));return O.jsxs(mge,x({ref:n},t,{children:[f,p,m]}))});function pbe(){var e,t;const n=ut();return O.jsxs(c.Fragment,{children:[O.jsx(n.slots.preferencesPanel,x({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&O.jsx(n.slots.toolbar,x({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const hbe=c.forwardRef(function(t,n){return O.jsx(PE,x({ref:n},t,{children:O.jsx(Vi,{})}))}),mbe=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return O.jsx(PE,x({ref:n},t,{children:o}))}),gbe=oe(oce)(({theme:e})=>({[`& .${mc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${mc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),vbe=c.forwardRef(function(t,n){const r=Vt(),o=ut(),s=rt(r,Ps),i=rt(r,p0),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]),m=(v=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const g=o.pageSizeOptions[y];if(typeof g=="number"){if(g===v)return!0}else if(g.value===v)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return O.jsx(gbe,x({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:m,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:u},r.current.getLocaleText("MuiTablePagination"),t))}),ybe=["className","rowCount","visibleRowCount"],bbe=e=>{const{classes:t}=e;return Te({root:["rowCount"]},jt,t)},wbe=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Cbe=c.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=le(t,ybe),l=Vt(),a=ut(),u=bbe(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return O.jsxs(wbe,x({ref:n,className:Ce(u.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),uy=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=EE(e),n=rve(e)):(n=za(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Uc=(e,t)=>{const n=uy(e,t);return c.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},tS={current:null};function Gh(e){return e.isInternal=!0,e}function dy(e){return e!==void 0&&e.isInternal===!0}function xbe(e){return Gh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,tS.current))})}function Kh(e){return e.map(t=>x({},t,{getApplyFilterFn:xbe(t.getApplyFilterFnV7),getApplyFilterFnV7:Gh(t.getApplyFilterFnV7)}))}function cB(e){return Gh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function uB(e){return{current:e.current.getPublicApi()}}const Sbe=typeof window=="undefined"?globalThis:window,dB=Sbe[atob("ZXZhbA==")];let nS;try{nS=dB("true")}catch(e){nS=!1}const rS=(e,t)=>{const n=x({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=ef(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Pbe=Gi(["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"),kbe=Gi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Ebe=Gi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),fB=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Pbe(),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&&kbe(),i&&Ebe(),i||s?x({},e,{items:o.map(l=>rS(l,n))}):e.items!==o?x({},e,{items:o}):e},VO=(e,t,n)=>r=>x({},r,{filterModel:fB(e,t,n)}),ca=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,pB=(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=ca(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=!dy(a.getApplyFilterFn),f=!dy(a.getApplyFilterFnV7),p=uB(t);if(a.getApplyFilterFnV7&&!(u&&!f)){const v=a.getApplyFilterFnV7(i,n);return typeof v!="function"?null:{v7:!0,item:i,fn:y=>{let g=t.current.getRowValue(y,n);return s&&(g=ca(g)),v(g,y,n,p)}}}const m=a.getApplyFilterFn(i,n);return typeof m!="function"?null:{v7:!1,item:i,fn:v=>{const y=t.current.getCellParams(v,i.field);tS.current=p,s&&(y.value=ca(y.value));const g=m(y);return tS.current=null,g}}};let jO=1;const Ibe=(e,t,n)=>{const{items:r}=e,o=r.map(a=>pB(a,t)).filter(a=>!!a);if(o.length===0)return null;if(!nS||n)return(a,u)=>{const f={};for(let p=0;p<o.length;p+=1){const m=o[p];(!u||u(m.item.field))&&(f[m.item.id]=m.v7?m.fn(a):m.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=dB(s.replaceAll("$$",String(jO))),l=(a,u)=>i(t.current.getRowId,o,a,u);return jO+=1,l},Mbe=(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)?c0(t):ml(t),a=[],{ignoreDiacritics:u}=t.current.rootProps,f=uB(t);return l.forEach(p=>{const m=t.current.getColumn(p),v=m==null?void 0:m.getApplyQuickFilterFn,y=m==null?void 0:m.getApplyQuickFilterFnV7,g=!dy(v),C=!dy(y);y&&!(g&&!C)?a.push({column:m,appliers:s.map(w=>{const b=u?ca(w):w;return{v7:!0,fn:y(b,m,f)}})}):v&&a.push({column:m,appliers:s.map(w=>{const b=u?ca(w):w;return{v7:!1,fn:v(b,m,f)}})})}),function(m,v){const y={},g={};e:for(let w=0;w<s.length;w+=1){const b=s[w];for(let S=0;S<a.length;S+=1){const{column:E,appliers:_}=a[S],{field:k}=E;if(v&&!v(k))continue;const I=_[w];let R=t.current.getRowValue(m,E);if(I.fn!==null)if(I.v7){if(u&&(R=ca(R)),I.fn(R,m,E,f)){y[b]=!0;continue e}}else{var C;const A=(C=g[k])!=null?C:t.current.getCellParams(t.current.getRowId(m),k);if(u&&(A.value=ca(A.value)),g[k]=A,I.fn(A)){y[b]=!0;continue e}}}y[b]=!1}return y}},_be=(e,t,n)=>{const r=Ibe(e,t,n),o=Mbe(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,Tbe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>pB(r,t)!==null)),e.cleanedFilterItems),$be=(e,t,n,r,o)=>{const s=Tbe(o,r,n.items),i=e.filter(HO),l=t.filter(HO);if(i.length>0){var a;const f=m=>i.some(v=>v[m.id]);if(((a=n.logicOperator)!=null?a:hh().logicOperator)===So.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=m=>l.some(v=>v[m]);if(((u=n.quickFilterLogicOperator)!=null?u:hh().quickFilterLogicOperator)===So.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},UO=Gh(e=>{if(!e)return null;const t=new RegExp(Xg(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=ca(i)),i!=null?t.test(i.toString()):!1}}),hB=(e=!1)=>Kh([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Xg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ei},{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:Ei},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Xg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ei},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Xg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ei},{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:aB}]),ai={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:fve,type:"string",align:"left",filterOperators:hB(),renderEditCell:Fme,getApplyQuickFilterFn:cB(UO),getApplyQuickFilterFnV7:UO},Rbe=()=>Kh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Xye}]);function Obe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Dbe=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}},mB=x({},ai,{type:"boolean",align:"center",headerAlign:"center",renderCell:Pme,renderEditCell:Mme,sortComparator:eB,valueFormatter:Obe,filterOperators:Rbe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Dbe(e)}),ql="__check__",rf=x({},mB,{field:ql,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=>cy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>O.jsx(Eve,x({},e)),renderCell:e=>O.jsx(Sve,x({},e))}),v0="actions",Abe=x({},ai,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:nge,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),TE="__detail_panel_toggle__",lo=e=>e.editRows,Lbe=["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"],Fbe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:s,classes:i}=e;return Te({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",s==="auto"&&"row--dynamicHeight"]},jt,i)};function Nbe({width:e}){if(!e)return null;const t={width:e};return O.jsx("div",{className:`${ue.cell} ${ue.withBorderColor}`,style:t})}const Bbe=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:m,renderedColumns:v,containerWidth:y,firstColumnToRender:g,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:w,isNotVisible:b,focusedCell:S,onClick:E,onDoubleClick:_,onMouseEnter:k,onMouseLeave:I,onMouseOut:R,onMouseOver:A}=t,$=le(t,Lbe),L=Vt(),B=c.useRef(null),z=ut(),M=Uc(L,z),T=rt(L,vE),F=rt(L,Cs),j=rt(L,f0),D=rt(L,Uh),N=rt(L,lo),H=Et(B,n),K=l+D+2,Y={selected:r,hovered:o,isLastVisible:C,classes:z.classes,editing:L.current.getRowMode(s)===Cn.Edit,editable:z.editMode===Hi.Row,rowHeight:f},te=Fbe(Y);c.useLayoutEffect(()=>{f==="auto"&&B.current&&typeof ResizeObserver=="undefined"&&L.current.unstable_storeRowHeightMeasurement(s,B.current.clientHeight,u)},[L,f,s,u]),c.useLayoutEffect(()=>{if(M.range){const Ge=L.current.getRowIndexRelativeToVisibleRows(s);Ge!=null&&L.current.unstable_setLastMeasuredRowIndex(Ge)}const be=B.current;if(!be||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;L.current.unstable_storeRowHeightMeasurement(s,Ue,u)});return Ne.observe(be),()=>Ne.disconnect()},[L,M.range,l,f,s,u]);const Q=c.useCallback((be,_e)=>Ne=>{Ne.target.nodeType===1&&!Ne.currentTarget.contains(Ne.target)||L.current.getRow(s)&&(L.current.publishEvent(be,L.current.getRowParams(s),Ne),_e&&_e(Ne))},[L,s]),X=c.useCallback(be=>{const _e=ame(be.target,ue.cell),Ne=_e==null?void 0:_e.getAttribute("data-field");if(Ne){if(Ne===rf.field||Ne===TE||Ne==="__reorder__"||L.current.getCellMode(s,Ne)===un.Edit)return;const Ge=L.current.getColumn(Ne);if((Ge==null?void 0:Ge.type)===v0)return}Q("rowClick",E)(be)},[L,E,Q,s]),{slots:J,slotProps:se,disableColumnReorder:Z}=z,he=J.cell===Jx?Jx:yme,ne=z.rowReordering,re=(be,_e)=>{var Ne,Ge;const Ve=Z&&be.disableReorder||!ne&&!!F.length&&j>1&&Object.keys(N).length>0,Ue=(Ne=(Ge=N[s])==null?void 0:Ge[be.field])!=null?Ne:null;let Le=!1;return w!==void 0&&m[w].field===be.field&&(Le=!0),O.jsx(he,x({column:be,width:_e.width,rowId:s,height:f,showRightBorder:_e.showRightBorder,align:be.align||"left",colIndex:_e.indexRelativeToAllColumns,colSpan:_e.colSpan,disableDragEvents:Ve,editCellState:Ue,isNotVisible:Le},se==null?void 0:se.cell),be.field)},me=rt(L,()=>x({},L.current.unstable_getRowInternalSizes(s)),gE);let ce=f;if(ce==="auto"&&me){let be=0;const _e=Object.entries(me).reduce((Ne,[Ge,Ve])=>/^base[A-Z]/.test(Ge)?(be+=1,Ve>Ne?Ve:Ne):Ne,0);_e>0&&be>1&&(ce=_e)}const Se=c.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const be=x({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const _e=z.rowSpacingType==="border"?"borderTopWidth":"marginTop";be[_e]=me.spacingTop}if(me!=null&&me.spacingBottom){const _e=z.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ne=be[_e];typeof Ne!="number"&&(Ne=parseInt(Ne||"0",10)),Ne+=me.spacingBottom,be[_e]=Ne}return be},[b,f,a,ce,me,z.rowSpacingType]),Ee=L.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof z.getRowClassName=="function"){var ae;const be=l-(((ae=M.range)==null?void 0:ae.firstRowIndex)||0),_e=x({},L.current.getRowParams(s),{isFirstVisible:be===0,isLastVisible:be===M.rows.length-1,indexRelativeToCurrentPage:be});Ee.push(z.getRowClassName(_e))}const Ie=Qge(1e4,20,80),ye=L.current.getRowNode(s);if(!ye)return null;const Me=ye.type,pe=[];for(let be=0;be<v.length;be+=1){const _e=v[be];let Ne=g+be;w!==void 0&&S&&(m[w].field===_e.field?Ne=w:Ne-=1);const Ge=L.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:z.showCellVerticalBorder,indexRelativeToAllColumns:Ne};pe.push(re(_e,Le))}else{const{width:Ve}=Ge.cellProps,Ue=Math.round(Ie());pe.push(O.jsx(J.skeletonCell,{width:Ve,contentWidth:Ue,field:_e.field,align:_e.align},_e.field))}}const fe=y-T,de=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",_),onMouseEnter:Q("rowMouseEnter",k),onMouseLeave:Q("rowMouseLeave",I),onMouseOut:Q("rowMouseOut",R),onMouseOver:Q("rowMouseOver",A)}:null;return O.jsxs("div",x({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:Ce(...Ee,te.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:Se},de,$,{children:[pe,fe>0&&O.jsx(Nbe,{width:fe})]}))}),zbe=g0(Bbe);function Vbe({privateApiRef:e,props:t,children:n}){const r=c.useRef(e.current.getPublicApi());return O.jsx(w5.Provider,{value:t,children:O.jsx(C5.Provider,{value:e,children:O.jsx(b5.Provider,{value:r,children:n})})})}const jbe=qge()&&window.localStorage.getItem("DEBUG")!=null,cp=()=>{},Hbe={debug:cp,info:cp,warn:cp,error:cp},WO=["debug","info","warn","error"];function GO(e,t,n=console){const r=WO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return WO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[u,...f]=a;n[i](`MUI: ${e} - ${u}`,...f)}:s[i]=cp,s),{})}const Ube=(e,t)=>{const n=c.useCallback(r=>jbe?GO(r,"debug",t.logger):t.logLevel?GO(r,t.logLevel.toString(),t.logger):Hbe,[t.logLevel,t.logger]);At(e,{getLogger:n},"private")};class $E{static create(t){return new $E(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 Wbe=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 gB=Symbol("mui.api_private"),Gbe=e=>e.isPropagationStopped!==void 0;let KO=0;function Kbe(e){var t;const n=(t=e.current)==null?void 0:t[gB];if(n)return n;const r={},o={state:r,store:$E.create(r),instanceId:{id:KO}};return KO+=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 Wbe}),o}function qbe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[gB]:e.current}}function Ybe(e,t){const n=c.useRef(),r=c.useRef();r.current||(r.current=Kbe(n)),n.current||(n.current=qbe(r));const o=c.useCallback((...i)=>{const[l,a,u={}]=i;if(u.defaultMuiPrevented=!1,Gbe(u)&&u.isPropagationStopped())return;const f=t.signature===Fi.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 Qbe=(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 vh(e){"@babel/helpers - typeof";return vh=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},vh(e)}function Xbe(e,t){if(vh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yh(e){var t=Xbe(e,"string");return vh(t)==="symbol"?t:String(t)}const Zbe=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,m)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const v=t.current[f];return v.processors.get(p)!==m&&(v.processors.set(p,m),r(v)),()=>{t.current[f].processors.set(p,null)}},[r]),s=c.useCallback((f,p,m)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=m,()=>{const v=t.current[f].appliers,y=le(v,[p].map(yh));t.current[f].appliers=y}),[]),i=c.useCallback(f=>{const p=t.current[f];r(p)},[r]),l=c.useCallback((...f)=>{const[p,m,v]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((g,C)=>C?C(g,v):g,m):m},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},u={unstable_applyPipeProcessors:l};At(e,a,"private"),At(e,u,"public")},mr=(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]);Wh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},RE=(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]);Wh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},fy=(e,t,n,r)=>{const o=c.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Wh(()=>{o()});const s=c.useRef(!0);c.useEffect(()=>{s.current?s.current=!1:o()},[o])},Lc="none",qO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Jbe=e=>{const t=c.useRef(new Map),n=c.useRef({}),r=c.useCallback((a,u,f)=>{const p=()=>{const y=n.current[u],g=le(y,[a].map(yh));n.current[u]=g};n.current[u]||(n.current[u]={});const m=n.current[u],v=m[a];return m[a]=f,!v||v===f||a===e.current.getActiveStrategy(qO[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=c.useCallback((a,u)=>{const f=e.current.getActiveStrategy(qO[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 m=p[f];return m(u)},[e]),s=c.useCallback(a=>{var u;const p=Array.from(t.current.entries()).find(([,m])=>m.group!==a?!1:m.isAvailable());return(u=p==null?void 0:p[0])!=null?u:Lc},[]),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")},e0e=(e,t)=>{const n=c.useRef({}),[,r]=c.useState(),o=c.useCallback(f=>{n.current[f.stateId]=f},[]),s=c.useCallback((f,p)=>{let m;if(G5(f)?m=f(e.current.state):m=f,e.current.state===m)return!1;let v=!1;const y=[];if(Object.keys(n.current).forEach(g=>{const C=n.current[g],w=C.stateSelector(e.current.state,e.current.instanceId),b=C.stateSelector(m,e.current.instanceId);b!==w&&(y.push({stateId:C.stateId,hasPropChanged:b!==C.propModel}),C.propModel!==void 0&&b!==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(g=>g.stateId).join(", ")} in the same transaction.`);if(v||(e.current.state=m,e.current.publishEvent&&e.current.publishEvent("stateChange",m),e.current.store.update(m)),y.length===1){const{stateId:g,hasPropChanged:C}=y[0],w=n.current[g],b=w.stateSelector(m,e.current.instanceId);if(w.propOnChange&&C){const S=t.signature===Fi.DataGridPro?{api:e.current,reason:p}:{reason:p};w.propOnChange(b,S)}v||e.current.publishEvent(w.changeEvent,b,{reason:p})}return!v},[e,t.signature]),i=c.useCallback((f,p,m)=>e.current.setState(v=>x({},v,{[f]:p(v[f])}),m),[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")},t0e=(e,t)=>{const n=Ybe(e,t);return Ube(n,t),e0e(n,t),Zbe(n),Jbe(n),Qbe(n,t),n.current.register("private",{rootProps:t}),n},bo=(e,t,n)=>{const r=c.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},n0e=/(\d+)-(\d+)-(\d+)/,r0e=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function yu(e,t,n,r){if(!e.value)return null;const[o,s,i,l,a]=e.value.match(n?r0e:n0e).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 m=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(m,u)}}const vB=e=>Kh([{value:"is",getApplyFilterFnV7:t=>yu(t,(n,r)=>n===r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>yu(t,(n,r)=>n!==r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>yu(t,(n,r)=>n>r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>yu(t,(n,r)=>n>=r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>yu(t,(n,r)=>n<r,e,!e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>yu(t,(n,r)=>n<=r,e),InputComponent:vu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function yB({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 o0e({value:e,field:t,id:n}){return e?(yB({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function s0e({value:e,field:t,id:n}){return e?(yB({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const i0e=x({},ai,{type:"date",sortComparator:tB,valueFormatter:o0e,filterOperators:vB(),renderEditCell:N5,pastedValueParser:e=>new Date(e)}),l0e=x({},ai,{type:"dateTime",sortComparator:tB,valueFormatter:s0e,filterOperators:vB(!0),renderEditCell:N5,pastedValueParser:e=>new Date(e)}),Jl=e=>e==null?null:Number(e),YO=Gh(e=>e==null||Number.isNaN(e)||e===""?null:t=>Jl(t)===Jl(e)),a0e=()=>Kh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Jl(t)===e.value,InputComponent:Ei,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Jl(t)!==e.value,InputComponent:Ei,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)>e.value,InputComponent:Ei,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)>=e.value,InputComponent:Ei,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)<e.value,InputComponent:Ei,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Jl(t)<=e.value,InputComponent:Ei,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:aB,InputComponentProps:{type:"number"}}]),c0e=x({},ai,{type:"number",align:"right",headerAlign:"right",sortComparator:eB,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Kge(e)?e.toLocaleString():e||"",filterOperators:a0e(),getApplyQuickFilterFn:cB(YO),getApplyQuickFilterFnV7:YO}),bu=e=>e==null||!kE(e)?e:e.value,u0e=()=>Kh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)===bu(e.value),InputComponent:BO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)!==bu(e.value),InputComponent:BO},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(bu);return n=>t.includes(bu(n))},InputComponent:rbe}]),d0e=e=>typeof e[0]=="object",f0e=e=>kE(e)?e.value:e,p0e=e=>kE(e)?e.label:String(e),h0e=x({},ai,{type:"singleSelect",getOptionLabel:p0e,getOptionValue:f0e,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!yc(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(!d0e(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:qme,filterOperators:u0e(),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}}),bB="__default__",m0e=()=>({string:ai,number:c0e,date:i0e,dateTime:l0e,boolean:mB,singleSelect:h0e,[v0]:Abe,[bB]:ai});function oS(e,t){return typeof e=="string"&&[t,`
|
|
350
|
+
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const wB=(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 oS(o,n)};Gi(["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 sS{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 g0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new sS({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(wB(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function v0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((v,y)=>`${v}${g0e({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!==rf.field),f=[];if(s){const v=l.current.unstable_getAllGroupDetails();let y=0;const g=u.reduce((C,w)=>{const b=l.current.unstable_getColumnGroupPath(w.field);return C[w.field]=b,y=Math.max(y,b.length),C},{});for(let C=0;C<y;C+=1){const w=new sS({delimiterCharacter:r,sanitizeCellValue:oS});f.push(w),u.forEach(b=>{const S=(g[b.field]||[])[C],E=v[S];w.addValue(E?E.headerName||E.groupId:"")})}}const p=new sS({delimiterCharacter:r,sanitizeCellValue:oS});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 QO(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 y0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{QO(e)}):QO(e)}function b0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const w0e=(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")||b0e(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=Ho(e);if(u){const f=e.current.getCellParams(u.id,u.field);l=wB(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(y0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Xge(e,e.current.rootElementRef,"keydown",s),In(e,"clipboardCopy",t.onClipboardCopy)},C0e=e=>x({},e,{columnMenu:{open:!1}}),x0e=e=>{const t=eo(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=Zx(e.current.state);if(i.field){const a=ef(e),u=oi(e),f=ml(e);let p=i.field;if(a[p]||(p=f[0]),u[p]===!1){const m=f.filter(y=>y===p?!0:u[y]!==!1),v=m.indexOf(p);p=m[v+1]||m[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=Zx(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);At(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),dt(e,"columnResizeStart",r),dt(e,"virtualScrollerWheel",e.current.hideColumnMenu),dt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},CB=["maxWidth","minWidth","width","flex"];function S0e({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 iS=(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=Rd(a.width||ai.width,a.minWidth||ai.minWidth,a.maxWidth||ai.maxWidth),o+=u,a.computedWidth=u}n[l]=a});const i=Math.max(t-o,0);if(r>0&&t>0){const l=S0e({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return x({},e,{lookup:n})},P0e=(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],m=x({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([v,y])=>{m[v]=y===-1?1/0:y}),a[p]=m}return x({},e,{orderedFields:l,lookup:a})};function XO(e,t){let n=e[bB];return t&&e[t]&&(n=e[t]),n}const _u=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=oi(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=vc(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,g)=>x({},y,{[g]:!1}),{})),t.forEach(y=>{const{field:g}=y;p[g]=!0;let C=f.lookup[g];C==null?(C=x({},XO(r,y.type),{field:g,hasBeenResized:!1}),f.orderedFields.push(g)):s&&f.orderedFields.push(g),C&&C.type!==y.type&&(C=x({},XO(r,y.type),{field:g}));let w=C.hasBeenResized;CB.forEach(b=>{y[b]!==void 0&&(w=!0,y[b]===-1&&(y[b]=1/0))}),f.lookup[g]=x({},C,y,{hasBeenResized:w})}),s&&!u&&Object.keys(f.lookup).forEach(y=>{p[y]||delete f.lookup[y]});const m=e.current.unstable_applyPipeProcessors("hydrateColumns",f),v=P0e(m,n);return iS(v,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},ZO=e=>t=>x({},t,{columns:e});function lS({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 k0e({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return lS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function OE(e,t){const n=nf(e),r=Uh(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const xB=m0e(),E0e=(e,t,n)=>{var r,o,s,i;const l=_u({apiRef:n,columnTypes:xB,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 I0e(e,t){var n,r;const o=eo(e,"useGridColumns"),s=xB,i=c.useRef(t.columns),l=c.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:oi,changeEvent:"columnVisibilityModelChange"});const a=c.useCallback(M=>{o.debug("Updating columns state."),e.current.setState(ZO(M)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",M.orderedFields)},[o,e]),u=c.useCallback(M=>ef(e)[M],[e]),f=c.useCallback(()=>Li(e),[e]),p=c.useCallback(()=>Ar(e),[e]),m=c.useCallback((M,T=!0)=>(T?Ar(e):Li(e)).findIndex(j=>j.field===M),[e]),v=c.useCallback(M=>{const T=m(M);return $d(e)[T]},[e,m]),y=c.useCallback(M=>{oi(e)!==M&&(e.current.setState(F=>x({},F,{columns:_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),g=c.useCallback(M=>{const T=_u({apiRef:e,columnTypes:s,columnsToUpsert:M,initialState:void 0,keepOnlyColumnsToUpsert:!1});a(T)},[e,a,s]),C=c.useCallback((M,T)=>{var F;const j=oi(e),D=(F=j[M])!=null?F:!0;if(T!==D){const N=x({},j,{[M]:T});e.current.setColumnVisibilityModel(N)}},[e]),w=c.useCallback(M=>ml(e).findIndex(F=>F===M),[e]),b=c.useCallback((M,T)=>{const F=ml(e),j=w(M);if(j===T)return;o.debug(`Moving column ${M} to index ${T}`);const D=[...F],N=D.splice(j,1)[0];D.splice(T,0,N),a(x({},vc(e.current.state),{orderedFields:D}));const H={column:e.current.getColumn(M),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(M),oldIndex:j};e.current.publishEvent("columnIndexChange",H)},[e,o,a,w]),S=c.useCallback((M,T)=>{var F,j;o.debug(`Updating column ${M} width to ${T}`);const D=vc(e.current.state),N=D.lookup[M],H=x({},N,{width:T,hasBeenResized:!0});a(iS(x({},D,{lookup:x({},D.lookup,{[M]:H})}),(F=(j=e.current.getRootDimensions())==null?void 0:j.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(M),colDef:H,width:T})},[e,o,a]),E={getColumn:u,getAllColumns:f,getColumnIndex:m,getColumnPosition:v,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:w,updateColumns:g,setColumnVisibilityModel:y,setColumnVisibility:C,setColumnWidth:S},_={setColumnIndex:b};At(e,E,"public"),At(e,_,t.signature===Fi.DataGrid?"private":"public");const k=c.useCallback((M,T)=>{var F,j;const D={},N=oi(e);(!T.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(j=t.initialState)==null||(j=j.columns)==null?void 0:j.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(N).length>0)&&(D.columnVisibilityModel=N),D.orderedFields=ml(e);const K=Li(e),Y={};return K.forEach(te=>{if(te.hasBeenResized){const Q={};CB.forEach(X=>{let J=te[X];J===1/0&&(J=-1),Q[X]=J}),Y[te.field]=Q}}),Object.keys(Y).length>0&&(D.dimensions=Y),x({},M,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=c.useCallback((M,T)=>{var F;const j=(F=T.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,D=T.stateToRestore.columns;if(j==null&&D==null)return M;const N=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:D,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1});return e.current.setState(ZO(N)),D!=null&&e.current.publishEvent("columnsChange",N.orderedFields),M},[e,s]),R=c.useCallback((M,T)=>{if(T===Ac.columns){var F;const j=t.slots.columnsPanel;return O.jsx(j,x({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return M},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),A=c.useCallback(M=>t.disableColumnSelector?M:[...M,"columnMenuColumnsItem"],[t.disableColumnSelector]);mr(e,"columnMenu",A),mr(e,"exportState",k),mr(e,"restoreState",I),mr(e,"preferencePanel",R);const $=c.useRef(null);dt(e,"viewportInnerSizeChange",M=>{$.current!==M.width&&($.current=M.width,a(iS(vc(e.current.state),M.width)))});const B=c.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const M=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(M)},[e,o,a,s]);RE(e,"hydrateColumns",B);const z=c.useRef(!0);c.useEffect(()=>{if(z.current){z.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const M=_u({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(M)},[o,e,a,t.columns,s]),c.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const M0e=.7,_0e=1.3,SB={compact:M0e,comfortable:_0e,standard:1},T0e=(e,t)=>x({},e,{density:{value:t.density,factor:SB[t.density]}}),$0e=(e,t)=>{const n=eo(e,"useDensity"),r=c.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=CE(i),a={value:s,factor:SB[s]};return bc(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 R0e(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 PB=({apiRef:e,options:t})=>{const n=Li(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:Ar(e)).filter(o=>!o.disableExport)},O0e=({apiRef:e})=>{var t,n;const r=Uhe(e),o=ei(e),s=e.current.getSelectedRows(),i=r.filter(f=>o[f].type!=="footer"),l=tf(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},D0e=(e,t)=>{const n=eo(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,m;n.debug("Get data as CSV");const v=PB({apiRef:e,options:u}),g=((f=u.getRowsToExport)!=null?f:O0e)({apiRef:e});return v0e({columns:v,rowIds:g,delimiterCharacter:u.delimiter||",",includeHeaders:(p=u.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(m=u.includeColumnGroupsHeaders)!=null?m:!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"});R0e(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:O.jsx(ibe,{options:f.csvOptions}),componentName:"csvExport"}]},[]);mr(e,"exportMenu",a)},A0e=(e,t)=>{var n,r;const o=x({},Y5(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return Q5(o.pageSize,t.signature),x({},e,{pagination:{paginationModel:o}})},Zg=(e,t,n)=>r=>{var o;let s=r.paginationModel;const i=(o=n==null?void 0:n.pageSize)!=null?o:s.pageSize,l=q5(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=eve(s.page,l);return a!==s.page&&(s=x({},s,{page:a})),Q5(s.pageSize,t),{paginationModel:s}},L0e=(e,t)=>{var n;const r=eo(e,"useGridPagination"),o=rt(e,p0),s=rt(e,nf),i=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Ps,changeEvent:"paginationModelChange"});const l=c.useCallback(g=>{const C=Ps(e);g!==C.page&&(r.debug(`Setting page to ${g}`),e.current.setPaginationModel({page:g,pageSize:C.pageSize}))},[e,r]),a=c.useCallback(g=>{const C=Ps(e);g!==C.pageSize&&(r.debug(`Setting page size to ${g}`),e.current.setPaginationModel({pageSize:g,page:C.page}))},[e,r]),u=c.useCallback(g=>{var C;const w=Ps(e);g!==w&&(r.debug("Setting 'paginationModel' to",g),e.current.updateControlState("pagination",Zg((C=t.rowCount)!=null?C:o,t.signature,g),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);At(e,{setPage:l,setPageSize:a,setPaginationModel:u},"public");const p=c.useCallback((g,C)=>{var w;const b=Ps(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((w=t.initialState)==null||(w=w.pagination)==null?void 0:w.paginationModel)!=null||b.page!==0&&b.pageSize!==Jge(t.autoPageSize)?x({},g,{pagination:x({},g.pagination,{paginationModel:b})}):g},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),m=c.useCallback((g,C)=>{var w,b,S;const E=(w=C.stateToRestore.pagination)!=null&&w.paginationModel?x({},Y5(t.autoPageSize),(b=C.stateToRestore.pagination)==null?void 0:b.paginationModel):Ps(e);return e.current.updateControlState("pagination",Zg((S=t.rowCount)!=null?S:o,t.signature,E),"stateRestorePreProcessing"),g},[e,t.autoPageSize,t.rowCount,t.signature,o]);mr(e,"exportState",p),mr(e,"restoreState",m);const v=()=>{var g;const C=Ps(e);(g=e.current.virtualScrollerRef)!=null&&g.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},y=c.useCallback(()=>{const g=e.current.getRootDimensions();if(!t.autoPageSize||!g)return;const C=D5(e),w=Math.floor((g.viewportInnerSize.height-C.top-C.bottom)/i);e.current.setPageSize(w)},[e,t.autoPageSize,i]);dt(e,"viewportInnerSizeChange",y),dt(e,"paginationModelChange",v),c.useEffect(()=>{},[t.rowCount,t.paginationMode]),c.useEffect(()=>{var g;e.current.updateControlState("pagination",Zg((g=t.rowCount)!=null?g:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),c.useEffect(()=>{y()},[y])};function F0e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function N0e(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 B0e=(e,t)=>{const n=eo(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,g,C)=>new Promise(w=>{const b=PB({apiRef:e,options:{fields:y,allColumns:g}}).map(_=>_.field),S=Li(e),E={};S.forEach(_=>{E[_.field]=b.includes(_.field)}),C&&(E[rf.field]=!0),e.current.setColumnVisibilityModel(E),w()}),[e]),a=c.useCallback(y=>{const C=y({apiRef:e}).map(w=>e.current.getRow(w));e.current.setRows(C)},[e]),u=c.useCallback((y,g)=>{var C,w;const b=x({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},g),S=y.contentDocument;if(!S)return;const E=gh(e.current.state),_=e.current.rootElementRef.current,k=_.cloneNode(!0),I=k.querySelector(`.${ue.main}`);I.style.overflow="visible",k.style.contain="size";const A=k.querySelector(`.${ue.columnHeaders}`).querySelector(`.${ue.columnHeadersInner}`);A.style.width="100%";let $=((C=_.querySelector(`.${ue.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,L=((w=_.querySelector(`.${ue.footerContainer}`))==null?void 0:w.offsetHeight)||0;if(b.hideToolbar){var B;(B=k.querySelector(`.${ue.toolbarContainer}`))==null||B.remove(),$=0}if(b.hideFooter){var z;(z=k.querySelector(`.${ue.footerContainer}`))==null||z.remove(),L=0}const M=E.currentPageTotalHeight+OE(e,t.columnHeaderHeight)+$+L;if(k.style.height=`${M}px`,k.style.boxSizing="content-box",g!=null&&g.getRowsToExport){const D=k.querySelector(`.${ue.footerContainer}`);D.style.position="absolute",D.style.width="100%",D.style.top=`${M-L}px`}const T=document.createElement("div");T.appendChild(k),S.body.innerHTML=T.innerHTML;const F=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof F=="string"){const D=S.createElement("style");D.appendChild(S.createTextNode(F)),S.head.appendChild(D)}b.bodyClassName&&S.body.classList.add(...b.bodyClassName.split(" "));const j=[];if(b.copyStyles){const D=_.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 te=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
|
+
`);te.appendChild(S.createTextNode(X)),S.head.appendChild(te)}}else if(Y.getAttribute("href")){const te=S.createElement(Y.tagName);for(let Q=0;Q<Y.attributes.length;Q+=1){const X=Y.attributes[Q];X&&te.setAttribute(X.nodeName,X.nodeValue||"")}j.push(new Promise(Q=>{te.addEventListener("load",()=>Q())})),S.head.appendChild(te)}}}Promise.all(j).then(()=>{y.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=c.useCallback(y=>{var g;r.current.body.removeChild(y),e.current.restoreState(o.current||{}),(g=o.current)!=null&&(g=g.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),m={exportDataAsPrint:c.useCallback(y=>ot(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=oi(e),i.current=e.current.getSortedRows(),t.pagination){const C=T5(e),w={page:0,pageSize:C};e.current.updateControlState("pagination",Zg(C,"DataGridPro",w)),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 F0e();const g=N0e(y==null?void 0:y.fileName);g.onload=()=>{u(g,y),g.contentWindow.matchMedia("print").addEventListener("change",w=>{w.matches===!1&&f(g)})},r.current.body.appendChild(g)}),[t,n,e,u,f,l,a])};At(e,m,"public");const v=c.useCallback((y,g)=>{var C;return(C=g.printOptions)!=null&&C.disableToolbarButton?y:[...y,{component:O.jsx(lbe,{options:g.printOptions}),componentName:"printExport"}]},[]);mr(e,"exportMenu",v)},z0e=(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:hh();return x({},e,{filter:{filterModel:fB(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},V0e=e=>e.filteredRowsLookup;function JO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function j0e(){return a0(Object.values)}const H0e=(e,t)=>{var n,r;const o=eo(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Or,changeEvent:"filterModelChange"});const s=c.useCallback(()=>{e.current.setState($=>{const L=Or($,e.current.instanceId),B=t.filterMode==="client"?_be(L,e,t.disableEval):null,z=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:B,filterModel:L!=null?L:hh()}),M=x({},$,{filter:x({},$.filter,z)}),T=JO(e,M);return x({},M,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=c.useCallback(($,L)=>L==null||L.filterable===!1||t.disableColumnFilter?$:[...$,"columnMenuFilterItem"],[t.disableColumnFilter]),l=c.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=c.useCallback($=>{const L=Or(e),B=[...L.items],z=B.findIndex(M=>M.id===$.id);z===-1?B.push($):B[z]=$,e.current.setFilterModel(x({},L,{items:B}),"upsertFilterItem")},[e]),u=c.useCallback($=>{const L=Or(e),B=[...L.items];$.forEach(z=>{const M=$.findIndex(T=>T.id===z.id);M===-1?B.push(z):B[M]=z}),e.current.setFilterModel(x({},L,{items:$}),"upsertFilterItems")},[e]),f=c.useCallback($=>{const L=Or(e),B=L.items.filter(z=>z.id!==$.id);B.length!==L.items.length&&e.current.setFilterModel(x({},L,{items:B}),"deleteFilterItem")},[e]),p=c.useCallback(($,L,B)=>{if(o.debug("Displaying filter panel"),$){const z=Or(e),M=z.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(te=>te.value===D.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let T;const F=M.find(D=>D.field===$),j=e.current.getColumn($);F?T=M:t.disableMultipleColumnsFiltering?T=[rS({field:$,operator:j.filterOperators[0].value},e)]:T=[...M,rS({field:$,operator:j.filterOperators[0].value},e)],e.current.setFilterModel(x({},z,{items:T}))}e.current.showPreferences(Ac.filters,L,B)},[e,o,t.disableMultipleColumnsFiltering]),m=c.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),v=c.useCallback($=>{const L=Or(e);L.logicOperator!==$&&e.current.setFilterModel(x({},L,{logicOperator:$}),"changeLogicOperator")},[e]),y=c.useCallback($=>{const L=Or(e);bc(L.quickFilterValues,$)||e.current.setFilterModel(x({},L,{quickFilterValues:[...$]}))},[e]),g=c.useCallback(($,L)=>{Or(e)!==$&&(o.debug("Setting filter model"),e.current.updateControlState("filter",VO($,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:v,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:u,setFilterModel:g,showFilterPanel:p,hideFilterPanel:m,setQuickFilterValues:y,ignoreDiacritics:t.ignoreDiacritics};At(e,C,"public");const w=c.useCallback(($,L)=>{var B;const z=Or(e);return!L.exportOnlyDirtyModels||t.filterModel!=null||((B=t.initialState)==null||(B=B.filter)==null?void 0:B.filterModel)!=null||!bc(z,hh())?x({},$,{filter:{filterModel:z}}):$},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),b=c.useCallback(($,L)=>{var B;const z=(B=L.stateToRestore.filter)==null?void 0:B.filterModel;return z==null?$:(e.current.updateControlState("filter",VO(z,t.disableMultipleColumnsFiltering,e),"restoreState"),x({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=c.useCallback(($,L)=>{if(L===Ac.filters){var B;const z=t.slots.filterPanel;return O.jsx(z,x({},(B=t.slotProps)==null?void 0:B.filterPanel))}return $},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:E}=t,_=mE(j0e),k=c.useCallback($=>{if(t.filterMode!=="client"||!$.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const L=aa(e),B={},{isRowMatchingFilters:z}=$,M={},T={passingFilterItems:null,passingQuickFilterValues:null},F=_.current(e.current.state.rows.dataRowIdToModelLookup);for(let N=0;N<F.length;N+=1){const H=F[N],K=E?E(H):H.id;z(H,void 0,T);const Y=$be([T.passingFilterItems],[T.passingQuickFilterValues],$.filterModel,e,M);B[K]=Y}const j="auto-generated-group-footer-root";return L[j]&&(B[j]=!0),{filteredRowsLookup:B,filteredDescendantCountLookup:{}}},[e,t.filterMode,E,_]);mr(e,"columnMenu",i),mr(e,"exportState",w),mr(e,"restoreState",b),mr(e,"preferencePanel",S),fy(e,Lc,"filtering",k),fy(e,Lc,"visibleRowsLookupCreation",V0e);const I=c.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const $=Or(e),L=The(e),B=$.items.filter(z=>z.field&&L[z.field]);B.length<$.items.length&&e.current.setFilterModel(x({},$,{items:B}))},[e,o]),R=c.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]),A=c.useCallback(()=>{e.current.setState($=>x({},$,{visibleRowsLookup:JO(e,$)})),e.current.forceUpdate()},[e]);dt(e,"rowsSet",s),dt(e,"columnsChange",I),dt(e,"activeStrategyProcessorChange",R),dt(e,"rowExpansionChange",A),dt(e,"columnVisibilityModelChange",()=>{const $=Or(e);$.quickFilterValues&&$.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Wh(()=>{e.current.unstable_applyFilters()}),Nt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},U0e=e=>x({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),W0e=(e,t)=>{const n=eo(e,"useGridFocus"),r=c.useRef(null),o=c.useCallback((I,R)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),R)},[e]),s=c.useCallback((I,R)=>{const A=Ho(e);(A==null?void 0:A.id)===I&&(A==null?void 0:A.field)===R||(e.current.setState($=>(n.debug(`Focusing on cell with id=${I} and field=${R}`),x({},$,{tabIndex:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(A&&o(A,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,R))))},[e,n,o]),i=c.useCallback((I,R={})=>{const A=Ho(e);o(A,R),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${I}`),x({},$,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=c.useCallback((I,R={})=>{const A=Ho(e);o(A,R),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${I}`),x({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=c.useCallback((I,R,A={})=>{const $=Ho(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),A),e.current.setState(L=>x({},L,{tabIndex:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=c.useCallback(()=>ry(e),[e]),f=c.useCallback((I,R,A)=>{let $=e.current.getColumnIndex(R);const L=Ar(e),B=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode}),z=tf(e),M=[].concat(z.top||[],B.rows,z.bottom||[]);let T=M.findIndex(N=>N.id===I);A==="right"?$+=1:A==="left"?$-=1:T+=1,$>=L.length?(T+=1,T<M.length&&($=0)):$<0&&(T-=1,T>=0&&($=L.length-1)),T=Rd(T,0,M.length-1);const F=M[T];if(!F)return;const j=e.current.unstable_getCellColSpanInfo(F.id,$);j&&j.spannedByColSpan&&(A==="left"||A==="below"?$=j.leftVisibleCellIndex:A==="right"&&($=j.rightVisibleCellIndex)),$=Rd($,0,L.length-1);const D=L[$];e.current.setCellFocus(F.id,D.field)},[e,t.pagination,t.paginationMode]),p=c.useCallback(({id:I,field:R})=>{e.current.setCellFocus(I,R)},[e]),m=c.useCallback((I,R)=>{R.key==="Enter"||R.key==="Tab"||R.key==="Shift"||ay(R.key)||e.current.setCellFocus(I.id,I.field)},[e]),v=c.useCallback(({field:I},R)=>{R.target===R.currentTarget&&e.current.setColumnHeaderFocus(I,R)},[e]),y=c.useCallback(({fields:I,depth:R},A)=>{if(A.target!==A.currentTarget)return;const $=ry(e);$!==null&&$.depth===R&&I.includes($.field)||e.current.setColumnGroupHeaderFocus(I[0],R,A)},[e]),g=c.useCallback((I,R)=>{var A;(A=R.relatedTarget)!=null&&A.className.includes(ue.columnHeader)||(n.debug("Clearing focus"),e.current.setState($=>x({},$,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=c.useCallback(I=>{r.current=I},[]),w=c.useCallback(I=>{const R=r.current;r.current=null;const A=Ho(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:R}))return;if(!A){R&&e.current.setCellFocus(R.id,R.field);return}if((R==null?void 0:R.id)===A.id&&(R==null?void 0:R.field)===A.field)return;const L=e.current.getCellElement(A.id,A.field);L!=null&&L.contains(I.target)||(R?e.current.setCellFocus(R.id,R.field):(e.current.setState(B=>x({},B,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(A,I)))},[e,o]),b=c.useCallback(I=>{if(I.cellMode==="view")return;const R=Ho(e);((R==null?void 0:R.id)!==I.id||(R==null?void 0:R.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),S=c.useCallback(()=>{const I=Ho(e);I&&!e.current.getRow(I.id)&&e.current.setState(R=>x({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),E=Ye(()=>{const I=Ho(e);if(!I)return;const R=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(R.rows.find(L=>L.id===I.id))return;const $=Ar(e);e.current.setState(L=>x({},L,{tabIndex:{cell:{id:R.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),_={setCellFocus:s,setColumnHeaderFocus:i,setColumnHeaderFilterFocus:l},k={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:u};At(e,_,"public"),At(e,k,"private"),c.useEffect(()=>{const I=fn(e.current.rootElementRef.current);return I.addEventListener("mouseup",w),()=>{I.removeEventListener("mouseup",w)}},[e,w]),dt(e,"columnHeaderBlur",g),dt(e,"cellDoubleClick",p),dt(e,"cellMouseDown",C),dt(e,"cellKeyDown",m),dt(e,"cellModeChange",b),dt(e,"columnHeaderFocus",v),dt(e,"columnGroupHeaderFocus",y),dt(e,"rowsSet",S),dt(e,"paginationModelChange",E)};function G0e(e,t){const n=tf(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const tC=({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},nC=({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},K0e=(e,t)=>{const n=eo(e,"useGridKeyboardNavigation"),r=Uc(e,t).rows,o=yn(),s=c.useMemo(()=>G0e(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=c.useCallback((w,b,S="left")=>{const E=za(e),_=e.current.unstable_getCellColSpanInfo(b,w);_&&_.spannedByColSpan&&(S==="left"?w=_.leftVisibleCellIndex:S==="right"&&(w=_.rightVisibleCellIndex));const k=E.findIndex(R=>R.id===b);n.debug(`Navigating to cell row ${k}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:k});const I=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(b,I)},[e,n]),a=c.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const S=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(S,b)},[e,n]),u=c.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const S=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(S,b)},[e,n]),f=c.useCallback((w,b,S)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:E}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(E,b,S)},[e,n]),p=c.useCallback(w=>{var b;return(b=s[w])==null?void 0:b.id},[s]),m=c.useCallback((w,b)=>{const S=b.currentTarget.querySelector(`.${ue.columnHeaderTitleContainerContent}`);if(!!S&&S.contains(b.target)&&w.field!==rf.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=s.length>0?0:null,A=s.length-1,$=0,L=Ar(e).length-1,B=Uh(e);let z=!0;switch(b.key){case"ArrowDown":{R!==null&&(i?u(I,b):l(I,p(R)));break}case"ArrowRight":{const M=nC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});M!==null&&a(M,b);break}case"ArrowLeft":{const M=tC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});M!==null&&a(M,b);break}case"ArrowUp":{B>0&&f(I,B-1,b);break}case"PageDown":{R!==null&&A!==null&&l(I,p(Math.min(R+k,A)));break}case"Home":{a($,b);break}case"End":{a(L,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:z=!1}z&&b.preventDefault()},[e,s.length,i,u,l,p,o.direction,a,f]),v=c.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const E=pve(e)===w.field,_=hve(e)===w.field;if(E||_||!ay(b.key))return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,A=s.length-1,$=0,L=Ar(e).length-1;let B=!0;switch(b.key){case"ArrowDown":{const z=p(R);z!=null&&l(I,z);break}case"ArrowRight":{const z=nC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});z!==null&&u(z,b);break}case"ArrowLeft":{const z=tC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});z!==null?u(z,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{a(I,b);break}case"PageDown":{A!==null&&l(I,p(Math.min(R+k,A)));break}case"Home":{u($,b);break}case"End":{u(L,b);break}case" ":break;default:B=!1}B&&b.preventDefault()},[e,s.length,u,o.direction,a,l,p]),y=c.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const E=ry(e);if(E===null)return;const{field:_,depth:k}=E,{fields:I,depth:R,maxDepth:A}=w,$=e.current.getViewportPageSize(),L=e.current.getColumnIndex(_),B=_?e.current.getColumnIndex(_):0,z=0,M=s.length-1,T=0,F=Ar(e).length-1;let j=!0;switch(b.key){case"ArrowDown":{R===A-1?a(L,b):f(L,k+1,b);break}case"ArrowUp":{R>0&&f(L,k-1,b);break}case"ArrowRight":{const D=I.length-I.indexOf(_)-1;L+D+1<=F&&f(L+D+1,k,b);break}case"ArrowLeft":{const D=I.indexOf(_);L-D-1>=T&&f(L-D-1,k,b);break}case"PageDown":{M!==null&&l(B,p(Math.min(z+$,M)));break}case"Home":{f(T,k,b);break}case"End":{f(F,k,b);break}case" ":break;default:j=!1}j&&b.preventDefault()},[e,s.length,a,f,l,p]),g=c.useCallback((w,b)=>{if(!b.currentTarget.contains(b.target))return;const S=e.current.getCellParams(w.id,w.field);if(S.cellMode===un.Edit||!ay(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:S}))return;const _=e.current.getRootDimensions();if(s.length===0||!_)return;const k=o.direction,I=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,A=s.findIndex(T=>T.id===w.id),$=0,L=s.length-1,B=0,z=Ar(e).length-1;let M=!0;switch(b.key){case"ArrowDown":{A<L&&l(R,p(A+1));break}case"ArrowUp":{A>$?l(R,p(A-1)):i?u(R,b):a(R,b);break}case"ArrowRight":{const T=nC({currentColIndex:R,firstColIndex:B,lastColIndex:z,direction:k});T!==null&&l(T,p(A),k==="rtl"?"left":"right");break}case"ArrowLeft":{const T=tC({currentColIndex:R,firstColIndex:B,lastColIndex:z,direction:k});T!==null&&l(T,p(A),k==="rtl"?"right":"left");break}case"Tab":{b.shiftKey&&R>B?l(R-1,p(A),"left"):!b.shiftKey&&R<z&&l(R+1,p(A),"right");break}case" ":{if(w.field===TE)break;const F=w.colDef;if(F&&F.type==="treeDataGroup")break;!b.shiftKey&&A<L&&l(R,p(Math.min(A+I,L)));break}case"PageDown":{A<L&&l(R,p(Math.min(A+I,L)));break}case"PageUp":{const T=Math.max(A-I,$);T!==A&&T>=$?l(R,p(T)):a(R,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(B,p($)):l(B,p(A));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(z,p(L)):l(z,p(A));break}default:M=!1}M&&b.preventDefault()},[e,s,o.direction,l,p,i,u,a]),C=c.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);mr(e,"canStartEditing",C),dt(e,"columnHeaderKeyDown",m),dt(e,"headerFilterKeyDown",v),dt(e,"columnGroupHeaderKeyDown",y),dt(e,"cellKeyDown",g)},q0e=(e,t)=>{var n,r;return x({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Y0e=(e,t)=>{var n;const r=eo(e,"useGridPreferencesPanel"),o=c.useRef(),s=c.useRef(),i=c.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=mh(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.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((m,v,y)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(g=>x({},g,{preferencePanel:x({},g.preferencePanel,{open:!0,openedPanelValue:m,panelId:v,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,l,e]);At(e,{showPreferences:u,hidePreferences:a},"public");const f=c.useCallback((m,v)=>{var y;const g=mh(e.current.state);return!v.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||g.open?x({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=c.useCallback((m,v)=>{const y=v.stateToRestore.preferencePanel;return y!=null&&e.current.setState(g=>x({},g,{preferencePanel:y})),m},[e]);mr(e,"exportState",f),mr(e,"restoreState",p),c.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},Q0e=["id","field"],X0e=["id","field"],Z0e=Gi(["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"),J0e=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:l,cellModesModel:a,onCellModesModelChange:u}=t,f=M=>(...T)=>{t.editMode===Hi.Cell&&M(...T)},p=c.useCallback((M,T)=>{const F=e.current.getCellParams(M,T);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${M} and field=${T} is not editable.`)},[e]),m=c.useCallback((M,T,F)=>{if(e.current.getCellMode(M,T)!==F)throw new Error(`MUI: The cell with id=${M} and field=${T} is not in ${F} mode.`)},[e]),v=c.useCallback((M,T)=>{if(!M.isEditable||M.cellMode===un.Edit)return;const F=x({},M,{reason:Gl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,T)},[e]),y=c.useCallback((M,T)=>{if(M.cellMode===un.View||e.current.getCellMode(M.id,M.field)===un.View)return;const F=x({},M,{reason:Xs.cellFocusOut});e.current.publishEvent("cellEditStop",F,T)},[e]),g=c.useCallback((M,T)=>{if(M.cellMode===un.Edit){if(T.which===229)return;let F;if(T.key==="Escape"?F=Xs.escapeKeyDown:T.key==="Enter"?F=Xs.enterKeyDown:T.key==="Tab"&&(F=T.shiftKey?Xs.shiftTabKeyDown:Xs.tabKeyDown,T.preventDefault()),F){const j=x({},M,{reason:F});e.current.publishEvent("cellEditStop",j,T)}}else if(M.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:M,editMode:"cell"}))return;if(V5(T)||(T.ctrlKey||T.metaKey)&&T.key==="v"?F=Gl.printableKeyDown:T.key==="Enter"?F=Gl.enterKeyDown:(T.key==="Delete"||T.key==="Backspace")&&(F=Gl.deleteKeyDown),F){const D=x({},M,{reason:F,key:T.key});e.current.publishEvent("cellEditStart",D,T)}}},[e]),C=c.useCallback(M=>{const{id:T,field:F,reason:j,key:D,colDef:N}=M,H={id:T,field:F};if(j===Gl.printableKeyDown)if(c.version.startsWith("17"))H.deleteValue=!0;else{const K=N.valueParser?N.valueParser(D):D;H.initialValue=K}else j===Gl.deleteKeyDown&&(H.deleteValue=!0);e.current.startCellEditMode(H)},[e]),w=c.useCallback(M=>{const{id:T,field:F,reason:j}=M;e.current.runPendingEditCellValueMutation(T,F);let D;j===Xs.enterKeyDown?D="below":j===Xs.tabKeyDown?D="right":j===Xs.shiftTabKeyDown&&(D="left");const N=j==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:F,ignoreModifications:N,cellToFocusAfter:D})},[e]);dt(e,"cellDoubleClick",f(v)),dt(e,"cellFocusOut",f(y)),dt(e,"cellKeyDown",f(g)),dt(e,"cellEditStart",f(C)),dt(e,"cellEditStop",f(w)),In(e,"cellEditStart",t.onCellEditStart),In(e,"cellEditStop",t.onCellEditStop);const b=c.useCallback((M,T)=>{const F=lo(e.current.state);return F[M]&&F[M][T]?un.Edit:un.View},[e]),S=Ye(M=>{const T=M!==t.cellModesModel;u&&T&&u(M,{}),!(t.cellModesModel&&T)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),E=c.useCallback((M,T,F)=>{const j=x({},o.current);if(F!==null)j[M]=x({},j[M],{[T]:x({},F)});else{const D=j[M],N=le(D,[T].map(yh));j[M]=N,Object.keys(j[M]).length===0&&delete j[M]}S(j)},[S]),_=c.useCallback((M,T,F)=>{e.current.setState(j=>{const D=x({},j.editRows);return F!==null?D[M]=x({},D[M],{[T]:x({},F)}):(delete D[M][T],Object.keys(D[M]).length===0&&delete D[M]),x({},j,{editRows:D})}),e.current.forceUpdate()},[e]),k=c.useCallback(M=>{const{id:T,field:F}=M,j=le(M,Q0e);p(T,F),m(T,F,un.View),E(T,F,x({mode:un.Edit},j))},[p,m,E]),I=Ye(M=>{const{id:T,field:F,deleteValue:j,initialValue:D}=M;let N=e.current.getCellValue(T,F),H=!1;(j||D)&&(N=j?"":D,H=!0),_(T,F,{value:N,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:H}),e.current.setCellFocus(T,F)}),R=c.useCallback(M=>{const{id:T,field:F}=M,j=le(M,X0e);m(T,F,un.Edit),E(T,F,x({mode:un.View},j))},[m,E]),A=Ye(M=>ot(void 0,null,function*(){const{id:T,field:F,ignoreModifications:j,cellToFocusAfter:D="none"}=M;m(T,F,un.Edit),e.current.runPendingEditCellValueMutation(T,F);const N=()=>{_(T,F,null),E(T,F,null),D!=="none"&&e.current.moveFocusToRelativeCell(T,F,D)};if(j){N();return}const H=lo(e.current.state),{error:K,isProcessingProps:Y}=H[T][F];if(K||Y){s.current[T][F].mode=un.Edit,E(T,F,{mode:un.Edit});return}const te=e.current.getRowWithUpdatedValuesFromCellEditing(T,F);if(i){const Q=X=>{s.current[T][F].mode=un.Edit,E(T,F,{mode:un.Edit}),l?l(X):Z0e()};try{const X=e.current.getRow(T);Promise.resolve(i(te,X)).then(J=>{e.current.updateRows([J]),N()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([te]),N()})),$=c.useCallback(M=>ot(void 0,null,function*(){var T;const{id:F,field:j,value:D,debounceMs:N,unstable_skipValueParser:H}=M;p(F,j),m(F,j,un.Edit);const K=e.current.getColumn(j),Y=e.current.getRow(F);let te=D;K.valueParser&&!H&&(te=K.valueParser(D,e.current.getCellParams(F,j)));let Q=lo(e.current.state),X=x({},Q[F][j],{value:te,changeReason:N?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const J=D!==Q[F][j].value;X=x({},X,{isProcessingProps:!0}),_(F,j,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Y,props:X,hasChanged:J}))}return e.current.getCellMode(F,j)===un.View?!1:(Q=lo(e.current.state),X=x({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[F][j].value:te,_(F,j,X),Q=lo(e.current.state),!((T=Q[F])!=null&&(T=T[j])!=null&&T.error))}),[e,p,m,_]),L=c.useCallback((M,T)=>{const F=e.current.getColumn(T),j=lo(e.current.state),D=e.current.getRow(M);if(!j[M]||!j[M][T])return e.current.getRow(M);const{value:N}=j[M][T];return F.valueSetter?F.valueSetter({value:N,row:D}):x({},D,{[T]:N})},[e]),B={getCellMode:b,startCellEditMode:k,stopCellEditMode:R},z={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:L};At(e,B,"public"),At(e,z,"private"),c.useEffect(()=>{a&&S(a)},[a,S]),c.useEffect(()=>{const M=ny(e),T=s.current;s.current=K5(n),Object.entries(n).forEach(([F,j])=>{Object.entries(j).forEach(([D,N])=>{var H,K;const Y=((H=T[F])==null||(H=H[D])==null?void 0:H.mode)||un.View,te=(K=M[F])!=null?K:F;N.mode===un.Edit&&Y===un.View?I(x({id:te,field:D},N)):N.mode===un.View&&Y===un.Edit&&A(x({id:te,field:D},N))})})},[e,n,I,A])},e1e=["id"],t1e=["id"],n1e=Gi(["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"),r1e=(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,m=D=>(...N)=>{t.editMode===Hi.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]),g=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:Kl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,N)},[e]),C=c.useCallback(D=>{l.current=D},[]),w=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:rl.rowFocusOut});e.current.publishEvent("rowEditStop",Y,N)}}))},[e]);c.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=c.useCallback((D,N)=>{if(D.cellMode===Cn.Edit){if(N.which===229)return;let H;if(N.key==="Escape")H=rl.escapeKeyDown;else if(N.key==="Enter")H=rl.enterKeyDown;else if(N.key==="Tab"){const K=c0(e).filter(Y=>e.current.getColumn(Y).type===v0?!0:e.current.isCellEditable(e.current.getCellParams(D.id,Y)));if(N.shiftKey?D.field===K[0]&&(H=rl.shiftTabKeyDown):D.field===K[K.length-1]&&(H=rl.tabKeyDown),N.preventDefault(),!H){const Y=K.findIndex(Q=>Q===D.field),te=K[N.shiftKey?Y-1:Y+1];e.current.setCellFocus(D.id,te)}}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(V5(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=Kl.printableKeyDown:N.key==="Enter"?H=Kl.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=Kl.deleteKeyDown),H){const Y=e.current.getRowParams(D.id),te=x({},Y,{field:D.field,key:N.key,reason:H});e.current.publishEvent("rowEditStart",te,N)}}},[e]),S=c.useCallback(D=>{const{id:N,field:H,reason:K,key:Y,columns:te}=D,Q={id:N,fieldToFocus:H};if(K===Kl.printableKeyDown)if(c.version.startsWith("17"))Q.deleteValue=!!H;else{const X=te.find(J=>J.field===H);Q.initialValue=X.valueParser?X.valueParser(Y):Y}else K===Kl.deleteKeyDown&&(Q.deleteValue=!!H);e.current.startRowEditMode(Q)},[e]),E=c.useCallback(D=>{const{id:N,reason:H,field:K}=D;e.current.runPendingEditCellValueMutation(N);let Y;H===rl.enterKeyDown?Y="below":H===rl.tabKeyDown?Y="right":H===rl.shiftTabKeyDown&&(Y="left");const te=H==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:te,field:K,cellToFocusAfter:Y})},[e]);dt(e,"cellDoubleClick",m(g)),dt(e,"cellFocusIn",m(C)),dt(e,"cellFocusOut",m(w)),dt(e,"cellKeyDown",m(b)),dt(e,"rowEditStart",m(S)),dt(e,"rowEditStop",m(E)),In(e,"rowEditStart",t.onRowEditStart),In(e,"rowEditStop",t.onRowEditStop);const _=c.useCallback(D=>{if(t.editMode===Hi.Cell)return Cn.View;const N=lo(e.current.state);return N[D]&&Object.keys(N[D]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),k=Ye(D=>{const N=D!==t.rowModesModel;p&&N&&p(D,{}),!(t.rowModesModel&&N)&&(r(D),o.current=D,e.current.publishEvent("rowModesModelChange",D))}),I=c.useCallback((D,N)=>{const H=x({},o.current);N!==null?H[D]=x({},N):delete H[D],k(H)},[k]),R=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]),A=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]),$=c.useCallback(D=>{const{id:N}=D,H=le(D,e1e);y(N,Cn.View),I(N,x({mode:Cn.Edit},H))},[y,I]),L=Ye(D=>{const{id:N,fieldToFocus:H,deleteValue:K,initialValue:Y}=D,Q=ml(e).reduce((X,J)=>{if(!e.current.getCellParams(N,J).isEditable)return X;let Z=e.current.getCellValue(N,J),he=!1;return H===J&&(K||Y)&&(Z=K?"":Y,he=!0),X[J]={value:Z,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:he},X},{});R(N,Q),H&&e.current.setCellFocus(N,H)}),B=c.useCallback(D=>{const{id:N}=D,H=le(D,t1e);y(N,Cn.Edit),I(N,x({mode:Cn.View},H))},[y,I]),z=Ye(D=>{const{id:N,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=D;e.current.runPendingEditCellValueMutation(N);const te=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(N,K,Y),R(N,null),I(N,null)};if(H){te();return}const Q=lo(e.current.state),X=e.current.getRow(N);if(Object.values(Q[N]).some(he=>he.isProcessingProps)){s.current[N].mode=Cn.Edit;return}if(Object.values(Q[N]).some(he=>he.error)){s.current[N].mode=Cn.Edit,I(N,{mode:Cn.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromRowEditing(N);if(a){const he=ne=>{s.current[N].mode=Cn.Edit,I(N,{mode:Cn.Edit}),u?u(ne):n1e()};try{Promise.resolve(a(Z,X)).then(ne=>{e.current.updateRows([ne]),te()}).catch(he)}catch(ne){he(ne)}}else e.current.updateRows([Z]),te()}),M=c.useCallback(D=>{const{id:N,field:H,value:K,debounceMs:Y,unstable_skipValueParser:te}=D;v(N,H);const Q=e.current.getColumn(H),X=e.current.getRow(N);let J=K;Q.valueParser&&!te&&(J=Q.valueParser(K,e.current.getCellParams(N,H)));let se=lo(e.current.state),Z=x({},se[N][H],{value:J,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||A(N,H,Z),new Promise(he=>{const ne=[];if(Q.preProcessEditCellProps){const re=Z.value!==se[N][H].value;Z=x({},Z,{isProcessingProps:!0}),A(N,H,Z);const me=se[N],ce=le(me,[H].map(yh)),Se=Promise.resolve(Q.preProcessEditCellProps({id:N,row:X,props:Z,hasChanged:re,otherFieldsProps:ce})).then(Ee=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}se=lo(e.current.state),Ee=x({},Ee,{isProcessingProps:!1}),Ee.value=Q.preProcessEditCellProps?se[N][H].value:J,A(N,H,Ee)});ne.push(Se)}Object.entries(se[N]).forEach(([re,me])=>{if(re===H)return;const ce=e.current.getColumn(re);if(!ce.preProcessEditCellProps)return;me=x({},me,{isProcessingProps:!0}),A(N,re,me),se=lo(e.current.state);const Se=se[N],Ee=le(Se,[re].map(yh)),ae=Promise.resolve(ce.preProcessEditCellProps({id:N,row:X,props:me,hasChanged:!1,otherFieldsProps:Ee})).then(Ie=>{if(e.current.getRowMode(N)===Cn.View){he(!1);return}Ie=x({},Ie,{isProcessingProps:!1}),A(N,re,Ie)});ne.push(ae)}),Promise.all(ne).then(()=>{e.current.getRowMode(N)===Cn.Edit?(se=lo(e.current.state),he(!se[N][H].error)):he(!1)})})},[e,v,A]),T=c.useCallback(D=>{const N=lo(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,te])=>{const Q=e.current.getColumn(Y);Q.valueSetter?K=Q.valueSetter({value:te.value,row:K}):K[Y]=te.value}),K},[e]),F={getRowMode:_,startRowEditMode:$,stopRowEditMode:B},j={setRowEditingEditCellValue:M,getRowWithUpdatedValuesFromRowEditing:T};At(e,F,"public"),At(e,j,"private"),c.useEffect(()=>{f&&k(f)},[f,k]),c.useEffect(()=>{const D=ny(e),N=s.current;s.current=K5(n),Object.entries(n).forEach(([H,K])=>{var Y,te;const Q=((Y=N[H])==null?void 0:Y.mode)||Cn.View,X=(te=D[H])!=null?te:H;K.mode===Cn.Edit&&Q===Cn.View?L(x({id:X},K)):K.mode===Cn.View&&Q===Cn.Edit&&z(x({id:X},K))})},[e,n,L,z])},o1e=e=>x({},e,{editRows:{}}),s1e=(e,t)=>{J0e(e,t),r1e(e,t);const n=c.useRef({}),{isCellEditable:r}=t,o=c.useCallback(m=>ph(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),s=(m,v,y,g)=>{if(!y){g();return}if(n.current[m]||(n.current[m]={}),n.current[m][v]){const[b]=n.current[m][v];clearTimeout(b)}const C=()=>{const[b]=n.current[m][v];clearTimeout(b),g(),delete n.current[m][v]},w=setTimeout(()=>{g(),delete n.current[m][v]},y);n.current[m][v]=[w,C]};c.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([v,y])=>{Object.keys(y).forEach(g=>{const[C]=m[v][g];clearTimeout(C),delete m[v][g]})})}},[]);const i=c.useCallback((m,v)=>{if(n.current[m]){if(!v)Object.keys(n.current[m]).forEach(y=>{const[,g]=n.current[m][y];g()});else if(n.current[m][v]){const[,y]=n.current[m][v];y()}}},[]),l=c.useCallback(m=>{const{id:v,field:y,debounceMs:g}=m;return new Promise(C=>{s(v,y,g,()=>ot(void 0,null,function*(){const w=t.editMode===Hi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,y)===un.Edit){const b=yield w(m);C(b)}}))})},[e,t.editMode]),a=c.useCallback((m,v)=>t.editMode===Hi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,v):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),u=c.useCallback((m,v)=>{var y,g;return(y=(g=lo(e.current.state)[m])==null?void 0:g[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")},i1e=(e,t,n)=>(n.current.caches.rows=Qg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),x({},e,{rows:O5({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),l1e=(e,t)=>{const n=eo(e,"useGridRows"),r=Uc(e,t),o=c.useRef(Date.now()),s=_E(),i=c.useCallback(z=>{const M=aa(e)[z];if(M)return M;const T=e.current.getRowNode(z);return T&&ph(T)?{[od]:z}:null},[e]),l=t.getRowId,a=c.useCallback(z=>od in z?z[od]:l?l(z):z.id,[l]),u=c.useMemo(()=>r.rows.reduce((z,{id:M},T)=>(z[M]=T,z),{}),[r.rows]),f=c.useCallback(({cache:z,throttle:M})=>{const T=()=>{o.current=Date.now(),e.current.setState(j=>x({},j,{rows:O5({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ei(e),previousTreeDepths:PO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=z,!M){T();return}const F=t.throttleRowsMs-(Date.now()-o.current);if(F>0){s.start(F,T);return}T()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=c.useCallback(z=>{n.debug(`Updating all rows, new length ${z.length}`);const M=Qg({rows:z,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),T=e.current.caches.rows;M.rowsBeforePartialUpdates=T.rowsBeforePartialUpdates,f({cache:M,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),m=c.useCallback(z=>{if(t.signature===Fi.DataGrid&&z.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 M=[];z.forEach(F=>{const j=sy(F,t.getRowId,"A row was provided without id when calling updateRows():"),D=e.current.getRowNode(j);if((D==null?void 0:D.type)==="pinnedRow"){const N=e.current.caches.pinnedRows,H=N.idLookup[j];H&&(N.idLookup[j]=x({},H,F))}else M.push(F)});const T=eme({updates:M,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:T,throttle:!0})},[t.signature,t.getRowId,f,e]),v=c.useCallback(()=>{const z=vg(e),M=aa(e);return new Map(z.map(T=>{var F;return[T,(F=M[T])!=null?F:{}]}))},[e]),y=c.useCallback(()=>d0(e),[e]),g=c.useCallback(()=>vg(e),[e]),C=c.useCallback(z=>u[z],[u]),w=c.useCallback((z,M)=>{const T=e.current.getRowNode(z);if(!T)throw new Error(`MUI: No row with id #${z} found`);if(T.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=x({},T,{childrenExpanded:M});e.current.setState(j=>x({},j,{rows:x({},j.rows,{tree:x({},j.rows.tree,{[z]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),b=c.useCallback(z=>{var M;return(M=ei(e)[z])!=null?M:null},[e]),S=c.useCallback(({skipAutoGeneratedRows:z=!0,groupId:M,applySorting:T,applyFiltering:F})=>{const j=ei(e);let D;if(T){const N=j[M];if(!N)return[];const H=yE(e);D=[];const K=H.findIndex(Y=>Y===M)+1;for(let Y=K;Y<H.length&&j[H[Y]].depth>N.depth;Y+=1){const te=H[Y];(!z||!ph(j[te]))&&D.push(te)}}else D=xE(j,M,z);if(F){const N=M5(e);D=D.filter(H=>N[H]!==!1)}return D},[e]),E=c.useCallback((z,M)=>{const T=e.current.getRowNode(z);if(!T)throw new Error(`MUI: No row with id #${z} found`);if(T.parent!==ao)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(T.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(F=>{const j=ei(F,e.current.instanceId)[ao],D=j.children,N=D.findIndex(K=>K===z);if(N===-1||N===M)return F;n.debug(`Moving row ${z} to index ${M}`);const H=[...D];return H.splice(M,0,H.splice(N,1)[0]),x({},F,{rows:x({},F.rows,{tree:x({},F.rows.tree,{[ao]:x({},j,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),_=c.useCallback((z,M)=>{if(t.signature===Fi.DataGrid&&M.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(M.length===0)return;if(f0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=x({},ei(e)),j=x({},aa(e)),D=x({},ny(e)),N=F[ao],H=[...N.children];for(let Y=0;Y<M.length;Y+=1){const te=M[Y],Q=sy(te,t.getRowId,"A row was provided without id when calling replaceRows()."),[X]=H.splice(z+Y,1,Q);delete j[X],delete D[X],delete F[X];const J={id:Q,depth:0,parent:ao,type:"leaf",groupingKey:null};j[Q]=te,D[Q]=Q,F[Q]=J}F[ao]=x({},N,{children:H});const K=H.filter(Y=>F[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=j,e.current.caches.rows.dataRowIdToIdLookup=D,e.current.setState(Y=>x({},Y,{rows:x({},Y.rows,{dataRowIdToModelLookup:j,dataRowIdToIdLookup:D,dataRowIds:K,tree:F})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:i,getRowId:a,getRowModels:v,getRowsCount:y,getAllRowIds:g,setRows:p,updateRows:m,getRowNode:b,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:_},I={setRowIndex:E,setRowChildrenExpansion:w,getRowGroupChildren:S},R=c.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let z;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?z=x({},e.current.caches.rows,{updates:{type:"full",rows:vg(e)}}):z=Qg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:z,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),A=c.useCallback(z=>{z==="rowTreeCreation"&&R()},[R]),$=c.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Ahe(e)&&R()},[e,R]);dt(e,"activeStrategyProcessorChange",A),dt(e,"strategyAvailabilityChange",$);const L=c.useCallback(()=>{e.current.setState(z=>{const M=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ei(z,e.current.instanceId),treeDepths:PO(z,e.current.instanceId),dataRowIds:vg(z,e.current.instanceId),dataRowIdToModelLookup:aa(z,e.current.instanceId),dataRowIdToIdLookup:ny(z,e.current.instanceId)});return x({},z,{rows:x({},z.rows,M,{totalTopLevelRowCount:R5({tree:M.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);RE(e,"hydrateRows",L),At(e,k,"public"),At(e,I,t.signature===Fi.DataGrid?"private":"public");const B=c.useRef(!0);c.useEffect(()=>{if(B.current){B.current=!1;return}const z=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,M=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,T=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(z){M||(e.current.setState(F=>x({},F,{rows:x({},F.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),T||(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:Qg({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])},a1e=e=>{const t={[ao]:x({},Zhe(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:ao,type:"leaf",groupingKey:null}}return{groupingName:Lc,tree:t,treeDepths:{0:e.length},dataRowIds:e}},c1e=({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:ao,type:"leaf",groupingKey:null}}const o=n[ao];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(i=>!r[i])),n[ao]=x({},o,{children:s}),{groupingName:Lc,tree:n,treeDepths:{0:s.length},dataRowIds:s}},u1e=e=>e.updates.type==="full"?a1e(e.updates.rows):c1e({previousTree:e.previousTree,actions:e.updates.actions}),d1e=e=>{fy(e,Lc,"rowTreeCreation",u1e)},kB=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],f1e=(e,t)=>{var n;return x({},e,{rowSelection:t.rowSelection?(n=kB(t.rowSelectionModel))!=null?n:[]:[]})},p1e=(e,t)=>{const n=eo(e,"useGridSelection"),r=M=>(...T)=>{t.rowSelection&&M(...T)},o=c.useMemo(()=>kB(t.rowSelectionModel,xs(e.current.state)),[e,t.rowSelectionModel]),s=c.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:xs,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:u}=t,f=!l||i,p=Uc(e,t),m=c.useCallback(M=>{var T;let F=M;const j=(T=s.current)!=null?T:M,D=e.current.isRowSelected(M);if(D){const N=Rp(e),H=N.findIndex(Y=>Y===j),K=N.findIndex(Y=>Y===F);if(H===K)return;H>K?F=N[K+1]:F=N[K-1]}s.current=M,e.current.selectRowRange({startId:j,endId:F},!D)},[e]),v=c.useCallback(M=>{if(t.signature===Fi.DataGrid&&!t.checkboxSelection&&Array.isArray(M)&&M.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
|
+
`));xs(e.current.state)!==M&&(n.debug("Setting selection model"),e.current.setState(F=>x({},F,{rowSelection:t.rowSelection?M:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=c.useCallback(M=>xs(e.current.state).includes(M),[e]),g=c.useCallback(M=>{if(u&&!u(e.current.getRowParams(M)))return!1;const T=e.current.getRowNode(M);return!((T==null?void 0:T.type)==="footer"||(T==null?void 0:T.type)==="pinnedRow")},[e,u]),C=c.useCallback(()=>sve(e),[e]),w=c.useCallback((M,T=!0,F=!1)=>{if(e.current.isRowSelectable(M))if(s.current=M,F)n.debug(`Setting selection for row ${M}`),e.current.setRowSelectionModel(T?[M]:[]);else{n.debug(`Toggling selection for row ${M}`);const D=xs(e.current.state).filter(H=>H!==M);T&&D.push(M),(D.length<2||f)&&e.current.setRowSelectionModel(D)}},[e,n,f]),b=c.useCallback((M,T=!0,F=!1)=>{n.debug("Setting selection for several rows");const j=M.filter(H=>e.current.isRowSelectable(H));let D;if(F)D=T?j:[];else{const H=x({},cy(e));j.forEach(K=>{T?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:M,endId:T},F=!0,j=!1)=>{if(!e.current.getRow(M)||!e.current.getRow(T))return;n.debug(`Expanding selection from row ${M} to row ${T}`);const D=Rp(e),N=D.indexOf(M),H=D.indexOf(T),[K,Y]=N>H?[H,N]:[N,H],te=D.slice(K,Y+1);e.current.selectRows(te,F,j)},[e,n]),E={selectRow:w,setRowSelectionModel:v,getSelectedRows:C,isRowSelected:y,isRowSelectable:g},_={selectRows:b,selectRowRange:S};At(e,E,"public"),At(e,_,t.signature===Fi.DataGrid?"private":"public");const k=c.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const M=xs(e.current.state),T=aa(e),F=x({},cy(e));let j=!1;M.forEach(D=>{T[D]||(delete F[D],j=!0)}),j&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),I=c.useCallback((M,T)=>{const F=T.metaKey||T.ctrlKey,j=!i&&!F&&!jme(T),D=!f||j,N=e.current.isRowSelected(M);D?e.current.selectRow(M,j?!0:!N,!0):e.current.selectRow(M,!N,!1)},[e,f,i]),R=c.useCallback((M,T)=>{var F;if(a)return;const j=(F=T.target.closest(`.${ue.cell}`))==null?void 0:F.getAttribute("data-field");if(j===rf.field||j===TE)return;if(j){const N=e.current.getColumn(j);if((N==null?void 0:N.type)===v0)return}e.current.getRowNode(M.id).type!=="pinnedRow"&&(T.shiftKey&&(f||i)?m(M.id):I(M.id,T))},[a,f,i,e,m,I]),A=c.useCallback((M,T)=>{if(f&&T.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),$=c.useCallback((M,T)=>{T.nativeEvent.shiftKey?m(M.id):e.current.selectRow(M.id,M.value)},[e,m]),L=c.useCallback(M=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?Z5(e):Rp(e);e.current.selectRows(F,M.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),B=c.useCallback((M,T)=>{if(e.current.getCellMode(M.id,M.field)!==un.Edit&&T.currentTarget.contains(T.target)){if(ay(T.key)&&T.shiftKey){const F=Ho(e);if(F&&F.id!==M.id){T.preventDefault();const j=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!j,!0);return}const D=e.current.getRowIndexRelativeToVisibleRows(F.id),N=e.current.getRowIndexRelativeToVisibleRows(M.id);let H,K;D>N?j?(H=N,K=D-1):(H=N,K=D):j?(H=D+1,K=N):(H=D,K=N);const Y=p.rows.slice(H,K+1).map(te=>te.id);e.current.selectRows(Y,!j);return}}if(T.key===" "&&T.shiftKey){T.preventDefault(),I(M.id,T);return}T.key==="a"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,I,b,p.rows,f]);dt(e,"sortedRowsSet",r(k)),dt(e,"rowClick",r(R)),dt(e,"rowSelectionCheckboxChange",r($)),dt(e,"headerSelectionCheckboxChange",L),dt(e,"cellMouseDown",r(A)),dt(e,"cellKeyDown",r(B)),c.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),c.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const z=o!=null;c.useEffect(()=>{if(z||!t.rowSelection)return;const M=xs(e.current.state);if(g){const T=M.filter(F=>g(F));T.length<M.length&&e.current.setRowSelectionModel(T)}},[e,g,z,t.rowSelection]),c.useEffect(()=>{if(!t.rowSelection||z)return;const M=xs(e.current.state);!f&&M.length>1&&e.current.setRowSelectionModel([])},[e,f,i,z,t.rowSelection])},EB={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"},h1e=e=>{const{classes:t}=e;return c.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},jt,t),[t])},m1e=(e,t)=>{const n={classes:t.classes},r=h1e(n),o=c.useCallback(s=>{const i=x({},rf,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[ql]!=null;return l&&!a?(s.lookup[ql]=i,s.orderedFields=[ql,...s.orderedFields]):!l&&a?(delete s.lookup[ql],s.orderedFields=s.orderedFields.filter(u=>u!==ql)):l&&a&&(s.lookup[ql]=x({},i,s.lookup[ql])),s},[e,r,t.checkboxSelection]);mr(e,"hydrateColumns",o)},g1e=(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:J5(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},v1e=(e,t)=>{var n;const r=eo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Cs,changeEvent:"sortModelChange"});const o=c.useCallback((k,I)=>{const R=Cs(e),A=R.findIndex(L=>L.field===k);let $=[...R];return A>-1?I?$.splice(A,1,I):$.splice(A,1):$=[...R,I],$},[e]),s=c.useCallback((k,I)=>{var R;const $=Cs(e).find(B=>B.field===k.field);if($){var L;const B=I===void 0?_O((L=k.sortingOrder)!=null?L:t.sortingOrder,$.sort):I;return B==null?void 0:x({},$,{sort:B})}return{field:k.field,sort:I===void 0?_O((R=k.sortingOrder)!=null?R:t.sortingOrder):I}},[e,t.sortingOrder]),i=c.useCallback((k,I)=>I==null||I.sortable===!1?k:(I.sortingOrder||t.sortingOrder).some(A=>!!A)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder]),l=c.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),x({},k,{sorting:x({},k.sorting,{sortedRows:xE(ei(e),ao,!1)})});const I=Cs(k,e.current.instanceId),R=uve(I,e),A=e.current.applyStrategyProcessor("sorting",{sortRowList:R});return x({},k,{sorting:x({},k.sorting,{sortedRows:A})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=c.useCallback(k=>{Cs(e)!==k&&(r.debug("Setting sort model"),e.current.setState(MO(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=c.useCallback((k,I,R)=>{if(!k.sortable)return;const A=s(k,I);let $;!R||t.disableMultipleColumnsSorting?$=A?[A]:[]:$=o(k.field,A),e.current.setSortModel($)},[e,o,s,t.disableMultipleColumnsSorting]),f=c.useCallback(()=>Cs(e),[e]),p=c.useCallback(()=>bE(e).map(I=>I.model),[e]),m=c.useCallback(()=>yE(e),[e]),v=c.useCallback(k=>e.current.getSortedRowIds()[k],[e]);At(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:m,getRowIdFromRowIndex:v,setSortModel:a,sortColumn:u,applySorting:l},"public");const g=c.useCallback((k,I)=>{var R;const A=Cs(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(R=R.sorting)==null?void 0:R.sortModel)!=null||A.length>0?x({},k,{sorting:{sortModel:A}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=c.useCallback((k,I)=>{var R;const A=(R=I.stateToRestore.sorting)==null?void 0:R.sortModel;return A==null?k:(e.current.setState(MO(A,t.disableMultipleColumnsSorting)),x({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=c.useCallback(k=>{const I=ei(e),R=I[ao],A=k.sortRowList?k.sortRowList(R.children.map($=>I[$])):[...R.children];return R.footerId!=null&&A.push(R.footerId),A},[e]);mr(e,"exportState",g),mr(e,"restoreState",C),fy(e,Lc,"sorting",w);const b=c.useCallback(({colDef:k},I)=>{const R=I.shiftKey||I.metaKey||I.ctrlKey;u(k,void 0,R)},[u]),S=c.useCallback(({colDef:k},I)=>{Nme(I.key)&&!I.ctrlKey&&!I.metaKey&&u(k,void 0,I.shiftKey)},[u]),E=c.useCallback(()=>{const k=Cs(e),I=ef(e);if(k.length>0){const R=k.filter(A=>I[A.field]);R.length<k.length&&e.current.setSortModel(R)}},[e]),_=c.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);mr(e,"columnMenu",i),dt(e,"columnHeaderClick",b),dt(e,"columnHeaderKeyDown",S),dt(e,"rowsSet",e.current.applySorting),dt(e,"columnsChange",E),dt(e,"activeStrategyProcessorChange",_),Wh(()=>{e.current.applySorting()}),Nt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function eD(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 y1e=(e,t)=>{const n=yn(),r=eo(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,i=rt(e,za),l=c.useCallback(p=>{const m=d0(e),v=Ar(e);if(!(p.rowIndex==null)&&m===0||v.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let g={};if(p.colIndex!=null){const S=$d(e);let E;if(typeof p.rowIndex!="undefined"){var C;const _=(C=i[p.rowIndex])==null?void 0:C.id,k=e.current.unstable_getCellColSpanInfo(_,p.colIndex);k&&!k.spannedByColSpan&&(E=k.cellProps.width)}typeof E=="undefined"&&(E=v[p.colIndex].computedWidth),g.left=eD({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:E,offsetTop:S[p.colIndex]})}if(p.rowIndex!=null){var w,b;const S=gh(e.current.state),E=tve(e),_=nve(e),k=t.pagination?p.rowIndex-E*_:p.rowIndex,I=S.positions[k+1]?S.positions[k+1]-S.positions[k]:S.currentPageTotalHeight-S.positions[k],R=((w=s.current.querySelector(`.${ue["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,A=((b=s.current.querySelector(`.${ue["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;g.top=eD({clientHeight:s.current.clientHeight-R-A,scrollTop:s.current.scrollTop,offsetHeight:I,offsetTop:S.positions[k]})}return g=e.current.unstable_applyPipeProcessors("scrollToIndexes",g,p),typeof g.left!==void 0||typeof g.top!==void 0?(e.current.scroll(g),!0):!1},[r,e,s,t.pagination,i]),a=c.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const m=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=m*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 b1e(e,t){In(e,"columnHeaderClick",t.onColumnHeaderClick),In(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),In(e,"columnHeaderOver",t.onColumnHeaderOver),In(e,"columnHeaderOut",t.onColumnHeaderOut),In(e,"columnHeaderEnter",t.onColumnHeaderEnter),In(e,"columnHeaderLeave",t.onColumnHeaderLeave),In(e,"cellClick",t.onCellClick),In(e,"cellDoubleClick",t.onCellDoubleClick),In(e,"cellKeyDown",t.onCellKeyDown),In(e,"preferencePanelClose",t.onPreferencePanelClose),In(e,"preferencePanelOpen",t.onPreferencePanelOpen),In(e,"menuOpen",t.onMenuOpen),In(e,"menuClose",t.onMenuClose),In(e,"rowDoubleClick",t.onRowDoubleClick),In(e,"rowClick",t.onRowClick),In(e,"stateChange",t.onStateChange)}const w1e=({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 C1e(e,t){const n=eo(e,"useResizeContainer"),r=c.useRef(!1),o=c.useRef(null),s=c.useRef(null),i=rt(e,gh),l=rt(e,nf),a=Math.floor(t.rowHeight*l),u=OE(e,t.columnHeaderHeight),f=c.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,A=vE(e),$=D5(e);if(!o.current)return;let L;if(t.scrollbarSize!=null)L=t.scrollbarSize;else if(!A||!R)L=0;else{const N=fn(R).createElement("div");N.style.width="99px",N.style.height="99px",N.style.position="absolute",N.style.overflow="scroll",N.className="scrollDiv",R.appendChild(N),L=N.offsetWidth-N.clientWidth,R.removeChild(N)}let B,z,M;if(t.autoHeight)M=!1,z=Math.round(A)>Math.round(o.current.width),B={width:o.current.width,height:i.currentPageTotalHeight+(z?L:0)};else{B={width:o.current.width,height:Math.max(o.current.height-u,0)};const D=w1e({content:{width:Math.round(A),height:i.currentPageTotalHeight},container:{width:Math.round(B.width),height:B.height-$.top-$.bottom},scrollBarSize:L});M=D.hasScrollY,z=D.hasScrollX}const T={width:B.width-(M?L:0),height:B.height-(z?L:0)},F={viewportOuterSize:B,viewportInnerSize:T,hasScrollX:z,hasScrollY:M,scrollBarSize:L},j=s.current;s.current=F,(F.viewportInnerSize.width!==(j==null?void 0:j.viewportInnerSize.width)||F.viewportInnerSize.height!==(j==null?void 0:j.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u]),[p,m]=c.useState(),v=c.useMemo(()=>Aa(m,60),[]),y=c.useRef();Nt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const g=c.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=c.useCallback(()=>s.current,[]),w=c.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const $=e.current.getRenderContext(),L=$.lastRowIndex-$.firstRowIndex;return Math.min(L-1,R.rows.length)}const A=Math.floor(I.viewportInnerSize.height/a);return Math.min(A,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),b=c.useCallback(()=>{var I,R,A;const $=(I=e.current.mainElementRef)==null?void 0:I.current;if(!$)return;const B=Jo($).getComputedStyle($),z=parseFloat(B.height)||0,M=parseFloat(B.width)||0,T=z!==((R=y.current)==null?void 0:R.height),F=M!==((A=y.current)==null?void 0:A.width);if(!y.current||T||F){const j={width:M,height:z};e.current.publishEvent("resize",j),y.current=j}},[e]),S={resize:g,getRootDimensions:C},E={getViewportPageSize:w,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:b};At(e,S,"public"),At(e,E,"private");const _=c.useRef(!0),k=c.useCallback(I=>{o.current=I;const R=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!R&&(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),I.width===0&&!r.current&&!R&&(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),_.current){m(I),_.current=!1;return}v(I)},[t.autoHeight,v,n]);Nt(()=>f(),[f]),In(e,"sortedRowsSet",f),In(e,"paginationModelChange",f),In(e,"columnsChange",f),dt(e,"resize",k),In(e,"debouncedResize",t.onResize)}const x1e=["style"],S1e=["style"];function sd(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?sd(e,t,n,o):sd(e,t,o+1,r)}function P1e(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return sd(e,t,Math.floor(n/2),Math.min(n,t.length))}const ea=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Rd(e-n,r,o),Rd(t+n,r,o)],IB=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,k1e={maxSize:3},E1e=e=>{var t,n;const r=Ba(),o=ut(),s=rt(r,Ar),i=rt(r,vve),l=rt(r,oB),{ref:a,onRenderZonePositioning:u,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:m}=e,v=yn(),y=rt(r,$d),g=rt(r,vE),C=rt(r,Ho),w=rt(r,oy),b=rt(r,gh),S=rt(r,cy),E=Uc(r,o),_=c.useRef(null),k=c.useRef(null),I=Et(a,k),[R,A]=c.useState(null),$=c.useRef(R),L=c.useRef({top:0,left:0}),[B,z]=c.useState({width:null,height:null}),M=c.useRef(g),[T,F]=c.useState(null),j=c.useRef(Object.create(null)),D=c.useRef(),N=c.useRef(),H=c.useRef(a0((ae,Ie,ye,Me,pe,fe)=>{let de;const be=ae.slice(Ie,ye);return fe>-1&&(Ie>fe&&fe>=Me||ye<fe&&fe<pe)&&(de=fe),{focusedCellColumnIndexNotInRange:de,renderedColumns:be}},k1e)),K=c.useMemo(()=>C!==null?s.findIndex(ae=>ae.field===C.field):-1,[C,s]),Y=c.useCallback(ae=>{var Ie,ye;const Me=r.current.getLastMeasuredRowIndex();let pe=Me===1/0;(Ie=E.range)!=null&&Ie.lastRowIndex&&!pe&&(pe=Me>=E.range.lastRowIndex);const fe=Rd(Me-(((ye=E.range)==null?void 0:ye.firstRowIndex)||0),0,b.positions.length);return pe||b.positions[fe]>=ae?sd(ae,b.positions):P1e(ae,b.positions,fe)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,b.positions]),te=c.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:ae,left:Ie}=L.current,ye=Math.min(Y(ae),b.positions.length-1),Me=o.autoHeight?ye+E.rows.length:Y(ae+B.height);let pe=0,fe=y.length;if(l){let de=!1;const[be,_e]=ea({firstIndex:ye,lastIndex:Me,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let Ne=be;Ne<_e&&!de;Ne+=1){const Ge=E.rows[Ne];de=r.current.rowHasAutoHeight(Ge.id)}de||(pe=sd(Math.abs(Ie),y),fe=sd(Math.abs(Ie)+B.width,y))}return{firstRowIndex:ye,lastRowIndex:Me,firstColumnIndex:pe,lastColumnIndex:fe}},[i,l,Y,b.positions.length,o.autoHeight,o.rowBuffer,E.rows,y,s.length,r,B]);Nt(()=>{i?(k.current.scrollLeft=0,k.current.scrollTop=0):_.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Nt(()=>{z({width:k.current.clientWidth,height:k.current.clientHeight})},[b.currentPageTotalHeight]);const Q=c.useCallback(()=>{k.current&&z({width:k.current.clientWidth,height:k.current.clientHeight})},[]);dt(r,"debouncedResize",Q);const X=c.useCallback(ae=>{const[Ie,ye]=ea({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[Me]=ea({firstIndex:ae.firstColumnIndex,lastIndex:ae.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),pe=lS({firstColumnToRender:Me,apiRef:r,firstRowToRender:Ie,lastRowToRender:ye,visibleRows:E.rows}),fe=v.direction==="ltr"?1:-1,de=gh(r.current.state).positions[Ie],be=fe*$d(r)[pe];_.current.style.transform=`translate3d(${be}px, ${de}px, 0px)`,typeof u=="function"&&u({top:de,left:be})},[r,E.rows,u,f,p,o.columnBuffer,o.rowBuffer,v.direction]),J=c.useCallback(()=>$.current,[]),se=c.useCallback(ae=>{if($.current&&IB(ae,$.current)){X(ae);return}A(ae),X(ae);const[Ie,ye]=ea({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ie,lastRowToRender:ye}),$.current=ae},[r,A,$,E.rows.length,o.rowBuffer,X]);Nt(()=>{if(B.width==null)return;const ae=te();se(ae);const{top:Ie,left:ye}=L.current,Me={top:Ie,left:ye,renderContext:ae};r.current.publishEvent("scrollPositionChange",Me)},[r,te,B.width,se]);const Z=Ye(ae=>{const{scrollTop:Ie,scrollLeft:ye}=ae.currentTarget;if(L.current.top=Ie,L.current.left=ye,!$.current||Ie<0||v.direction==="ltr"&&ye<0||v.direction==="rtl"&&ye>0)return;const Me=i?te():$.current,pe=Math.abs(Me.firstRowIndex-$.current.firstRowIndex),fe=Math.abs(Me.lastRowIndex-$.current.lastRowIndex),de=Math.abs(Me.firstColumnIndex-$.current.firstColumnIndex),be=Math.abs(Me.lastColumnIndex-$.current.lastColumnIndex),_e=pe>=o.rowThreshold||fe>=o.rowThreshold||de>=o.columnThreshold||be>=o.columnThreshold||M.current!==g;r.current.publishEvent("scrollPositionChange",{top:Ie,left:ye,renderContext:_e?Me:$.current},ae),_e&&(zd.flushSync(()=>{se(Me)}),M.current=g)}),he=Ye(ae=>{r.current.publishEvent("virtualScrollerWheel",{},ae)}),ne=Ye(ae=>{r.current.publishEvent("virtualScrollerTouchMove",{},ae)}),re=c.useMemo(()=>C!==null?E.rows.findIndex(ae=>ae.id===C.id):-1,[C,E.rows]);dt(r,"rowMouseOver",(ae,Ie)=>{var ye;Ie.currentTarget.contains(Ie.relatedTarget)||F((ye=ae.id)!=null?ye:null)}),dt(r,"rowMouseOut",(ae,Ie)=>{Ie.currentTarget.contains(Ie.relatedTarget)||F(null)});const me=(ae={renderContext:R})=>{var Ie;const{onRowRender:ye,renderContext:Me,minFirstColumn:pe=f,maxLastColumn:fe=p,availableSpace:de=B.width,rowIndexOffset:be=0,position:_e="center"}=ae;if(!Me||de==null)return null;const Ne=i?o.rowBuffer:0,Ge=i?o.columnBuffer:0,[Ve,Ue]=ea({firstIndex:Me.firstRowIndex,lastIndex:Me.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:Ne}),Le=[];if(ae.rows)ae.rows.forEach(gt=>{Le.push(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s})});else{if(!E.range)return null;for(let gt=Ve;gt<Ue;gt+=1){const Rt=E.rows[gt];Le.push(Rt),r.current.calculateColSpan({rowId:Rt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s})}}let ht=!1;if(re>-1){const gt=E.rows[re];(Ve>re||Ue<re)&&(ht=!0,re>Ve?Le.push(gt):Le.unshift(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:pe,maxLastColumn:fe,columns:s}))}const[Zt,Pt]=ea({firstIndex:Me.firstColumnIndex,lastIndex:Me.lastColumnIndex,minFirstIndex:pe,maxLastIndex:fe,buffer:Ge}),wt=lS({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ve,lastRowToRender:Ue,visibleRows:E.rows});let Xe=!1;(wt>K||Pt<K)&&(Xe=!0);const{focusedCellColumnIndexNotInRange:Oe,renderedColumns:qe}=H.current(s,wt,Pt,pe,fe,Xe?K:-1),mt=((Ie=o.slotProps)==null?void 0:Ie.row)||{},{style:vt}=mt,Tt=le(mt,x1e);(D.current!==m||N.current!==vt)&&(j.current=Object.create(null));const Qt=[];let Pn=!1;for(let gt=0;gt<Le.length;gt+=1){var bn;const{id:Rt,model:vr}=Le[gt],ir=ht&&C.id===Rt,Tl=ht?Ve+gt===E.rows.length:Ve+gt===E.rows.length-1,as=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let Tn;S[Rt]==null?Tn=!1:Tn=r.current.isRowSelectable(Rt),ye&&ye(Rt);const an=C!==null&&C.id===Rt?C.field:null,yr=Oe!==void 0&&s[Oe],ho=yr&&an?[yr,...qe]:qe;let cs=null;w!==null&&w.id===Rt&&(cs=r.current.getCellParams(Rt,w.field).cellMode==="view"?w.field:null);const lr=typeof m=="function"&&m(Rt,vr)||{},{style:Do}=lr,mi=le(lr,S1e);if(!j.current[Rt]){const Nr=x({},Do,vt);j.current[Rt]=Nr}let Mr=be+((E==null||(bn=E.range)==null?void 0:bn.firstRowIndex)||0)+Ve+gt;ht&&(C==null?void 0:C.id)===Rt?(Mr=re,Pn=!0):Pn&&(Mr-=1),Qt.push(O.jsx(o.slots.row,x({row:vr,rowId:Rt,focusedCellColumnIndexNotInRange:Oe,isNotVisible:ir,rowHeight:as,focusedCell:an,tabbableCell:cs,renderedColumns:ho,visibleColumns:s,firstColumnToRender:wt,lastColumnToRender:Pt,selected:Tn,index:Mr,containerWidth:de,isLastVisible:Tl,position:_e},mi,Tt,{hovered:T===Rt,style:j.current[Rt]}),Rt))}return D.current=m,N.current=vt,Qt},ce=B.width&&g>=B.width,Se=c.useMemo(()=>{const ae=Math.max(b.currentPageTotalHeight,1);let Ie=!1;k!=null&&k.current&&ae<=(k==null?void 0:k.current.clientHeight)&&(Ie=!0);const ye={width:ce?g:"auto",height:ae,minHeight:Ie?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(ye.height=A5(r,o.rowHeight)),ye},[r,k,g,b.currentPageTotalHeight,ce,o.autoHeight,o.rowHeight,E.rows.length]);c.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,Se]);const Ee=c.useMemo(()=>{const ae={};return ce||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden"),ae},[ce,o.autoHeight]);return r.current.register("private",{getRenderContext:J}),{renderContext:R,updateRenderZonePosition:X,getRows:me,getRootProps:(ae={})=>x({ref:I,onScroll:Z,onWheel:he,onTouchMove:ne},ae,{style:ae.style?x({},ae.style,Ee):Ee,role:"presentation"}),getContentProps:({style:ae}={})=>({style:ae?x({},ae,Se):Se,role:"presentation"}),getRenderZoneProps:()=>({ref:_,role:"rowgroup"})}},I1e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:s}=e;return Te({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 M1e(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,m=ut(),v=c.useRef(null),y=Vt(),g=rt(y,k5),C=n?g[n]:{},{headerName:w=n!=null?n:"",description:b="",headerAlign:S=void 0}=C;let E;const _=n&&((t=g[n])==null?void 0:t.renderHeaderGroup),k=c.useMemo(()=>({groupId:n,headerName:w,description:b,depth:o,maxDepth:s,fields:i,colIndex:a,isLastColumn:p}),[n,w,b,o,s,i,a,p]);n&&_&&(E=_(k));const I=m.showColumnVerticalBorder,R=x({},e,{classes:m.classes,showColumnBorder:I,headerAlign:S,depth:o,isDragging:!1}),A=w!=null?w:n,$=Kt(),L=n===null?`empty-group-cell-${$}`:n,B=I1e(R);c.useLayoutEffect(()=>{if(u){const j=v.current.querySelector('[tabindex="0"]')||v.current;j==null||j.focus()}},[y,u]);const z=c.useCallback(F=>j=>{j.currentTarget.contains(j.target)&&y.current.publishEvent(F,k,j)},[y,k]),M=c.useMemo(()=>({onKeyDown:z("columnGroupHeaderKeyDown"),onFocus:z("columnGroupHeaderFocus"),onBlur:z("columnGroupHeaderBlur")}),[z]),T=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return O.jsx(W5,x({ref:v,classes:B,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:E,headerClassName:T,description:b,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:A,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},M))}const tD=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function _1e(e){return!!e.target}const T1e=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:m,columnMenuState:v,columnVisibility:y,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:C}=e,w=yn(),[b,S]=c.useState(""),[E,_]=c.useState(""),k=Ba(),I=rt(k,oB),R=ut(),A=c.useRef(null),$=Et(t,A),[L,B]=c.useState(null),z=c.useRef(L),M=c.useRef(0),T=Uc(k,R),F=OE(k,R.columnHeaderHeight),j=Math.floor(R.columnHeaderHeight*p),D=c.useCallback(ne=>{L&&ne&&IB(L,ne)||B(ne)},[L]);c.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const N=c.useRef(a0(k0e,{equalityCheck:(ne,re)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(me=>ne[me]===re[me])})),H=c.useCallback(ne=>{const[re,me]=ea({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),ce=N.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:R.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:k,visibleRows:T.rows}),Se=w.direction==="ltr"?1:-1,Ee=ce>0?M.current-Se*i[ce]:M.current;A.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[i,n,R.columnBuffer,k,T.rows,R.rowBuffer,w.direction]);c.useLayoutEffect(()=>{L&&H(L)},[L,H]);const K=c.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,Se;if(!A.current||M.current===ne&&((ce=z.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((Se=z.current)==null?void 0:Se.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;M.current=ne;let Ee=!1;re!==z.current||!z.current?(_1e(me)?(zd.flushSync(()=>{D(re)}),Ee=!0):D(re),z.current=re):Ee=!0,re&&Ee&&H(re)},[H,D]),Y=c.useCallback(ne=>_(ne.field),[]),te=c.useCallback(()=>_(""),[]),Q=c.useCallback(ne=>S(ne.field),[]),X=c.useCallback(()=>S(""),[]);dt(k,"columnResizeStart",Y),dt(k,"columnResizeStop",te),dt(k,"columnHeaderDragStart",Q),dt(k,"columnHeaderDragEnd",X),dt(k,"scrollPositionChange",K);const J=ne=>{const{renderContext:re=L,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[Se,Ee]=ea({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),ae=I?N.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:R.columnBuffer,apiRef:k,firstRowToRender:Se,lastRowToRender:Ee,visibleRows:T.rows}):0,Ie=I?Math.min(re.lastColumnIndex+R.columnBuffer,ce):ce;return{renderedColumns:r.slice(ae,Ie),firstColumnToRender:ae,lastColumnToRender:Ie,minFirstColumn:me,maxLastColumn:ce}},se=(ne,re={})=>{const me=J(ne);if(me==null)return null;const{renderedColumns:ce,firstColumnToRender:Se}=me,Ee=[];for(let ae=0;ae<ce.length;ae+=1){const Ie=ce[ae],ye=Se+ae,Me=ye===0,pe=l!==null&&l.field===Ie.field||Me&&!C?0:-1,fe=u!==null&&u.field===Ie.field,de=v.open&&v.field===Ie.field;Ee.push(O.jsx(zge,x({},o[Ie.field],{columnMenuOpen:de,filterItemsCounter:s[Ie.field]&&s[Ie.field].length,headerHeight:j,isDragging:Ie.field===b,colDef:Ie,colIndex:ye,isResizing:E===Ie.field,hasFocus:fe,tabIndex:pe},re),Ie.field))}return O.jsx(tD,{role:"row","aria-rowindex":m+1,ownerState:R,children:Ee})},Z=ne=>{if(m===0)return null;const re=J(ne);if(re==null||re.renderedColumns.length===0)return null;const{firstColumnToRender:me,lastColumnToRender:ce}=re,Se=[],Ee=[];for(let ye=0;ye<m;ye+=1){var ae,Ie;const Me=g[ye],pe=r[me].field,fe=(ae=k.current.unstable_getColumnGroupPath(pe)[ye])!=null?ae:null,de=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===fe&&wt.includes(pe)),be=r[ce-1].field,_e=(Ie=k.current.unstable_getColumnGroupPath(be)[ye])!=null?Ie:null,Ne=Me.findIndex(({groupId:Pt,columnFields:wt})=>Pt===_e&&wt.includes(be)),Ge=Me.slice(de,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(pe),Le=Ge[0].columnFields.slice(0,Ve).reduce((Pt,wt)=>{var Xe;const Oe=k.current.getColumn(wt);return Pt+((Xe=Oe.computedWidth)!=null?Xe:0)},0);let ht=me;const Zt=Ge.map(({groupId:Pt,columnFields:wt})=>{const Xe=f!==null&&f.depth===ye&&wt.includes(f.field),Oe=a!==null&&a.depth===ye&&wt.includes(a.field)?0:-1,qe={groupId:Pt,width:wt.reduce((mt,vt)=>mt+k.current.getColumn(vt).computedWidth,0),fields:wt,colIndex:ht,hasFocus:Xe,tabIndex:Oe};return ht+=wt.length,qe});Ee.push({leftOverflow:Le,elements:Zt})}return Ee.forEach((ye,Me)=>{Se.push(O.jsx(tD,{style:{height:`${j}px`,transform:`translateX(-${ye.leftOverflow}px)`},role:"row","aria-rowindex":Me+1,ownerState:R,children:ye.elements.map(({groupId:pe,width:fe,fields:de,colIndex:be,hasFocus:_e,tabIndex:Ne},Ge)=>O.jsx(M1e,{groupId:pe,width:fe,fields:de,colIndex:be,depth:Me,isLastColumn:be===r.length-de.length,maxDepth:Ee.length,height:j,hasFocus:_e,tabIndex:Ne},Ge))},Me))}),Se},he={minHeight:F,maxHeight:F,lineHeight:`${j}px`};return{renderContext:L,getColumnHeaders:se,getColumnsToRender:J,getColumnGroupHeaders:Z,isDragging:!!b,getRootProps:(ne={})=>x({style:he},ne),getInnerProps:()=>({ref:$,role:"rowgroup"}),headerHeight:j}},$1e=["className"],R1e=e=>{const{classes:t}=e;return Te({root:["columnHeaders","withBorderColor"]},jt,t)},O1e=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)"}),D1e=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,$1e),s=ut(),i=R1e(s);return O.jsx(O1e,x({ref:n,className:Ce(r,i.root),ownerState:s},o,{role:"presentation"}))}),A1e=["isDragging","className"],L1e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Te({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},jt,r)},F1e=Ir("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ue.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ue.columnHeaderDropZone} .${ue.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ue["columnHeadersInner--scrollable"]} .${ue.columnHeader}:last-child`]:{borderRight:"none"}})),N1e=c.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=le(t,A1e),a=Vt(),u=ut(),f=x({},u,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=L1e(f);return O.jsx(F1e,x({ref:n,className:Ce(i,p.root),ownerState:f},l))}),B1e=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],z1e=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:m,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w}=t,b=le(t,B1e),{isDragging:S,getRootProps:E,getInnerProps:_,getColumnHeaders:k,getColumnGroupHeaders:I}=T1e({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:m,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:g,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w});return O.jsx(D1e,x({ref:n},E(b),{children:O.jsxs(N1e,x({isDragging:S},_(),{children:[I(),k()]}))}))}),V1e=g0(z1e),j1e=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return O.jsx(PE,x({ref:n},t,{children:o}))}),H1e=["sortingOrder"],U1e=c.memo(function(t){const{sortingOrder:n}=t,r=le(t,H1e),o=ut(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?O.jsx(i,x({},r)):null}),W1e=["native"];function G1e(e){let{native:t}=e,n=le(e,W1e);return t?O.jsx("option",x({},n)):O.jsx(Pr,x({},n))}const K1e={BooleanCellTrueIcon:Nve,BooleanCellFalseIcon:eC,ColumnMenuIcon:Dve,OpenFilterButtonIcon:Ive,FilterPanelDeleteIcon:eC,ColumnFilteredIcon:DO,ColumnSelectorIcon:_ve,ColumnUnsortedIcon:U1e,ColumnSortedAscendingIcon:TO,ColumnSortedDescendingIcon:$O,ColumnResizeIcon:Tve,DensityCompactIcon:$ve,DensityStandardIcon:Rve,DensityComfortableIcon:Ove,ExportIcon:Fve,MoreActionsIcon:Bve,TreeDataCollapseIcon:OO,TreeDataExpandIcon:RO,GroupingCriteriaCollapseIcon:OO,GroupingCriteriaExpandIcon:RO,DetailPanelExpandIcon:AO,DetailPanelCollapseIcon:Ave,RowReorderIcon:LO,QuickFilterIcon:Mve,QuickFilterClearIcon:eC,ColumnMenuHideIcon:zve,ColumnMenuSortAscendingIcon:TO,ColumnMenuSortDescendingIcon:$O,ColumnMenuFilterIcon:DO,ColumnMenuManageColumnsIcon:Vve,ColumnMenuClearIcon:jve,LoadIcon:Lve,FilterPanelAddIcon:AO,FilterPanelRemoveAllIcon:Hve,ColumnReorderIcon:LO},q1e=x({},K1e,{BaseCheckbox:NN,BaseTextField:Na,BaseFormControl:KN,BaseSelect:mk,BaseSwitch:f4,BaseButton:Yn,BaseIconButton:xr,BaseInputAdornment:Cl,BaseTooltip:Ml,BasePopper:Fa,BaseInputLabel:t4,BaseSelectOption:G1e,BaseChip:kb}),Y1e=q1e,Q1e=x({},Y1e,{Cell:Jx,SkeletonCell:ige,ColumnHeaderFilterIconButton:bve,ColumnMenu:oye,ColumnHeaders:V1e,Footer:fbe,FooterRowCount:Cbe,Toolbar:null,PreferencesPanel:Rye,LoadingOverlay:hbe,NoResultsOverlay:j1e,NoRowsOverlay:mbe,Pagination:vbe,FilterPanel:Jye,ColumnsPanel:Eye,Panel:$ye,Row:zbe}),MB=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function X1e({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?MB(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 Z1e=["components","componentsProps"];function J1e(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 ewe(e){return c.useMemo(()=>{const{components:t,componentsProps:n}=e,r=le(e,Z1e);return[t,n,J1e(r)]},[e])}const twe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},y0={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:Hi.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},nwe=MB(Q1e),rwe=e=>{const[t,n,r]=ewe(je({props:e,name:"MuiDataGrid"})),o=c.useMemo(()=>x({},EB,r.localeText),[r.localeText]),s=c.useMemo(()=>X1e({defaultSlots:nwe,slots:r.slots,components:t}),[t,r.slots]);return c.useMemo(()=>{var i;return x({},y0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},twe)},[r,o,s,n])},owe=e=>x({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),nD=(e,t,n)=>typeof e=="number"&&e>0?e:t,swe=(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=rt(e,nf),u=rt(e,Or),f=rt(e,X5),p=rt(e,Cs),m=Uc(e,t),v=rt(e,tf),y=nD(t.rowHeight,y0.rowHeight),g=Math.floor(y*a),C=c.useCallback(()=>{var B,z;l.current=!1;const M=j=>{s.current[j.id]||(s.current[j.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:N,sizes:H}=s.current[j.id];let K=typeof g=="number"&&g>0?g:52;const Y=H.baseCenter;if(D)K=Y;else if(n){const se=n(x({},j,{densityFactor:a}));if(se==="auto"){if(N){const Z=o?o(x({},j,{densityFactor:a})):g;K=Z!=null?Z:g}else K=Y;l.current=!0,s.current[j.id].autoHeight=!0}else K=nD(se,g),s.current[j.id].needsFirstMeasurement=!1,s.current[j.id].autoHeight=!1}else s.current[j.id].needsFirstMeasurement=!1;const te={};for(const se in H)/^base[A-Z]/.test(se)&&(te[se]=H[se]);if(te.baseCenter=K,r){var Q,X;const se=e.current.getRowIndexRelativeToVisibleRows(j.id),Z=r(x({},j,{isFirstVisible:se===0,isLastVisible:se===m.rows.length-1,indexRelativeToCurrentPage:se}));te.spacingTop=(Q=Z.top)!=null?Q:0,te.spacingBottom=(X=Z.bottom)!=null?X:0}const J=e.current.unstable_applyPipeProcessors("rowHeight",te,j);return s.current[j.id].sizes=J,J},T=[],F=m.rows.reduce((j,D)=>{T.push(j);let N=0,H=0;const K=M(D);for(const Y in K){const te=K[Y];/^base[A-Z]/.test(Y)?N=te>N?te:N:H+=te}return j+N+H},0);v==null||(B=v.top)==null||B.forEach(j=>{M(j)}),v==null||(z=v.bottom)==null||z.forEach(j=>{M(j)}),e.current.setState(j=>x({},j,{rowsMeta:{currentPageTotalHeight:F,positions:T}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,m.rows,g,n,r,o,v,a]),w=c.useCallback(B=>{const z=s.current[B];return z?z.sizes.baseCenter:g},[g]),b=B=>{var z;return(z=s.current[B])==null?void 0:z.sizes},S=c.useCallback((B,z)=>{s.current[B].sizes.baseCenter=z,s.current[B].isResized=!0,s.current[B].needsFirstMeasurement=!1,C()},[C]),E=c.useMemo(()=>Aa(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),_=c.useCallback((B,z,M)=>{if(!s.current[B]||!s.current[B].autoHeight)return;const T=s.current[B].sizes[`base${Pe(M)}`]!==z;s.current[B].needsFirstMeasurement=!1,s.current[B].sizes[`base${Pe(M)}`]=z,T&&E()},[E]),k=c.useCallback(B=>{var z;return((z=s.current[B])==null?void 0:z.autoHeight)||!1},[]),I=c.useCallback(()=>i.current,[]),R=c.useCallback(B=>{l.current&&B>i.current&&(i.current=B)},[]),A=c.useCallback(()=>{s.current={},C()},[C]);c.useEffect(()=>{C()},[g,u,f,p,C]),RE(e,"rowHeight",C);const $={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:b,unstable_setRowHeight:S,unstable_storeRowHeightMeasurement:_,resetRowHeights:A},L={getLastMeasuredRowIndex:I,rowHasAutoHeight:k};At(e,$,"public"),At(e,L,"private")},iwe=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")},lwe=e=>{const t=c.useRef({}),n=c.useCallback((u,f,p)=>{const m=t.current;m[u]||(m[u]={}),m[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:m,maxLastColumnIndex:v,columns:y}=u,g=y.length,C=y[f],w=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(p,C.field)):C.colSpan;if(!w||w===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let b=C.computedWidth;for(let S=1;S<w;S+=1){const E=f+S;if(E>=m&&E<v){const _=y[E];b+=_.computedWidth,n(p,f+S,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+w,g-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:w,width:b}})}return{colSpan:w}},[e,n]),s=c.useCallback(({rowId:u,minFirstColumn:f,maxLastColumn:p,columns:m})=>{for(let v=f;v<p;v+=1){const y=o({columnIndex:v,rowId:u,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:m});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={}},[]);dt(e,"columnOrderChange",a)},_B=(e,t,n)=>{if(L5(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=>{_B(s,[...t,r],n)})},aS=e=>{if(!e)return{};const t={};return e.forEach(n=>{_B(n,[],t)}),t},cS=(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)=>bc(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 m;const v=(m=r(p)[a])!=null?m:null;if(f.length===0)return[{columnFields:[p],groupId:v}];const y=f[f.length-1],g=y.columnFields[y.columnFields.length-1];return y.groupId!==v||!i(g,p,a)||l(g,p)?[...f,{columnFields:[p],groupId:v}]:[...f.slice(0,f.length-1),{columnFields:[...y.columnFields,p],groupId:v}]},[]);o.push(u)}return o},awe=["groupId","children"],DE=e=>{let t={};return e.forEach(n=>{if(L5(n))return;const{groupId:r,children:o}=n,s=le(n,awe);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=DE(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)},cwe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=ml(n),a=c0(n),u=DE((o=t.columnGroupingModel)!=null?o:[]),f=aS((s=t.columnGroupingModel)!=null?s:[]),p=cS(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),m=a.length===0?0:Math.max(...a.map(v=>{var y,g;return(y=(g=f[v])==null?void 0:g.length)!=null?y:0}));return x({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:f,headerStructure:p,maxDepth:m}})},uwe=(e,t)=>{var n;const r=c.useCallback(a=>{var u;return(u=$he(e)[a])!=null?u:[]},[e]),o=c.useCallback(()=>k5(e),[e]);At(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=c.useCallback(()=>{var a;const u=aS((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,m,v;const y=(p=(m=f.columns)==null?void 0:m.orderedFields)!=null?p:[],g=(v=f.pinnedColumns)!=null?v:{},C=cS(y,u,g);return x({},f,{columnGrouping:x({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=c.useCallback(a=>{var u,f,p,m;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const v=(f=(p=(m=e.current).getPinnedColumns)==null?void 0:p.call(m))!=null?f:{},y=ml(e),g=c0(e),C=DE(a!=null?a:[]),w=aS(a!=null?a:[]),b=cS(y,w,v),S=g.length===0?0:Math.max(...g.map(E=>{var _,k;return(_=(k=w[E])==null?void 0:k.length)!=null?_:0}));e.current.setState(E=>x({},E,{columnGrouping:{lookup:C,unwrappedGroupingModel:w,headerStructure:b,maxDepth:S}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);dt(e,"columnIndexChange",i),dt(e,"columnsChange",()=>{l(t.columnGroupingModel)}),dt(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),c.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},dwe=(e,t)=>{const n=t0e(e,t);return m1e(n,t),d1e(n),bo(f1e,n,t),bo(E0e,n,t),bo(i1e,n,t),bo(o1e,n,t),bo(U0e,n,t),bo(g1e,n,t),bo(q0e,n,t),bo(z0e,n,t),bo(T0e,n,t),bo(A0e,n,t),bo(owe,n,t),bo(C0e,n,t),bo(cwe,n,t),bo(mve,n,t),K0e(n,t),p1e(n,t),I0e(n,t),l1e(n,t),fme(n,t),lwe(n),uwe(n,t),s1e(n,t),W0e(n,t),Y0e(n,t),H0e(n,t),v1e(n,t),$0e(n,t),L0e(n,t),swe(n,t),y1e(n,t),x0e(n),D0e(n,t),B0e(n,t),w0e(n,t),C1e(n,t),b1e(n,t),iwe(n),gve(n,t),n},fwe=e=>{const{classes:t}=e;return Te({root:["virtualScroller"]},jt,t)},pwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),hwe=c.forwardRef(function(t,n){const r=ut(),o=fwe(r);return O.jsx(pwe,x({ref:n},t,{className:Ce(o.root,t.className),ownerState:r}))}),mwe=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},jt,n)},gwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),vwe=c.forwardRef(function(t,n){var r;const o=ut(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=mwe(o,s);return O.jsx(gwe,x({ref:n},t,{ownerState:o,className:Ce(i.root,t.className)}))}),ywe=["className"],bwe=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},jt,t)},wwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Cwe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,ywe),s=ut(),i=bwe(s);return O.jsx(wwe,x({ref:n,className:Ce(i.root,r),ownerState:s},o))}),xwe=["className"],Swe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,xwe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=E1e({ref:n});return O.jsxs(hwe,x({className:r},s(o),{children:[O.jsx(sme,{}),O.jsx(vwe,x({},i(),{children:O.jsx(Cwe,x({},l(),{children:a()}))}))]}))}),TB=c.forwardRef(function(t,n){const r=rwe(t),o=dwe(r.apiRef,r);return O.jsx(Vbe,{privateApiRef:o,props:r,children:O.jsxs(dge,x({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[O.jsx(pbe,{}),O.jsx(Qhe,{VirtualScrollerComponent:Swe}),O.jsx(Xhe,{})]}))})}),$B=c.memo(TB);y0.filterDebounceMs;y0.filterDebounceMs;TB.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:mq(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 Pwe={},kwe=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:x({},e,{MuiTablePagination:(t==null||(n=t.components)==null||(n=n.MuiTablePagination)==null?void 0:n.defaultProps)||{}})}}}}},Ewe=kwe(EB,Pwe),rC="Actions";function qh(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}=Fb(),m=yn(),v=ghe(),[y,g]=c.useState(0),C=c.useMemo(()=>{const{localeText:k}=Ewe.components.MuiDataGrid.defaultProps,I=e.map(R=>{var M;const{type:A}=R;(!A||A==="string")&&((M=R.filterOperators)!=null||(R.filterOperators=hB().map(F=>F.value.includes("Empty")?F:[F,st(xe(st(xe({},F),{value:"!"+F.value,getApplyFilterFn(j,D){const N=F.getApplyFilterFn(j,D);return N&&et.negate(N)}}),F.getApplyFilterFnV7&&{getApplyFilterFnV7(j,D){var H;const N=(H=F.getApplyFilterFnV7)==null?void 0:H.call(F,j,D);return N?et.negate(N):null}}),{label:"(not) "+(k["filterOperator"+et.upperFirst(F.value)]||F.value)})]).flat()));const{mergeRender:$}=R;if(!$)return R;const T=$,{other:L,override:B}=T,z=Ft(T,["other","override"]);return st(xe({},R),{originalRenderCell:R.renderCell||!0,renderCell(F){const{columns:j}=F.api.store.getSnapshot(),D=j.columnVisibilityModel[L]===!1;return c.createElement(ze,{},R.renderCell?R.renderCell(F):F.formattedValue,D&&c.createElement(ze,xe(xe({},l&&{lineHeight:"1em",fontSize:"smaller"}),z),_(xe(xe({},j.lookup[L]),B),F.row)))}})});return n&&I.push(xe({field:rC,width:40*y,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(R){const A=n(xe(xe({},R.row),R));return setTimeout(()=>g(A.length)),c.createElement(ze,{whiteSpace:"nowrap"},...A)}},r)),I},[e,n,y]),w=c.useMemo(()=>{if(!p)return;const k=jc(C.map(({field:R,hideUnder:A,hidden:$})=>($||A&&p<(typeof A=="number"?A:m.breakpoints.values[A]))&&R)),I=Object.fromEntries(k.map(R=>[R,!1]));return et.merge(t,{columns:{columnVisibilityModel:I}}),k},[C]),[b,S]=c.useState({}),E=c.useRef({});if(c.useEffect(()=>{const{current:{id:k,setCurRow:I}}=E;I==null||I(et.find(a.rows,{id:k}))}),!w)return null;return c.createElement(c.Fragment,{},i&&c.createElement(kr,{severity:"error"},i),o&&c.createElement(ze,{position:"relative"},c.createElement(zv,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),c.createElement($B,st(xe({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:v,slots:xe({},(s||o)&&{noRowsOverlay:()=>o?null:c.createElement(jh,{},s)}),onCellClick({field:k,row:I}){if(k===rC)return;const R=v.current.getVisibleColumns().length,A=C.filter($=>$.renderCell||$.field===rC||I[$.field]!==void 0);A.length<=R||Oo({title:"Details",onClose(){E.current={}},Content(){const[$,L]=c.useState(I),B=c.useRef(I);$&&(B.current=$);const z=B.current;return E.current={id:z.id,setCurRow:L},c.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:$?void 0:.5}},A.map(M=>c.createElement(ze,{key:M.field,gridColumn:M.flex&&"1/-1"},c.createElement(ze,{bgcolor:"#0003",p:1},M.headerName||M.field),c.createElement(qr,{minHeight:"2.5em",px:1,wordBreak:"break-word"},_(M,z)))))}})}},a),{onColumnVisibilityModelChange:k=>S(k),columnVisibilityModel:xe(xe(xe({},Object.fromEntries(w.map(k=>[k,!1]))),a.columnVisibilityModel),b)})));function _(k,I){const R=v.current;let A=I[k.field];k.valueGetter&&(A=k.valueGetter({value:A,api:R,row:I,field:k.field,id:I.id}));const $=k.originalRenderCell||k.renderCell;return $&&$!==!0?$(xe({value:A,row:I,api:R},I)):k.valueFormatter?k.valueFormatter(xe({value:A},I)):A}}const RB=`🇦🇨|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}}),Iwe="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(",");var AE={},Mwe=tt;Object.defineProperty(AE,"__esModule",{value:!0});var LE=AE.default=void 0,_we=Mwe(nt()),Twe=Ze(),$we=(0,_we.default)((0,Twe.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");LE=AE.default=$we;var FE={},Rwe=tt;Object.defineProperty(FE,"__esModule",{value:!0});var NE=FE.default=void 0,Owe=Rwe(nt()),Dwe=Ze(),Awe=(0,Owe.default)((0,Dwe.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");NE=FE.default=Awe;var BE={},Lwe=tt;Object.defineProperty(BE,"__esModule",{value:!0});var zE=BE.default=void 0,Fwe=Lwe(nt()),Nwe=Ze(),Bwe=(0,Fwe.default)((0,Nwe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");zE=BE.default=Bwe;var VE={},zwe=tt;Object.defineProperty(VE,"__esModule",{value:!0});var jE=VE.default=void 0,Vwe=zwe(nt()),jwe=Ze(),Hwe=(0,Vwe.default)((0,jwe.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");jE=VE.default=Hwe;var HE={},Uwe=tt;Object.defineProperty(HE,"__esModule",{value:!0});var _l=HE.default=void 0,Wwe=Uwe(nt()),Gwe=Ze(),Kwe=(0,Wwe.default)((0,Gwe.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");_l=HE.default=Kwe;var UE={},qwe=tt;Object.defineProperty(UE,"__esModule",{value:!0});var WE=UE.default=void 0,Ywe=qwe(nt()),Qwe=Ze(),Xwe=(0,Ywe.default)((0,Qwe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");WE=UE.default=Xwe;var GE={},Zwe=tt;Object.defineProperty(GE,"__esModule",{value:!0});var OB=GE.default=void 0,Jwe=Zwe(nt()),eCe=Ze(),tCe=(0,Jwe.default)((0,eCe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");OB=GE.default=tCe;var KE={},nCe=tt;Object.defineProperty(KE,"__esModule",{value:!0});var DB=KE.default=void 0,rCe=nCe(nt()),oCe=Ze(),sCe=(0,rCe.default)((0,oCe.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");DB=KE.default=sCe;const iCe=["localeText"],uS=c.createContext(null),qE=function(t){var n;const{localeText:r}=t,o=le(t,iCe),{utils:s,localeText:i}=(n=c.useContext(uS))!=null?n:{utils:void 0,localeText:void 0},l=je({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:u,dateFormats:f,dateLibInstance:p,adapterLocale:m,localeText:v}=l,y=c.useMemo(()=>x({},v,i,r),[v,i,r]),g=c.useMemo(()=>{if(!u)return s||null;const b=new u({locale:m,formats:f,instance:p});if(!b.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 b},[u,m,f,p,s]),C=c.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),w=c.useMemo(()=>({utils:g,defaultDates:C,localeText:y}),[C,g,y]);return O.jsx(uS.Provider,{value:w,children:a})},lCe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:x({},e)}}}}),AB={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"},aCe=AB;lCe(AB);const Wc=()=>{const e=c.useContext(uS);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({},aCe,e.localeText),[e.localeText]);return c.useMemo(()=>x({},e,{localeText:t}),[e,t])},on=()=>Wc().utils,Yh=()=>Wc().defaultDates,ls=()=>Wc().localeText,Va=e=>{const t=on(),n=c.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},cCe=bt(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),uCe=bt(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),dCe=bt(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),fCe=bt(O.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(O.jsxs(c.Fragment,{children:[O.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"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const pCe=bt(O.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"),hCe=bt(O.jsxs(c.Fragment,{children:[O.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"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),mCe=bt(O.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 gCe(e){return Ke("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const vCe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],yCe=["ownerState"],bCe=["ownerState"],wCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),CCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),rD=oe(xr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>x({},e.hidden&&{visibility:"hidden"})),xCe=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"]},gCe,t)},LB=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:m,slotProps:v,isNextDisabled:y,isNextHidden:g,onGoToNext:C,nextLabel:w,isPreviousDisabled:b,isPreviousHidden:S,onGoToPrevious:E,previousLabel:_}=u,k=le(u,vCe),I=u,R=xCe(I),A={isDisabled:y,isHidden:g,goTo:C,label:w},$={isDisabled:b,isHidden:S,goTo:E,label:_},L=(r=m==null?void 0:m.previousIconButton)!=null?r:rD,B=qt({elementType:L,externalSlotProps:v==null?void 0:v.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:x({},I,{hidden:$.isHidden}),className:R.button}),z=(o=m==null?void 0:m.nextIconButton)!=null?o:rD,M=qt({elementType:z,externalSlotProps:v==null?void 0:v.nextIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"start",onClick:A.goTo},ownerState:x({},I,{hidden:A.isHidden}),className:R.button}),T=(s=m==null?void 0:m.leftArrowIcon)!=null?s:uCe,F=qt({elementType:T,externalSlotProps:v==null?void 0:v.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=le(F,yCe),D=(i=m==null?void 0:m.rightArrowIcon)!=null?i:dCe,N=qt({elementType:D,externalSlotProps:v==null?void 0:v.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=le(N,bCe);return O.jsxs(wCe,x({ref:n,className:Ce(R.root,p),ownerState:I},k,{children:[O.jsx(L,x({},B,{children:a?O.jsx(D,x({},H)):O.jsx(T,x({},j))})),f?O.jsx(qn,{variant:"subtitle1",component:"span",children:f}):O.jsx(CCe,{className:R.spacer,ownerState:I}),O.jsx(z,x({},M,{children:a?O.jsx(T,x({},j)):O.jsx(D,x({},H))}))]}))}),Mi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),SCe=({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}},FB=["hours","minutes","seconds"],Od=e=>FB.includes(e),Yl=e=>FB.includes(e)||e==="meridiem",PCe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,bh=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,kCe=(e,t,n,r)=>{const o=bh(r.getHours(e),t,n);return r.setHours(e,o)},oD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Qh=(e,t)=>(n,r)=>e?t.isAfter(n,r):oD(n,t)>oD(r,t),sD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Mi(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Mi(n,["minutes"])?o.minutes:Mi(n,["seconds"])?o.seconds:Mi(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Mi(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 Xh({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),m=c.useRef(o.includes(n)?n:o[0]),[v,y]=Qr({name:"useViews",state:"view",controlled:r,default:m.current}),g=c.useRef(s?v:null),[C,w]=Qr({name:"useViews",state:"focusedView",controlled:i,default:g.current});c.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some($=>!o.includes($)))&&(y(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,y,v,o]);const b=o.indexOf(v),S=(a=o[b-1])!=null?a:null,E=(u=o[b+1])!=null?u:null,_=Ye(($,L)=>{w(L?$:B=>$===B?null:B),l==null||l($,L)}),k=Ye($=>{$!==v&&(y($),_($,!0),t&&t($))}),I=Ye(()=>{E&&k(E),_(E,!0)}),R=Ye(($,L,B)=>{const z=L==="finish",M=B?o.indexOf(B)<o.length-1:!!E;e($,z&&M?"partial":L),z&&I()}),A=Ye(($,L,B)=>{e($,L?"partial":"finish",B),L&&(k(L),_(L,!0))});return{view:v,setView:k,focusedView:C,setFocusedView:_,nextView:E,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:R,setValueAndGoToView:A}}function ECe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=on();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 ICe(e,{disablePast:t,minDate:n,timezone:r}){const o=on();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 YE(e,t,n,r){const o=on(),s=PCe(e,o),i=c.useCallback(l=>{const a=e==null?null:kCe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const wh=36,b0=2,w0=320,MCe=280,C0=334,NB=232,up=48,x0=oe("div")({overflow:"hidden",width:w0,maxHeight:C0,display:"flex",flexDirection:"column",margin:"0 auto"});function _Ce(e){return Ke("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Dd=220,Ni=36,Ch={x:Dd/2,y:Dd/2},BB={x:Ch.x,y:0},TCe=BB.x-Ch.x,$Ce=BB.y-Ch.y,RCe=e=>e*(180/Math.PI),zB=(e,t,n)=>{const r=t-Ch.x,o=n-Ch.y,s=Math.atan2(TCe,$Ce)-Math.atan2(r,o);let i=RCe(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=ys(r,2)+ys(o,2),u=Math.sqrt(a);return{value:l,distance:u}},OCe=(e,t,n=1)=>{const r=n*6;let{value:o}=zB(r,e,t);return o=o*n%60,o},DCe=(e,t,n)=>{const{value:r,distance:o}=zB(30,e,t);let s=r||12;return n?s%=12:o<Dd/2-Ni&&(s+=12,s%=24),s};function ACe(e){return Ke("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const LCe=["className","hasSelected","isInner","type","viewValue"],FCe=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},ACe,t)},NCe=oe("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"])})),BCe=oe("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% - ${Ni/2}px)`,border:`${(Ni-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function zCe(e){const t=je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=le(t,LCe),l=c.useRef(o);c.useEffect(()=>{l.current=o},[o]);const a=x({},t,{shouldAnimate:l.current!==o}),u=FCe(a),f=()=>{let m=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(m-=360),{height:Math.round((r?.26:.4)*Dd),transform:`rotateZ(${m}deg)`}};return O.jsx(NCe,x({style:f(),className:Ce(n,u.root),ownerState:a},i,{children:O.jsx(BCe,{ownerState:a,className:u.thumb})}))}function VCe(e){return Ke("MuiClock",e)}We("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Op=({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},jCe=(e,t)=>t==null||!e.isValid(t)?null:t,Fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,HCe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),QE=(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},dS=(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},XE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),dl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},UCe=["year","month","day"],id=e=>UCe.includes(e),iD=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Mi(n,["year"])?o.year:Mi(n,["month"])?o.month:Mi(n,["day"])?o.dayOfMonth:Mi(n,["month","year"])?`${o.month} ${o.year}`:Mi(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},WCe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},GCe=e=>{const{classes:t}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},VCe,t)},KCe=oe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),qCe=oe("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"}),YCe=oe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),QCe=oe("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"}})),XCe=oe("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%)"})),ZCe=oe(xr,{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:Ni},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}})),JCe=oe(xr,{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:Ni},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}})),lD=oe(qn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function exe(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:m,type:v,viewValue:y,disabled:g,readOnly:C,className:w}=t,b=t,S=on(),E=ls(),_=c.useRef(!1),k=GCe(b),I=a(y,v),R=!n&&v==="hours"&&(y<1||y>12),A=(N,H)=>{g||C||a(N,v)||p(N,H)},$=(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 te=v==="seconds"||v==="minutes"?OCe(K,Y,f):DCe(K,Y,!!n);A(te,H)},L=N=>{_.current=!0,$(N,"shallow")},B=N=>{_.current&&($(N,"finish"),_.current=!1)},z=N=>{N.buttons>0&&$(N.nativeEvent,"shallow")},M=N=>{_.current&&(_.current=!1),$(N.nativeEvent,"finish")},T=c.useMemo(()=>v==="hours"?!0:y%5===0,[v,y]),F=v==="minutes"?f:1,j=c.useRef(null);Nt(()=>{o&&j.current.focus()},[o]);const D=N=>{if(!_.current)switch(N.key){case"Home":A(0,"partial"),N.preventDefault();break;case"End":A(v==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":A(y+F,"partial"),N.preventDefault();break;case"ArrowDown":A(y-F,"partial"),N.preventDefault();break}};return O.jsxs(KCe,{className:Ce(w,k.root),children:[O.jsxs(qCe,{className:k.clock,children:[O.jsx(QCe,{onTouchMove:L,onTouchEnd:B,onMouseUp:M,onMouseMove:z,ownerState:{disabled:g},className:k.squareMask}),!I&&O.jsxs(c.Fragment,{children:[O.jsx(XCe,{className:k.pin}),i!=null&&O.jsx(zCe,{type:v,viewValue:y,isInner:R,hasSelected:T})]}),O.jsx(YCe,{"aria-activedescendant":m,"aria-label":E.clockLabelText(v,i,S),ref:j,role:"listbox",onKeyDown:D,tabIndex:0,className:k.wrapper,children:s})]}),n&&r&&O.jsxs(c.Fragment,{children:[O.jsx(ZCe,{onClick:C?void 0:()=>l("am"),disabled:g||u===null,ownerState:b,className:k.amButton,title:dl(S,"am"),children:O.jsx(lD,{variant:"caption",className:k.meridiemText,children:dl(S,"am")})}),O.jsx(JCe,{disabled:g||u===null,onClick:C?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,title:dl(S,"pm"),children:O.jsx(lD,{variant:"caption",className:k.meridiemText,children:dl(S,"pm")})})]})]})}function txe(e){return Ke("MuiClockNumber",e)}const bg=We("MuiClockNumber",["root","selected","disabled"]),nxe=["className","disabled","index","inner","label","selected"],rxe=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},txe,t)},oxe=oe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${bg.disabled}`]:t.disabled},{[`&.${bg.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>x({height:Ni,width:Ni,position:"absolute",left:`calc((100% - ${Ni}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},[`&.${bg.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${bg.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&x({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function VB(e){const t=je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=le(t,nxe),u=t,f=rxe(u),p=o%12/12*Math.PI*2-Math.PI/2,m=(Dd-Ni-2)/2*(s?.65:1),v=Math.round(Math.cos(p)*m),y=Math.round(Math.sin(p)*m);return O.jsx(oxe,x({className:Ce(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${v}px, ${y+(Dd-Ni)/2}px`},ownerState:u},a,{children:i}))}const sxe=({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 m=p.toString();p===0&&(m="00");const v=!e&&(p===0||p>12);m=s.formatNumber(m);const y=f(p);l.push(O.jsx(VB,{id:y?o:void 0,index:p,inner:v,selected:y,disabled:r(p),label:m,"aria-label":n(m)},p))}return l},aD=({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 O.jsx(VB,{label:l,id:u?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:u,"aria-label":r(l)},i)})},ZE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=on(),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(g=>f==null?g:o.setTimezone(l,f,g)),m=(i=e!=null?e:f)!=null?i:"default",v=c.useMemo(()=>o.setTimezone(l,m,u),[o,l,m,u]),y=Ye((g,...C)=>{const w=p(g);r==null||r(w,...C)});return{value:v,handleValueChange:y,timezone:m}},of=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,l]=Qr({name:e,state:"value",controlled:n,default:r!=null?r:s.emptyValue}),a=Ye((u,...f)=>{l(u),o==null||o(u,...f)});return ZE({timezone:t,value:i,defaultValue:void 0,onChange:a,valueManager:s})},ti={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ixe=e=>Math.max(...e.map(t=>{var n;return(n=ti[t.type])!=null?n:1})),qf=(e,t,n)=>{if(t===ti.year)return e.startOfYear(n);if(t===ti.month)return e.startOfMonth(n);if(t===ti.day)return e.startOfDay(n);let r=n;return t<ti.minutes&&(r=e.setMinutes(r,0)),t<ti.seconds&&(r=e.setSeconds(r,0)),t<ti.milliseconds&&(r=e.setMilliseconds(r,0)),r},lxe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():qf(t,n,XE(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=qf(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=qf(t,n,e.maxDate));const l=Qh((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:dS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:dS(t,i,e.maxTime))),i},jB=(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}},axe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},S0=(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))},HB=(e,t,n,r)=>{switch(n){case"month":return QE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return S0(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[]}},UB=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},WB=(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?UB(e,s,o.maxLength):s},cxe=(e,t,n,r,o,s,i)=>{const l=axe(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=b=>WB(e,t,b,v,n),g=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let w=parseInt(n.value,10)+l*g;if(f){if(n.type==="year"&&!u&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?w=v.minimum:w=v.maximum}return w%g!==0&&((l<0||a)&&(w+=g-(g+w)%g),(l>0||u)&&(w-=w%g)),w>v.maximum?y(v.minimum+(w-v.maximum-1)%(v.maximum-v.minimum+1)):w<v.minimum?y(v.maximum-(v.minimum-w-1)%(v.maximum-v.minimum+1)):y(w)},m=()=>{const v=HB(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 g=(v.indexOf(n.value)+v.length+l)%v.length;return v[g]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():m()},JE=(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},Uu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),GB=(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=JE(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,u=Uu(a).length,f=a.length,p=Uu(l),m=r+l.indexOf(p[0])+i.startSeparator.length,v=m+p.length;o.push(x({},i,{start:n,end:n+u,startInInput:m,endInInput:v})),n+=u,r+=f}return o},uxe=(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}},cD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),KB=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,qB=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return KB(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")}},dxe=(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},uD=(e,t,n,r,o,s,i,l)=>{let a="";const u=[],f=e.date(),p=S=>{if(S==="")return null;const E=jB(e,S),_=qB(e,t,E.contentType,E.type,S),k=i?_:E.contentType==="digit",I=o!=null&&e.isValid(o);let R=I?e.formatByString(o,S):"",A=null;if(k)if(_)A=R===""?e.formatByString(f,S).length:R.length;else{if(E.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);A=E.maxLength,I&&(R=UB(e,R,A))}return u.push(x({},E,{format:S,maxLength:A,value:R,placeholder:uxe(e,t,n,E,S),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:k,startSeparator:u.length===0?a:"",endSeparator:"",modified:!1})),null};let m=10,v=r,y=e.expandFormat(r);for(;y!==v;)if(v=y,y=e.expandFormat(v),m-=1,m<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 g=y,C=dxe(e,g),w=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,E)=>E.length-S.length).join("|")})`,"g");let b="";for(let S=0;S<g.length;S+=1){const E=C.find(A=>A.start<=S&&A.end>=S),_=g[S],k=E!=null,I=`${b}${g.slice(S)}`,R=w.test(I);!k&&_.match(/([A-Za-z]+)/)&&R?(b=I.slice(0,w.lastIndex),S+=w.lastIndex-1):k&&(E==null?void 0:E.start)===S||(E==null?void 0:E.end)===S||(p(b),b="",u.length===0?a+=_:u[u.length-1].endSeparator+=_)}return p(b),u.map(S=>{const E=_=>{let k=_;return l&&k!==null&&k.includes(" ")&&(k=`${k}`),s==="spacious"&&["/",".","-"].includes(k)&&(k=` ${k} `),k};return S.startSeparator=E(S.startSeparator),S.endSeparator=E(S.endSeparator),S})},fxe=(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(JE(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},pxe=(e,t)=>{const r=e.map(o=>{const s=JE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`${r}`:r},hxe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=QE(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:KB(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=S0(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})}},mxe=(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=S0(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}},dD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},fD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>dD[i.type]-dD[l.type]).reduce((i,l)=>!s||l.modified?mxe(e,t,l,n,i):i,o),gxe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,vxe=(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],m=f===e.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},yxe=["value","referenceDate"],rs={emptyValue:null,getTodayValue:XE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=le(e,yxe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:lxe(r)},cleanValue:jCe,areValuesEqual:HCe,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)},bxe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:GB(o(t),r),getValueStrFromSections:pxe,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)},eI=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>x({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},tI=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=c.useMemo(()=>rs.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ti.day,timezone:o,getTodayDate:()=>XE(n,o,"date")}),[]);return e!=null?e:s},wxe=["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"],Cxe=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},_Ce,t)},xxe=oe(x0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Sxe=oe(LB,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Pxe=["hours","minutes"],kxe=c.forwardRef(function(t,n){const r=on(),o=je({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:m,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:S,minutesStep:E=1,shouldDisableClock:_,shouldDisableTime:k,showViewSwitcher:I,onChange:R,view:A,views:$=Pxe,openTo:L,onViewChange:B,focusedView:z,onFocusedViewChange:M,className:T,disabled:F,readOnly:j,timezone:D}=o,N=le(o,wxe),H=f!=null?f:eI(a),K=p!=null?p:u,{value:Y,handleValueChange:te,timezone:Q}=of({name:"TimeClock",timezone:D,value:m,defaultValue:v,onChange:R,valueManager:rs}),X=tI({value:Y,referenceDate:y,utils:r,props:o,timezone:Q}),J=ls(),se=Va(Q),{view:Z,setView:he,previousView:ne,nextView:re,setValueAndGoToNextView:me}=Xh({view:A,views:$,openTo:L,onViewChange:B,onChange:te,focusedView:z,onFocusedViewChange:M}),{meridiemMode:ce,handleMeridiemChange:Se}=YE(X,s,me),Ee=c.useCallback((pe,fe)=>{const de=Qh(g,r),be=fe==="hours"||fe==="minutes"&&$.includes("seconds"),_e=({start:Ge,end:Ve})=>!(w&&de(w,Ve)||C&&de(Ge,C)||b&&de(Ge,se)||S&&de(se,be?Ve:Ge)),Ne=(Ge,Ve=1)=>{if(Ge%Ve!==0||_!=null&&_(Ge,fe))return!1;if(k)switch(fe){case"hours":return!k(r.setHours(X,Ge),"hours");case"minutes":return!k(r.setMinutes(X,Ge),"minutes");case"seconds":return!k(r.setSeconds(X,Ge),"seconds");default:return!1}return!0};switch(fe){case"hours":{const Ge=bh(pe,ce,s),Ve=r.setHours(X,Ge),Ue=r.setSeconds(r.setMinutes(Ve,0),0),Le=r.setSeconds(r.setMinutes(Ve,59),59);return!_e({start:Ue,end:Le})||!Ne(Ge)}case"minutes":{const Ge=r.setMinutes(X,pe),Ve=r.setSeconds(Ge,0),Ue=r.setSeconds(Ge,59);return!_e({start:Ve,end:Ue})||!Ne(pe,E)}case"seconds":{const Ge=r.setSeconds(X,pe);return!_e({start:Ge,end:Ge})||!Ne(pe)}default:throw new Error("not supported")}},[s,X,g,C,ce,w,E,_,k,r,b,S,se,$]),ae=Kt(),Ie=c.useMemo(()=>{switch(Z){case"hours":{const pe=(fe,de)=>{const be=bh(fe,ce,s);me(r.setHours(X,be),de)};return{onChange:pe,viewValue:r.getHours(X),children:sxe({value:Y,utils:r,ampm:s,onChange:pe,getClockNumberText:J.hoursClockNumberText,isDisabled:fe=>F||Ee(fe,"hours"),selectedId:ae})}}case"minutes":{const pe=r.getMinutes(X),fe=(de,be)=>{me(r.setMinutes(X,de),be)};return{viewValue:pe,onChange:fe,children:aD({utils:r,value:pe,onChange:fe,getClockNumberText:J.minutesClockNumberText,isDisabled:de=>F||Ee(de,"minutes"),selectedId:ae})}}case"seconds":{const pe=r.getSeconds(X),fe=(de,be)=>{me(r.setSeconds(X,de),be)};return{viewValue:pe,onChange:fe,children:aD({utils:r,value:pe,onChange:fe,getClockNumberText:J.secondsClockNumberText,isDisabled:de=>F||Ee(de,"seconds"),selectedId:ae})}}default:throw new Error("You must provide the type for ClockView")}},[Z,r,Y,s,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,ce,me,X,Ee,ae,F]),ye=o,Me=Cxe(ye);return O.jsxs(xxe,x({ref:n,className:Ce(Me.root,T),ownerState:ye},N,{children:[O.jsx(exe,x({autoFocus:l!=null?l:!!z,ampmInClock:i&&$.includes("hours"),value:Y,type:Z,ampm:s,minutesStep:E,isTimeDisabled:Ee,meridiemMode:ce,handleMeridiemChange:Se,selectedId:ae,disabled:F,readOnly:j},Ie)),I&&O.jsx(Sxe,{className:Me.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>he(ne),isPreviousDisabled:!ne,previousLabel:J.openPreviousView,onGoToNext:()=>he(re),isNextDisabled:!re,nextLabel:J.openNextView,ownerState:ye})]}))});function Exe(e){return Ke("MuiDigitalClock",e)}const Ixe=We("MuiDigitalClock",["root","list","item"]),Mxe=["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"],_xe=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},Exe,t)},Txe=oe(x0,{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:NB})),$xe=oe(Qd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Rxe=oe(Pr,{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})`:lt(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})`:lt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Oxe=c.forwardRef(function(t,n){var r,o,s;const i=on(),l=c.useRef(null),a=Et(n,l),u=je({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:m,components:v,componentsProps:y,slots:g,slotProps:C,value:w,defaultValue:b,referenceDate:S,disableIgnoringDatePartForTimeValidation:E=!1,maxTime:_,minTime:k,disableFuture:I,disablePast:R,minutesStep:A=1,shouldDisableClock:$,shouldDisableTime:L,onChange:B,view:z,openTo:M,onViewChange:T,focusedView:F,onFocusedViewChange:j,className:D,disabled:N,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:te}=u,Q=le(u,Mxe),{value:X,handleValueChange:J,timezone:se}=of({name:"DigitalClock",timezone:te,value:w,defaultValue:b,onChange:B,valueManager:rs}),Z=ls(),he=Va(se),ne=c.useMemo(()=>x({},u,{alreadyRendered:!!l.current}),[u]),re=_xe(ne),me=(r=(o=g==null?void 0:g.digitalClockItem)!=null?o:v==null?void 0:v.DigitalClockItem)!=null?r:Rxe,ce=qt({elementType:me,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:y==null?void 0:y.digitalClockItem,ownerState:{},className:re.item}),Se=tI({value:X,referenceDate:S,utils:i,props:u,timezone:se}),Ee=Ye(pe=>J(pe,"finish","hours")),{setValueAndGoToNextView:ae}=Xh({view:z,views:K,openTo:M,onViewChange:T,onChange:Ee,focusedView:F,onFocusedViewChange:j}),Ie=Ye(pe=>{ae(pe,"finish")});c.useEffect(()=>{if(l.current===null)return;const pe=l.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!pe)return;const fe=pe.offsetTop;l.current.scrollTop=fe-4});const ye=c.useCallback(pe=>{const fe=Qh(E,i),de=()=>!(k&&fe(k,pe)||_&&fe(pe,_)||I&&fe(pe,he)||R&&fe(he,pe)),be=()=>i.getMinutes(pe)%A!==0||$!=null&&$(i.toJsDate(pe).getTime(),"hours")?!1:L?!L(pe,"hours"):!0;return!de()||!be()},[E,i,k,_,I,he,R,A,$,L]),Me=c.useMemo(()=>{const pe=i.startOfDay(Se);return[pe,...Array.from({length:Math.ceil(24*60/p)-1},(fe,de)=>i.addMinutes(pe,p*(de+1)))]},[Se,p,i]);return O.jsx(Txe,x({ref:a,className:Ce(re.root,D),ownerState:ne},Q,{children:O.jsx($xe,{autoFocusItem:m||!!F,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:re.list,children:Me.map(pe=>{if(Y&&ye(pe))return null;const fe=i.isEqual(pe,X);return O.jsx(me,x({onClick:()=>!H&&Ie(pe),selected:fe,disabled:N||ye(pe),disableRipple:H,role:"option","aria-disabled":H,"aria-selected":fe},ce,{children:i.format(pe,f?"fullTime12h":"fullTime24h")}),i.toISO(pe))})})}))});function Dxe(e){return Ke("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function Axe(e){return Ke("MuiMultiSectionDigitalClock",e)}const Lxe=We("MuiMultiSectionDigitalClock",["root","item"]),Fxe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Nxe=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},Axe,t)},Bxe=oe(Qd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:NB,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)"}})),zxe=oe(Pr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:up,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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})`:lt(e.palette.primary.main,e.palette.action.focusOpacity)}})),Vxe=c.forwardRef(function(t,n){var r;const o=c.useRef(null),s=Et(n,o),i=c.useRef(null),l=je({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:u,className:f,disabled:p,readOnly:m,items:v,active:y,slots:g,slotProps:C,skipDisabled:w}=l,b=le(l,Fxe),S=c.useMemo(()=>x({},l,{alreadyRendered:!!o.current}),[l]),E=Nxe(S),_=(r=g==null?void 0:g.digitalClockSectionItem)!=null?r:zxe;return c.useEffect(()=>{if(o.current===null)return;const k=o.current.querySelector('[role="option"][aria-selected="true"]');if(!k||i.current===k){i.current!==k&&(i.current=k);return}i.current=k,y&&a&&k.focus();const I=k.offsetTop;o.current.scrollTop=I-4}),O.jsx(Bxe,x({ref:s,className:Ce(E.root,f),ownerState:S,autoFocusItem:a&&y,role:"listbox"},b,{children:v.map(k=>{var I,R;if(w&&(I=k.isDisabled)!=null&&I.call(k,k.value))return null;const A=k.isSelected(k.value);return O.jsx(_,x({onClick:()=>!m&&u(k.value),selected:A,disabled:p||((R=k.isDisabled)==null?void 0:R.call(k,k.value)),disableRipple:m,role:"option","aria-disabled":m,"aria-label":k.ariaLabel,"aria-selected":A},C==null?void 0:C.digitalClockSectionItem,{children:k.label}),k.label)})}))}),jxe=({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 m=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const v=s(parseInt(m,10).toString());m=n.formatNumber(m),a.push({value:p,label:m,isSelected:u,isDisabled:o,ariaLabel:v})}return a},pD=({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())}})]},Hxe=["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"],Uxe=e=>{const{classes:t}=e;return Te({root:["root"]},Dxe,t)},Wxe=oe(x0,{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}`})),Gxe=c.forwardRef(function(t,n){const r=on(),o=je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:m,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:S,minutesStep:E=1,shouldDisableClock:_,shouldDisableTime:k,onChange:I,view:R,views:A=["hours","minutes"],openTo:$,onViewChange:L,focusedView:B,onFocusedViewChange:z,className:M,disabled:T,readOnly:F,skipDisabled:j=!1,timezone:D}=o,N=le(o,Hxe),{value:H,handleValueChange:K,timezone:Y}=of({name:"MultiSectionDigitalClock",timezone:D,value:m,defaultValue:v,onChange:I,valueManager:rs}),te=ls(),Q=Va(Y),X=c.useMemo(()=>x({hours:1,minutes:5,seconds:5},i),[i]),J=tI({value:H,referenceDate:y,utils:r,props:o,timezone:Y}),se=Ye((fe,de,be)=>K(fe,de,be)),Z=c.useMemo(()=>!s||!A.includes("hours")||A.includes("meridiem")?A:[...A,"meridiem"],[s,A]),{view:he,setValueAndGoToView:ne,focusedView:re}=Xh({view:R,views:Z,openTo:$,onViewChange:L,onChange:se,focusedView:B,onFocusedViewChange:z}),me=Ye(fe=>{ne(fe,null,"meridiem")}),{meridiemMode:ce,handleMeridiemChange:Se}=YE(J,s,me,"finish"),Ee=c.useCallback((fe,de)=>{const be=Qh(g,r),_e=de==="hours"||de==="minutes"&&Z.includes("seconds"),Ne=({start:Ve,end:Ue})=>!(w&&be(w,Ue)||C&&be(Ve,C)||b&&be(Ve,Q)||S&&be(Q,_e?Ue:Ve)),Ge=(Ve,Ue=1)=>{if(Ve%Ue!==0||_!=null&&_(Ve,de))return!1;if(k)switch(de){case"hours":return!k(r.setHours(J,Ve),"hours");case"minutes":return!k(r.setMinutes(J,Ve),"minutes");case"seconds":return!k(r.setSeconds(J,Ve),"seconds");default:return!1}return!0};switch(de){case"hours":{const Ve=bh(fe,ce,s),Ue=r.setHours(J,Ve),Le=r.setSeconds(r.setMinutes(Ue,0),0),ht=r.setSeconds(r.setMinutes(Ue,59),59);return!Ne({start:Le,end:ht})||!Ge(Ve)}case"minutes":{const Ve=r.setMinutes(J,fe),Ue=r.setSeconds(Ve,0),Le=r.setSeconds(Ve,59);return!Ne({start:Ue,end:Le})||!Ge(fe,E)}case"seconds":{const Ve=r.setSeconds(J,fe);return!Ne({start:Ve,end:Ve})||!Ge(fe)}default:throw new Error("not supported")}},[s,J,g,C,ce,w,E,_,k,r,b,S,Q,Z]),ae=Ye((fe,de)=>{const be=Z.indexOf(fe),_e=Z[be+1];ne(de,_e,fe)}),Ie=c.useCallback(fe=>{switch(fe){case"hours":return{onChange:de=>{const be=bh(de,ce,s);ae("hours",r.setHours(J,be))},items:jxe({now:Q,value:H,ampm:s,utils:r,isDisabled:de=>T||Ee(de,"hours"),timeStep:X.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:de=>{ae("minutes",r.setMinutes(J,de))},items:pD({value:r.getMinutes(J),isDisabled:de=>T||Ee(de,"minutes"),resolveLabel:de=>r.format(r.setMinutes(Q,de),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:te.minutesClockNumberText})};case"seconds":return{onChange:de=>{ae("seconds",r.setSeconds(J,de))},items:pD({value:r.getSeconds(J),isDisabled:de=>T||Ee(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(Q,de),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:te.secondsClockNumberText})};case"meridiem":{const de=dl(r,"am"),be=dl(r,"pm");return{onChange:Se,items:[{value:"am",label:de,isSelected:()=>!!H&&ce==="am",ariaLabel:de},{value:"pm",label:be,isSelected:()=>!!H&&ce==="pm",ariaLabel:be}]}}default:throw new Error(`Unknown view: ${fe} found.`)}},[Q,H,s,r,X.hours,X.minutes,X.seconds,te.hoursClockNumberText,te.minutesClockNumberText,te.secondsClockNumberText,ce,ae,J,T,Ee,Se]),ye=c.useMemo(()=>Z.reduce((fe,de)=>x({},fe,{[de]:Ie(de)}),{}),[Z,Ie]),Me=o,pe=Uxe(Me);return O.jsx(Wxe,x({ref:n,className:Ce(pe.root,M),ownerState:Me,role:"group"},N,{children:Object.entries(ye).map(([fe,de])=>O.jsx(Vxe,{items:de.items,onChange:de.onChange,active:he===fe,autoFocus:l!=null?l:re===fe,disabled:T,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:u,skipDisabled:j,"aria-label":te.selectViewText(fe)},fe))}))});function Kxe(e){return Ke("MuiPickersDay",e)}const Za=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),qxe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Yxe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:a}=e,u=i&&!l;return Te({root:["root",t&&!u&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Kxe,a)},YB=({theme:e,ownerState:t})=>x({},e.typography.caption,{width:wh,height:wh,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})`:lt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Za.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Za.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}},[`&.${Za.disabled}:not(.${Za.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Za.disabled}&.${Za.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${b0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Za.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),QB=(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]},Qxe=oe(ui,{name:"MuiPickersDay",slot:"Root",overridesResolver:QB})(YB),Xxe=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:QB})(({theme:e,ownerState:t})=>x({},YB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Yf=()=>{},Zxe=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:m,onFocus:v=Yf,onBlur:y=Yf,onKeyDown:g=Yf,onMouseDown:C=Yf,onMouseEnter:w=Yf,outsideCurrentMonth:b,selected:S=!1,showDaysOutsideCurrentMonth:E=!1,children:_,today:k=!1}=r,I=le(r,qxe),R=x({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:E,today:k}),A=Yxe(R),$=on(),L=c.useRef(null),B=Et(L,n);Nt(()=>{o&&!l&&!f&&!b&&L.current.focus()},[o,l,f,b]);const z=T=>{C(T),b&&T.preventDefault()},M=T=>{l||m(i),b&&T.currentTarget.focus(),p&&p(T)};return b&&!E?O.jsx(Xxe,{className:Ce(A.root,A.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):O.jsx(Qxe,x({className:Ce(A.root,s),ref:B,centerRipple:!0,disabled:l,tabIndex:S?0:-1,onKeyDown:T=>g(T,i),onFocus:T=>v(T,i),onBlur:T=>y(T,i),onMouseEnter:T=>w(T,i),onClick:M,onMouseDown:z},I,{ownerState:R,children:_||$.format(i,"dayOfMonth")}))}),Jxe=c.memo(Zxe);function XB(e,t,n,r){const{value:o,onError:s}=e,i=Wc(),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 eSe=e=>{const t=on(),n=ls(),r=Wc(),s=yn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:u,internalProps:f,internalProps:{value:p,defaultValue:m,referenceDate:v,onChange:y,format:g,formatDensity:C="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:S=!1,timezone:E}}=e,{timezone:_,value:k,handleValueChange:I}=ZE({timezone:E,value:p,defaultValue:m,onChange:y,valueManager:i}),R=c.useMemo(()=>hxe(t,_),[t,_]),A=c.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,J=>uD(t,_,n,g,J,C,S,s)),[l,g,n,s,S,t,C,_]),$=c.useMemo(()=>l.getValueStrFromSections(A(i.emptyValue),s),[l,A,i.emptyValue,s]),[L,B]=c.useState(()=>{const Q=A(k),X={sections:Q,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=ixe(Q),se=i.getInitialReferenceValue({referenceDate:v,value:k,utils:t,props:f,granularity:J,timezone:_});return x({},X,{referenceValue:se})}),[z,M]=Qr({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),T=Q=>{M(Q),b==null||b(Q),B(X=>x({},X,{selectedSectionQuery:null}))},F=c.useMemo(()=>{if(z==null)return null;if(z==="all")return{startIndex:0,endIndex:L.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof z=="number")return{startIndex:z,endIndex:z};if(typeof z=="string"){const Q=L.sections.findIndex(X=>X.type===z);return{startIndex:Q,endIndex:Q}}return z},[z,L.sections]),j=({value:Q,referenceValue:X,sections:J})=>{if(B(Z=>x({},Z,{sections:J,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,L.value,Q))return;const se={validationError:u({adapter:r,value:Q,props:x({},f,{value:Q,timezone:_})})};I(Q,se)},D=(Q,X)=>{const J=[...L.sections];return J[Q]=x({},J[Q],{value:X,modified:!0}),GB(J,s)},N=()=>{j({value:i.emptyValue,referenceValue:L.referenceValue,sections:A(i.emptyValue)})},H=()=>{if(F==null)return;const Q=L.sections[F.startIndex],X=l.getActiveDateManager(t,L,Q),se=X.getSections(L.sections).filter(re=>re.value!=="").length===(Q.value===""?0:1),Z=D(F.startIndex,""),he=se?null:t.date(new Date("")),ne=X.getNewValuesFromNewActiveDate(he);(he!=null&&!t.isValid(he))!=(X.date!=null&&!t.isValid(X.date))?j(x({},ne,{sections:Z})):B(re=>x({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Q=>{const X=(Z,he)=>{const ne=t.parse(Z,g);if(ne==null||!t.isValid(ne))return null;const re=uD(t,_,n,g,ne,C,S,s);return fD(t,_,ne,re,he,!1)},J=l.parseValueStr(Q,L.referenceValue,X),se=l.updateReferenceValue(t,J,L.referenceValue);j({value:J,referenceValue:se,sections:A(J,L.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:J})=>{J&&F&&F.startIndex<L.sections.length-1?T(F.startIndex+1):F&&F.startIndex!==F.endIndex&&T(F.startIndex);const se=l.getActiveDateManager(t,L,Q),Z=D(F.startIndex,X),he=se.getSections(Z),ne=fxe(t,he);let re,me;if(ne!=null&&t.isValid(ne)){const ce=fD(t,_,ne,he,se.referenceDate,!0);re=se.getNewValuesFromNewActiveDate(ce),me=!0}else re=se.getNewValuesFromNewActiveDate(ne),me=(ne!=null&&!t.isValid(ne))!=(se.date!=null&&!t.isValid(se.date));return me?j(x({},re,{sections:Z})):B(ce=>x({},ce,re,{sections:Z,tempValueStrAndroid:null}))},te=Q=>B(X=>x({},X,{tempValueStrAndroid:Q}));return c.useEffect(()=>{const Q=A(L.value);B(X=>x({},X,{sections:Q}))},[g,t.locale]),c.useEffect(()=>{let Q=!1;i.areValuesEqual(t,L.value,k)?Q=i.getTimezone(t,L.value)!==i.getTimezone(t,k):Q=!0,Q&&B(X=>x({},X,{value:k,referenceValue:l.updateReferenceValue(t,k,X.referenceValue),sections:A(k)}))},[k]),{state:L,selectedSectionIndexes:F,setSelectedSections:T,clearValue:N,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:te,sectionsValueBoundaries:R,placeholder:$,timezone:_}},tSe=5e3,wu=e=>e.saveQuery!=null,nSe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=on(),[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(),tSe);return()=>{window.clearTimeout(v)}}return()=>{}},[i,a]);const u=({keyPressed:v,sectionIndex:y},g,C)=>{const w=v.toLowerCase(),b=e[y];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===y){const E=`${i.value}${w}`,_=g(E,b);if(!wu(_))return l({sectionIndex:y,value:E,sectionType:b.type}),_}const S=g(w,b);return wu(S)&&!S.saveQuery?(a(),null):(l({sectionIndex:y,value:w,sectionType:b.type}),wu(S)?null:S)},f=v=>{const y=(w,b,S)=>{const E=b.filter(_=>_.toLowerCase().startsWith(S));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},g=(w,b,S,E)=>{const _=k=>HB(s,o,b.type,k);if(b.contentType==="letter")return y(b.format,_(b.format),w);if(S&&E!=null&&jB(s,S).contentType==="letter"){const k=_(S),I=y(S,k,w);return wu(I)?{saveQuery:!1}:x({},I,{sectionValue:E(I.sectionValue,k)})}return{saveQuery:!1}};return u(v,(w,b)=>{switch(b.type){case"month":{const S=E=>cD(s,E,s.formats.month,b.format);return g(w,b,s.formats.month,S)}case"weekDay":{const S=(E,_)=>_.indexOf(E).toString();return g(w,b,s.formats.weekday,S)}case"meridiem":return g(w,b);default:return{saveQuery:!1}}})},p=v=>{const y=(C,w)=>{const b=+`${C}`,S=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(b>S.maximum)return{saveQuery:!1};if(b<S.minimum)return{saveQuery:!0};const E=+`${C}0`>S.maximum||C.length===S.maximum.toString().length;return{sectionValue:WB(s,o,b,S,w),shouldGoToNextSection:E}};return u(v,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return y(C,w);if(w.type==="month"){const b=qB(s,o,"digit","month","MM"),S=y(C,{type:w.type,format:"MM",hasLeadingZerosInFormat:b,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wu(S))return S;const E=cD(s,S.sectionValue,"MM",w.format);return x({},S,{sectionValue:E})}if(w.type==="weekDay"){const b=y(C,w);if(wu(b))return b;const S=S0(s,o,w.format)[Number(b.sectionValue)-1];return x({},b,{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 rSe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const oSe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},py=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?py(t.shadowRoot):t:null},sSe="@media (pointer: fine)",iSe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],lSe=e=>{const t=on(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:u,sectionsValueBoundaries:f,placeholder:p,timezone:m}=eSe(e),{inputRef:v,internalProps:y,internalProps:{readOnly:g=!1,unstableFieldRef:C,minutesStep:w},forwardedProps:{onClick:b,onKeyDown:S,onFocus:E,onBlur:_,onMouseUp:k,onPaste:I,error:R,clearable:A,onClear:$,disabled:L},fieldValueManager:B,valueManager:z,validator:M}=e,T=le(e.forwardedProps,iSe),{applyCharacterEditing:F,resetCharacterQuery:j}=nSe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:u,timezone:m}),D=c.useRef(null),N=Et(v,D),H=c.useRef(void 0),Y=yn().direction==="rtl",te=c.useMemo(()=>vxe(n.sections,Y),[n.sections,Y]),Q=()=>{var pe;if(g){o(null);return}const fe=(pe=D.current.selectionStart)!=null?pe:0;let de;fe<=n.sections[0].startInInput||fe>=n.sections[n.sections.length-1].endInInput?de=1:de=n.sections.findIndex(_e=>_e.startInInput-_e.startSeparator.length>fe);const be=de===-1?n.sections.length-1:de-1;o(be)},X=Ye((pe,...fe)=>{pe.isDefaultPrevented()||(b==null||b(pe,...fe),Q())}),J=Ye(pe=>{k==null||k(pe),pe.preventDefault()}),se=Ye((...pe)=>{E==null||E(...pe);const fe=D.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!fe||fe!==D.current||r!=null||g||(fe.value.length&&Number(fe.selectionEnd)-Number(fe.selectionStart)===fe.value.length?o("all"):Q())})}),Z=Ye((...pe)=>{_==null||_(...pe),o(null)}),he=Ye(pe=>{if(I==null||I(pe),g){pe.preventDefault();return}const fe=pe.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const de=n.sections[r.startIndex],be=/^[a-zA-Z]+$/.test(fe),_e=/^[0-9]+$/.test(fe),Ne=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);if(de.contentType==="letter"&&be||de.contentType==="digit"&&_e||de.contentType==="digit-with-letter"&&Ne)return;if(be||_e){pe.preventDefault();return}}pe.preventDefault(),j(),a(fe)}),ne=Ye(pe=>{if(g)return;const fe=pe.target.value;if(fe===""){j(),s();return}const de=pe.nativeEvent.data,be=de&&de.length>1,_e=be?de:fe,Ne=Uu(_e);if(r==null||be){a(be?de:Ne);return}let Ge;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Ne.length===1)Ge=Ne;else{const Ve=Uu(B.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 ht=n.sections[r.startIndex];if(Ue<ht.start||Ve.length-Le-1>ht.end)return;const Pt=Ne.length-Ve.length+ht.end-Uu(ht.endSeparator||"").length;Ge=Ne.slice(ht.start+Uu(ht.startSeparator||"").length,Pt)}if(Ge.length===0){gxe()?u(_e):(j(),i());return}F({keyPressed:Ge,sectionIndex:r.startIndex})}),re=Ye(pe=>{switch(S==null||S(pe),!0){case(pe.key==="a"&&(pe.ctrlKey||pe.metaKey)):{pe.preventDefault(),o("all");break}case pe.key==="ArrowRight":{if(pe.preventDefault(),r==null)o(te.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const fe=te.neighbors[r.startIndex].rightIndex;fe!==null&&o(fe)}break}case pe.key==="ArrowLeft":{if(pe.preventDefault(),r==null)o(te.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const fe=te.neighbors[r.startIndex].leftIndex;fe!==null&&o(fe)}break}case pe.key==="Delete":{if(pe.preventDefault(),g)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),j();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(pe.key):{if(pe.preventDefault(),g||r==null)break;const fe=n.sections[r.startIndex],de=B.getActiveDateManager(t,n,fe),be=cxe(t,m,fe,pe.key,f,de.date,{minutesStep:w});l({activeSection:fe,newSectionValue:be,shouldGoToNextSection:!1});break}}});Nt(()=>{if(!D.current)return;if(r==null){D.current.scrollLeft&&(D.current.scrollLeft=0);return}const pe=n.sections[r.startIndex],fe=n.sections[r.endIndex];let de=pe.startInInput,be=fe.endInInput;if(r.shouldSelectBoundarySelectors&&(de-=pe.startSeparator.length,be+=fe.endSeparator.length),de!==D.current.selectionStart||be!==D.current.selectionEnd){const _e=D.current.scrollTop;D.current===py(document)&&D.current.setSelectionRange(de,be),D.current.scrollTop=_e}});const me=XB(x({},y,{value:n.value,timezone:m}),M,z.isSameError,z.defaultErrorState),ce=c.useMemo(()=>R!==void 0?R:z.hasError(me),[z,me,R]);c.useEffect(()=>{!ce&&!r&&j()},[n.referenceValue,r,ce]),c.useEffect(()=>(D.current&&D.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),c.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(j(),i())},[n.tempValueStrAndroid]);const Se=c.useMemo(()=>{var pe;return(pe=n.tempValueStrAndroid)!=null?pe:B.getValueStrFromSections(n.sections,Y)},[n.sections,B,n.tempValueStrAndroid,Y]),Ee=c.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ae=D.current&&D.current===py(document),Ie=z.areValuesEqual(t,n.value,z.emptyValue),ye=!ae&&Ie;c.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var pe,fe;const de=(pe=D.current.selectionStart)!=null?pe:0,be=(fe=D.current.selectionEnd)!=null?fe:0;if(de===0&&be===0)return null;const _e=de<=n.sections[0].startInInput?1:n.sections.findIndex(Ne=>Ne.startInInput-Ne.startSeparator.length>de);return _e===-1?n.sections.length-1:_e-1},setSelectedSections:pe=>o(pe)}));const Me=Ye((pe,...fe)=>{var de;pe.preventDefault(),$==null||$(pe,...fe),s(),D==null||(de=D.current)==null||de.focus(),o(0)});return x({placeholder:p,autoComplete:"off",disabled:!!L},T,{value:ye?"":Se,inputMode:Ee,readOnly:g,onClick:X,onFocus:se,onBlur:Z,onPaste:he,onChange:ne,onKeyDown:re,onMouseUp:J,onClear:Me,error:ce,ref:N,clearable:!!(A&&!Ie&&!g&&!L)})},ZB=({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=Fs(n.utils,e.minDate,n.defaultDates.minDate),p=Fs(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}},fS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],pS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],JB=["minDateTime","maxDateTime"],aSe=[...fS,...pS,...JB],e3=e=>aSe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),cSe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],uSe=(e,t)=>{const n=x({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return cSe.forEach(o),t==="date"?fS.forEach(o):t==="time"?pS.forEach(o):t==="date-time"&&(fS.forEach(o),pS.forEach(o),JB.forEach(o)),{forwardedProps:n,internalProps:r}},dSe=oe(zN)({[`& .${_p.container}`]:{outline:0},[`& .${_p.paper}`]:{outline:0,minWidth:w0}}),fSe=oe(VN)({"&:first-of-type":{padding:0}});function pSe(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:dSe,u=(n=i==null?void 0:i.mobileTransition)!=null?n:Kd;return O.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:O.jsx(fSe,{children:r})}))}function hSe(e){return Ke("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const mSe="@media (prefers-reduced-motion: reduce)",ld=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),hD=ld&&ld[1]?parseInt(ld[1],10):null,mD=ld&&ld[2]?parseInt(ld[2],10):null,gSe=hD&&hD<10||mD&&mD<13||!1,t3=()=>Ab(mSe,{defaultMatches:!1})||gSe,vSe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],ySe=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},hSe,t)},bSe=oe(Fa,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),wSe=oe(Vs,{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 CSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function xSe(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&&CSe(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 SSe=c.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:u}=e,f=le(e,vSe),p=x({},o,{placement:r}),m=qt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return O.jsx(n,x({},f,m,{onClick:v=>{var y;a(v),(y=m.onClick)==null||y.call(m,v)},onTouchStart:v=>{var y;u(v),(y=m.onTouchStart)==null||y.call(m,v)},ownerState:p,children:s}))});function PSe(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:m,role:v,placement:y,slots:g,slotProps:C,reduceAnimations:w}=s;c.useEffect(()=>{function N(H){m&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,m]);const b=c.useRef(null);c.useEffect(()=>{v==="tooltip"||u&&!u()||(m?b.current=py(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[m,v,u]);const[S,E,_]=xSe(m,f!=null?f:p),k=c.useRef(null),I=Et(k,a),R=Et(I,S),A=s,$=ySe(A),L=t3(),B=w!=null?w:L,z=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},M=((t=g==null?void 0:g.desktopTransition)!=null?t:B)?Kd:ah,T=(n=g==null?void 0:g.desktopTrapFocus)!=null?n:rk,F=(r=g==null?void 0:g.desktopPaper)!=null?r:wSe,j=(o=g==null?void 0:g.popper)!=null?o:bSe,D=qt({elementType:j,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:v,open:m,anchorEl:i,placement:y,onKeyDown:z},className:$.root,ownerState:s});return O.jsx(j,x({},D,{children:({TransitionProps:N,placement:H})=>O.jsx(T,x({open:m,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:v==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:O.jsx(M,x({},N,C==null?void 0:C.desktopTransition,{children:O.jsx(SSe,{PaperComponent:F,ownerState:A,popperPlacement:H,ref:R,onPaperClick:E,onPaperTouchStart:_,paperClasses:$.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function n3(e){return Ke("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const kSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},n3,t)},ESe=oe("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"})),ISe=oe("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"}}),MSe=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=kSe(u);return l?null:O.jsxs(ESe,{ref:n,className:Ce(f.root,s),ownerState:u,children:[O.jsx(qn,{color:"text.secondary",variant:"overline",id:a,children:i}),O.jsx(ISe,{className:f.content,ownerState:u,children:o})]})});function _Se(e){return Ke("MuiPickersToolbarText",e)}const gD=We("MuiPickersToolbarText",["root","selected"]),TSe=["className","selected","value"],$Se=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},_Se,t)},RSe=oe(qn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${gD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${gD.selected}`]:{color:(e.vars||e).palette.text.primary}})),r3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=le(r,TSe),l=$Se(r);return O.jsx(RSe,x({ref:n,className:Ce(o,l.root),component:"span"},i,{children:s}))}),OSe=["align","className","selected","typographyClassName","value","variant","width"],DSe=e=>{const{classes:t}=e;return Te({root:["root"]},n3,t)},ASe=oe(Yn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ul=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=le(r,OSe),m=DSe(r);return O.jsx(ASe,x({variant:"text",ref:n,className:Ce(s,m.root)},f?{sx:{width:f}}:{},p,{children:O.jsx(r3,{align:o,className:l,variant:u,value:a,selected:i})}))}),LSe=({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}},FSe=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},NSe=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},BSe=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},zSe=({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:m}=e,{current:v}=c.useRef(a),{current:y}=c.useRef(l!==void 0),g=on(),C=Wc(),[w,b]=Qr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:E}=LSe(e),[_,k]=c.useState(()=>{let se;return l!==void 0?se=l:v!==void 0?se=v:se=t.emptyValue,{draft:se,lastPublishedValue:se,lastCommittedValue:se,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),{timezone:I,handleValueChange:R}=ZE({timezone:m,value:l,defaultValue:v,onChange:i,valueManager:t});XB(x({},e,{value:_.draft,timezone:I}),o,t.isSameError,t.defaultErrorState);const A=Ye(se=>{const Z={action:se,dateState:_,hasChanged:me=>!t.areValuesEqual(g,se.value,me),isControlled:y,closeOnSelect:u},he=FSe(Z),ne=NSe(Z),re=BSe(Z);if(k(me=>x({},me,{draft:se.value,lastPublishedValue:he?se.value:me.lastPublishedValue,lastCommittedValue:ne?se.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0})),he){const ce={validationError:se.name==="setValueFromField"?se.context.validationError:o({adapter:C,value:se.value,props:x({},e,{value:se.value,timezone:I})})};se.name==="setValueFromShortcut"&&se.shortcut!=null&&(ce.shortcut=se.shortcut),R(se.value,ce)}ne&&s&&s(se.value),re&&E(!1)});if(l!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(g,_.lastControlledValue,l))){const se=t.areValuesEqual(g,_.draft,l);k(Z=>x({},Z,{lastControlledValue:l},se?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const $=Ye(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=Ye(()=>{A({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),B=Ye(()=>{A({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),z=Ye(()=>{A({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),M=Ye(()=>{A({value:t.getTodayValue(g,I,n),name:"setValueFromAction",pickerAction:"today"})}),T=Ye(()=>E(!0)),F=Ye(()=>E(!1)),j=Ye((se,Z="partial")=>A({name:"setValueFromView",value:se,selectionState:Z})),D=Ye((se,Z,he)=>A({name:"setValueFromShortcut",value:se,changeImportance:Z!=null?Z:"accept",shortcut:he})),N=Ye((se,Z)=>A({name:"setValueFromField",value:se,context:Z})),H=Ye(se=>{b(se),p==null||p(se)}),K={onClear:$,onAccept:L,onDismiss:B,onCancel:z,onSetToday:M,onOpen:T,onClose:F},Y={value:_.draft,onChange:N,selectedSections:w,onSelectedSectionsChange:H},te=c.useMemo(()=>t.cleanValue(g,_.draft),[g,t,_.draft]),Q={value:te,onChange:j,onClose:F,open:S,onSelectedSectionsChange:H},J=x({},K,{value:te,onChange:j,onSelectShortcut:D,isValid:se=>{const Z=o({adapter:C,value:se,props:x({},e,{value:se,timezone:I})});return!t.hasError(Z)}});return{open:S,fieldProps:Y,viewProps:Q,layoutProps:J,actions:K}},VSe=["className","sx"],jSe=({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:m,viewRenderers:v,timezone:y}=e,g=le(e,VSe),{view:C,setView:w,defaultView:b,focusedView:S,setFocusedView:E,setValueAndGoToNextView:_}=Xh({view:void 0,views:u,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:k,viewModeLookup:I}=c.useMemo(()=>u.reduce((M,T)=>{let F;return m?F="field":v[T]!=null?F="UI":F="field",M.viewModeLookup[T]=F,F==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[m,v,u]),R=c.useMemo(()=>u.reduce((M,T)=>v[T]!=null&&Od(T)?M+1:M,0),[v,u]),A=I[C],$=Ye(()=>A==="UI"),[L,B]=c.useState(A==="UI"?C:null);return L!==C&&I[C]==="UI"&&B(C),Nt(()=>{A==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Nt(()=>{if(!i)return;let M=C;A==="field"&&L!=null&&(M=L),M!==b&&I[M]==="UI"&&I[b]==="UI"&&(M=b),M!==C&&w(M),E(M,!0)},[i]),{hasUIView:k,shouldRestoreFocus:$,layoutProps:{views:u,view:L,onViewChange:w},renderCurrentView:()=>{if(L==null)return null;const M=v[L];return M==null?null:M(x({},g,n,t,{views:u,timezone:y,onChange:_,view:L,onViewChange:w,focusedView:S,onFocusedViewChange:E,showViewSwitcher:R>1,timeViewsCount:R}))}}};function vD(){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 HSe=(e,t)=>{const[n,r]=c.useState(vD);return Nt(()=>{const s=()=>{r(vD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),rSe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},USe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=HSe(n.views,o);return{layoutProps:x({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},o3=(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))}};o3(["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 s3=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=zSe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=jSe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=USe({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 i3(e){return Ke("MuiPickersLayout",e)}const oC=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),WSe=["onAccept","onClear","onCancel","onSetToday","actions"];function GSe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=le(e,WSe),l=ls();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(u=>{switch(u){case"clear":return O.jsx(Yn,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return O.jsx(Yn,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return O.jsx(Yn,{onClick:t,children:l.okButtonLabel},u);case"today":return O.jsx(Yn,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return O.jsx(Vre,x({},i,{children:a}))}const KSe=["items","changeImportance","isLandscape","onChange","isValid"],qSe=["getValue"];function YSe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=le(e,KSe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,u=le(l,qSe);const f=a({isValid:o});return{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)}});return O.jsx(Nh,x({dense:!0,sx:[{maxHeight:C0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>O.jsx(fk,{children:O.jsx(kb,x({},l))},l.label))}))}function QSe(e){return e.view!==null}const XSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},i3,t)},ZSe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:u,onViewChange:f,value:p,onChange:m,onSelectShortcut:v,isValid:y,isLandscape:g,disabled:C,readOnly:w,children:b,components:S,componentsProps:E,slots:_,slotProps:k}=e,I=_!=null?_:eI(S),R=k!=null?k:E,A=XSe(e),$=(t=I==null?void 0:I.actionBar)!=null?t:GSe,L=qt({elementType:$,externalSlotProps:R==null?void 0:R.actionBar,additionalProps:{onAccept:o,onClear:s,onCancel:i,onSetToday:l,actions:r==="desktop"?[]:["cancel","accept"],className:A.actionBar},ownerState:x({},e,{wrapperVariant:r})}),B=O.jsx($,x({},L)),z=I==null?void 0:I.toolbar,M=qt({elementType:z,externalSlotProps:R==null?void 0:R.toolbar,additionalProps:{isLandscape:g,onChange:m,value:p,view:a,onViewChange:f,views:u,disabled:C,readOnly:w,className:A.toolbar},ownerState:x({},e,{wrapperVariant:r})}),T=QSe(M)&&z?O.jsx(z,x({},M)):null,F=b,j=I==null?void 0:I.tabs,D=a&&j?O.jsx(j,x({view:a,onViewChange:f},R==null?void 0:R.tabs)):null,N=(n=I==null?void 0:I.shortcuts)!=null?n:YSe,H=qt({elementType:N,externalSlotProps:R==null?void 0:R.shortcuts,additionalProps:{isValid:y,isLandscape:g,onChange:v,className:A.shortcuts},ownerState:{isValid:y,isLandscape:g,onChange:v,className:A.shortcuts,wrapperVariant:r}}),K=a&&N?O.jsx(N,x({},H)):null;return{toolbar:T,content:F,tabs:D,actionBar:B,shortcuts:K}},JSe=ZSe,ePe=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},i3,n)},l3=oe("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",[`& .${oC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${oC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${oC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));l3.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 tPe=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),a3=function(t){const n=je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=JSe(n),{sx:a,className:u,isLandscape:f,ref:p,wrapperVariant:m}=n,v=n,y=ePe(v);return O.jsxs(l3,{ref:p,sx:a,className:Ce(u,y.root),ownerState:v,children:[f?l:r,f?r:l,O.jsx(tPe,{className:y.contentWrapper,children:m==="desktop"?O.jsxs(c.Fragment,{children:[o,s]}):O.jsxs(c.Fragment,{children:[s,o]})}),i]})},nPe=({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,m=e.utils.dateWithTimezone(void 0,p),v=Qh(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,m)):return"disableFuture";case!!(u&&e.utils.isBefore(t,m)):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}},nI=({props:e,value:t,adapter:n})=>{const r=ZB({adapter:n,value:t,props:e});return r!==null?r:nPe({adapter:n,value:t,props:e})},rPe=e=>Ke("MuiPickersSlideTransition",e),bs=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),oPe=["children","className","reduceAnimations","slideDirection","transKey","classes"],sPe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,rPe,t)},iPe=oe(tk,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${bs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${bs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${bs.slideEnterActive}`]:t.slideEnterActive},{[`.${bs.slideExit}`]:t.slideExit},{[`.${bs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${bs["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},[`& .${bs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${bs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${bs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${bs.slideExit}`]:{transform:"translate(0%)"},[`& .${bs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${bs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function lPe(e){const t=je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=le(t,oPe),l=sPe(t),a=yn();if(o)return O.jsx("div",{className:Ce(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return O.jsx(iPe,{className:Ce(l.root,r),childFactory:f=>c.cloneElement(f,{classNames:u}),role:"presentation",children:O.jsx(aZ,x({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:u},i,{children:n}),s)})}const c3=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Wc();return c.useCallback(u=>ZB({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])},aPe=e=>Ke("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const cPe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],uPe=["ownerState"],dPe=e=>{const{classes:t}=e;return Te({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},aPe,t)},u3=(wh+b0*2)*6,fPe=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pPe=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),hPe=oe(qn,{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})),mPe=oe(qn,{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})),gPe=oe(qn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>x({},e.typography.caption,{width:wh,height:wh,padding:0,margin:`0 ${b0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),vPe=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:u3}),yPe=oe(lPe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:u3}),bPe=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),wPe=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${b0}px 0`,display:"flex",justifyContent:"center"});function CPe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:u,isViewFocused:f}=e,p=le(e,cPe);const{disabled:m,disableHighlightToday:v,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:g,components:C,componentsProps:w,slots:b,slotProps:S,timezone:E}=o,_=on(),k=Va(E),I=i!==null&&_.isSameDay(s,i),R=l.some(j=>_.isSameDay(j,s)),A=_.isSameDay(s,k),$=(t=(n=b==null?void 0:b.day)!=null?n:C==null?void 0:C.Day)!=null?t:Jxe,L=qt({elementType:$,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:w==null?void 0:w.day,additionalProps:x({disableHighlightToday:v,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:y,"data-timestamp":_.toJsDate(s).valueOf()},p),ownerState:x({},o,{day:s,selected:R})}),B=le(L,uPe),z=c.useMemo(()=>m||a(s),[m,a,s]),M=c.useMemo(()=>_.getMonth(s)!==u,[_,s,u]),T=c.useMemo(()=>{const j=_.startOfMonth(_.setMonth(s,u));return g?_.isSameDay(s,_.startOfWeek(j)):_.isSameDay(s,j)},[u,s,g,_]),F=c.useMemo(()=>{const j=_.endOfMonth(_.setMonth(s,u));return g?_.isSameDay(s,_.endOfWeek(j)):_.isSameDay(s,j)},[u,s,g,_]);return O.jsx($,x({},B,{day:s,disabled:z,autoFocus:f&&I,today:A,outsideCurrentMonth:M,isFirstVisibleCell:T,isLastVisibleCell:F,selected:R,tabIndex:I?0:-1,"aria-selected":R,"aria-current":A?"date":void 0}))}function xPe(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:m=()=>O.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:g,disableFuture:C,minDate:w,maxDate:b,shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:_,dayOfWeekFormatter:k,hasFocus:I,onFocusedViewChange:R,gridLabelId:A,displayWeekNumber:$,fixedWeekNumber:L,autoFocus:B,timezone:z}=t,M=Va(z),T=on(),F=dPe(t),D=yn().direction==="rtl",N=k||((ye,Me)=>T.format(Me,"weekdayShort").charAt(0).toUpperCase()),H=c3({shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:_,minDate:w,maxDate:b,disablePast:g,disableFuture:C,timezone:z}),K=ls(),[Y,te]=Qr({name:"DayCalendar",state:"hasFocus",controlled:I,default:B!=null?B:!1}),[Q,X]=c.useState(()=>i||M),J=Ye(ye=>{f||a(ye)}),se=ye=>{H(ye)||(n(ye),X(ye),R==null||R(!0),te(!0))},Z=Ye((ye,Me)=>{switch(ye.key){case"ArrowUp":se(T.addDays(Me,-7)),ye.preventDefault();break;case"ArrowDown":se(T.addDays(Me,7)),ye.preventDefault();break;case"ArrowLeft":{const pe=T.addDays(Me,D?1:-1),fe=T.addMonths(Me,D?1:-1),de=Op({utils:T,date:pe,minDate:D?pe:T.startOfMonth(fe),maxDate:D?T.endOfMonth(fe):pe,isDateDisabled:H,timezone:z});se(de||pe),ye.preventDefault();break}case"ArrowRight":{const pe=T.addDays(Me,D?-1:1),fe=T.addMonths(Me,D?-1:1),de=Op({utils:T,date:pe,minDate:D?T.startOfMonth(fe):pe,maxDate:D?pe:T.endOfMonth(fe),isDateDisabled:H,timezone:z});se(de||pe),ye.preventDefault();break}case"Home":se(T.startOfWeek(Me)),ye.preventDefault();break;case"End":se(T.endOfWeek(Me)),ye.preventDefault();break;case"PageUp":se(T.addMonths(Me,1)),ye.preventDefault();break;case"PageDown":se(T.addMonths(Me,-1)),ye.preventDefault();break}}),he=Ye((ye,Me)=>se(Me)),ne=Ye((ye,Me)=>{Y&&T.isSameDay(Q,Me)&&(R==null||R(!1))}),re=T.getMonth(o),me=c.useMemo(()=>s.filter(ye=>!!ye).map(ye=>T.startOfDay(ye)),[T,s]),ce=re,Se=c.useMemo(()=>c.createRef(),[ce]),Ee=T.startOfWeek(M),ae=c.useMemo(()=>{const ye=T.startOfMonth(o),Me=T.endOfMonth(o);return H(Q)||T.isAfterDay(Q,Me)||T.isBeforeDay(Q,ye)?Op({utils:T,date:Q,minDate:ye,maxDate:Me,disablePast:g,disableFuture:C,isDateDisabled:H,timezone:z}):Q},[o,C,g,Q,H,T,z]),Ie=c.useMemo(()=>{const ye=T.setTimezone(o,z),Me=T.getWeekArray(ye);let pe=T.addMonths(ye,1);for(;L&&Me.length<L;){const fe=T.getWeekArray(pe),de=T.isSameDay(Me[Me.length-1][0],fe[0][0]);fe.slice(de?1:0).forEach(be=>{Me.length<L&&Me.push(be)}),pe=T.addMonths(pe,1)}return Me},[o,L,T,z]);return O.jsxs(fPe,{role:"grid","aria-labelledby":A,className:F.root,children:[O.jsxs(pPe,{role:"row",className:F.header,children:[$&&O.jsx(mPe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),WCe(T,M).map((ye,Me)=>{var pe;const fe=T.format(ye,"weekdayShort");return O.jsx(hPe,{variant:"caption",role:"columnheader","aria-label":T.format(T.addDays(Ee,Me),"weekday"),className:F.weekDayLabel,children:(pe=N==null?void 0:N(fe,ye))!=null?pe:fe},fe+Me.toString())})]}),l?O.jsx(vPe,{className:F.loadingContainer,children:m()}):O.jsx(yPe,x({transKey:ce,onExited:u,reduceAnimations:p,slideDirection:v,className:Ce(r,F.slideTransition)},y,{nodeRef:Se,children:O.jsx(bPe,{ref:Se,role:"rowgroup",className:F.monthContainer,children:Ie.map((ye,Me)=>O.jsxs(wPe,{role:"row",className:F.weekContainer,"aria-rowindex":Me+1,children:[$&&O.jsx(gPe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(T.getWeekNumber(ye[0])),children:K.calendarWeekNumberText(T.getWeekNumber(ye[0]))}),ye.map((pe,fe)=>O.jsx(CPe,{parentProps:t,day:pe,selectedDays:me,focusableDay:ae,onKeyDown:Z,onFocus:he,onBlur:ne,onDaySelect:J,isDateDisabled:H,currentMonthNumber:re,isViewFocused:Y,"aria-colindex":fe+1},pe.toString()))]},`week-${ye[0]}`))})}))]})}const SPe=(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")}},PPe=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:m}=e,v=Va(m),y=on(),g=c.useRef(SPe(!!f,i,y)).current,C=c.useMemo(()=>{let R=null;return n?R=n:r&&(R=y.startOfMonth(r)),rs.getInitialReferenceValue({value:t,utils:y,timezone:m,props:e,referenceDate:R,granularity:ti.day})},[]),[w,b]=c.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y.isValid(t)?t:v,currentMonth:y.startOfMonth(C),slideDirection:"left"}),S=c.useCallback(R=>{b(x({type:"changeMonth"},R)),u&&u(R.newMonth)},[u]),E=c.useCallback(R=>{const A=R;y.isSameMonth(A,w.currentMonth)||S({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,w.currentMonth)?"left":"right"})},[w.currentMonth,S,y]),_=c3({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:m}),k=c.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),I=Ye((R,A)=>{_(R)||b({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:A})});return{referenceDate:C,calendarState:w,changeMonth:E,changeFocusedDay:I,isDateDisabled:_,onMonthSwitchingAnimationEnd:k,handleChangeMonth:S}},kPe=["ownerState"],EPe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,u,f,p,m,v;const y=ls(),g=(a=(u=o==null?void 0:o.clearButton)!=null?u:i==null?void 0:i.ClearButton)!=null?a:xr,C=qt({elementType:g,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),w=le(C,kPe),b=(p=(m=o==null?void 0:o.clearIcon)!=null?m:i==null?void 0:i.ClearIcon)!=null?p:mCe,S=qt({elementType:b,externalSlotProps:(v=s==null?void 0:s.clearIcon)!=null?v:l==null?void 0:l.clearIcon,ownerState:{}}),E=x({},n,{endAdornment:e?O.jsxs(c.Fragment,{children:[O.jsx(Cl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:O.jsx(g,x({},w,{onClick:r,children:O.jsx(b,x({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=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:E,fieldProps:_}},IPe=e=>{var t,n,r,o,s,i,l,a;const u=on(),f=Yh(),m=((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:m,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Fs(u,(s=e.minDateTime)!=null?s:e.minDate,f.minDate),maxDate:Fs(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})},MPe=({props:e,inputRef:t})=>{const n=IPe(e),{forwardedProps:r,internalProps:o}=uSe(n,"date-time");return lSe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:rs,fieldValueManager:bxe,validator:nI,valueType:"date-time"})},_Pe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],TPe=["inputRef"],$Pe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],d3=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:m}=i,v=le(i,_Pe),y=i,g=(r=(o=u==null?void 0:u.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Na,C=qt({elementType:g,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:v,ownerState:y}),{inputRef:w}=C,b=le(C,TPe);b.inputProps=x({},m,b.inputProps),b.InputProps=x({},p,b.InputProps);const S=MPe({props:b,inputRef:w}),{ref:E,onPaste:_,onKeyDown:k,inputMode:I,readOnly:R,clearable:A,onClear:$}=S,L=le(S,$Pe),{InputProps:B,fieldProps:z}=EPe({onClear:$,clearable:A,fieldProps:L,InputProps:L.InputProps,slots:u,slotProps:f,components:l,componentsProps:a});return O.jsx(g,x({ref:n},z,{InputProps:x({},B,{readOnly:R}),inputProps:x({},L.inputProps,{inputMode:I,onPaste:_,onKeyDown:k,ref:E})}))}),RPe=e=>Ke("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const OPe=e=>{const{classes:t}=e;return Te({root:["root"]},RPe,t)},DPe=oe(tk,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function f3(e){const t=je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=OPe(t),l=yn();return o?n:O.jsx(DPe,{className:Ce(i.root,r),children:O.jsx(Kd,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},s)})}function APe(e){return Ke("MuiPickersMonth",e)}const wg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),LPe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],FPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},APe,r)},NPe=oe("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"})),BPe=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${wg.disabled}`]:t.disabled},{[`&.${wg.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})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${wg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${wg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),zPe=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:m,"aria-current":v,"aria-label":y}=n,g=le(n,LPe),C=c.useRef(null),w=FPe(n);return Nt(()=>{if(r){var b;(b=C.current)==null||b.focus()}},[r]),O.jsx(NPe,x({className:w.root,ownerState:n},g,{children:O.jsx(BPe,{ref:C,disabled:s,type:"button",role:"radio",tabIndex:s?-1:a,"aria-current":v,"aria-checked":i,"aria-label":y,onClick:b=>u(b,l),onKeyDown:b=>f(b,l),onFocus:b=>p(b,l),onBlur:b=>m(b,l),className:w.monthButton,ownerState:n,children:o})}))});function VPe(e){return Ke("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const jPe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],HPe=e=>{const{classes:t}=e;return Te({root:["root"]},VPe,t)};function UPe(e,t){const n=on(),r=Yh(),o=je({props:e,name:t});return x({disableFuture:!1,disablePast:!1},o,{minDate:Fs(n,o.minDate,r.minDate),maxDate:Fs(n,o.maxDate,r.maxDate)})}const WPe=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:w0,boxSizing:"border-box"}),GPe=c.forwardRef(function(t,n){const r=UPe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:v,shouldDisableMonth:y,readOnly:g,disableHighlightToday:C,autoFocus:w=!1,onMonthFocus:b,hasFocus:S,onFocusedViewChange:E,monthsPerRow:_=3,timezone:k,gridLabelId:I}=r,R=le(r,jPe),{value:A,handleValueChange:$,timezone:L}=of({name:"MonthCalendar",timezone:k,value:s,defaultValue:i,onChange:v,valueManager:rs}),B=Va(L),z=Wd(),M=on(),T=c.useMemo(()=>rs.getInitialReferenceValue({value:A,utils:M,props:r,timezone:L,referenceDate:l,granularity:ti.month}),[]),F=r,j=HPe(F),D=c.useMemo(()=>M.getMonth(B),[M,B]),N=c.useMemo(()=>A!=null?M.getMonth(A):C?null:M.getMonth(T),[A,M,C,T]),[H,K]=c.useState(()=>N||D),[Y,te]=Qr({name:"MonthCalendar",state:"hasFocus",controlled:S,default:w!=null?w:!1}),Q=Ye(re=>{te(re),E&&E(re)}),X=c.useCallback(re=>{const me=M.startOfMonth(f&&M.isAfter(B,m)?B:m),ce=M.startOfMonth(u&&M.isBefore(B,p)?B:p),Se=M.startOfMonth(re);return M.isBefore(Se,me)||M.isAfter(Se,ce)?!0:y?y(Se):!1},[u,f,p,m,B,y,M]),J=Ye((re,me)=>{if(g)return;const ce=M.setMonth(A!=null?A:T,me);$(ce)}),se=Ye(re=>{X(M.setMonth(A!=null?A:T,re))||(K(re),Q(!0),b&&b(re))});c.useEffect(()=>{K(re=>N!==null&&re!==N?N:re)},[N]);const Z=Ye((re,me)=>{switch(re.key){case"ArrowUp":se((12+me-3)%12),re.preventDefault();break;case"ArrowDown":se((12+me+3)%12),re.preventDefault();break;case"ArrowLeft":se((12+me+(z.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":se((12+me+(z.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),he=Ye((re,me)=>{se(me)}),ne=Ye((re,me)=>{H===me&&Q(!1)});return O.jsx(WPe,x({ref:n,className:Ce(j.root,o),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:QE(M,A!=null?A:T).map(re=>{const me=M.getMonth(re),ce=M.format(re,"monthShort"),Se=M.format(re,"month"),Ee=me===N,ae=a||X(re);return O.jsx(zPe,{selected:Ee,value:me,onClick:J,onKeyDown:Z,autoFocus:Y&&me===H,disabled:ae,tabIndex:me===H?0:-1,onFocus:he,onBlur:ne,"aria-current":D===me?"date":void 0,"aria-label":Se,monthsPerRow:_,children:ce},ce)})}))});function KPe(e){return Ke("MuiPickersYear",e)}const Cg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),qPe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],YPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},KPe,r)},QPe=oe("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"})),XPe=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Cg.disabled}`]:t.disabled},{[`&.${Cg.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})`:lt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Cg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Cg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ZPe=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:m,onBlur:v,"aria-current":y}=n,g=le(n,qPe),C=c.useRef(null),w=YPe(n);return c.useEffect(()=>{r&&C.current.focus()},[r]),O.jsx(QPe,x({className:Ce(w.root,o),ownerState:n},g,{children:O.jsx(XPe,{ref:C,disabled:i,type:"button",role:"radio",tabIndex:i?-1:u,"aria-current":y,"aria-checked":l,onClick:b=>f(b,a),onKeyDown:b=>p(b,a),onFocus:b=>m(b,a),onBlur:b=>v(b,a),className:w.yearButton,ownerState:n,children:s})}))});function JPe(e){return Ke("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const eke=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],tke=e=>{const{classes:t}=e;return Te({root:["root"]},JPe,t)};function nke(e,t){var n;const r=on(),o=Yh(),s=je({props:e,name:t});return x({disablePast:!1,disableFuture:!1},s,{yearsPerRow:(n=s.yearsPerRow)!=null?n:3,minDate:Fs(r,s.minDate,o.minDate),maxDate:Fs(r,s.maxDate,o.maxDate)})}const rke=oe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:w0,maxHeight:MCe,boxSizing:"border-box",position:"relative"}),oke=c.forwardRef(function(t,n){const r=nke(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:v,onChange:y,readOnly:g,shouldDisableYear:C,disableHighlightToday:w,onYearFocus:b,hasFocus:S,onFocusedViewChange:E,yearsPerRow:_,timezone:k,gridLabelId:I}=r,R=le(r,eke),{value:A,handleValueChange:$,timezone:L}=of({name:"YearCalendar",timezone:k,value:i,defaultValue:l,onChange:y,valueManager:rs}),B=Va(L),z=Wd(),M=on(),T=c.useMemo(()=>rs.getInitialReferenceValue({value:A,utils:M,props:r,timezone:L,referenceDate:a,granularity:ti.year}),[]),F=r,j=tke(F),D=c.useMemo(()=>M.getYear(B),[M,B]),N=c.useMemo(()=>A!=null?M.getYear(A):w?null:M.getYear(T),[A,M,w,T]),[H,K]=c.useState(()=>N||D),[Y,te]=Qr({name:"YearCalendar",state:"hasFocus",controlled:S,default:o!=null?o:!1}),Q=Ye(ce=>{te(ce),E&&E(ce)}),X=c.useCallback(ce=>{if(p&&M.isBeforeYear(ce,B)||f&&M.isAfterYear(ce,B)||v&&M.isBeforeYear(ce,v)||m&&M.isAfterYear(ce,m))return!0;if(!C)return!1;const Se=M.startOfYear(ce);return C(Se)},[f,p,m,v,B,C,M]),J=Ye((ce,Se)=>{if(g)return;const Ee=M.setYear(A!=null?A:T,Se);$(Ee)}),se=Ye(ce=>{X(M.setYear(A!=null?A:T,ce))||(K(ce),Q(!0),b==null||b(ce))});c.useEffect(()=>{K(ce=>N!==null&&ce!==N?N:ce)},[N]);const Z=Ye((ce,Se)=>{switch(ce.key){case"ArrowUp":se(Se-_),ce.preventDefault();break;case"ArrowDown":se(Se+_),ce.preventDefault();break;case"ArrowLeft":se(Se+(z.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":se(Se+(z.direction==="ltr"?1:-1)),ce.preventDefault();break}}),he=Ye((ce,Se)=>{se(Se)}),ne=Ye((ce,Se)=>{H===Se&&Q(!1)}),re=c.useRef(null),me=Et(n,re);return c.useEffect(()=>{if(o||re.current===null)return;const ce=re.current.querySelector('[tabindex="0"]');if(!ce)return;const Se=ce.offsetHeight,Ee=ce.offsetTop,ae=re.current.clientHeight,Ie=re.current.scrollTop,ye=Ee+Se;Se>ae||Ee<Ie||(re.current.scrollTop=ye-ae/2-Se/2)},[o]),O.jsx(rke,x({ref:me,className:Ce(j.root,s),ownerState:F,role:"radiogroup","aria-labelledby":I},R,{children:M.getYearRange(v,m).map(ce=>{const Se=M.getYear(ce),Ee=Se===N,ae=u||X(ce);return O.jsx(ZPe,{selected:Ee,value:Se,onClick:J,onKeyDown:Z,autoFocus:Y&&Se===H,disabled:ae,tabIndex:Se===H?0:-1,onFocus:he,onBlur:ne,"aria-current":D===Se?"date":void 0,yearsPerRow:_,children:M.format(ce,"year")},M.format(ce,"year"))})}))}),ske=e=>Ke("MuiPickersCalendarHeader",e),ike=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),lke=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],ake=["ownerState"],cke=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},ske,t)},uke=oe("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}),dke=oe("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})),fke=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),pke=oe(xr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>x({marginRight:"auto"},e.view==="year"&&{[`.${ike.switchViewIcon}`]:{transform:"rotate(180deg)"}})),hke=oe(cCe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),mke=c.forwardRef(function(t,n){var r,o,s,i;const l=ls(),a=on(),u=je({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:m,currentMonth:v,disabled:y,disableFuture:g,disablePast:C,maxDate:w,minDate:b,onMonthChange:S,onViewChange:E,view:_,reduceAnimations:k,views:I,labelId:R,className:A,timezone:$}=u,L=le(u,lke),B=u,z=cke(u),M=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:m==null?void 0:m.SwitchViewButton)!=null?r:pke,T=qt({elementType:M,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(_)},ownerState:B,className:z.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:m==null?void 0:m.SwitchViewIcon)!=null?s:hke,j=qt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:z.switchViewIcon}),D=le(j,ake),N=()=>S(a.addMonths(v,1),"left"),H=()=>S(a.addMonths(v,-1),"right"),K=ECe(v,{disableFuture:g,maxDate:w,timezone:$}),Y=ICe(v,{disablePast:C,minDate:b,timezone:$}),te=()=>{if(!(I.length===1||!E||y))if(I.length===2)E(I.find(Q=>Q!==_)||I[0]);else{const Q=I.indexOf(_)!==0?0:1;E(I[Q])}};return I.length===1&&I[0]==="year"?null:O.jsxs(uke,x({},L,{ownerState:B,className:Ce(A,z.root),ref:n,children:[O.jsxs(dke,{role:"presentation",onClick:te,ownerState:B,"aria-live":"polite",className:z.labelContainer,children:[O.jsx(f3,{reduceAnimations:k,transKey:a.format(v,"monthAndYear"),children:O.jsx(fke,{id:R,ownerState:B,className:z.label,children:a.format(v,"monthAndYear")})}),I.length>1&&!y&&O.jsx(M,x({},T,{children:O.jsx(F,x({},D))}))]}),O.jsx(Kd,{in:_==="day",children:O.jsx(LB,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),gke=e=>Ke("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const vke=["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"],yke=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},gke,t)};function bke(e,t){var n,r,o,s,i,l,a;const u=on(),f=Yh(),p=t3(),m=je({props:e,name:t});return x({},m,{loading:(n=m.loading)!=null?n:!1,disablePast:(r=m.disablePast)!=null?r:!1,disableFuture:(o=m.disableFuture)!=null?o:!1,openTo:(s=m.openTo)!=null?s:"day",views:(i=m.views)!=null?i:["year","day"],reduceAnimations:(l=m.reduceAnimations)!=null?l:p,renderLoading:(a=m.renderLoading)!=null?a:()=>O.jsx("span",{children:"..."}),minDate:Fs(u,m.minDate,f.minDate),maxDate:Fs(u,m.maxDate,f.maxDate)})}const wke=oe(x0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:C0}),Cke=oe(f3,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),p3=c.forwardRef(function(t,n){var r,o,s;const i=on(),l=Kt(),a=bke(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:f,value:p,defaultValue:m,referenceDate:v,disableFuture:y,disablePast:g,defaultCalendarMonth:C,onChange:w,onYearChange:b,onMonthChange:S,reduceAnimations:E,shouldDisableDate:_,shouldDisableMonth:k,shouldDisableYear:I,view:R,views:A,openTo:$,className:L,disabled:B,readOnly:z,minDate:M,maxDate:T,disableHighlightToday:F,focusedView:j,onFocusedViewChange:D,showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Y,componentsProps:te,slots:Q,slotProps:X,loading:J,renderLoading:se,displayWeekNumber:Z,yearsPerRow:he,monthsPerRow:ne,timezone:re}=a,me=le(a,vke),{value:ce,handleValueChange:Se,timezone:Ee}=of({name:"DateCalendar",timezone:re,value:p,defaultValue:m,onChange:w,valueManager:rs}),{view:ae,setView:Ie,focusedView:ye,setFocusedView:Me,goToNextView:pe,setValueAndGoToNextView:fe}=Xh({view:R,views:A,openTo:$,onChange:Se,onViewChange:f,autoFocus:u,focusedView:j,onFocusedViewChange:D}),{referenceDate:de,calendarState:be,changeFocusedDay:_e,changeMonth:Ne,handleChangeMonth:Ge,isDateDisabled:Ve,onMonthSwitchingAnimationEnd:Ue}=PPe({value:ce,defaultCalendarMonth:C,referenceDate:v,reduceAnimations:E,onMonthChange:S,minDate:M,maxDate:T,shouldDisableDate:_,disablePast:g,disableFuture:y,timezone:Ee}),Le=B&&ce||M,ht=B&&ce||T,Zt=`${l}-grid-label`,Pt=ye!==null,wt=(r=(o=Q==null?void 0:Q.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:mke,Xe=qt({elementType:wt,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:te==null?void 0:te.calendarHeader,additionalProps:{views:A,view:ae,currentMonth:be.currentMonth,onViewChange:Ie,onMonthChange:(gt,Rt)=>Ge({newMonth:gt,direction:Rt}),minDate:Le,maxDate:ht,disabled:B,disablePast:g,disableFuture:y,reduceAnimations:E,timezone:Ee,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Oe=Ye(gt=>{const Rt=i.startOfMonth(gt),vr=i.endOfMonth(gt),ir=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(M,Rt)?Rt:M,maxDate:i.isAfter(T,vr)?vr:T,disablePast:g,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;ir?(fe(ir,"finish"),S==null||S(Rt)):(pe(),Ne(Rt)),_e(ir,!0)}),qe=Ye(gt=>{const Rt=i.startOfYear(gt),vr=i.endOfYear(gt),ir=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(M,Rt)?Rt:M,maxDate:i.isAfter(T,vr)?vr:T,disablePast:g,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;ir?(fe(ir,"finish"),b==null||b(ir)):(pe(),Ne(Rt)),_e(ir,!0)}),mt=Ye(gt=>Se(gt&&dS(i,gt,ce!=null?ce:de),"finish"));c.useEffect(()=>{ce!=null&&i.isValid(ce)&&Ne(ce)},[ce]);const vt=a,Tt=yke(vt),Yt={disablePast:g,disableFuture:y,maxDate:T,minDate:M},Qt={disableHighlightToday:F,readOnly:z,disabled:B,timezone:Ee,gridLabelId:Zt},Pn=c.useRef(ae);c.useEffect(()=>{Pn.current!==ae&&(ye===Pn.current&&Me(ae,!0),Pn.current=ae)},[ye,Me,ae]);const bn=c.useMemo(()=>[ce],[ce]);return O.jsxs(wke,x({ref:n,className:Ce(Tt.root,L),ownerState:vt},me,{children:[O.jsx(wt,x({},Xe)),O.jsx(Cke,{reduceAnimations:E,className:Tt.viewTransitionContainer,transKey:ae,ownerState:vt,children:O.jsxs("div",{children:[ae==="year"&&O.jsx(oke,x({},Yt,Qt,{value:ce,onChange:qe,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Me("year",gt),yearsPerRow:he,referenceDate:de})),ae==="month"&&O.jsx(GPe,x({},Yt,Qt,{hasFocus:Pt,className:L,value:ce,onChange:Oe,shouldDisableMonth:k,onFocusedViewChange:gt=>Me("month",gt),monthsPerRow:ne,referenceDate:de})),ae==="day"&&O.jsx(xPe,x({},be,Yt,Qt,{onMonthSwitchingAnimationEnd:Ue,onFocusedDayChange:_e,reduceAnimations:E,selectedDays:bn,onSelectedDaysChange:mt,shouldDisableDate:_,shouldDisableMonth:k,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Me("day",gt),showDaysOutsideCurrentMonth:N,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:Z,components:Y,componentsProps:te,slots:Q,slotProps:X,loading:J,renderLoading:se}))]})})]}))}),xke=["props","getOpenDialogAriaText"],Ske=["ownerState"],Pke=["ownerState"],kke=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=le(e,xke);const{slots:u,slotProps:f,className:p,sx:m,format:v,formatDensity:y,timezone:g,label:C,inputRef:w,readOnly:b,disabled:S,autoFocus:E,localeText:_,reduceAnimations:k}=i,I=on(),R=c.useRef(null),A=c.useRef(null),$=Kt(),L=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:B,actions:z,hasUIView:M,layoutProps:T,renderCurrentView:F,shouldRestoreFocus:j,fieldProps:D}=s3(x({},a,{props:i,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=(r=u.inputAdornment)!=null?r:Cl,H=qt({elementType:N,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),K=le(H,Ske),Y=(o=u.openPickerButton)!=null?o:xr,te=qt({elementType:Y,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:S||b,onClick:B?z.onClose:z.onOpen,"aria-label":l(D.value,I),edge:K.position},ownerState:i}),Q=le(te,Pke),X=u.openPickerIcon,J=u.field,se=qt({elementType:J,externalSlotProps:f==null?void 0:f.field,additionalProps:x({},D,L&&{id:$},{readOnly:b,disabled:S,className:p,sx:m,format:v,formatDensity:y,timezone:g,label:C,autoFocus:E&&!i.open,focused:B?!0:void 0}),ownerState:i});M&&(se.InputProps=x({},se.InputProps,{ref:A,[`${K.position}Adornment`]:O.jsx(N,x({},K,{children:O.jsx(Y,x({},Q,{children:O.jsx(X,x({},f==null?void 0:f.openPickerIcon))}))}))}));const Z=x({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},se.slots),he=(s=u.layout)!=null?s:a3,ne=Et(R,se.inputRef,w);let re=$;L&&(C?re=`${$}-label`:re=void 0);const me=x({},f,{toolbar:x({},f==null?void 0:f.toolbar,{titleId:$}),popper:x({"aria-labelledby":re},f==null?void 0:f.popper)});return{renderPicker:()=>O.jsxs(qE,{localeText:_,children:[O.jsx(J,x({},se,{slots:Z,slotProps:me,inputRef:ne})),O.jsx(PSe,x({role:"dialog",placement:"bottom-start",anchorEl:A.current},z,{open:B,slots:u,slotProps:me,shouldRestoreFocus:j,reduceAnimations:k,children:O.jsx(he,x({},T,me==null?void 0:me.layout,{slots:u,slotProps:me,children:F()}))}))]})}},ad=({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:m,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:S,monthsPerRow:E,onYearChange:_,yearsPerRow:k,defaultCalendarMonth:I,components:R,componentsProps:A,slots:$,slotProps:L,loading:B,renderLoading:z,disableHighlightToday:M,readOnly:T,disabled:F,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:D,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te})=>O.jsx(p3,{view:e,onViewChange:t,views:n.filter(id),focusedView:r&&id(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:S,monthsPerRow:E,onYearChange:_,yearsPerRow:k,defaultCalendarMonth:I,components:R,componentsProps:A,slots:$,slotProps:L,loading:B,renderLoading:z,disableHighlightToday:M,readOnly:T,disabled:F,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:D,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te}),Eke=["props","getOpenDialogAriaText"],Ike=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=le(e,Eke);const{slots:l,slotProps:a,className:u,sx:f,format:p,formatDensity:m,timezone:v,label:y,inputRef:g,readOnly:C,disabled:w,localeText:b}=o,S=on(),E=c.useRef(null),_=Kt(),k=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:I,actions:R,layoutProps:A,renderCurrentView:$,fieldProps:L}=s3(x({},i,{props:o,inputRef:E,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),B=l.field,z=qt({elementType:B,externalSlotProps:a==null?void 0:a.field,additionalProps:x({},L,k&&{id:_},!(w||C)&&{onClick:R.onOpen,onKeyDown:oSe(R.onOpen)},{readOnly:C!=null?C:!0,disabled:w,className:u,sx:f,format:p,formatDensity:m,timezone:v,label:y}),ownerState:o});z.inputProps=x({},z.inputProps,{"aria-label":s(L.value,S)});const M=x({textField:l.textField},z.slots),T=(r=l.layout)!=null?r:a3,F=Et(E,z.inputRef,g);let j=_;k&&(y?j=`${_}-label`:j=void 0);const D=x({},a,{toolbar:x({},a==null?void 0:a.toolbar,{titleId:_}),mobilePaper:x({"aria-labelledby":j},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>O.jsxs(qE,{localeText:b,children:[O.jsx(B,x({},z,{slots:M,slotProps:D,inputRef:F})),O.jsx(pSe,x({},R,{open:I,slots:l,slotProps:D,children:O.jsx(T,x({},A,D==null?void 0:D.layout,{slots:l,slotProps:D,children:$()}))}))]})}},sC=({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:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:S,components:E,componentsProps:_,slots:k,slotProps:I,readOnly:R,disabled:A,sx:$,autoFocus:L,showViewSwitcher:B,disableIgnoringDatePartForTimeValidation:z,timezone:M})=>O.jsx(kxe,{view:e,onViewChange:t,focusedView:n&&Od(n)?n:null,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:S,components:E,componentsProps:_,slots:k,slotProps:I,readOnly:R,disabled:A,sx:$,autoFocus:L,showViewSwitcher:B,disableIgnoringDatePartForTimeValidation:z,timezone:M}),Mke=({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:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,components:S,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:M})=>O.jsx(Oxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,components:S,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeStep:B==null?void 0:B.minutes,skipDisabled:z,timezone:M}),_ke=({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:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,components:S,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:M})=>O.jsx(Gxe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Od),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:v,maxTime:y,shouldDisableTime:g,shouldDisableClock:C,minutesStep:w,ampm:b,components:S,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:R,sx:A,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:B,skipDisabled:z,timezone:M}),Tke=["views","format"],h3=(e,t)=>{let{views:n,format:r}=t,o=le(t,Tke);if(r)return r;const s=[],i=[];if(n.forEach(u=>{Od(u)?i.push(u):s.push(u)}),i.length===0)return iD(e,x({views:s},o),!1);if(s.length===0)return sD(e,x({views:i},o));const l=sD(e,x({views:i},o));return`${iD(e,x({views:s},o),!1)} ${l}`},$ke=(e,t,n)=>n?t.filter(r=>!Yl(r)||r==="hours"):e?[...t,"meridiem"]:t,Rke=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Oke({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=x({hours:1,minutes:5,seconds:5},n),i=Rke(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:$ke(t,r,i)}}function Dke(e){return Ke("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const Ake=e=>id(e)?"date":"time",Lke=e=>e==="date"?"day":"hours",Fke=e=>{const{classes:t}=e;return Te({root:["root"]},Dke,t)},Nke=oe(gk,{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}`,[`& .${Kg.indicator}`]:{bottom:"auto",top:0}}})),Bke=function(t){const n=je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=O.jsx(pCe,{}),onViewChange:o,timeIcon:s=O.jsx(hCe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667}=n,a=ls(),u=Fke(n),f=(p,m)=>{o(Lke(m))};return l?null:O.jsxs(Nke,{ownerState:n,variant:"fullWidth",value:Ake(i),onChange:f,className:u.root,children:[O.jsx(Hv,{value:"date","aria-label":a.dateTableLabel,icon:O.jsx(c.Fragment,{children:r})}),O.jsx(Hv,{value:"time","aria-label":a.timeTableLabel,icon:O.jsx(c.Fragment,{children:s})})]})};function zke(e){return Ke("MuiDateTimePickerToolbar",e)}const iC=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Vke=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],jke=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 Te(o,zke,t)},m3=oe(MSe,{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"}));m3.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 Hke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),g3=oe("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`})}),Uke=oe("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"}));g3.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 yD=oe(r3,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Wke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${iC.ampmLabel}`]:t.ampmLabel},{[`&.${iC.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%"},{[`& .${iC.ampmLabel}`]:{fontSize:17}}));function Gke(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:m,readOnly:v,toolbarVariant:y="mobile"}=t,g=le(t,Vke),C=t,w=on(),{meridiemMode:b,handleMeridiemChange:S}=YE(o,n,s),E=!!(n&&!r),_=y==="desktop",k=ls(),I=yn(),R=jke(x({},C,{theme:I})),A=L=>n?w.format(L,"hours12h"):w.format(L,"hours24h"),$=c.useMemo(()=>o?u?w.formatByString(o,u):w.format(o,"shortDate"):f,[o,u,f,w]);return O.jsxs(m3,x({toolbarTitle:k.dateTimePickerToolbarTitle,isLandscape:l,className:R.root},g,{ownerState:C,children:[O.jsxs(Hke,{className:R.dateContainer,ownerState:C,children:[p.includes("year")&&O.jsx(Ul,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?w.format(o,"year"):"–"}),p.includes("day")&&O.jsx(Ul,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:$})]}),O.jsxs(g3,{className:R.timeContainer,ownerState:C,children:[O.jsxs(Uke,{className:R.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&O.jsx(Ul,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?A(o):"--"}),p.includes("minutes")&&O.jsxs(c.Fragment,{children:[O.jsx(yD,{variant:_?"h5":"h3",value:":",className:R.separator,ownerState:C}),O.jsx(Ul,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?w.format(o,"minutes"):"--"})]}),p.includes("seconds")&&O.jsxs(c.Fragment,{children:[O.jsx(yD,{variant:_?"h5":"h3",value:":",className:R.separator,ownerState:C}),O.jsx(Ul,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?w.format(o,"seconds"):"--"})]})]}),E&&!_&&O.jsxs(Wke,{className:R.ampmSelection,ownerState:C,children:[O.jsx(Ul,{variant:"subtitle2",selected:b==="am",typographyClassName:R.ampmLabel,value:dl(w,"am"),onClick:v?void 0:()=>S("am"),disabled:m}),O.jsx(Ul,{variant:"subtitle2",selected:b==="pm",typographyClassName:R.ampmLabel,value:dl(w,"pm"),onClick:v?void 0:()=>S("pm"),disabled:m})]}),n&&_&&O.jsx(Ul,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&b?dl(w,b):"--",width:up})]})]}))}function v3(e,t){var n,r,o,s,i,l,a,u,f,p,m;const v=on(),y=Yh(),g=je({props:e,name:t}),C=(n=g.ampm)!=null?n:v.is12HourCycleInCurrentLocale(),w=c.useMemo(()=>{var E;return((E=g.localeText)==null?void 0:E.toolbarTitle)==null?g.localeText:x({},g.localeText,{dateTimePickerToolbarTitle:g.localeText.toolbarTitle})},[g.localeText]),b=(r=g.slots)!=null?r:eI(g.components),S=(o=g.slotProps)!=null?o:g.componentsProps;return x({},g,SCe({views:g.views,openTo:g.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:w,orientation:(s=g.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=g.disableIgnoringDatePartForTimeValidation)!=null?i:!!(g.minDateTime||g.maxDateTime||g.disablePast||g.disableFuture),disableFuture:(l=g.disableFuture)!=null?l:!1,disablePast:(a=g.disablePast)!=null?a:!1,minDate:Fs(v,(u=g.minDateTime)!=null?u:g.minDate,y.minDate),maxDate:Fs(v,(f=g.maxDateTime)!=null?f:g.maxDate,y.maxDate),minTime:(p=g.minDateTime)!=null?p:g.minTime,maxTime:(m=g.maxDateTime)!=null?m:g.maxTime,slots:x({toolbar:Gke,tabs:Bke},b),slotProps:x({},S,{toolbar:x({ampm:C},S==null?void 0:S.toolbar)})})}const Kke=oe("div")({display:"flex",margin:"0 auto"}),Ja=({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:m,minDate:v,minTime:y,maxDate:g,maxTime:C,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:S,shouldDisableTime:E,shouldDisableClock:_,reduceAnimations:k,minutesStep:I,ampm:R,onMonthChange:A,monthsPerRow:$,onYearChange:L,yearsPerRow:B,defaultCalendarMonth:z,components:M,componentsProps:T,slots:F,slotProps:j,loading:D,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timeViewsCount:ce,shouldRenderTimeInASingleColumn:Se})=>{var Ee,ae;const Ie=!!((Ee=Sb((ae=j==null?void 0:j.actionBar)!=null?ae:T==null?void 0:T.actionBar,{}))!=null&&(Ee=Ee.actions)!=null&&Ee.length),ye={view:Yl(e)?e:"hours",onViewChange:t,focusedView:r&&Yl(r)?r:null,onFocusedViewChange:o,views:n.filter(Yl),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minTime:y,maxTime:C,shouldDisableTime:E,shouldDisableClock:_,minutesStep:I,ampm:R,components:M,componentsProps:T,slots:F,slotProps:j,readOnly:K,disabled:Y,autoFocus:J,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:he};return O.jsxs(c.Fragment,{children:[O.jsxs(Kke,{children:[O.jsx(p3,{view:id(e)?e:"day",onViewChange:t,views:n.filter(id),focusedView:r&&id(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:m,minDate:v,maxDate:g,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:S,reduceAnimations:k,onMonthChange:A,monthsPerRow:$,onYearChange:L,yearsPerRow:B,defaultCalendarMonth:z,components:M,componentsProps:T,slots:F,slotProps:j,loading:D,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he}),ce>0&&O.jsxs(c.Fragment,{children:[O.jsx(Pd,{orientation:"vertical"}),Se?Mke(x({},ye,{view:"hours",views:["hours"],focusedView:r&&Yl(r)?"hours":null,sx:x({width:"auto",[`&.${Ixe.root}`]:{maxHeight:C0}},Array.isArray(X)?X:[X])})):_ke(x({},ye,{view:Yl(e)?e:"hours",views:n.filter(Yl),focusedView:r&&Yl(r)?r:null,sx:x({borderBottom:0,width:"auto",[`.${Lxe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ie&&O.jsx(Pd,{})]})},y3=c.forwardRef(function(t,n){var r,o,s,i,l,a,u;const f=ls(),p=on(),m=v3(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:v,thresholdToRenderTimeInASingleColumn:y,views:g,timeSteps:C}=Oke(m),w=!m.viewRenderers||Object.keys(m.viewRenderers).length===0,b=w?{day:Ja,month:Ja,year:Ja,hours:Ja,minutes:Ja,seconds:Ja,meridiem:Ja}:x({day:ad,month:ad,year:ad,hours:null,minutes:null,seconds:null,meridiem:null},m.viewRenderers),S=(r=m.ampmInClock)!=null?r:!0,E=w?["accept"]:[],_=x({},m,{viewRenderers:b,format:h3(p,m),views:g,yearsPerRow:(o=m.yearsPerRow)!=null?o:4,ampmInClock:S,timeSteps:C,thresholdToRenderTimeInASingleColumn:y,shouldRenderTimeInASingleColumn:v,slots:x({field:d3,openPickerIcon:fCe},m.slots),slotProps:x({},m.slotProps,{field:I=>{var R;return x({},Sb((R=m.slotProps)==null?void 0:R.field,I),e3(m),{ref:n})},toolbar:x({hidden:!0,ampmInClock:S,toolbarVariant:w?"desktop":"mobile"},(s=m.slotProps)==null?void 0:s.toolbar),tabs:x({hidden:!0},(i=m.slotProps)==null?void 0:i.tabs),actionBar:x({actions:E},(l=m.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:k}=kke({props:_,valueManager:rs,valueType:"date-time",getOpenDialogAriaText:(a=(u=_.localeText)==null?void 0:u.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:nI});return k()});y3.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:AF,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 b3=c.forwardRef(function(t,n){var r,o,s,i,l;const a=ls(),u=on(),f=v3(t,"MuiMobileDateTimePicker"),p=x({day:ad,month:ad,year:ad,hours:sC,minutes:sC,seconds:sC},f.viewRenderers),m=(r=f.ampmInClock)!=null?r:!1,v=x({},f,{viewRenderers:p,format:h3(u,f),ampmInClock:m,slots:x({field:d3},f.slots),slotProps:x({},f.slotProps,{field:g=>{var C;return x({},Sb((C=f.slotProps)==null?void 0:C.field,g),e3(f),{ref:n})},toolbar:x({hidden:!1,ampmInClock:m},(o=f.slotProps)==null?void 0:o.toolbar),tabs:x({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:y}=Ike({props:v,valueManager:rs,valueType:"date-time",getOpenDialogAriaText:(i=(l=v.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:nI});return y()});b3.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:AF,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 qke=["desktopModeMediaQuery"],Yke=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=sSe}=r,s=le(r,qke);return Ab(o,{defaultMatches:!0})?O.jsx(y3,x({ref:n},s)):O.jsx(b3,x({ref:n},s))});var w3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",u="day",f="week",p="month",m="quarter",v="year",y="date",g="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,b={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(M){var T=["th","st","nd","rd"],F=M%100;return"["+M+(T[(F-20)%10]||T[F]||T[0])+"]"}},S=function(M,T,F){var j=String(M);return!j||j.length>=T?M:""+Array(T+1-j.length).join(F)+M},E={s:S,z:function(M){var T=-M.utcOffset(),F=Math.abs(T),j=Math.floor(F/60),D=F%60;return(T<=0?"+":"-")+S(j,2,"0")+":"+S(D,2,"0")},m:function M(T,F){if(T.date()<F.date())return-M(F,T);var j=12*(F.year()-T.year())+(F.month()-T.month()),D=T.clone().add(j,p),N=F-D<0,H=T.clone().add(j+(N?-1:1),p);return+(-(j+(F-D)/(N?D-H:H-D))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:p,y:v,w:f,d:u,D:y,h:a,m:l,s:i,ms:s,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},_="en",k={};k[_]=b;var I="$isDayjsObject",R=function(M){return M instanceof B||!(!M||!M[I])},A=function M(T,F,j){var D;if(!T)return _;if(typeof T=="string"){var N=T.toLowerCase();k[N]&&(D=N),F&&(k[N]=F,D=N);var H=T.split("-");if(!D&&H.length>1)return M(H[0])}else{var K=T.name;k[K]=T,D=K}return!j&&D&&(_=D),D||!j&&_},$=function(M,T){if(R(M))return M.clone();var F=typeof T=="object"?T:{};return F.date=M,F.args=arguments,new B(F)},L=E;L.l=A,L.i=R,L.w=function(M,T){return $(M,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var B=function(){function M(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[I]=!0}var T=M.prototype;return T.parse=function(F){this.$d=function(j){var D=j.date,N=j.utc;if(D===null)return new Date(NaN);if(L.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()},T.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()},T.$utils=function(){return L},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(F,j){var D=$(F);return this.startOf(j)<=D&&D<=this.endOf(j)},T.isAfter=function(F,j){return $(F)<this.startOf(j)},T.isBefore=function(F,j){return this.endOf(j)<$(F)},T.$g=function(F,j,D){return L.u(F)?this[j]:this.set(D,F)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(F,j){var D=this,N=!!L.u(j)||j,H=L.p(F),K=function(he,ne){var re=L.w(D.$u?Date.UTC(D.$y,ne,he):new Date(D.$y,ne,he),D);return N?re:re.endOf(u)},Y=function(he,ne){return L.w(D.toDate()[he].apply(D.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),D)},te=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 se=this.$locale().weekStart||0,Z=(te<se?te+7:te)-se;return K(N?X-Z:X+(6-Z),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()}},T.endOf=function(F){return this.startOf(F,!1)},T.$set=function(F,j){var D,N=L.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+(j-this.$W):j;if(N===p||N===v){var te=this.clone().set(y,1);te.$d[K](Y),te.init(),this.$d=te.set(y,Math.min(this.$D,te.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},T.set=function(F,j){return this.clone().$set(F,j)},T.get=function(F){return this[L.p(F)]()},T.add=function(F,j){var D,N=this;F=Number(F);var H=L.p(j),K=function(Q){var X=$(N);return L.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,te=this.$d.getTime()+F*Y;return L.w(te,this)},T.subtract=function(F,j){return this.add(-1*F,j)},T.format=function(F){var j=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var N=F||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),K=this.$H,Y=this.$m,te=this.$M,Q=D.weekdays,X=D.months,J=D.meridiem,se=function(ne,re,me,ce){return ne&&(ne[re]||ne(j,N))||me[re].slice(0,ce)},Z=function(ne){return L.s(K%12||12,ne,"0")},he=J||function(ne,re,me){var ce=ne<12?"AM":"PM";return me?ce.toLowerCase():ce};return N.replace(w,function(ne,re){return re||function(me){switch(me){case"YY":return String(j.$y).slice(-2);case"YYYY":return L.s(j.$y,4,"0");case"M":return te+1;case"MM":return L.s(te+1,2,"0");case"MMM":return se(D.monthsShort,te,X,3);case"MMMM":return se(X,te);case"D":return j.$D;case"DD":return L.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return se(D.weekdaysMin,j.$W,Q,2);case"ddd":return se(D.weekdaysShort,j.$W,Q,3);case"dddd":return Q[j.$W];case"H":return String(K);case"HH":return L.s(K,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return he(K,Y,!0);case"A":return he(K,Y,!1);case"m":return String(Y);case"mm":return L.s(Y,2,"0");case"s":return String(j.$s);case"ss":return L.s(j.$s,2,"0");case"SSS":return L.s(j.$ms,3,"0");case"Z":return H}return null}(ne)||H.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(F,j,D){var N,H=this,K=L.p(j),Y=$(F),te=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return L.m(H,Y)};switch(K){case v:N=X()/12;break;case p:N=X();break;case m:N=X()/3;break;case f:N=(Q-te)/6048e5;break;case u:N=(Q-te)/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:L.a(N)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return k[this.$L]},T.locale=function(F,j){if(!F)return this.$L;var D=this.clone(),N=A(F,j,!0);return N&&(D.$L=N),D},T.clone=function(){return L.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},M}(),z=B.prototype;return $.prototype=z,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",u],["$M",p],["$y",v],["$D",y]].forEach(function(M){z[M[1]]=function(T){return this.$g(T,M[0],M[1])}}),$.extend=function(M,T){return M.$i||(M(T,B,$),M.$i=!0),$},$.locale=A,$.isDayjs=R,$.unix=function(M){return $(1e3*M)},$.en=k[_],$.Ls=k,$.p={},$})})(w3);var Qke=w3.exports;const $r=di(Qke);function Xke(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=Ft(s,["onChange","error","helperText"]);return c.createElement(ze,{},c.createElement(Yke,st(xe({},Qb(r,i=>i&&i instanceof Date?$r(i):i!=null?i:null)),{sx:xe({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&c.createElement(qd,{error:t},n))}function xh(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 m=c.useMemo(()=>(r||[]).map((w,b)=>ffe(xe({},w),w.hasOwnProperty("id")?{$idx:b}:{id:b})),[JSON.stringify(r)]),v={fields:n.map(_=>{var k=_,{$width:w,$column:b,$type:S}=k,E=Ft(k,["$width","$column","$type"]);var I;return et.defaults(E,(I=bD[S])==null?void 0:I.field)})};i==null||i({isEqual:H4});const[y,g]=c.useState();return c.createElement(c.Fragment,{},e&&c.createElement(YN,{sx:{ml:1}},e),t&&c.createElement(qd,{},t),c.createElement(ze,xe({},u),c.createElement($B,{rows:m,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var S,E;const b=(S=bD[w.$type])==null?void 0:S.column;return xe(xe(xe({field:w.k,headerName:(E=w.headerName)!=null?E:typeof w.label=="string"?w.label:n5(w.k),disableColumnMenu:!0},b),w.$width?{[w.$width>=8?"width":"flex"]:w.$width}:!(b!=null&&b.width)&&!(b!=null&&b.flex)&&{flex:1}),w.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const w="Add";return c.createElement(c.Fragment,{},c.createElement(mn,{icon:zE,title:w,size:"small",onClick:b=>uh({form:v,title:w}).then(S=>{if(!S)return;const E=(r==null?void 0:r.slice())||[];a?E.unshift(S):E.push(S),C(E,b)})}),y!==void 0&&c.createElement(mn,{icon:DB,title:"Undo",size:"small",onClick:b=>C(y,b)}))},getActions({row:w}){const{$idx:b=w.id}=w,S="Modify";return[c.createElement(yg,{icon:c.createElement(jE),label:S,title:S,onClick(E){uh({values:w,form:v,title:S}).then(_=>{_&&C(r.map((k,I)=>I===b?_:k),E)})}}),c.createElement(yg,{icon:c.createElement(_l),label:"Delete",showInMenu:l,onClick:E=>C(r.filter((_,k)=>k!==b),E)}),l&&b&&c.createElement(yg,{icon:c.createElement(WE),label:"Move up",showInMenu:!0,onClick:E=>C(fO(r.slice(),b,b-1),E)}),l&&b<m.length-1&&c.createElement(yg,{icon:c.createElement(OB),label:"Move down",showInMenu:!0,onClick:E=>C(fO(r.slice(),b,b+1),E)})].filter(Boolean)}}]})));function C(w,b){o(w,{was:r,event:b}),g(r)}}const bD={dateTime:{field:{comp:Xke},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 rI={},Zke=tt;Object.defineProperty(rI,"__esModule",{value:!0});var C3=rI.default=void 0,Jke=Zke(nt()),eEe=Ze(),tEe=(0,Jke.default)((0,eEe.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");C3=rI.default=tEe;var oI={},nEe=tt;Object.defineProperty(oI,"__esModule",{value:!0});var x3=oI.default=void 0,rEe=nEe(nt()),oEe=Ze(),sEe=(0,rEe.default)((0,oEe.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");x3=oI.default=sEe;var sI={},iEe=tt;Object.defineProperty(sI,"__esModule",{value:!0});var S3=sI.default=void 0,lEe=iEe(nt()),aEe=Ze(),cEe=(0,lEe.default)((0,aEe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");S3=sI.default=cEe;const uEe=["element"];function dEe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function fEe(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 P3=c.createContext({});function pEe(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e},[e]),t.current}const wD=()=>{};function hEe(e){const[,t]=c.useState(),{registerDescendant:n=wD,unregisterDescendant:r=wD,descendants:o=[],parentId:s=null}=c.useContext(P3),i=dEe(o,u=>u.element===e.element),l=pEe(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 k3(e){const{children:t,id:n}=e,[r,o]=c.useState([]),s=c.useCallback(a=>{let{element:u}=a,f=le(a,uEe);o(p=>{if(p.length===0)return[x({},f,{element:u,index:0})];const m=fEe(p,u);let v;if(p[m]&&p[m].element===u)v=p;else{const y=x({},f,{element:u,index:m});v=p.slice(),v.splice(m,0,y)}return v.forEach((y,g)=>{y.index=g}),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 O.jsx(P3.Provider,{value:l,children:t})}const E3={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},I3=c.createContext(E3),M3=()=>c.useContext(I3);function mEe(e){const{instance:t,multiSelect:n}=M3(),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 m=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(m&&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 gEe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],_3=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,m=le(t,gEe),{disabled:v,expanded:y,selected:g,focused:C,handleExpansion:w,handleSelection:b,preventSelection:S}=mEe(u),E=l||i||s,_=I=>{S(I),p&&p(I)},k=I=>{w(I),b(I),f&&f(I)};return O.jsxs("div",x({},m,{className:Ce(o,r.root,y&&r.expanded,g&&r.selected,C&&r.focused,v&&r.disabled),onClick:k,onMouseDown:_,ref:n,children:[O.jsx("div",{className:r.iconContainer,children:E}),O.jsx("div",{className:r.label,children:a})]}))});function vEe(e){return Ke("MuiTreeItem",e)}const Wl=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),yEe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],bEe=e=>{const{classes:t}=e;return Te({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},vEe,t)},wEe=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),CEe=oe(_3,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Wl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Wl.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"}},[`&.${Wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Wl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(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}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Wl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Wl.label}`]:x({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),xEe=oe(Fv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),hS=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=_3,ContentProps:a,endIcon:u,expandIcon:f,disabled:p,icon:m,id:v,label:y,nodeId:g,onClick:C,onMouseDown:w,TransitionComponent:b=Fv,TransitionProps:S}=r,E=le(r,yEe),{icons:_,multiSelect:k,disabledItemsFocusable:I,treeId:R,instance:A}=M3();let $;v!=null?$=v:R&&g&&($=`${R}-${g}`);const[L,B]=c.useState(null),z=c.useRef(null),M=Et(B,n),T=c.useMemo(()=>({element:L,id:g}),[g,L]),{index:F,parentId:j}=hEe(T),D=!!(Array.isArray(o)?o.length:o),N=A?A.isNodeExpanded(g):!1,H=A?A.isNodeFocused(g):!1,K=A?A.isNodeSelected(g):!1,Y=A?A.isNodeDisabled(g):!1,te=x({},r,{expanded:N,focused:H,selected:K,disabled:Y}),Q=bEe(te);let X,J;D&&(N?J=i||_.defaultCollapseIcon:J=f||_.defaultExpandIcon),D?X=_.defaultParentIcon:X=u||_.defaultEndIcon,c.useEffect(()=>{if(A&&F!==-1)return A.updateNode({id:g,idAttribute:$,index:F,parentId:j,expandable:D,disabled:p}),()=>A.removeNode(g)},[A,j,F,g,D,p,$]),c.useEffect(()=>{if(A&&y){var he,ne;return A.mapFirstChar(g,((he=(ne=z.current)==null?void 0:ne.textContent)!=null?he:"").substring(0,1).toLowerCase())}},[A,g,y]);let se;k?se=K:K&&(se=!0);function Z(he){if(he.target===he.currentTarget){let re;typeof he.target.getRootNode=="function"?re=he.target.getRootNode():re=fn(he.target),re.getElementById(R).focus({preventScroll:!0})}const ne=!I&&Y;A&&!H&&he.currentTarget===he.target&&!ne&&A.focusNode(he,g)}return O.jsxs(wEe,x({className:Ce(Q.root,s),role:"treeitem","aria-expanded":D?N:void 0,"aria-selected":se,"aria-disabled":Y||void 0,id:$,tabIndex:-1},E,{ownerState:te,onFocus:Z,ref:M,children:[O.jsx(CEe,x({as:l,ref:z,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:g,onClick:C,onMouseDown:w,icon:m,expansionIcon:J,displayIcon:X,ownerState:te},a)),o&&O.jsx(k3,{id:g,children:O.jsx(xEe,x({as:b,unmountOnExit:!0,className:Q.group,in:N,component:"ul",role:"group"},S,{children:o}))})]}))});function SEe(e){return Ke("MuiTreeView",e)}We("MuiTreeView",["root"]);const PEe=(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 kEe{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 lC=(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},dp=(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},mS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},gS=e=>e.getNavigableChildrenIds(null)[0],sf=(e,t)=>{Object.assign(e,t)},EEe=e=>e.isPropagationStopped!==void 0,IEe=({instance:e})=>{const[t]=c.useState(()=>new kEe),n=c.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(EEe(l)&&l.isPropagationStopped())&&t.emit(s,i,l)},[t]),r=c.useCallback((o,s)=>(t.on(o,s),()=>{t.removeListener(o,s)}),[t]);sf(e,{$$publishEvent:n,$$subscribeEvent:r})},MEe=[IEe],_Ee=e=>{const t=[...MEe,...e.plugins],n=t.reduce((y,g)=>g.getDefaultizedParams?g.getDefaultizedParams(y):y,e),r=PEe(t,n),s=c.useRef({}).current,i=c.useRef(null),l=Et(i,e.rootRef),[a,u]=c.useState(()=>{const y={};return t.forEach(g=>{g.getInitialState&&Object.assign(y,g.getInitialState(n))}),y}),f=[];let p=E3;const m=y=>{const g=y({instance:s,params:n,state:a,setState:u,rootRef:i,models:r})||{};g.getRootProps&&f.push(g.getRootProps),g.contextValue&&(p=g.contextValue)};return t.forEach(m),{getRootProps:(y={})=>{const g=x({role:"tree",tabIndex:0},y,{ref:l});return f.forEach(C=>{Object.assign(g,C(y))}),g},rootRef:l,contextValue:p}};function TEe(e){const{value:t,children:n}=e;return O.jsx(I3.Provider,{value:t,children:O.jsx(k3,{children:n})})}const $Ee=(e,t,n)=>{e.$$publishEvent(t,n)},REe=({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,$Ee(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));sf(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})},iI=({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)});sf(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)),m=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(m),t.onNodeToggle&&t.onNodeToggle(l,m))}})};iI.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const OEe=[];iI.getDefaultizedParams=e=>{var t;return x({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:OEe})};const DEe=(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,m=!0;for(;!f&&!u;)p&&(s.push(l),u=i.indexOf(l)!==-1,p=l!==null,!u&&p&&(l=e.getNode(l).parentId)),m&&!u&&(i.push(a),f=s.indexOf(a)!==-1,m=a!==null,!f&&m&&(a=e.getNode(a).parentId));const v=u?l:a,y=e.getChildrenIds(v),g=s[s.indexOf(v)-1],C=i[i.indexOf(v)-1];return y.indexOf(g)<y.indexOf(C)?[t,n]:[n,t]},lI=({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,g,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(g)!==-1?w=n.selected.value.filter(b=>b!==g):w=[g].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(y,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[g]:g;t.onNodeSelect&&t.onNodeSelect(y,w),n.selected.setValue(w)}r.current=g,o.current=!1,s.current=[]}},a=(y,g)=>{const[C,w]=DEe(e,y,g),b=[C];let S=C;for(;S!==w;)S=dp(e,S),b.push(S);return b},u=(y,g)=>{let C=n.selected.value.slice();const{start:w,next:b,current:S}=g;!b||!S||(s.current.indexOf(S)===-1&&(s.current=[]),o.current?s.current.indexOf(b)!==-1?(C=C.filter(E=>E===w||E!==S),s.current=s.current.filter(E=>E===w||E!==S)):(C.push(b),s.current.push(b)):(C.push(b),s.current.push(S,b)),t.onNodeSelect&&t.onNodeSelect(y,C),n.selected.setValue(C))},f=(y,g)=>{let C=n.selected.value.slice();const{start:w,end:b}=g;o.current&&(C=C.filter(_=>s.current.indexOf(_)===-1));let S=a(w,b);S=S.filter(_=>!e.isNodeDisabled(_)),s.current=S;let E=C.concat(S);E=E.filter((_,k)=>E.indexOf(_)===k),t.onNodeSelect&&t.onNodeSelect(y,E),n.selected.setValue(E)};return sf(e,{isNodeSelected:i,selectNode:l,selectRange:(y,g,C=!1)=>{if(t.disableSelection)return;const{start:w=r.current,end:b,current:S}=g;C?u(y,{start:w,next:b,current:S}):w!=null&&b!=null&&f(y,{start:w,end:b}),o.current=!0},rangeSelectToLast:(y,g)=>{r.current||(r.current=g);const C=o.current?r.current:g;e.selectRange(y,{start:C,end:mS(e)})},rangeSelectToFirst:(y,g)=>{r.current||(r.current=g);const C=o.current?r.current:g;e.selectRange(y,{start:C,end:gS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};lI.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const AEe=[];lI.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?AEe:null})};const CD=1e3;class LEe{constructor(t=CD){this.timeouts=new Map,this.cleanupTimeout=CD,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 FEe{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 NEe{}function BEe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new FEe:new LEe);const[i]=c.useState(new NEe),l=c.useRef(null),a=c.useRef();a.current=s;const u=c.useRef(null);if(!l.current&&a.current){const f=(p,m)=>{if(!m.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,m)}};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,m)=>{if(!m.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,m)}};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 zEe={registry:null},VEe=BEe(zEe),aI=({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(g=>x({},g,{focusedNodeId:y}))}),l=c.useCallback(v=>n.focusedNodeId===v,[n.focusedNodeId]),a=Ye((v,y)=>{y&&(i(y),t.onNodeFocus&&t.onNodeFocus(v,y))});sf(e,{isNodeFocused:l,focusNode:a}),VEe(e,"removeNode",({id:v})=>{i(y=>y===v&&s.current===fn(s.current).activeElement?e.getChildrenIds(null)[0]:y)});const u=v=>y=>{var g;if((g=v.onFocus)==null||g.call(v,y),y.target===y.currentTarget){const C=b=>{const S=e.getNode(b);return S&&(S.parentId==null||e.isNodeExpanded(S.parentId))};let w;Array.isArray(o.selected.value)?w=o.selected.value.find(C):o.selected.value!=null&&C(o.selected.value)&&(w=o.selected.value),w==null&&(w=e.getNavigableChildrenIds(null)[0]),e.focusNode(y,w)}},f=v=>y=>{var g;(g=v.onBlur)==null||g.call(v,y),i(null)},p=e.getNode(n.focusedNodeId),m=p?p.idAttribute:null;return{getRootProps:v=>({onFocus:u(v),onBlur:f(v),"aria-activedescendant":m!=null?m:void 0})}};aI.getInitialState=()=>({focusedNodeId:null});aI.getDefaultizedParams=e=>{var t;return x({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function jEe(e){return e&&e.length===1&&e.match(/\S/)}function xD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const HEe=({instance:e,params:t,state:n})=>{const o=yn().direction==="rtl",s=c.useRef({}),i=Ye((v,y)=>(s.current[v]=y,()=>{const g=x({},s.current);delete g[v],s.current=g}));sf(e,{mapFirstChar:i});const l=v=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(v,dp(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,g)=>{let C,w;const b=g.toLowerCase(),S=[],E=[];Object.keys(s.current).forEach(_=>{const k=e.getNode(_),I=k.parentId?e.isNodeExpanded(k.parentId):!0,R=t.disabledItemsFocusable?!1:e.isNodeDisabled(_);I&&!R&&(S.push(_),E.push(s.current[_]))}),C=S.indexOf(y)+1,C>=S.length&&(C=0),w=xD(E,C,b),w===-1&&(w=xD(E,0,b)),w>-1&&e.focusNode(v,S[w])},f=(v,y)=>{e.isNodeDisabled(dp(e,y))||e.selectRange(v,{end:dp(e,y),current:y},!0)},p=(v,y)=>{e.isNodeDisabled(lC(e,y))||e.selectRange(v,{end:lC(e,y),current:y},!0)},m=v=>y=>{var g;(g=v.onKeyDown)==null||g.call(v,y);let C=!1;const w=y.key;if(y.altKey||y.currentTarget!==y.target||n.focusedNodeId==null)return;const b=y.ctrlKey||y.metaKey;switch(w){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,dp(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&y.shiftKey&&!t.disableSelection&&p(y,n.focusedNodeId),e.focusNode(y,lC(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&&b&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(y,n.focusedNodeId),e.focusNode(y,gS(e)),C=!0;break;case"End":t.multiSelect&&b&&y.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(y,n.focusedNodeId),e.focusNode(y,mS(e)),C=!0;break;default:w==="*"?(e.expandAllSiblings(y,n.focusedNodeId),C=!0):t.multiSelect&&b&&w.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(y,{start:gS(e),end:mS(e)}),C=!0):!b&&!y.shiftKey&&jEe(w)&&(u(y,n.focusedNodeId,w),C=!0)}C&&(y.preventDefault(),y.stopPropagation())};return{getRootProps:v=>({onKeyDown:m(v)})}},UEe=({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}}}},WEe=[REe,iI,lI,aI,HEe,UEe],GEe=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],KEe=e=>{const{classes:t}=e;return Te({root:["root"]},SEe,t)},SD=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),T3=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:m,selected:v,multiSelect:y,onNodeSelect:g,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:S,defaultParentIcon:E,children:_}=s,k=le(s,GEe),{getRootProps:I,contextValue:R}=_Ee({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:m,selected:v,multiSelect:y,onNodeSelect:g,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:S,defaultParentIcon:E,plugins:WEe,rootRef:n}),A=KEe(r),$=qt({elementType:SD,externalSlotProps:{},externalForwardedProps:k,className:A.root,getSlotProps:I,ownerState:o});return O.jsx(TEe,{value:R,children:O.jsx(SD,x({},$,{children:_}))})});var cI={},qEe=tt;Object.defineProperty(cI,"__esModule",{value:!0});var $3=cI.default=void 0,YEe=qEe(nt()),QEe=Ze(),XEe=(0,YEe.default)((0,QEe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");$3=cI.default=XEe;var uI={},ZEe=tt;Object.defineProperty(uI,"__esModule",{value:!0});var R3=uI.default=void 0,JEe=ZEe(nt()),eIe=Ze(),tIe=(0,JEe.default)((0,eIe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");R3=uI.default=tIe;var dI={},nIe=tt;Object.defineProperty(dI,"__esModule",{value:!0});var O3=dI.default=void 0,rIe=nIe(nt()),PD=Ze(),oIe=(0,rIe.default)([(0,PD.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,PD.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");O3=dI.default=oIe;var fI={},sIe=tt;Object.defineProperty(fI,"__esModule",{value:!0});var D3=fI.default=void 0,iIe=sIe(nt()),lIe=Ze(),aIe=(0,iIe.default)((0,lIe.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");D3=fI.default=aIe;var pI={},cIe=tt;Object.defineProperty(pI,"__esModule",{value:!0});var A3=pI.default=void 0,uIe=cIe(nt()),dIe=Ze(),fIe=(0,uIe.default)((0,dIe.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");A3=pI.default=fIe;var hI={},pIe=tt;Object.defineProperty(hI,"__esModule",{value:!0});var L3=hI.default=void 0,hIe=pIe(nt()),mIe=Ze(),gIe=(0,hIe.default)((0,mIe.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");L3=hI.default=gIe;var mI={},vIe=tt;Object.defineProperty(mI,"__esModule",{value:!0});var F3=mI.default=void 0,yIe=vIe(nt()),bIe=Ze(),wIe=(0,yIe.default)((0,bIe.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");F3=mI.default=wIe;var gI={},CIe=tt;Object.defineProperty(gI,"__esModule",{value:!0});var N3=gI.default=void 0,xIe=CIe(nt()),SIe=Ze(),PIe=(0,xIe.default)((0,SIe.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");N3=gI.default=PIe;var vI={},kIe=tt;Object.defineProperty(vI,"__esModule",{value:!0});var B3=vI.default=void 0,EIe=kIe(nt()),IIe=Ze(),MIe=(0,EIe.default)((0,IIe.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");B3=vI.default=MIe;var yI={},_Ie=tt;Object.defineProperty(yI,"__esModule",{value:!0});var z3=yI.default=void 0,TIe=_Ie(nt()),$Ie=Ze(),RIe=(0,TIe.default)((0,$Ie.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");z3=yI.default=RIe;var bI={},OIe=tt;Object.defineProperty(bI,"__esModule",{value:!0});var V3=bI.default=void 0;LIe(c);var DIe=OIe(nt()),AIe=Ze();function j3(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(j3=function(r){return r?n:t})(e)}function LIe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=j3(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 FIe=(0,DIe.default)((0,AIe.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");V3=bI.default=FIe;let xg;function NIe(){const{close:e}=Oo({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=wI();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(jz,{from:xg!=null?xg:t.source,onSelect(r){return ot(this,null,function*(){const o=yield Promise.all(r.map(l=>ct("add_vfs",{parent:t.id,source:l}).then(a=>a,a=>[l,a.message])));xg=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("/")?"/":""));$a(i),e()})}}))}})}function BIe(){return ot(this,null,function*(){try{const e=yield Vh("Enter folder name");if(!e)return;const{id:t}=wI(),n=yield ct("add_vfs",{parent:t,name:e});$a([t+encodeURI(n.name)+"/"]),yield kt(`Folder "${n.name}" created`,"success")}catch(e){yield kt(e)}})}function zIe(){return ot(this,null,function*(){try{const{id:e}=wI(),t=yield ct("add_vfs",{parent:e,name:"new link",url:"https://google.com"});$a([e+encodeURI(t.name)]),rr("Link created","success",{onClose:()=>Qv("input[name=url]")})}catch(e){yield kt(e)}})}function wI(){const e=rn.selectedFiles[0]||rn.vfs;return e.type==="folder"?e:e.parent}function H3(n){var r=n,{items:e}=r,t=Ft(r,["items"]);const[o,s]=co.useState(),i=!!o,l=c.useCallback(()=>s(void 0),[]);return c.createElement(co.Fragment,{},c.createElement(Yn,xe({"aria-controls":i?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":i?"true":void 0,onClick:a=>{s(a.currentTarget)}},t)),c.createElement(i4,{anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((a,u)=>c.createElement(Pr,st(xe({key:u},a),{onClick(){var f;l(),(f=a.onClick)==null||f.apply(this,arguments)}})))}))}var CI={},VIe=tt;Object.defineProperty(CI,"__esModule",{value:!0});var U3=CI.default=void 0,jIe=VIe(nt()),HIe=Ze(),UIe=(0,jIe.default)((0,HIe.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");U3=CI.default=UIe;function vS(s){var i=s,{keys:e,form:t,saveOnChange:n,onSave:r}=i,o=Ft(i,["keys","form","saveOnChange","onSave"]);const l=Qn("get_config",{only:e}),[a,u]=c.useState(l.data);c.useEffect(()=>u(v=>l.data||v),[l.data]);const f=a&&!et.isEqual(a,l.data);if(c.useEffect(()=>{f&&n&&m()},[f]),!a)return l.element;const p=et.isFunction(t)?t(a):t;return c.createElement(Hc,st(xe(xe({values:a,set(v,y){u(g=>st(xe({},g),{[y]:v}))},save:n?!1:{onClick:m,sx:Zd(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:xe({gap:1},o.barSx),addToBar:[c.createElement(mn,{icon:U3,disabled:!f,title:"Reset",onClick(){u(l.data)}}),...o.addToBar||[]]}));function m(){return ct("set_config",{values:a}).then(r).then(l.reload)}}function kD(i){var l=i,{value:e="",onChange:t,helperText:n,setApi:r,autocompleteProps:o}=l,s=Ft(l,["value","onChange","helperText","setApi","autocompleteProps"]);const a=mfe(e),{list:u,loading:f}=Sl("get_file_list",{uri:a,admin:!0,onlyFolders:!0}),p=c.useMemo(()=>[a+"/"].concat(u.map(m=>e+m.n)),[u,a]);return c.createElement(Fh,xe({value:e,options:p,isOptionEqualToValue:(m,v)=>m===v||m===v+"/",loading:f,disableClearable:!0,renderInput:m=>c.createElement(Na,st(xe(xe({helperText:n,placeholder:"home",onChange(v){const y=v.target.value;(y.endsWith("/")||!y)&&t(y,{was:e,event:v})},onBlur(v){const y=v.target.value+"/";p.includes(y)&&t(y,{was:e,event:v})}},m),s),{InputLabelProps:xe(xe({shrink:!0},m.InputLabelProps),s.InputLabelProps)})),onChange:(m,v)=>t(v,{was:e,event:m})},o))}function WIe({statusApi:e}){var s;const t=((s=e.data)==null?void 0:s.platform)==="win32",{data:n,reload:r}=P4(t&&"windows_integrated");return c.createElement(qr,{mb:2,position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"},c.createElement(H3,{variant:"contained",startIcon:c.createElement(zE),items:[{children:"from disk",onClick:NIe},{children:"virtual folder",onClick:BIe},{children:"web-link",onClick:zIe}]},"Add"),c.createElement(To,{variant:"outlined",onClick:o},"Roots"),s0(()=>$a()),t&&c.createElement(To,xe({icon:V3,variant:"outlined",doneMessage:!0},n!=null&&n.is?{confirm:!0,children:"Remove integration",onClick:()=>ct("windows_remove").then(r)}:{children:"System integration",onClick(){return ot(this,null,function*(){const l=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(kr,{severity:"info"},"It will also automatically copy the URL, ready to paste!")),a=yield Vh(l,{field:{comp:kD,label:"Add to this folder"},form:{saveOnEnter:!1}});return a?ct("windows_integration",{parent:a}).then(r):!1})}})));function o(){const{close:l}=Oo({dialogProps:{maxWidth:"sm"},Content:()=>c.createElement(vS,{onSave(){e.reload(),l()},keys:[Bn.roots,Bn.roots_mandatory],form:{fields:[{k:"roots",label:"Roots for different domains",helperText:"You can decide different home-folders (in the VFS) for different domains, a bit like virtual hosts. If none is matched, the default home will be used.",comp:xh,fields:[{k:"host",label:"Domain/Host",helperText:"Wildcards supported: domain.*|other.*"},{k:"root",label:"Home/Root",comp:kD,placeholder:"default",helperText:"Root path in VFS"}],toField:a=>Object.entries(a||{}).map(([u,f])=>({host:u,root:f})),fromField:a=>Object.fromEntries(a.map(u=>[u.host,u.root]))},{k:"roots_mandatory",label:"Block requests that are not using any of the domains above",helperText:"localhost connections are not included",comp:Dn}]}})})}}const xI=Symbol.for("yaml.alias"),yS=Symbol.for("yaml.document"),Ca=Symbol.for("yaml.map"),W3=Symbol.for("yaml.pair"),Pl=Symbol.for("yaml.scalar"),lf=Symbol.for("yaml.seq"),Ns=Symbol.for("yaml.node.type"),Gc=e=>!!e&&typeof e=="object"&&e[Ns]===xI,af=e=>!!e&&typeof e=="object"&&e[Ns]===yS,cf=e=>!!e&&typeof e=="object"&&e[Ns]===Ca,Ln=e=>!!e&&typeof e=="object"&&e[Ns]===W3,Sn=e=>!!e&&typeof e=="object"&&e[Ns]===Pl,uf=e=>!!e&&typeof e=="object"&&e[Ns]===lf;function Vn(e){if(e&&typeof e=="object")switch(e[Ns]){case Ca:case lf:return!0}return!1}function or(e){if(e&&typeof e=="object")switch(e[Ns]){case xI:case Ca:case Pl:case lf:return!0}return!1}const GIe=e=>(Sn(e)||Vn(e))&&!!e.anchor,xo=Symbol("break visit"),G3=Symbol("skip children"),Bi=Symbol("remove node");function _a(e,t){const n=K3(t);af(e)?Wu(null,e.contents,n,Object.freeze([e]))===Bi&&(e.contents=null):Wu(null,e,n,Object.freeze([]))}_a.BREAK=xo;_a.SKIP=G3;_a.REMOVE=Bi;function Wu(e,t,n,r){const o=q3(e,t,n,r);if(or(o)||Ln(o))return Y3(e,r,o),Wu(e,o,n,r);if(typeof o!="symbol"){if(Vn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=Wu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===xo)return xo;i===Bi&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=Wu("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=Wu("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o}function P0(e,t){return ot(this,null,function*(){const n=K3(t);af(e)?(yield Gu(null,e.contents,n,Object.freeze([e])))===Bi&&(e.contents=null):yield Gu(null,e,n,Object.freeze([]))})}P0.BREAK=xo;P0.SKIP=G3;P0.REMOVE=Bi;function Gu(e,t,n,r){return ot(this,null,function*(){const o=yield q3(e,t,n,r);if(or(o)||Ln(o))return Y3(e,r,o),Gu(e,o,n,r);if(typeof o!="symbol"){if(Vn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=yield Gu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===xo)return xo;i===Bi&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=yield Gu("key",t.key,n,r);if(s===xo)return xo;s===Bi&&(t.key=null);const i=yield Gu("value",t.value,n,r);if(i===xo)return xo;i===Bi&&(t.value=null)}}return o})}function K3(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 q3(e,t,n,r){var o,s,i,l,a;if(typeof n=="function")return n(e,t,r);if(cf(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(uf(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(Ln(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(Gc(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function Y3(e,t,n){const r=t[t.length-1];if(Vn(r))r.items[e]=n;else if(Ln(r))e==="key"?r.key=n:r.value=n;else if(af(r))r.contents=n;else{const o=Gc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const KIe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},qIe=e=>e.replace(/[!,[\]{}]/g,t=>KIe[t]);class io{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},io.defaultYaml,t),this.tags=Object.assign({},io.defaultTags,n)}clone(){const t=new io(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new io(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:io.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},io.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:io.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},io.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+qIe(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&&or(t.contents)){const s={};_a(t.contents,(i,l)=>{or(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
|
+
`)}}io.defaultYaml={explicit:!1,version:"1.2"};io.defaultTags={"!!":"tag:yaml.org,2002:"};function Q3(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 X3(e){const t=new Set;return _a(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function Z3(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function YIe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=X3(e));const i=Z3(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)||Vn(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 Ku(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=Ku(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=Ku(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=Ku(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=Ku(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||!GIe(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 SI{constructor(t){Object.defineProperty(this,Ns,{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(!af(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"?Ku(s,{"":l},"",l):l}}class k0 extends SI{constructor(t){super(xI),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return _a(t,{Node:(r,o)=>{if(o===this)return _a.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=Jg(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(Q3(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 Jg(e,t,n){if(Gc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Vn(t)){let r=0;for(const o of t.items){const s=Jg(e,o,n);s>r&&(r=s)}return r}else if(Ln(t)){const r=Jg(e,t.key,n),o=Jg(e,t.value,n);return Math.max(r,o)}return 1}const J3=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends SI{constructor(t){super(Pl),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 QIe="tag:yaml.org,2002:";function XIe(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 Sh(e,t,n){var p,m,v;if(af(e)&&(e=e.contents),or(e))return e;if(Ln(e)){const y=(m=(p=n.schema[Ca]).createNode)==null?void 0:m.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 k0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=QIe+t.slice(2));let u=XIe(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[Ca]:Symbol.iterator in Object(e)?i[lf]:i[Ca]}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 hy(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 Sh(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 fp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class E0 extends SI{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=>or(r)||Ln(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(fp(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(Vn(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,hy(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(Vn(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:Vn(s)?s.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ln(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 Vn(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(Vn(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,hy(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}E0.maxFlowStringSingleLineLength=60;const ZIe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function fl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ua=(e,t,n)=>e.endsWith(`
|
|
625
|
+
`)?fl(n,t):n.includes(`
|
|
626
|
+
`)?`
|
|
627
|
+
`+fl(n,t):(e.endsWith(" ")?"":" ")+n,ez="flow",bS="block",ev="quoted";function I0(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 m,v,y=!1,g=-1,C=-1,w=-1;n===bS&&(g=ED(e,g),g!==-1&&(p=g+a));for(let S;S=e[g+=1];){if(n===ev&&S==="\\"){switch(C=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}w=g}if(S===`
|
|
628
|
+
`)n===bS&&(g=ED(e,g)),p=g+a,m=void 0;else{if(S===" "&&v&&v!==" "&&v!==`
|
|
629
|
+
`&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
|
|
630
|
+
`&&E!==" "&&(m=g)}if(g>=p)if(m)u.push(m),p=m+a,m=void 0;else if(n===ev){for(;v===" "||v===" ";)v=S,S=e[g+=1],y=!0;const E=g>w+1?g-2:C-1;if(f[E])return e;u.push(E),f[E]=!0,p=E+a,m=void 0}else y=!0}v=S}if(y&&l&&l(),u.length===0)return e;i&&i();let b=e.slice(0,u[0]);for(let S=0;S<u.length;++S){const E=u[S],_=u[S+1]||e.length;E===0?b=`
|
|
631
|
+
${t}${e.slice(0,_)}`:(n===ev&&f[E]&&(b+=`${e[E]}\\`),b+=`
|
|
632
|
+
${t}${e.slice(E+1,_)}`)}return b}function ED(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}),_0=e=>/^(%|---|\.\.\.)/m.test(e);function JIe(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 Dp(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(_0(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:I0(i,s,ev,M0(t,!1))}function wS(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
638
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Dp(e,t);const n=t.indent||(_0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
639
|
+
${n}`)+"'";return t.implicitKey?r:I0(r,n,ez,M0(t,!1))}function qu(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Dp;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=wS:s&&!o?r=Dp:r=n?wS:Dp}return r(e,t)}let CS;try{CS=new RegExp(`(^|(?<!
|
|
640
|
+
))
|
|
641
|
+
+(?!
|
|
642
|
+
|$)`,"g")}catch(e){CS=/\n+(?!\n|$)/g}function tv({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 qu(n,r);const u=r.indent||(r.forceBlockIndent||_0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!JIe(n,a,u.length);if(!n)return f?`|
|
|
643
|
+
`:`>
|
|
644
|
+
`;let p,m;for(m=n.length;m>0;--m){const k=n[m-1];if(k!==`
|
|
645
|
+
`&&k!==" "&&k!==" ")break}let v=n.substring(m);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(CS,`$&${u}`));let g=!1,C,w=-1;for(C=0;C<n.length;++C){const k=n[C];if(k===" ")g=!0;else if(k===`
|
|
648
|
+
`)w=C;else break}let b=n.substring(0,w<C?w+1:C);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${u}`));let E=(f?"|":">")+(g?u?"2":"1":"")+p;if(e&&(E+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),f)return n=n.replace(/\n+/g,`$&${u}`),`${E}
|
|
649
|
+
${u}${b}${n}${v}`;n=n.replace(/\n+/g,`
|
|
650
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);const _=I0(`${b}${n}${v}`,u,bS,M0(r,!0));return`${E}
|
|
651
|
+
${u}${_}`}function e2e(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 qu(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||f||!s.includes(`
|
|
652
|
+
`)?qu(s,t):tv(e,t,n,r);if(!l&&!f&&o!==$t.PLAIN&&s.includes(`
|
|
653
|
+
`))return tv(e,t,n,r);if(_0(s)){if(a==="")return t.forceBlockIndent=!0,tv(e,t,n,r);if(l&&a===u)return qu(s,t)}const p=s.replace(/\n+/g,`$&
|
|
654
|
+
${a}`);if(i){const m=g=>{var C;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((C=g.test)==null?void 0:C.test(p))},{compat:v,tags:y}=t.doc.schema;if(y.some(m)||v!=null&&v.some(m))return qu(s,t)}return l?p:I0(p,a,ez,M0(t,!1))}function Zh(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?qu(i.value,t):tv(i,t,n,r);case $t.QUOTE_DOUBLE:return Dp(i.value,t);case $t.QUOTE_SINGLE:return wS(i.value,t);case $t.PLAIN:return e2e(i,t,n,r);default:return null}};let u=a(l);if(u===null){const{defaultKeyType:f,defaultStringType:p}=t.options,m=o&&f||p;if(u=a(m),u===null)throw new Error(`Unsupported default string type ${m}`)}return u}function tz(e,t){const n=Object.assign({blockQuote:!0,commentString:ZIe,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 t2e(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 n2e(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||Vn(e))&&e.anchor;s&&Q3(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 Ad(e,t,n,r){var a,u;if(Ln(e))return e.toString(t,n,r);if(Gc(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=or(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=t2e(t.doc.schema.tags,s));const i=n2e(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)?Zh(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 r2e({key:e,value:t},n,r,o){var I,R;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:u,indentSeq:f,simpleKeys:p}}=n;let m=or(e)&&e.comment||null;if(p){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Vn(e)){const A="With simple keys, collection cannot be used as a key value";throw new Error(A)}}let v=!p&&(!e||m&&t==null&&!n.inFlow||Vn(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,g=!1,C=Ad(e,n,()=>y=!0,()=>g=!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}`,m&&!y?C+=ua(C,n.indent,u(m)):g&&o&&o(),C;y&&(m=null),v?(m&&(C+=ua(C,n.indent,u(m))),C=`? ${C}
|
|
656
|
+
${l}:`):(C=`${C}:`,m&&(C+=ua(C,n.indent,u(m))));let w,b,S;or(t)?(w=!!t.spaceBefore,b=t.commentBefore,S=t.comment):(w=!1,b=null,S=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!v&&!m&&Sn(t)&&(n.indentAtStart=C.length+1),g=!1,!f&&a.length>=2&&!n.inFlow&&!v&&uf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let E=!1;const _=Ad(t,n,()=>E=!0,()=>g=!0);let k=" ";if(m||w||b){if(k=w?`
|
|
657
|
+
`:"",b){const A=u(b);k+=`
|
|
658
|
+
${fl(A,n.indent)}`}_===""&&!n.inFlow?k===`
|
|
659
|
+
`&&(k=`
|
|
660
|
+
|
|
661
|
+
`):k+=`
|
|
662
|
+
${n.indent}`}else if(!v&&Vn(t)){const A=_[0],$=_.indexOf(`
|
|
663
|
+
`),L=$!==-1,B=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(L||!B){let z=!1;if(L&&(A==="&"||A==="!")){let M=_.indexOf(" ");A==="&"&&M!==-1&&M<$&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||$<M)&&(z=!0)}z||(k=`
|
|
664
|
+
${n.indent}`)}}else(_===""||_[0]===`
|
|
665
|
+
`)&&(k="");return C+=k+_,n.inFlow?E&&r&&r():S&&!E?C+=ua(C,n.indent,u(S)):g&&o&&o(),C}function nz(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const ID="<<";function rz(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&o2e(n))if(r=Gc(r)?r.resolve(e.doc):r,uf(r))for(const o of r.items)aC(e,t,o);else if(Array.isArray(r))for(const o of r)aC(e,t,o);else aC(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=s2e(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 o2e=e=>e===ID||Sn(e)&&e.value===ID&&(!e.type||e.type===$t.PLAIN);function aC(e,t,n){const r=e&&Gc(n)?n.resolve(e.doc):n;if(!cf(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 s2e(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(or(e)&&n&&n.doc){const r=tz(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)+'..."'),nz(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 PI(e,t,n){const r=Sh(e,void 0,n),o=Sh(t,void 0,n);return new Xr(r,o)}class Xr{constructor(t,n=null){Object.defineProperty(this,Ns,{value:W3}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return or(n)&&(n=n.clone(t)),or(r)&&(r=r.clone(t)),new Xr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return rz(n,r,this)}toString(t,n,r){return t!=null&&t.doc?r2e(this,t,n,r):JSON.stringify(this)}}function oz(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?l2e:i2e)(e,t,n)}function i2e({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 m=[];for(let y=0;y<t.length;++y){const g=t[y];let C=null;if(or(g))!p&&g.spaceBefore&&m.push(""),my(n,m,g.commentBefore,p),g.comment&&(C=g.comment);else if(Ln(g)){const b=or(g.key)?g.key:null;b&&(!p&&b.spaceBefore&&m.push(""),my(n,m,b.commentBefore,p))}p=!1;let w=Ad(g,f,()=>C=null,()=>p=!0);C&&(w+=ua(w,s,u(C))),p&&C&&(p=!1),m.push(r+w)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let y=1;y<m.length;++y){const g=m[y];v+=g?`
|
|
666
|
+
${a}${g}`:`
|
|
667
|
+
`}}return e?(v+=`
|
|
668
|
+
`+fl(u(e),a),l&&l()):p&&i&&i(),v}function l2e({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,m=0;const v=[];for(let w=0;w<t.length;++w){const b=t[w];let S=null;if(or(b))b.spaceBefore&&v.push(""),my(n,v,b.commentBefore,!1),b.comment&&(S=b.comment);else if(Ln(b)){const _=or(b.key)?b.key:null;_&&(_.spaceBefore&&v.push(""),my(n,v,_.commentBefore,!1),_.comment&&(p=!0));const k=or(b.value)?b.value:null;k?(k.comment&&(S=k.comment),k.commentBefore&&(p=!0)):b.value==null&&_&&_.comment&&(S=_.comment)}S&&(p=!0);let E=Ad(b,f,()=>S=null);w<t.length-1&&(E+=","),S&&(E+=ua(E,o,u(S))),!p&&(v.length>m||E.includes(`
|
|
669
|
+
`))&&(p=!0),v.push(E),m=v.length}let y;const{start:g,end:C}=r;if(v.length===0)y=g+C;else if(p||(p=v.reduce((b,S)=>b+S.length+2,2)>E0.maxFlowStringSingleLineLength),p){y=g;for(const w of v)y+=w?`
|
|
670
|
+
${l}${i}${w}`:`
|
|
671
|
+
`;y+=`
|
|
672
|
+
${i}${C}`}else y=`${g}${a}${v.join(" ")}${a}${C}`;return e&&(y+=ua(y,i,u(e)),s&&s()),y}function my({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=fl(t(r),e);n.push(s.trimStart())}}function cc(e,t){const n=Sn(t)?t.value:t;for(const r of e)if(Ln(r)&&(r.key===t||r.key===n||Sn(r.key)&&r.key.value===n))return r}class Ko extends E0{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ca,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(PI(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;Ln(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Xr(t,t==null?void 0:t.value):r=new Xr(t.key,t.value);const o=cc(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)&&J3(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=cc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=cc(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!!cc(this.items,t)}set(t,n){this.add(new Xr(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)rz(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ln(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})),oz(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const df={collection:"map",default:!0,nodeClass:Ko,tag:"tag:yaml.org,2002:map",resolve(e,t){return cf(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Ko.from(e,t,n)};class Ta extends E0{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(lf,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Sg(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Sg(t);if(typeof r!="number")return;const o=this.items[r];return!n&&Sn(o)?o.value:o}has(t){const n=Sg(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Sg(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];Sn(o)&&J3(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?oz(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(Sh(l,void 0,r))}}return s}}function Sg(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 ff={collection:"seq",default:!0,nodeClass:Ta,tag:"tag:yaml.org,2002:seq",resolve(e,t){return uf(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Ta.from(e,t,n)},T0={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),Zh(e,t,n,r)}},$0={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"&&$0.test.test(e)?e:t.options.nullStr},kI={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&&kI.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 hi({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 sz={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:hi},iz={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():hi(e)}},lz={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:hi},R0=e=>typeof e=="bigint"||Number.isInteger(e),EI=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function az(e,t,n){const{value:r}=e;return R0(r)&&r>=0?n+r.toString(t):hi(e)}const cz={identify:e=>R0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>EI(e,2,8,n),stringify:e=>az(e,8,"0o")},uz={identify:R0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>EI(e,0,10,n),stringify:hi},dz={identify:e=>R0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>EI(e,2,16,n),stringify:e=>az(e,16,"0x")},a2e=[df,ff,T0,$0,kI,cz,uz,dz,sz,iz,lz];function MD(e){return typeof e=="bigint"||Number.isInteger(e)}const Pg=({value:e})=>JSON.stringify(e),c2e=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Pg},{identify:e=>e==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Pg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Pg},{identify:MD,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})=>MD(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:Pg}],u2e={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},d2e=[df,ff].concat(c2e,u2e),II={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,m=0;p<u;++p,m+=a)f[p]=l.substr(m,a);l=f.join(t===$t.BLOCK_LITERAL?`
|
|
673
|
+
`:" ")}return Zh({comment:e,type:t,value:l},r,o,s)}};function fz(e,t){var n;if(uf(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Ln(o)){if(cf(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const s=o.items[0]||new Xr(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]=Ln(o)?o:new Xr(o)}}else t("Expected a sequence for this tag");return e}function pz(e,t,n){const{replacer:r}=n,o=new Ta(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(PI(l,a,n))}return o}const MI={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:fz,createNode:pz};class cd extends Ta{constructor(){super(),this.add=Ko.prototype.add.bind(this),this.delete=Ko.prototype.delete.bind(this),this.get=Ko.prototype.get.bind(this),this.has=Ko.prototype.has.bind(this),this.set=Ko.prototype.set.bind(this),this.tag=cd.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(Ln(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=pz(t,n,r),s=new this;return s.items=o.items,s}}cd.tag="tag:yaml.org,2002:omap";const _I={collection:"seq",identify:e=>e instanceof Map,nodeClass:cd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=fz(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 cd,n)},createNode:(e,t,n)=>cd.from(e,t,n)};function hz({value:e,source:t},n){return t&&(e?mz:gz).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const mz={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:hz},gz={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:hz},f2e={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:hi},p2e={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():hi(e)}},h2e={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:hi},Jh=e=>typeof e=="bigint"||Number.isInteger(e);function O0(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 TI(e,t,n){const{value:r}=e;if(Jh(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return hi(e)}const m2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>O0(e,2,2,n),stringify:e=>TI(e,2,"0b")},g2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>O0(e,1,8,n),stringify:e=>TI(e,8,"0")},v2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>O0(e,0,10,n),stringify:hi},y2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>O0(e,2,16,n),stringify:e=>TI(e,16,"0x")};class ud extends Ko{constructor(t){super(t),this.tag=ud.tag}add(t){let n;Ln(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Xr(t.key,null):n=new Xr(t,null),cc(this.items,n.key)||this.items.push(n)}get(t,n){const r=cc(this.items,t);return!n&&Ln(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=cc(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Xr(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(PI(i,null,r));return s}}ud.tag="tag:yaml.org,2002:set";const $I={collection:"map",identify:e=>e instanceof Set,nodeClass:ud,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ud.from(e,t,n),resolve(e,t){if(cf(e)){if(e.hasAllNullValues(!0))return Object.assign(new ud,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function RI(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 vz(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return hi(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 yz={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})=>RI(e,n),stringify:vz},bz={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=>RI(e,!1),stringify:vz},D0={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(D0.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=RI(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$/,"")},_D=[df,ff,T0,$0,mz,gz,m2e,g2e,v2e,y2e,f2e,p2e,h2e,II,_I,MI,$I,yz,bz,D0],TD=new Map([["core",a2e],["failsafe",[df,ff,T0]],["json",d2e],["yaml11",_D],["yaml-1.1",_D]]),$D={binary:II,bool:kI,float:lz,floatExp:iz,floatNaN:sz,floatTime:bz,int:uz,intHex:dz,intOct:cz,intTime:yz,map:df,null:$0,omap:_I,pairs:MI,seq:ff,set:$I,timestamp:D0},b2e={"tag:yaml.org,2002:binary":II,"tag:yaml.org,2002:omap":_I,"tag:yaml.org,2002:pairs":MI,"tag:yaml.org,2002:set":$I,"tag:yaml.org,2002:timestamp":D0};function cC(e,t){let n=TD.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(TD.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=$D[r];if(o)return o;const s=Object.keys($D).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const w2e=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class A0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?cC(t,"compat"):t?cC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?b2e:{},this.tags=cC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Ca,{value:df}),Object.defineProperty(this,Pl,{value:T0}),Object.defineProperty(this,lf,{value:ff}),this.sortMapEntries=typeof i=="function"?i:i===!0?w2e:null}clone(){const t=Object.create(A0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function C2e(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=tz(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=s(e.commentBefore);n.unshift(fl(u,""))}let i=!1,l=null;if(e.contents){if(or(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(fl(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const u=l?void 0:()=>i=!0;let f=Ad(e.contents,o,()=>l=null,u);l&&(f+=ua(f,"",s(l))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Ad(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(fl(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(fl(s(u),"")))}return n.join(`
|
|
677
|
+
`)+`
|
|
678
|
+
`}class pf{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ns,{value:yS});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 io({version:i}),this.setSchema(i,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(pf.prototype,{[Ns]:{value:yS}});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=or(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Cu(this.contents)&&this.contents.add(t)}addIn(t,n){Cu(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=X3(this);t.anchor=!n||r.has(n)?Z3(n||"a",r):n}return new k0(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=b=>typeof b=="number"||b instanceof String||b instanceof Number,w=n.filter(C).map(String);w.length>0&&(n=n.concat(w)),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:m,sourceObjects:v}=YIe(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},g=Sh(t,f,y);return l&&Vn(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Xr(o,s)}delete(t){return Cu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return fp(t)?this.contents==null?!1:(this.contents=null,!0):Cu(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Vn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return fp(t)?!n&&Sn(this.contents)?this.contents.value:this.contents:Vn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Vn(this.contents)?this.contents.has(t):!1}hasIn(t){return fp(t)?this.contents!==void 0:Vn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=hy(this.schema,[t],n):Cu(this.contents)&&this.contents.set(t,n)}setIn(t,n){fp(t)?this.contents=n:this.contents==null?this.contents=hy(this.schema,Array.from(t),n):Cu(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 io({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 io({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 A0(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"?Ku(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 C2e(this,t)}}function Cu(e){if(Vn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class OI extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class uc extends OI{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class wz extends OI{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const gy=(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 Ld(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,u=i,f="",p="",m=!1,v=!1,y=!1,g=null,C=null,w=null,b=null,S=null;for(const k of e)switch(y&&(k.type!=="space"&&k.type!=="newline"&&k.type!=="comma"&&s(k.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),k.type){case"space":!t&&a&&n!=="doc-start"&&k.source[0]===" "&&s(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=k.source.substring(1)||" ";f?f+=p+I:f=I,p="",a=!1;break}case"newline":a?f?f+=k.source:l=!0:p+=k.source,a=!0,m=!0,(g||C)&&(v=!0),u=!0;break;case"anchor":g&&s(k,"MULTIPLE_ANCHORS","A node can have at most one anchor"),k.source.endsWith(":")&&s(k.offset+k.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=k,S===null&&(S=k.offset),a=!1,u=!1,y=!0;break;case"tag":{C&&s(k,"MULTIPLE_TAGS","A node can have at most one tag"),C=k,S===null&&(S=k.offset),a=!1,u=!1,y=!0;break}case n:(g||C)&&s(k,"BAD_PROP_ORDER",`Anchors and tags must be after the ${k.source} indicator`),b&&s(k,"UNEXPECTED_TOKEN",`Unexpected ${k.source} in ${t!=null?t:"collection"}`),b=k,a=!1,u=!1;break;case"comma":if(t){w&&s(k,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=k,a=!1,u=!1;break}default:s(k,"UNEXPECTED_TOKEN",`Unexpected ${k.type} token`),a=!1,u=!1}const E=e[e.length-1],_=E?E.offset+E.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:w,found:b,spaceBefore:l,comment:f,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:C,end:_,start:S!=null?S:_}}function Ph(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(Ph(t.key)||Ph(t.value))return!0}return!1;default:return!0}}function xS(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ph(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Cz(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 RD="All mapping items must start at the same column";function x2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var f,p;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Ko,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const m of r.items){const{start:v,key:y,sep:g,value:C}=m,w=Ld(v,{indicator:"explicit-key-ind",next:y!=null?y:g==null?void 0:g[0],offset:a,onError:o,startOnNewline:!0}),b=!w.found;if(b){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",RD)),!w.anchor&&!w.tag&&!g){u=w.end,w.comment&&(l.comment?l.comment+=`
|
|
685
|
+
`+w.comment:l.comment=w.comment);continue}(w.hasNewlineAfterProp||Ph(y))&&o(y!=null?y:v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=w.found)==null?void 0:p.indent)!==r.indent&&o(a,"BAD_INDENT",RD);const S=w.end,E=y?e(n,y,w,o):t(n,S,v,null,w,o);n.schema.compat&&xS(r.indent,y,o),Cz(n,l.items,E)&&o(S,"DUPLICATE_KEY","Map keys must be unique");const _=Ld(g!=null?g:[],{indicator:"map-value-ind",next:C,offset:E.range[2],onError:o,startOnNewline:!y||y.type==="block-scalar"});if(a=_.end,_.found){b&&((C==null?void 0:C.type)==="block-map"&&!_.hasNewline&&o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<_.found.offset-1024&&o(E.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=C?e(n,C,_,o):t(n,a,g,null,_,o);n.schema.compat&&xS(r.indent,C,o),a=k.range[2];const I=new Xr(E,k);n.options.keepSourceTokens&&(I.srcToken=m),l.items.push(I)}else{b&&o(E.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(E.comment?E.comment+=`
|
|
686
|
+
`+_.comment:E.comment=_.comment);const k=new Xr(E);n.options.keepSourceTokens&&(k.srcToken=m),l.items.push(k)}}return u&&u<a&&o(u,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,a,u!=null?u:a],l}function S2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var f;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Ta,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const{start:p,value:m}of r.items){const v=Ld(p,{indicator:"seq-item-ind",next:m,offset:a,onError:o,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||m)m&&m.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=m?e(n,m,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&xS(r.indent,m,o),a=y.range[2],l.items.push(y)}return l.range=[r.offset,a,u!=null?u:a],l}function em(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 uC="Block collections are not allowed within flow collections",dC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function P2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var C,w;const i=r.start.source==="{",l=i?"flow map":"flow sequence",a=(C=s==null?void 0:s.nodeClass)!=null?C:i?Ko:Ta,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 b=0;b<r.items.length;++b){const S=r.items[b],{start:E,key:_,sep:k,value:I}=S,R=Ld(E,{flow:l,indicator:"explicit-key-ind",next:_!=null?_:k==null?void 0:k[0],offset:p,onError:o,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!k&&!I){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(u.comment?u.comment+=`
|
|
687
|
+
`+R.comment:u.comment=R.comment),p=R.end;continue}!i&&n.options.strict&&Ph(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let A="";e:for(const $ of E)switch($.type){case"comma":case"space":break;case"comment":A=$.source.substring(1);break e;default:break e}if(A){let $=u.items[u.items.length-1];Ln($)&&($=(w=$.value)!=null?w:$.key),$.comment?$.comment+=`
|
|
688
|
+
`+A:$.comment=A,R.comment=R.comment.substring(A.length+1)}}if(!i&&!k&&!R.found){const A=I?e(n,I,R,o):t(n,R.end,k,null,R,o);u.items.push(A),p=A.range[2],dC(I)&&o(A.range,"BLOCK_IN_FLOW",uC)}else{const A=R.end,$=_?e(n,_,R,o):t(n,A,E,null,R,o);dC(_)&&o($.range,"BLOCK_IN_FLOW",uC);const L=Ld(k!=null?k:[],{flow:l,indicator:"map-value-ind",next:I,offset:$.range[2],onError:o,startOnNewline:!1});if(L.found){if(!i&&!R.found&&n.options.strict){if(k)for(const M of k){if(M===L.found)break;if(M.type==="newline"){o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<L.found.offset-1024&&o(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(L.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const B=I?e(n,I,L,o):L.found?t(n,L.end,k,null,L,o):null;B?dC(I)&&o(B.range,"BLOCK_IN_FLOW",uC):L.comment&&($.comment?$.comment+=`
|
|
689
|
+
`+L.comment:$.comment=L.comment);const z=new Xr($,B);if(n.options.keepSourceTokens&&(z.srcToken=S),i){const M=u;Cz(n,M.items,$)&&o(A,"DUPLICATE_KEY","Map keys must be unique"),M.items.push(z)}else{const M=new Ko(n.schema);M.flow=!0,M.items.push(z),u.items.push(M)}p=B?B.range[2]:L.end}}const m=i?"}":"]",[v,...y]=r.end;let g=p;if(v&&v.source===m)g=v.offset+v.source.length;else{const b=l[0].toUpperCase()+l.substring(1),S=f?`${b} must end with a ${m}`:`${b} in block collection must be sufficiently indented and end with a ${m}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",S),v&&v.source.length!==1&&y.unshift(v)}if(y.length>0){const b=em(y,g,n.options.strict,o);b.comment&&(u.comment?u.comment+=`
|
|
690
|
+
`+b.comment:u.comment=b.comment),u.range=[r.offset,g,b.offset]}else u.range=[r.offset,g,g];return u}function fC(e,t,n,r,o,s){const i=n.type==="block-map"?x2e(e,t,n,r,s):n.type==="block-seq"?S2e(e,t,n,r,s):P2e(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function k2e(e,t,n,r,o){var p,m;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===Ko.tagName&&i==="map"||s===Ta.tagName&&i==="seq"||!i)return fC(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),fC(e,t,n,o,s)}const a=fC(e,t,n,o,s,l),u=(m=(p=l.resolve)==null?void 0:p.call(l,a,v=>o(r,"TAG_RESOLVE_FAILED",v),t.options))!=null?m:a,f=or(u)?u:new $t(u);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function xz(e,t,n){const r=e.offset,o=E2e(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?I2e(e.source):[];let l=i.length;for(let g=i.length-1;g>=0;--g){const C=i[g][1];if(C===""||C==="\r")l=g;else break}if(l===0){const g=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:g,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,u=e.offset+o.length,f=0;for(let g=0;g<l;++g){const[C,w]=i[g];if(w===""||w==="\r")o.indent===0&&C.length>a&&(a=C.length);else{if(C.length<a){const b="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+C.length,"MISSING_CHAR",b)}o.indent===0&&(a=C.length),f=g;break}u+=C.length+w.length+1}for(let g=i.length-1;g>=l;--g)i[g][0].length>a&&(l=g+1);let p="",m="",v=!1;for(let g=0;g<f;++g)p+=i[g][0].slice(a)+`
|
|
692
|
+
`;for(let g=f;g<l;++g){let[C,w]=i[g];u+=C.length+w.length+1;const b=w[w.length-1]==="\r";if(b&&(w=w.slice(0,-1)),w&&C.length<a){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(u-w.length-(b?2:1),"BAD_INDENT",E),C=""}s===$t.BLOCK_LITERAL?(p+=m+C.slice(a)+w,m=`
|
|
693
|
+
`):C.length>a||w[0]===" "?(m===" "?m=`
|
|
694
|
+
`:!v&&m===`
|
|
695
|
+
`&&(m=`
|
|
696
|
+
|
|
697
|
+
`),p+=m+C.slice(a)+w,m=`
|
|
698
|
+
`,v=!0):w===""?m===`
|
|
699
|
+
`?p+=`
|
|
700
|
+
`:m=`
|
|
701
|
+
`:(p+=m+w,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=l;g<i.length;++g)p+=`
|
|
702
|
+
`+i[g][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 E2e({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 m=1;m<o.length;++m){const v=o[m];if(!l&&(v==="-"||v==="+"))l=v;else{const y=Number(v);!i&&y?i=y:a===-1&&(a=e+m)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,f="",p=o.length;for(let m=1;m<t.length;++m){const v=t[m];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 g=v.source;g&&typeof g=="string"&&(p+=g.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function I2e(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 Sz(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const u=(m,v,y)=>n(r+m,v,y);switch(o){case"scalar":l=$t.PLAIN,a=M2e(s,u);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=_2e(s,u);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=T2e(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=em(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function M2e(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}`),Pz(e)}function _2e(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Pz(e.slice(1,-1)).replace(/''/g,"'")}function Pz(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 T2e(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}=$2e(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=R2e[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+=O2e(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 $2e(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 R2e={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
720
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function O2e(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 kz(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?xz(t,e.options.strict,r):Sz(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,u=n&&a?D2e(e.schema,o,a,n,r):t.type==="scalar"?A2e(e,o,t,r):e.schema[Pl];let f;try{const p=u.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);f=Sn(p)?p:new $t(p)}catch(p){const m=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),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 D2e(e,t,n,r,o){var l;if(n==="!")return e[Pl];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[Pl])}function A2e({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[Pl];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[Pl];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 L2e(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 F2e={composeNode:Ez,composeEmptyNode:DI};function Ez(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,u=!0;switch(t.type){case"alias":a=N2e(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=kz(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=k2e(F2e,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=DI(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 DI(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},u){const f={type:"scalar",offset:L2e(t,n,r),indent:-1,source:""},p=kz(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 N2e({options:e},{offset:t,source:n,end:r},o){const s=new k0(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=em(r,i,e.strict,o);return s.range=[t,i,l.offset],l.comment&&(s.comment=l.comment),s}function B2e(e,t,{offset:n,start:r,value:o,end:s},i){const l=Object.assign({_directives:t},e),a=new pf(void 0,l),u={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Ld(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?Ez(u,o,f,i):DI(u,f.end,r,null,f,i);const p=a.contents.range[2],m=em(s,p,!1,i);return m.comment&&(a.comment=m.comment),a.range=[n,p,m.offset],a}function Qf(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 OD(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 AI{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=Qf(n);s?this.warnings.push(new wz(i,r,o)):this.errors.push(new uc(i,r,o))},this.directives=new io({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=OD(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(Vn(s)&&!s.flow&&s.items.length>0){let i=s.items[0];Ln(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:OD(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=Qf(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=B2e(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 uc(Qf(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 uc(Qf(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=em(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 uc(Qf(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 pf(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 z2e(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 uc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Sz(e,t,r);case"block-scalar":return xz(e,t,r)}}return null}function V2e(e,t){var u;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,l=Zh({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),m=l.substring(f+1)+`
|
|
730
|
+
`,v=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return Iz(v,a)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
731
|
+
`}),{type:"block-scalar",offset:s,indent:r,props:v,source:m}}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 j2e(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=Zh({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">":H2e(e,a);break;case'"':pC(e,a,"double-quoted-scalar");break;case"'":pC(e,a,"single-quoted-scalar");break;default:pC(e,a,"scalar")}}function H2e(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}];Iz(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 Iz(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 pC(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 U2e=e=>"type"in e?vy(e):nv(e);function vy(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=vy(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=nv(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=nv(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=nv(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 nv({start:e,key:t,sep:n,value:r}){let o="";for(const s of e)o+=s.source;if(t&&(o+=vy(t)),n)for(const s of n)o+=s.source;return r&&(o+=vy(r)),o}const SS=Symbol("break visit"),W2e=Symbol("skip children"),Mz=Symbol("remove item");function Fc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),_z(Object.freeze([]),e,t)}Fc.BREAK=SS;Fc.SKIP=W2e;Fc.REMOVE=Mz;Fc.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};Fc.parentCollection=(e,t)=>{const n=Fc.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 _z(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=_z(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===SS)return SS;l===Mz&&(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 L0="\uFEFF",F0="",N0="",kh="",G2e=e=>!!e&&"items"in e,K2e=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function q2e(e){switch(e){case L0:return"<BOM>";case F0:return"<DOC>";case N0:return"<FLOW_END>";case kh:return"<SCALAR>";default:return JSON.stringify(e)}}function Tz(e){switch(e){case L0:return"byte-order-mark";case F0:return"doc-mode";case N0:return"flow-error-end";case kh: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 Y2e=Object.freeze(Object.defineProperty({__proto__:null,BOM:L0,DOCUMENT:F0,FLOW_END:N0,SCALAR:kh,createScalarToken:V2e,isCollection:G2e,isScalar:K2e,prettyToken:q2e,resolveAsScalar:z2e,setScalarValue:j2e,stringify:U2e,tokenType:Tz,visit:Fc},Symbol.toStringTag,{value:"Module"}));function ws(e){switch(e){case void 0:case" ":case`
|
|
738
|
+
`:case"\r":case" ":return!0;default:return!1}}const DD="0123456789ABCDEFabcdef".split(""),Q2e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),hC=",[]{}".split(""),X2e=` ,[]{}
|
|
739
|
+
\r `.split(""),mC=e=>!e||X2e.includes(e);class $z{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==="...")&&ws(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]===L0&&(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 F0,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==="---"&&ws(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&ws(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!ws(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===":")&&ws(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(mC)),"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("..."))&&ws(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield N0,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(mC)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||ws(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=>ws(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 kh,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(ws(s)||t&&s===",")break;n=r}else if(ws(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&&hC.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&&hC.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield kh,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(mC)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(ws(n)||t&&hC.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(;!ws(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(Q2e.includes(n))n=this.buffer[++t];else if(n==="%"&&DD.includes(this.buffer[t+1])&&DD.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 Rz{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 Ys(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function AD(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 Oz(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 kg(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 xu(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 LD(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ys(t.start,"explicit-key-ind")&&!Ys(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Oz(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 LI=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 $z,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=Tz(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"&&LD(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=!Ys(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&&AD(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":{AD(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=kg(this.peek(2)),r=xu(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&&!Ys(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(Ys(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ys(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(Oz(n.key)&&!Ys(n.sep,"newline")){const i=xu(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(Ys(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=xu(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]}):Ys(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"&&Ys(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||Ys(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=kg(r),s=xu(o);LD(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=kg(t),r=xu(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=kg(t),r=xu(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 Dz(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Rz||null,prettyErrors:t}}function Z2e(e,t={}){const{lineCounter:n,prettyErrors:r}=Dz(t),o=new LI(n==null?void 0:n.addNewLine),s=new AI(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(gy(e,n)),l.warnings.forEach(gy(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function Az(e,t={}){const{lineCounter:n,prettyErrors:r}=Dz(t),o=new LI(n==null?void 0:n.addNewLine),s=new AI(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 uc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(gy(e,n)),i.warnings.forEach(gy(e,n))),i}function J2e(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=Az(e,n);if(!o)return null;if(o.warnings.forEach(s=>nz(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 eMe(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 pf(e,r,n).toString(n)}const FD=Object.freeze(Object.defineProperty({__proto__:null,Alias:k0,CST:Y2e,Composer:AI,Document:pf,Lexer:$z,LineCounter:Rz,Pair:Xr,Parser:LI,Scalar:$t,Schema:A0,YAMLError:OI,YAMLMap:Ko,YAMLParseError:uc,YAMLSeq:Ta,YAMLWarning:wz,isAlias:Gc,isCollection:Vn,isDocument:af,isMap:cf,isNode:or,isPair:Ln,isScalar:Sn,isSeq:uf,parse:J2e,parseAllDocuments:Z2e,parseDocument:Az,stringify:eMe,visit:_a,visitAsync:P0},Symbol.toStringTag,{value:"Module"}));var FI={},tMe=tt;Object.defineProperty(FI,"__esModule",{value:!0});var NI=FI.default=void 0,nMe=tMe(nt()),rMe=Ze(),oMe=(0,nMe.default)((0,rMe.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");NI=FI.default=oMe;var BI={},sMe=tt;Object.defineProperty(BI,"__esModule",{value:!0});var Lz=BI.default=void 0,iMe=sMe(nt()),lMe=Ze(),aMe=(0,iMe.default)((0,lMe.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");Lz=BI.default=aMe;var zI={},cMe=tt;Object.defineProperty(zI,"__esModule",{value:!0});var PS=zI.default=void 0,uMe=cMe(nt()),dMe=Ze(),fMe=(0,uMe.default)((0,dMe.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");PS=zI.default=fMe;const pMe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function hMe({file:e,addToBar:t,statusApi:n}){var T,F,D;const M=e,{parent:r,children:o,isRoot:s,byMasks:i}=M,l=Ft(M,["parent","children","isRoot","byMasks"]),[a,u]=c.useState(l);c.useEffect(()=>{u(Object.assign(Qb(Kw,()=>null),l))},[e]);const f=c.useMemo(()=>{let N=e.parent;for(;N;){if(N.default!=null)return N.default;N=N.parent}},[e]),{source:p}=e,m=e.type==="folder",v=!e.type&&p&&e.size<0,y=a.url!==void 0,g=p!==void 0,C=g&&m,w=Xo("lg"),b=!y&&(w||g),S=!y&&w||g&&!C,E=e.accept>""||m&&((F=e.can_upload)!=null?F:(T=e.inherited)==null?void 0:T.can_upload),_=m,k=eE(),{movingFile:I}=fi(),{data:R,element:A}=Qn("get_accounts");if(A||!R)return A;const $=R.list,L=!g&&"Works only on folders with source! ",B={can_read:!y,can_see:!0,can_archive:!y,can_list:m,can_upload:m&&g,can_delete:m&&g};return c.createElement(Hc,{values:a,set(N,H){u(K=>{var Q;const te=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?j4(N):K.name;return st(xe({},K),{name:te,[H]:N})})},barSx:xe({gap:2,width:"100%"},k),stickyBar:!0,addToBar:[c.createElement(mn,{icon:Lz,disabled:s||I===e.id,title:"You can also use drag & drop to move items",onClick(){rn.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(PS)),"info")}}),I&&c.createElement(mn,{icon:PS,disabled:e.type!=="folder"||e.id.startsWith(I)||e.id===I.replace(/[^/]+\/?$/,""),title:I,onClick(){return rn.movingFile="",Vz(I,e.id)}}),!s&&c.createElement(mn,{icon:_l,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_vfs",{uris:[e.id]}).then(()=>$a())}),...Xb(t)],onError:kt,save:{sx:Zd(!Yv(a,l)),onClick(){return ot(this,null,function*(){const N=et.omit(a,["ctime","mtime","size","id"]);N.masks||(N.masks=null),yield ct("set_vfs",{uri:a.id,props:N}),N.name!==e.name&&(rn.selectedFiles[0].id=e.parent.id+N.name+(m?"/":"")),$a()})}},fields:[m&&g&&c.createElement(kr,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),s?c.createElement(kr,{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:g&&"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:Ap,files:v||!m,folders:v||m,placeholder:"no",helperText:a.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:mMe,statusApi:n,xs:12},z("can_read","Who can see but not download will be asked to login"),z("can_see","If you can't see, you may still download with a direct link"),z("can_archive","Should this be included when user downloads as ZIP",{lg:m?!0:12}),z("can_list","Permission to see content of folders",{contentText:"subfolders"}),z("can_delete",[L,"Those who can delete can also rename and cut/move"]),z("can_upload",L,{contentText:"subfolders"}),S&&{k:"size",comp:$p,lg:4,toField:xl},b&&{k:"ctime",comp:$p,md:6,lg:S&&4,label:"Created",toField:Gx},b&&{k:"mtime",comp:$p,md:6,lg:S&&4,label:"Modified",toField:Gx},E&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:_?4:12,helperText:c.createElement(Ls,{href:pMe,target:"_blank"},"Example: .zip")},_&&{k:"default",comp:Dn,xl:!0,label:"Serve as website if index.html is found"+(f&&a.default==null?" (inherited)":""),value:(D=a.default)!=null?D:f,toField:Boolean,fromField:N=>N&&!f?"index.html":N?null:!1,helperText:er("...instead of showing list of files")},m&&{k:"masks",multiline:!0,toField:FD.stringify,fromField:N=>N?FD.parse(N):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",Oc("Permissions","(examples)")]}]});function z(N,H,K={}){var Q,X;if(!B[N])return null;const Y=[N,...jc(et.map(B,(J,se)=>!J&&se))],te=et.difference(Object.keys(Kw),Y);return xe({comp:Fz,k:N,lg:6,xl:4,parent:r,accounts:$,helperText:H,isDir:m,otherPerms:te.map(J=>({value:J,label:"As "+kS(J)})),label:"Who can "+kS(N),inherit:(X=(Q=e.inherited)==null?void 0:Q[N])!=null?X:Kw[N],byMasks:i==null?void 0:i[N],fromField:J=>J!=null?J:null},K)}}function kS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function Fz(y){var g=y,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,otherPerms:i,byMasks:l,hideValues:a,isChildren:u,isDir:f,contentText:p="folder content",setApi:m}=g,v=Ft(g,["value","onChange","parent","inherit","accounts","helperText","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const C=(l!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+ND(l!=null?l:r),w=ife(e),b=w?e.this:e,S=c.useMemo(()=>jc([{value:null,label:C},{value:!0},{value:!1},{value:"*"},...i,{value:[],label:"Select accounts"}].map(I=>!(a!=null&&a.includes(I.value))&&xe({label:et.capitalize(ND(I.value))},I))),[r,n,b]),E=500,_=Array.isArray(b);return c.createElement(ze,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${E}ms`}},c.createElement(Kr,st(xe({},v),{value:_?[]:b!=null?b:null,onChange(I,{event:R}){t(w?k(st(xe({},e),{this:I!=null?I:void 0})):I!=null?I:void 0,{was:e,event:R})},options:S})),c.createElement(Fv,{in:_,timeout:E},_&&c.createElement(o0,{label:o!=null&&o.length?"Accounts for "+v.label:"You didn't create any account yet",value:b,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),c.createElement(qd,{},s,!u&&f&&c.createElement(al,{sx:{display:"block",mt:-.5},onClick(I){t(w?b:{this:b,children:b==null?!r:void 0},{was:e,event:I})}},w?"Different permission for ":"Same permission for ",p)),!u&&c.createElement(Fv,{in:w,timeout:E},c.createElement(Fz,{label:"Permission for "+p,parent:n,inherit:r,accounts:o,otherPerms:i,isDir:f,value:w&&(e==null?void 0:e.children),isChildren:!0,hideValues:[b!=null?b:r,b],onChange(I,{event:R}){w&&t(k(st(xe({},e),{children:I})),{was:e,event:R})}})));function k(I){return I.this===I.children?I.this:I}}function ND(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+kS(e):"*UNKNOWN*"+JSON.stringify(e)}function mMe({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)&&new URL(n.baseUrl).hostname,l=c.useMemo(()=>i&&et.find(n.roots,(u,f)=>Pfe(i,f)),[n]);l&&e&&(e=e.indexOf(l)===1?e.slice(l.length):void 0);const a=Di((n==null?void 0:n.baseUrl)||"",e);return c.createElement(ze,{display:"flex"},s?c.createElement($p,{label:"Link",value:a||`outside of configured base address (${i})`,error:o,end:c.createElement(ze,{},c.createElement(mn,{icon:NI,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),c.createElement(mn,{icon:jE,title:"Change",onClick(){Nz().then(r)}}))}):"error")}function Nz(){return ot(this,null,function*(){return new Promise(e=>ot(this,null,function*(){const t=yield ct("get_status"),{base_url:n}=yield ct("get_config",{only:["base_url"]}),r=t.urls.https||t.urls.http,{close:o}=Oo({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(Wk,{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(Qd,{},c.createElement(Pr,{selected:!s,onClick:()=>f("")},"Automatic",!s&&u),r.map(m=>c.createElement(Pr,{key:m,selected:m===s,onClick:()=>f(m)},m,m===s&&u))),c.createElement(Wi,{label:"Custom IP or domain",helperText:er(`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:m=>f(Di(l,m)),start:c.createElement(Kr,{value:l,onChange:m=>a?f(m+a):rr("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(To,{icon:zh,children:"Save",onClick(){return ot(this,null,function*(){s!==n&&(yield ct("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(m){m.endsWith("/")&&(m=m.slice(0,-1)),i(m)}}})}))})}let ES;function gMe(){var b,S,E;const[e]=c.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=fi(),{data:o,reload:s,element:i}=Qn("get_vfs");c.useMemo(()=>t||s(),[t,s]);const l="md",a=Xo(l),u=Qn("get_status"),{data:f}=u,p=c.useMemo(()=>{const _=f==null?void 0:f.baseUrl,k=(f==null?void 0:f.urls.https)||(f==null?void 0:f.urls.http);return _&&!k.includes(_)?[_,...k]:k},[f]);function m(){rn.selectedFiles=[]}const v=n.length?n.length===1?c.createElement(hMe,{addToBar:a&&[c.createElement(ze,{flex:1}),IS(n[0]),c.createElement(mn,{icon:t0,title:"Close",onClick:m})],statusApi:u,file:n[0]}):c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(qn,{variant:"h6"},n.length+" selected"),c.createElement(Yn,{onClick:vMe,startIcon:c.createElement(_l)},"Remove")),c.createElement(Nh,{dense:!0,disablePadding:!0},n.map(_=>c.createElement(fk,{key:_.id},c.createElement(Oi,{primary:_.name,secondary:_.source}))))):null,[y,g]=c.useState(()=>et.noop);if(c.useEffect(()=>{var _;r===((_=n[0])==null?void 0:_.id)&&y()},[r,y]),c.useEffect(()=>{if(a||!v)return;const{close:_}=Oo({title:n.length>1?"Multiple selection":c.createElement(qr,{},IS(n[0]),n[0].name||"Home"),Content:()=>v,onClose:m});return g(()=>_),_},[a,n]),c.useEffect(()=>{if(rn.vfs=void 0,!o)return;e.clear();const{root:_}=o;if(!_)return;_.isRoot=!0,I(_),rn.vfs=_;const k=ES||rn.selectedFiles.map(R=>R.id);ES=void 0,rn.selectedFiles=jc(k.map(R=>e.get(R)));function I(R,A="/",$=void 0){if(R.parent=$,R.id=R.isRoot?"/":Di(A,encodeURIComponent(R.name),R.type==="folder"?"/":""),e.set(R.id,R),!!R.children)for(const L of R.children)I(L,R.id,R)}},[o,e]),i)return e.clear(),i;const w=!((S=(b=o==null?void 0:o.root)==null?void 0:b.children)!=null&&S.length)&&!((E=o==null?void 0:o.root)!=null&&E.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",$ue(" or ",p.slice(0,3).map(_=>c.createElement(Ls,{href:_,target:"frontend"},_)))]};return c.createElement(ri,{container:!0,rowSpacing:1,columnSpacing:2},c.createElement(ri,{item:!0,mb:2,xs:12},c.createElement(kr,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),w&&c.createElement(kr,w)),c.createElement(ri,{item:!0,[l]:7,lg:6,xl:5},c.createElement(qn,{variant:"h6",mb:1},"Virtual File System"),c.createElement(WIe,{statusApi:u}),t&&c.createElement(yMe,{id2node:e,statusApi:u})),a&&v&&c.createElement(ri,{item:!0,[l]:!0,maxWidth:"100%"},c.createElement($b,{sx:{overflow:"initial"}},c.createElement(Rb,{},v))))}function $a(e){ES=e,rn.vfs=void 0}function vMe(){return ot(this,null,function*(){const e=rn.selectedFiles;if(e.length&&(yield pr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);et.pull(t,"/");const{errors:n}=yield ct("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");$a()}catch(t){yield kt(t)}})}const Bz=D3,zz=L3;function yMe({id2node:e,statusApi:t}){const{vfs:n,selectedFiles:r}=fi(),[o,s]=c.useState(r.map(v=>v.id)),[i,l]=c.useState(Array.from(e.keys())),a=c.useRef(),u=c.useRef();if(!n)return null;const f="vfs";return c.createElement(T3,{ref:u,expanded:i,selected:o,multiSelect:!0,id:f,sx:{overflowX:"auto",maxWidth:u.current&&`calc(100vw - ${16+u.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px",paddingLeft:"15px"}},onNodeSelect(v,y){typeof y!="string"&&(s(y),rn.selectedFiles=jc(y.map(g=>e.get(g))))}},m(n));function p(v){return v!==void 0&&v!==!0}function m(v){var S,E,_;let{id:y,name:g,isRoot:C}=v;if(!y)debugger;const w=v.type==="folder";return c.createElement(hS,{ref(k){k==null||k.addEventListener("focusin",I=>I.stopImmediatePropagation())},label:c.createElement(ze,{draggable:!C,onDragStart(){a.current=y},onDragOver(k){if(!w)return;const I=a.current;I!=null&&I.startsWith(y)&&!I.slice(y.length+1).includes("/")||k.preventDefault()},onDrop(){return ot(this,null,function*(){const k=a.current;k&&(yield pr(`Moving ${k} under ${y}`))&&Vz(k,y)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},c.createElement(ze,{display:"flex",flex:0},IS(v),c.createElement(ze,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},v.can_delete!==void 0&&Wr(_l,"Delete permission"),v.can_upload!==void 0&&Wr(Hh,"Upload permission"),!C&&!v.source&&!v.url&&Wr(B3,"Virtual (no source)"),p(v.can_see)&&Wr(F3,"Restrictions on who can see"),p(v.can_read)&&Wr(l0,"Restrictions on who can download"),v.default&&Wr(N3,"Act as website"),v.masks&&Wr(O3,"Masks"),v.size===-1&&Wr(z3,"Source not found"),Ma(et.findKey((S=t.data)==null?void 0:S.roots,k=>k===y.slice(1)),k=>k&&Wr(Lb,`home for ${k}`)))),C?"Home":(()=>{var A;const k=(A=v.parent)==null?void 0:A.source,{source:I}=v,R=k&&(I!=null&&I.startsWith(k))?"."+I.slice(k.length):I;return!R||!(I!=null&&I.endsWith(g))||R.length>45?c.createElement(ze,{lineHeight:"1.2em"},g):c.createElement("span",{},c.createElement("span",{style:{opacity:.4}},R.slice(0,-g.length)),R.slice(-g.length))})()),key:g,collapseIcon:c.createElement(R3,{onClick(k){l(i.filter(I=>I!==y)),k.preventDefault(),k.stopPropagation()}}),expandIcon:c.createElement($3,{onClick(k){l([...i,y]),k.preventDefault(),k.stopPropagation()}}),nodeId:y},C&&!((E=v.children)!=null&&E.length)?c.createElement(hS,{nodeId:"?",label:c.createElement("i",{},"nothing here")}):(_=v.children)==null?void 0:_.map(m))}}function Vz(e,t){ct("move_vfs",{from:e,parent:t}).then(()=>{$a([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},kt)}function IS(e){return e.isRoot?Wr(Lb,"home, or root if you like"):e.type==="folder"?Wr(Bz,"Folder"):e.url?Wr(A3,"Web-link"):Wr(zz,"File")}var BD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function bMe(e,t){return!!(e===t||BD(e)&&BD(t))}function wMe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!bMe(e[n],t[n]))return!1;return!0}function gC(e,t){t===void 0&&(t=wMe);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 CMe=typeof performance=="object"&&typeof performance.now=="function",zD=CMe?function(){return performance.now()}:function(){return Date.now()};function VD(e){cancelAnimationFrame(e.id)}function xMe(e,t){var n=zD();function r(){zD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var vC=-1;function jD(e){if(e===void 0&&(e=!1),vC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),vC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vC}var Su=null;function HD(e){if(e===void 0&&(e=!1),Su===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?Su="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Su="negative":Su="positive-ascending"),document.body.removeChild(t),Su}return Su}var SMe=150,PMe=function(t,n){return t};function kMe(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){Cb(m,p);function m(y){var g;return g=p.call(this,y)||this,g._instanceProps=a(g.props,_x(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:_x(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=gC(function(C,w,b,S){return g.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:w,visibleStartIndex:b,visibleStopIndex:S})}),g._callOnScroll=void 0,g._callOnScroll=gC(function(C,w,b){return g.props.onScroll({scrollDirection:C,scrollOffset:w,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(C){var w=g.props,b=w.direction,S=w.itemSize,E=w.layout,_=g._getItemStyleCache(u&&S,u&&E,u&&b),k;if(_.hasOwnProperty(C))k=_[C];else{var I=n(g.props,C,g._instanceProps),R=o(g.props,C,g._instanceProps),A=b==="horizontal"||E==="horizontal",$=b==="rtl",L=A?I:0;_[C]=k={position:"absolute",left:$?void 0:L,right:$?L:void 0,top:A?0:I,height:A?"100%":R,width:A?R:"100%"}}return k},g._getItemStyleCache=void 0,g._getItemStyleCache=gC(function(C,w,b){return{}}),g._onScrollHorizontal=function(C){var w=C.currentTarget,b=w.clientWidth,S=w.scrollLeft,E=w.scrollWidth;g.setState(function(_){if(_.scrollOffset===S)return null;var k=g.props.direction,I=S;if(k==="rtl")switch(HD()){case"negative":I=-S;break;case"positive-descending":I=E-b-S;break}return I=Math.max(0,Math.min(I,E-b)),{isScrolling:!0,scrollDirection:_.scrollOffset<S?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(C){var w=C.currentTarget,b=w.clientHeight,S=w.scrollHeight,E=w.scrollTop;g.setState(function(_){if(_.scrollOffset===E)return null;var k=Math.max(0,Math.min(E,S-b));return{isScrolling:!0,scrollDirection:_.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(C){var w=g.props.outerRef;g._outerRef=C,typeof w=="function"?w(C):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=C)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&VD(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=xMe(g._resetIsScrolling,SMe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,C){return EMe(g,C),f(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(C){return C.scrollOffset===g?null:{scrollDirection:C.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,C){C===void 0&&(C="auto");var w=this.props,b=w.itemCount,S=w.layout,E=this.state.scrollOffset;g=Math.max(0,Math.min(g,b-1));var _=0;if(this._outerRef){var k=this._outerRef;S==="vertical"?_=k.scrollWidth>k.clientWidth?jD():0:_=k.scrollHeight>k.clientHeight?jD():0}this.scrollTo(s(this.props,g,C,E,this._instanceProps,_))},v.componentDidMount=function(){var g=this.props,C=g.direction,w=g.initialScrollOffset,b=g.layout;if(typeof w=="number"&&this._outerRef!=null){var S=this._outerRef;C==="horizontal"||b==="horizontal"?S.scrollLeft=w:S.scrollTop=w}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,C=g.direction,w=g.layout,b=this.state,S=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var _=this._outerRef;if(C==="horizontal"||w==="horizontal")if(C==="rtl")switch(HD()){case"negative":_.scrollLeft=-S;break;case"positive-ascending":_.scrollLeft=S;break;default:var k=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-k-S;break}else _.scrollLeft=S;else _.scrollTop=S}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&VD(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,C=g.children,w=g.className,b=g.direction,S=g.height,E=g.innerRef,_=g.innerElementType,k=g.innerTagName,I=g.itemCount,R=g.itemData,A=g.itemKey,$=A===void 0?PMe:A,L=g.layout,B=g.outerElementType,z=g.outerTagName,M=g.style,T=g.useIsScrolling,F=g.width,j=this.state.isScrolling,D=b==="horizontal"||L==="horizontal",N=D?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Y=H[1],te=[];if(I>0)for(var Q=K;Q<=Y;Q++)te.push(c.createElement(C,{data:R,key:$(Q,R),index:Q,isScrolling:T?j:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return c.createElement(B||z||"div",{className:w,onScroll:N,ref:this._outerRefSetter,style:x({position:"relative",height:S,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},M)},c.createElement(_||k||"div",{children:te,ref:E,style:{height:D?"100%":X,pointerEvents:j?"none":void 0,width:D?X:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var C=this._getRangeToRender(),w=C[0],b=C[1],S=C[2],E=C[3];this._callOnItemsRendered(w,b,S,E)}}if(typeof this.props.onScroll=="function"){var _=this.state,k=_.scrollDirection,I=_.scrollOffset,R=_.scrollUpdateWasRequested;this._callOnScroll(k,I,R)}},v._getRangeToRender=function(){var g=this.props,C=g.itemCount,w=g.overscanCount,b=this.state,S=b.isScrolling,E=b.scrollDirection,_=b.scrollOffset;if(C===0)return[0,0,0,0];var k=i(this.props,_,this._instanceProps),I=l(this.props,k,_,this._instanceProps),R=!S||E==="backward"?Math.max(1,w):1,A=!S||E==="forward"?Math.max(1,w):1;return[Math.max(0,k-R),Math.max(0,Math.min(C-1,I+A)),k,I]},m}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var EMe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},IMe=kMe({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,m=t.width,v=l==="horizontal"||p==="horizontal",y=v?m:a,g=Math.max(0,u*f-y),C=Math.min(g,n*f),w=Math.max(0,n*f-y+f+i);switch(r==="smart"&&(o>=w-y&&o<=C+y?r="auto":r="center"),r){case"start":return C;case"end":return w;case"center":{var b=Math.round(w+(C-w)/2);return b<Math.ceil(y/2)?0:b>g+Math.floor(y/2)?g:b}case"auto":default:return o>=w&&o<=C?o:o<w?w: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,m=f?u:s,v=Math.ceil((m+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 jz({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(()=>{ct("resolve_path",{path:s,closestFolder:!0}).then(M=>{typeof M.path=="string"&&(l(M.path),f.current=M.path[1]===":")}).finally(()=>u(!0))},[s]);const{list:p,error:m,connecting:v,reload:y}=Sl(a&&"get_ls",{path:i,files:n,fileMask:o});c.useEffect(()=>{C([]),b("")},[i]);const[g,C]=c.useState([]),[w,b]=c.useState(""),S=c.useMemo(()=>et.debounce(M=>b(M)),[]),E=c.useMemo(()=>{const M=new RegExp(et.escapeRegExp(w),"i");return T=>M.test(T)},[w]),[_,k]=c.useState(0),I=c.useMemo(()=>p.filter(M=>E(M.n)),[p,E]),R=f.current?"":"/",A=f.current?"\\":"/",$=cfe(A,i),L=i.length<2;return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",gap:1},c.createElement(Yn,{title:"root",disabled:L,onClick(){l(R)}},c.createElement(S3)),c.createElement(Yn,{disabled:L,title:"parent folder",onClick(){const M=/[\\/]$/.test(i)?i.slice(0,-1):i,T=wfe(M)?R:M.slice(0,M.lastIndexOf(A)||1);l(T)}},c.createElement(WE)),c.createElement(Wi,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(M){return ot(this,null,function*(){if(!M)return l(R);const T=yield ct("resolve_path",{path:M});if(T.isFolder===!1)return n?e([M]):l(M.slice(0,-j4(M)));l(T.path)})}})),m?c.createElement(kr,{severity:"error"},Y4(m)):c.createElement(c.Fragment,{},c.createElement(ze,{ref(M){if(!M)return;const T=(M==null?void 0:M.clientHeight)-1;T-_>1&&k(T)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?c.createElement(IMe,{width:"100%",height:_,itemSize:46,itemCount:I.length,overscanCount:5,children({index:M,style:T}){const F=I[M],j=F.k==="d";return c.createElement(Pr,{style:st(xe({},T),{padding:0}),key:F.n,onClick(){j?l($+F.n):e([$+F.n])}},t&&c.createElement(NN,{checked:g.includes(F.n),disabled:!r&&j,onClick(D){const N=F.n,H=g.filter(K=>K!==N);C(H.length<g.length?H:[...g,N]),D.stopPropagation()}}),c.createElement(hl,{},c.createElement(F.k?Bz:zz)),c.createElement(Oi,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!j&&F.s!==void 0&&c.createElement(qn,{variant:"body2",color:"text.secondary",ml:4,mr:1},xl(F.s)))}}):c.createElement(jh,{flex:1,mt:"4em"},v?i5():"No elements in this folder")),c.createElement(qr,{alignItems:"stretch"},(t||r||!n)&&c.createElement(Yn,{variant:"contained",disabled:!i||!r&&!g.length&&n,sx:{minWidth:"max-content"},onClick(){e(g.length?g.map(M=>$+M):[i])}},n&&(g.length||!r)?`Select (${g.length})`:"Select this folder"),c.createElement(Na,{size:"small",value:w,label:`Filter results (${I.length}${I.length<p.length?"/"+p.length:""})`,onChange(M){S(M.target.value)},sx:{flex:1}}),c.createElement(mn,{icon:x3,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return ot(this,null,function*(){const M=yield Vh("New folder name");if(!M)return!1;yield ct("mkdir",{path:`${i}/${M}`}),y()})}}))))}function Ap(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=Xo("md");return c.createElement(Wi,st(xe({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
|
|
761
|
+
`)&&p,InputProps:{multiline:!0,endAdornment:c.createElement(Cl,{position:"end"},c.createElement(mn,{icon:C3,title:"Browse files...",edge:"end",onClick(){const{close:p}=Oo({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(jz,{multiple:!1,folders:r,files:n,fileMask:o,from:e||s,onSelect(v){return ot(this,null,function*(){var C;let y=v==null?void 0:v[0];if(!y)return;const g=(C=yield ct("get_cwd"))==null?void 0:C.path;y.startsWith(g)&&(y=y.slice(g.length+1)||"."),t(y,{was:e,event:"picker"}),p()})}})}})}}))}}))}var VI={},MMe=tt;Object.defineProperty(VI,"__esModule",{value:!0});var rv=VI.default=void 0,_Me=MMe(nt()),TMe=Ze(),$Me=(0,_Me.default)((0,TMe.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");rv=VI.default=$Me;var jI={},RMe=tt;Object.defineProperty(jI,"__esModule",{value:!0});var Hz=jI.default=void 0,OMe=RMe(nt()),DMe=Ze(),AMe=(0,OMe.default)((0,DMe.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");Hz=jI.default=AMe;var HI={},LMe=tt;Object.defineProperty(HI,"__esModule",{value:!0});var Uz=HI.default=void 0,FMe=LMe(nt()),NMe=Ze(),BMe=(0,FMe.default)((0,NMe.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");Uz=HI.default=BMe;var UI={},zMe=tt;Object.defineProperty(UI,"__esModule",{value:!0});var Wz=UI.default=void 0,VMe=zMe(nt()),jMe=Ze(),HMe=(0,VMe.default)((0,jMe.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");Wz=UI.default=HMe;function UMe(){var k,I,R,$;const e=" — ",{username:t}=fi(),{data:n,reload:r,element:o}=Qn("get_status"),{data:s}=Qn("get_vfs"),{data:i}=Qn(t&&"get_account"),l=Qn("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:a}=Sl("get_plugins"),[u,f]=c.useState(!1),{list:p}=Sl(u&&"get_plugin_updates"),[m,v]=c.useState();if(o||!n)return o;const{http:y,https:g}=n,C=!(y!=null&&y.listening)&&(g!=null&&g.listening)?"s":"",w=C?g:(y==null?void 0:y.listening)&&y,b=w&&`http${C}://`+window.location.hostname+(w.port===(C?443:80)?"":":"+w.port),S=et.pick(n,["http","https"]),E=Qb(S,B=>B.busy?[`port ${B.port} already used by ${B.busy}${e}choose a `,Eg("different port"),` or stop ${B.busy}`]:B.error),_=E&&jc(Object.entries(E).map(([B,z])=>z&&[er(`Protocol <u>${B}</u> cannot work: `),z,(GI(z)||KI(z))&&[e,c.createElement(al,{onClick(){by().then(()=>Bh(999)).then(l.reload).then(r)}},"make one")," or ",e,Eg("provide adequate files")]]));return c.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&oo("","Welcome "+t),_.length?ch(_.map(B=>oo("error",ch(B)))):oo("success","Server is working"),s?!((I=(k=s.root)==null?void 0:k.children)!=null&&I.length)&&!((R=s.root)!=null&&R.source)?oo("warning","You have no files shared",e,GMe("add some")):oo("",er("This is Admin-panel, where you manage your server. Access your files on "),c.createElement(Ls,{target:"frontend",href:"../.."},"Front-end",c.createElement(Uz,{sx:{verticalAlign:"sub",ml:".2em"}}))):c.createElement(zv),!b&&oo("warning","Frontend unreachable: ",et.map(E,(B,z)=>z+" "+(B?"is in error":"is off")).join(", "),!_.length&&[e,Eg("switch http or https on")]),a.find(B=>B.badApi)&&oo("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&oo("",er("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",c.createElement(i0,{to:"accounts"},er("create an account with *admin* permission"))),MS(l,n)&&oo("warning",MS(l,n),e,Eg("set the number of proxies"),e,"unless you are sure and you can ",c.createElement(Yn,{size:"small",onClick(){return ot(this,null,function*(){(yield pr("Go on only if you know what you are doing"))&&(yield ct("set_config",{values:{ignore_proxies:!0}}))&&l.reload()})}},"ignore this warning"),e,Oc("Proxy-warning","Explanation")),((($=l.data)==null?void 0:$.proxies)>0||(n==null?void 0:n.proxyDetected))&&oo("",Oc("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&oo("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",{},er("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)`))),oo("",c.createElement(Ls,{target:"support",href:Yb+"discussions"},"Get support")),p.length>0&&oo("success","Updates available for plugin(s): "+p.map(B=>B.id).join(", ")),n.updatePossible==="local"?c.createElement(To,{icon:rv,onClick:()=>yC()},"Update from local file"):m?Ma(et.find(m,"isNewer"),B=>!m.length||!n.updatePossible&&!B?oo("","No update available"):B&&!n.updatePossible?oo("success",`Version ${B.name} available`):c.createElement(qr,{vert:!0},m.map(z=>c.createElement(qr,{key:z.name,alignItems:"flex-start",flexWrap:"wrap"},c.createElement($b,{},c.createElement(Rb,{},c.createElement(To,st(xe({icon:rv},!z.isNewer&&z.prerelease&&{color:"warning",variant:"outlined"}),{onClick:()=>yC(z.tag_name)}),Di("Install ",z.name,z.isNewer?"":" (older)")),c.createElement(ze,{mt:1},WMe(z.body)))))))):c.createElement(To,{variant:"outlined",icon:rv,onClick(){return f(!0),ct("check_update").then(B=>v(B.options),kt)},onContextMenu(B){return ot(this,null,function*(){if(B.preventDefault(),!n.updatePossible)return kt("Automatic update is only for binary versions","warning");const z=yield Vh("Enter a link to the zip to install");z&&(yield yC(z))})},title:n.updatePossible&&"Right-click if you want to install a zip"},"Check for updates"))}function WMe(e){return er(e,{onText:t});function t(n){return Jk(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>c.createElement(Ls,{href:Yb+"issues/"+r[1],target:"_blank"},c.createElement(Wz)))}}function yC(e){return ot(this,null,function*(){if(!(yield pr("Installation may take less than a minute, depending on the speed of your server")))return;rr("Downloading"),yield ct("update",{tag:e}),rr("Restarting");const t=Date.now();let n;for(;yield ct("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>15e3&&(n=kt("This is taking too long, please check your server","warning")),yield Bh(500);n==null||n.close(),d5(rn,"loginRequired",()=>rn.loginRequired=!1),yield kt("Procedure complete","success"),window.location.reload()})}function oo(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:Hz,info:Xv,"":Xv,warning:r0,error:n0}[e],{sx:{mr:1,color:e?void 0:"primary.main"}}),...t)}function GMe(e="File System page"){return c.createElement(i0,{to:"fs"},e)}function Eg(e="Options page"){return c.createElement(i0,{to:"options"},e)}function MS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var Gz={},KMe=ln&&ln.__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=ln&&ln.__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)},qMe=ln&&ln.__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]}),YMe=ln&&ln.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QMe=ln&&ln.__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)&&qMe(t,e,n);return YMe(t,e),t},XMe=ln&&ln.__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(Gz,"__esModule",{value:!0});var Xf=QMe(c),ZMe=13,JMe=9,e_e=8,t_e=89,Ig=90,n_e=77,UD=57,WD=219,GD=222,KD=192,r_e=27,qD=100,o_e=3e3,s_e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),bC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ov="npm__react-simple-code-editor__textarea",i_e=`
|
|
762
|
+
/**
|
|
763
|
+
* Reset the text fill color so that placeholder is visible
|
|
764
|
+
*/
|
|
765
|
+
.`.concat(ov,`: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(ov,` {
|
|
779
|
+
color: transparent !important;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.`).concat(ov,`::selection {
|
|
783
|
+
background-color: #accef7 !important;
|
|
784
|
+
color: transparent !important;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
`),l_e=function(e){KMe(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>qD){var m=p-qD;n._history.stack=u.slice(m,p),n._history.offset=Math.max(n._history.offset-m,0)}}var v=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&v-y.timestamp<o_e){var g=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(y.value,y.selectionStart).pop())===null||s===void 0?void 0:s.match(g),w=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(g);if(C!=null&&C[1]&&(!((l=w==null?void 0:w[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===r_e&&r.currentTarget.blur();var u=r.currentTarget,f=u.value,p=u.selectionStart,m=u.selectionEnd,v=(i?" ":" ").repeat(s);if(r.keyCode===JMe&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(f,p),g=y.length-1,C=n._getLines(f,m).length-1,w=f.split(`
|
|
789
|
+
`).map(function(B,z){return z>=g&&z<=C&&B.startsWith(v)?B.substring(v.length):B}).join(`
|
|
790
|
+
`);if(f!==w){var b=y[g];n._applyEdits({value:w,selectionStart:b!=null&&b.startsWith(v)?p-v.length:p,selectionEnd:m-(f.length-w.length)})}}else if(p!==m){var y=n._getLines(f,p),S=y.length-1,E=n._getLines(f,m).length-1,b=y[S];n._applyEdits({value:f.split(`
|
|
791
|
+
`).map(function(M,T){return T>=S&&T<=E?v+M:M}).join(`
|
|
792
|
+
`),selectionStart:b&&/\S/.test(b)?p+v.length:p,selectionEnd:m+v.length*(E-S+1)})}else{var _=p+v.length;n._applyEdits({value:f.substring(0,p)+v+f.substring(m),selectionStart:_,selectionEnd:_})}else if(r.keyCode===e_e){var k=p!==m,I=f.substring(0,p);if(I.endsWith(v)&&!k){r.preventDefault();var _=p-v.length;n._applyEdits({value:f.substring(0,p-v.length)+f.substring(m),selectionStart:_,selectionEnd:_})}}else if(r.keyCode===ZMe){if(p===m){var R=n._getLines(f,p).pop(),A=R==null?void 0:R.match(/^\s+/);if(A!=null&&A[0]){r.preventDefault();var $=`
|
|
793
|
+
`+A[0],_=p+$.length;n._applyEdits({value:f.substring(0,p)+$+f.substring(m),selectionStart:_,selectionEnd:_})}}}else if(r.keyCode===UD||r.keyCode===WD||r.keyCode===GD||r.keyCode===KD){var L=void 0;r.keyCode===UD&&r.shiftKey?L=["(",")"]:r.keyCode===WD?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===GD?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===KD&&!r.shiftKey&&(L=["`","`"]),p!==m&&L&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+L[0]+f.substring(p,m)+L[1]+f.substring(m),selectionStart:p,selectionEnd:m+2}))}else(bC?r.metaKey&&r.keyCode===Ig:r.ctrlKey&&r.keyCode===Ig)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(bC?r.metaKey&&r.keyCode===Ig&&r.shiftKey:s_e?r.ctrlKey&&r.keyCode===t_e:r.ctrlKey&&r.keyCode===Ig&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===n_e&&r.ctrlKey&&(!bC||r.shiftKey)&&(r.preventDefault(),n.setState(function(B){return{capture:!B.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,m=r.form,v=r.maxLength,y=r.minLength,g=r.name,C=r.placeholder,w=r.readOnly,b=r.required,S=r.onClick,E=r.onFocus,_=r.onBlur,k=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,R=XMe(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"]),A={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},$=l(o);return Xf.createElement("div",wr({},R,{style:wr(wr({},Zf.container),s)}),Xf.createElement("pre",wr({className:I,"aria-hidden":"true",style:wr(wr(wr({},Zf.editor),Zf.highlight),A)},typeof $=="string"?{dangerouslySetInnerHTML:{__html:$+"<br />"}}:{children:$})),Xf.createElement("textarea",{ref:function(L){return n._input=L},style:wr(wr(wr({},Zf.editor),Zf.textarea),A),className:ov+(u?" ".concat(u):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:S,onKeyUp:k,onFocus:E,onBlur:_,disabled:p,form:m,maxLength:v,minLength:y,name:g,placeholder:C,readOnly:w,required:b,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Xf.createElement("style",{dangerouslySetInnerHTML:{__html:i_e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Xf.Component),a_e=Gz.default=l_e,Zf={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 WI=c.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Ft(o,["style"]);return c.createElement(a_e,xe({highlight:xfe,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:xe({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 c_e(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(Na,st(xe({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:u_e},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),Nb(u)==="Enter")return e(l,{was:t,event:u});if(!u.altKey||u.key!=="Tab")return;u.preventDefault();const f=document.querySelectorAll(D4),p=et.indexOf(f,u.target),m=f.length,v=(p+(u.shiftKey?-1:1)+m)%m;f[v].focus(),console.debug(f[v])}}))}const u_e=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(WI,st(xe({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){Nb(s)==="Enter"&&s.preventDefault()}})))});let xa,_S;const Kz=Rk({changes:{}});Ok(rn,e=>{e.some(t=>t[1][0]==="config")&&qz()});const yy={log:"Access",error_log:"Access error",console:"Console"},YD=Wi;function d_e(){var g;const{data:e,reload:t,element:n}=Qn("get_config",{omit:["vfs"]}),r=fi(),{changes:o}=Dk(Kz),s=Qn(e&&"get_status"),i=s.data,l=_S=s.reload;c.useEffect(()=>void l(),[e]),c.useEffect(()=>()=>_S=void 0,[]);const a=Xo("sm"),u=(g=Qn("get_admins").data)==null?void 0:g.list;if(n)return n;if(s.error)return s.element;const f=xa!==e?rn.config=xa=e:r.config,p={comp:jo,min:1,unit:"KB/s",placeholder:"no limit",sm:6},m={comp:jo,min:0,placeholder:"no limit",toField:C=>C||"",sm:4},v=f.https_port>=0;return c.createElement(Hc,{sx:{maxWidth:"60em"},values:f,set(C,w){rn.config[w]=C},stickyBar:!0,onError:kt,save:{onClick:y,sx:Zd(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[c.createElement(Yn,{onClick(){t(),l()},startIcon:c.createElement(e0)},"Reload"),c.createElement(Yn,{component:RP,to:"/edit",startIcon:c.createElement(NE)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:QD,md:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:QD,md:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(C){return C>=0&&!v&&!f.cert&&by().then(),C}},i&&{k:"listen_interface",comp:Kr,md:4,options:[{label:"any",value:""},"127.0.0.1","::1",...i==null?void 0:i.ips]},v&&f.port>=0&&{k:"force_https",comp:Dn,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},v&&{k:"cert",comp:Ap,md:4,label:"HTTPS certificate file",helperText:Oc("HTTPS#certificate","What is this?"),error:Ma(i==null?void 0:i.https.error,C=>GI(C)&&(i.https.listening?C:[C," - ",c.createElement(al,{key:"fix",onClick:by},"make one")]))},v&&xe({k:"private_key",comp:Ap,md:4,label:"HTTPS private key file"},Ma(i==null?void 0:i.https.error,C=>KI(C)?{error:!0,helperText:C}:null)),{k:"favicon",comp:Ap,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:f_e,sm:12,md:6},{k:"open_browser_at_start",comp:Dn,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Dn,label:"Unprotected admin on localhost",getError:C=>!C&&(u==null?void 0:u.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},st(xe({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),st(xe({k:"max_kbps_per_ip"},p),{label:"Limit output per-IP"}),st(xe({k:Bn.max_downloads},m),{helperText:"Number of simultaneous downloads"}),st(xe({k:Bn.max_downloads_per_ip},m),{label:"Max downloads per-IP"}),st(xe({k:Bn.max_downloads_per_account},m),{label:"Max downloads per-account",helperText:"Overrides other limits"}),{k:"dont_overwrite_uploading",comp:Dn,sm:12,md:6,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:jo,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:jo,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:Dn,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:jo,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:jo,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:Dn,helperText:"Include betas searching updates"},{k:"admin_net",comp:YD,label:"Admin-panel accessible from",placeholder:"any address",helperText:c.createElement(c.Fragment,{},"IP address of browser machine. ",c.createElement(pp))},{k:"descript_ion",comp:Dn,label:"Support file DESCRIPT.ION",helperText:"Old file format, used for comments"},{k:"descript_ion_encoding",label:"Encoding of file DESCRIPT.ION",comp:Kr,disabled:!f.descript_ion,options:["utf8",720,775,819,850,852,862,869,874,808,...et.range(1250,1257),10029,20866,21866]},{k:"proxies",comp:jo,min:0,max:9,label:"How many HTTP proxies between this server and users?",error:MS(f,i),helperText:"Wrong number will prevent detection of users' IP address"},{k:"mime",comp:xh,label:!1,reorder:!0,prepend:!0,md:6,fields:[{k:"k",label:"File mask",helperText:c.createElement(pp),$width:1,$column:{renderCell:({value:C,id:w})=>c.createElement("code",{},C,C==="*"&&w<et.size(f.mime)-1&&Wr(r0,er("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",placeholder:"auto",$width:2,toField:C=>C==="auto"?"":C,fromField:C=>C?C.toLowerCase():"auto",helperText:"Leave empty to get automatic value"}],toField:C=>Object.entries(C||{}).map(([w,b])=>({k:w,v:b})),fromField:C=>Object.fromEntries(C.map(w=>[w.k,w.v]))},{k:"block",label:!1,comp:xh,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:c.createElement(pp)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:c_e,sm:12,getError:C=>pfe(()=>new Function(C)&&null,w=>w.message),helperText:er(`This code works similarly to [a plugin](${Yb}blob/main/dev-plugins.md) (with some limitations)`)},c.createElement(Pd,{},"Log",c.createElement(ze,{fontSize:"small"})),{k:"log",label:yy.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:yy.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Kr,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:YD,label:"Don't log address",md:3,placeholder:"no exception",helperText:c.createElement(pp)},{k:"log_gui",sm:4,comp:Dn,label:"Log interface loading",helperText:"Some requests are necessary to load the interface"},{k:"log_api",sm:4,comp:Dn,label:"Log API requests",helperText:"Requests for commands"},{k:"log_ua",sm:4,comp:Dn,label:"Log User-Agent",helperText:"Contains browser and possibly OS information"},c.createElement(Pd,{},"Front-end",c.createElement(ze,{fontSize:"small"},"Following options affect only the front-end")),{k:"file_menu_on_link",comp:Kr,label:"Access file menu",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:jo,xs:6,sm:4,min:0,max:tfe,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Kr,xs:6,sm:4,options:rfe},{k:"sort_by",comp:Kr,xs:6,sm:4,options:nfe},{k:"invert_order",comp:Dn,xs:6,sm:4},{k:"folders_first",comp:Dn,xs:6,sm:4},{k:"sort_numerics",comp:Dn,xs:6,sm:4,label:"Sort numeric names"}]});function y(){return ot(this,null,function*(){var $,L;if(et.isEmpty(o))return rr("Nothing to save");const C=window.location,w=["port","https_port"];if(w.every(B=>o[B]!==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=[($=i==null?void 0:i.http)==null?void 0:$.listening,(L=i==null?void 0:i.https)==null?void 0:L.listening],S=location.protocol==="https:";S&&(w.reverse(),b.reverse());const E=o[w[0]],_=f[w[1]],k=_>0&&b[1],I=S?"http":"https";if(E<0&&!k)return kt("You cannot switch off this port unless you have a working fixed port for "+I,"warning");if(E===0&&!k)return kt("You cannot randomize this port unless you have a working fixed port for "+I,"warning");if(E>0&&!(yield pr("You are changing the port and you may be disconnected")))return;const R="cert"in o||"private_key"in o;if(S&&R&&!(yield pr("You may disrupt https service, kicking you out")))return;if(yield ct("set_config",{values:o}),E!==void 0||o.listen_interface&&!(C.hostname==="localhost"&&Cfe(o.listen_interface))){yield kt("You are being redirected but in some cases this may fail. Hold on tight!","warning");const B=W4(o.listen_interface||C.hostname);return window.location.href=E<=0?`${S?"http:":"https:"}//${B}:${_}${C.pathname}`:`${C.protocol}//${B}:${E||f[w[0]]}${C.pathname}`}const A="port"in o||"https_port"in o;setTimeout(l,A||R?1e3:0),Object.assign(xa,o),qz(),rr("Changes applied","success")})}}function qz(){const e={};if(rn.config)for(const[t,n]of Object.entries(rn.config))JSON.stringify(n)!==JSON.stringify(xa==null?void 0:xa[t])&&(e[t]=n);Kz.changes=e}function GI(e){return/certificate/.test(e)}function KI(e){return/private key/.test(e)}function QD({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&&(GI(f)||KI(f)?f=void 0:i=!0),c.createElement(ze,{},c.createElement(ze,{display:"flex"},c.createElement(Kr,{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(jo,{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(qd,{error:i},o===!0?"...":f!=null?f:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function f_e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",s="example.com";return c.createElement(ze,{display:"flex"},c.createElement(Kr,{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(Wi,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:c.createElement(pp)}))}function pp(){return Oc("Wildcards","Wildcards supported")}function by(){return ot(this,null,function*(){return new Promise(e=>{const{close:t}=Oo({icon:LE,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(i0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),c.createElement(ze,{},"If you don't have a domain ",c.createElement(al,{onClick:n},"make a self-signed certificate")," but that ",Oc("HTTPS#certificate"," won't be perfect"),"."))});function n(){return ot(this,null,function*(){if(!window.crypto.subtle)return kt("Retry this procedure on localhost","warning");const r=s5();try{yield Bh(50);const o=yield ct("save_pem",yield p_e({}));r(),yield ct("set_config",{values:o}),xa&&Object.assign(xa,o),setTimeout(_S,1e3),Object.assign(rn.config,o),t(),yield kt("Certificate saved","success")}finally{r()}})}})})}function p_e(e){return ot(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 qI={},h_e=tt;Object.defineProperty(qI,"__esModule",{value:!0});var Yz=qI.default=void 0,m_e=h_e(nt()),g_e=Ze(),v_e=(0,m_e.default)((0,g_e.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");Yz=qI.default=v_e;function y_e(){const[e,t]=c.useState(0),n=vfe(yy),{pause:r,pauseButton:o}=c5(),[s,i]=u5(a=>({title:a?"hide APIs":"show APIs",icon:Yz,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Xo("sm")&&{error_log:"Errors"};return c.createElement(c.Fragment,{},c.createElement(qr,{gap:0},c.createElement(gk,{value:e,onChange(a,u){t(u)}},n.map(a=>c.createElement(Hv,{label:et.get(l,a)||yy[a],key:a}))),c.createElement(ze,{flex:1}),i,o),c.createElement(b_e,{key:e,pause:r,showApi:s,file:n[e]}))}function b_e({file:e,pause:t,showApi:n}){const[r,o]=c.useState(!1),[s,i]=c.useState(!1),{list:l,error:a,connecting:u}=Sl("get_log",{file:e},{invert:!0,pause:t,map(p){var v;const{extra:m}=p;return m!=null&&m.country&&!r&&o(!0),m!=null&&m.ua&&!s&&i(!0),p.notes=m!=null&&m.dl?"fully downloaded":p.method==="PUT"||m!=null&&m.ul?"uploaded "+xl(m.size,{sep:Ude}):p.status===Xd&&((v=p.uri)!=null&&v.startsWith(ju+"loginSrp"))?"login failed"+Di(`:
|
|
794
|
+
`,m==null?void 0:m.u):p.notes,p}}),f={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:p})=>new Date(p),renderCell:({value:p})=>c.createElement(c.Fragment,{},p.toLocaleDateString(),c.createElement("br"),p.toLocaleTimeString())};return c.createElement(qh,{error:a,loading:u,rows:c.useMemo(()=>{var p;return n||((p=l==null?void 0:l[0])==null?void 0:p.uri)===void 0?l:l.filter(m=>!m.uri.startsWith(ju))},[l,n]),compact:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[f,{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:p})=>p!=="log"&&p}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user",display:"flex",justifyContent:"space-between",gap:".5em",override:{renderCell:({value:p,row:m})=>{var v;return c.createElement(c.Fragment,{},c.createElement("span",{},p),c.createElement(TS,{code:(v=m.extra)==null?void 0:v.country}))}}}},{headerName:"Country",field:"country",valueGetter:({row:p})=>{var m;return(m=p.extra)==null?void 0:m.country},hidden:!r,hideUnder:"lg",renderCell:({value:p})=>c.createElement(TS,{code:p,def:"-"})},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"lg"},f,{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:p})=>xl(p)},{headerName:"Agent",hideUnder:"md",field:"ua",width:60,hidden:!s,valueGetter:({row:p})=>{var m;return(m=p.extra)==null?void 0:m.ua},renderCell:({value:p})=>p&&Qz(p)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap",renderCell:({value:p})=>p&&er(p)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:p,row:m})=>{var b;const[v,y]=ufe("?",p).map(decodeURIComponent),g=(b=m.extra)==null?void 0:b.ul;if(g)return typeof g=="string"?g:v+g.join(" + ");if(!v.startsWith(ju))return[v,y&&c.createElement(ze,{key:0,component:"span",color:"text.secondary",fontSize:"smaller"},"?",y)];const C=v.slice(ju.length),w=y&&": "+Array.from(new URLSearchParams(y)).map(S=>{var E;return`${S[0]}=${(E=gfe(S[1]))!=null?E:S[1]}`}).join(" ; ");return"API "+C+w}}]})}function Qz(e){const t="https://upload.wikimedia.org/wikipedia/commons/",n=kfe(e),r=i(n,{Chrome:t+"e/e1/Google_Chrome_icon_%28February_2022%29.svg",Chromium:t+"f/fe/Chromium_Material_Icon.svg",Firefox:t+"a/a0/Firefox_logo%2C_2019.svg",Safari:t+"5/52/Safari_browser_logo.svg",Edge:t+"f/f6/Edge_Logo_2019.svg",Opera:t+"4/49/Opera_2015_icon.svg"}),o=et.findKey(w_e,l=>l.test(e)),s=o&&(i(o,{android:t+"d/d7/Android_robot.svg",linux:t+"0/0a/Tux-shaded.svg",win:t+"0/0a/Unofficial_Windows_logo_variant_-_2002%E2%80%932012_%28Multicolored%29.svg"})||{apple:""}[o]);return c.createElement(Ml,{title:e,children:c.createElement("span",{fontSize:"18px"},r||n," ",s)});function i(l,a){const u=a[l];return u&&c.createElement("img",{src:u,style:{height:"1em",verticalAlign:"bottom",marginRight:".2em"}})}}const w_e={apple:/Mac OS|iPhone OS/,win:/Windows NT/,android:/Android/,linux:/Linux/};function C_e(){return c.createElement(c.Fragment,{},c.createElement(S_e),c.createElement(k_e))}const x_e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function S_e(){const{data:e,element:t}=Qn("get_status"),{data:n}=Iue("get_connection_stats");e&&n&&Object.assign(e,n);const r=Xo("xl"),o=Xo("md"),s=Xo("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:xl,minWidth:"4em"}),s&&i("got",{render:xl,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:$S}),o&&i("inSpeed",{label:"Input speed",render:$S}));function i(a,{label:u,minWidth:f,render:p}={}){let m=et.get(e,a);if(m===void 0)return null;typeof m=="string"&&x_e.test(m)&&(m=new Date(m).toLocaleString());let v;return p&&(m=p(m),Array.isArray(m)&&([m,v]=m)),u||(u=et.capitalize(a.replaceAll("_"," "))),c.createElement(kb,{variant:"filled",color:v,label:c.createElement(c.Fragment,{},c.createElement("b",{},u),": ",c.createElement("span",{style:{display:"inline-block",minWidth:f}},m))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function TS({code:e,ip:t,def:n}){const{data:r}=qg(e===void 0&&t&&P_e,t,{delay:100});e||(e=r||"");const o=e&&et.find(RB,{code:e});return o?c.createElement(Ml,{title:o.name,children:c.createElement("span",{},o.flag," ",e)}):c.createElement(c.Fragment,{},n)}function P_e(e){return ot(this,null,function*(){return(yield ct("ip_country",{ips:e})).codes})}function k_e(){var u;const{list:e,error:t,props:n}=Sl("get_connections"),r=Qn("get_config",{only:[Bn.geo_enable]}),[o,s]=c.useState(!0),{pause:i,pauseButton:l}=c5(),a=c.useMemo(()=>e==null?void 0:e.filter(f=>!o||f.op).map((f,p)=>xe({id:p},f)),[!i&&e,o]);return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",alignItems:"center"},c.createElement(Kr,{fullWidth:!1,value:o,onChange:s,options:{"Show only files":!0,"Show all connections":!1}}),c.createElement(ze,{flex:1}),l),c.createElement(qh,{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})=>W4(p)+" :"+f.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((u=r.data)==null?void 0:u[Bn.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:f,row:p})=>c.createElement(TS,{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(y5,{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 m=f==null?void 0:f.lastIndexOf("/");return c.createElement(c.Fragment,{},c.createElement(l5,{icon:p.op==="upload"?Hh:hE,progress:(v=p.opProgress)!=null?v:p.opOffset,offset:p.opOffset,addTitle:p.opTotal&&c.createElement("div",{},"Total: "+xl(p.opTotal)),sx:{mr:1}}),c.createElement(ze,{},f.slice(m+1),m>0&&c.createElement(ze,{ml:2,fontSize:"x-small",color:"text.secondary"},f.slice(0,m))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:f,row:p})=>$S(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})=>xl(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,Wr(l0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:f})=>Qz(f)}],actionsProps:{hideUnder:"sm"},actions:({row:f})=>[c.createElement(mn,{icon:g5,title:"Disconnect",onClick:()=>ct("disconnect",et.pick(f,["ip","port"])).then(()=>rr("Disconnection requested"))}),c.createElement(mn,{icon:v5,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>E_e(f.ip)})]}))}function E_e(e){return _fe("block",t=>[...t,{ip:e}])}function $S(e){return e===void 0?"":afe(e*1e3,{digits:1})}var YI={},I_e=tt;Object.defineProperty(YI,"__esModule",{value:!0});var Xz=YI.default=void 0,M_e=I_e(nt()),__e=Ze(),T_e=(0,M_e.default)((0,__e.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");Xz=YI.default=T_e;var QI={},$_e=tt;Object.defineProperty(QI,"__esModule",{value:!0});var XI=QI.default=void 0,R_e=$_e(nt()),O_e=Ze(),D_e=(0,R_e.default)((0,O_e.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");XI=QI.default=D_e;var ZI={},A_e=tt;Object.defineProperty(ZI,"__esModule",{value:!0});var Zz=ZI.default=void 0,L_e=A_e(nt()),F_e=Ze(),N_e=(0,L_e.default)((0,F_e.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");Zz=ZI.default=N_e;var JI={},B_e=tt;Object.defineProperty(JI,"__esModule",{value:!0});var Jz=JI.default=void 0,z_e=B_e(nt()),V_e=Ze(),j_e=(0,z_e.default)((0,V_e.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");Jz=JI.default=j_e;var e2={},H_e=tt;Object.defineProperty(e2,"__esModule",{value:!0});var eV=e2.default=void 0,U_e=H_e(nt()),W_e=Ze(),G_e=(0,U_e.default)((0,W_e.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");eV=e2.default=G_e;var t2={},K_e=tt;Object.defineProperty(t2,"__esModule",{value:!0});var tV=t2.default=void 0,q_e=K_e(nt()),XD=Ze(),Y_e=(0,q_e.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");tV=t2.default=Y_e;function Q_e({account:e,done:t,groups:n,addToBar:r,reload:o}){const{username:s}=fi(),[i,l]=c.useState(e),[a,u]=c.useState([]);c.useEffect(()=>{var y,g;l(e),u(n.filter(C=>C!==e.username)),Ife()||(g=(y=m.current)==null?void 0:y.querySelector("input"))==null||g.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,m=c.useRef();return c.createElement(Hc,{formRef:m,values:i,set(y,g){l(C=>st(xe({},C),{[g]:y}))},barSx:xe({gap:2,width:"100%"},eE()),stickyBar:!0,addToBar:[!f&&c.createElement(mn,st(xe({icon:_l,title:"Delete",confirm:"Delete?"},s===e.username&&{disabled:!0,title:"Cannot delete current account"}),{onClick:()=>ct("del_account",{username:e.username}).then(o)})),c.createElement(mn,{icon:tV,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ct("invalidate_sessions",{username:e.username}).then(o)}),...Xb(r)],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:y=>y!==e.username&&ct("get_account",{username:y}).then(g=>(g==null?void 0:g.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(y,{values:g})=>(y||"")!==(g.password||"")&&"Enter same password"},{k:"disabled",comp:Dn,fromField:y=>!y,toField:y=>!y,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:Dn,xs:"auto",helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},xe({k:"admin",comp:Dn,fromField:y=>y||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:Dn,fromField:y=>!y,toField:y=>!y,label:"Allow password change",xs:"auto"},p&&c.createElement(kr,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:o0,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.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:Zd(!Yv(i,e)),onClick(){return ot(this,null,function*(){const E=i,{password:y="",password2:g,adminActualAccess:C,hasPassword:w}=E,b=Ft(E,["password","password2","adminActualAccess","hasPassword"]);if(f){const _=yield ct("add_account",b);if(y)try{yield RS(i.username,y)}catch(k){throw ct("del_account",{username:i.username}).then(),k}t(_==null?void 0:_.username),rr("Account created","success");return}const S=yield ct("set_account",{username:e.username,changes:b});y&&(yield RS(s,y)),e.username===s&&(rn.username=i.username),setTimeout(()=>rr("Account modified","success"),1),t(S==null?void 0:S.username)})}}})}function RS(e,t){return ot(this,null,function*(){const n=new gc.SRPRoutines(new gc.SRPParameters),r=yield gc.createVerifierAndSalt(n,e,t);return ct("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==Gde)throw o;return ct("change_password_others",{username:e,newPassword:t})})})}const wC={fieldSeparator:",",lineSeparator:`
|
|
795
|
+
`,quote:'"'},Mg={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class ZD extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class X_e{constructor(t=wC){bi(this,"_rows",[]);bi(this,"_row",[]);bi(this,"_cell","");bi(this,"_options",wC);bi(this,"_state",xe({},Mg));bi(this,"_index",0);bi(this,"_current","");bi(this,"_previous","");bi(this,"_quoteState",xe({},Mg));this._options=Object.assign({},wC,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 ZD(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=xe({},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 ZD(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=xe({},Mg),this._index=0,this._current="",this._previous="",this._quoteState=xe({},Mg)}}function Z_e(e){return ot(this,null,function*(){G4(t=>ot(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield K4(n);if(!r)return;const s=new X_e().parse(r.trim()),i={comp:jo,min:1,max:9,xs:6,typing:!0},l={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},a=yield uh({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:l,form:p=>{const m=s[p.skipFirstLines||0],v=f(m,xe(xe({},l),p));return{save:{startIcon:c.createElement(Hh),children:"Go"},fields:[c.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:jo,min:0,max:s.length-1,typing:!0,md:6,helperText:c.createElement(c.Fragment,{},"First line: ",c.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:Dn,md:6},st(xe({k:"usernameColumn"},i),{helperText:c.createElement(c.Fragment,{},"First username: ",v.u)}),st(xe({k:"passwordColumn"},i),{helperText:c.createElement(c.Fragment,{},"First password: ",v.p)}),st(xe({k:"groupColumn"},i),{helperText:c.createElement(c.Fragment,{},"First group: ",v.g)}),st(xe({k:"redirectColumn"},i),{helperText:c.createElement(c.Fragment,{},"First redirect: ",v.r)})]}}});if(!a)return;const{close:u}=Oo({title:"Importing...",Content(){const[p,m]=c.useState(0),[v,y]=c.useState();return c.useEffect(()=>{let g=!1;return setTimeout(()=>ot(this,null,function*(){var E;if(g)return;let C=0,w=0,b=a.skipFirstLines;const S=s.length-b;try{let _=0;for(const k of s){if(g)return;if(b){b--;continue}const I=f(k,a);y(I),m(_++/S),yield ct("add_account",{username:I.u,belongs:(E=I.g)==null?void 0:E.split(","),redirect:I.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(I.p)return RS(I.u,I.p)},R=>{if(R.code===Kde)return w++;C++})}}finally{u();const _=S-C-w,k="Results: "+[Di("",C," failed"),Di("",_," succeeded"),Di("",w," skipped because already present")].filter(Boolean).join(", ");kt(k,!_&&C?"error":C||w?"warning":"success"),e==null||e()}})),()=>{g=!0}},[]),c.createElement(ze,{display:"flex",gap:2,alignItems:"center"},c.createElement(l5,{icon:XI,progress:p}),v==null?void 0:v.u)}});function f(p,m){return{u:p[m.usernameColumn-1],p:p[m.passwordColumn-1],g:p[m.groupColumn-1],r:p[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function J_e(){const{username:e}=fi(),{data:t,reload:n,element:r}=Qn("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(g=>(g==null?void 0:g.username)===y)))},[t]);const l=t==null?void 0:t.list,a=i&&et.find(l,{username:o[0]}),f=Xo("md"),p=!(o.length>0)||!l?null:i&&o.length>1?c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(qn,{variant:"h6"},o.length+" selected"),c.createElement(Yn,{onClick:v,startIcon:c.createElement(_l)},"Remove")),c.createElement(Nh,{},o.map(y=>c.createElement(fk,{key:y},c.createElement(Oi,{},y))))):Ma(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},y=>c.createElement(Q_e,{account:y,groups:l.filter(g=>!g.hasPassword).map(g=>g.username),addToBar:f&&[c.createElement(ze,{flex:1}),JD(y,{fontSize:"large",sx:{p:1}}),c.createElement(mn,{icon:t0,title:"Close",onClick:m})],reload:n,done(g){s([g]),n()}}));return c.useEffect(()=>{if(f||!p||!o.length)return;const{close:y}=Oo({title:et.isString(o)?et.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:m});return y},[f,o,a]),r||c.createElement(ri,{container:!0,maxWidth:"80em"},c.createElement(ri,{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(H3,{variant:"contained",startIcon:c.createElement(eV),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>Z_e(n)}]},"Add"),s0(n),(l==null?void 0:l.length)>0&&c.createElement(qn,{p:1},`${l.length} account(s)`))),c.createElement(ri,{item:!0,md:5},!(l!=null&&l.length)&&c.createElement(kr,{severity:"info"},er`To access administration <u>remotely</u> you will need to create a user account with admin permission`),c.createElement(T3,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(y,g){s(g)}},l==null?void 0:l.map(y=>{var g,C;return c.createElement(hS,{key:y.username,nodeId:y.username,label:c.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},JD(y),y.adminActualAccess&&Wr(Zz,"Can login into Admin"),y.username,!!((g=y.belongs)!=null&&g.length)&&c.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=y.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&c.createElement(ri,{item:!0,md:7},c.createElement($b,{},c.createElement(Rb,{},p))));function m(){s([])}function v(){return ot(this,null,function*(){if(!(o.length>et.pull(o,e).length&&!(yield pr(`Will delete the rest but not current account (${e})`)))&&o.length&&(yield pr(`Delete ${o.length} item(s)?`)))try{const y=[];for(const g of o)(yield ct("del_account",{username:g}).then(()=>1,()=>0))||y.push(g);if(n(),y.length)return kt("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield kt(y)}})}}function JD(e,t={}){return c.createElement(c.Fragment,{},c.createElement(e.hasPassword?Jz:XI,t),e.disabled&&c.createElement(Xz))}var n2={},eTe=tt;Object.defineProperty(n2,"__esModule",{value:!0});var nV=n2.default=void 0,tTe=eTe(nt()),nTe=Ze(),rTe=(0,tTe.default)((0,nTe.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");nV=n2.default=rTe;function oTe(){const{element:e}=Qn("get_config",{only:[]}),{username:t}=fi();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(To,{icon:xk,size:"large",variant:"contained",onClick:()=>ct("logout").catch(r=>r.code!==Xd&&kt(r))},"I want to logout")):c.createElement(kr,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),c.createElement(To,{icon:nV,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return ot(this,null,function*(){yield ct("quit"),yield kt("Good-bye","success"),location.reload()})}},"Quit HFS"))}function sTe(){const{list:e,error:t,connecting:n,reload:r}=Sl("get_langs"),o=c.useMemo(()=>["en",...et.uniq(e.map(l=>l.code))],[e]),s=Xo("md");return c.createElement(c.Fragment,{},s&&c.createElement(kr,{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(Yn,{variant:"contained",startIcon:c.createElement(Hh),onClick:i},"Add"),c.createElement(ze,{flex:1}),c.createElement(iTe,{langs:o})),c.createElement(qh,{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:_l,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return ot(this,null,function*(){yield ct("del_lang",et.pick(l,"code")),r(),rr("Deleted")})}})]})));function i(){G4(l=>ot(this,null,function*(){if(!l)return;const a={};for(const u of l)a[u.name]=yield K4(u);try{yield ct("add_langs",{langs:a}),r(),rr("Loaded")}catch(u){yield kt(u)}}),{accept:".json"})}}function iTe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Qn("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(Kr,{fullWidth:!1,disabled:o||typeof l=="string",value:l!=null?l:s,onChange(f){return ot(this,null,function*(){a(f);try{yield ct("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 r2={},lTe=tt;Object.defineProperty(r2,"__esModule",{value:!0});var OS=r2.default=void 0,aTe=lTe(nt()),cTe=Ze(),uTe=(0,aTe.default)((0,cTe.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");OS=r2.default=uTe;var o2={},dTe=tt;Object.defineProperty(o2,"__esModule",{value:!0});var rV=o2.default=void 0,fTe=dTe(nt()),pTe=Ze(),hTe=(0,fTe.default)((0,pTe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");rV=o2.default=hTe;function eA({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=Sl(e?"get_plugin_updates":"get_plugins"),s="small";return c.createElement(qh,{error:zk(r,cV),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:oV,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:rV,title:i.updated?"Already updated":"Update",disabled:i.updated,size:s,onClick(){return ot(this,null,function*(){yield ct("update_plugin",{id:l},{timeout:!1}).catch(m=>{var v;throw m.code!==Wx?m:Error("Failed dependencies: "+((v=m.cause)==null?void 0:v.map(y=>Di('plugin "',y.id||y.repo,'" ')+y.error).join("; ")))}),n({id:l},{updated:!0}),rr("Plugin updated")})}})]:[c.createElement(mn,i.started?{icon:OS,title:c.createElement(ze,{},`Stop ${l}`,c.createElement("br"),"Started "+new Date(i.started).toLocaleString()),size:s,color:"success",onClick(){return ot(this,null,function*(){yield ct("stop_plugin",{id:l}),rr("Plugin stopped",c.createElement(OS,{color:"warning"}))})}}:{icon:Jb,title:`Start ${l}`,size:s,onClick:()=>iV(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 ot(this,null,function*(){const m=yield ct("get_plugin",{id:l});let v=m.config;const y=yield uh({title:`Options for ${l}`,form:C=>({before:c.createElement(ze,{mx:2,mb:3},i.description),fields:sV(i.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[c.createElement(To,{variant:"outlined",onClick:()=>g(C)},"Save")]}),values:m.config,dialogProps:et.merge({sx:{m:"auto"}},i.configDialog)});if(y&&!et.isEqual(v,y))return g(y);function g(C){return ot(this,null,function*(){yield ct("set_plugin",{id:l,config:C}),Object.assign(v,C),rr("Configuration saved")})}})}}),c.createElement(mn,{icon:_l,title:"Uninstall",size:s,confirm:"Remove?",onClick(){return ot(this,null,function*(){yield ct("uninstall_plugin",{id:l}),rr("Plugin uninstalled")})}})]})}function oV({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(Ls,{href:n,target:"plugin"},t):n?Ma(n==null?void 0:n.split("/"),o=>c.createElement(c.Fragment,{},c.createElement(Ls,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,s=!1){return o&&c.createElement(Ml,{title:o,children:c.createElement(n0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function sV(e){return Object.entries(e).map(([t,n])=>{if(!et.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=mTe[r];return a===xh&&(s=sV(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),xe({k:t,comp:a,fields:s},l)})}const mTe={string:Wi,number:jo,boolean:Dn,select:Kr,multiselect:o0,array:xh,real_path:Ap};function iV(e){return ot(this,null,function*(){try{return yield ct("start_plugin",{id:e}),rr("Plugin started",c.createElement(Jb,{color:"success"})),!0}catch(t){kt(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var s2={},gTe=tt;Object.defineProperty(s2,"__esModule",{value:!0});var lV=s2.default=void 0,vTe=gTe(nt()),yTe=Ze(),bTe=(0,vTe.default)((0,yTe.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");lV=s2.default=bTe;function wTe(){const[e,t]=c.useState(""),n=Tk(e,1e3),{list:r,error:o,initializing:s}=Sl("get_online_plugins",{text:n}),i=fi();return c.createElement(c.Fragment,{},c.createElement(Wi,{value:e,onChange:t,start:c.createElement(lV),typing:!0,label:"Search text"}),c.createElement(qh,{error:zk(o,cV),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(rn.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:oV,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:hE,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 ot(this,null,function*(){if(a.missing&&!(yield pr("This will also install: "+et.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(u,p).catch(m=>{if(m.code!==Wx)return kt(m);const v=c.createElement(c.Fragment,{},"This plugin has some dependencies unmet:",m.data.map(y=>c.createElement("li",{key:y.repo},y.repo+": "+y.error)));return kt(v,"error")})})}})]}));function l(a,u){return ot(this,null,function*(){try{const f=yield ct("download_plugin",{id:a,branch:u},{timeout:!1});(yield pr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield iV(f.id))}catch(f){let p=!1;if(f.code===Wx)for(const m of f.cause)m.error==="missing"&&(rr("Installing dependency: "+m.repo),yield l(m.repo),p=!0);if(p)return l(a,u);throw f}})}}const aV={Installed:eA,"Search online|Search":wTe,"Check updates|Updates":()=>c.createElement(eA,{updates:!0})},CTe=Object.keys(aV),xTe=Object.values(aV),cV={ENOTFOUND:"Cannot reach github.com"};function STe(){const[e,t]=c.useState(0),n=!Xo("sm");return c.createElement(c.Fragment,{},c.createElement(gk,{value:e,onChange(r,o){t(o)}},CTe.map(r=>c.createElement(Hv,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),c.createElement(xTe[e]))}function PTe(){const{data:e,reload:t}=Qn("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=et.sortBy(Object.keys(o),m=>!isNaN(+m));return p.includes(n)||r(et.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(m=>{var v;return{value:m,label:(Di("HTTP ",Qde[m])||et.startCase(m))+((v=o[m])!=null&&v.trim()?" *":"")}})},[Tk(o,500)]),u=c.useMemo(()=>!et.isEqualWith(i,o,(p,m)=>!p&&!m||void 0),[i,o]);return c.createElement(c.Fragment,{},c.createElement(kr,{severity:"info"},er("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. "),Oc("customization","More help")),c.createElement(ze,{display:"flex",alignItems:"center",gap:1,mb:1},c.createElement(Kr,{label:"Section",value:n,options:a,onChange:r}),s0(t),c.createElement(mn,{icon:zh,title:`Save
|
|
796
|
+
(ctrl+enter)`,sx:Zd(u),onClick:f})),c.createElement(WI,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(m=>st(xe({},m),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(Nb(p))&&(f().then(),p.preventDefault())}}));function f(){return ct("set_custom_html",{sections:o}).then(()=>l(o))}}var i2={},kTe=tt;Object.defineProperty(i2,"__esModule",{value:!0});var uV=i2.default=void 0,ETe=kTe(nt()),_g=Ze(),ITe=(0,ETe.default)([(0,_g.jsx)("path",{d:"M17 11h2v2h-2v2h2v2h-2v2h4V5h-9v1.4l5 3.57V11zm0-4h2v2h-2V7z",opacity:".3"},"0"),(0,_g.jsx)("path",{d:"M10 3v1.97l.96.69L12 6.4V5h9v14h-4v2h6V3z"},"1"),(0,_g.jsx)("path",{d:"M3 12v7h2v-5h6v5h2v-7L8 8.5z",opacity:".3"},"2"),(0,_g.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");uV=i2.default=ITe;var l2={},MTe=tt;Object.defineProperty(l2,"__esModule",{value:!0});var dV=l2.default=void 0,_Te=MTe(nt()),tA=Ze(),TTe=(0,_Te.default)([(0,tA.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,tA.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");dV=l2.default=TTe;var a2={},$Te=tt;Object.defineProperty(a2,"__esModule",{value:!0});var fV=a2.default=void 0,RTe=$Te(nt()),nA=Ze(),OTe=(0,RTe.default)([(0,nA.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,nA.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");fV=a2.default=OTe;var c2={},DTe=tt;Object.defineProperty(c2,"__esModule",{value:!0});var pV=c2.default=void 0,ATe=DTe(nt()),LTe=Ze(),FTe=(0,ATe.default)((0,LTe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");pV=c2.default=FTe;var u2={},NTe=tt;Object.defineProperty(u2,"__esModule",{value:!0});var hV=u2.default=void 0,BTe=NTe(nt()),zTe=Ze(),VTe=(0,BTe.default)((0,zTe.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");hV=u2.default=VTe;const rA=RB.filter(e=>Iwe.includes(e.code)),oA="https://portforward.com/",CC=1080,xC=`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 jTe(){var R,A,$,L;const[e,t]=c.useState(),[n,r]=c.useState(!1),[o,s]=c.useState(!1),i=Qn("get_status"),l=Qn("get_config",{only:["base_url"]}),a=Ma([(A=(R=i.data)==null?void 0:R.http)==null?void 0:A.error,(L=($=i.data)==null?void 0:$.https)==null?void 0:L.error],([B,z])=>B&&z?"error":B||z?"warning":"success"),u=Qn("get_nat"),{data:f}=u,p=f==null?void 0:f.internalPort,m=(f==null?void 0:f.mapped)&&f.mapped.private.port!==p&&f.mapped.private.port,v=(f==null?void 0:f.externalIp)&&(f==null?void 0:f.publicIps)&&!f.publicIps.includes(f.externalIp),y=I4();return c.useEffect(()=>{y.state&&E(!0).then()},[y.state]),c.createElement(qr,{vert:!0,gap:"2em",maxWidth:"40em"},c.createElement(kr,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),b(),S(),C(),g());function g(){const B=c.useMemo(()=>et.sortBy(rA,"name").map(z=>({value:z.code,label:`${z.flag} ${z.name}`})),[rA]);return c.createElement(PC,{title:"Geo IP",icon:Uv},c.createElement(vS,{keys:[Bn.geo_enable,Bn.geo_allow,Bn.geo_list,Bn.geo_allow_unknown],form:z=>{var M;return{fields:[{k:Bn.geo_enable,comp:Dn,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...z[Bn.geo_enable]?[{k:Bn.geo_allow,comp:Kr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},z[Bn.geo_allow]!=null&&{k:Bn.geo_list,comp:o0,label:`Selected countries (${((M=z[Bn.geo_list])==null?void 0:M.length)||0})`,placeholder:"none",options:B,clearable:!0},z[Bn.geo_allow]!=null&&{k:Bn.geo_allow_unknown,comp:Kr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function C(){const[B,z]=c.useState(),M=Qn("get_cert");if(c.useEffect(()=>{ct("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(z)},[]),!i||!B)return c.createElement(Vi);const{https:T}=i.data||{},F=(T==null?void 0:T.port)===Hde,j=T==null?void 0:T.error;return u.element||i.element||c.createElement(PC,{title:"HTTPS",icon:l0,color:T!=null&&T.listening&&!j?"success":"warning"},j?c.createElement(kr,{severity:"warning"},j):F&&c.createElement(al,{onClick:w},"Not enabled"),M.element||Ma(M.data,N=>{var H,K;return N.none?c.createElement(al,{onClick:()=>by().then(M.reload)},"No certificate configured"):c.createElement(ze,{},c.createElement(LE,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",c.createElement("ul",{},c.createElement("li",{},"Domain: ",((H=N.altNames)==null?void 0:H.join(" + "))||"-"),c.createElement("li",{},"Issuer: ",((K=N.issuer)==null?void 0:K.O)||c.createElement("i",{},"self-signed")),c.createElement("li",{},"Validity: ",["validFrom","validTo"].map(Y=>Gx(N[Y])).join(" – "))))}),c.createElement(Pd),c.createElement(Hc,{gap:1,gridProps:{rowSpacing:1},values:B,set(N,H){z(K=>{const Y=st(xe({},K),{[H]:N});return ct("set_config",{values:Y}),Y})},fields:[er("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:er(`Example: your.domain.com
|
|
797
|
+
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:Dn,disabled:!B.acme_domain}],save:{children:"Request",startIcon:c.createElement(pV),onClick(){return ot(this,null,function*(){var te;const[N,...H]=B.acme_domain.split(",");N===((te=M.data.subject)==null?void 0:te.CN)&&Number(new Date(M.data.validTo))-Date.now()>=30*efe&&!(yield pr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield pr("HFS must temporarily serve HTTP on public port 80, and your router must be configured or this operation will fail"))||(yield ct("check_domain",{domain:N}).catch(Q=>pr(String(Q),{confirmText:"Continue anyway"})))===!1||(yield ct("make_cert",{domain:N,altNames:H,email:B.acme_email},{timeout:2e4}).then(()=>ot(this,null,function*(){yield kt("Certificate created","success"),F&&(yield w()),M.reload()}),kt))})}}}))}function w(){return ot(this,null,function*(){if(!(yield pr(`HTTPS is currently disabled.
|
|
798
|
+
Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const B=s5();try{yield ct("set_config",{values:{https_port:443}}),yield Bh(1e3),i.reload()}finally{B()}})}function b(){var T;const B=(T=l.data)==null?void 0:T.base_url,z=B&&new URL(B).hostname,M=!bfe(z)&&z;return l.element||c.createElement(PC,{icon:Uv,title:"Address / Domain"},c.createElement(qr,{flexWrap:"wrap"},B||"Automatic, not configured",c.createElement(qr,{},c.createElement(To,{size:"small",variant:"outlined",onClick:()=>void Nz().then(l.reload)},"Change"),M&&c.createElement(To,{size:"small",variant:"outlined",onClick:()=>ct("check_domain",{domain:M}).then(()=>kt("Domain seems ok","success"))},"Check"))),c.createElement(vS,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:Dn,label:"Accept requests only using domain (and localhost)"}]}}))}function S(){if(u.error)return u.element;if(!f)return c.createElement(Vi);const B=f==null?void 0:f.publicIps.includes(f==null?void 0:f.localIp);return c.createElement(qr,{justifyContent:"space-around"},c.createElement(SC,{name:"Server",icon:B?hV:uV,color:a,ip:f==null?void 0:f.localIp,below:p&&c.createElement(ze,{fontSize:"smaller"},"port ",p)}),!B&&c.createElement(sA),!B&&c.createElement(SC,{name:"Router",icon:fV,ip:f==null?void 0:f.gatewayIp,color:(f==null?void 0:f.mapped)&&(m?"warning":"success"),below:o?c.createElement(zv,{sx:{height:"1em"}}):c.createElement(al,{fontSize:"smaller",display:"block",onClick:_},"port ",m?"is wrong":(f==null?void 0:f.externalPort)||"unknown")}),c.createElement(sA),c.createElement(SC,{name:"Internet",icon:dV,ip:f==null?void 0:f.publicIps,color:e?"success":e===!1?"error":v?"warning":void 0,below:n?c.createElement(zv,{sx:{height:"1em"}}):c.createElement(ze,{fontSize:"smaller"},v&&c.createElement(al,{display:"block",onClick:()=>kt(xC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(f==null?void 0:f.publicIps.length)>0&&f.internalPort&&c.createElement(al,{onClick:()=>E()},"Verify"))}))}function E(B=!1){return ot(this,null,function*(){var M;yield u.loading;const z=u.getData();if(z&&(t(void 0),!(!B&&!(yield pr("This test will check if your server is working properly on the Internet"))))){r(!0);try{const T=(M=l.data)==null?void 0:M.base_url,F=T&&(yield ct("self_check",{url:T}).catch(()=>kt(er(`Sorry, we couldn't verify your configured address ${T} 😰
|
|
799
|
+
still, we are going to test your IP address 🤞`),"warning")));if(F!=null&&F.success)return t(!0),kt(c.createElement(ze,{},"Your server is responding correctly over the Internet:",c.createElement("ul",{},c.createElement("li",{},F.url))),"success");(F==null?void 0:F.success)===!1&&(yield kt(er(`Your configured address ${T} doesn't seem to work 😰
|
|
800
|
+
still, we are going to test your IP address 🤞`),"warning"));const j=yield ct("self_check",{});if(j.some(K=>K.success)){t(!0);const K=F.success===!1&&er(`Your server is responding over the Internet 👍
|
|
801
|
+
but not with configured address ${T} 👎
|
|
802
|
+
just on your IP:`);return kt(c.createElement(ze,{},K||"Your server is responding correctly over the Internet:",c.createElement("ul",{},...j.map(Y=>c.createElement("li",{},Y.url)))),K?"warning":"success")}if(t(!1),m)return k().then(y);if(v)return kt(xC,"warning");const D="We couldn't reach your server from the Internet. ";if(z.upnp&&!z.mapped)return pr(D+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(K=>ot(this,null,function*(){if(K){try{yield I(z.internalPort,"","")}catch(Y){yield I(CC,"")}rr("Port forwarded, now we verify again","success"),y()}}));const N=yield ct("get_config",{only:[Bn.geo_enable,Bn.geo_allow]}),{close:H}=kt(c.createElement(ze,{},D+"Possible causes:",c.createElement("ul",{},N[Bn.geo_enable]&&N[Bn.geo_allow]!=null&&c.createElement("li",{},"You may be blocking a country from where the test is performed"),!z.upnp&&c.createElement("li",{},"Your router may need to be configured. ",c.createElement(Ls,{href:oA,target:"help"},"How?")),c.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(z.externalPort||z.internalPort)<=1024&&c.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",z.upnp&&c.createElement(Yn,{size:"small",onClick(){H(),I(CC).then(y)}},"Try "+CC)),z.mapped&&c.createElement("li",{},"A bug in your modem/router, try rebooting it."),c.createElement("li",{},xC))),"warning")}catch(T){kt(T)}finally{r(!1)}}})}function _(){return ot(this,null,function*(){if(!f)return;if(m)return(yield pr(`There is a port-forwarding but it is pointing to the wrong port (${m})`,{confirmText:"Fix it"}))&&k();if(!f.upnp)return kt(c.createElement(ze,{lineHeight:1.5},er(`We cannot help you configuring your router because UPnP is not available.
|
|
803
|
+
Find more help [on this website](${oA}).`)),"info");const B=yield Vh(er(`This will ask the router to map your port, so that it can be reached from the Internet.
|
|
804
|
+
You can set the same number of the local network (${p}), or a different one.`),{value:f.externalPort||p,field:{label:"Port seen from the Internet",comp:jo},addToBar:f.mapped&&[c.createElement(Yn,{color:"warning",onClick:z},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});B&&(yield I(Number(B),"Port forwarded"));function z(){ji(),I(0,"Port removed")}})}function k(){return f!=null&&f.externalPort?I(f.externalPort,"Forwarding corrected"):kt("externalPort not found","error")}function I(B,z="",M="Operation failed"){return ot(this,null,function*(){s(!0);try{yield ct("map_port",{external:B}),u.reload(),z&&rr(z,"success"),t(void 0)}catch(T){if(M){const F=B&&Math.min(B,f.internalPort)<1024,j=M+(F?". Some routers refuse to work with ports under 1024.":"");yield kt(j,"error")}throw T}finally{s(!1)}})}}function sA(){return c.createElement(ze,{flex:1,className:"animated-dashed-line"})}function SC({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"},Xb(r).join(`
|
|
805
|
+
`)||"unknown"),o)}function PC({title:e,icon:t,color:n,children:r}){return c.createElement($b,{},c.createElement(Rb,{},c.createElement(qr,{vert:!0},c.createElement(ze,{fontSize:"x-large"},t&&c.createElement(t,{color:n,sx:{mr:1,mb:"2px"}}),e),r)))}const DS=[{path:"",icon:Lb,label:"Home",title:"Admin panel",comp:UMe},{path:"fs",icon:m4,label:"Shared files",comp:gMe},{path:"accounts",icon:y4,comp:J_e},{path:"options",icon:Ik,comp:d_e},{path:"internet",icon:Uv,comp:jTe},{path:"monitoring",icon:b4,comp:C_e,noPaddingOnMobile:!0},{path:"logs",icon:v4,comp:y_e,noPaddingOnMobile:!0},{path:"language",icon:w4,comp:sTe},{path:"plugins",icon:g4,comp:STe,noPaddingOnMobile:!0},{path:"html",icon:C4,label:"Custom HTML",comp:PTe},{path:"logout",icon:xk,comp:oTe}];function iA({onSelect:e}){const{VERSION:t}=Zb(),n="hfs-logo.svg",r=Fb().height<700;return c.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},c.createElement(Nh,{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"},Jk(t||"",/-/,()=>c.createElement("br"))),r&&c.createElement("img",{src:n,style:{height:"2.5em"}})),DS.map(o=>c.createElement(gie,{key:o.path,to:o.path,component:oq,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&c.createElement(hl,{sx:{color:"primary.contrastText",minWidth:48}},c.createElement(o.icon)),c.createElement(Oi,{sx:{whiteSpace:"nowrap"},primary:mV(o)}))),!r&&c.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function mV(e){var t;return e&&((t=e.label)!=null?t:et.capitalize(e.path))}function HTe({children:e}){const{loginRequired:t}=fi();return t===qb?c.createElement(jh,{},c.createElement(kr,{severity:"error"},"Admin-panel only for localhost"),c.createElement(ze,{mt:2,fontSize:"small"},"because no admin account was configured")):t?c.createElement(UTe):c.createElement(c.Fragment,{},e)}function UTe(){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(jh,{},c.createElement(Hc,{formRef:o,values:e,set(a,u){t(f=>st(xe({},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(kr,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ot(this,null,function*(){try{r(""),yield WTe(e.username,e.password)}catch(a){r(String(a))}})}}}))}function WTe(e,t){return ot(this,null,function*(){const n=yield dde(e,t,ct).catch(r=>{throw(r==null?void 0:r.code)===Xd?"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";rn.loginRequired=!1,gV(n)})}const gV=Mfe(rn);gV(Zb().session);var d2={},GTe=tt;Object.defineProperty(d2,"__esModule",{value:!0});var vV=d2.default=void 0,KTe=GTe(nt()),qTe=Ze(),YTe=(0,KTe.default)((0,qTe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");vV=d2.default=YTe;var yV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,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 m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(m,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)}}})})(yV);var QTe=yV.exports;const XTe=di(QTe);var bV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,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(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(g)}],p=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},m=function(g,C){var w,b=l.meridiem;if(b){for(var S=1;S<=24;S+=1)if(g.indexOf(b(S,0,C))>-1){w=S>12;break}}else w=g===(C?"pm":"PM");return w},v={A:[i,function(g){this.afternoon=m(g,!1)}],a:[i,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],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(g){var C=l.ordinal,w=g.match(/\d+/);if(this.day=w[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],M:[s,u("month")],MM:[o,u("month")],MMM:[i,function(g){var C=p("months"),w=(p("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(g){var C=p("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(g){this.year=a(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function y(g){var C,w;C=g,w=l&&l.formats;for(var b=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,$,L){var B=L&&L.toUpperCase();return $||w[L]||n[L]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,M,T){return M||T.slice(1)})})).match(r),S=b.length,E=0;E<S;E+=1){var _=b[E],k=v[_],I=k&&k[0],R=k&&k[1];b[E]=R?{regex:I,parser:R}:_.replace(/^\[|\]$/g,"")}return function(A){for(var $={},L=0,B=0;L<S;L+=1){var z=b[L];if(typeof z=="string")B+=z.length;else{var M=z.regex,T=z.parser,F=A.slice(B),j=M.exec(F)[0];T.call($,j),A=A.replace(j,"")}}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}}($),$}}return function(g,C,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(a=g.parseTwoDigitYear);var b=C.prototype,S=b.parse;b.parse=function(E){var _=E.date,k=E.utc,I=E.args;this.$u=k;var R=I[1];if(typeof R=="string"){var A=I[2]===!0,$=I[3]===!0,L=A||$,B=I[2];$&&(B=I[2]),l=this.$locale(),!A&&B&&(l=w.Ls[B]),this.$d=function(F,j,D){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*F);var N=y(j)(F),H=N.year,K=N.month,Y=N.day,te=N.hours,Q=N.minutes,X=N.seconds,J=N.milliseconds,se=N.zone,Z=new Date,he=Y||(H||K?1:Z.getDate()),ne=H||Z.getFullYear(),re=0;H&&!K||(re=K>0?K-1:Z.getMonth());var me=te||0,ce=Q||0,Se=X||0,Ee=J||0;return se?new Date(Date.UTC(ne,re,he,me,ce,Se,Ee+60*se.offset*1e3)):D?new Date(Date.UTC(ne,re,he,me,ce,Se,Ee)):new Date(ne,re,he,me,ce,Se,Ee)}catch(ae){return new Date("")}}(_,R,k),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),L&&_!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var z=R.length,M=1;M<=z;M+=1){I[1]=R[M-1];var T=w.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}M===z&&(this.$d=new Date(""))}else S.call(this,E)}}})})(bV);var ZTe=bV.exports;const JTe=di(ZTe);var wV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,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,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,y,g){var C=g&&g.toUpperCase();return y||m[g]||n[g]||m[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,S){return b||S.slice(1)})})}(a,u===void 0?{}:u);return l.call(this,f)}}})})(wV);var e$e=wV.exports;const t$e=di(e$e);var CV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,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]==="(",m=a[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(m?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(m?this.isAfter(f,l):!this.isBefore(f,l))}}})})(CV);var n$e=CV.exports;const r$e=di(n$e);$r.extend(JTe);$r.extend(t$e);$r.extend(r$e);const o$e=o3(["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"]),s$e={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"},i$e={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"},kC=["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(`
|
|
806
|
+
`),lA=["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(`
|
|
807
|
+
`),l$e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class a$e{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=s$e,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(kC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(kC);if(!this.hasTimezonePlugin())throw new Error(lA);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&&(o$e(),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(kC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(lA)}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 m=Math.floor(u/7);p[m]=p[m]||[],p[m].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=l$e((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=x({},i$e,n),$r.extend(XTe)}}function c$e(){rn.title="Config file";const{data:e,reload:t,element:n}=Qn("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(qr,{flexWrap:"wrap",justifyContent:"space-between"},c.createElement(To,{icon:NI,onClick:f},"Copy excluding passwords"),l?c.createElement(c.Fragment,{},s0(t),c.createElement(mn,{icon:zh,title:`Save
|
|
808
|
+
(ctrl+enter)`,sx:Zd(r!==s),onClick:u}),c.createElement(kr,{severity:"warning",sx:{flex:1,minWidth:"10em"}},"Be careful, you can easily break things here")):c.createElement(To,{icon:NE,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>Qv("main textarea"),500)}},"Edit"),c.createElement(ze,{flex:1,minWidth:"fit-content"},c.createElement($p,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&c.createElement(Rue,{margin:10},c.createElement(WI,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(Nb(p))&&(u().then(),p.preventDefault())}})));function u(){return ct("set_config_text",{text:r}).then(()=>i(r))}function f(){r&&(navigator.clipboard.writeText(r.replace(/^\s*(\w*password|srp):.+\n/gm,"")),rr("copied"))}}function u$e(){return c.createElement(QX,{theme:_pe()},c.createElement(d$e,{},c.createElement(qE,{dateAdapter:a$e},c.createElement(HTe,{},c.createElement(tq,{},c.createElement(f$e))))))}function d$e(e){return c.createElement(ze,xe({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},e))}function f$e(){const e=Hd().pathname.slice(1),t=DS.find(l=>l.path===e);let{title:n}=fi();n=t&&(t.title||mV(t))||n;const[r,o]=c.useState(!1),s=Xo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1;return c.createElement(c.Fragment,{},!s&&c.createElement(p$e,{title:n,openMenu:()=>o(!0)}),!s&&c.createElement(Coe,{anchor:"left",open:r,onClose(){o(!1)}},c.createElement(iA,{onSelect:()=>o(!1)})),c.createElement(ze,{display:"flex",flex:1},s&&c.createElement(iA),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(qn,{variant:"h2",mb:2},n),c.createElement(QK,{},DS.map((l,a)=>c.createElement(wx,{key:a,path:l.path,element:c.createElement(l.comp)})),c.createElement(wx,{path:"edit",element:c.createElement(c$e)}))),c.createElement(tde)))}function p$e({title:e,openMenu:t}){return c.createElement(wJ,{position:"sticky",sx:{mb:2}},c.createElement(p4,{},c.createElement(xr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},c.createElement(vV)),e))}CF(document.getElementById("root")).render(c.createElement(c.StrictMode,{},c.createElement(u$e)));export{ln as c,di as g};
|