hfs 0.50.0 → 0.51.0-alpha1
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-47ff1b0f.js +808 -0
- package/{frontend/assets/sha512-347ff346.js → admin/assets/sha512-d8777e57.js} +1 -1
- package/admin/index.html +1 -1
- package/frontend/assets/index-a452a199.css +1 -0
- package/frontend/assets/index-ca411341.js +95 -0
- package/{admin/assets/sha512-6a9f6c0b.js → frontend/assets/sha512-d8f377a2.js} +1 -1
- package/frontend/fontello.css +4 -1
- package/frontend/fontello.woff2 +0 -0
- package/frontend/index.html +2 -2
- package/package.json +3 -2
- package/src/adminApis.js +2 -0
- package/src/api.auth.js +6 -1
- package/src/api.file_list.js +2 -2
- package/src/api.monitor.js +1 -34
- package/src/comments.js +1 -1
- package/src/const.js +5 -2
- package/src/cross-const.js +1 -4
- package/src/cross.js +50 -2
- package/src/debounceAsync.js +3 -3
- package/src/frontEndApis.js +19 -0
- package/src/index.js +2 -0
- package/src/lang.js +7 -1
- package/src/langs/hfs-lang-it.json +10 -6
- package/src/log.js +5 -2
- package/src/middlewares.js +1 -1
- package/src/misc.js +3 -13
- package/src/plugins.js +7 -4
- package/src/roots.js +47 -0
- package/src/util-files.js +7 -6
- package/src/vfs.js +5 -4
- package/src/zip.js +2 -2
- package/admin/assets/index-f70432fb.js +0 -807
- package/frontend/assets/index-b90320b6.css +0 -1
- package/frontend/assets/index-fb217d34.js +0 -94
- package/plugins/vhosting/plugin.js +0 -62
|
@@ -0,0 +1,808 @@
|
|
|
1
|
+
var IU=Object.defineProperty,MU=Object.defineProperties;var _U=Object.getOwnPropertyDescriptors;var jm=Object.getOwnPropertySymbols;var A_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable;var q1=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},vs=Math.pow,Y1=(e,t,n)=>t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t)=>{for(var n in t||(t={}))A_.call(t,n)&&Y1(e,n,t[n]);if(jm)for(var n of jm(t))L_.call(t,n)&&Y1(e,n,t[n]);return e},at=(e,t)=>MU(e,_U(t));var Ft=(e,t)=>{var n={};for(var r in e)A_.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&&L_.call(e,r)&&(n[r]=e[r]);return n};var yi=(e,t,n)=>(Y1(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())}),TU=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[q1("asyncIterator")],n=!1,r,o={};return t==null?(t=e[q1("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 TU(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[q1("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function $U(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lA(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 aA={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"),RU=Symbol.for("react.portal"),OU=Symbol.for("react.fragment"),DU=Symbol.for("react.strict_mode"),AU=Symbol.for("react.profiler"),LU=Symbol.for("react.provider"),FU=Symbol.for("react.context"),NU=Symbol.for("react.forward_ref"),BU=Symbol.for("react.suspense"),zU=Symbol.for("react.memo"),VU=Symbol.for("react.lazy"),F_=Symbol.iterator;function jU(e){return e===null||typeof e!="object"?null:(e=F_&&e[F_]||e["@@iterator"],typeof e=="function"?e:null)}var cA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uA=Object.assign,dA={};function Fd(e,t,n){this.props=e,this.context=t,this.refs=dA,this.updater=n||cA}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 fA(){}fA.prototype=Fd.prototype;function OS(e,t,n){this.props=e,this.context=t,this.refs=dA,this.updater=n||cA}var DS=OS.prototype=new fA;DS.constructor=OS;uA(DS,Fd.prototype);DS.isPureReactComponent=!0;var N_=Array.isArray,pA=Object.prototype.hasOwnProperty,AS={current:null},hA={key:!0,ref:!0,__self:!0,__source:!0};function mA(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)pA.call(t,r)&&!hA.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:AS.current}}function HU(e,t){return{$$typeof:Eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function LS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eh}function UU(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var B_=/\/+/g;function Q1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?UU(""+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 RU:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Q1(i,0):r,N_(o)?(n="",e!=null&&(n=e.replace(B_,"$&/")+"/"),Tg(o,t,n,"",function(u){return u})):o!=null&&(LS(o)&&(o=HU(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(B_,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",N_(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Q1(s,l);i+=Tg(s,t,n,a,o)}else if(a=jU(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Q1(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 WU(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},GU={ReactCurrentDispatcher:fo,ReactCurrentBatchConfig:$g,ReactCurrentOwner:AS};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(!LS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ut.Component=Fd;Ut.Fragment=OU;Ut.Profiler=AU;Ut.PureComponent=OS;Ut.StrictMode=DU;Ut.Suspense=BU;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GU;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=uA({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=AS.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)pA.call(t,a)&&!hA.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:FU,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LU,_context:e},e.Consumer=e};Ut.createElement=mA;Ut.createFactory=function(e){var t=mA.bind(null,e);return t.type=e,t};Ut.createRef=function(){return{current:null}};Ut.forwardRef=function(e){return{$$typeof:NU,render:e}};Ut.isValidElement=LS;Ut.lazy=function(e){return{$$typeof:VU,_payload:{_status:-1,_result:e},_init:WU}};Ut.memo=function(e,t){return{$$typeof:zU,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";aA.exports=Ut;var c=aA.exports;const co=di(c),wc=$U({__proto__:null,default:co},[c]);var gA={exports:{}},rs={},vA={exports:{}},yA={};/**
|
|
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(O,N){var H=O.length;O.push(N);e:for(;0<H;){var K=H-1>>>1,Y=O[K];if(0<o(Y,N))O[K]=N,O[H]=Y,H=K;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var N=O[0],H=O.pop();if(H!==N){O[0]=H;e:for(var K=0,Y=O.length,te=Y>>>1;K<te;){var Q=2*(K+1)-1,X=O[Q],J=Q+1,se=O[J];if(0>o(X,H))J<Y&&0>o(se,X)?(O[K]=se,O[J]=H,K=J):(O[K]=X,O[Q]=H,K=Q);else if(J<Y&&0>o(se,H))O[K]=se,O[J]=H,K=J;else break e}}return N}function o(O,N){var H=O.sortIndex-N.sortIndex;return H!==0?H:O.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],f=1,p=null,g=3,v=!1,y=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,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 x(O){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=O)r(u),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(u)}}function E(O){if(m=!1,x(O),!y)if(n(a)!==null)y=!0,F(_);else{var N=n(u);N!==null&&B(E,N.startTime-O)}}function _(O,N){y=!1,m&&(m=!1,w(T),T=-1),v=!0;var H=g;try{for(x(N),p=n(a);p!==null&&(!(p.expirationTime>N)||O&&!A());){var K=p.callback;if(typeof K=="function"){p.callback=null,g=p.priorityLevel;var Y=K(p.expirationTime<=N);N=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(a)&&r(a),x(N)}else r(a);p=n(a)}if(p!==null)var te=!0;else{var Q=n(u);Q!==null&&B(E,Q.startTime-N),te=!1}return te}finally{p=null,g=H,v=!1}}var k=!1,I=null,T=-1,D=5,R=-1;function A(){return!(e.unstable_now()-R<D)}function V(){if(I!==null){var O=e.unstable_now();R=O;var N=!0;try{N=I(!0,O)}finally{N?j():(k=!1,I=null)}}else k=!1}var j;if(typeof b=="function")j=function(){b(V)};else if(typeof MessageChannel!="undefined"){var M=new MessageChannel,$=M.port2;M.port1.onmessage=V,j=function(){$.postMessage(null)}}else j=function(){C(V,0)};function F(O){I=O,k||(k=!0,j())}function B(O,N){T=C(function(){O(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(O){O.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,F(_))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(O){switch(g){case 1:case 2:case 3:var N=3;break;default:N=g}var H=g;g=N;try{return O()}finally{g=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=g;g=O;try{return N()}finally{g=H}},e.unstable_scheduleCallback=function(O,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,O){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,O={id:f++,callback:N,priorityLevel:O,startTime:H,expirationTime:Y,sortIndex:-1},H>K?(O.sortIndex=H,t(u,O),n(a)===null&&O===n(u)&&(m?(w(T),T=-1):m=!0,B(E,H-K))):(O.sortIndex=Y,t(a,O),y||v||(y=!0,F(_))),O},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(O){var N=g;return function(){var H=g;g=N;try{return O.apply(this,arguments)}finally{g=H}}}})(yA);vA.exports=yA;var KU=vA.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 bA=c,Xo=KU;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 wA=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++)wA.add(t[e])}var ml=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),PC=Object.prototype.hasOwnProperty,qU=/^[: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]*$/,z_={},V_={};function YU(e){return PC.call(V_,e)?!0:PC.call(z_,e)?!1:qU.test(e)?V_[e]=!0:(z_[e]=!0,!1)}function QU(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 XU(e,t,n,r){if(t===null||typeof t=="undefined"||QU(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 FS=/[\-:]([a-z])/g;function NS(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(FS,NS);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(FS,NS);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(FS,NS);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 BS(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")&&(XU(t,n,o,r)&&(n=null),r||o===null?YU(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 Pl=bA.__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"),zS=Symbol.for("react.strict_mode"),kC=Symbol.for("react.profiler"),CA=Symbol.for("react.provider"),xA=Symbol.for("react.context"),VS=Symbol.for("react.forward_ref"),EC=Symbol.for("react.suspense"),IC=Symbol.for("react.suspense_list"),jS=Symbol.for("react.memo"),Yl=Symbol.for("react.lazy"),SA=Symbol.for("react.offscreen"),j_=Symbol.iterator;function _f(e){return e===null||typeof e!="object"?null:(e=j_&&e[j_]||e["@@iterator"],typeof e=="function"?e:null)}var jn=Object.assign,X1;function Jf(e){if(X1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);X1=t&&t[1]||""}return`
|
|
26
|
+
`+X1+e}var Z1=!1;function J1(e,t){if(!e||Z1)return"";Z1=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
27
|
+
`),s=r.stack.split(`
|
|
28
|
+
`),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
|
|
29
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{Z1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jf(e):""}function ZU(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=J1(e.type,!1),e;case 11:return e=J1(e.type.render,!1),e;case 1:return e=J1(e.type,!0),e;default:return""}}function MC(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 kC:return"Profiler";case zS:return"StrictMode";case EC:return"Suspense";case IC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xA:return(e.displayName||"Context")+".Consumer";case CA:return(e._context.displayName||"Context")+".Provider";case VS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jS:return t=e.displayName||null,t!==null?t:MC(e.type)||"Memo";case Yl:t=e._payload,e=e._init;try{return MC(e(t))}catch(n){}}return null}function JU(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 MC(t);case 8:return t===zS?"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 PA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eW(e){var t=PA(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=eW(e))}function kA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PA(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 jn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function H_(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 EA(e,t){t=t.checked,t!=null&&BS(e,"checked",t,!1)}function TC(e,t){EA(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")?$C(e,t.type,n):t.hasOwnProperty("defaultValue")&&$C(e,t.type,Sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function U_(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 $C(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 RC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return jn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function W_(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 IA(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 G_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function MA(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 OC(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?MA(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},tW=["Webkit","ms","Moz","O"];Object.keys(hp).forEach(function(e){tW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hp[t]=hp[e]})});function TA(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 $A(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=TA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nW=jn({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 DC(e,t){if(t){if(nW[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 AC(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 LC=null;function HS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var FC=null,Qu=null,Xu=null;function K_(e){if(e=_h(e)){if(typeof FC!="function")throw Error(He(280));var t=e.stateNode;t&&(t=Sy(t),FC(e.stateNode,e.type,t))}}function RA(e){Qu?Xu?Xu.push(e):Xu=[e]:Qu=e}function OA(){if(Qu){var e=Qu,t=Xu;if(Xu=Qu=null,K_(e),t)for(e=0;e<t.length;e++)K_(t[e])}}function DA(e,t){return e(t)}function AA(){}var ew=!1;function LA(e,t,n){if(ew)return e(t,n);ew=!0;try{return DA(e,t,n)}finally{ew=!1,(Qu!==null||Xu!==null)&&(AA(),OA())}}function Np(e,t){var n=e.stateNode;if(n===null)return null;var r=Sy(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 NC=!1;if(ml)try{var Tf={};Object.defineProperty(Tf,"passive",{get:function(){NC=!0}}),window.addEventListener("test",Tf,Tf),window.removeEventListener("test",Tf,Tf)}catch(e){NC=!1}function rW(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,BC=null,oW={onError:function(e){mp=!0,iv=e}};function sW(e,t,n,r,o,s,i,l,a){mp=!1,iv=null,rW.apply(oW,arguments)}function iW(e,t,n,r,o,s,i,l,a){if(sW.apply(this,arguments),mp){if(mp){var u=iv;mp=!1,iv=null}else throw Error(He(198));lv||(lv=!0,BC=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 FA(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 lW(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 NA(e){return e=lW(e),e!==null?BA(e):null}function BA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=BA(e);if(t!==null)return t;e=e.sibling}return null}var zA=Xo.unstable_scheduleCallback,Y_=Xo.unstable_cancelCallback,aW=Xo.unstable_shouldYield,cW=Xo.unstable_requestPaint,er=Xo.unstable_now,uW=Xo.unstable_getCurrentPriorityLevel,US=Xo.unstable_ImmediatePriority,VA=Xo.unstable_UserBlockingPriority,av=Xo.unstable_NormalPriority,dW=Xo.unstable_LowPriority,jA=Xo.unstable_IdlePriority,by=null,Mi=null;function fW(e){if(Mi&&typeof Mi.onCommitFiberRoot=="function")try{Mi.onCommitFiberRoot(by,e,void 0,(e.current.flags&128)===128)}catch(t){}}var si=Math.clz32?Math.clz32:mW,pW=Math.log,hW=Math.LN2;function mW(e){return e>>>=0,e===0?32:31-(pW(e)/hW|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 gW(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 vW(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]=gW(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function zC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function HA(){var e=Km;return Km<<=1,!(Km&4194240)&&(Km=64),e}function tw(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 yW(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 WS(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 UA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var WA,GS,GA,KA,qA,VC=!1,Ym=[],da=null,fa=null,pa=null,Bp=new Map,zp=new Map,ea=[],bW="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 Q_(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&&GS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function wW(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 YA(e){var t=sc(e.target);if(t!==null){var n=Bc(t);if(n!==null){if(t=n.tag,t===13){if(t=FA(n),t!==null){e.blockedOn=t,qA(e.priority,function(){GA(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=jC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);LC=r,n.target.dispatchEvent(r),LC=null}else return t=_h(n),t!==null&&GS(t),e.blockedOn=n,!1;t.shift()}return!0}function X_(e,t,n){Rg(e)&&n.delete(t)}function CW(){VC=!1,da!==null&&Rg(da)&&(da=null),fa!==null&&Rg(fa)&&(fa=null),pa!==null&&Rg(pa)&&(pa=null),Bp.forEach(X_),zp.forEach(X_)}function Rf(e,t){e.blockedOn===t&&(e.blockedOn=null,VC||(VC=!0,Xo.unstable_scheduleCallback(Xo.unstable_NormalPriority,CW)))}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<ea.length;n++)r=ea[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ea.length&&(n=ea[0],n.blockedOn===null);)YA(n),n.blockedOn===null&&ea.shift()}var Zu=Pl.ReactCurrentBatchConfig,uv=!0;function xW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=1,KS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function SW(e,t,n,r){var o=dn,s=Zu.transition;Zu.transition=null;try{dn=4,KS(e,t,n,r)}finally{dn=o,Zu.transition=s}}function KS(e,t,n,r){if(uv){var o=jC(e,t,n,r);if(o===null)dw(e,t,r,dv,n),Q_(e,r);else if(wW(o,e,t,n,r))r.stopPropagation();else if(Q_(e,r),t&4&&-1<bW.indexOf(e)){for(;o!==null;){var s=_h(o);if(s!==null&&WA(s),s=jC(e,t,n,r),s===null&&dw(e,t,r,dv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else dw(e,t,r,null,n)}}var dv=null;function jC(e,t,n,r){if(dv=null,e=HS(r),e=sc(e),e!==null)if(t=Bc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=FA(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 QA(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(uW()){case US:return 1;case VA:return 4;case av:case dW:return 16;case jA:return 536870912;default:return 16}default:return 16}}var ra=null,qS=null,Og=null;function XA(){if(Og)return Og;var e,t=qS,n=t.length,r,o="value"in ra?ra.value:ra.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 Z_(){return!1}function os(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:Z_,this.isPropagationStopped=Z_,this}return jn(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},YS=os(Nd),Mh=jn({},Nd,{view:0,detail:0}),PW=os(Mh),nw,rw,Of,wy=jn({},Mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:QS,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"?(nw=e.screenX-Of.screenX,rw=e.screenY-Of.screenY):rw=nw=0,Of=e),nw)},movementY:function(e){return"movementY"in e?e.movementY:rw}}),J_=os(wy),kW=jn({},wy,{dataTransfer:0}),EW=os(kW),IW=jn({},Mh,{relatedTarget:0}),ow=os(IW),MW=jn({},Nd,{animationName:0,elapsedTime:0,pseudoElement:0}),_W=os(MW),TW=jn({},Nd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$W=os(TW),RW=jn({},Nd,{data:0}),eT=os(RW),OW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DW={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"},AW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AW[e])?!!t[e]:!1}function QS(){return LW}var FW=jn({},Mh,{key:function(e){if(e.key){var t=OW[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"?DW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:QS,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}}),NW=os(FW),BW=jn({},wy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tT=os(BW),zW=jn({},Mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:QS}),VW=os(zW),jW=jn({},Nd,{propertyName:0,elapsedTime:0,pseudoElement:0}),HW=os(jW),UW=jn({},wy,{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}),WW=os(UW),GW=[9,13,27,32],XS=ml&&"CompositionEvent"in window,gp=null;ml&&"documentMode"in document&&(gp=document.documentMode);var KW=ml&&"TextEvent"in window&&!gp,ZA=ml&&(!XS||gp&&8<gp&&11>=gp),nT=String.fromCharCode(32),rT=!1;function JA(e,t){switch(e){case"keyup":return GW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function qW(e,t){switch(e){case"compositionend":return eL(t);case"keypress":return t.which!==32?null:(rT=!0,nT);case"textInput":return e=t.data,e===nT&&rT?null:e;default:return null}}function YW(e,t){if(Ru)return e==="compositionend"||!XS&&JA(e,t)?(e=XA(),Og=qS=ra=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 ZA&&t.locale!=="ko"?null:t.data;default:return null}}var QW={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 oT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QW[e.type]:t==="textarea"}function tL(e,t,n,r){RA(r),t=fv(t,"onChange"),0<t.length&&(n=new YS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vp=null,jp=null;function XW(e){fL(e,0)}function Cy(e){var t=Au(e);if(kA(t))return e}function ZW(e,t){if(e==="change")return t}var nL=!1;if(ml){var sw;if(ml){var iw="oninput"in document;if(!iw){var sT=document.createElement("div");sT.setAttribute("oninput","return;"),iw=typeof sT.oninput=="function"}sw=iw}else sw=!1;nL=sw&&(!document.documentMode||9<document.documentMode)}function iT(){vp&&(vp.detachEvent("onpropertychange",rL),jp=vp=null)}function rL(e){if(e.propertyName==="value"&&Cy(jp)){var t=[];tL(t,jp,e,HS(e)),LA(XW,t)}}function JW(e,t,n){e==="focusin"?(iT(),vp=t,jp=n,vp.attachEvent("onpropertychange",rL)):e==="focusout"&&iT()}function eG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cy(jp)}function tG(e,t){if(e==="click")return Cy(t)}function nG(e,t){if(e==="input"||e==="change")return Cy(t)}function rG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ci=typeof Object.is=="function"?Object.is:rG;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(!PC.call(t,o)||!ci(e[o],t[o]))return!1}return!0}function lT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function aT(e,t){var n=lT(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=lT(n)}}function oL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sL(){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 ZS(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 oG(e){var t=sL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oL(n.ownerDocument.documentElement,n)){if(r!==null&&ZS(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=aT(n,s);var i=aT(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 sG=ml&&"documentMode"in document&&11>=document.documentMode,Ou=null,HC=null,yp=null,UC=!1;function cT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;UC||Ou==null||Ou!==sv(r)||(r=Ou,"selectionStart"in r&&ZS(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(HC,"onSelect"),0<r.length&&(t=new YS("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")},lw={},iL={};ml&&(iL=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 xy(e){if(lw[e])return lw[e];if(!Du[e])return e;var t=Du[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in iL)return lw[e]=t[n];return e}var lL=xy("animationend"),aL=xy("animationiteration"),cL=xy("animationstart"),uL=xy("transitionend"),dL=new Map,uT="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){dL.set(e,t),Nc(t,[e])}for(var aw=0;aw<uT.length;aw++){var cw=uT[aw],iG=cw.toLowerCase(),lG=cw[0].toUpperCase()+cw.slice(1);Ra(iG,"on"+lG)}Ra(lL,"onAnimationEnd");Ra(aL,"onAnimationIteration");Ra(cL,"onAnimationStart");Ra("dblclick","onDoubleClick");Ra("focusin","onFocus");Ra("focusout","onBlur");Ra(uL,"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(" "),aG=new Set("cancel close invalid load scroll toggle".split(" ").concat(np));function dT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,iW(r,t,void 0,e),e.currentTarget=null}function fL(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;dT(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;dT(o,l,u),s=a}}}if(lv)throw e=BC,lv=!1,BC=null,e}function En(e,t){var n=t[YC];n===void 0&&(n=t[YC]=new Set);var r=e+"__bubble";n.has(r)||(pL(t,e,2,!1),n.add(r))}function uw(e,t,n){var r=0;t&&(r|=4),pL(n,e,r,t)}var Zm="_reactListening"+Math.random().toString(36).slice(2);function Up(e){if(!e[Zm]){e[Zm]=!0,wA.forEach(function(n){n!=="selectionchange"&&(aG.has(n)||uw(n,!1,e),uw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zm]||(t[Zm]=!0,uw("selectionchange",!1,t))}}function pL(e,t,n,r){switch(QA(t)){case 1:var o=xW;break;case 4:o=SW;break;default:o=KS}n=o.bind(null,t,n,e),o=void 0,!NC||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 dw(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}LA(function(){var u=s,f=HS(n),p=[];e:{var g=dL.get(e);if(g!==void 0){var v=YS,y=e;switch(e){case"keypress":if(Dg(n)===0)break e;case"keydown":case"keyup":v=NW;break;case"focusin":y="focus",v=ow;break;case"focusout":y="blur",v=ow;break;case"beforeblur":case"afterblur":v=ow;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=J_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=EW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=VW;break;case lL:case aL:case cL:v=_W;break;case uL:v=HW;break;case"scroll":v=PW;break;case"wheel":v=WW;break;case"copy":case"cut":case"paste":v=$W;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=tT}var m=(t&4)!==0,C=!m&&e==="scroll",w=m?g!==null?g+"Capture":null:g;m=[];for(var b=u,x;b!==null;){x=b;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,w!==null&&(E=Np(b,w),E!=null&&m.push(Wp(b,E,x)))),C)break;b=b.return}0<m.length&&(g=new v(g,y,null,n,f),p.push({event:g,listeners:m}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",g&&n!==LC&&(y=n.relatedTarget||n.fromElement)&&(sc(y)||y[gl]))break e;if((v||g)&&(g=f.window===f?f:(g=f.ownerDocument)?g.defaultView||g.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=u,y=y?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(m=J_,E="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=tT,E="onPointerLeave",w="onPointerEnter",b="pointer"),C=v==null?g:Au(v),x=y==null?g:Au(y),g=new m(E,b+"leave",v,n,f),g.target=C,g.relatedTarget=x,E=null,sc(f)===u&&(m=new m(w,b+"enter",y,n,f),m.target=x,m.relatedTarget=C,E=m),C=E,v&&y)t:{for(m=v,w=y,b=0,x=m;x;x=lu(x))b++;for(x=0,E=w;E;E=lu(E))x++;for(;0<b-x;)m=lu(m),b--;for(;0<x-b;)w=lu(w),x--;for(;b--;){if(m===w||w!==null&&m===w.alternate)break t;m=lu(m),w=lu(w)}m=null}else m=null;v!==null&&fT(p,g,v,m,!1),y!==null&&C!==null&&fT(p,C,y,m,!0)}}e:{if(g=u?Au(u):window,v=g.nodeName&&g.nodeName.toLowerCase(),v==="select"||v==="input"&&g.type==="file")var _=ZW;else if(oT(g))if(nL)_=nG;else{_=eG;var k=JW}else(v=g.nodeName)&&v.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(_=tG);if(_&&(_=_(e,u))){tL(p,_,n,f);break e}k&&k(e,g,u),e==="focusout"&&(k=g._wrapperState)&&k.controlled&&g.type==="number"&&$C(g,"number",g.value)}switch(k=u?Au(u):window,e){case"focusin":(oT(k)||k.contentEditable==="true")&&(Ou=k,HC=u,yp=null);break;case"focusout":yp=HC=Ou=null;break;case"mousedown":UC=!0;break;case"contextmenu":case"mouseup":case"dragend":UC=!1,cT(p,n,f);break;case"selectionchange":if(sG)break;case"keydown":case"keyup":cT(p,n,f)}var I;if(XS)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ru?JA(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(ZA&&n.locale!=="ko"&&(Ru||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ru&&(I=XA()):(ra=f,qS="value"in ra?ra.value:ra.textContent,Ru=!0)),k=fv(u,T),0<k.length&&(T=new eT(T,e,null,n,f),p.push({event:T,listeners:k}),I?T.data=I:(I=eL(n),I!==null&&(T.data=I)))),(I=KW?qW(e,n):YW(e,n))&&(u=fv(u,"onBeforeInput"),0<u.length&&(f=new eT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:u}),f.data=I))}fL(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 fT(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 cG=/\r\n?/g,uG=/\u0000|\uFFFD/g;function pT(e){return(typeof e=="string"?e:""+e).replace(cG,`
|
|
30
|
+
`).replace(uG,"")}function Jm(e,t,n){if(t=pT(t),pT(e)!==t&&n)throw Error(He(425))}function pv(){}var WC=null,GC=null;function KC(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,dG=typeof clearTimeout=="function"?clearTimeout:void 0,hT=typeof Promise=="function"?Promise:void 0,fG=typeof queueMicrotask=="function"?queueMicrotask:typeof hT!="undefined"?function(e){return hT.resolve(null).then(e).catch(pG)}:qC;function pG(e){setTimeout(function(){throw e})}function fw(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 mT(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),Ei="__reactFiber$"+Bd,Gp="__reactProps$"+Bd,gl="__reactContainer$"+Bd,YC="__reactEvents$"+Bd,hG="__reactListeners$"+Bd,mG="__reactHandles$"+Bd;function sc(e){var t=e[Ei];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gl]||n[Ei]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mT(e);e!==null;){if(n=e[Ei])return n;e=mT(e)}return t}e=n,n=e.parentNode}return null}function _h(e){return e=e[Ei]||e[gl],!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 Sy(e){return e[Gp]||null}var QC=[],Lu=-1;function Oa(e){return{current:e}}function Mn(e){0>Lu||(e.current=QC[Lu],QC[Lu]=null,Lu--)}function xn(e,t){Lu++,QC[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 gT(e,t,n){if(Zr.current!==Pa)throw Error(He(168));xn(Zr,t),xn(ko,n)}function hL(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,JU(e)||"Unknown",o));return jn({},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 vT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=hL(e,t,Cc),r.__reactInternalMemoizedMergedChildContext=e,Mn(ko),Mn(Zr),xn(Zr,e)):Mn(ko),xn(ko,n)}var sl=null,Py=!1,pw=!1;function mL(e){sl===null?sl=[e]:sl.push(e)}function gG(e){Py=!0,mL(e)}function Da(){if(!pw&&sl!==null){pw=!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,Py=!1}catch(o){throw sl!==null&&(sl=sl.slice(e+1)),zA(US,Da),o}finally{dn=t,pw=!1}}return null}var Fu=[],Nu=0,gv=null,vv=0,ks=[],Es=0,xc=null,al=1,cl="";function ec(e,t){Fu[Nu++]=vv,Fu[Nu++]=gv,gv=e,vv=t}function gL(e,t,n){ks[Es++]=al,ks[Es++]=cl,ks[Es++]=xc,xc=e;var r=al;e=cl;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,al=1<<32-si(t)+o|n<<o|r,cl=s+e}else al=1<<s|n<<o|r,cl=e}function JS(e){e.return!==null&&(ec(e,1),gL(e,1,0))}function eP(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,cl=ks[--Es],ks[Es]=null,al=ks[--Es],ks[Es]=null}var Ko=null,Go=null,An=!1,Js=null;function vL(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 yT(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,Ko=e,Go=ha(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ko=e,Go=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xc!==null?{id:al,overflow:cl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ms(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ko=e,Go=null,!0):!1;default:return!1}}function XC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ZC(e){if(An){var t=Go;if(t){var n=t;if(!yT(e,t)){if(XC(e))throw Error(He(418));t=ha(n.nextSibling);var r=Ko;t&&yT(e,t)?vL(r,n):(e.flags=e.flags&-4097|2,An=!1,Ko=e)}}else{if(XC(e))throw Error(He(418));e.flags=e.flags&-4097|2,An=!1,Ko=e}}}function bT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ko=e}function eg(e){if(e!==Ko)return!1;if(!An)return bT(e),An=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!KC(e.type,e.memoizedProps)),t&&(t=Go)){if(XC(e))throw yL(),Error(He(418));for(;t;)vL(e,t),t=ha(t.nextSibling)}if(bT(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){Go=ha(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Go=null}}else Go=Ko?ha(e.stateNode.nextSibling):null;return!0}function yL(){for(var e=Go;e;)e=ha(e.nextSibling)}function pd(){Go=Ko=null,An=!1}function tP(e){Js===null?Js=[e]:Js.push(e)}var vG=Pl.ReactCurrentBatchConfig;function Qs(e,t){if(e&&e.defaultProps){t=jn({},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,nP=null;function rP(){nP=Bu=bv=null}function oP(e){var t=yv.current;Mn(yv),e._currentValue=t}function JC(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,nP=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(nP!==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 sP(e){ic===null?ic=[e]:ic.push(e)}function bL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,sP(t)):(n.next=o.next,o.next=n),t.interleaved=n,vl(e,r)}function vl(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 Ql=!1;function iP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wL(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 fl(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,vl(e,n)}return o=r.interleaved,o===null?(t.next=t,sP(r)):(t.next=o.next,o.next=t),r.interleaved=t,vl(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,WS(e,n)}}function wT(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;Ql=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=u=a=null,l=s;do{var g=l.lane,v=l.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(g=t,v=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){p=y.call(v,p,g);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,g=typeof y=="function"?y.call(v,p,g):y,g==null)break e;p=jn({},p,g);break e;case 2:Ql=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else v={eventTime:v,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=v,a=p):f=f.next=v,i|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(1);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Pc|=i,e.lanes=i,e.memoizedState=p}}function CT(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 CL=new bA.Component().refs;function ex(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:jn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ky={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=fl(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=fl(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=fl(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 xT(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 xL(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=ky,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function ST(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&&ky.enqueueReplaceState(t,t.state,null)}function tx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=CL,iP(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"&&(ex(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&&ky.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===CL&&(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 PT(e){var t=e._init;return t(e._payload)}function SL(e){function t(w,b){if(e){var x=w.deletions;x===null?(w.deletions=[b],w.flags|=16):x.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,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<b?(w.flags|=2,b):x):(w.flags|=2,b)):(w.flags|=1048576,b)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function l(w,b,x,E){return b===null||b.tag!==6?(b=ww(x,w.mode,E),b.return=w,b):(b=o(b,x),b.return=w,b)}function a(w,b,x,E){var _=x.type;return _===$u?f(w,b,x.props.children,E,x.key):b!==null&&(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yl&&PT(_)===b.type)?(E=o(b,x.props),E.ref=Df(w,b,x),E.return=w,E):(E=Vg(x.type,x.key,x.props,null,w.mode,E),E.ref=Df(w,b,x),E.return=w,E)}function u(w,b,x,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Cw(x,w.mode,E),b.return=w,b):(b=o(b,x.children||[]),b.return=w,b)}function f(w,b,x,E,_){return b===null||b.tag!==7?(b=fc(x,w.mode,E,_),b.return=w,b):(b=o(b,x),b.return=w,b)}function p(w,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=ww(""+b,w.mode,x),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Um:return x=Vg(b.type,b.key,b.props,null,w.mode,x),x.ref=Df(w,null,b),x.return=w,x;case Tu:return b=Cw(b,w.mode,x),b.return=w,b;case Yl:var E=b._init;return p(w,E(b._payload),x)}if(ep(b)||_f(b))return b=fc(b,w.mode,x,null),b.return=w,b;tg(w,b)}return null}function g(w,b,x,E){var _=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(w,b,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Um:return x.key===_?a(w,b,x,E):null;case Tu:return x.key===_?u(w,b,x,E):null;case Yl:return _=x._init,g(w,b,_(x._payload),E)}if(ep(x)||_f(x))return _!==null?null:f(w,b,x,E,null);tg(w,x)}return null}function v(w,b,x,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return w=w.get(x)||null,l(b,w,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Um:return w=w.get(E.key===null?x:E.key)||null,a(b,w,E,_);case Tu:return w=w.get(E.key===null?x:E.key)||null,u(b,w,E,_);case Yl:var k=E._init;return v(w,b,x,k(E._payload),_)}if(ep(E)||_f(E))return w=w.get(x)||null,f(b,w,E,_,null);tg(b,E)}return null}function y(w,b,x,E){for(var _=null,k=null,I=b,T=b=0,D=null;I!==null&&T<x.length;T++){I.index>T?(D=I,I=null):D=I.sibling;var R=g(w,I,x[T],E);if(R===null){I===null&&(I=D);break}e&&I&&R.alternate===null&&t(w,I),b=s(R,b,T),k===null?_=R:k.sibling=R,k=R,I=D}if(T===x.length)return n(w,I),An&&ec(w,T),_;if(I===null){for(;T<x.length;T++)I=p(w,x[T],E),I!==null&&(b=s(I,b,T),k===null?_=I:k.sibling=I,k=I);return An&&ec(w,T),_}for(I=r(w,I);T<x.length;T++)D=v(I,w,T,x[T],E),D!==null&&(e&&D.alternate!==null&&I.delete(D.key===null?T:D.key),b=s(D,b,T),k===null?_=D:k.sibling=D,k=D);return e&&I.forEach(function(A){return t(w,A)}),An&&ec(w,T),_}function m(w,b,x,E){var _=_f(x);if(typeof _!="function")throw Error(He(150));if(x=_.call(x),x==null)throw Error(He(151));for(var k=_=null,I=b,T=b=0,D=null,R=x.next();I!==null&&!R.done;T++,R=x.next()){I.index>T?(D=I,I=null):D=I.sibling;var A=g(w,I,R.value,E);if(A===null){I===null&&(I=D);break}e&&I&&A.alternate===null&&t(w,I),b=s(A,b,T),k===null?_=A:k.sibling=A,k=A,I=D}if(R.done)return n(w,I),An&&ec(w,T),_;if(I===null){for(;!R.done;T++,R=x.next())R=p(w,R.value,E),R!==null&&(b=s(R,b,T),k===null?_=R:k.sibling=R,k=R);return An&&ec(w,T),_}for(I=r(w,I);!R.done;T++,R=x.next())R=v(I,w,T,R.value,E),R!==null&&(e&&R.alternate!==null&&I.delete(R.key===null?T:R.key),b=s(R,b,T),k===null?_=R:k.sibling=R,k=R);return e&&I.forEach(function(V){return t(w,V)}),An&&ec(w,T),_}function C(w,b,x,E){if(typeof x=="object"&&x!==null&&x.type===$u&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Um:e:{for(var _=x.key,k=b;k!==null;){if(k.key===_){if(_=x.type,_===$u){if(k.tag===7){n(w,k.sibling),b=o(k,x.props.children),b.return=w,w=b;break e}}else if(k.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yl&&PT(_)===k.type){n(w,k.sibling),b=o(k,x.props),b.ref=Df(w,k,x),b.return=w,w=b;break e}n(w,k);break}else t(w,k);k=k.sibling}x.type===$u?(b=fc(x.props.children,w.mode,E,x.key),b.return=w,w=b):(E=Vg(x.type,x.key,x.props,null,w.mode,E),E.ref=Df(w,b,x),E.return=w,w=E)}return i(w);case Tu:e:{for(k=x.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=o(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=Cw(x,w.mode,E),b.return=w,w=b}return i(w);case Yl:return k=x._init,C(w,b,k(x._payload),E)}if(ep(x))return y(w,b,x,E);if(_f(x))return m(w,b,x,E);tg(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,x),b.return=w,w=b):(n(w,b),b=ww(x,w.mode,E),b.return=w,w=b),i(w)):n(w,b)}return C}var hd=SL(!0),PL=SL(!1),Th={},_i=Oa(Th),Kp=Oa(Th),qp=Oa(Th);function lc(e){if(e===Th)throw Error(He(174));return e}function lP(e,t){switch(xn(qp,t),xn(Kp,e),xn(_i,Th),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:OC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=OC(t,e)}Mn(_i),xn(_i,t)}function md(){Mn(_i),Mn(Kp),Mn(qp)}function kL(e){lc(qp.current);var t=lc(_i.current),n=OC(t,e.type);t!==n&&(xn(Kp,e),xn(_i,n))}function aP(e){Kp.current===e&&(Mn(_i),Mn(Kp))}var Bn=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 hw=[];function cP(){for(var e=0;e<hw.length;e++)hw[e]._workInProgressVersionPrimary=null;hw.length=0}var Lg=Pl.ReactCurrentDispatcher,mw=Pl.ReactCurrentBatchConfig,Sc=0,Vn=null,dr=null,Cr=null,xv=!1,bp=!1,Yp=0,yG=0;function Vr(){throw Error(He(321))}function uP(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 dP(e,t,n,r,o,s){if(Sc=s,Vn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lg.current=e===null||e.memoizedState===null?xG:SG,e=n(r,o),bp){s=0;do{if(bp=!1,Yp=0,25<=s)throw Error(He(301));s+=1,Cr=dr=null,t.updateQueue=null,Lg.current=PG,e=n(r,o)}while(bp)}if(Lg.current=Sv,t=dr!==null&&dr.next!==null,Sc=0,Cr=dr=Vn=null,xv=!1,t)throw Error(He(300));return e}function fP(){var e=Yp!==0;return Yp=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?Vn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Os(){if(dr===null){var e=Vn.alternate;e=e!==null?e.memoizedState:null}else e=dr.next;var t=Cr===null?Vn.memoizedState:Cr.next;if(t!==null)Cr=t,dr=e;else{if(e===null)throw Error(He(310));dr=e,e={memoizedState:dr.memoizedState,baseState:dr.baseState,baseQueue:dr.baseQueue,queue:dr.queue,next:null},Cr===null?Vn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function Qp(e,t){return typeof t=="function"?t(e):t}function gw(e){var t=Os(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=dr,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,Vn.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,Vn.lanes|=s,Pc|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vw(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 EL(){}function IL(e,t){var n=Vn,r=Os(),o=t(),s=!ci(r.memoizedState,o);if(s&&(r.memoizedState=o,Po=!0),r=r.queue,pP(TL.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||ML(n,t,o)}return o}function ML(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vn.updateQueue,t===null?(t={lastEffect:null,stores:null},Vn.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,$L(t)&&RL(e)}function TL(e,t,n){return n(function(){$L(t)&&RL(e)})}function $L(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ci(e,n)}catch(r){return!0}}function RL(e){var t=vl(e,1);t!==null&&ii(t,e,1,-1)}function kT(e){var t=Ci();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=CG.bind(null,Vn,e),[t.memoizedState,e]}function Xp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vn.updateQueue,t===null?(t={lastEffect:null,stores:null},Vn.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 OL(){return Os().memoizedState}function Fg(e,t,n,r){var o=Ci();Vn.flags|=e,o.memoizedState=Xp(1|t,n,void 0,r===void 0?null:r)}function Ey(e,t,n,r){var o=Os();r=r===void 0?null:r;var s=void 0;if(dr!==null){var i=dr.memoizedState;if(s=i.destroy,r!==null&&uP(r,i.deps)){o.memoizedState=Xp(t,n,s,r);return}}Vn.flags|=e,o.memoizedState=Xp(1|t,n,s,r)}function ET(e,t){return Fg(8390656,8,e,t)}function pP(e,t){return Ey(2048,8,e,t)}function DL(e,t){return Ey(4,2,e,t)}function AL(e,t){return Ey(4,4,e,t)}function LL(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 FL(e,t,n){return n=n!=null?n.concat([e]):null,Ey(4,4,LL.bind(null,t,e),n)}function hP(){}function NL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&uP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function BL(e,t){var n=Os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&uP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zL(e,t,n){return Sc&21?(ci(n,t)||(n=HA(),Vn.lanes|=n,Pc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Po=!0),e.memoizedState=n)}function bG(e,t){var n=dn;dn=n!==0&&4>n?n:4,e(!0);var r=mw.transition;mw.transition={};try{e(!1),t()}finally{dn=n,mw.transition=r}}function VL(){return Os().memoizedState}function wG(e,t,n){var r=va(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jL(e))HL(t,n);else if(n=bL(e,t,n,r),n!==null){var o=uo();ii(n,e,r,o),UL(n,t,r)}}function CG(e,t,n){var r=va(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jL(e))HL(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,sP(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(u){}finally{}n=bL(e,t,o,r),n!==null&&(o=uo(),ii(n,e,r,o),UL(n,t,r))}}function jL(e){var t=e.alternate;return e===Vn||t!==null&&t===Vn}function HL(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 UL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,WS(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},xG={readContext:Rs,useCallback:function(e,t){return Ci().memoizedState=[e,t===void 0?null:t],e},useContext:Rs,useEffect:ET,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fg(4194308,4,LL.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=Ci();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();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=wG.bind(null,Vn,e),[r.memoizedState,e]},useRef:function(e){var t=Ci();return e={current:e},t.memoizedState=e},useState:kT,useDebugValue:hP,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=kT(!1),t=e[0];return e=bG.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vn,o=Ci();if(An){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Sr===null)throw Error(He(349));Sc&30||ML(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,ET(TL.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=Ci(),t=Sr.identifierPrefix;if(An){var n=cl,r=al;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=yG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},SG={readContext:Rs,useCallback:NL,useContext:Rs,useEffect:pP,useImperativeHandle:FL,useInsertionEffect:DL,useLayoutEffect:AL,useMemo:BL,useReducer:gw,useRef:OL,useState:function(){return gw(Qp)},useDebugValue:hP,useDeferredValue:function(e){var t=Os();return zL(t,dr.memoizedState,e)},useTransition:function(){var e=gw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:EL,useSyncExternalStore:IL,useId:VL,unstable_isNewReconciler:!1},PG={readContext:Rs,useCallback:NL,useContext:Rs,useEffect:pP,useImperativeHandle:FL,useInsertionEffect:DL,useLayoutEffect:AL,useMemo:BL,useReducer:vw,useRef:OL,useState:function(){return vw(Qp)},useDebugValue:hP,useDeferredValue:function(e){var t=Os();return dr===null?t.memoizedState=e:zL(t,dr.memoizedState,e)},useTransition:function(){var e=vw(Qp)[0],t=Os().memoizedState;return[e,t]},useMutableSource:EL,useSyncExternalStore:IL,useId:VL,unstable_isNewReconciler:!1};function gd(e,t){try{var n="",r=t;do n+=ZU(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 yw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function nx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kG=typeof WeakMap=="function"?WeakMap:Map;function WL(e,t,n){n=fl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kv||(kv=!0,fx=r),nx(e,t)},n}function GL(e,t,n){n=fl(-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(){nx(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nx(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 IT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kG;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=BG.bind(null,e,t,n),t.then(e,e))}function MT(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=fl(-1,1),t.tag=2,ma(n,t,1))),n.lanes|=1),e)}var EG=Pl.ReactCurrentOwner,Po=!1;function so(e,t,n,r){t.child=e===null?PL(t,null,n,r):hd(t,e.child,n,r)}function TT(e,t,n,r,o){n=n.render;var s=t.ref;return Ju(t,o),r=dP(e,t,n,r,s,o),n=fP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yl(e,t,o)):(An&&n&&JS(t),t.flags|=1,so(e,t,r,o),t.child)}function $T(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!xP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,KL(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 yl(e,t,o)}return t.flags|=1,e=ya(s,r),e.ref=t.ref,e.return=t,t.child=e}function KL(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,yl(e,t,o)}return rx(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,zo),zo|=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,zo),zo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xn(Vu,zo),zo|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xn(Vu,zo),zo|=r;return so(e,t,o,n),t.child}function YL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rx(e,t,n,r,o){var s=Eo(n)?Cc:Zr.current;return s=fd(t,s),Ju(t,o),n=dP(e,t,n,r,s,o),r=fP(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yl(e,t,o)):(An&&r&&JS(t),t.flags|=1,so(e,t,n,o),t.child)}function RT(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),xL(t,n,r),tx(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)&&ST(t,i,r,u),Ql=!1;var g=t.memoizedState;i.state=g,wv(t,r,i,o),a=t.memoizedState,l!==r||g!==a||ko.current||Ql?(typeof f=="function"&&(ex(t,n,f,r),a=t.memoizedState),(l=Ql||xT(t,n,l,r,g,a,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wL(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qs(t.type,l),i.props=u,p=t.pendingProps,g=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=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||g!==a)&&ST(t,i,r,a),Ql=!1,g=t.memoizedState,i.state=g,wv(t,r,i,o);var y=t.memoizedState;l!==p||g!==y||ko.current||Ql?(typeof v=="function"&&(ex(t,n,v,r),y=t.memoizedState),(u=Ql||xT(t,n,u,r,g,y,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return ox(e,t,n,r,s,o)}function ox(e,t,n,r,o,s){YL(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&vT(t,n,!1),yl(e,t,s);r=t.stateNode,EG.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&&vT(t,n,!0),t.child}function QL(e){var t=e.stateNode;t.pendingContext?gT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gT(e,t.context,!1),lP(e,t.containerInfo)}function OT(e,t,n,r,o){return pd(),tP(o),t.flags|=256,so(e,t,n,r),t.child}var sx={dehydrated:null,treeContext:null,retryLane:0};function ix(e){return{baseLanes:e,cachePool:null,transitions:null}}function XL(e,t,n){var r=t.pendingProps,o=Bn.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(Bn,o&1),e===null)return ZC(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=_y(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=ix(n),t.memoizedState=sx,e):mP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return IG(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?ix(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=sx,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 mP(e,t){return t=_y({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ng(e,t,n,r){return r!==null&&tP(r),hd(t,e.child,null,n),e=mP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function IG(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=yw(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=_y({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=ix(i),t.memoizedState=sx,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=yw(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,vl(e,o),ii(r,e,o,-1))}return CP(),r=yw(Error(He(421))),ng(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=zG.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Go=ha(o.nextSibling),Ko=t,An=!0,Js=null,e!==null&&(ks[Es++]=al,ks[Es++]=cl,ks[Es++]=xc,al=e.id,cl=e.overflow,xc=t),t=mP(t,r.children),t.flags|=4096,t)}function DT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),JC(e.return,t,n)}function bw(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 ZL(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(so(e,t,r.children,n),r=Bn.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&&DT(e,n,t);else if(e.tag===19)DT(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(Bn,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),bw(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}bw(t,!0,n,null,s);break;case"together":bw(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 yl(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 MG(e,t,n){switch(t.tag){case 3:QL(t),pd();break;case 5:kL(t);break;case 1:Eo(t.type)&&mv(t);break;case 4:lP(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(Bn,Bn.current&1),t.flags|=128,null):n&t.child.childLanes?XL(e,t,n):(xn(Bn,Bn.current&1),e=yl(e,t,n),e!==null?e.sibling:null);xn(Bn,Bn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ZL(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xn(Bn,Bn.current),r)break;return null;case 22:case 23:return t.lanes=0,qL(e,t,n)}return yl(e,t,n)}var JL,lx,eF,tF;JL=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}};lx=function(){};eF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,lc(_i.current);var s=null;switch(n){case"input":o=_C(e,o),r=_C(e,r),s=[];break;case"select":o=jn({},o,{value:void 0}),r=jn({},r,{value:void 0}),s=[];break;case"textarea":o=RC(e,o),r=RC(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pv)}DC(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)}};tF=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 _G(e,t,n){var r=t.pendingProps;switch(eP(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),cP(),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&&(mx(Js),Js=null))),lx(e,t),jr(t),null;case 5:aP(t);var o=lc(qp.current);if(n=t.type,e!==null&&t.stateNode!=null)eF(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(_i.current),eg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ei]=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":H_(r,s),En("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},En("invalid",r);break;case"textarea":W_(r,s),En("invalid",r)}DC(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),U_(r,s,!0);break;case"textarea":Wm(r),G_(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=MA(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[Ei]=t,e[Gp]=r,JL(e,t,!1,!1),t.stateNode=e;e:{switch(i=AC(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":H_(e,r),o=_C(e,r),En("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=jn({},r,{value:void 0}),En("invalid",e);break;case"textarea":W_(e,r),o=RC(e,r),En("invalid",e);break;default:o=r}DC(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?$A(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&&BS(e,s,a,i))}switch(n){case"input":Wm(e),U_(e,r,!1);break;case"textarea":Wm(e),G_(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)tF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=lc(qp.current),lc(_i.current),eg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ei]=t,(s=r.nodeValue!==n)&&(e=Ko,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[Ei]=t,t.stateNode=r}return jr(t),null;case 13:if(Mn(Bn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(An&&Go!==null&&t.mode&1&&!(t.flags&128))yL(),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[Ei]=t}else pd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),s=!1}else Js!==null&&(mx(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||Bn.current&1?fr===0&&(fr=3):CP())),t.updateQueue!==null&&(t.flags|=4),jr(t),null);case 4:return md(),lx(e,t),e===null&&Up(t.stateNode.containerInfo),jr(t),null;case 10:return oP(t.type._context),jr(t),null;case 17:return Eo(t.type)&&hv(),jr(t),null;case 19:if(Mn(Bn),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(fr!==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(Bn,Bn.current&1|2),t.child}e=e.sibling}s.tail!==null&&er()>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*er()-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=er(),t.sibling=null,n=Bn.current,xn(Bn,r?n&1|2:n&1),t):(jr(t),null);case 22:case 23:return wP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zo&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 TG(e,t){switch(eP(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),cP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return aP(t),null;case 13:if(Mn(Bn),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(Bn),null;case 4:return md(),null;case 10:return oP(t.type._context),null;case 22:case 23:return wP(),null;case 24:return null;default:return null}}var rg=!1,Gr=!1,$G=typeof WeakSet=="function"?WeakSet:Set,lt=null;function zu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gn(e,t,r)}else n.current=null}function ax(e,t,n){try{n()}catch(r){Gn(e,t,r)}}var AT=!1;function RG(e,t){if(WC=uv,e=sL(),ZS(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,g=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=i),g===s&&++f===r&&(a=i),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(GC={focusedElem:e,selectionRange:n},uv=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,C=y.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:Qs(t.type,m),C);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(E){Gn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return y=AT,AT=!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&&ax(t,n,s)}o=o.next}while(o!==r)}}function Iy(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 cx(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 nF(e){var t=e.alternate;t!==null&&(e.alternate=null,nF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ei],delete t[Gp],delete t[YC],delete t[hG],delete t[mG])),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 rF(e){return e.tag===5||e.tag===3||e.tag===4}function LT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rF(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 ux(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(ux(e,t,n),e=e.sibling;e!==null;)ux(e,t,n),e=e.sibling}function dx(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(dx(e,t,n),e=e.sibling;e!==null;)dx(e,t,n),e=e.sibling}var Rr=null,Zs=!1;function Bl(e,t,n){for(n=n.child;n!==null;)oF(e,t,n),n=n.sibling}function oF(e,t,n){if(Mi&&typeof Mi.onCommitFiberUnmount=="function")try{Mi.onCommitFiberUnmount(by,n)}catch(l){}switch(n.tag){case 5:Gr||zu(n,t);case 6:var r=Rr,o=Zs;Rr=null,Bl(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?fw(e.parentNode,n):e.nodeType===1&&fw(e,n),Vp(e)):fw(Rr,n.stateNode));break;case 4:r=Rr,o=Zs,Rr=n.stateNode.containerInfo,Zs=!0,Bl(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)&&ax(n,t,i),o=o.next}while(o!==r)}Bl(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){Gn(n,t,l)}Bl(e,t,n);break;case 21:Bl(e,t,n);break;case 22:n.mode&1?(Gr=(r=Gr)||n.memoizedState!==null,Bl(e,t,n),Gr=r):Bl(e,t,n);break;default:Bl(e,t,n)}}function FT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $G),t.forEach(function(r){var o=VG.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));oF(s,i,o),Rr=null,Zs=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Gn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sF(t,e),t=t.sibling}function sF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ks(t,e),bi(e),r&4){try{wp(3,e,e.return),Iy(3,e)}catch(m){Gn(e,e.return,m)}try{wp(5,e,e.return)}catch(m){Gn(e,e.return,m)}}break;case 1:Ks(t,e),bi(e),r&512&&n!==null&&zu(n,n.return);break;case 5:if(Ks(t,e),bi(e),r&512&&n!==null&&zu(n,n.return),e.flags&32){var o=e.stateNode;try{Fp(o,"")}catch(m){Gn(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&EA(o,s),AC(l,i);var u=AC(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?$A(o,p):f==="dangerouslySetInnerHTML"?_A(o,p):f==="children"?Fp(o,p):BS(o,f,p,u)}switch(l){case"input":TC(o,s);break;case"textarea":IA(o,s);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?Yu(o,!!s.multiple,v,!1):g!==!!s.multiple&&(s.defaultValue!=null?Yu(o,!!s.multiple,s.defaultValue,!0):Yu(o,!!s.multiple,s.multiple?[]:"",!1))}o[Gp]=s}catch(m){Gn(e,e.return,m)}}break;case 6:if(Ks(t,e),bi(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){Gn(e,e.return,m)}}break;case 3:if(Ks(t,e),bi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(m){Gn(e,e.return,m)}break;case 4:Ks(t,e),bi(e);break;case 13:Ks(t,e),bi(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(yP=er())),r&4&&FT(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),bi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(lt=e,f=e.child;f!==null;){for(p=lt=f;lt!==null;){switch(g=lt,v=g.child,g.tag){case 0:case 11:case 14:case 15:wp(4,g,g.return);break;case 1:zu(g,g.return);var y=g.stateNode;if(typeof y.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Gn(r,n,m)}}break;case 5:zu(g,g.return);break;case 22:if(g.memoizedState!==null){BT(p);continue}}v!==null?(v.return=g,lt=v):BT(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=TA("display",i))}catch(m){Gn(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(m){Gn(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ks(t,e),bi(e),r&4&&FT(e);break;case 21:break;default:Ks(t,e),bi(e)}}function bi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(rF(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=LT(e);dx(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=LT(e);ux(e,l,i);break;default:throw Error(He(161))}}catch(a){Gn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function OG(e,t,n){lt=e,iF(e)}function iF(e,t,n){for(var r=(e.mode&1)!==0;lt!==null;){var o=lt,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||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(lt=o;lt!==null;)i=lt,a=i.child,i.tag===22&&i.memoizedState!==null?zT(o):a!==null?(a.return=i,lt=a):zT(o);for(;s!==null;)lt=s,iF(s),s=s.sibling;lt=o,rg=l,Gr=u}NT(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,lt=s):NT(e)}}function NT(e){for(;lt!==null;){var t=lt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gr||Iy(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&&CT(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}CT(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&&cx(t)}catch(g){Gn(t,t.return,g)}}if(t===e){lt=null;break}if(n=t.sibling,n!==null){n.return=t.return,lt=n;break}lt=t.return}}function BT(e){for(;lt!==null;){var t=lt;if(t===e){lt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,lt=n;break}lt=t.return}}function zT(e){for(;lt!==null;){var t=lt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Iy(4,t)}catch(a){Gn(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Gn(t,o,a)}}var s=t.return;try{cx(t)}catch(a){Gn(t,s,a)}break;case 5:var i=t.return;try{cx(t)}catch(a){Gn(t,i,a)}}}catch(a){Gn(t,t.return,a)}if(t===e){lt=null;break}var l=t.sibling;if(l!==null){l.return=t.return,lt=l;break}lt=t.return}}var DG=Math.ceil,Pv=Pl.ReactCurrentDispatcher,gP=Pl.ReactCurrentOwner,_s=Pl.ReactCurrentBatchConfig,Xt=0,Sr=null,ar=null,Lr=0,zo=0,Vu=Oa(0),fr=0,Zp=null,Pc=0,My=0,vP=0,Cp=null,wo=null,yP=0,vd=1/0,ol=null,kv=!1,fx=null,ga=null,og=!1,oa=null,Ev=0,xp=0,px=null,Bg=-1,zg=0;function uo(){return Xt&6?er():Bg!==-1?Bg:Bg=er()}function va(e){return e.mode&1?Xt&2&&Lr!==0?Lr&-Lr:vG.transition!==null?(zg===0&&(zg=HA()),zg):(e=dn,e!==0||(e=window.event,e=e===void 0?16:QA(e.type)),e):1}function ii(e,t,n,r){if(50<xp)throw xp=0,px=null,Error(He(185));Ih(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(My|=n),fr===4&&ta(e,Lr)),Io(e,r),n===1&&Xt===0&&!(t.mode&1)&&(vd=er()+500,Py&&Da()))}function Io(e,t){var n=e.callbackNode;vW(e,t);var r=cv(e,e===Sr?Lr:0);if(r===0)n!==null&&Y_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Y_(n),t===1)e.tag===0?gG(VT.bind(null,e)):mL(VT.bind(null,e)),fG(function(){!(Xt&6)&&Da()}),n=null;else{switch(UA(r)){case 1:n=US;break;case 4:n=VA;break;case 16:n=av;break;case 536870912:n=jA;break;default:n=av}n=hF(n,lF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lF(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=cF();(Sr!==e||Lr!==t)&&(ol=null,vd=er()+500,dc(e,t));do try{FG();break}catch(l){aF(e,l)}while(1);rP(),Pv.current=s,Xt=o,ar!==null?t=0:(Sr=null,Lr=0,t=fr)}if(t!==0){if(t===2&&(o=zC(e),o!==0&&(r=o,t=hx(e,o))),t===1)throw n=Zp,dc(e,0),ta(e,r),Io(e,er()),n;if(t===6)ta(e,r);else{if(o=e.current.alternate,!(r&30)&&!AG(o)&&(t=Iv(e,r),t===2&&(s=zC(e),s!==0&&(r=s,t=hx(e,s))),t===1))throw n=Zp,dc(e,0),ta(e,r),Io(e,er()),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(ta(e,r),(r&130023424)===r&&(t=yP+500-er(),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(ta(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=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DG(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,er()),e.callbackNode===n?lF.bind(null,e):null}function hx(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&&mx(t)),e}function mx(e){wo===null?wo=e:wo.push.apply(wo,e)}function AG(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 ta(e,t){for(t&=~vP,t&=~My,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 VT(e){if(Xt&6)throw Error(He(327));ed();var t=cv(e,0);if(!(t&1))return Io(e,er()),null;var n=Iv(e,t);if(e.tag!==0&&n===2){var r=zC(e);r!==0&&(t=r,n=hx(e,r))}if(n===1)throw n=Zp,dc(e,0),ta(e,t),Io(e,er()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tc(e,wo,ol),Io(e,er()),null}function bP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(vd=er()+500,Py&&Da())}}function kc(e){oa!==null&&oa.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 wP(){zo=Vu.current,Mn(Vu)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dG(n)),ar!==null)for(n=ar.return;n!==null;){var r=n;switch(eP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hv();break;case 3:md(),Mn(ko),Mn(Zr),cP();break;case 5:aP(r);break;case 4:md();break;case 13:Mn(Bn);break;case 19:Mn(Bn);break;case 10:oP(r.type._context);break;case 22:case 23:wP()}n=n.return}if(Sr=e,ar=e=ya(e.current,null),Lr=zo=t,fr=0,Zp=null,vP=My=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 aF(e,t){do{var n=ar;try{if(rP(),Lg.current=Sv,xv){for(var r=Vn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}xv=!1}if(Sc=0,Cr=dr=Vn=null,bp=!1,Yp=0,gP.current=null,n===null||n.return===null){fr=1,Zp=t,ar=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 g=f.alternate;g?(f.updateQueue=g.updateQueue,f.memoizedState=g.memoizedState,f.lanes=g.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=MT(i);if(v!==null){v.flags&=-257,_T(v,i,l,s,t),v.mode&1&&IT(s,u,t),t=v,a=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(a),t.updateQueue=m}else y.add(a);break e}else{if(!(t&1)){IT(s,u,t),CP();break e}a=Error(He(426))}}else if(An&&l.mode&1){var C=MT(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),_T(C,i,l,s,t),tP(gd(a,l));break e}}s=a=gd(a,l),fr!==4&&(fr=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=WL(s,a,t);wT(s,w);break e;case 1:l=a;var b=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(ga===null||!ga.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var E=GL(s,l,t);wT(s,E);break e}}s=s.return}while(s!==null)}dF(n)}catch(_){t=_,ar===n&&n!==null&&(ar=n=n.return);continue}break}while(1)}function cF(){var e=Pv.current;return Pv.current=Sv,e===null?Sv:e}function CP(){(fr===0||fr===3||fr===2)&&(fr=4),Sr===null||!(Pc&268435455)&&!(My&268435455)||ta(Sr,Lr)}function Iv(e,t){var n=Xt;Xt|=2;var r=cF();(Sr!==e||Lr!==t)&&(ol=null,dc(e,t));do try{LG();break}catch(o){aF(e,o)}while(1);if(rP(),Xt=n,Pv.current=r,ar!==null)throw Error(He(261));return Sr=null,Lr=0,fr}function LG(){for(;ar!==null;)uF(ar)}function FG(){for(;ar!==null&&!aW();)uF(ar)}function uF(e){var t=pF(e.alternate,e,zo);e.memoizedProps=e.pendingProps,t===null?dF(e):ar=t,gP.current=null}function dF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=TG(n,t),n!==null){n.flags&=32767,ar=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fr=6,ar=null;return}}else if(n=_G(n,t,zo),n!==null){ar=n;return}if(t=t.sibling,t!==null){ar=t;return}ar=t=e}while(t!==null);fr===0&&(fr=5)}function tc(e,t,n){var r=dn,o=_s.transition;try{_s.transition=null,dn=1,NG(e,t,n,r)}finally{_s.transition=o,dn=r}return null}function NG(e,t,n,r){do ed();while(oa!==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(yW(e,s),e===Sr&&(ar=Sr=null,Lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||og||(og=!0,hF(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,gP.current=null,RG(e,n),sF(n,e),oG(GC),uv=!!WC,GC=WC=null,e.current=n,OG(n),cW(),Xt=l,dn=i,_s.transition=s}else e.current=n;if(og&&(og=!1,oa=e,Ev=o),s=e.pendingLanes,s===0&&(ga=null),fW(n.stateNode),Io(e,er()),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=fx,fx=null,e;return Ev&1&&e.tag!==0&&ed(),s=e.pendingLanes,s&1?e===px?xp++:(xp=0,px=e):xp=0,Da(),null}function ed(){if(oa!==null){var e=UA(Ev),t=_s.transition,n=dn;try{if(_s.transition=null,dn=16>e?16:e,oa===null)var r=!1;else{if(e=oa,oa=null,Ev=0,Xt&6)throw Error(He(331));var o=Xt;for(Xt|=4,lt=e.current;lt!==null;){var s=lt,i=s.child;if(lt.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(lt=u;lt!==null;){var f=lt;switch(f.tag){case 0:case 11:case 15:wp(8,f,s)}var p=f.child;if(p!==null)p.return=f,lt=p;else for(;lt!==null;){f=lt;var g=f.sibling,v=f.return;if(nF(f),f===u){lt=null;break}if(g!==null){g.return=v,lt=g;break}lt=v}}}var y=s.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var C=m.sibling;m.sibling=null,m=C}while(m!==null)}}lt=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,lt=i;else e:for(;lt!==null;){if(s=lt,s.flags&2048)switch(s.tag){case 0:case 11:case 15:wp(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,lt=w;break e}lt=s.return}}var b=e.current;for(lt=b;lt!==null;){i=lt;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,lt=x;else e:for(i=b;lt!==null;){if(l=lt,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Iy(9,l)}}catch(_){Gn(l,l.return,_)}if(l===i){lt=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,lt=E;break e}lt=l.return}}if(Xt=o,Da(),Mi&&typeof Mi.onPostCommitFiberRoot=="function")try{Mi.onPostCommitFiberRoot(by,e)}catch(_){}r=!0}return r}finally{dn=n,_s.transition=t}}return!1}function jT(e,t,n){t=gd(n,t),t=WL(e,t,1),e=ma(e,t,1),t=uo(),e!==null&&(Ih(e,1,t),Io(e,t))}function Gn(e,t,n){if(e.tag===3)jT(e,e,n);else for(;t!==null;){if(t.tag===3){jT(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=GL(t,e,1),t=ma(t,e,1),e=uo(),t!==null&&(Ih(t,1,e),Io(t,e));break}}t=t.return}}function BG(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=uo(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Lr&n)===n&&(fr===4||fr===3&&(Lr&130023424)===Lr&&500>er()-yP?dc(e,0):vP|=n),Io(e,t)}function fF(e,t){t===0&&(e.mode&1?(t=qm,qm<<=1,!(qm&130023424)&&(qm=4194304)):t=1);var n=uo();e=vl(e,t),e!==null&&(Ih(e,t,n),Io(e,n))}function zG(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fF(e,n)}function VG(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),fF(e,n)}var pF;pF=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,MG(e,t,n);Po=!!(e.flags&131072)}else Po=!1,An&&t.flags&1048576&&gL(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=dP(null,t,r,e,o,n);var s=fP();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,iP(t),o.updater=ky,t.stateNode=o,o._reactInternals=t,tx(t,r,e,n),t=ox(null,t,r,!0,s,n)):(t.tag=0,An&&s&&JS(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=HG(r),e=Qs(r,e),o){case 0:t=rx(null,t,r,e,n);break e;case 1:t=RT(null,t,r,e,n);break e;case 11:t=TT(null,t,r,e,n);break e;case 14:t=$T(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),rx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qs(r,o),RT(e,t,r,o,n);case 3:e:{if(QL(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,wL(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=OT(e,t,r,n,o);break e}else if(r!==o){o=gd(Error(He(424)),t),t=OT(e,t,r,n,o);break e}else for(Go=ha(t.stateNode.containerInfo.firstChild),Ko=t,An=!0,Js=null,n=PL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pd(),r===o){t=yl(e,t,n);break e}so(e,t,r,n)}t=t.child}return t;case 5:return kL(t),e===null&&ZC(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,KC(r,o)?i=null:s!==null&&KC(r,s)&&(t.flags|=32),YL(e,t),so(e,t,i,n),t.child;case 6:return e===null&&ZC(t),null;case 13:return XL(e,t,n);case 4:return lP(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),TT(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=yl(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=fl(-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),JC(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),JC(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),$T(e,t,r,o,n);case 15:return KL(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),xL(t,r,o),tx(t,r,o,n),ox(null,t,r,!0,e,n);case 19:return ZL(e,t,n);case 22:return qL(e,t,n)}throw Error(He(156,t.tag))};function hF(e,t){return zA(e,t)}function jG(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 jG(e,t,n,r)}function xP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HG(e){if(typeof e=="function")return xP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===VS)return 11;if(e===jS)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")xP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case $u:return fc(n.children,o,s,t);case zS:i=8,o|=8;break;case kC:return e=Ms(12,n,t,o|2),e.elementType=kC,e.lanes=s,e;case EC:return e=Ms(13,n,t,o),e.elementType=EC,e.lanes=s,e;case IC:return e=Ms(19,n,t,o),e.elementType=IC,e.lanes=s,e;case SA:return _y(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CA:i=10;break e;case xA:i=9;break e;case VS:i=11;break e;case jS:i=14;break e;case Yl: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 _y(e,t,n,r){return e=Ms(22,e,r,t),e.elementType=SA,e.lanes=n,e.stateNode={isHidden:!1},e}function ww(e,t,n){return e=Ms(6,e,null,t),e.lanes=n,e}function Cw(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 UG(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=tw(0),this.expirationTimes=tw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tw(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function SP(e,t,n,r,o,s,i,l,a){return e=new UG(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},iP(s),e}function WG(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 mF(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 hL(e,n,t)}return t}function gF(e,t,n,r,o,s,i,l,a){return e=SP(n,r,!0,e,o,s,i,l,a),e.context=mF(null),n=e.current,r=uo(),o=va(n),s=fl(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 Ty(e,t,n,r){var o=t.current,s=uo(),i=va(o);return n=mF(n),t.context===null?t.context=n:t.pendingContext=n,t=fl(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 HT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function PP(e,t){HT(e,t),(e=e.alternate)&&HT(e,t)}function GG(){return null}var vF=typeof reportError=="function"?reportError:function(e){console.error(e)};function kP(e){this._internalRoot=e}$y.prototype.render=kP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));Ty(e,t,null,null)};$y.prototype.unmount=kP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kc(function(){Ty(null,e,null,null)}),t[gl]=null}};function $y(e){this._internalRoot=e}$y.prototype.unstable_scheduleHydration=function(e){if(e){var t=KA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ea.length&&t!==0&&t<ea[n].priority;n++);ea.splice(n,0,e),n===0&&YA(e)}};function EP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ry(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function UT(){}function KG(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=gF(t,r,e,0,null,!1,!1,"",UT);return e._reactRootContainer=i,e[gl]=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=SP(e,0,!1,null,null,!1,!1,"",UT);return e._reactRootContainer=a,e[gl]=a.current,Up(e.nodeType===8?e.parentNode:e),kc(function(){Ty(t,a,n,r)}),a}function Oy(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)}}Ty(t,i,e,o)}else i=KG(n,t,e,o,r);return Mv(i)}WA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tp(t.pendingLanes);n!==0&&(WS(t,n|1),Io(t,er()),!(Xt&6)&&(vd=er()+500,Da()))}break;case 13:kc(function(){var r=vl(e,1);if(r!==null){var o=uo();ii(r,e,1,o)}}),PP(e,1)}};GS=function(e){if(e.tag===13){var t=vl(e,134217728);if(t!==null){var n=uo();ii(t,e,134217728,n)}PP(e,134217728)}};GA=function(e){if(e.tag===13){var t=va(e),n=vl(e,t);if(n!==null){var r=uo();ii(n,e,t,r)}PP(e,t)}};KA=function(){return dn};qA=function(e,t){var n=dn;try{return dn=e,t()}finally{dn=n}};FC=function(e,t,n){switch(t){case"input":if(TC(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=Sy(r);if(!o)throw Error(He(90));kA(r),TC(r,o)}}}break;case"textarea":IA(e,n);break;case"select":t=n.value,t!=null&&Yu(e,!!n.multiple,t,!1)}};DA=bP;AA=kc;var qG={usingClientEntryPoint:!1,Events:[_h,Au,Sy,RA,OA,bP]},Lf={findFiberByHostInstance:sc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},YG={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:Pl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=NA(e),e===null?null:e.stateNode},findFiberByHostInstance:Lf.findFiberByHostInstance||GG,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{by=sg.inject(YG),Mi=sg}catch(e){}}rs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qG;rs.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!EP(t))throw Error(He(200));return WG(e,t,null,n)};rs.createRoot=function(e,t){if(!EP(e))throw Error(He(299));var n=!1,r="",o=vF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=SP(e,1,!1,null,null,n,!1,r,o),e[gl]=t.current,Up(e.nodeType===8?e.parentNode:e),new kP(t)};rs.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=NA(t),e=e===null?null:e.stateNode,e};rs.flushSync=function(e){return kc(e)};rs.hydrate=function(e,t,n){if(!Ry(t))throw Error(He(200));return Oy(null,e,t,!0,n)};rs.hydrateRoot=function(e,t,n){if(!EP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=vF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=gF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[gl]=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 $y(t)};rs.render=function(e,t,n){if(!Ry(t))throw Error(He(200));return Oy(null,e,t,!1,n)};rs.unmountComponentAtNode=function(e){if(!Ry(e))throw Error(He(40));return e._reactRootContainer?(kc(function(){Oy(null,null,e,!1,function(){e._reactRootContainer=null,e[gl]=null})}),!0):!1};rs.unstable_batchedUpdates=bP;rs.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ry(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return Oy(e,t,n,!1,r)};rs.version="18.2.0-next-9e3b772b8-20220608";function yF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yF)}catch(e){console.error(e)}}yF(),gA.exports=rs;var zd=gA.exports;const ig=di(zd);var bF,WT=zd;bF=WT.createRoot,WT.hydrateRoot;const QG="modulepreload",XG=function(e){return"/"+e},GT={},ZG=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=XG(s),s in GT)return;GT[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":QG,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 iA;if(!((iA=window.crypto)!=null&&iA.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 ZG(()=>import("./sha512-d8777e57.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 sa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(sa||(sa={}));const KT="popstate";function JG(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=zc(o.location.hash.substr(1));return gx("",{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){Dy(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return tK(t,n,r,e)}function mr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Dy(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function eK(){return Math.random().toString(36).substr(2,8)}function qT(e,t){return{usr:e.state,key:e.key,idx:t}}function gx(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||eK()})}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 tK(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=sa.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=sa.Pop;let C=f(),w=C==null?null:C-u;u=C,a&&a({action:l,location:m.location,delta:w})}function g(C,w){l=sa.Push;let b=gx(m.location,C,w);n&&n(b,C),u=f()+1;let x=qT(b,u),E=m.createHref(b);try{i.pushState(x,"",E)}catch(_){o.location.assign(E)}s&&a&&a({action:l,location:m.location,delta:1})}function v(C,w){l=sa.Replace;let b=gx(m.location,C,w);n&&n(b,C),u=f();let x=qT(b,u),E=m.createHref(b);i.replaceState(x,"",E),s&&a&&a({action:l,location:m.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 mr(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let m={get action(){return l},get location(){return e(o,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(KT,p),a=C,()=>{o.removeEventListener(KT,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:g,replace:v,go(C){return i.go(C)}};return m}var YT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(YT||(YT={}));function nK(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zc(t):t,o=IP(r.pathname||"/",n);if(o==null)return null;let s=wF(e);rK(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=fK(s[l],mK(o));return i}function wF(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(mr(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=ba([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(mr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wF(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:uK(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 CF(s.path))o(s,i,a)}),t}function CF(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=CF(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 rK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oK=/^:\w+$/,sK=3,iK=2,lK=1,aK=10,cK=-2,QT=e=>e==="*";function uK(e,t){let n=e.split("/"),r=n.length;return n.some(QT)&&(r+=cK),t&&(r+=iK),n.filter(o=>!QT(o)).reduce((o,s)=>o+(oK.test(s)?sK:s===""?lK:aK),r)}function dK(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 fK(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=pK({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:bK(ba([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=ba([o,f.pathnameBase]))}return s}function pK(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hK(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,f,p)=>{if(f==="*"){let g=l[p]||"";i=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}return u[f]=gK(l[p]||"",f),u},{}),pathname:s,pathnameBase:i,pattern:e}}function hK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Dy(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 mK(e){try{return decodeURI(e)}catch(t){return Dy(!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 gK(e,t){try{return decodeURIComponent(e)}catch(n){return Dy(!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 IP(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 vK(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:yK(n,t):t,search:wK(r),hash:CK(o)}}function yK(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 xw(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 xF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zc(e):(o=Jp({},e),mr(!o.pathname||!o.pathname.includes("?"),xw("?","pathname","search",o)),mr(!o.pathname||!o.pathname.includes("#"),xw("#","pathname","hash",o)),mr(!o.search||!o.search.includes("#"),xw("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let a=vK(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,"/"),bK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PF=["post","put","patch","delete"];new Set(PF);const SK=["get",...PF];new Set(SK);/**
|
|
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 PK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const kK=typeof Object.is=="function"?Object.is:PK,{useState:EK,useEffect:IK,useLayoutEffect:MK,useDebugValue:_K}=wc;function TK(e,t,n){const r=t(),[{inst:o},s]=EK({inst:{value:r,getSnapshot:t}});return MK(()=>{o.value=r,o.getSnapshot=t,Sw(o)&&s({inst:o})},[e,r,t]),IK(()=>(Sw(o)&&s({inst:o}),e(()=>{Sw(o)&&s({inst:o})})),[e]),_K(r),r}function Sw(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!kK(n,r)}catch(r){return!0}}function $K(e,t,n){return t()}const RK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",OK=!RK,DK=OK?$K:TK;"useSyncExternalStore"in wc&&(e=>e.useSyncExternalStore)(wc);const kF=c.createContext(null),MP=c.createContext(null),Vd=c.createContext(null),Ay=c.createContext(null),jd=c.createContext({outlet:null,matches:[]}),EF=c.createContext(null);function vx(){return vx=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},vx.apply(this,arguments)}function AK(e,t){let{relative:n}=t===void 0?{}:t;$h()||mr(!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(Ay)!=null}function Hd(){return $h()||mr(!1),c.useContext(Ay).location}function LK(){$h()||mr(!1);let{basename:e,navigator:t}=c.useContext(Vd),{matches:n}=c.useContext(jd),{pathname:r}=Hd(),o=JSON.stringify(xF(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=SF(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(xF(r).map(i=>i.pathnameBase));return c.useMemo(()=>SF(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function FK(e,t){$h()||mr(!1);let{navigator:n}=c.useContext(Vd),r=c.useContext(MP),{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 m=typeof t=="string"?zc(t):t;l==="/"||(f=m.pathname)!=null&&f.startsWith(l)||mr(!1),u=m}else u=a;let p=u.pathname||"/",g=l==="/"?p:p.slice(l.length)||"/",v=nK(e,{pathname:g}),y=VK(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:ba([l,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:ba([l,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,r||void 0);return t&&y?c.createElement(Ay.Provider,{value:{location:vx({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:sa.Pop}},y):y}function NK(){let e=WK(),t=xK(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 BK 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(EF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zK(e){let{routeContext:t,match:n,children:r}=e,o=c.useContext(kF);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 VK(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let s=r.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));s>=0||mr(!1),r=r.slice(0,Math.min(r.length,s+1))}return r.reduceRight((s,i,l)=>{let a=i.route.id?o==null?void 0:o[i.route.id]:null,u=null;n&&(i.route.ErrorBoundary?u=c.createElement(i.route.ErrorBoundary,null):i.route.errorElement?u=i.route.errorElement:u=c.createElement(NK,null));let f=t.concat(r.slice(0,l+1)),p=()=>{let g=s;return a?g=u:i.route.Component?g=c.createElement(i.route.Component,null):i.route.element&&(g=i.route.element),c.createElement(zK,{match:i,routeContext:{outlet:s,matches:f},children:g})};return n&&(i.route.ErrorBoundary||i.route.errorElement||l===0)?c.createElement(BK,{location:n.location,component:u,error:a,children:p(),routeContext:{outlet:null,matches:f}}):p()},null)}var XT;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(XT||(XT={}));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 jK(e){let t=c.useContext(MP);return t||mr(!1),t}function HK(e){let t=c.useContext(jd);return t||mr(!1),t}function UK(e){let t=HK(),n=t.matches[t.matches.length-1];return n.route.id||mr(!1),n.route.id}function WK(){var e;let t=c.useContext(EF),n=jK(Tv.UseRouteError),r=UK(Tv.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function yx(e){mr(!1)}function GK(e){let{basename:t="/",children:n=null,location:r,navigationType:o=sa.Pop,navigator:s,static:i=!1}=e;$h()&&mr(!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:g=null,key:v="default"}=r,y=c.useMemo(()=>{let m=IP(u,l);return m==null?null:{location:{pathname:m,search:f,hash:p,state:g,key:v},navigationType:o}},[l,u,f,p,g,v,o]);return y==null?null:c.createElement(Vd.Provider,{value:a},c.createElement(Ay.Provider,{children:n,value:y}))}function KK(e){let{children:t,location:n}=e,r=c.useContext(kF),o=r&&!t?r.router.routes:bx(t);return FK(o,n)}var ZT;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ZT||(ZT={}));new Promise(()=>{});function bx(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,bx(r.props.children,s));return}r.type!==yx&&mr(!1),!r.props.index||!r.props.children||mr(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=bx(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 IF(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 qK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YK(e,t){return e.button===0&&(!t||t==="_self")&&!qK(e)}const QK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],XK=["aria-current","caseSensitive","className","end","style","to","children"];function ZK(e){let{basename:t,children:n,window:r}=e,o=c.useRef();o.current==null&&(o.current=JG({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(GK,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s})}const JK=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",eq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TP=c.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:u,preventScrollReset:f}=t,p=IF(t,QK),{basename:g}=c.useContext(Vd),v,y=!1;if(typeof u=="string"&&eq.test(u)&&(v=u,JK)){let b=new URL(window.location.href),x=u.startsWith("//")?new URL(b.protocol+u):new URL(u),E=IP(x.pathname,g);x.origin===b.origin&&E!=null?u=E+x.search+x.hash:y=!0}let m=AK(u,{relative:o}),C=nq(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||m,onClick:y||s?r:w,ref:n,target:a}))}),tq=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=IF(t,XK),p=_P(a,{relative:f.relative}),g=Hd(),v=c.useContext(MP),{navigator:y}=c.useContext(Vd),m=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=g.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(C=C.toLowerCase(),w=w?w.toLowerCase():null,m=m.toLowerCase());let b=C===m||!i&&C.startsWith(m)&&C.charAt(m.length)==="/",x=w!=null&&(w===m||!i&&w.startsWith(m)&&w.charAt(m.length)==="/"),E=b?r:void 0,_;typeof s=="function"?_=s({isActive:b,isPending:x}):_=[s,b?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof l=="function"?l({isActive:b,isPending:x}):l;return c.createElement(TP,$v({},f,{"aria-current":E,className:_,ref:n,style:k,to:a}),typeof u=="function"?u({isActive:b,isPending:x}):u)});var JT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(JT||(JT={}));var e$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(e$||(e$={}));function nq(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i}=t===void 0?{}:t,l=LK(),a=Hd(),u=_P(e,{relative:i});return c.useCallback(f=>{if(YK(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 rq={black:"#000",white:"#fff"},eh=rq,oq={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=oq,sq={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=sq,iq={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=iq,lq={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=lq,aq={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=aq,cq={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=cq,uq={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"},dq=uq;function fq(e,t){return()=>null}function S(){return S=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},S.apply(this,arguments)}function il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function MF(e){if(!il(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=MF(e[n])}),t}function Yr(e,t,n={clone:!0}){const r=n.clone?S({},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])?MF(t[o]):t[o]:r[o]=t[o])}),r}var _F={exports:{}},pq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hq=pq,mq=hq;function TF(){}function $F(){}$F.resetWarningCache=TF;var gq=function(){function e(r,o,s,i,l,a){if(a!==mq){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:$F,resetWarningCache:TF};return n.PropTypes=n,n};_F.exports=gq();var vq=_F.exports;const W=di(vq);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 $P=Symbol.for("react.element"),RP=Symbol.for("react.portal"),Ly=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),Ny=Symbol.for("react.profiler"),By=Symbol.for("react.provider"),zy=Symbol.for("react.context"),yq=Symbol.for("react.server_context"),Vy=Symbol.for("react.forward_ref"),jy=Symbol.for("react.suspense"),Hy=Symbol.for("react.suspense_list"),Uy=Symbol.for("react.memo"),Wy=Symbol.for("react.lazy"),bq=Symbol.for("react.offscreen"),RF;RF=Symbol.for("react.module.reference");function Bs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $P:switch(e=e.type,e){case Ly:case Ny:case Fy:case jy:case Hy:return e;default:switch(e=e&&e.$$typeof,e){case yq:case zy:case Vy:case Wy:case Uy:case By:return e;default:return t}}case RP:return t}}}gn.ContextConsumer=zy;gn.ContextProvider=By;gn.Element=$P;gn.ForwardRef=Vy;gn.Fragment=Ly;gn.Lazy=Wy;gn.Memo=Uy;gn.Portal=RP;gn.Profiler=Ny;gn.StrictMode=Fy;gn.Suspense=jy;gn.SuspenseList=Hy;gn.isAsyncMode=function(){return!1};gn.isConcurrentMode=function(){return!1};gn.isContextConsumer=function(e){return Bs(e)===zy};gn.isContextProvider=function(e){return Bs(e)===By};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$P};gn.isForwardRef=function(e){return Bs(e)===Vy};gn.isFragment=function(e){return Bs(e)===Ly};gn.isLazy=function(e){return Bs(e)===Wy};gn.isMemo=function(e){return Bs(e)===Uy};gn.isPortal=function(e){return Bs(e)===RP};gn.isProfiler=function(e){return Bs(e)===Ny};gn.isStrictMode=function(e){return Bs(e)===Fy};gn.isSuspense=function(e){return Bs(e)===jy};gn.isSuspenseList=function(e){return Bs(e)===Hy};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ly||e===Ny||e===Fy||e===jy||e===Hy||e===bq||typeof e=="object"&&e!==null&&(e.$$typeof===Wy||e.$$typeof===Uy||e.$$typeof===By||e.$$typeof===zy||e.$$typeof===Vy||e.$$typeof===RF||e.getModuleId!==void 0)};gn.typeOf=Bs;const wq=W.oneOfType([W.func,W.object]),OF=wq;function Pe(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wx(...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 Cq(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 Zo(e){return fn(e).defaultView||window}function xq(e,t){return()=>null}function th(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Sq=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,Nt=Sq;let t$=0;function Pq(e){const[t,n]=c.useState(e),r=e||t;return c.useEffect(()=>{t==null&&(t$+=1,n(`mui-${t$}`))},[t]),r}const n$=wc["useId".toString()];function Kt(e){if(n$!==void 0){const t=n$();return e!=null?e:t}return Pq(e)}function kq(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 Gy=!0,Cx=!1,r$;const Eq={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 Iq(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Eq[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Mq(e){e.metaKey||e.altKey||e.ctrlKey||(Gy=!0)}function Pw(){Gy=!1}function _q(){this.visibilityState==="hidden"&&Cx&&(Gy=!0)}function Tq(e){e.addEventListener("keydown",Mq,!0),e.addEventListener("mousedown",Pw,!0),e.addEventListener("pointerdown",Pw,!0),e.addEventListener("touchstart",Pw,!0),e.addEventListener("visibilitychange",_q,!0)}function $q(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Gy||Iq(t)}function Ky(){const e=c.useCallback(o=>{o!=null&&Tq(o.ownerDocument)},[]),t=c.useRef(!1);function n(){return t.current?(Cx=!0,window.clearTimeout(r$),r$=window.setTimeout(()=>{Cx=!1},100),t.current=!1,!0):!1}function r(o){return $q(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function DF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pu;function AF(){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 Rq(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(AF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Oq=e=>{const t=c.useRef({});return c.useEffect(()=>{t.current=e}),t.current},OP=Oq;function DP(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},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]=S({},s),Object.keys(o).forEach(i=>{n[r][i]=DP(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 o$=e=>e,Dq=()=>{let e=o$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=o$}}},Aq=Dq(),AP=Aq,Lq={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=Lq[t];return r?`${n}-${r}`:`${AP.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 LF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fq=/^((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)-.*))$/,Nq=LF(function(e){return Fq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Bq(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 zq(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 Vq=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(zq(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Bq(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-",FF="comm",LP="rule",FP="decl",jq="@import",NF="@keyframes",Hq="@layer",Uq=Math.abs,qy=String.fromCharCode,Wq=Object.assign;function Gq(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 BF(e){return e.trim()}function Kq(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,n){return e.replace(t,n)}function xx(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 Si(e){return e.length}function NP(e){return e.length}function lg(e,t){return t.push(e),e}function qq(e,t){return e.map(t).join("")}var Yy=1,yd=1,zF=0,To=0,lr=0,Ud="";function Qy(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Yy,column:yd,length:i,return:""}}function Nf(e,t){return Wq(Qy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yq(){return lr}function Qq(){return lr=To>0?Dr(Ud,--To):0,yd--,lr===10&&(yd=1,Yy--),lr}function qo(){return lr=To<zF?Dr(Ud,To++):0,yd++,lr===10&&(yd=1,Yy++),lr}function Ti(){return Dr(Ud,To)}function jg(){return To}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 VF(e){return Yy=yd=1,zF=Si(Ud=e),To=0,[]}function jF(e){return Ud="",e}function Hg(e){return BF(Rh(To-1,Sx(e===91?e+2:e===40?e+1:e)))}function Xq(e){for(;(lr=Ti())&&lr<33;)qo();return rh(e)>2||rh(lr)>3?"":" "}function Zq(e,t){for(;--t&&qo()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return Rh(e,jg()+(t<6&&Ti()==32&&qo()==32))}function Sx(e){for(;qo();)switch(lr){case e:return To;case 34:case 39:e!==34&&e!==39&&Sx(lr);break;case 40:e===41&&Sx(e);break;case 92:qo();break}return To}function Jq(e,t){for(;qo()&&e+lr!==47+10;)if(e+lr===42+42&&Ti()===47)break;return"/*"+Rh(t,To-1)+"*"+qy(e===47?e:qo())}function eY(e){for(;!rh(Ti());)qo();return Rh(e,To)}function tY(e){return jF(Ug("",null,null,null,[""],e=VF(e),0,[0],e))}function Ug(e,t,n,r,o,s,i,l,a){for(var u=0,f=0,p=i,g=0,v=0,y=0,m=1,C=1,w=1,b=0,x="",E=o,_=s,k=r,I=x;C;)switch(y=b,b=qo()){case 40:if(y!=108&&Dr(I,p-1)==58){xx(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+=Xq(y);break;case 92:I+=Zq(jg()-1,7);continue;case 47:switch(Ti()){case 42:case 47:lg(nY(Jq(qo(),jg()),t,n),a);break;default:I+="/"}break;case 123*m:l[u++]=Si(I)*w;case 125*m:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:w==-1&&(I=nn(I,/\f/g,"")),v>0&&Si(I)-p&&lg(v>32?i$(I+";",r,n,p-1):i$(nn(I," ","")+";",r,n,p-2),a);break;case 59:I+=";";default:if(lg(k=s$(I,t,n,u,f,o,l,x,E=[],_=[],p),s),b===123)if(f===0)Ug(I,t,k,k,E,s,p,l,_);else switch(g===99&&Dr(I,3)===110?100:g){case 100:case 108:case 109:case 115:Ug(e,k,k,r&&lg(s$(e,k,k,0,0,o,l,x,o,E=[],p),_),o,_,p,l,r?E:_);break;default:Ug(I,k,k,k,[""],_,0,l,_)}}u=f=v=0,m=w=1,x=I="",p=i;break;case 58:p=1+Si(I),v=y;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Qq()==125)continue}switch(I+=qy(b),b*m){case 38:w=f>0?1:(I+="\f",-1);break;case 44:l[u++]=(Si(I)-1)*w,w=1;break;case 64:Ti()===45&&(I+=Hg(qo())),g=Ti(),f=p=Si(x=I+=eY(jg())),b++;break;case 45:y===45&&Si(I)==2&&(m=0)}}return s}function s$(e,t,n,r,o,s,i,l,a,u,f){for(var p=o-1,g=o===0?s:[""],v=NP(g),y=0,m=0,C=0;y<r;++y)for(var w=0,b=nh(e,p+1,p=Uq(m=i[y])),x=e;w<v;++w)(x=BF(m>0?g[w]+" "+b:nn(b,/&\f/g,g[w])))&&(a[C++]=x);return Qy(e,t,n,o===0?LP:l,a,u,f)}function nY(e,t,n){return Qy(e,t,n,FF,qy(Yq()),nh(e,2,-2),0)}function i$(e,t,n,r){return Qy(e,t,n,FP,nh(e,0,r),nh(e,r+1,-1),r)}function td(e,t){for(var n="",r=NP(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function rY(e,t,n,r){switch(e.type){case Hq:if(e.children.length)break;case jq:case FP:return e.return=e.return||e.value;case FF:return"";case NF:return e.return=e.value+"{"+td(e.children,r)+"}";case LP:e.value=e.props.join(",")}return Si(n=td(e.children,r))?e.return=e.value+"{"+n+"}":""}function oY(e){var t=NP(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 sY(e){return function(t){t.root||(t=t.return)&&e(t)}}var iY=function(t,n,r){for(var o=0,s=0;o=s,s=Ti(),o===38&&s===12&&(n[r]=1),!rh(s);)qo();return Rh(t,To)},lY=function(t,n){var r=-1,o=44;do switch(rh(o)){case 0:o===38&&Ti()===12&&(n[r]=1),t[r]+=iY(To-1,n,r);break;case 2:t[r]+=Hg(o);break;case 4:if(o===44){t[++r]=Ti()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=qy(o)}while(o=qo());return t},aY=function(t,n){return jF(lY(VF(t),n))},l$=new WeakMap,cY=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&&!l$.get(r))&&!o){l$.set(t,!0);for(var s=[],i=aY(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]}}},uY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function HF(e,t){switch(Gq(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(Si(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~xx(e,"stretch")?HF(nn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,Si(e)-3-(~xx(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 dY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case FP:t.return=HF(t.value,t.length);break;case NF:return td([Nf(t,{value:nn(t.value,"@","@"+tn)})],o);case LP:if(t.length)return qq(t.props,function(s){switch(Kq(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""})}},fY=[dY],pY=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||fY,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)s[C[w]]=!0;l.push(m)});var a,u=[cY,uY];{var f,p=[rY,sY(function(m){f.insert(m)})],g=oY(u.concat(o,p)),v=function(C){return td(tY(C),g)};a=function(C,w,b,x){f=b,v(C?C+"{"+w.styles+"}":w.styles),x&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new Vq({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},UF={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,BP=Er?Symbol.for("react.element"):60103,zP=Er?Symbol.for("react.portal"):60106,Xy=Er?Symbol.for("react.fragment"):60107,Zy=Er?Symbol.for("react.strict_mode"):60108,Jy=Er?Symbol.for("react.profiler"):60114,eb=Er?Symbol.for("react.provider"):60109,tb=Er?Symbol.for("react.context"):60110,VP=Er?Symbol.for("react.async_mode"):60111,nb=Er?Symbol.for("react.concurrent_mode"):60111,rb=Er?Symbol.for("react.forward_ref"):60112,ob=Er?Symbol.for("react.suspense"):60113,hY=Er?Symbol.for("react.suspense_list"):60120,sb=Er?Symbol.for("react.memo"):60115,ib=Er?Symbol.for("react.lazy"):60116,mY=Er?Symbol.for("react.block"):60121,gY=Er?Symbol.for("react.fundamental"):60117,vY=Er?Symbol.for("react.responder"):60118,yY=Er?Symbol.for("react.scope"):60119;function ss(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case BP:switch(e=e.type,e){case VP:case nb:case Xy:case Jy:case Zy:case ob:return e;default:switch(e=e&&e.$$typeof,e){case tb:case rb:case ib:case sb:case eb:return e;default:return t}}case zP:return t}}}function WF(e){return ss(e)===nb}pn.AsyncMode=VP;pn.ConcurrentMode=nb;pn.ContextConsumer=tb;pn.ContextProvider=eb;pn.Element=BP;pn.ForwardRef=rb;pn.Fragment=Xy;pn.Lazy=ib;pn.Memo=sb;pn.Portal=zP;pn.Profiler=Jy;pn.StrictMode=Zy;pn.Suspense=ob;pn.isAsyncMode=function(e){return WF(e)||ss(e)===VP};pn.isConcurrentMode=WF;pn.isContextConsumer=function(e){return ss(e)===tb};pn.isContextProvider=function(e){return ss(e)===eb};pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===BP};pn.isForwardRef=function(e){return ss(e)===rb};pn.isFragment=function(e){return ss(e)===Xy};pn.isLazy=function(e){return ss(e)===ib};pn.isMemo=function(e){return ss(e)===sb};pn.isPortal=function(e){return ss(e)===zP};pn.isProfiler=function(e){return ss(e)===Jy};pn.isStrictMode=function(e){return ss(e)===Zy};pn.isSuspense=function(e){return ss(e)===ob};pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xy||e===nb||e===Jy||e===Zy||e===ob||e===hY||typeof e=="object"&&e!==null&&(e.$$typeof===ib||e.$$typeof===sb||e.$$typeof===eb||e.$$typeof===tb||e.$$typeof===rb||e.$$typeof===gY||e.$$typeof===vY||e.$$typeof===yY||e.$$typeof===mY)};pn.typeOf=ss;UF.exports=pn;var bY=UF.exports,GF=bY,wY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},CY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},KF={};KF[GF.ForwardRef]=wY;KF[GF.Memo]=CY;var xY=!0;function SY(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||xY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},YF=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 PY(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 kY={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},EY=/[A-Z]|^ms/g,IY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QF=function(t){return t.charCodeAt(1)===45},a$=function(t){return t!=null&&typeof t!="boolean"},kw=LF(function(e){return QF(e)?e:e.replace(EY,"-$&").toLowerCase()}),c$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(IY,function(r,o,s){return Pi={name:o,styles:s,next:Pi},o})}return kY[t]!==1&&!QF(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 Pi={name:n.name,styles:n.styles,next:Pi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Pi={name:r.name,styles:r.styles,next:Pi},r=r.next;var o=n.styles+";";return o}return MY(e,t,n)}case"function":{if(e!==void 0){var s=Pi,i=n(e);return Pi=s,oh(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function MY(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]+"}":a$(i)&&(r+=kw(s)+":"+c$(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++)a$(i[l])&&(r+=kw(s)+":"+c$(s,i[l])+";");else{var a=oh(e,t,i);switch(s){case"animation":case"animationName":{r+=kw(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var u$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pi,jP=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="";Pi=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]);u$.lastIndex=0;for(var a="",u;(u=u$.exec(s))!==null;)a+="-"+u[1];var f=PY(s)+a;return{name:f,styles:s,next:Pi}},_Y=function(t){return t()},XF=wc["useInsertionEffect"]?wc["useInsertionEffect"]:!1,TY=XF||_Y,d$=XF||c.useLayoutEffect,ZF=c.createContext(typeof HTMLElement!="undefined"?pY({key:"css"}):null);ZF.Provider;var JF=function(t){return c.forwardRef(function(n,r){var o=c.useContext(ZF);return t(n,o,r)})},lb=c.createContext({}),$Y=JF(function(e,t){var n=e.styles,r=jP([n],void 0,c.useContext(lb)),o=c.useRef();return d$(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]),d$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&YF(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 jP(t)}var Hi=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_"}}},RY=Nq,OY=function(t){return t!=="theme"},f$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?RY:OY},p$=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},DY=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return qF(n,r,o),TY(function(){return YF(n,r,o)}),null},AY=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=p$(t,n,r),a=l||f$(o),u=!a("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var g=f.length,v=1;v<g;v++)p.push(f[v],f[0][v])}var y=JF(function(m,C,w){var b=u&&m.as||o,x="",E=[],_=m;if(m.theme==null){_={};for(var k in m)_[k]=m[k];_.theme=c.useContext(lb)}typeof m.className=="string"?x=SY(C.registered,E,m.className):m.className!=null&&(x=m.className+" ");var I=jP(p.concat(E),C.registered,_);x+=C.key+"-"+I.name,i!==void 0&&(x+=" "+i);var T=u&&l===void 0?f$(b):a,D={};for(var R in m)u&&R==="as"||T(R)&&(D[R]=m[R]);return D.className=x,D.ref=w,c.createElement(c.Fragment,null,c.createElement(DY,{cache:C,serialized:I,isStringTag:typeof b=="string"}),c.createElement(b,D))});return y.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=p,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(m,C){return e(m,S({},n,C,{shouldForwardProp:p$(y,C,!0)})).apply(void 0,p)},y}},LY=["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"],Px=AY.bind();LY.forEach(function(e){Px[e]=Px(e)});var Ew={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 h$;function FY(){if(h$)return Bf;h$=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,a,u){var f,p={},g=null,v=null;u!==void 0&&(g=""+u),a.key!==void 0&&(g=""+a.key),a.ref!==void 0&&(v=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(p[f]=a[f]);if(l&&l.defaultProps)for(f in a=l.defaultProps,a)p[f]===void 0&&(p[f]=a[f]);return{$$typeof:t,type:l,key:g,ref:v,props:p,_owner:o.current}}return Bf.Fragment=n,Bf.jsx=i,Bf.jsxs=i,Bf}var m$;function Ze(){return m$||(m$=1,Ew.exports=FY()),Ew.exports}var L=Ze();function NY(e){return e==null||Object.keys(e).length===0}function BY(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(NY(o)?n:o):t;return L.jsx($Y,{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 eN(e,t){return Px(e,t)}const zY=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},VY=["values","unit","step"],jY=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)=>S({},n,{[r.key]:r.val}),{})};function HY(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,VY),s=jY(t),i=Object.keys(s);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function a(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function u(g,v){const y=i.indexOf(v);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:v)-r/100}${n})`}function f(g){return i.indexOf(g)+1<i.length?u(g,i[i.indexOf(g)+1]):l(g)}function p(g){const v=i.indexOf(g);return v===0?l(i[1]):v===i.length-1?a(i[v]):u(g,i[i.indexOf(g)+1]).replace("@media","@media not all and")}return S({keys:i,values:s,up:l,down:a,between:u,only:f,not:p,unit:n},o)}const UY={borderRadius:4},WY=UY;function Pp(e,t){return t?Yr(e,t,{clone:!1}):e}const HP={xs:0,sm:600,md:900,lg:1200,xl:1536},g$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${HP[e]}px)`};function $o(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||g$;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||g$;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||HP).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 tN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function nN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function GY(e,...t){const n=tN(e),r=[n,...t].reduce((o,s)=>Yr(o,s),{});return nN(Object.keys(n),r)}function KY(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||KY(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 or(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 $o(i,l,p=>{let g=Ov(u,o,p);return p===g&&typeof p=="string"&&(g=Ov(u,o,`${t}${p==="default"?"":Pe(p)}`,p)),n===!1?g:{[n]:g}})};return s.propTypes={},s.filterProps=[t],s}function qY(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const YY={m:"margin",p:"padding"},QY={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},v$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XY=qY(e=>{if(e.length>2)if(v$[e])e=v$[e];else return[e];const[t,n]=e.split(""),r=YY[t],o=QY[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),UP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],WP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...UP,...WP];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 GP(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 ZY(e,t){return n=>e.reduce((r,o)=>(r[o]=Ic(t,n),r),{})}function JY(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=XY(n),s=ZY(o,r),i=e[n];return $o(e,i,s)}function rN(e,t){const n=GP(e.theme);return Object.keys(e).map(r=>JY(e,t,r,n)).reduce(Pp,{})}function Un(e){return rN(e,UP)}Un.propTypes={};Un.filterProps=UP;function Wn(e){return rN(e,WP)}Wn.propTypes={};Wn.filterProps=WP;function eQ(e=8){if(e.mui)return e;const t=GP({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 ab(...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 or({prop:e,themeKey:"borders",transform:t})}const tQ=zs("border",Is),nQ=zs("borderTop",Is),rQ=zs("borderRight",Is),oQ=zs("borderBottom",Is),sQ=zs("borderLeft",Is),iQ=zs("borderColor"),lQ=zs("borderTopColor"),aQ=zs("borderRightColor"),cQ=zs("borderBottomColor"),uQ=zs("borderLeftColor"),dQ=zs("outline",Is),fQ=zs("outlineColor"),cb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ic(t,r)});return $o(e,e.borderRadius,n)}return null};cb.propTypes={};cb.filterProps=["borderRadius"];ab(tQ,nQ,rQ,oQ,sQ,iQ,lQ,aQ,cQ,uQ,cb,dQ,fQ);const ub=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({gap:Ic(t,r)});return $o(e,e.gap,n)}return null};ub.propTypes={};ub.filterProps=["gap"];const db=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({columnGap:Ic(t,r)});return $o(e,e.columnGap,n)}return null};db.propTypes={};db.filterProps=["columnGap"];const fb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oh(e.theme,"spacing",8),n=r=>({rowGap:Ic(t,r)});return $o(e,e.rowGap,n)}return null};fb.propTypes={};fb.filterProps=["rowGap"];const pQ=or({prop:"gridColumn"}),hQ=or({prop:"gridRow"}),mQ=or({prop:"gridAutoFlow"}),gQ=or({prop:"gridAutoColumns"}),vQ=or({prop:"gridAutoRows"}),yQ=or({prop:"gridTemplateColumns"}),bQ=or({prop:"gridTemplateRows"}),wQ=or({prop:"gridTemplateAreas"}),CQ=or({prop:"gridArea"});ab(ub,db,fb,pQ,hQ,mQ,gQ,vQ,yQ,bQ,wQ,CQ);function nd(e,t){return t==="grey"?t:e}const xQ=or({prop:"color",themeKey:"palette",transform:nd}),SQ=or({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nd}),PQ=or({prop:"backgroundColor",themeKey:"palette",transform:nd});ab(xQ,SQ,PQ);function Uo(e){return e<=1&&e!==0?`${e*100}%`:e}const kQ=or({prop:"width",transform:Uo}),KP=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])||HP[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:Uo(n)}};return $o(e,e.maxWidth,t)}return null};KP.filterProps=["maxWidth"];const EQ=or({prop:"minWidth",transform:Uo}),IQ=or({prop:"height",transform:Uo}),MQ=or({prop:"maxHeight",transform:Uo}),_Q=or({prop:"minHeight",transform:Uo});or({prop:"size",cssProperty:"width",transform:Uo});or({prop:"size",cssProperty:"height",transform:Uo});const TQ=or({prop:"boxSizing"});ab(kQ,KP,EQ,IQ,MQ,_Q,TQ);const $Q={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:cb},color:{themeKey:"palette",transform:nd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nd},backgroundColor:{themeKey:"palette",transform:nd},p:{style:Wn},pt:{style:Wn},pr:{style:Wn},pb:{style:Wn},pl:{style:Wn},px:{style:Wn},py:{style:Wn},padding:{style:Wn},paddingTop:{style:Wn},paddingRight:{style:Wn},paddingBottom:{style:Wn},paddingLeft:{style:Wn},paddingX:{style:Wn},paddingY:{style:Wn},paddingInline:{style:Wn},paddingInlineStart:{style:Wn},paddingInlineEnd:{style:Wn},paddingBlock:{style:Wn},paddingBlockStart:{style:Wn},paddingBlockEnd:{style:Wn},m:{style:Un},mt:{style:Un},mr:{style:Un},mb:{style:Un},ml:{style:Un},mx:{style:Un},my:{style:Un},margin:{style:Un},marginTop:{style:Un},marginRight:{style:Un},marginBottom:{style:Un},marginLeft:{style:Un},marginX:{style:Un},marginY:{style:Un},marginInline:{style:Un},marginInlineStart:{style:Un},marginInlineEnd:{style:Un},marginBlock:{style:Un},marginBlockStart:{style:Un},marginBlockEnd:{style:Un},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:ub},rowGap:{style:fb},columnGap:{style:db},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Uo},maxWidth:{style:KP},minWidth:{transform:Uo},height:{transform:Uo},maxHeight:{transform:Uo},minHeight:{transform:Uo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},pb=$Q;function RQ(...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 OQ(e,t){return typeof e=="function"?e(t):e}function DQ(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:f,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const g=bd(o,u)||{};return p?p(i):$o(i,r,y=>{let m=Ov(g,f,y);return y===m&&typeof y=="string"&&(m=Ov(g,f,`${n}${y==="default"?"":Pe(y)}`,y)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:pb;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=tN(s.breakpoints),p=Object.keys(f);let g=f;return Object.keys(u).forEach(v=>{const y=OQ(u[v],s);if(y!=null)if(typeof y=="object")if(i[v])g=Pp(g,e(v,y,s,i));else{const m=$o({theme:s},y,C=>({[v]:C}));RQ(m,y)?g[v]=t({sx:y,theme:s}):g=Pp(g,m)}else g=Pp(g,e(v,y,s,i))}),nN(p,g)}return Array.isArray(o)?o.map(l):l(o)}return t}const oN=DQ();oN.filterProps=["sx"];const hb=oN,AQ=["breakpoints","palette","spacing","shape"];function mb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=le(e,AQ),l=HY(n),a=eQ(o);let u=Yr({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},WY,s)},i);return u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=S({},pb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return hb({sx:p,theme:this})},u}function LQ(e){return Object.keys(e).length===0}function gb(e=null){const t=c.useContext(lb);return!t||LQ(t)?e:t}const FQ=mb();function Wd(e=FQ){return gb(e)}function NQ({styles:e,themeId:t,defaultTheme:n={}}){const r=Wd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return L.jsx(BY,{styles:o})}const BQ=["sx"],zQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:pb;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function vb(e){const{sx:t}=e,n=le(e,BQ),{systemProps:r,otherProps:o}=zQ(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return il(l)?S({},r,l):r}:s=S({},r,t),S({},o,{sx:s})}function sN(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=sN(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=sN(e))&&(r&&(r+=" "),r+=t);return r}const VQ=["className","component"];function jQ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=eN("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(hb);return c.forwardRef(function(a,u){const f=Wd(n),p=vb(a),{className:g,component:v="div"}=p,y=le(p,VQ);return L.jsx(s,S({as:v,ref:u,className:Ce(g,o?o(r):r),theme:t&&f[t]||f},y))})}const HQ=["variant"];function y$(e){return e.length===0}function iN(e){const{variant:t}=e,n=le(e,HQ);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=y$(r)?e[o]:Pe(e[o]):r+=`${y$(r)?o:Pe(o)}${Pe(e[o].toString())}`}),r}const UQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function WQ(e){return Object.keys(e).length===0}function GQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const KQ=(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=iN(n.props);t[r]=n.style}),t},qQ=(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[iN(s.props)])}),o},YQ=(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 QQ=mb(),XQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wg({defaultTheme:e,theme:t,themeId:n}){return WQ(t)?e:t[n]||t}function ZQ(e){return e?(t,n)=>n[e]:null}const b$=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(S({},t,{theme:Wg(S({},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 lN(e={}){const{themeId:t,defaultTheme:n=QQ,rootShouldForwardProp:r=kp,slotShouldForwardProp:o=kp}=e,s=i=>hb(S({},i,{theme:Wg(S({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{zY(i,E=>E.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:f,skipSx:p,overridesResolver:g=ZQ(XQ(u))}=l,v=le(l,UQ),y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,m=p||!1;let C,w=kp;u==="Root"||u==="root"?w=r:u?w=o:GQ(i)&&(w=void 0);const b=eN(i,S({shouldForwardProp:w,label:C},v)),x=(E,..._)=>{const k=_?_.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return A=>b$({styledArg:R,props:A,defaultTheme:n,themeId:t});if(il(R)){let A=R,V;return R&&R.variants&&(V=R.variants,delete A.variants,A=j=>{let M=R;return Av(j,Dv(V),V).forEach(F=>{M=Yr(M,F)}),M}),A}return R}):[];let I=E;if(il(E)){let R;E&&E.variants&&(R=E.variants,delete I.variants,I=A=>{let V=E;return Av(A,Dv(R),R).forEach(M=>{V=Yr(V,M)}),V})}else typeof E=="function"&&E.__emotion_real!==E&&(I=R=>b$({styledArg:E,props:R,defaultTheme:n,themeId:t}));a&&g&&k.push(R=>{const A=Wg(S({},R,{defaultTheme:n,themeId:t})),V=KQ(a,A);if(V){const j={};return Object.entries(V).forEach(([M,$])=>{j[M]=typeof $=="function"?$(S({},R,{theme:A})):$}),g(R,j)}return null}),a&&!y&&k.push(R=>{const A=Wg(S({},R,{defaultTheme:n,themeId:t}));return YQ(R,qQ(a,A),A,a)}),m||k.push(s);const T=k.length-_.length;if(Array.isArray(E)&&T>0){const R=new Array(T).fill("");I=[...E,...R],I.raw=[...E.raw,...R]}const D=b(I,...k);return i.muiName&&(D.muiName=i.muiName),D};return b.withConfig&&(x.withConfig=b.withConfig),x}}const JQ=lN(),Ir=JQ;function aN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:DP(t.components[n].defaultProps,r)}function cN({props:e,name:t,defaultTheme:n,themeId:r}){let o=Wd(n);return r&&(o=o[r]||o),aN({theme:o,name:t,props:e})}function qP(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function eX(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(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(eX(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 yb(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 tX(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])),yb({type:l,values:a})}function w$(e){e=Mc(e);let t=e.type==="hsl"||e.type==="hsla"?Mc(tX(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:vs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nX(e,t){const n=w$(e),r=w$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function it(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,yb(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 yb(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 yb(e)}const rX=c.createContext(null),uN=rX;function dN(){return c.useContext(uN)}const oX=typeof Symbol=="function"&&Symbol.for,sX=oX?Symbol.for("mui.nested"):"__THEME_NESTED__";function iX(e,t){return typeof t=="function"?t(e):S({},e,t)}function lX(e){const{children:t,theme:n}=e,r=dN(),o=c.useMemo(()=>{const s=r===null?n:iX(r,n);return s!=null&&(s[sX]=r!==null),s},[n,r]);return L.jsx(uN.Provider,{value:o,children:t})}const C$={};function x$(e,t,n,r=!1){return c.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?S({},t,{[e]:s}):s;return r?()=>i:i}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function aX(e){const{children:t,theme:n,themeId:r}=e,o=gb(C$),s=dN()||C$,i=x$(r,o,n),l=x$(r,s,n,!0);return L.jsx(lX,{theme:l,children:L.jsx(lb.Provider,{value:i,children:t})})}const cX=["component","direction","spacing","divider","children","className","useFlexGap"],uX=mb(),dX=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function fX(e){return cN({props:e,name:"MuiStack",defaultTheme:uX})}function pX(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 hX=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],mX=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},$o({theme:t},pc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=GP(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 g=u>0?s[f[u-1]]:"column";s[a]=g}}),n=Yr(n,$o({theme:t},i,(a,u)=>e.useFlexGap?{gap:Ic(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${hX(u?s[u]:e.direction)}`]:Ic(r,a)}}))}return n=GY(t.breakpoints,n),n};function gX(e={}){const{createStyledComponent:t=dX,useThemeProps:n=fX,componentName:r="MuiStack"}=e,o=()=>Te({root:["root"]},a=>Ke(r,a),{}),s=t(mX);return c.forwardRef(function(a,u){const f=n(a),p=vb(f),{component:g="div",direction:v="column",spacing:y=0,divider:m,children:C,className:w,useFlexGap:b=!1}=p,x=le(p,cX),E={direction:v,spacing:y,useFlexGap:b},_=o();return L.jsx(s,S({as:g,ownerState:E,ref:u,className:Ce(_.root,w)},x,{children:m?pX(C,m):C}))})}function vX(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const yX=["mode","contrastThreshold","tonalOffset"],S$={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}},Iw={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 P$(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 bX(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[700],light:uu[400],dark:uu[800]}}function wX(e="light"){return e==="dark"?{main:cu[200],light:cu[50],dark:cu[400]}:{main:cu[500],light:cu[300],dark:cu[700]}}function CX(e="light"){return e==="dark"?{main:au[500],light:au[300],dark:au[700]}:{main:au[700],light:au[400],dark:au[800]}}function xX(e="light"){return e==="dark"?{main:du[400],light:du[300],dark:du[700]}:{main:du[700],light:du[500],dark:du[900]}}function SX(e="light"){return e==="dark"?{main:fu[400],light:fu[300],dark:fu[700]}:{main:fu[800],light:fu[500],dark:fu[900]}}function PX(e="light"){return e==="dark"?{main:Ff[400],light:Ff[300],dark:Ff[700]}:{main:"#ed6c02",light:Ff[500],dark:Ff[900]}}function kX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,yX),s=e.primary||bX(t),i=e.secondary||wX(t),l=e.error||CX(t),a=e.info||xX(t),u=e.success||SX(t),f=e.warning||PX(t);function p(m){return nX(m,Iw.text.primary)>=n?Iw.text.primary:S$.text.primary}const g=({color:m,name:C,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(m=S({},m),!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(ka(11,C?` (${C})`:"",w));if(typeof m.main!="string")throw new Error(ka(12,C?` (${C})`:"",JSON.stringify(m.main)));return P$(m,"light",b,r),P$(m,"dark",x,r),m.contrastText||(m.contrastText=p(m.main)),m},v={dark:Iw,light:S$};return Yr(S({common:S({},eh),mode:t,primary:g({color:s,name:"primary"}),secondary:g({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:a,name:"info"}),success:g({color:u,name:"success"}),grey:dq,contrastThreshold:n,getContrastText:p,augmentColor:g,tonalOffset:r},v[t]),o)}const EX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function IX(e){return Math.round(e*1e5)/1e5}const k$={textTransform:"uppercase"},E$='"Roboto", "Helvetica", "Arial", sans-serif';function MX(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=E$,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:f,pxToRem:p}=n,g=le(n,EX),v=o/14,y=p||(w=>`${w/u*v}rem`),m=(w,b,x,E,_)=>S({fontFamily:r,fontWeight:w,fontSize:y(b),lineHeight:x},r===E$?{letterSpacing:`${IX(E/b)}em`}:{},_,f),C={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,k$),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,k$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr(S({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),g,{clone:!1})}const _X=.2,TX=.14,$X=.12;function On(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_X})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${TX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$X})`].join(",")}const RX=["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)],OX=RX,DX=["duration","easing","delay"],AX={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)"},fN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I$(e){return`${Math.round(e)}ms`}function LX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*vs(t,.25)+t/5)*10)}function FX(e){const t=S({},AX,e.easing),n=S({},fN,e.duration);return S({getAutoHeightDuration:LX,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return le(s,DX),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:I$(i)} ${l} ${typeof a=="string"?a:I$(a)}`).join(",")}},e,{easing:t,duration:n})}const NX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},BX=NX,zX=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function YP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=le(e,zX);if(e.vars)throw new Error(ka(18));const l=kX(r),a=mb(e);let u=Yr(a,{mixins:vX(a.breakpoints,n),palette:l,shadows:OX.slice(),typography:MX(l,s),transitions:FX(o),zIndex:S({},BX)});return u=Yr(u,i),u=t.reduce((f,p)=>Yr(f,p),u),u.unstable_sxConfig=S({},pb,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return hb({sx:p,theme:this})},u}function VX(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function jX(e){return parseFloat(e)}const HX=YP(),bb=HX;function yn(){const e=Wd(bb);return e[Ec]||e}function je({props:e,name:t}){return cN({props:e,name:t,defaultTheme:bb,themeId:Ec})}const Jr=e=>kp(e)&&e!=="classes",UX=kp,WX=lN({themeId:Ec,defaultTheme:bb,rootShouldForwardProp:Jr}),oe=WX,GX=["theme"];function KX(e){let{theme:t}=e,n=le(e,GX);const r=t[Ec];return L.jsx(aX,S({},n,{themeId:r?Ec:void 0,theme:r||t}))}const qX=e=>{let t;return e<1?t=5.11916*vs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},M$=qX;function YX(e){return Ke("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QX=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],XX=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Te(o,YX,r)},ZX=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,g,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),pN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24"}=r,v=le(r,QX),y=c.isValidElement(o)&&o.type==="svg",m=S({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:y}),C={};f||(C.viewBox=g);const w=XX(m);return L.jsxs(ZX,S({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:m,children:[y?o.props.children:o,p?L.jsx("title",{children:p}):null]}))});pN.muiName="SvgIcon";const _$=pN;function bt(e,t){function n(r,o){return L.jsx(_$,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=_$.muiName,c.memo(c.forwardRef(n))}const JX={configure:e=>{AP.configure(e)}},eZ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:wx,createSvgIcon:bt,debounce:Aa,deprecatedPropType:Cq,isMuiElement:Sp,ownerDocument:fn,ownerWindow:Zo,requirePropFactory:xq,setRef:th,unstable_ClassNameGenerator:JX,unstable_useEnhancedEffect:Nt,unstable_useId:Kt,unsupportedProp:kq,useControlled:Qr,useEventCallback:Ye,useForkRef:Et,useIsFocusVisible:Ky},Symbol.toStringTag,{value:"Module"}));function kx(e,t){return kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},kx(e,t)}function wb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kx(e,t)}function tZ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nZ(e,t){e.classList?e.classList.add(t):tZ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function T$(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rZ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=T$(e.className,t):e.setAttribute("class",T$(e.className&&e.className.baseVal||"",t))}const $$={disabled:!1},Lv=co.createContext(null);var hN=function(t){return t.scrollTop},rp="unmounted",nc="exited",rc="entering",Pu="entered",Ex="exiting",kl=function(e){wb(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=Ex)}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&&hN(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(),g=l?p.appear:p.enter;if(!o&&!i||$$.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(g,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||$$.disabled){this.safeSetState({status:nc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ex},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);kl.contextType=Lv;kl.propTypes={};function hu(){}kl.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};kl.UNMOUNTED=rp;kl.EXITED=nc;kl.ENTERING=rc;kl.ENTERED=Pu;kl.EXITING=Ex;const Dh=kl;var oZ=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nZ(t,r)})},Mw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return rZ(t,r)})},QP=function(e){wb(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,a)},r.onEntering=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],g=p?"appear":"enter";r.addClass(f,g,"active"),r.props.onEntering&&r.props.onEntering(l,a)},r.onEntered=function(l,a){var u=r.resolveArguments(l,a),f=u[0],p=u[1],g=p?"appear":"enter";r.removeClasses(f,g),r.addClass(f,g,"done"),r.props.onEntered&&r.props.onEntered(l,a)},r.onExit=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var a=r.resolveArguments(l),u=a[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var a=r.resolveArguments(l),u=a[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,a){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,a]},r.getClassNames=function(l){var a=r.props.classNames,u=typeof a=="string",f=u&&a?a+"-":"",p=u?""+f+l:a[l],g=u?p+"-active":a[l+"Active"],v=u?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:g,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(o,s,i){var l=this.getClassNames(s)[i+"ClassName"],a=this.getClassNames("enter"),u=a.doneClassName;s==="appear"&&i==="done"&&u&&(l+=" "+u),i==="active"&&o&&hN(o),l&&(this.appliedClasses[s][i]=l,oZ(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&&Mw(o,l),a&&Mw(o,a),u&&Mw(o,u)},n.render=function(){var o=this.props;o.classNames;var s=le(o,["classNames"]);return co.createElement(Dh,S({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(co.Component);QP.defaultProps={classNames:""};QP.propTypes={};const sZ=QP;function Ix(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XP(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 iZ(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 lZ(e,t){return XP(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 aZ(e,t,n){var r=XP(e.children),o=iZ(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 cZ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uZ={component:"div",childFactory:function(t){return t}},ZP=function(e){wb(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Ix(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?lZ(o,l):aZ(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=XP(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var a=S({},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=cZ(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);ZP.propTypes={};ZP.defaultProps=uZ;const JP=ZP,ek=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 dZ(e){return Ke("MuiCollapse",e)}We("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const fZ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],pZ=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Te(r,dZ,n)},hZ=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})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),mZ=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),gZ=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),mN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:l="0px",component:a,easing:u,in:f,onEnter:p,onEntered:g,onEntering:v,onExit:y,onExited:m,onExiting:C,orientation:w="vertical",style:b,timeout:x=fN.standard,TransitionComponent:E=Dh}=r,_=le(r,fZ),k=S({},r,{orientation:w,collapsedSize:l}),I=pZ(k),T=yn(),D=c.useRef(),R=c.useRef(null),A=c.useRef(),V=typeof l=="number"?`${l}px`:l,j=w==="horizontal",M=j?"width":"height";c.useEffect(()=>()=>{clearTimeout(D.current)},[]);const $=c.useRef(null),F=Et(n,$),B=J=>se=>{if(J){const Z=$.current;se===void 0?J(Z):J(Z,se)}},O=()=>R.current?R.current[j?"clientWidth":"clientHeight"]:0,N=B((J,se)=>{R.current&&j&&(R.current.style.position="absolute"),J.style[M]=V,p&&p(J,se)}),H=B((J,se)=>{const Z=O();R.current&&j&&(R.current.style.position="");const{duration:he,easing:ne}=Ia({style:b,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const re=T.transitions.getAutoHeightDuration(Z);J.style.transitionDuration=`${re}ms`,A.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=B((J,se)=>{J.style[M]="auto",g&&g(J,se)}),Y=B(J=>{J.style[M]=`${O()}px`,y&&y(J)}),te=B(m),Q=B(J=>{const se=O(),{duration:Z,easing:he}=Ia({style:b,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const ne=T.transitions.getAutoHeightDuration(se);J.style.transitionDuration=`${ne}ms`,A.current=ne}else J.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;J.style[M]=V,J.style.transitionTimingFunction=he,C&&C(J)}),X=J=>{x==="auto"&&(D.current=setTimeout(J,A.current||0)),o&&o($.current,J)};return L.jsx(E,S({in:f,onEnter:N,onEntered:K,onEntering:H,onExit:Y,onExited:te,onExiting:Q,addEndListener:X,nodeRef:$,timeout:x==="auto"?null:x},_,{children:(J,se)=>L.jsx(hZ,S({as:a,className:Ce(I.root,i,{entered:I.entered,exited:!f&&V==="0px"&&I.hidden}[J]),style:S({[j?"minWidth":"minHeight"]:V},b),ownerState:S({},k,{state:J}),ref:F},se,{children:L.jsx(mZ,{ownerState:S({},k,{state:J}),className:I.wrapper,ref:R,children:L.jsx(gZ,{ownerState:S({},k,{state:J}),className:I.wrapperInner,children:s})})}))}))});mN.muiSupportAuto=!0;const Fv=mN;function vZ(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 yZ=["className","component","elevation","square","variant"],bZ=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Te(s,vZ,o)},wZ=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 S({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"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${it("#fff",M$(t.elevation))}, ${it("#fff",M$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),CZ=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,yZ),f=S({},r,{component:s,elevation:i,square:l,variant:a}),p=bZ(f);return L.jsx(wZ,S({as:s,ownerState:f,className:Ce(p.root,o),ref:n},u))}),Vs=CZ;function xZ(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:u}=e,[f,p]=c.useState(!1),g=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 m=setTimeout(a,u);return()=>{clearTimeout(m)}}},[a,l,u]),L.jsx("span",{className:g,style:v,children:L.jsx("span",{className:y})})}const SZ=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xs=SZ,PZ=["center","classes","className"];let Cb=e=>e,R$,O$,D$,A$;const Mx=550,kZ=80,EZ=Hi(R$||(R$=Cb`
|
|
89
|
+
0% {
|
|
90
|
+
transform: scale(0);
|
|
91
|
+
opacity: 0.1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
100% {
|
|
95
|
+
transform: scale(1);
|
|
96
|
+
opacity: 0.3;
|
|
97
|
+
}
|
|
98
|
+
`)),IZ=Hi(O$||(O$=Cb`
|
|
99
|
+
0% {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
100% {
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
`)),MZ=Hi(D$||(D$=Cb`
|
|
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
|
+
`)),_Z=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TZ=oe(xZ,{name:"MuiTouchRipple",slot:"Ripple"})(A$||(A$=Cb`
|
|
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
|
+
`),xs.rippleVisible,EZ,Mx,({theme:e})=>e.transitions.easing.easeInOut,xs.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xs.child,xs.childLeaving,IZ,Mx,({theme:e})=>e.transitions.easing.easeInOut,xs.childPulsate,MZ,({theme:e})=>e.transitions.easing.easeInOut),$Z=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=le(r,PZ),[a,u]=c.useState([]),f=c.useRef(0),p=c.useRef(null);c.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const g=c.useRef(!1),v=c.useRef(0),y=c.useRef(null),m=c.useRef(null);c.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const C=c.useCallback(E=>{const{pulsate:_,rippleX:k,rippleY:I,rippleSize:T,cb:D}=E;u(R=>[...R,L.jsx(TZ,{classes:{ripple:Ce(s.ripple,xs.ripple),rippleVisible:Ce(s.rippleVisible,xs.rippleVisible),ripplePulsate:Ce(s.ripplePulsate,xs.ripplePulsate),child:Ce(s.child,xs.child),childLeaving:Ce(s.childLeaving,xs.childLeaving),childPulsate:Ce(s.childPulsate,xs.childPulsate)},timeout:Mx,pulsate:_,rippleX:k,rippleY:I,rippleSize:T},f.current)]),f.current+=1,p.current=D},[s]),w=c.useCallback((E={},_={},k=()=>{})=>{const{pulsate:I=!1,center:T=o||_.pulsate,fakeElement:D=!1}=_;if((E==null?void 0:E.type)==="mousedown"&&g.current){g.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(g.current=!0);const R=D?null:m.current,A=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,j,M;if(T||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)V=Math.round(A.width/2),j=Math.round(A.height/2);else{const{clientX:$,clientY:F}=E.touches&&E.touches.length>0?E.touches[0]:E;V=Math.round($-A.left),j=Math.round(F-A.top)}if(T)M=Math.sqrt((2*vs(A.width,2)+vs(A.height,2))/3),M%2===0&&(M+=1);else{const $=Math.max(Math.abs((R?R.clientWidth:0)-V),V)*2+2,F=Math.max(Math.abs((R?R.clientHeight:0)-j),j)*2+2;M=Math.sqrt(vs($,2)+vs(F,2))}E!=null&&E.touches?y.current===null&&(y.current=()=>{C({pulsate:I,rippleX:V,rippleY:j,rippleSize:M,cb:k})},v.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},kZ)):C({pulsate:I,rippleX:V,rippleY:j,rippleSize:M,cb:k})},[o,C]),b=c.useCallback(()=>{w({},{pulsate:!0})},[w]),x=c.useCallback((E,_)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&y.current){y.current(),y.current=null,v.current=setTimeout(()=>{x(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:x}),[b,w,x]),L.jsx(_Z,S({className:Ce(xs.root,s.root,i),ref:m},l,{children:L.jsx(JP,{component:null,exit:!0,children:a})}))}),RZ=$Z;function OZ(e){return Ke("MuiButtonBase",e)}const DZ=We("MuiButtonBase",["root","disabled","focusVisible"]),AZ=DZ,LZ=["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"],FZ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Te({root:["root",t&&"disabled",n&&"focusVisible"]},OZ,o);return n&&r&&(i.root+=` ${r}`),i},NZ=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"},[`&.${AZ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),BZ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:l,component:a="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:y,onClick:m,onContextMenu:C,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:_,onMouseDown:k,onMouseLeave:I,onMouseUp:T,onTouchEnd:D,onTouchMove:R,onTouchStart:A,tabIndex:V=0,TouchRippleProps:j,touchRippleRef:M,type:$}=r,F=le(r,LZ),B=c.useRef(null),O=c.useRef(null),N=Et(O,M),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:te}=Ky(),[Q,X]=c.useState(!1);u&&Q&&X(!1),c.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),B.current.focus()}}),[]);const[J,se]=c.useState(!1);c.useEffect(()=>{se(!0)},[]);const Z=J&&!f&&!u;c.useEffect(()=>{Q&&g&&!f&&J&&O.current.pulsate()},[f,g,Q,J]);function he(Le,ht,Zt=p){return Ye(Pt=>(ht&&ht(Pt),!Zt&&O.current&&O.current[Le](Pt),!0))}const ne=he("start",k),re=he("stop",C),me=he("stop",w),ce=he("stop",T),Se=he("stop",Le=>{Q&&Le.preventDefault(),I&&I(Le)}),Ee=he("start",A),ae=he("stop",D),Ie=he("stop",R),ye=he("stop",Le=>{Y(Le),H.current===!1&&X(!1),y&&y(Le)},!1),Me=Ye(Le=>{B.current||(B.current=Le.currentTarget),K(Le),H.current===!0&&(X(!0),x&&x(Le)),b&&b(Le)}),pe=()=>{const Le=B.current;return a&&a!=="button"&&!(Le.tagName==="A"&&Le.href)},fe=c.useRef(!1),de=Ye(Le=>{g&&!fe.current&&Q&&O.current&&Le.key===" "&&(fe.current=!0,O.current.stop(Le,()=>{O.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(),m&&m(Le))}),be=Ye(Le=>{g&&Le.key===" "&&O.current&&Q&&!Le.defaultPrevented&&(fe.current=!1,O.current.stop(Le,()=>{O.current.pulsate(Le)})),_&&_(Le),m&&Le.target===Le.currentTarget&&pe()&&Le.key===" "&&!Le.defaultPrevented&&m(Le)});let _e=a;_e==="button"&&(F.href||F.to)&&(_e=v);const Ne={};_e==="button"?(Ne.type=$===void 0?"button":$,Ne.disabled=u):(!F.href&&!F.to&&(Ne.role="button"),u&&(Ne["aria-disabled"]=u));const Ge=Et(n,te,B),Ve=S({},r,{centerRipple:s,component:a,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:V,focusVisible:Q}),Ue=FZ(Ve);return L.jsxs(NZ,S({as:_e,className:Ce(Ue.root,l),ownerState:Ve,onBlur:ye,onClick:m,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:V,type:$},Ne,F,{children:[i,Z?L.jsx(RZ,S({ref:N,center:s},j)):null]}))}),ui=BZ;function zZ(e){return Ke("MuiAlert",e)}const VZ=We("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),L$=VZ;function jZ(e){return Ke("MuiIconButton",e)}const HZ=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),UZ=HZ,WZ=["edge","children","className","color","disabled","disableFocusRipple","size"],GZ=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,jZ,t)},KZ=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})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${UZ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),qZ=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,WZ),g=S({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:f}),v=GZ(g);return L.jsx(KZ,S({className:Ce(v.root,i),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:g},p,{children:s}))}),pr=qZ,YZ=bt(L.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"),QZ=bt(L.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),XZ=bt(L.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"),ZZ=bt(L.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"),gN=bt(L.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"),JZ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],eJ=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,zZ,o)},tJ=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 S({},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),[`& .${L$.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}`,[`& .${L$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&S({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)}))}),nJ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),rJ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),F$=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}),N$={success:L.jsx(YZ,{fontSize:"inherit"}),warning:L.jsx(QZ,{fontSize:"inherit"}),error:L.jsx(XZ,{fontSize:"inherit"}),info:L.jsx(ZZ,{fontSize:"inherit"})},oJ=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiAlert"}),{action:f,children:p,className:g,closeText:v="Close",color:y,components:m={},componentsProps:C={},icon:w,iconMapping:b=N$,onClose:x,role:E="alert",severity:_="success",slotProps:k={},slots:I={},variant:T="standard"}=u,D=le(u,JZ),R=S({},u,{color:y,severity:_,variant:T}),A=eJ(R),V=(r=(o=I.closeButton)!=null?o:m.CloseButton)!=null?r:pr,j=(s=(i=I.closeIcon)!=null?i:m.CloseIcon)!=null?s:gN,M=(l=k.closeButton)!=null?l:C.closeButton,$=(a=k.closeIcon)!=null?a:C.closeIcon;return L.jsxs(tJ,S({role:E,elevation:0,ownerState:R,className:Ce(A.root,g),ref:n},D,{children:[w!==!1?L.jsx(nJ,{ownerState:R,className:A.icon,children:w||b[_]||N$[_]}):null,L.jsx(rJ,{ownerState:R,className:A.message,children:p}),f!=null?L.jsx(F$,{ownerState:R,className:A.action,children:f}):null,f==null&&x?L.jsx(F$,{ownerState:R,className:A.action,children:L.jsx(V,S({size:"small","aria-label":v,title:v,color:"inherit",onClick:x},M,{children:L.jsx(j,S({fontSize:"small"},$))}))}):null]}))}),kr=oJ;function sJ(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 iJ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lJ=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,sJ,i)},aJ=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})=>S({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})),B$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cJ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uJ=e=>cJ[e]||e,dJ=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTypography"}),o=uJ(r.color),s=vb(S({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:v=B$}=s,y=le(s,iJ),m=S({},s,{align:i,color:o,className:l,component:a,gutterBottom:u,noWrap:f,paragraph:p,variant:g,variantMapping:v}),C=a||(p?"p":v[g]||B$[g])||"span",w=lJ(m);return L.jsx(aJ,S({as:C,ref:n,ownerState:m,className:Ce(w.root,l)},y))}),Kn=dJ;function fJ(e){return Ke("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const pJ=["className","color","enableColorOnDark","position"],hJ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return Te(o,fJ,r)},ag=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,mJ=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 S({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&&S({},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"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},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"}))}),gJ=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,pJ),u=S({},r,{color:s,position:l,enableColorOnDark:i}),f=hJ(u);return L.jsx(mJ,S({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),vJ=gJ;function $c(e){return typeof e=="string"}function op(e,t,n){return e===void 0||$c(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const yJ={disableDefaultClasses:!1},bJ=c.createContext(yJ);function wJ(e){const{disableDefaultClasses:t}=c.useContext(bJ);return n=>t?"":e(n)}function vN(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 xb(e,t,n){return typeof e=="function"?e(t,n):e}function z$(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 CJ(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=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return v.length>0&&(m.className=v),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=vN(S({},o,r)),l=z$(r),a=z$(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=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=S({},u,n,a,l);return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:u.ref}}const xJ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,xJ),l=s?{}:xb(r,o),{props:a,internalRef:u}=CJ(S({},i,{externalSlotProps:l})),f=Et(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return op(n,S({},a,{ref:f}),o)}function SJ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=OP({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 V$(e){return e.substring(2).toLowerCase()}function PJ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function yN(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 m=u.current;u.current=!1;const C=fn(l.current);if(!a.current||!l.current||"clientX"in y&&PJ(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||!m)&&o(y)}),g=y=>m=>{u.current=!0;const C=t.props[y];C&&C(m)},v={ref:f};return s!==!1&&(v[s]=g(s)),c.useEffect(()=>{if(s!==!1){const y=V$(s),m=fn(l.current),C=()=>{i.current=!0};return m.addEventListener(y,p),m.addEventListener("touchmove",C),()=>{m.removeEventListener(y,p),m.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(v[r]=g(r)),c.useEffect(()=>{if(r!==!1){const y=V$(r),m=fn(l.current);return m.addEventListener(y,p),()=>{m.removeEventListener(y,p)}}},[p,r]),L.jsx(c.Fragment,{children:c.cloneElement(t,v)})}const kJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EJ(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 IJ(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 MJ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||IJ(e))}function _J(e){const t=[],n=[];return Array.from(e.querySelectorAll(kJ)).forEach((r,o)=>{const s=EJ(r);s===-1||!MJ(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 TJ(){return!0}function tk(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=_J,isEnabled:i=TJ,open:l}=e,a=c.useRef(!1),u=c.useRef(null),f=c.useRef(null),p=c.useRef(null),g=c.useRef(null),v=c.useRef(!1),y=c.useRef(null),m=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 x=fn(y.current);return y.current.contains(x.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 x=fn(y.current),E=I=>{C.current=I,!(r||!i()||I.key!=="Tab")&&x.activeElement===y.current&&I.shiftKey&&(a.current=!0,f.current&&f.current.focus())},_=()=>{const I=y.current;if(I===null)return;if(!x.hasFocus()||!i()||a.current){a.current=!1;return}if(I.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!v.current)return;let T=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(T=s(y.current)),T.length>0){var D,R;const A=!!((D=C.current)!=null&&D.shiftKey&&((R=C.current)==null?void 0:R.key)==="Tab"),V=T[0],j=T[T.length-1];typeof V!="string"&&typeof j!="string"&&(A?j.focus():V.focus())}else I.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",E,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(k),x.removeEventListener("focusin",_),x.removeEventListener("keydown",E,!0)}},[n,r,o,i,l,s]);const w=x=>{p.current===null&&(p.current=x.relatedTarget),v.current=!0,g.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{p.current===null&&(p.current=x.relatedTarget),v.current=!0};return L.jsxs(c.Fragment,{children:[L.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:m,onFocus:w}),L.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var Mo="top",Ds="bottom",As="right",_o="left",nk="auto",Ah=[Mo,Ds,As,_o],wd="start",sh="end",$J="clippingParents",bN="viewport",zf="popper",RJ="reference",j$=Ah.reduce(function(e,t){return e.concat([t+"-"+wd,t+"-"+sh])},[]),wN=[].concat(Ah,[nk]).reduce(function(e,t){return e.concat([t,t+"-"+wd,t+"-"+sh])},[]),OJ="beforeRead",DJ="read",AJ="afterRead",LJ="beforeMain",FJ="main",NJ="afterMain",BJ="beforeWrite",zJ="write",VJ="afterWrite",jJ=[OJ,DJ,AJ,LJ,FJ,NJ,BJ,zJ,VJ];function Bi(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(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=Jo(e).Element;return e instanceof t||e instanceof Element}function Ts(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rk(e){if(typeof ShadowRoot=="undefined")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HJ(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)||!Bi(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 UJ(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)||!Bi(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const WJ={name:"applyStyles",enabled:!0,phase:"write",fn:HJ,effect:UJ,requires:["computeStyles"]};function $i(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 CN(){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)?Jo(e):window,l=i.visualViewport,a=!CN()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,g=r.height/s;return{width:p,height:g,top:f,right:u+p,bottom:f+g,left:u,x:u,y:f}}function ok(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 xN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bl(e){return Jo(e).getComputedStyle(e)}function GJ(e){return["table","td","th"].indexOf(Bi(e))>=0}function La(e){return((Rc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sb(e){return Bi(e)==="html"?e:e.assignedSlot||e.parentNode||(rk(e)?e.host:null)||La(e)}function H$(e){return!Ts(e)||bl(e).position==="fixed"?null:e.offsetParent}function KJ(e){var t=/firefox/i.test(_x()),n=/Trident/i.test(_x());if(n&&Ts(e)){var r=bl(e);if(r.position==="fixed")return null}var o=Sb(e);for(rk(o)&&(o=o.host);Ts(o)&&["html","body"].indexOf(Bi(o))<0;){var s=bl(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=Jo(e),n=H$(e);n&&GJ(n)&&bl(n).position==="static";)n=H$(n);return n&&(Bi(n)==="html"||Bi(n)==="body"&&bl(n).position==="static")?t:n||KJ(e)||t}function sk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ep(e,t,n){return hc(e,Nv(t,n))}function qJ(e,t,n){var r=Ep(e,t,n);return r>n?n:r}function SN(){return{top:0,right:0,bottom:0,left:0}}function PN(e){return Object.assign({},SN(),e)}function kN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var YJ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,PN(typeof t!="number"?t:kN(t,Ah))};function QJ(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=$i(n.placement),a=sk(l),u=[_o,As].indexOf(l)>=0,f=u?"height":"width";if(!(!s||!i)){var p=YJ(o.padding,n),g=ok(s),v=a==="y"?Mo:_o,y=a==="y"?Ds:As,m=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,x=m/2-C/2,E=p[v],_=b-g[f]-p[y],k=b/2-g[f]/2+x,I=Ep(E,k,_),T=a;n.modifiersData[r]=(t={},t[T]=I,t.centerOffset=I-k,t)}}function XJ(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)||xN(t.elements.popper,o)&&(t.elements.arrow=o))}const ZJ={name:"arrow",enabled:!0,phase:"main",fn:QJ,effect:XJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sd(e){return e.split("-")[1]}var JJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eee(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 U$(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,g=i.x,v=g===void 0?0:g,y=i.y,m=y===void 0?0:y,C=typeof f=="function"?f({x:v,y:m}):{x:v,y:m};v=C.x,m=C.y;var w=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),x=_o,E=Mo,_=window;if(u){var k=Lh(n),I="clientHeight",T="clientWidth";if(k===Jo(n)&&(k=La(n),bl(k).position!=="static"&&l==="absolute"&&(I="scrollHeight",T="scrollWidth")),k=k,o===Mo||(o===_o||o===As)&&s===sh){E=Ds;var D=p&&k===_&&_.visualViewport?_.visualViewport.height:k[I];m-=D-r.height,m*=a?1:-1}if(o===_o||(o===Mo||o===Ds)&&s===sh){x=As;var R=p&&k===_&&_.visualViewport?_.visualViewport.width:k[T];v-=R-r.width,v*=a?1:-1}}var A=Object.assign({position:l},u&&JJ),V=f===!0?eee({x:v,y:m},Jo(n)):{x:v,y:m};if(v=V.x,m=V.y,a){var j;return Object.assign({},A,(j={},j[E]=b?"0":"",j[x]=w?"0":"",j.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",j))}return Object.assign({},A,(t={},t[E]=b?m+"px":"",t[x]=w?v+"px":"",t.transform="",t))}function tee(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:$i(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,U$(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,U$(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 nee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tee,data:{}};var cg={passive:!0};function ree(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=Jo(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 oee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ree,data:{}};var see={left:"right",right:"left",bottom:"top",top:"bottom"};function Gg(e){return e.replace(/left|right|bottom|top/g,function(t){return see[t]})}var iee={start:"end",end:"start"};function W$(e){return e.replace(/start|end/g,function(t){return iee[t]})}function ik(e){var t=Jo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lk(e){return xd(La(e)).left+ik(e).scrollLeft}function lee(e,t){var n=Jo(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=CN();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+lk(e),y:a}}function aee(e){var t,n=La(e),r=ik(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+lk(e),a=-r.scrollTop;return bl(o||n).direction==="rtl"&&(l+=hc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function ak(e){var t=bl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function EN(e){return["html","body","#document"].indexOf(Bi(e))>=0?e.ownerDocument.body:Ts(e)&&ak(e)?e:EN(Sb(e))}function Ip(e,t){var n;t===void 0&&(t=[]);var r=EN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Jo(r),i=o?[s].concat(s.visualViewport||[],ak(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Ip(Sb(i)))}function Tx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cee(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 G$(e,t,n){return t===bN?Tx(lee(e,n)):Rc(t)?cee(t,n):Tx(aee(La(e)))}function uee(e){var t=Ip(Sb(e)),n=["absolute","fixed"].indexOf(bl(e).position)>=0,r=n&&Ts(e)?Lh(e):e;return Rc(r)?t.filter(function(o){return Rc(o)&&xN(o,r)&&Bi(o)!=="body"}):[]}function dee(e,t,n,r){var o=t==="clippingParents"?uee(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,u){var f=G$(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},G$(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 IN(e){var t=e.reference,n=e.element,r=e.placement,o=r?$i(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?sk(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?$J:l,u=n.rootBoundary,f=u===void 0?bN:u,p=n.elementContext,g=p===void 0?zf:p,v=n.altBoundary,y=v===void 0?!1:v,m=n.padding,C=m===void 0?0:m,w=PN(typeof C!="number"?C:kN(C,Ah)),b=g===zf?RJ:zf,x=e.rects.popper,E=e.elements[y?b:g],_=dee(Rc(E)?E:E.contextElement||La(e.elements.popper),a,f,i),k=xd(e.elements.reference),I=IN({reference:k,element:x,strategy:"absolute",placement:o}),T=Tx(Object.assign({},x,I)),D=g===zf?T:k,R={top:_.top-D.top+w.top,bottom:D.bottom-_.bottom+w.bottom,left:_.left-D.left+w.left,right:D.right-_.right+w.right},A=e.modifiersData.offset;if(g===zf&&A){var V=A[o];Object.keys(R).forEach(function(j){var M=[As,Ds].indexOf(j)>=0?1:-1,$=[Mo,Ds].indexOf(j)>=0?"y":"x";R[j]+=V[$]*M})}return R}function fee(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?wN:a,f=Sd(r),p=f?l?j$:j$.filter(function(y){return Sd(y)===f}):Ah,g=p.filter(function(y){return u.indexOf(y)>=0});g.length===0&&(g=p);var v=g.reduce(function(y,m){return y[m]=ih(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[$i(m)],y},{});return Object.keys(v).sort(function(y,m){return v[y]-v[m]})}function pee(e){if($i(e)===nk)return[];var t=Gg(e);return[W$(e),t,W$(t)]}function hee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,g=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,m=n.allowedAutoPlacements,C=t.options.placement,w=$i(C),b=w===C,x=a||(b||!y?[Gg(C)]:pee(C)),E=[C].concat(x).reduce(function(Q,X){return Q.concat($i(X)===nk?fee(t,{placement:X,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:m}):X)},[]),_=t.rects.reference,k=t.rects.popper,I=new Map,T=!0,D=E[0],R=0;R<E.length;R++){var A=E[R],V=$i(A),j=Sd(A)===wd,M=[Mo,Ds].indexOf(V)>=0,$=M?"width":"height",F=ih(t,{placement:A,boundary:f,rootBoundary:p,altBoundary:g,padding:u}),B=M?j?As:_o:j?Ds:Mo;_[$]>k[$]&&(B=Gg(B));var O=Gg(B),N=[];if(s&&N.push(F[V]<=0),l&&N.push(F[B]<=0,F[O]<=0),N.every(function(Q){return Q})){D=A,T=!1;break}I.set(A,N)}if(T)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 D=J,"break"},Y=H;Y>0;Y--){var te=K(Y);if(te==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const mee={name:"flip",enabled:!0,phase:"main",fn:hee,requiresIfExists:["offset"],data:{_skip:!1}};function K$(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 gee(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=K$(i,r),u=K$(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 vee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gee};function yee(e,t,n){var r=$i(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 bee(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=wN.reduce(function(f,p){return f[p]=yee(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 wee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bee};function Cee(e){var t=e.state,n=e.name;t.modifiersData[n]=IN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xee={name:"popperOffsets",enabled:!0,phase:"read",fn:Cee,data:{}};function See(e){return e==="x"?"y":"x"}function Pee(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,g=n.tether,v=g===void 0?!0:g,y=n.tetherOffset,m=y===void 0?0:y,C=ih(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:f}),w=$i(t.placement),b=Sd(t.placement),x=!b,E=sk(w),_=See(E),k=t.modifiersData.popperOffsets,I=t.rects.reference,T=t.rects.popper,D=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(s){var j,M=E==="y"?Mo:_o,$=E==="y"?Ds:As,F=E==="y"?"height":"width",B=k[E],O=B+C[M],N=B-C[$],H=v?-T[F]/2:0,K=b===wd?I[F]:T[F],Y=b===wd?-T[F]:-I[F],te=t.elements.arrow,Q=v&&te?ok(te):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:SN(),J=X[M],se=X[$],Z=Ep(0,I[F],Q[F]),he=x?I[F]/2-H-Z-J-R.mainAxis:K-Z-J-R.mainAxis,ne=x?-I[F]/2+H+Z+se+R.mainAxis:Y+Z+se+R.mainAxis,re=t.elements.arrow&&Lh(t.elements.arrow),me=re?E==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(j=A==null?void 0:A[E])!=null?j:0,Se=B+he-ce-me,Ee=B+ne-ce,ae=Ep(v?Nv(O,Se):O,B,v?hc(N,Ee):N);k[E]=ae,V[E]=ae-B}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=A==null?void 0:A[_])!=null?Ie:0,Ge=_e?de:pe-I[fe]-T[fe]-Ne+R.altAxis,Ve=_e?pe+I[fe]+T[fe]-Ne-R.altAxis:be,Ue=v&&_e?qJ(Ge,pe,Ve):Ep(v?Ge:de,pe,v?Ve:be);k[_]=Ue,V[_]=Ue-pe}t.modifiersData[r]=V}}const kee={name:"preventOverflow",enabled:!0,phase:"main",fn:Pee,requiresIfExists:["offset"]};function Eee(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Iee(e){return e===Jo(e)||!Ts(e)?ik(e):Eee(e)}function Mee(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 _ee(e,t,n){n===void 0&&(n=!1);var r=Ts(t),o=Ts(t)&&Mee(t),s=La(t),i=xd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Bi(t)!=="body"||ak(s))&&(l=Iee(t)),Ts(t)?(a=xd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=lk(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Tee(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 $ee(e){var t=Tee(e);return jJ.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ree(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Oee(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 Y$={placement:"bottom",modifiers:[],strategy:"absolute"};function Q$(){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 Dee(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Y$:o;return function(l,a,u){u===void 0&&(u=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y$,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],g=!1,v={state:f,setOptions:function(w){var b=typeof w=="function"?w(f.options):w;m(),f.options=Object.assign({},s,f.options,b),f.scrollParents={reference:Rc(l)?Ip(l):l.contextElement?Ip(l.contextElement):[],popper:Ip(a)};var x=$ee(Oee([].concat(r,f.options.modifiers)));return f.orderedModifiers=x.filter(function(E){return E.enabled}),y(),v.update()},forceUpdate:function(){if(!g){var w=f.elements,b=w.reference,x=w.popper;if(Q$(b,x)){f.rects={reference:_ee(b,Lh(x),f.options.strategy==="fixed"),popper:ok(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.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,T=I===void 0?{}:I,D=_.name;typeof k=="function"&&(f=k({state:f,options:T,name:D,instance:v})||f)}}}},update:Ree(function(){return new Promise(function(C){v.forceUpdate(),C(f)})}),destroy:function(){m(),g=!0}};if(!Q$(l,a))return v;v.setOptions(u).then(function(C){!g&&u.onFirstUpdate&&u.onFirstUpdate(C)});function y(){f.orderedModifiers.forEach(function(C){var w=C.name,b=C.options,x=b===void 0?{}:b,E=C.effect;if(typeof E=="function"){var _=E({state:f,name:w,instance:v,options:x}),k=function(){};p.push(_||k)}})}function m(){p.forEach(function(C){return C()}),p=[]}return v}}var Aee=[oee,xee,nee,WJ,wee,mee,kee,ZJ,vee],Lee=Dee({defaultModifiers:Aee});function Fee(e){return typeof e=="function"?e():e}const MN=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(Fee(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 L.jsx(c.Fragment,{children:r})}return L.jsx(c.Fragment,{children:i&&zd.createPortal(r,i)})});function Nee(e){return Ke("MuiPopper",e)}We("MuiPopper",["root"]);const Bee=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zee=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Vee(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 $x(e){return typeof e=="function"?e():e}function jee(e){return e.nodeType!==void 0}const Hee=()=>Te({root:["root"]},wJ(Nee)),Uee={},Wee=c.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:u,placement:f,popperOptions:p,popperRef:g,slotProps:v={},slots:y={},TransitionProps:m}=t,C=le(t,Bee),w=c.useRef(null),b=Et(w,n),x=c.useRef(null),E=Et(x,g),_=c.useRef(E);Nt(()=>{_.current=E},[E]),c.useImperativeHandle(g,()=>x.current,[]);const k=Vee(f,i),[I,T]=c.useState(k),[D,R]=c.useState($x(o));c.useEffect(()=>{x.current&&x.current.forceUpdate()}),c.useEffect(()=>{o&&R($x(o))},[o]),Nt(()=>{if(!D||!u)return;const $=O=>{T(O.placement)};let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{$(O)}}];a!=null&&(F=F.concat(a)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const B=Lee(D,w.current,S({placement:k},p,{modifiers:F}));return _.current(B),()=>{B.destroy(),_.current(null)}},[D,l,a,u,p,k]);const A={placement:I};m!==null&&(A.TransitionProps=m);const V=Hee(),j=(r=y.root)!=null?r:"div",M=qt({elementType:j,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:V.root});return L.jsx(j,S({},M,{children:typeof s=="function"?s(A):s}))}),Gee=c.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:g=Uee,popperRef:v,style:y,transition:m=!1,slotProps:C={},slots:w={}}=t,b=le(t,zee),[x,E]=c.useState(!0),_=()=>{E(!1)},k=()=>{E(!0)};if(!a&&!f&&(!m||x))return null;let I;if(s)I=s;else if(r){const R=$x(r);I=R&&jee(R)?fn(R).body:fn(null).body}const T=!f&&a&&(!m||x)?"none":void 0,D=m?{in:f,onEnter:_,onExited:k}:void 0;return L.jsx(MN,{disablePortal:l,container:I,children:L.jsx(Wee,S({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:m?!x:f,placement:p,popperOptions:g,popperRef:v,slotProps:C,slots:w},b,{style:S({position:"fixed",top:0,left:0,display:T},y),TransitionProps:D,children:o}))})});function Kee(e){const t=fn(e);return t.body===e?Zo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function X$(e){return parseInt(Zo(e).getComputedStyle(e).paddingRight,10)||0}function qee(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 Z$(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!qee(i);l&&a&&Mp(i,o)})}function _w(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Yee(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Kee(r)){const i=DF(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${X$(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=`${X$(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=fn(r).body;else{const i=r.parentElement,l=Zo(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 Qee(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Xee{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=Qee(n);Z$(n,t.mount,t.modalRef,o,!0);const s=_w(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=_w(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Yee(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=_w(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),Z$(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 Zee(e){return typeof e=="function"?e():e}function Jee(e){return e?e.props.hasOwnProperty("in"):!1}const ete=new Xee;function tte(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ete,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:u,open:f,rootRef:p}=e,g=c.useRef({}),v=c.useRef(null),y=c.useRef(null),m=Et(y,p),[C,w]=c.useState(!f),b=Jee(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>fn(v.current),_=()=>(g.current.modalRef=y.current,g.current.mount=v.current,g.current),k=()=>{o.mount(_(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},I=Ye(()=>{const F=Zee(t)||E().body;o.add(_(),F),y.current&&k()}),T=c.useCallback(()=>o.isTopModal(_()),[o]),D=Ye(F=>{v.current=F,F&&(f&&T()?k():y.current&&Mp(y.current,x))}),R=c.useCallback(()=>{o.remove(_(),x)},[x,o]);c.useEffect(()=>()=>{R()},[R]),c.useEffect(()=>{f?I():(!b||!s)&&R()},[f,R,b,s,I]);const A=F=>B=>{var O;(O=F.onKeyDown)==null||O.call(F,B),!(B.key!=="Escape"||B.which===229||!T())&&(n||(B.stopPropagation(),u&&u(B,"escapeKeyDown")))},V=F=>B=>{var O;(O=F.onClick)==null||O.call(F,B),B.target===B.currentTarget&&u&&u(B,"backdropClick")};return{getRootProps:(F={})=>{const B=vN(e);delete B.onTransitionEnter,delete B.onTransitionExited;const O=S({},B,F);return S({role:"presentation"},O,{onKeyDown:A(O),ref:m})},getBackdropProps:(F={})=>{const B=F;return S({"aria-hidden":!0},B,{onClick:V(B),open:f})},getTransitionProps:()=>{const F=()=>{w(!1),i&&i()},B=()=>{w(!0),l&&l(),s&&R()};return{onEnter:wx(F,a==null?void 0:a.props.onEnter),onExited:wx(B,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:D,isTopModal:T,exited:C,hasTransition:b}}const nte=["onChange","maxRows","minRows","style","value"];function ug(e){return parseInt(e,10)||0}const rte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function J$(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ote=c.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=le(t,nte),{current:u}=c.useRef(l!=null),f=c.useRef(null),p=Et(n,f),g=c.useRef(null),v=c.useRef(0),[y,m]=c.useState({outerHeightStyle:0}),C=c.useCallback(()=>{const E=f.current,k=Zo(E).getComputedStyle(E);if(k.width==="0px")return{outerHeightStyle:0};const I=g.current;I.style.width=k.width,I.value=E.value||t.placeholder||"x",I.value.slice(-1)===`
|
|
162
|
+
`&&(I.value+=" ");const T=k.boxSizing,D=ug(k.paddingBottom)+ug(k.paddingTop),R=ug(k.borderBottomWidth)+ug(k.borderTopWidth),A=I.scrollHeight;I.value="x";const V=I.scrollHeight;let j=A;s&&(j=Math.max(Number(s)*V,j)),o&&(j=Math.min(Number(o)*V,j)),j=Math.max(j,V);const M=j+(T==="border-box"?D+R:0),$=Math.abs(j-A)<=1;return{outerHeightStyle:M,overflow:$}},[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();J$(E)||m(_=>w(_,E))},[C]);Nt(()=>{const E=()=>{const A=C();J$(A)||zd.flushSync(()=>{m(V=>w(V,A))})},_=()=>{v.current=0,E()};let k;const I=Aa(_),T=f.current,D=Zo(T);D.addEventListener("resize",I);let R;return typeof ResizeObserver!="undefined"&&(R=new ResizeObserver(_),R.observe(T)),()=>{I.clear(),cancelAnimationFrame(k),D.removeEventListener("resize",I),R&&R.disconnect()}},[C]),Nt(()=>{b()}),c.useEffect(()=>{v.current=0},[l]);const x=E=>{v.current=0,u||b(),r&&r(E)};return L.jsxs(c.Fragment,{children:[L.jsx("textarea",S({value:l,onChange:x,ref:p,rows:s,style:S({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},i)},a)),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:S({},rte.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function eR(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=eR(f));const p=f?l.filter(g=>{let v=(s||u)(g);return n&&(v=v.toLowerCase()),t&&(v=eR(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function Tw(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const ste=_N(),tR=5,ite=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function lte(e){const{unstable_isActiveElementInListbox:t=ite,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:a=!1,componentName:u="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:v,disabledItemsFocusable:y=!1,disableListWrap:m=!1,filterOptions:C=ste,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:E,getOptionLabel:_=$e=>{var we;return(we=$e.label)!=null?we:$e},groupBy:k,handleHomeEndKeys:I=!e.freeSolo,id:T,includeInputInList:D=!1,inputValue:R,isOptionEqualToValue:A=($e,we)=>$e===we,multiple:V=!1,onChange:j,onClose:M,onHighlightChange:$,onInputChange:F,onOpen:B,open:O,openOnFocus:N=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:te}=e,Q=Kt(T);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:R,default:"",name:u,state:"inputValue"}),[pe,fe]=c.useState(!1),de=c.useCallback(($e,we)=>{if(!(V?ae.length<we.length:we!==null)&&!l)return;let ft;if(V)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,V,F,Me,l,ae]),[be,_e]=Qr({controlled:O,default:!1,name:u,state:"open"}),[Ne,Ge]=c.useState(!0),Ve=!V&&ae!=null&&ye===X(ae),Ue=be&&!K,Le=Ue?C(H.filter($e=>!(w&&(V?ae:[ae]).some(we=>we!==null&&A($e,we)))),{inputValue:Ve&&Ne?"":ye,getOptionLabel:X}):[],ht=OP({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(()=>{V&&me>ae.length-1&&(ce(-1),Pt(-1))},[ae,V,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}`),$&&$($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,Qn=Fn.offsetTop+Fn.offsetHeight;Qn>St?Wt.scrollTop=Qn-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&&D?-1:m&&Ee.current!==-1||Math.abs(we)>1?0:Fn:St>Fn?St===Fn+1&&D?-1:m||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&&(V?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=V?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(V&&we&&Tw(ae,ft=>A(we,ft))!==-1)return;const Qe=Tw(Le,ft=>A(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,V?!1:ae,w,Oe,Xe,Ue,ye,V]),vt=Ye($e=>{th(he,$e),$e&&mt()});c.useEffect(()=>{mt()},[mt]);const Tt=$e=>{be||(_e(!0),Ge(!0),B&&B($e))},Yt=($e,we)=>{be&&(_e(!1),M&&M($e,we))},Qt=($e,we,Qe,ft)=>{if(V){if(ae.length===we.length&&ae.every((Wt,$n)=>Wt===we[$n]))return}else if(ae===we)return;j&&j($e,we,Qe,ft),Ie(we)},Pn=c.useRef(!1),bn=($e,we,Qe="selectOption",ft="options")=>{let Wt=Qe,$n=we;if(V){$n=Array.isArray(ae)?ae.slice():[];const Fn=Tw($n,St=>A(we,St));Fn===-1?$n.push(we):ft!=="freeSolo"&&($n.splice(Fn,1),Wt="removeOption")}de($e,$n),Qt($e,$n,Wt,{option:we}),!g&&(!$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(!V)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)},gr=$e=>{J.current=!0,Me(""),F&&F($e,"","clear"),Qt($e,V?[]:null,"clear")},sr=$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:-tR,direction:"previous",reason:"keyboard",event:we}),Tt(we);break;case"PageDown":we.preventDefault(),Oe({diff:tR,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=x?x(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&&(V&&we.preventDefault(),bn(we,ye,"createOption","freeSolo"));break;case"Escape":Ue?(we.preventDefault(),we.stopPropagation(),Yt(we,"escape")):a&&(ye!==""||V&&ae.length>0)&&(we.preventDefault(),we.stopPropagation(),gr(we));break;case"Backspace":if(V&&!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(V&&!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}},_l=$e=>{fe(!0),N&&!J.current&&Tt($e)},ls=$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&&!V&&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"})},vr=$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},as=$e=>we=>{const Qe=ae.slice();Qe.splice($e,1),Qt(we,Qe,"removeOption",{option:ae[$e]})},ir=$e=>{be?Yt($e,"toggleInput"):Tt($e)},Oo=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Q&&$e.preventDefault()},hi=$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)&&ir($e)};let Nr=b&&ye.length>0;Nr=Nr||(V?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&&ls(),{getRootProps:($e={})=>S({"aria-owns":Zt?`${Q}-listbox`:null},$e,{onKeyDown:sr($e),onMouseDown:Oo,onClick:hi}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ye,onBlur:ls,onFocus:_l,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:gr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ir}),getTagProps:({index:$e})=>S({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:as($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=(V?ae:[ae]).some($n=>$n!=null&&A(we,$n)),Wt=x?x(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:vr,"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 ate=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],cte=oe(Gee,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ute=c.forwardRef(function(t,n){var r;const o=gb(),s=je({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:u,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:y,placement:m,popperOptions:C,popperRef:w,transition:b,slots:x,slotProps:E}=s,_=le(s,ate),k=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,I=S({anchorEl:i,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:y,placement:m,popperOptions:C,popperRef:w,transition:b},_);return L.jsx(cte,S({as:l,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:E!=null?E:u},I,{ref:n}))}),Fa=ute;function dte(e){return Ke("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fte=["className","color","component","disableGutters","disableSticky","inset"],pte=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,dte,t)},hte=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})=>S({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})),TN=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,fte),p=S({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:u}),g=pte(p);return L.jsx(hte,S({as:i,className:Ce(g.root,o),ref:n,ownerState:p},f))});TN.muiSkipListHighlight=!0;const mte=TN,gte=bt(L.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 vte(e){return Ke("MuiChip",e)}const yte=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=yte,bte=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],wte=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,vte,t)},Cte=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 S({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}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:it(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:it(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:it(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jt.avatar}`]:{marginLeft:4},[`& .${Jt.avatarSmall}`]:{marginLeft:2},[`& .${Jt.icon}`]:{marginLeft:4},[`& .${Jt.iconSmall}`]:{marginLeft:2},[`& .${Jt.deleteIcon}`]:{marginRight:5},[`& .${Jt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:it(e.palette[t.color].main,.7)}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:it(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),xte=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})=>S({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 nR(e){return e.key==="Backspace"||e.key==="Delete"}const Ste=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:l="default",component:a,deleteIcon:u,disabled:f=!1,icon:p,label:g,onClick:v,onDelete:y,onKeyDown:m,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:x,skipFocusWhenDisabled:E=!1}=r,_=le(r,bte),k=c.useRef(null),I=Et(k,n),T=N=>{N.stopPropagation(),y&&y(N)},D=N=>{N.currentTarget===N.target&&nR(N)&&N.preventDefault(),m&&m(N)},R=N=>{N.currentTarget===N.target&&(y&&nR(N)?y(N):N.key==="Escape"&&k.current&&k.current.blur()),C&&C(N)},A=i!==!1&&v?!0:i,V=A||y?ui:a||"div",j=S({},r,{component:V,disabled:f,size:w,color:l,iconColor:c.isValidElement(p)&&p.props.color||l,onDelete:!!y,clickable:A,variant:b}),M=wte(j),$=V===ui?S({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:T}):L.jsx(gte,{className:Ce(M.deleteIcon),onClick:T}));let B=null;o&&c.isValidElement(o)&&(B=c.cloneElement(o,{className:Ce(M.avatar,o.props.className)}));let O=null;return p&&c.isValidElement(p)&&(O=c.cloneElement(p,{className:Ce(M.icon,p.props.className)})),L.jsxs(Cte,S({as:V,className:Ce(M.root,s),disabled:A&&f?!0:void 0,onClick:v,onKeyDown:D,onKeyUp:R,ref:I,tabIndex:E&&f?-1:x,ownerState:j},$,_,{children:[B||O,L.jsx(xte,{className:Ce(M.label),ownerState:j,children:g}),F]}))}),Pb=Ste;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 Pte=c.createContext(void 0),kb=Pte;function El(){return c.useContext(kb)}function kte(e){return L.jsx(NQ,S({},e,{defaultTheme:bb,themeId:Ec}))}function rR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bv(e,t=!1){return e&&(rR(e.value)&&e.value!==""||t&&rR(e.defaultValue)&&e.defaultValue!=="")}function Ete(e){return e.startAdornment}function Ite(e){return Ke("MuiInputBase",e)}const Mte=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jo=Mte,_te=["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"],Eb=(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]},Ib=(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]},Tte=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:l,fullWidth:a,hiddenLabel:u,multiline:f,readOnly:p,size:g,startAdornment:v,type:y}=e,m={root:["root",`color${Pe(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",g&&g!=="medium"&&`size${Pe(g)}`,f&&"multiline",v&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Te(m,Ite,t)},Mb=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Eb})(({theme:e,ownerState:t})=>S({},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",[`&.${jo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_b=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ib})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({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 S({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] + .${jo.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},[`&.${jo.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"})}),$te=L.jsx(kte,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Rte=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,components:u={},componentsProps:f={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:m=!1,id:C,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:E,minRows:_,multiline:k=!1,name:I,onBlur:T,onChange:D,onClick:R,onFocus:A,onKeyDown:V,onKeyUp:j,placeholder:M,readOnly:$,renderSuffix:F,rows:B,slotProps:O={},slots:N={},startAdornment:H,type:K="text",value:Y}=o,te=le(o,_te),Q=b.value!=null?b.value:Y,{current:X}=c.useRef(Q!=null),J=c.useRef(),se=c.useCallback(Ue=>{},[]),Z=Et(J,x,b.ref,se),[he,ne]=c.useState(!1),re=El(),me=Vc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:he,c.useEffect(()=>{!re&&g&&he&&(ne(!1),T&&T())},[re,g,he,T]);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}A&&A(Ue),b.onFocus&&b.onFocus(Ue),re&&re.onFocus?re.onFocus(Ue):ne(!0)},Ie=Ue=>{T&&T(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),D&&D(Ue,...Le)};c.useEffect(()=>{Ee(J.current)},[]);const Me=Ue=>{J.current&&Ue.currentTarget===Ue.target&&J.current.focus(),R&&R(Ue)};let pe=w,fe=b;k&&pe==="input"&&(B?fe=S({type:void 0,minRows:B,maxRows:B},fe):fe=S({type:void 0,maxRows:E,minRows:_},fe),pe=ote);const de=Ue=>{Ee(Ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};c.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const be=S({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:y,error:me.error,focused:me.focused,formControl:re,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:k,size:me.size,startAdornment:H,type:K}),_e=Tte(be),Ne=N.root||u.Root||Mb,Ge=O.root||f.root||{},Ve=N.input||u.Input||_b;return fe=S({},fe,(r=O.input)!=null?r:f.input),L.jsxs(c.Fragment,{children:[!v&&$te,L.jsxs(Ne,S({},Ge,!$c(Ne)&&{ownerState:S({},be,Ge.ownerState)},{ref:n,onClick:Me},te,{className:Ce(_e.root,Ge.className,a,$&&"MuiInputBase-readOnly"),children:[H,L.jsx(kb.Provider,{value:null,children:L.jsx(Ve,S({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:$,required:me.required,rows:B,value:Q,onKeyDown:V,onKeyUp:j,type:K},fe,!$c(Ve)&&{as:pe,ownerState:S({},be,fe.ownerState)},{ref:Z,className:Ce(_e.input,fe.className,$&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:ye,onFocus:ae}))}),y,F?F(S({},me,{startAdornment:H})):null]}))]})}),Gd=Rte;function Ote(e){return Ke("MuiInput",e)}const Dte=S({},jo,We("MuiInput",["root","underline","input"])),na=Dte;function Ate(e){return Ke("MuiOutlinedInput",e)}const Lte=S({},jo,We("MuiOutlinedInput",["root","notchedOutline","input"])),xi=Lte;function Fte(e){return Ke("MuiFilledInput",e)}const Nte=S({},jo,We("MuiFilledInput",["root","underline","input"])),Ho=Nte,$N=bt(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Bte(e){return Ke("MuiAutocomplete",e)}const zte=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=zte;var oR,sR;const Vte=["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"],jte=["ref"],Hte=["key"],Ute=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,Bte,t)},Wte=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})=>S({[`&.${zt.focused} .${zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${zt.tag}`]:S({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}},[`& .${na.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${na.root}.${jo.sizeSmall}`]:{[`& .${na.input}`]:{padding:"2px 4px 3px 0"}},[`& .${xi.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}},[`& .${xi.root}.${jo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${zt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ho.root}`]:{paddingTop:19,paddingLeft:8,[`.${zt.hasPopupIcon}&, .${zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${zt.hasPopupIcon}.${zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ho.input}`]:{padding:"7px 4px"},[`& .${zt.endAdornment}`]:{right:9}},[`& .${Ho.root}.${jo.sizeSmall}`]:{paddingBottom:1,[`& .${Ho.input}`]:{padding:"2.5px 4px"}},[`& .${jo.hiddenLabel}`]:{paddingTop:8},[`& .${Ho.root}.${jo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ho.root}.${jo.hiddenLabel}.${jo.sizeSmall}`]:{[`& .${zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${zt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Gte=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Kte=oe(pr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),qte=oe(pr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Yte=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})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Qte=oe(Vs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),Xte=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Zte=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Jte=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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),ene=oe(mte,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),tne=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${zt.option}`]:{paddingLeft:24}}),nne=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:u=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:g,className:v,clearIcon:y=oR||(oR=L.jsx(gN,{fontSize:"small"})),clearOnBlur:m=!l.freeSolo,clearOnEscape:C=!1,clearText:w="Clear",closeText:b="Close",componentsProps:x={},defaultValue:E=l.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:T=!1,disableListWrap:D=!1,disablePortal:R=!1,filterSelectedOptions:A=!1,forcePopupIcon:V="auto",freeSolo:j=!1,fullWidth:M=!1,getLimitTagsText:$=we=>`+${we}`,getOptionLabel:F,groupBy:B,handleHomeEndKeys:O=!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=sR||(sR=L.jsx($N,{})),readOnly:me=!1,renderGroup:ce,renderInput:Se,renderOption:Ee,renderTags:ae,selectOnFocus:Ie=!l.freeSolo,size:ye="medium",slotProps:Me={}}=l,pe=le(l,Vte),{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}=lte(S({},l,{componentName:"Autocomplete"})),Yt=!_&&!I&&ht&&!me,Qt=(!j||V===!0)&&V!==!1,{onMouseDown:Pn}=de(),{ref:bn}=Y!=null?Y:{},gt=Ve(),{ref:Rt}=gt,gr=le(gt,jte),sr=Et(Rt,bn),ls=F||(we=>{var Qe;return(Qe=we.label)!=null?Qe:we}),Tn=S({},l,{disablePortal:R,expanded:Zt,focused:Xe,fullWidth:M,getOptionLabel:ls,hasClearIcon:Yt,hasPopupIcon:Qt,inputFocused:Oe===-1,popupOpen:wt,size:ye}),an=Ute(Tn);let vr;if(X&&Le.length>0){const we=Qe=>S({className:an.tag,disabled:I},Ge(Qe));ae?vr=ae(Le,we,Tn):vr=Le.map((Qe,ft)=>L.jsx(Pb,S({label:ls(Qe),size:ye},we({index:ft}),g)))}if(H>-1&&Array.isArray(vr)){const we=vr.length-H;!Xe&&we>0&&(vr=vr.splice(0,H),vr.push(L.jsx("span",{className:an.tag,children:$(we)},vr.length)))}const as=ce||(we=>L.jsxs("li",{children:[L.jsx(ene,{className:an.groupLabel,ownerState:Tn,component:"div",children:we.group}),L.jsx(tne,{className:an.groupUl,ownerState:Tn,children:we.children})]},we.key)),Oo=Ee||((we,Qe)=>{const{key:ft}=we,Wt=le(we,Hte);return L.jsx("li",S({},Wt,{children:ls(Qe)}),ft)}),hi=(we,Qe)=>{const ft=Ue({option:we,index:Qe});return Oo(S({},ft,{className:an.option}),we,{selected:ft["aria-selected"],index:Qe,inputValue:vt},Tn)},Mr=(r=Me.clearIndicator)!=null?r:x.clearIndicator,Nr=(o=Me.paper)!=null?o:x.paper,js=(s=Me.popper)!=null?s:x.popper,$e=(i=Me.popupIndicator)!=null?i:x.popupIndicator;return L.jsxs(c.Fragment,{children:[L.jsx(Wte,S({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:S({ref:mt,className:an.inputRoot,startAdornment:vr,onClick:we=>{we.target===we.currentTarget&&Pn(we)}},(Yt||Qt)&&{endAdornment:L.jsxs(Gte,{className:an.endAdornment,ownerState:Tn,children:[Yt?L.jsx(Kte,S({},Ne(),{"aria-label":w,title:w,ownerState:Tn},Mr,{className:Ce(an.clearIndicator,Mr==null?void 0:Mr.className),children:y})):null,Qt?L.jsx(qte,S({},_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:S({className:an.input,disabled:I,readOnly:me},de())})})),qe?L.jsx(Yte,S({as:ne,disablePortal:R,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:L.jsxs(Qte,S({ownerState:Tn,as:he},Nr,{className:Ce(an.paper,Nr==null?void 0:Nr.className),children:[te&&Tt.length===0?L.jsx(Xte,{className:an.loading,ownerState:Tn,children:Q}):null,Tt.length===0&&!j&&!te?L.jsx(Zte,{className:an.noOptions,ownerState:Tn,role:"presentation",onMouseDown:we=>{we.preventDefault()},children:J}):null,Tt.length>0?L.jsx(Jte,S({as:K,className:an.listbox,ownerState:Tn},gr,Y,{ref:sr,children:Tt.map((we,Qe)=>B?as({key:we.key,group:we.group,children:we.options.map((ft,Wt)=>hi(ft,we.index+Wt))}):hi(we,Qe))})):null]}))})):null]})}),Fh=nne,rne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],one={entering:{opacity:1},entered:{opacity:1}},sne=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:a,in:u,onEnter:f,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:m,style:C,timeout:w=o,TransitionComponent:b=Dh}=t,x=le(t,rne),E=c.useRef(null),_=Et(E,l.ref,n),k=M=>$=>{if(M){const F=E.current;$===void 0?M(F):M(F,$)}},I=k(g),T=k((M,$)=>{ek(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,$)}),D=k(p),R=k(m),A=k(M=>{const $=Ia({style:C,timeout:w,easing:a},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",$),M.style.transition=r.transitions.create("opacity",$),v&&v(M)}),V=k(y),j=M=>{s&&s(E.current,M)};return L.jsx(b,S({appear:i,in:u,nodeRef:E,onEnter:T,onEntered:D,onEntering:I,onExit:A,onExited:V,onExiting:R,addEndListener:j,timeout:w},x,{children:(M,$)=>c.cloneElement(l,S({style:S({opacity:0,visibility:M==="exited"&&!u?"hidden":void 0},one[M],C,l.props.style),ref:_},$))}))}),Kd=sne;function ine(e){return Ke("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const lne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ane=e=>{const{classes:t,invisible:n}=e;return Te({root:["root",n&&"invisible"]},ine,t)},cne=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({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"})),une=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:f={},componentsProps:p={},invisible:g=!1,open:v,slotProps:y={},slots:m={},TransitionComponent:C=Kd,transitionDuration:w}=i,b=le(i,lne),x=S({},i,{component:u,invisible:g}),E=ane(x),_=(r=y.root)!=null?r:p.root;return L.jsx(C,S({in:v,timeout:w},b,{children:L.jsx(cne,S({"aria-hidden":!0},_,{as:(o=(s=m.root)!=null?s:f.Root)!=null?o:u,className:Ce(E.root,a,_==null?void 0:_.className),ownerState:S({},x,_==null?void 0:_.ownerState),classes:E,ref:n,children:l}))}))}),RN=une;function dne(e){return Ke("MuiBadge",e)}const fne=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"]),zl=fne,pne=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],$w=10,Rw=4,hne=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,dne,i)},mne=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),gne=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})=>S({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:$w*2,lineHeight:1,padding:"0 6px",height:$w*2,borderRadius:$w,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:Rw,height:Rw*2,minWidth:Rw*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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.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%",[`&.${zl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),vne=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:g,components:v={},componentsProps:y={},children:m,overlap:C="rectangular",color:w="default",invisible:b=!1,max:x=99,badgeContent:E,slots:_,slotProps:k,showZero:I=!1,variant:T="standard"}=u,D=le(u,pne),{badgeContent:R,invisible:A,max:V,displayValue:j}=SJ({max:x,invisible:b,badgeContent:E,showZero:I}),M=OP({anchorOrigin:f,color:w,overlap:C,variant:T,badgeContent:E}),$=A||R==null&&T!=="dot",{color:F=w,overlap:B=C,anchorOrigin:O=f,variant:N=T}=$?M:u,H=N!=="dot"?j:void 0,K=S({},u,{badgeContent:R,invisible:$,max:V,displayValue:H,showZero:I,anchorOrigin:O,color:F,overlap:B,variant:N}),Y=hne(K),te=(r=(o=_==null?void 0:_.root)!=null?o:v.Root)!=null?r:mne,Q=(s=(i=_==null?void 0:_.badge)!=null?i:v.Badge)!=null?s:gne,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:D,additionalProps:{ref:n,as:g},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 L.jsxs(te,S({},se,{children:[m,L.jsx(Q,S({},Z,{children:H}))]}))}),ON=vne,yne=We("MuiBox",["root"]),bne=yne,wne=YP(),Cne=jQ({themeId:Ec,defaultTheme:wne,defaultClassName:bne.root,generateClassName:AP.generate}),ze=Cne;function xne(e){return Ke("MuiButton",e)}const Sne=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=Sne,Pne=c.createContext({}),kne=Pne,Ene=c.createContext(void 0),Ine=Ene,Mne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_ne=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,xne,i);return S({},i,a)},DN=e=>S({},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}}),Tne=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 S({},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":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dg.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dg.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${it(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${dg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dg.disabled}`]:{boxShadow:"none"}}),$ne=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DN(e))),Rne=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pe(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DN(e))),One=c.forwardRef(function(t,n){const r=c.useContext(kne),o=c.useContext(Ine),s=DP(r,t),i=je({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:u="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:v=!1,endIcon:y,focusVisibleClassName:m,fullWidth:C=!1,size:w="medium",startIcon:b,type:x,variant:E="text"}=i,_=le(i,Mne),k=S({},i,{color:a,component:u,disabled:p,disableElevation:g,disableFocusRipple:v,fullWidth:C,size:w,type:x,variant:E}),I=_ne(k),T=b&&L.jsx($ne,{className:I.startIcon,ownerState:k,children:b}),D=y&&L.jsx(Rne,{className:I.endIcon,ownerState:k,children:y}),R=o||"";return L.jsxs(Tne,S({ownerState:k,className:Ce(r.className,I.root,f,R),component:u,disabled:p,focusRipple:!v,focusVisibleClassName:Ce(I.focusVisible,m),ref:n,type:x},_,{classes:I,children:[T,l,D]}))}),qn=One;function Dne(e){return Ke("MuiCard",e)}We("MuiCard",["root"]);const Ane=["className","raised"],Lne=e=>{const{classes:t}=e;return Te({root:["root"]},Dne,t)},Fne=oe(Vs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Nne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=le(r,Ane),l=S({},r,{raised:s}),a=Lne(l);return L.jsx(Fne,S({className:Ce(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),Tb=Nne;function Bne(e){return Ke("MuiCardContent",e)}We("MuiCardContent",["root"]);const zne=["className","component"],Vne=e=>{const{classes:t}=e;return Te({root:["root"]},Bne,t)},jne=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Hne=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=le(r,zne),l=S({},r,{component:s}),a=Vne(l);return L.jsx(jne,S({as:s,className:Ce(a.root,o),ownerState:l,ref:n},i))}),$b=Hne;function Une(e){return Ke("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wne=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Gne=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,Une,t)},Kne=oe(ui)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),qne=oe("input",{shouldForwardProp:Jr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yne=c.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:g,inputProps:v,inputRef:y,name:m,onBlur:C,onChange:w,onFocus:b,readOnly:x,required:E=!1,tabIndex:_,type:k,value:I}=t,T=le(t,Wne),[D,R]=Qr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),A=El(),V=N=>{b&&b(N),A&&A.onFocus&&A.onFocus(N)},j=N=>{C&&C(N),A&&A.onBlur&&A.onBlur(N)},M=N=>{if(N.nativeEvent.defaultPrevented)return;const H=N.target.checked;R(H),w&&w(N,H)};let $=a;A&&typeof $=="undefined"&&($=A.disabled);const F=k==="checkbox"||k==="radio",B=S({},t,{checked:D,disabled:$,disableFocusRipple:u,edge:f}),O=Gne(B);return L.jsxs(Kne,S({component:"span",className:Ce(O.root,i),centerRipple:!0,focusRipple:!u,disabled:$,tabIndex:null,role:void 0,onFocus:V,onBlur:j,ownerState:B,ref:n},T,{children:[L.jsx(qne,S({autoFocus:r,checked:o,defaultChecked:l,className:O.input,disabled:$,id:F?g:void 0,name:m,onChange:M,readOnly:x,ref:y,required:E,ownerState:B,tabIndex:_,type:k},k==="checkbox"&&I===void 0?{}:{value:I},v)),D?s:p]}))}),AN=Yne,Qne=bt(L.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"),Xne=bt(L.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"),Zne=bt(L.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 Jne(e){return Ke("MuiCheckbox",e)}const ere=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ow=ere,tre=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],nre=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,Jne,t);return S({},t,i)},rre=oe(AN,{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})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ow.checked}, &.${Ow.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ow.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ore=L.jsx(Xne,{}),sre=L.jsx(Qne,{}),ire=L.jsx(Zne,{}),lre=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiCheckbox"}),{checkedIcon:i=ore,color:l="primary",icon:a=sre,indeterminate:u=!1,indeterminateIcon:f=ire,inputProps:p,size:g="medium",className:v}=s,y=le(s,tre),m=u?f:a,C=u?f:i,w=S({},s,{color:l,indeterminate:u,size:g}),b=nre(w);return L.jsx(rre,S({type:"checkbox",inputProps:S({"data-indeterminate":u},p),icon:c.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:g}),checkedIcon:c.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:g}),ownerState:w,ref:n,className:Ce(b.root,v)},y,{classes:b}))}),LN=lre;function are(e){return Ke("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cre=["className","color","disableShrink","size","style","thickness","value","variant"];let Rb=e=>e,iR,lR,aR,cR;const Vl=44,ure=Hi(iR||(iR=Rb`
|
|
163
|
+
0% {
|
|
164
|
+
transform: rotate(0deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: rotate(360deg);
|
|
169
|
+
}
|
|
170
|
+
`)),dre=Hi(lR||(lR=Rb`
|
|
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
|
+
`)),fre=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,are,t)},pre=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})=>S({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(aR||(aR=Rb`
|
|
186
|
+
animation: ${0} 1.4s linear infinite;
|
|
187
|
+
`),ure)),hre=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),mre=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})=>S({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(cR||(cR=Rb`
|
|
188
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
189
|
+
`),dre)),gre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:l=40,style:a,thickness:u=3.6,value:f=0,variant:p="indeterminate"}=r,g=le(r,cre),v=S({},r,{color:s,disableShrink:i,size:l,thickness:u,value:f,variant:p}),y=fre(v),m={},C={},w={};if(p==="determinate"){const b=2*Math.PI*((Vl-u)/2);m.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return L.jsx(pre,S({className:Ce(y.root,o),style:S({width:l,height:l},C,a),ownerState:v,ref:n,role:"progressbar"},w,g,{children:L.jsx(hre,{className:y.svg,ownerState:v,viewBox:`${Vl/2} ${Vl/2} ${Vl} ${Vl}`,children:L.jsx(mre,{className:y.circle,style:m,ownerState:v,cx:Vl,cy:Vl,r:(Vl-u)/2,fill:"none",strokeWidth:u})})}))}),zi=gre;function vre(e){return Ke("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const yre=["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"],bre=e=>{const{open:t,exited:n,classes:r}=e;return Te({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vre,r)},wre=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})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Cre=oe(RN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xre=c.forwardRef(function(t,n){var r,o,s,i,l,a;const u=je({name:"MuiModal",props:t}),{BackdropComponent:f=Cre,BackdropProps:p,className:g,closeAfterTransition:v=!1,children:y,container:m,component:C,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:T=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:A,open:V,slotProps:j,slots:M}=u,$=le(u,yre),F=S({},u,{closeAfterTransition:v,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:I,disableScrollLock:T,hideBackdrop:D,keepMounted:R}),{getRootProps:B,getBackdropProps:O,getTransitionProps:N,portalRef:H,isTopModal:K,exited:Y,hasTransition:te}=tte(S({},F,{rootRef:n})),Q=S({},F,{exited:Y}),X=bre(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:wre,Z=(s=(i=M==null?void 0:M.backdrop)!=null?i:w.Backdrop)!=null?s:f,he=(l=j==null?void 0:j.root)!=null?l:b.root,ne=(a=j==null?void 0:j.backdrop)!=null?a:b.backdrop,re=qt({elementType:se,externalSlotProps:he,externalForwardedProps:$,getSlotProps:B,additionalProps:{ref:n,as:C},ownerState:Q,className:Ce(g,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=>O(S({},ce,{onClick:Se=>{A&&A(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!R&&!V&&(!te||Y)?null:L.jsx(MN,{ref:H,container:m,disablePortal:k,children:L.jsxs(se,S({},re,{children:[!D&&f?L.jsx(Z,S({},me)):null,L.jsx(tk,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:I,isEnabled:K,open:V,children:c.cloneElement(y,J)})]}))})}),Ob=xre;function Sre(e){return Ke("MuiDialog",e)}const Pre=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_p=Pre,kre=c.createContext({}),FN=kre,Ere=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ire=oe(RN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Mre=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,Sre,t)},_re=oe(Ob,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Tre=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pe(n.scroll)}`]]}})(({ownerState:e})=>S({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"}})),$re=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})=>S({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%"}})),Rre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialog"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:a,BackdropProps:u,children:f,className:p,disableEscapeKeyDown:g=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:m="sm",onBackdropClick:C,onClose:w,open:b,PaperComponent:x=Vs,PaperProps:E={},scroll:_="paper",TransitionComponent:k=Kd,transitionDuration:I=s,TransitionProps:T}=r,D=le(r,Ere),R=S({},r,{disableEscapeKeyDown:g,fullScreen:v,fullWidth:y,maxWidth:m,scroll:_}),A=Mre(R),V=c.useRef(),j=B=>{V.current=B.target===B.currentTarget},M=B=>{V.current&&(V.current=null,C&&C(B),w&&w(B,"backdropClick"))},$=Kt(l),F=c.useMemo(()=>({titleId:$}),[$]);return L.jsx(_re,S({className:Ce(A.root,p),closeAfterTransition:!0,components:{Backdrop:Ire},componentsProps:{backdrop:S({transitionDuration:I,as:a},u)},disableEscapeKeyDown:g,onClose:w,open:b,ref:n,onClick:M,ownerState:R},D,{children:L.jsx(k,S({appear:!0,in:b,timeout:I,role:"presentation"},T,{children:L.jsx(Tre,{className:Ce(A.container),onMouseDown:j,ownerState:R,children:L.jsx($re,S({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":$},E,{className:Ce(A.paper,E.className),ownerState:R,children:L.jsx(FN.Provider,{value:F,children:f})}))})}))}))}),NN=Rre;function Ore(e){return Ke("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const Dre=["className","disableSpacing"],Are=e=>{const{classes:t,disableSpacing:n}=e;return Te({root:["root",!n&&"spacing"]},Ore,t)},Lre=oe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Fre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=le(r,Dre),l=S({},r,{disableSpacing:s}),a=Are(l);return L.jsx(Lre,S({className:Ce(a.root,o),ownerState:l,ref:n},i))}),Nre=Fre;function Bre(e){return Ke("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function zre(e){return Ke("MuiDialogTitle",e)}const Vre=We("MuiDialogTitle",["root"]),jre=Vre,Hre=["className","dividers"],Ure=e=>{const{classes:t,dividers:n}=e;return Te({root:["root",n&&"dividers"]},Bre,t)},Wre=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({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}`}:{[`.${jre.root} + &`]:{paddingTop:0}})),Gre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=le(r,Hre),l=S({},r,{dividers:s}),a=Ure(l);return L.jsx(Wre,S({className:Ce(a.root,o),ownerState:l,ref:n},i))}),BN=Gre,Kre=["className","id"],qre=e=>{const{classes:t}=e;return Te({root:["root"]},zre,t)},Yre=oe(Kn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Qre=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=le(r,Kre),l=r,a=qre(l),{titleId:u=s}=c.useContext(FN);return L.jsx(Yre,S({component:"h2",className:Ce(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:u},i))}),Xre=Qre;function Zre(e){return Ke("MuiDivider",e)}const Jre=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uR=Jre,eoe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],toe=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"]},Zre,r)},noe=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})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:it(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),roe=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})=>S({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)`})),zN=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:l=s?"div":"hr",flexItem:a=!1,light:u=!1,orientation:f="horizontal",role:p=l!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=r,y=le(r,eoe),m=S({},r,{absolute:o,component:l,flexItem:a,light:u,orientation:f,role:p,textAlign:g,variant:v}),C=toe(m);return L.jsx(noe,S({as:l,className:Ce(C.root,i),role:p,ref:n,ownerState:m},y,{children:s?L.jsx(roe,{className:C.wrapper,ownerState:m,children:s}):null}))});zN.muiSkipListHighlight=!0;const Pd=zN,ooe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function soe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=Zo(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 ioe(e){return typeof e=="function"?e():e}function fg(e,t,n){const r=ioe(n),o=soe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const loe=c.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,container:u,direction:f="down",easing:p=o,in:g,onEnter:v,onEntered:y,onEntering:m,onExit:C,onExited:w,onExiting:b,style:x,timeout:E=s,TransitionComponent:_=Dh}=t,k=le(t,ooe),I=c.useRef(null),T=Et(a.ref,I,n),D=O=>N=>{O&&(N===void 0?O(I.current):O(I.current,N))},R=D((O,N)=>{fg(f,O,u),ek(O),v&&v(O,N)}),A=D((O,N)=>{const H=Ia({timeout:E,style:x,easing:p},{mode:"enter"});O.style.webkitTransition=r.transitions.create("-webkit-transform",S({},H)),O.style.transition=r.transitions.create("transform",S({},H)),O.style.webkitTransform="none",O.style.transform="none",m&&m(O,N)}),V=D(y),j=D(b),M=D(O=>{const N=Ia({timeout:E,style:x,easing:p},{mode:"exit"});O.style.webkitTransition=r.transitions.create("-webkit-transform",N),O.style.transition=r.transitions.create("transform",N),fg(f,O,u),C&&C(O)}),$=D(O=>{O.style.webkitTransition="",O.style.transition="",w&&w(O)}),F=O=>{i&&i(I.current,O)},B=c.useCallback(()=>{I.current&&fg(f,I.current,u)},[f,u]);return c.useEffect(()=>{if(g||f==="down"||f==="right")return;const O=Aa(()=>{I.current&&fg(f,I.current,u)}),N=Zo(I.current);return N.addEventListener("resize",O),()=>{O.clear(),N.removeEventListener("resize",O)}},[f,g,u]),c.useEffect(()=>{g||B()},[g,B]),L.jsx(_,S({nodeRef:I,onEnter:R,onEntered:V,onEntering:A,onExit:M,onExited:$,onExiting:j,addEndListener:F,appear:l,in:g,timeout:E},k,{children:(O,N)=>c.cloneElement(a,S({ref:T,style:S({visibility:O==="exited"&&!g?"hidden":void 0},x,a.props.style)},N))}))}),aoe=loe;function coe(e){return Ke("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const uoe=["BackdropProps"],doe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],VN=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},foe=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,coe,t)},poe=oe(Ob,{name:"MuiDrawer",slot:"Root",overridesResolver:VN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),dR=oe("div",{shouldForwardProp:Jr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:VN})({flex:"0 0 auto"}),hoe=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})=>S({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}`})),jN={left:"right",right:"left",top:"down",bottom:"up"};function moe(e){return["left","right"].indexOf(e)!==-1}function goe(e,t){return e.direction==="rtl"&&moe(t)?jN[t]:t}const voe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDrawer"}),o=yn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:a,className:u,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:v,open:y=!1,PaperProps:m={},SlideProps:C,TransitionComponent:w=aoe,transitionDuration:b=s,variant:x="temporary"}=r,E=le(r.ModalProps,uoe),_=le(r,doe),k=c.useRef(!1);c.useEffect(()=>{k.current=!0},[]);const I=goe(o,i),D=S({},r,{anchor:i,elevation:f,open:y,variant:x},_),R=foe(D),A=L.jsx(hoe,S({elevation:x==="temporary"?f:0,square:!0},m,{className:Ce(R.paper,m.className),ownerState:D,children:a}));if(x==="permanent")return L.jsx(dR,S({className:Ce(R.root,R.docked,u),ownerState:D,ref:n},_,{children:A}));const V=L.jsx(w,S({in:y,direction:jN[I],timeout:b,appear:k.current},C,{children:A}));return x==="persistent"?L.jsx(dR,S({className:Ce(R.root,R.docked,u),ownerState:D,ref:n},_,{children:V})):L.jsx(poe,S({BackdropProps:S({},l,g,{transitionDuration:b}),className:Ce(R.root,R.modal,u),open:y,ownerState:D,onClose:v,hideBackdrop:p,ref:n},_,E,{children:V}))}),yoe=voe,boe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],woe=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Fte,t);return S({},t,o)},Coe=oe(Mb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Eb(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 S({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}},[`&.${Ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Ho.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"},[`&.${Ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ho.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(.${Ho.disabled}, .${Ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ho.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({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}))}),xoe=oe(_b,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ib})(({theme:e,ownerState:t})=>S({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})),HN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:m="text"}=l,C=le(l,boe),w=S({},l,{fullWidth:f,inputComponent:p,multiline:g,type:m}),b=woe(l),x={root:{ownerState:w},input:{ownerState:w}},E=(v!=null?v:u)?Yr(x,v!=null?v:u):x,_=(r=(o=y.root)!=null?o:a.Root)!=null?r:Coe,k=(s=(i=y.input)!=null?i:a.Input)!=null?s:xoe;return L.jsx(Gd,S({slots:{root:_,input:k},componentsProps:E,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:m},C,{classes:b}))});HN.muiName="Input";const UN=HN;function Soe(e){return Ke("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Poe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],koe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Pe(n)}`,r&&"fullWidth"]};return Te(o,Soe,t)},Eoe=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({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%"})),Ioe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:l="div",disabled:a=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:g=!1,margin:v="none",required:y=!1,size:m="medium",variant:C="outlined"}=r,w=le(r,Poe),b=S({},r,{color:i,component:l,disabled:a,error:u,fullWidth:p,hiddenLabel:g,margin:v,required:y,size:m,variant:C}),x=koe(b),[E,_]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,M=>{if(!Sp(M,["Input","Select"]))return;const $=Sp(M,["Select"])?M.props.input:M;$&&Ete($.props)&&(j=!0)}),j}),[k,I]=c.useState(()=>{let j=!1;return o&&c.Children.forEach(o,M=>{Sp(M,["Input","Select"])&&(Bv(M.props,!0)||Bv(M.props.inputProps,!0))&&(j=!0)}),j}),[T,D]=c.useState(!1);a&&T&&D(!1);const R=f!==void 0&&!a?f:T;let A;const V=c.useMemo(()=>({adornedStart:E,setAdornedStart:_,color:i,disabled:a,error:u,filled:k,focused:R,fullWidth:p,hiddenLabel:g,size:m,onBlur:()=>{D(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{D(!0)},registerEffect:A,required:y,variant:C}),[E,i,a,u,k,R,p,g,A,y,m,C]);return L.jsx(kb.Provider,{value:V,children:L.jsx(Eoe,S({as:l,ownerState:b,className:Ce(x.root,s),ref:n},w,{children:o}))})}),WN=Ioe,Moe=gX({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>je({props:e,name:"MuiStack"})}),_oe=Moe;function Toe(e){return Ke("MuiFormControlLabel",e)}const $oe=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sp=$oe,Roe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ooe=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,Toe,t)},Doe=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})=>S({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}}})),Aoe=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sp.error}`]:{color:(e.vars||e).palette.error.main}})),Loe=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:a,disabled:u,disableTypography:f,label:p,labelPlacement:g="end",required:v,slotProps:y={}}=s,m=le(s,Roe),C=El(),w=(r=u!=null?u:a.props.disabled)!=null?r:C==null?void 0:C.disabled,b=v!=null?v:a.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof a.props[D]=="undefined"&&typeof s[D]!="undefined"&&(x[D]=s[D])});const E=Vc({props:s,muiFormControl:C,states:["error"]}),_=S({},s,{disabled:w,labelPlacement:g,required:b,error:E.error}),k=Ooe(_),I=(o=y.typography)!=null?o:l.typography;let T=p;return T!=null&&T.type!==Kn&&!f&&(T=L.jsx(Kn,S({component:"span"},I,{className:Ce(k.label,I==null?void 0:I.className),children:T}))),L.jsxs(Doe,S({className:Ce(k.root,i),ownerState:_,ref:n},m,{children:[c.cloneElement(a,x),b?L.jsxs(_oe,{display:"block",children:[T,L.jsxs(Aoe,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):T]}))}),GN=Loe;function Foe(e){return Ke("MuiFormHelperText",e)}const Noe=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),fR=Noe;var pR;const Boe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zoe=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,Foe,t)},Voe=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})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),joe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=le(r,Boe),a=El(),u=Vc({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=S({},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=zoe(f);return L.jsx(Voe,S({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:o===" "?pR||(pR=L.jsx("span",{className:"notranslate",children:""})):o}))}),qd=joe;function Hoe(e){return Ke("MuiFormLabel",e)}const Uoe=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Tp=Uoe,Woe=["children","className","color","component","disabled","error","filled","focused","required"],Goe=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,Hoe,t)},Koe=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({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}})),qoe=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Tp.error}`]:{color:(e.vars||e).palette.error.main}})),Yoe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=le(r,Woe),a=El(),u=Vc({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=S({},r,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=Goe(f);return L.jsxs(Koe,S({as:i,ownerState:f,className:Ce(p.root,s),ref:n},l,{children:[o,u.required&&L.jsxs(qoe,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),KN=Yoe,Qoe=c.createContext(),hR=Qoe;function Xoe(e){return Ke("MuiGrid",e)}const Zoe=[0,1,2,3,4,5,6,7,8,9,10],Joe=["column-reverse","column","row-reverse","row"],ese=["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",...Zoe.map(e=>`spacing-xs-${e}`),...Joe.map(e=>`direction-xs-${e}`),...ese.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}`)]),tse=["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 nse({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=S({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 rse({theme:e,ownerState:t}){const n=pc({values:t.direction,breakpoints:e.breakpoints.values});return $o({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 ose({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=$o({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 sse({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=$o({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 ise(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 lse=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=ise(i,u,t));const p=[];return u.forEach(g=>{const v=n[g];v&&p.push(t[`grid-${g}-${String(v)}`])}),[t.root,r&&t.container,s&&t.item,a&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...p]}})(({ownerState:e})=>S({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}),rse,ose,sse,nse);function ase(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 cse=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let u=[];n&&(u=ase(s,a));const f=[];a.forEach(g=>{const v=e[g];v&&f.push(`grid-${g}-${String(v)}`)});const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return Te(p,Xoe,t)},use=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiGrid"}),{breakpoints:o}=yn(),s=vb(r),{className:i,columns:l,columnSpacing:a,component:u="div",container:f=!1,direction:p="row",item:g=!1,rowSpacing:v,spacing:y=0,wrap:m="wrap",zeroMinWidth:C=!1}=s,w=le(s,tse),b=v||y,x=a||y,E=c.useContext(hR),_=f?l||12:E,k={},I=S({},w);o.keys.forEach(R=>{w[R]!=null&&(k[R]=w[R],delete I[R])});const T=S({},s,{columns:_,container:f,direction:p,item:g,rowSpacing:b,columnSpacing:x,wrap:m,zeroMinWidth:C,spacing:y},k,{breakpoints:o.keys}),D=cse(T);return L.jsx(hR.Provider,{value:_,children:L.jsx(lse,S({ownerState:T,className:Ce(D.root,i),as:u,ref:n},I))})}),ri=use,dse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rx(e){return`scale(${e}, ${vs(e,2)})`}const fse={entering:{opacity:1,transform:Rx(1)},entered:{opacity:1,transform:"none"}},Dw=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),YN=c.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:a,onEntered:u,onEntering:f,onExit:p,onExited:g,onExiting:v,style:y,timeout:m="auto",TransitionComponent:C=Dh}=t,w=le(t,dse),b=c.useRef(),x=c.useRef(),E=yn(),_=c.useRef(null),k=Et(_,s.ref,n),I=$=>F=>{if($){const B=_.current;F===void 0?$(B):$(B,F)}},T=I(f),D=I(($,F)=>{ek($);const{duration:B,delay:O,easing:N}=Ia({style:y,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=E.transitions.getAutoHeightDuration($.clientHeight),x.current=H):H=B,$.style.transition=[E.transitions.create("opacity",{duration:H,delay:O}),E.transitions.create("transform",{duration:Dw?H:H*.666,delay:O,easing:N})].join(","),a&&a($,F)}),R=I(u),A=I(v),V=I($=>{const{duration:F,delay:B,easing:O}=Ia({style:y,timeout:m,easing:i},{mode:"exit"});let N;m==="auto"?(N=E.transitions.getAutoHeightDuration($.clientHeight),x.current=N):N=F,$.style.transition=[E.transitions.create("opacity",{duration:N,delay:B}),E.transitions.create("transform",{duration:Dw?N:N*.666,delay:Dw?B:B||N*.333,easing:O})].join(","),$.style.opacity=0,$.style.transform=Rx(.75),p&&p($)}),j=I(g),M=$=>{m==="auto"&&(b.current=setTimeout($,x.current||0)),r&&r(_.current,$)};return c.useEffect(()=>()=>{clearTimeout(b.current)},[]),L.jsx(C,S({appear:o,in:l,nodeRef:_,onEnter:D,onEntered:R,onEntering:T,onExit:V,onExited:j,onExiting:A,addEndListener:M,timeout:m==="auto"?null:m},w,{children:($,F)=>c.cloneElement(s,S({style:S({opacity:0,transform:Rx(.75),visibility:$==="exited"&&!l?"hidden":void 0},fse[$],y,s.props.style),ref:k},F))}))});YN.muiSupportAuto=!0;const ah=YN;function pse(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 QN=wc["useSyncExternalStore"];function hse(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 QN(a,l,i)}function Db(e,t={}){const n=gb(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=aN({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(QN!==void 0?hse:pse)(a,o,s,i,l)}const mse=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gse=e=>{const{classes:t,disableUnderline:n}=e,o=Te({root:["root",!n&&"underline"],input:["input"]},Ote,t);return S({},t,o)},vse=oe(Mb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Eb(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})`),S({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"},[`&.${na.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${na.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(.${na.disabled}, .${na.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${na.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yse=oe(_b,{name:"MuiInput",slot:"Input",overridesResolver:Ib})({}),XN=c.forwardRef(function(t,n){var r,o,s,i;const l=je({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:f,fullWidth:p=!1,inputComponent:g="input",multiline:v=!1,slotProps:y,slots:m={},type:C="text"}=l,w=le(l,mse),b=gse(l),E={root:{ownerState:{disableUnderline:a}}},_=(y!=null?y:f)?Yr(y!=null?y:f,E):E,k=(r=(o=m.root)!=null?o:u.Root)!=null?r:vse,I=(s=(i=m.input)!=null?i:u.Input)!=null?s:yse;return L.jsx(Gd,S({slots:{root:k,input:I},slotProps:_,fullWidth:p,inputComponent:g,multiline:v,ref:n,type:C},w,{classes:b}))});XN.muiName="Input";const ZN=XN;function bse(e){return Ke("MuiInputAdornment",e)}const wse=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),mR=wse;var gR;const Cse=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xse=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Sse=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,bse,t)},Pse=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xse})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${mR.positionStart}&:not(.${mR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),kse=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,Cse),g=El()||{};let v=f;f&&g.variant,g&&!v&&(v=g.variant);const y=S({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:u,variant:v}),m=Sse(y);return L.jsx(kb.Provider,{value:null,children:L.jsx(Pse,S({as:i,ownerState:y,className:Ce(m.root,s),ref:n},p,{children:typeof o=="string"&&!a?L.jsx(Kn,{color:"text.secondary",children:o}):L.jsxs(c.Fragment,{children:[u==="start"?gR||(gR=L.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),wl=kse;function Ese(e){return Ke("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ise=["disableAnimation","margin","shrink","variant","className"],Mse=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,Ese,t);return S({},t,u)},_se=oe(KN,{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})=>S({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"&&S({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&&S({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"&&S({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}})),Tse=c.forwardRef(function(t,n){const r=je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=le(r,Ise),a=El();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=S({},r,{disableAnimation:o,formControl:a,shrink:u,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),g=Mse(p);return L.jsx(_se,S({"data-shrink":u,ownerState:p,ref:n,className:Ce(g.root,i)},l,{classes:g}))}),JN=Tse;function $se(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 Rse=["className","color","value","valueBuffer","variant"];let Yd=e=>e,vR,yR,bR,wR,CR,xR;const Ox=4,Ose=Hi(vR||(vR=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
|
+
`)),Dse=Hi(yR||(yR=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
|
+
`)),Ase=Hi(bR||(bR=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
|
+
`)),Lse=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,$se,t)},ck=(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),Fse=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})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ck(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)"})),Nse=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=ck(t,e.color);return S({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(wR||(wR=Yd`
|
|
235
|
+
animation: ${0} 3s infinite linear;
|
|
236
|
+
`),Ase)),Bse=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})=>S({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 .${Ox}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Ox}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(CR||(CR=Yd`
|
|
237
|
+
width: auto;
|
|
238
|
+
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
239
|
+
`),Ose)),zse=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})=>S({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:ck(t,e.color),transition:`transform .${Ox}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ea(xR||(xR=Yd`
|
|
240
|
+
width: auto;
|
|
241
|
+
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
242
|
+
`),Dse)),Vse=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,Rse),f=S({},r,{color:s,variant:a}),p=Lse(f),g=yn(),v={},y={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){v["aria-valuenow"]=Math.round(i),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let m=i-100;g.direction==="rtl"&&(m=-m),y.bar1.transform=`translateX(${m}%)`}if(a==="buffer"&&l!==void 0){let m=(l||0)-100;g.direction==="rtl"&&(m=-m),y.bar2.transform=`translateX(${m}%)`}return L.jsxs(Fse,S({className:Ce(p.root,o),ownerState:f,role:"progressbar"},v,{ref:n},u,{children:[a==="buffer"?L.jsx(Nse,{className:p.dashed,ownerState:f}):null,L.jsx(Bse,{className:p.bar1,ownerState:f,style:y.bar1}),a==="determinate"?null:L.jsx(zse,{className:p.bar2,ownerState:f,style:y.bar2})]}))}),zv=Vse;function jse(e){return Ke("MuiLink",e)}const Hse=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Use=Hse,e4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wse=e=>e4[e]||e,Gse=({theme:e,ownerState:t})=>{const n=Wse(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)`:it(r,.4)},Kse=Gse,qse=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Yse=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,jse,t)},Qse=oe(Kn,{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})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Kse({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"},[`&.${Use.focusVisible}`]:{outline:"auto"}})),Xse=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:l,onFocus:a,TypographyClasses:u,underline:f="always",variant:p="inherit",sx:g}=r,v=le(r,qse),{isFocusVisibleRef:y,onBlur:m,onFocus:C,ref:w}=Ky(),[b,x]=c.useState(!1),E=Et(n,w),_=D=>{m(D),y.current===!1&&x(!1),l&&l(D)},k=D=>{C(D),y.current===!0&&x(!0),a&&a(D)},I=S({},r,{color:s,component:i,focusVisible:b,underline:f,variant:p}),T=Yse(I);return L.jsx(Qse,S({color:s,className:Ce(T.root,o),classes:u,component:i,onBlur:_,onFocus:k,ref:E,ownerState:I,variant:p,sx:[...Object.keys(e4).includes(s)?[]:[{color:s}],...Array.isArray(g)?g:[g]]},v))}),Ls=Xse,Zse=c.createContext({}),li=Zse;function Jse(e){return Ke("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const eie=["children","className","component","dense","disablePadding","subheader"],tie=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Te({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Jse,t)},nie=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})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),rie=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,eie),p=c.useMemo(()=>({dense:l}),[l]),g=S({},r,{component:i,dense:l,disablePadding:a}),v=tie(g);return L.jsx(li.Provider,{value:p,children:L.jsxs(nie,S({as:i,className:Ce(v.root,s),ref:n,ownerState:g},f,{children:[u,o]}))})}),Nh=rie;function oie(e){return Ke("MuiListItem",e)}const sie=We("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ku=sie;function iie(e){return Ke("MuiListItemButton",e)}const lie=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Eu=lie,aie=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],cie=(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]},uie=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"]},iie,n);return S({},n,u)},die=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:cie})(({theme:e,ownerState:t})=>S({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})`:it(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}))`:it(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}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${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})),fie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:l,dense:a=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:p,selected:g=!1,className:v}=r,y=le(r,aie),m=c.useContext(li),C=c.useMemo(()=>({dense:a||m.dense||!1,alignItems:o,disableGutters:u}),[o,m.dense,a,u]),w=c.useRef(null);Nt(()=>{s&&w.current&&w.current.focus()},[s]);const b=S({},r,{alignItems:o,dense:C.dense,disableGutters:u,divider:f,selected:g}),x=uie(b),E=Et(w,n);return L.jsx(li.Provider,{value:C,children:L.jsx(die,S({ref:E,href:y.href||y.to,component:(y.href||y.to)&&i==="div"?"button":i,focusVisibleClassName:Ce(x.focusVisible,p),ownerState:b,className:Ce(x.root,v)},y,{classes:x,children:l}))})}),pie=fie;function hie(e){return Ke("MuiListItemSecondaryAction",e)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const mie=["className"],gie=e=>{const{disableGutters:t,classes:n}=e;return Te({root:["root",t&&"disableGutters"]},hie,n)},vie=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),t4=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=le(r,mie),i=c.useContext(li),l=S({},r,{disableGutters:i.disableGutters}),a=gie(l);return L.jsx(vie,S({className:Ce(a.root,o),ownerState:l,ref:n},s))});t4.muiName="ListItemSecondaryAction";const yie=t4,bie=["className"],wie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cie=(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]},xie=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"]},oie,r)},Sie=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Cie})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({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})`:it(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}))`:it(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}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Pie=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),kie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:i=!1,children:l,className:a,component:u,components:f={},componentsProps:p={},ContainerComponent:g="li",ContainerProps:{className:v}={},dense:y=!1,disabled:m=!1,disableGutters:C=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:_=!1,slotProps:k={},slots:I={}}=r,T=le(r.ContainerProps,bie),D=le(r,wie),R=c.useContext(li),A=c.useMemo(()=>({dense:y||R.dense||!1,alignItems:o,disableGutters:C}),[o,R.dense,y,C]),V=c.useRef(null);Nt(()=>{s&&V.current&&V.current.focus()},[s]);const j=c.Children.toArray(l),M=j.length&&Sp(j[j.length-1],["ListItemSecondaryAction"]),$=S({},r,{alignItems:o,autoFocus:s,button:i,dense:A.dense,disabled:m,disableGutters:C,disablePadding:w,divider:b,hasSecondaryAction:M,selected:_}),F=xie($),B=Et(V,n),O=I.root||f.Root||Sie,N=k.root||p.root||{},H=S({className:Ce(F.root,N.className,a),disabled:m},D);let K=u||"li";return i&&(H.component=u||"div",H.focusVisibleClassName=Ce(ku.focusVisible,x),K=ui),M?(K=!H.component&&!u?"div":K,g==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),L.jsx(li.Provider,{value:A,children:L.jsxs(Pie,S({as:g,className:Ce(F.container,v),ref:B,ownerState:$},T,{children:[L.jsx(O,S({},N,!$c(O)&&{as:K,ownerState:S({},$,N.ownerState)},H,{children:j})),j.pop()]}))})):L.jsx(li.Provider,{value:A,children:L.jsxs(O,S({},N,{as:K,ref:B},!$c(O)&&{ownerState:S({},$,N.ownerState)},H,{children:[j,E&&L.jsx(yie,{children:E})]}))})}),uk=kie;function Eie(e){return Ke("MuiListItemIcon",e)}const Iie=We("MuiListItemIcon",["root","alignItemsFlexStart"]),SR=Iie,Mie=["className"],_ie=e=>{const{alignItems:t,classes:n}=e;return Te({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Eie,n)},Tie=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})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),$ie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=le(r,Mie),i=c.useContext(li),l=S({},r,{alignItems:i.alignItems}),a=_ie(l);return L.jsx(Tie,S({className:Ce(a.root,o),ownerState:l,ref:n},s))}),pl=$ie;function Rie(e){return Ke("MuiListItemText",e)}const Oie=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Vv=Oie,Die=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Aie=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"]},Rie,t)},Lie=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})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Fie=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p}=r,g=le(r,Die),{dense:v}=c.useContext(li);let y=a!=null?a:o,m=f;const C=S({},r,{disableTypography:i,inset:l,primary:!!y,secondary:!!m,dense:v}),w=Aie(C);return y!=null&&y.type!==Kn&&!i&&(y=L.jsx(Kn,S({variant:v?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),m!=null&&m.type!==Kn&&!i&&(m=L.jsx(Kn,S({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},p,{children:m}))),L.jsxs(Lie,S({className:Ce(w.root,s),ownerState:C,ref:n},g,{children:[y,m]}))}),Ri=Fie,Nie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Aw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function PR(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function n4(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")||!n4(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Bie=c.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu"}=t,g=le(t,Nie),v=c.useRef(null),y=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nt(()=>{o&&v.current.focus()},[o]),c.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const _=!v.current.style.width;if(x.clientHeight<v.current.clientHeight&&_){const k=`${DF(fn(x))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=k,v.current.style.width=`calc(100% + ${k})`}return v.current}}),[]);const m=x=>{const E=v.current,_=x.key,k=fn(E).activeElement;if(_==="ArrowDown")x.preventDefault(),jf(E,k,u,a,Aw);else if(_==="ArrowUp")x.preventDefault(),jf(E,k,u,a,PR);else if(_==="Home")x.preventDefault(),jf(E,null,u,a,Aw);else if(_==="End")x.preventDefault(),jf(E,null,u,a,PR);else if(_.length===1){const I=y.current,T=_.toLowerCase(),D=performance.now();I.keys.length>0&&(D-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&T!==I.keys[0]&&(I.repeating=!1)),I.lastTime=D,I.keys.push(T);const R=k&&!I.repeating&&n4(k,I);I.previousKeyMatched&&(R||jf(E,k,!1,a,Aw,I))?x.preventDefault():I.previousKeyMatched=!1}f&&f(x)},C=Et(v,n);let w=-1;c.Children.forEach(i,(x,E)=>{if(!c.isValidElement(x)){w===E&&(w+=1,w>=i.length&&(w=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const b=c.Children.map(i,(x,E)=>{if(E===w){const _={};return s&&(_.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(_.tabIndex=0),c.cloneElement(x,_)}return x});return L.jsx(Nh,S({role:"menu",ref:C,className:l,onKeyDown:m,tabIndex:o?0:-1},g,{children:b}))}),Qd=Bie;function zie(e){return Ke("MuiPopover",e)}We("MuiPopover",["root","paper"]);const Vie=["onEntering"],jie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Hie=["slotProps"];function kR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ER(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function IR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Lw(e){return typeof e=="function"?e():e}const Uie=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},zie,t)},Wie=oe(Ob,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),r4=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}),Gie=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:g,className:v,container:y,elevation:m=8,marginThreshold:C=16,open:w,PaperProps:b={},slots:x,slotProps:E,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:k=ah,transitionDuration:I="auto",TransitionProps:{onEntering:T}={},disableScrollLock:D=!1}=i,R=le(i.TransitionProps,Vie),A=le(i,jie),V=(r=E==null?void 0:E.paper)!=null?r:b,j=c.useRef(),M=Et(j,V.ref),$=S({},i,{anchorOrigin:u,anchorReference:p,elevation:m,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:_,TransitionComponent:k,transitionDuration:I,TransitionProps:R}),F=Uie($),B=c.useCallback(()=>{if(p==="anchorPosition")return f;const ce=Lw(a),Ee=(ce&&ce.nodeType===1?ce:fn(j.current).body).getBoundingClientRect();return{top:Ee.top+kR(Ee,u.vertical),left:Ee.left+ER(Ee,u.horizontal)}},[a,u.horizontal,u.vertical,f,p]),O=c.useCallback(ce=>({vertical:kR(ce,_.vertical),horizontal:ER(ce,_.horizontal)}),[_.horizontal,_.vertical]),N=c.useCallback(ce=>{const Se={width:ce.offsetWidth,height:ce.offsetHeight},Ee=O(Se);if(p==="none")return{top:null,left:null,transformOrigin:IR(Ee)};const ae=B();let Ie=ae.top-Ee.vertical,ye=ae.left-Ee.horizontal;const Me=Ie+Se.height,pe=ye+Se.width,fe=Zo(Lw(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:IR(Ee)}},[a,p,B,O,C]),[H,K]=c.useState(w),Y=c.useCallback(()=>{const ce=j.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(()=>(D&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,D,Y]);const te=(ce,Se)=>{T&&T(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=Zo(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(Lw(a)).body:void 0),se=(o=x==null?void 0:x.root)!=null?o:Wie,Z=(s=x==null?void 0:x.paper)!=null?s:r4,he=qt({elementType:Z,externalSlotProps:S({},V,{style:H?V.style:S({},V.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:$,className:Ce(F.paper,V==null?void 0:V.className)}),ne=qt({elementType:se,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:A,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:$,className:Ce(F.root,v)}),{slotProps:re}=ne,me=le(ne,Hie);return L.jsx(se,S({},me,!$c(se)&&{slotProps:re,disableScrollLock:D},{children:L.jsx(k,S({appear:!0,in:w,onEntering:te,onExited:Q,timeout:X},R,{children:L.jsx(Z,S({},he,{children:g}))}))}))}),Kie=Gie;function qie(e){return Ke("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Yie=["onEntering"],Qie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xie={vertical:"top",horizontal:"right"},Zie={vertical:"top",horizontal:"left"},Jie=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"],list:["list"]},qie,t)},ele=oe(Kie,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tle=oe(r4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nle=oe(Qd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rle=c.forwardRef(function(t,n){var r,o;const s=je({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:a,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:p,open:g,PaperProps:v={},PopoverClasses:y,transitionDuration:m="auto",TransitionProps:{onEntering:C}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=s,E=le(s.TransitionProps,Yie),_=le(s,Qie),k=yn(),I=k.direction==="rtl",T=S({},s,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:f,onEntering:C,PaperProps:v,transitionDuration:m,TransitionProps:E,variant:w}),D=Jie(T),R=i&&!u&&g,A=c.useRef(null),V=(N,H)=>{A.current&&A.current.adjustStyleForScrollbar(N,k),C&&C(N,H)},j=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 $=(r=b.paper)!=null?r:tle,F=(o=x.paper)!=null?o:v,B=qt({elementType:b.root,externalSlotProps:x.root,ownerState:T,className:[D.root,a]}),O=qt({elementType:$,externalSlotProps:F,ownerState:T,className:D.paper});return L.jsx(ele,S({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?Xie:Zie,slots:{paper:$,root:b.root},slotProps:{root:B,paper:O},open:g,ref:n,transitionDuration:m,TransitionProps:S({onEntering:V},E),ownerState:T},_,{classes:y,children:L.jsx(nle,S({onKeyDown:j,actions:A,autoFocus:i&&(M===-1||u),autoFocusItem:R,variant:w},f,{className:Ce(D.list,f.className),children:l}))}))}),o4=rle;function ole(e){return Ke("MuiMenuItem",e)}const sle=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=sle,ile=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lle=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ale=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"]},ole,i);return S({},i,a)},cle=oe(ui,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lle})(({theme:e,ownerState:t})=>S({},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})`:it(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}))`:it(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}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${uR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${uR.inset}`]:{marginLeft:52},[`& .${Vv.root}`]:{marginTop:0,marginBottom:0},[`& .${Vv.inset}`]:{paddingLeft:36},[`& .${SR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${SR.root} svg`]:{fontSize:"1.25rem"}}))),ule=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:g}=r,v=le(r,ile),y=c.useContext(li),m=c.useMemo(()=>({dense:i||y.dense||!1,disableGutters:a}),[y.dense,i,a]),C=c.useRef(null);Nt(()=>{o&&C.current&&C.current.focus()},[o]);const w=S({},r,{dense:m.dense,divider:l,disableGutters:a}),b=ale(r),x=Et(C,n);let E;return r.disabled||(E=p!==void 0?p:-1),L.jsx(li.Provider,{value:m,children:L.jsx(cle,S({ref:x,role:f,tabIndex:E,component:s,focusVisibleClassName:Ce(b.focusVisible,u),className:Ce(b.root,g)},v,{ownerState:w,classes:b}))})}),Pr=ule;function dle(e){return Ke("MuiNativeSelect",e)}const fle=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),dk=fle,ple=["className","disabled","error","IconComponent","inputRef","variant"],hle=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,dle,t)},s4=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},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"},[`&.${dk.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}}),mle=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,{[`&.${dk.multiple}`]:t.multiple}]}})(s4),i4=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${dk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),gle=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]}})(i4),vle=c.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,u=le(t,ple),f=S({},t,{disabled:o,variant:a,error:s}),p=hle(f);return L.jsxs(c.Fragment,{children:[L.jsx(mle,S({ownerState:f,className:Ce(p.select,r),disabled:o,ref:l||n},u)),t.multiple?null:L.jsx(gle,{as:i,ownerState:f,className:p.icon})]})}),yle=vle;var MR;const ble=["children","classes","className","label","notched"],wle=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%"}),Cle=oe("legend",{shouldForwardProp:Jr})(({ownerState:e,theme:t})=>S({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&&S({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 xle(e){const{className:t,label:n,notched:r}=e,o=le(e,ble),s=n!=null&&n!=="",i=S({},e,{notched:r,withLabel:s});return L.jsx(wle,S({"aria-hidden":!0,className:t,ownerState:i},o,{children:L.jsx(Cle,{ownerState:i,children:s?L.jsx("span",{children:n}):MR||(MR=L.jsx("span",{className:"notranslate",children:""}))})}))}const Sle=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ple=e=>{const{classes:t}=e,r=Te({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ate,t);return S({},t,r)},kle=oe(Mb,{shouldForwardProp:e=>Jr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Eb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xi.focused} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xi.error} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xi.disabled} .${xi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ele=oe(xle,{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}}),Ile=oe(_b,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ib})(({theme:e,ownerState:t})=>S({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})),l4=c.forwardRef(function(t,n){var r,o,s,i,l;const a=je({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:p="input",label:g,multiline:v=!1,notched:y,slots:m={},type:C="text"}=a,w=le(a,Sle),b=Ple(a),x=El(),E=Vc({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=S({},a,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:v,size:E.size,type:C}),k=(r=(o=m.root)!=null?o:u.Root)!=null?r:kle,I=(s=(i=m.input)!=null?i:u.Input)!=null?s:Ile;return L.jsx(Gd,S({slots:{root:k,input:I},renderSuffix:T=>L.jsx(Ele,{ownerState:_,className:b.notchedOutline,label:g!=null&&g!==""&&E.required?l||(l=L.jsxs(c.Fragment,{children:[g," ","*"]})):g,notched:typeof y!="undefined"?y:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:C},w,{classes:S({},b,{notchedOutline:null})}))});l4.muiName="Input";const a4=l4,_R=bt(L.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),TR=bt(L.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Mle(e){return Ke("MuiSelect",e)}const _le=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uf=_le;var $R;const Tle=["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"],$le=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}]}})(s4,{[`&.${Uf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Rle=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]}})(i4),Ole=oe("input",{shouldForwardProp:e=>UX(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 RR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Dle(e){return e==null||typeof e=="string"&&!e.trim()}const Ale=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,Mle,t)},Lle=c.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:u,defaultOpen:f,defaultValue:p,disabled:g,displayEmpty:v,error:y=!1,IconComponent:m,inputRef:C,labelId:w,MenuProps:b={},multiple:x,name:E,onBlur:_,onChange:k,onClose:I,onFocus:T,onOpen:D,open:R,readOnly:A,renderValue:V,SelectDisplayProps:j={},tabIndex:M,value:$,variant:F="standard"}=t,B=le(t,Tle),[O,N]=Qr({controlled:$,default:p,name:"Select"}),[H,K]=Qr({controlled:R,default:f,name:"Select"}),Y=c.useRef(null),te=c.useRef(null),[Q,X]=c.useState(null),{current:J}=c.useRef(R!=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:O}),[O]),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?D&&D(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(x){qe=Array.isArray(O)?O.slice():[];const mt=O.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),O!==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)}x||me(!1,Oe)}},ye=Xe=>{A||[" ","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:O,name:E}}),_(Xe))};delete B["aria-invalid"];let fe,de;const be=[];let _e=!1;(Bv({value:O})||v)&&(V?fe=V(O):_e=!0);const Ne=Ee.map(Xe=>{if(!c.isValidElement(Xe))return null;let Oe;if(x){if(!Array.isArray(O))throw new Error(ka(2));Oe=O.some(qe=>RR(qe,Xe.props.value)),Oe&&_e&&be.push(Xe.props.children)}else Oe=RR(O,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&&(x?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=g?null:0;const Ue=j.id||(E?`mui-component-select-${E}`:void 0),Le=S({},t,{variant:F,value:O,open:Me,error:y}),ht=Ale(Le),Zt=S({},b.PaperProps,(r=b.slotProps)==null?void 0:r.paper),Pt=Kt(),wt=Kt();return L.jsxs(c.Fragment,{children:[L.jsx($le,S({ref:ne,tabIndex:Ve,role:"combobox","aria-controls":Pt,"aria-disabled":g?"true":void 0,"aria-expanded":Me?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[w,Ue].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ye,onMouseDown:g||A?null:ce,onBlur:pe,onFocus:T},j,{ownerState:Le,className:Ce(j.className,ht.select,u),id:Ue,children:Dle(fe)?$R||($R=L.jsx("span",{className:"notranslate",children:""})):fe})),L.jsx(Ole,S({"aria-invalid":y,value:Array.isArray(O)?O.join(","):O,name:E!=null?E:wt,ref:Y,"aria-hidden":!0,onChange:ae,tabIndex:-1,disabled:g,className:ht.nativeInput,autoFocus:i,ownerState:Le},B)),L.jsx(Rle,{as:m,className:ht.icon,ownerState:Le}),L.jsx(o4,S({id:`menu-${E||""}`,anchorEl:re,open:Me,onClose:Se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:S({"aria-labelledby":w,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Pt},b.MenuListProps),slotProps:S({},b.slotProps,{paper:S({},Zt,{style:S({minWidth:Ge},Zt!=null?Zt.style:null)})}),children:Ne}))]})}),Fle=Lle,Nle=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ble=["root"],zle=e=>{const{classes:t}=e;return t},fk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jr(e)&&e!=="variant",slot:"Root"},Vle=oe(ZN,fk)(""),jle=oe(a4,fk)(""),Hle=oe(UN,fk)(""),c4=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=$N,id:p,input:g,inputProps:v,label:y,labelId:m,MenuProps:C,multiple:w=!1,native:b=!1,onClose:x,onOpen:E,open:_,renderValue:k,SelectDisplayProps:I,variant:T="outlined"}=r,D=le(r,Nle),R=b?yle:Fle,A=El(),V=Vc({props:r,muiFormControl:A,states:["variant","error"]}),j=V.variant||T,M=S({},r,{variant:j,classes:i}),$=zle(M),F=le($,Ble),B=g||{standard:L.jsx(Vle,{ownerState:M}),outlined:L.jsx(jle,{label:y,ownerState:M}),filled:L.jsx(Hle,{ownerState:M})}[j],O=Et(n,B.ref);return L.jsx(c.Fragment,{children:c.cloneElement(B,S({inputComponent:R,inputProps:S({children:s,error:V.error,IconComponent:f,variant:j,type:void 0,multiple:w},b?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:m,MenuProps:C,onClose:x,onOpen:E,open:_,renderValue:k,SelectDisplayProps:S({id:p},I)},v,{classes:v?Yr(F,v.classes):F},g?g.props.inputProps:{})},w&&b&&j==="outlined"?{notched:!0}:{},{ref:O,className:Ce(B.props.className,l,$.root)},!g&&{variant:j},D))})});c4.muiName="Select";const pk=c4;function Ule(e){return Ke("MuiSkeleton",e)}We("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wle=["animation","className","component","height","style","variant","width"];let jv=e=>e,OR,DR,AR,LR;const Gle=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"]},Ule,t)},Kle=Hi(OR||(OR=jv`
|
|
243
|
+
0% {
|
|
244
|
+
opacity: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
50% {
|
|
248
|
+
opacity: 0.4;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
100% {
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
`)),qle=Hi(DR||(DR=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
|
+
`)),Yle=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=VX(e.shape.borderRadius)||"px",r=jX(e.shape.borderRadius);return S({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:it(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Ea(AR||(AR=jv`
|
|
268
|
+
animation: ${0} 2s ease-in-out 0.5s infinite;
|
|
269
|
+
`),Kle),({ownerState:e,theme:t})=>e.animation==="wave"&&Ea(LR||(LR=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
|
+
`),qle,(t.vars||t).palette.action.hover)),Qle=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,Wle),g=S({},r,{animation:o,component:i,variant:u,hasChildren:!!p.children}),v=Gle(g);return L.jsx(Yle,S({as:i,ref:n,className:Ce(v.root,s),ownerState:g},p,{style:S({width:f,height:l},a)}))}),Xle=Qle;function Zle(e){return Ke("MuiTooltip",e)}const Jle=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ia=Jle,eae=["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 tae(e){return Math.round(e*1e5)/1e5}const nae=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,Zle,t)},rae=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})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ia.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ia.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ia.arrow}`]:S({},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"] .${ia.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),oae=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})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:it(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${tae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ia.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ia.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ia.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ia.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),sae=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:it(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let pg=!1,Fw=null,Wf={x:0,y:0};function hg(e,t){return n=>{t&&t(n),e(n)}}const iae=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,g,v,y,m,C,w,b,x,E,_;const k=je({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:T,components:D={},componentsProps:R={},describeChild:A=!1,disableFocusListener:V=!1,disableHoverListener:j=!1,disableInteractive:M=!1,disableTouchListener:$=!1,enterDelay:F=100,enterNextDelay:B=0,enterTouchDelay:O=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,eae),Ee=c.isValidElement(T)?T:L.jsx("span",{children:T}),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(Fw),pg=!0,Le(!0),Q&&!ht&&Q(St)},Oe=Ye(St=>{clearTimeout(Fw),Fw=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&&B?Ne.current=setTimeout(()=>{Xe(St)},pg?B: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}=Ky(),[,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 Qn=Ee.props;Qn.onTouchStart&&Qn.onTouchStart(St)},gr=qe,sr=mt,_l=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)},O)},ls=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(Qn){(Qn.key==="Escape"||Qn.key==="Esc")&&Oe(Qn)}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(),vr=St=>{const Qn=Ee.props;Qn.onMouseMove&&Qn.onMouseMove(St),Wf={x:St.clientX,y:St.clientY},an.current&&an.current.update()},ho={},as=typeof re=="string";A?(ho.title=!ht&&as&&!j?re:null,ho["aria-describedby"]=ht?Zt:null):(ho["aria-label"]=as?re:null,ho["aria-labelledby"]=ht&&!as?Zt:null);const ir=S({},ho,Se,Ee.props,{className:Ce(Se.className,Ee.props.className),onTouchStart:Rt,ref:Tn},N?{onMouseMove:vr}:{}),Oo={};$||(ir.onTouchStart=_l,ir.onTouchEnd=ls),j||(ir.onMouseOver=hg(gr,ir.onMouseOver),ir.onMouseLeave=hg(sr,ir.onMouseLeave),be||(Oo.onMouseOver=gr,Oo.onMouseLeave=sr)),V||(ir.onFocus=hg(gt,ir.onFocus),ir.onBlur=hg(bn,ir.onBlur),be||(Oo.onFocus=gt,Oo.onBlur=bn));const hi=c.useMemo(()=>{var St;let Qn=[{name:"arrow",enabled:!!pe,options:{element:pe,padding:4}}];return(St=Z.popperOptions)!=null&&St.modifiers&&(Qn=Qn.concat(Z.popperOptions.modifiers)),S({},Z.popperOptions,{modifiers:Qn})},[pe,Z]),Mr=S({},k,{isRtl:Ie,arrow:I,disableInteractive:be,placement:J,PopperComponentProp:se,touch:de.current}),Nr=nae(Mr),js=(r=(o=ne.popper)!=null?o:D.Popper)!=null?r:rae,$e=(s=(i=(l=ne.transition)!=null?l:D.Transition)!=null?i:me)!=null?s:ah,we=(a=(u=ne.tooltip)!=null?u:D.Tooltip)!=null?a:oae,Qe=(f=(p=ne.arrow)!=null?p:D.Arrow)!=null?f:sae,ft=op(js,S({},Z,(g=he.popper)!=null?g:R.popper,{className:Ce(Nr.popper,Z==null?void 0:Z.className,(v=(y=he.popper)!=null?y:R.popper)==null?void 0:v.className)}),Mr),Wt=op($e,S({},ce,(m=he.transition)!=null?m:R.transition),Mr),$n=op(we,S({},(C=he.tooltip)!=null?C:R.tooltip,{className:Ce(Nr.tooltip,(w=(b=he.tooltip)!=null?b:R.tooltip)==null?void 0:w.className)}),Mr),Fn=op(Qe,S({},(x=he.arrow)!=null?x:R.arrow,{className:Ce(Nr.arrow,(E=(_=he.arrow)!=null?_:R.arrow)==null?void 0:E.className)}),Mr);return L.jsxs(c.Fragment,{children:[c.cloneElement(Ee,ir),L.jsx(js,S({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},Oo,ft,{popperOptions:hi,children:({TransitionProps:St})=>L.jsx($e,S({timeout:ae.transitions.duration.shorter},St,Wt,{children:L.jsxs(we,S({},$n,{children:[re,I?L.jsx(Qe,S({},Fn,{ref:fe})):null]}))}))}))]})}),Il=iae;function lae(e){return Ke("MuiSwitch",e)}const aae=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ur=aae,cae=["className","color","edge","size","sx"],uae=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,lae,t);return S({},t,a)},dae=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})=>S({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)"}}})),fae=oe(AN,{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})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${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})`:it(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}})),pae=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}`})),hae=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%"})),mae=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,cae),f=S({},r,{color:s,edge:i,size:l}),p=uae(f),g=L.jsx(hae,{className:p.thumb,ownerState:f});return L.jsxs(dae,{className:Ce(p.root,o),sx:a,ownerState:f,children:[L.jsx(fae,S({type:"checkbox",icon:g,checkedIcon:g,ref:n,ownerState:f},u,{classes:S({},p,{root:p.switchBase})})),L.jsx(pae,{className:p.track,ownerState:f})]})}),u4=mae;function gae(e){return Ke("MuiTab",e)}const vae=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Xa=vae,yae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],bae=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,gae,t)},wae=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})=>S({},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}`]:S({},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)})),Cae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:l,icon:a,iconPosition:u="top",indicator:f,label:p,onChange:g,onClick:v,onFocus:y,selected:m,selectionFollowsFocus:C,textColor:w="inherit",value:b,wrapped:x=!1}=r,E=le(r,yae),_=S({},r,{disabled:s,disableFocusRipple:i,selected:m,icon:!!a,iconPosition:u,label:!!p,fullWidth:l,textColor:w,wrapped:x}),k=bae(_),I=a&&p&&c.isValidElement(a)?c.cloneElement(a,{className:Ce(k.iconWrapper,a.props.className)}):a,T=R=>{!m&&g&&g(R,b),v&&v(R)},D=R=>{C&&!m&&g&&g(R,b),y&&y(R)};return L.jsxs(wae,S({focusRipple:!i,className:Ce(k.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:T,onFocus:D,ownerState:_,tabIndex:m?0:-1},E,{children:[u==="top"||u==="start"?L.jsxs(c.Fragment,{children:[I,p]}):L.jsxs(c.Fragment,{children:[p,I]}),f]}))}),Hv=Cae,xae=c.createContext(),Sae=xae,Pae=c.createContext(),kae=Pae;function Eae(e){return Ke("MuiTableCell",e)}const Iae=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Mae=Iae,_ae=["align","className","component","padding","scope","size","sortDirection","variant"],Tae=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,Eae,t)},$ae=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})=>S({},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(it(e.palette.divider,1),.88):_c(it(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Mae.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})),Rae=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:u,sortDirection:f,variant:p}=r,g=le(r,_ae),v=c.useContext(Sae),y=c.useContext(kae),m=y&&y.variant==="head";let C;i?C=i:C=m?"th":"td";let w=a;C==="td"?w=void 0:!w&&m&&(w="col");const b=p||y&&y.variant,x=S({},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=Tae(x);let _=null;return f&&(_=f==="asc"?"ascending":"descending"),L.jsx($ae,S({as:C,ref:n,className:Ce(E.root,s),"aria-sort":_,scope:w,ownerState:x},g))}),Dx=Rae;function Oae(e){return Ke("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const Dae=["className","component","disableGutters","variant"],Aae=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Te({root:["root",!n&&"gutters",r]},Oae,t)},Lae=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})=>S({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),Fae=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,Dae),u=S({},r,{component:s,disableGutters:i,variant:l}),f=Aae(u);return L.jsx(Lae,S({as:s,className:Ce(f.root,o),ref:n,ownerState:u},a))}),d4=Fae,Ax=bt(L.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lx=bt(L.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var FR,NR,BR,zR,VR,jR,HR,UR;const Nae=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slotProps"],Bae=c.forwardRef(function(t,n){var r,o,s,i;const{backIconButtonProps:l,count:a,disabled:u=!1,getItemAriaLabel:f,nextIconButtonProps:p,onPageChange:g,page:v,rowsPerPage:y,showFirstButton:m,showLastButton:C,slotProps:w}=t,b=le(t,Nae),x=yn(),E=T=>{g(T,0)},_=T=>{g(T,v-1)},k=T=>{g(T,v+1)},I=T=>{g(T,Math.max(0,Math.ceil(a/y)-1))};return L.jsxs("div",S({ref:n},b,{children:[m&&L.jsx(pr,S({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:x.direction==="rtl"?FR||(FR=L.jsx(TR,{})):NR||(NR=L.jsx(_R,{}))})),L.jsx(pr,S({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:x.direction==="rtl"?BR||(BR=L.jsx(Lx,{})):zR||(zR=L.jsx(Ax,{}))})),L.jsx(pr,S({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:x.direction==="rtl"?VR||(VR=L.jsx(Ax,{})):jR||(jR=L.jsx(Lx,{}))})),C&&L.jsx(pr,S({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:x.direction==="rtl"?HR||(HR=L.jsx(_R,{})):UR||(UR=L.jsx(TR,{}))}))]}))}),zae=Bae;function Vae(e){return Ke("MuiTablePagination",e)}const jae=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),mc=jae;var WR;const Hae=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps"],Uae=oe(Dx,{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}})),Wae=oe(d4,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${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}})),Gae=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Kae=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),qae=oe(pk,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${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"}}),Yae=oe(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Qae=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function Xae({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Zae(e){return`Go to ${e} page`}const Jae=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"]},Vae,t)},ece=c.forwardRef(function(t,n){var r;const o=je({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=zae,backIconButtonProps:i,className:l,colSpan:a,component:u=Dx,count:f,disabled:p=!1,getItemAriaLabel:g=Zae,labelDisplayedRows:v=Xae,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:m,onPageChange:C,onRowsPerPageChange:w,page:b,rowsPerPage:x,rowsPerPageOptions:E=[10,25,50,100],SelectProps:_={},showFirstButton:k=!1,showLastButton:I=!1,slotProps:T}=o,D=le(o,Hae),R=o,A=Jae(R),V=(r=T==null?void 0:T.select)!=null?r:_,j=V.native?"option":Yae;let M;(u===Dx||u==="td")&&(M=a||1e3);const $=Kt(V.id),F=Kt(V.labelId),B=()=>f===-1?(b+1)*x:x===-1?f:Math.min(f,(b+1)*x);return L.jsx(Uae,S({colSpan:M,ref:n,as:u,ownerState:R,className:Ce(A.root,l)},D,{children:L.jsxs(Wae,{className:A.toolbar,children:[L.jsx(Gae,{className:A.spacer}),E.length>1&&L.jsx(Kae,{className:A.selectLabel,id:F,children:y}),E.length>1&&L.jsx(qae,S({variant:"standard"},!V.variant&&{input:WR||(WR=L.jsx(Gd,{}))},{value:x,onChange:w,id:$,labelId:F},V,{classes:S({},V.classes,{root:Ce(A.input,A.selectRoot,(V.classes||{}).root),select:Ce(A.select,(V.classes||{}).select),icon:Ce(A.selectIcon,(V.classes||{}).icon)}),disabled:p,children:E.map(O=>c.createElement(j,S({},!$c(j)&&{ownerState:R},{className:A.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),L.jsx(Qae,{className:A.displayedRows,children:v({from:f===0?0:b*x+1,to:B(),count:f===-1?-1:f,page:b})}),L.jsx(s,{className:A.actions,backIconButtonProps:i,count:f,nextIconButtonProps:m,onPageChange:C,page:b,rowsPerPage:x,showFirstButton:k,showLastButton:I,slotProps:T==null?void 0:T.actions,getItemAriaLabel:g,disabled:p})]})}))}),tce=ece;function nce(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function rce(e,t,n,r={},o=()=>{}){const{ease:s=nce,duration:i=300}=r;let l=null;const a=t[e];let u=!1;const f=()=>{u=!0},p=g=>{if(u){o(new Error("Animation cancelled"));return}l===null&&(l=g);const v=Math.min(1,(g-l)/i);if(t[e]=s(v)*(n-a)+a,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const oce=["onChange"],sce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ice(e){const{onChange:t}=e,n=le(e,oce),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=Zo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),c.useEffect(()=>{s(),t(r.current)},[t]),L.jsx("div",S({style:sce,ref:o},n))}function lce(e){return Ke("MuiTabScrollButton",e)}const ace=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),cce=ace,uce=["className","slots","slotProps","direction","orientation","disabled"],dce=e=>{const{classes:t,orientation:n,disabled:r}=e;return Te({root:["root",n,r&&"disabled"]},lce,t)},fce=oe(ui,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${cce.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),pce=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,uce),g=yn().direction==="rtl",v=S({isRtl:g},s),y=dce(v),m=(r=l.StartScrollButtonIcon)!=null?r:Ax,C=(o=l.EndScrollButtonIcon)!=null?o:Lx,w=qt({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),b=qt({elementType:C,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return L.jsx(fce,S({component:"div",className:Ce(y.root,i),ref:n,role:null,ownerState:v,tabIndex:null},f,{children:u==="left"?L.jsx(m,S({},w)):L.jsx(C,S({},b))}))}),hce=pce;function mce(e){return Ke("MuiTabs",e)}const gce=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Kg=gce,vce=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],GR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,KR=(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}}},yce=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"]},mce,a)},bce=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})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Kg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wce=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})=>S({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"})),Cce=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})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),xce=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({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})),Sce=oe(ice)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),qR={},Pce=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTabs"}),o=yn(),s=o.direction==="rtl",{"aria-label":i,"aria-labelledby":l,action:a,centered:u=!1,children:f,className:p,component:g="div",allowScrollButtonsMobile:v=!1,indicatorColor:y="primary",onChange:m,orientation:C="horizontal",ScrollButtonComponent:w=hce,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:_={},TabIndicatorProps:k={},TabScrollButtonProps:I={},textColor:T="primary",value:D,variant:R="standard",visibleScrollbar:A=!1}=r,V=le(r,vce),j=R==="scrollable",M=C==="vertical",$=M?"scrollTop":"scrollLeft",F=M?"top":"left",B=M?"bottom":"right",O=M?"clientHeight":"clientWidth",N=M?"height":"width",H=S({},r,{component:g,allowScrollButtonsMobile:v,indicatorColor:y,orientation:C,vertical:M,scrollButtons:b,textColor:T,variant:R,visibleScrollbar:A,fixed:!j,hideScrollbar:j&&!A,scrollableX:j&&!M,scrollableY:j&&M,centered:u&&!j,scrollButtonsHideMobile:!v}),K=yce(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:Rq(Oe,o.direction),scrollWidth:Oe.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let mt;if(Oe&&D!==!1){const vt=ye.current.children;if(vt.length>0){const Tt=vt[ae.get(D)];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?rce($,Ie.current,Oe,{duration:o.transitions.duration.standard}):Ie.current[$]=Oe},de=Oe=>{let qe=Ie.current[$];M?qe+=Oe:(qe+=Oe*(s?-1:1),qe*=s&&AF()==="reverse"?-1:1),fe(qe)},be=()=>{const Oe=Ie.current[O];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[O]>Oe){vt===0&&(qe=Oe);break}qe+=Tt[O]}return qe},_e=()=>{de(-1*be())},Ne=()=>{de(be())},Ge=c.useCallback(Oe=>{Ee({overflow:null,scrollbarWidth:Oe})},[]),Ve=()=>{const Oe={};Oe.scrollbarSizeListener=j?L.jsx(Sce,{onChange:Ge,className:Ce(K.scrollableX,K.hideScrollbar)}):null;const mt=j&&(b==="auto"&&(Z||ne)||b===!0);return Oe.scrollButtonStart=mt?L.jsx(w,S({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?L.jsx(w,S({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[$]+(mt[F]-qe[F]);fe(vt,{animation:Oe})}else if(mt[B]>qe[B]){const vt=qe[$]+(mt[B]-qe[B]);fe(vt,{animation:Oe})}}}),Le=Ye(()=>{j&&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=Zo(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&&j&&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()}}},[j,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=L.jsx(xce,S({},k,{className:Ce(K.indicator,k.className),ownerState:H,style:S({},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===D;return Zt+=1,c.cloneElement(Oe,S({fullWidth:R==="fullWidth",indicator:mt&&!Q&&ht,selected:mt,selectionFollowsFocus:x,onChange:m,textColor:T,value:qe},Zt===1&&D===!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,KR);break;case Yt:Oe.preventDefault(),mg(qe,mt,GR);break;case"Home":Oe.preventDefault(),mg(qe,null,GR);break;case"End":Oe.preventDefault(),mg(qe,null,KR);break}},Xe=Ve();return L.jsxs(bce,S({className:Ce(K.root,p),ownerState:H,ref:n,as:g},V,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,L.jsxs(wce,{className:K.scroller,ownerState:H,style:{overflow:Se.overflow,[M?`margin${s?"Left":"Right"}`:"marginBottom"]:A?void 0:-Se.scrollbarWidth},ref:Ie,children:[L.jsx(Cce,{"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]}))}),hk=Pce;function kce(e){return Ke("MuiTextField",e)}We("MuiTextField",["root"]);const Ece=["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"],Ice={standard:ZN,filled:UN,outlined:a4},Mce=e=>{const{classes:t}=e;return Te({root:["root"]},kce,t)},_ce=oe(WN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tce=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:l,color:a="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:g,fullWidth:v=!1,helperText:y,id:m,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:x,label:E,maxRows:_,minRows:k,multiline:I=!1,name:T,onBlur:D,onChange:R,onFocus:A,placeholder:V,required:j=!1,rows:M,select:$=!1,SelectProps:F,type:B,value:O,variant:N="outlined"}=r,H=le(r,Ece),K=S({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:v,multiline:I,required:j,select:$,variant:N}),Y=Mce(K),te={};N==="outlined"&&(C&&typeof C.shrink!="undefined"&&(te.notched=C.shrink),te.label=E),$&&((!F||!F.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const Q=Kt(m),X=y&&Q?`${Q}-helper-text`:void 0,J=E&&Q?`${Q}-label`:void 0,se=Ice[N],Z=L.jsx(se,S({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:u,fullWidth:v,multiline:I,name:T,rows:M,maxRows:_,minRows:k,type:B,value:O,id:Q,inputRef:x,onBlur:D,onChange:R,onFocus:A,placeholder:V,inputProps:w},te,b));return L.jsxs(_ce,S({className:Ce(Y.root,l),disabled:f,error:p,fullWidth:v,ref:n,required:j,color:a,variant:N,ownerState:K},H,{children:[E!=null&&E!==""&&L.jsx(JN,S({htmlFor:Q,id:J},C,{children:E})),$?L.jsx(pk,S({"aria-describedby":X,id:Q,labelId:J,value:O,input:Z},F,{children:i})):Z,y&&L.jsx(qd,S({id:X},g,{children:y}))]}))}),Na=Tce;var mk={},f4={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})(f4);var et=f4.exports,Nw={};const $ce=lA(eZ);var YR;function tt(){return YR||(YR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=$ce}(Nw)),Nw}var Rce=et;Object.defineProperty(mk,"__esModule",{value:!0});var p4=mk.default=void 0,Oce=Rce(tt()),Dce=Ze(),Ace=(0,Oce.default)((0,Dce.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");p4=mk.default=Ace;var gk={},Lce=et;Object.defineProperty(gk,"__esModule",{value:!0});var h4=gk.default=void 0,Fce=Lce(tt()),Nce=Ze(),Bce=(0,Fce.default)((0,Nce.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");h4=gk.default=Bce;var vk={},zce=et;Object.defineProperty(vk,"__esModule",{value:!0});var m4=vk.default=void 0,Vce=zce(tt()),jce=Ze(),Hce=(0,Vce.default)((0,jce.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");m4=vk.default=Hce;var yk={},Uce=et;Object.defineProperty(yk,"__esModule",{value:!0});var Ab=yk.default=void 0,Wce=Uce(tt()),Gce=Ze(),Kce=(0,Wce.default)((0,Gce.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");Ab=yk.default=Kce;var bk={},qce=et;Object.defineProperty(bk,"__esModule",{value:!0});var wk=bk.default=void 0,Yce=qce(tt()),Qce=Ze(),Xce=(0,Yce.default)((0,Qce.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");wk=bk.default=Xce;var Ck={},Zce=et;Object.defineProperty(Ck,"__esModule",{value:!0});var g4=Ck.default=void 0,Jce=Zce(tt()),QR=Ze(),eue=(0,Jce.default)([(0,QR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,QR.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");g4=Ck.default=eue;var xk={},tue=et;Object.defineProperty(xk,"__esModule",{value:!0});var v4=xk.default=void 0,nue=tue(tt()),rue=Ze(),oue=(0,nue.default)((0,rue.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");v4=xk.default=oue;var Sk={},sue=et;Object.defineProperty(Sk,"__esModule",{value:!0});var Uv=Sk.default=void 0,iue=sue(tt()),lue=Ze(),aue=(0,iue.default)((0,lue.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=Sk.default=aue;var Pk={},cue=et;Object.defineProperty(Pk,"__esModule",{value:!0});var kk=Pk.default=void 0,uue=cue(tt()),due=Ze(),fue=(0,uue.default)((0,due.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");kk=Pk.default=fue;var Ek={},pue=et;Object.defineProperty(Ek,"__esModule",{value:!0});var y4=Ek.default=void 0,hue=pue(tt()),mue=Ze(),gue=(0,hue.default)((0,mue.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");y4=Ek.default=gue;var Ik={},vue=et;Object.defineProperty(Ik,"__esModule",{value:!0});var b4=Ik.default=void 0,yue=vue(tt()),bue=Ze(),wue=(0,yue.default)((0,bue.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");b4=Ik.default=wue;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,g=2,v=4,y=1,m=2,C=1,w=2,b=4,x=8,E=16,_=32,k=64,I=128,T=256,D=512,R=30,A="...",V=800,j=16,M=1,$=2,F=3,B=1/0,O=9007199254740991,N=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,te=K>>>1,Q=[["ary",I],["bind",C],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",_],["partialRight",k],["rearg",T]],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,gr=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,_l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,an=/[\\^$.*+?()[\]{}|]/g,vr=RegExp(an.source),ho=/^\s+/,as=/\s/,ir=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oo=/\{\n\/\* \[wrapped with (.+)\] \*/,hi=/,? & /,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,Qn=/($^)/,bV=/['\n\r\u2028\u2029\\]/g,tm="\\ud800-\\udfff",wV="\\u0300-\\u036f",CV="\\ufe20-\\ufe2f",xV="\\u20d0-\\u20ff",u2=wV+CV+xV,d2="\\u2700-\\u27bf",f2="a-z\\xdf-\\xf6\\xf8-\\xff",SV="\\xac\\xb1\\xd7\\xf7",PV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kV="\\u2000-\\u206f",EV=" \\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",p2="A-Z\\xc0-\\xd6\\xd8-\\xde",h2="\\ufe0e\\ufe0f",m2=SV+PV+kV+EV,N0="['’]",IV="["+tm+"]",g2="["+m2+"]",nm="["+u2+"]",v2="\\d+",MV="["+d2+"]",y2="["+f2+"]",b2="[^"+tm+m2+v2+d2+f2+p2+"]",B0="\\ud83c[\\udffb-\\udfff]",_V="(?:"+nm+"|"+B0+")",w2="[^"+tm+"]",z0="(?:\\ud83c[\\udde6-\\uddff]){2}",V0="[\\ud800-\\udbff][\\udc00-\\udfff]",Kc="["+p2+"]",C2="\\u200d",x2="(?:"+y2+"|"+b2+")",TV="(?:"+Kc+"|"+b2+")",S2="(?:"+N0+"(?:d|ll|m|re|s|t|ve))?",P2="(?:"+N0+"(?:D|LL|M|RE|S|T|VE))?",k2=_V+"?",E2="["+h2+"]?",$V="(?:"+C2+"(?:"+[w2,z0,V0].join("|")+")"+E2+k2+")*",RV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",I2=E2+k2+$V,DV="(?:"+[MV,z0,V0].join("|")+")"+I2,AV="(?:"+[w2+nm+"?",nm,z0,V0,IV].join("|")+")",LV=RegExp(N0,"g"),FV=RegExp(nm,"g"),j0=RegExp(B0+"(?="+B0+")|"+AV+I2,"g"),NV=RegExp([Kc+"?"+y2+"+"+S2+"(?="+[g2,Kc,"$"].join("|")+")",TV+"+"+P2+"(?="+[g2,Kc+x2,"$"].join("|")+")",Kc+"?"+x2+"+"+S2,Kc+"+"+P2,OV,RV,v2,DV].join("|"),"g"),BV=RegExp("["+C2+tm+u2+h2+"]"),zV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VV=["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"],jV=-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 HV={À:"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"},UV={"&":"&","<":"<",">":">",'"':""","'":"'"},WV={"&":"&","<":"<",">":">",""":'"',"'":"'"},GV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},KV=parseFloat,qV=parseInt,M2=typeof sn=="object"&&sn&&sn.Object===Object&&sn,YV=typeof self=="object"&&self&&self.Object===Object&&self,_r=M2||YV||Function("return this")(),H0=t&&!t.nodeType&&t,ja=H0&&!0&&e&&!e.nodeType&&e,_2=ja&&ja.exports===H0,U0=_2&&M2.process,cs=function(){try{var ge=ja&&ja.require&&ja.require("util").types;return ge||U0&&U0.binding&&U0.binding("util")}catch(Re){}}(),T2=cs&&cs.isArrayBuffer,$2=cs&&cs.isDate,R2=cs&&cs.isMap,O2=cs&&cs.isRegExp,D2=cs&&cs.isSet,A2=cs&&cs.isTypedArray;function Do(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 QV(ge,Re,ke,st){for(var It=-1,en=ge==null?0:ge.length;++It<en;){var cr=ge[It];Re(st,cr,ke(cr),ge)}return st}function us(ge,Re){for(var ke=-1,st=ge==null?0:ge.length;++ke<st&&Re(ge[ke],ke,ge)!==!1;);return ge}function XV(ge,Re){for(var ke=ge==null?0:ge.length;ke--&&Re(ge[ke],ke,ge)!==!1;);return ge}function L2(ge,Re){for(var ke=-1,st=ge==null?0:ge.length;++ke<st;)if(!Re(ge[ke],ke,ge))return!1;return!0}function Tl(ge,Re){for(var ke=-1,st=ge==null?0:ge.length,It=0,en=[];++ke<st;){var cr=ge[ke];Re(cr,ke,ge)&&(en[It++]=cr)}return en}function rm(ge,Re){var ke=ge==null?0:ge.length;return!!ke&&qc(ge,Re,0)>-1}function W0(ge,Re,ke){for(var st=-1,It=ge==null?0:ge.length;++st<It;)if(ke(Re,ge[st]))return!0;return!1}function Rn(ge,Re){for(var ke=-1,st=ge==null?0:ge.length,It=Array(st);++ke<st;)It[ke]=Re(ge[ke],ke,ge);return It}function $l(ge,Re){for(var ke=-1,st=Re.length,It=ge.length;++ke<st;)ge[It+ke]=Re[ke];return ge}function G0(ge,Re,ke,st){var It=-1,en=ge==null?0:ge.length;for(st&&en&&(ke=ge[++It]);++It<en;)ke=Re(ke,ge[It],It,ge);return ke}function ZV(ge,Re,ke,st){var It=ge==null?0:ge.length;for(st&&It&&(ke=ge[--It]);It--;)ke=Re(ke,ge[It],It,ge);return ke}function K0(ge,Re){for(var ke=-1,st=ge==null?0:ge.length;++ke<st;)if(Re(ge[ke],ke,ge))return!0;return!1}var JV=q0("length");function ej(ge){return ge.split("")}function tj(ge){return ge.match(Mr)||[]}function F2(ge,Re,ke){var st;return ke(ge,function(It,en,cr){if(Re(It,en,cr))return st=en,!1}),st}function om(ge,Re,ke,st){for(var It=ge.length,en=ke+(st?1:-1);st?en--:++en<It;)if(Re(ge[en],en,ge))return en;return-1}function qc(ge,Re,ke){return Re===Re?pj(ge,Re,ke):om(ge,N2,ke)}function nj(ge,Re,ke,st){for(var It=ke-1,en=ge.length;++It<en;)if(st(ge[It],Re))return It;return-1}function N2(ge){return ge!==ge}function B2(ge,Re){var ke=ge==null?0:ge.length;return ke?Q0(ge,Re)/ke:H}function q0(ge){return function(Re){return Re==null?n:Re[ge]}}function Y0(ge){return function(Re){return ge==null?n:ge[Re]}}function z2(ge,Re,ke,st,It){return It(ge,function(en,cr,vn){ke=st?(st=!1,en):Re(ke,en,cr,vn)}),ke}function rj(ge,Re){var ke=ge.length;for(ge.sort(Re);ke--;)ge[ke]=ge[ke].value;return ge}function Q0(ge,Re){for(var ke,st=-1,It=ge.length;++st<It;){var en=Re(ge[st]);en!==n&&(ke=ke===n?en:ke+en)}return ke}function X0(ge,Re){for(var ke=-1,st=Array(ge);++ke<ge;)st[ke]=Re(ke);return st}function oj(ge,Re){return Rn(Re,function(ke){return[ke,ge[ke]]})}function V2(ge){return ge&&ge.slice(0,W2(ge)+1).replace(ho,"")}function Ao(ge){return function(Re){return ge(Re)}}function Z0(ge,Re){return Rn(Re,function(ke){return ge[ke]})}function hf(ge,Re){return ge.has(Re)}function j2(ge,Re){for(var ke=-1,st=ge.length;++ke<st&&qc(Re,ge[ke],0)>-1;);return ke}function H2(ge,Re){for(var ke=ge.length;ke--&&qc(Re,ge[ke],0)>-1;);return ke}function sj(ge,Re){for(var ke=ge.length,st=0;ke--;)ge[ke]===Re&&++st;return st}var ij=Y0(HV),lj=Y0(UV);function aj(ge){return"\\"+GV[ge]}function cj(ge,Re){return ge==null?n:ge[Re]}function Yc(ge){return BV.test(ge)}function uj(ge){return zV.test(ge)}function dj(ge){for(var Re,ke=[];!(Re=ge.next()).done;)ke.push(Re.value);return ke}function J0(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(st,It){ke[++Re]=[It,st]}),ke}function U2(ge,Re){return function(ke){return ge(Re(ke))}}function Rl(ge,Re){for(var ke=-1,st=ge.length,It=0,en=[];++ke<st;){var cr=ge[ke];(cr===Re||cr===f)&&(ge[ke]=f,en[It++]=ke)}return en}function sm(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(st){ke[++Re]=st}),ke}function fj(ge){var Re=-1,ke=Array(ge.size);return ge.forEach(function(st){ke[++Re]=[st,st]}),ke}function pj(ge,Re,ke){for(var st=ke-1,It=ge.length;++st<It;)if(ge[st]===Re)return st;return-1}function hj(ge,Re,ke){for(var st=ke+1;st--;)if(ge[st]===Re)return st;return st}function Qc(ge){return Yc(ge)?gj(ge):JV(ge)}function Hs(ge){return Yc(ge)?vj(ge):ej(ge)}function W2(ge){for(var Re=ge.length;Re--&&as.test(ge.charAt(Re)););return Re}var mj=Y0(WV);function gj(ge){for(var Re=j0.lastIndex=0;j0.test(ge);)++Re;return Re}function vj(ge){return ge.match(j0)||[]}function yj(ge){return ge.match(NV)||[]}var bj=function ge(Re){Re=Re==null?_r:Xc.defaults(_r.Object(),Re,Xc.pick(_r,VV));var ke=Re.Array,st=Re.Date,It=Re.Error,en=Re.Function,cr=Re.Math,vn=Re.Object,e1=Re.RegExp,wj=Re.String,ds=Re.TypeError,im=ke.prototype,Cj=en.prototype,Zc=vn.prototype,lm=Re["__core-js_shared__"],am=Cj.toString,cn=Zc.hasOwnProperty,xj=0,G2=function(){var d=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),cm=Zc.toString,Sj=am.call(vn),Pj=_r._,kj=e1("^"+am.call(cn).replace(an,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),um=_2?Re.Buffer:n,Ol=Re.Symbol,dm=Re.Uint8Array,K2=um?um.allocUnsafe:n,fm=U2(vn.getPrototypeOf,vn),q2=vn.create,Y2=Zc.propertyIsEnumerable,pm=im.splice,Q2=Ol?Ol.isConcatSpreadable:n,mf=Ol?Ol.iterator:n,Ha=Ol?Ol.toStringTag:n,hm=function(){try{var d=qa(vn,"defineProperty");return d({},"",{}),d}catch(h){}}(),Ej=Re.clearTimeout!==_r.clearTimeout&&Re.clearTimeout,Ij=st&&st.now!==_r.Date.now&&st.now,Mj=Re.setTimeout!==_r.setTimeout&&Re.setTimeout,mm=cr.ceil,gm=cr.floor,t1=vn.getOwnPropertySymbols,_j=um?um.isBuffer:n,X2=Re.isFinite,Tj=im.join,$j=U2(vn.keys,vn),ur=cr.max,Br=cr.min,Rj=st.now,Oj=Re.parseInt,Z2=cr.random,Dj=im.reverse,n1=qa(Re,"DataView"),gf=qa(Re,"Map"),r1=qa(Re,"Promise"),Jc=qa(Re,"Set"),vf=qa(Re,"WeakMap"),yf=qa(vn,"create"),vm=vf&&new vf,eu={},Aj=Ya(n1),Lj=Ya(gf),Fj=Ya(r1),Nj=Ya(Jc),Bj=Ya(vf),ym=Ol?Ol.prototype:n,bf=ym?ym.valueOf:n,J2=ym?ym.toString:n;function G(d){if(Hn(d)&&!Mt(d)&&!(d instanceof Ht)){if(d instanceof fs)return d;if(cn.call(d,"__wrapped__"))return e_(d)}return new fs(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 fs(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}G.templateSettings={escape:Rt,evaluate:gr,interpolate:sr,variable:"",imports:{_:G}},G.prototype=bm.prototype,G.prototype.constructor=G,fs.prototype=tu(bm.prototype),fs.prototype.constructor=fs;function Ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function zj(){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 Vj(){if(this.__filtered__){var d=new Ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function jj(){var d=this.__wrapped__.value(),h=this.__dir__,P=Mt(d),z=h<0,U=P?d.length:0,q=e6(0,U,this.__views__),ee=q.start,ie=q.end,ve=ie-ee,De=z?ie:ee-1,Fe=this.__iteratees__,Be=Fe.length,Je=0,pt=Br(ve,this.__takeCount__);if(!P||!z&&U==ve&&pt==ve)return SM(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,No=Bt.type,ro=Gt(xt);if(No==$)xt=ro;else if(!ro){if(No==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 z=d[h];this.set(z[0],z[1])}}function Hj(){this.__data__=yf?yf(null):{},this.size=0}function Uj(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function Wj(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 Gj(d){var h=this.__data__;return yf?h[d]!==n:cn.call(h,d)}function Kj(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=Hj,Ua.prototype.delete=Uj,Ua.prototype.get=Wj,Ua.prototype.has=Gj,Ua.prototype.set=Kj;function Ki(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var z=d[h];this.set(z[0],z[1])}}function qj(){this.__data__=[],this.size=0}function Yj(d){var h=this.__data__,P=wm(h,d);if(P<0)return!1;var z=h.length-1;return P==z?h.pop():pm.call(h,P,1),--this.size,!0}function Qj(d){var h=this.__data__,P=wm(h,d);return P<0?n:h[P][1]}function Xj(d){return wm(this.__data__,d)>-1}function Zj(d,h){var P=this.__data__,z=wm(P,d);return z<0?(++this.size,P.push([d,h])):P[z][1]=h,this}Ki.prototype.clear=qj,Ki.prototype.delete=Yj,Ki.prototype.get=Qj,Ki.prototype.has=Xj,Ki.prototype.set=Zj;function qi(d){var h=-1,P=d==null?0:d.length;for(this.clear();++h<P;){var z=d[h];this.set(z[0],z[1])}}function Jj(){this.size=0,this.__data__={hash:new Ua,map:new(gf||Ki),string:new Ua}}function eH(d){var h=Rm(this,d).delete(d);return this.size-=h?1:0,h}function tH(d){return Rm(this,d).get(d)}function nH(d){return Rm(this,d).has(d)}function rH(d,h){var P=Rm(this,d),z=P.size;return P.set(d,h),this.size+=P.size==z?0:1,this}qi.prototype.clear=Jj,qi.prototype.delete=eH,qi.prototype.get=tH,qi.prototype.has=nH,qi.prototype.set=rH;function Wa(d){var h=-1,P=d==null?0:d.length;for(this.__data__=new qi;++h<P;)this.add(d[h])}function oH(d){return this.__data__.set(d,a),this}function sH(d){return this.__data__.has(d)}Wa.prototype.add=Wa.prototype.push=oH,Wa.prototype.has=sH;function Us(d){var h=this.__data__=new Ki(d);this.size=h.size}function iH(){this.__data__=new Ki,this.size=0}function lH(d){var h=this.__data__,P=h.delete(d);return this.size=h.size,P}function aH(d){return this.__data__.get(d)}function cH(d){return this.__data__.has(d)}function uH(d,h){var P=this.__data__;if(P instanceof Ki){var z=P.__data__;if(!gf||z.length<o-1)return z.push([d,h]),this.size=++P.size,this;P=this.__data__=new qi(z)}return P.set(d,h),this.size=P.size,this}Us.prototype.clear=iH,Us.prototype.delete=lH,Us.prototype.get=aH,Us.prototype.has=cH,Us.prototype.set=uH;function eM(d,h){var P=Mt(d),z=!P&&Qa(d),U=!P&&!z&&Nl(d),q=!P&&!z&&!U&&su(d),ee=P||z||U||q,ie=ee?X0(d.length,wj):[],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 tM(d){var h=d.length;return h?d[h1(0,h-1)]:n}function dH(d,h){return Om(mo(d),Ga(h,0,d.length))}function fH(d){return Om(mo(d))}function o1(d,h,P){(P!==n&&!Ws(d[h],P)||P===n&&!(h in d))&&Yi(d,h,P)}function wf(d,h,P){var z=d[h];(!(cn.call(d,h)&&Ws(z,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 pH(d,h,P,z){return Dl(d,function(U,q,ee){h(z,U,P(U),ee)}),z}function nM(d,h){return d&&gi(h,yr(h),d)}function hH(d,h){return d&&gi(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 s1(d,h){for(var P=-1,z=h.length,U=ke(z),q=d==null;++P<z;)U[P]=q?n:B1(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 ps(d,h,P,z,U,q){var ee,ie=h&p,ve=h&g,De=h&v;if(P&&(ee=U?P(d,z,U,q):P(d)),ee!==n)return ee;if(!Nn(d))return d;var Fe=Mt(d);if(Fe){if(ee=n6(d),!ie)return mo(d,ee)}else{var Be=zr(d),Je=Be==me||Be==ce;if(Nl(d))return EM(d,ie);if(Be==Ie||Be==X||Je&&!U){if(ee=ve||Je?{}:WM(d),!ie)return ve?WH(d,hH(ee,d)):UH(d,nM(ee,d))}else{if(!wn[Be])return U?d:{};ee=r6(d,Be,ie)}}q||(q=new Us);var pt=q.get(d);if(pt)return pt;q.set(d,ee),w_(d)?d.forEach(function(xt){ee.add(ps(xt,h,P,xt,d,q))}):y_(d)&&d.forEach(function(xt,Bt){ee.set(Bt,ps(xt,h,P,Bt,d,q))});var Ct=De?ve?k1:P1:ve?vo:yr,Dt=Fe?n:Ct(d);return us(Dt||d,function(xt,Bt){Dt&&(Bt=xt,xt=d[Bt]),wf(ee,Bt,ps(xt,h,P,Bt,d,q))}),ee}function mH(d){var h=yr(d);return function(P){return rM(P,d,h)}}function rM(d,h,P){var z=P.length;if(d==null)return!z;for(d=vn(d);z--;){var U=P[z],q=h[U],ee=d[U];if(ee===n&&!(U in d)||!q(ee))return!1}return!0}function oM(d,h,P){if(typeof d!="function")throw new ds(i);return If(function(){d.apply(n,P)},h)}function Cf(d,h,P,z){var U=-1,q=rm,ee=!0,ie=d.length,ve=[],De=h.length;if(!ie)return ve;P&&(h=Rn(h,Ao(P))),z?(q=W0,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=z||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,z)||ve.push(Fe)}return ve}var Dl=$M(mi),sM=$M(l1,!0);function gH(d,h){var P=!0;return Dl(d,function(z,U,q){return P=!!h(z,U,q),P}),P}function Cm(d,h,P){for(var z=-1,U=d.length;++z<U;){var q=d[z],ee=h(q);if(ee!=null&&(ie===n?ee===ee&&!Fo(ee):P(ee,ie)))var ie=ee,ve=q}return ve}function vH(d,h,P,z){var U=d.length;for(P=Ot(P),P<0&&(P=-P>U?0:U+P),z=z===n||z>U?U:Ot(z),z<0&&(z+=U),z=P>z?0:x_(z);P<z;)d[P++]=h;return d}function iM(d,h){var P=[];return Dl(d,function(z,U,q){h(z,U,q)&&P.push(z)}),P}function Tr(d,h,P,z,U){var q=-1,ee=d.length;for(P||(P=s6),U||(U=[]);++q<ee;){var ie=d[q];h>0&&P(ie)?h>1?Tr(ie,h-1,P,z,U):$l(U,ie):z||(U[U.length]=ie)}return U}var i1=RM(),lM=RM(!0);function mi(d,h){return d&&i1(d,h,yr)}function l1(d,h){return d&&lM(d,h,yr)}function xm(d,h){return Tl(h,function(P){return Ji(d[P])})}function Ka(d,h){h=Ll(h,d);for(var P=0,z=h.length;d!=null&&P<z;)d=d[vi(h[P++])];return P&&P==z?d:n}function aM(d,h,P){var z=h(d);return Mt(d)?z:$l(z,P(d))}function to(d){return d==null?d===n?_e:ae:Ha&&Ha in vn(d)?JH(d):f6(d)}function a1(d,h){return d>h}function yH(d,h){return d!=null&&cn.call(d,h)}function bH(d,h){return d!=null&&h in vn(d)}function wH(d,h,P){return d>=Br(h,P)&&d<ur(h,P)}function c1(d,h,P){for(var z=P?W0: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,Ao(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):z(De,Ct,P))){for(ee=q;--ee;){var Dt=ie[ee];if(!(Dt?hf(Dt,Ct):z(d[ee],Ct,P)))continue e}Je&&Je.push(Ct),De.push(pt)}}return De}function CH(d,h,P,z){return mi(d,function(U,q,ee){h(z,P(U),q,ee)}),z}function xf(d,h,P){h=Ll(h,d),d=YM(d,h);var z=d==null?d:d[vi(ms(h))];return z==null?n:Do(z,d,P)}function cM(d){return Hn(d)&&to(d)==X}function xH(d){return Hn(d)&&to(d)==Ve}function SH(d){return Hn(d)&&to(d)==he}function Sf(d,h,P,z,U){return d===h?!0:d==null||h==null||!Hn(d)&&!Hn(h)?d!==d&&h!==h:PH(d,h,P,z,Sf,U)}function PH(d,h,P,z,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&&Nl(d)){if(!Nl(h))return!1;ee=!0,Fe=!1}if(Je&&!Fe)return q||(q=new Us),ee||su(d)?jM(d,h,P,z,U,q):XH(d,h,ve,P,z,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,z,q)}}return Je?(q||(q=new Us),ZH(d,h,P,z,U,q)):!1}function kH(d){return Hn(d)&&zr(d)==Se}function u1(d,h,P,z){var U=P.length,q=U,ee=!z;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(z)var Je=z(De,Fe,ve,d,h,Be);if(!(Je===n?Sf(Fe,De,y|m,z,Be):Je))return!1}}return!0}function uM(d){if(!Nn(d)||l6(d))return!1;var h=Ji(d)?kj:Wt;return h.test(Ya(d))}function EH(d){return Hn(d)&&to(d)==pe}function IH(d){return Hn(d)&&zr(d)==fe}function MH(d){return Hn(d)&&Bm(d.length)&&!!kn[to(d)]}function dM(d){return typeof d=="function"?d:d==null?yo:typeof d=="object"?Mt(d)?hM(d[0],d[1]):pM(d):O_(d)}function d1(d){if(!Ef(d))return $j(d);var h=[];for(var P in vn(d))cn.call(d,P)&&P!="constructor"&&h.push(P);return h}function _H(d){if(!Nn(d))return d6(d);var h=Ef(d),P=[];for(var z in d)z=="constructor"&&(h||!cn.call(d,z))||P.push(z);return P}function f1(d,h){return d<h}function fM(d,h){var P=-1,z=go(d)?ke(d.length):[];return Dl(d,function(U,q,ee){z[++P]=h(U,q,ee)}),z}function pM(d){var h=I1(d);return h.length==1&&h[0][2]?KM(h[0][0],h[0][1]):function(P){return P===d||u1(P,d,h)}}function hM(d,h){return _1(d)&&GM(h)?KM(vi(d),h):function(P){var z=B1(P,d);return z===n&&z===h?z1(P,d):Sf(h,z,y|m)}}function Sm(d,h,P,z,U){d!==h&&i1(h,function(q,ee){if(U||(U=new Us),Nn(q))TH(d,h,ee,P,Sm,z,U);else{var ie=z?z($1(d,ee),q,ee+"",d,h,U):n;ie===n&&(ie=q),o1(d,ee,ie)}},vo)}function TH(d,h,P,z,U,q,ee){var ie=$1(d,P),ve=$1(h,P),De=ee.get(ve);if(De){o1(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&&Nl(ve),Ct=!Je&&!pt&&su(ve);Fe=ve,Je||pt||Ct?Mt(ie)?Fe=ie:Xn(ie)?Fe=mo(ie):pt?(Be=!1,Fe=EM(ve,!0)):Ct?(Be=!1,Fe=IM(ve,!0)):Fe=[]:Mf(ve)||Qa(ve)?(Fe=ie,Qa(ie)?Fe=S_(ie):(!Nn(ie)||Ji(ie))&&(Fe=WM(ve))):Be=!1}Be&&(ee.set(ve,Fe),U(Fe,ve,z,q,ee),ee.delete(ve)),o1(d,P,Fe)}function mM(d,h){var P=d.length;if(P)return h+=h<0?P:0,Zi(h,P)?d[h]:n}function gM(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 z=-1;h=Rn(h,Ao(yt()));var U=fM(d,function(q,ee,ie){var ve=Rn(h,function(De){return De(q)});return{criteria:ve,index:++z,value:q}});return rj(U,function(q,ee){return HH(q,ee,P)})}function $H(d,h){return vM(d,h,function(P,z){return z1(d,z)})}function vM(d,h,P){for(var z=-1,U=h.length,q={};++z<U;){var ee=h[z],ie=Ka(d,ee);P(ie,ee)&&Pf(q,Ll(ee,d),ie)}return q}function RH(d){return function(h){return Ka(h,d)}}function p1(d,h,P,z){var U=z?nj:qc,q=-1,ee=h.length,ie=d;for(d===h&&(h=mo(h)),P&&(ie=Rn(d,Ao(P)));++q<ee;)for(var ve=0,De=h[q],Fe=P?P(De):De;(ve=U(ie,Fe,ve,z))>-1;)ie!==d&&pm.call(ie,ve,1),pm.call(d,ve,1);return d}function yM(d,h){for(var P=d?h.length:0,z=P-1;P--;){var U=h[P];if(P==z||U!==q){var q=U;Zi(U)?pm.call(d,U,1):v1(d,U)}}return d}function h1(d,h){return d+gm(Z2()*(h-d+1))}function OH(d,h,P,z){for(var U=-1,q=ur(mm((h-d)/(P||1)),0),ee=ke(q);q--;)ee[z?q:++U]=d,d+=P;return ee}function m1(d,h){var P="";if(!d||h<1||h>O)return P;do h%2&&(P+=d),h=gm(h/2),h&&(d+=d);while(h);return P}function Lt(d,h){return R1(qM(d,h,yo),d+"")}function DH(d){return tM(iu(d))}function AH(d,h){var P=iu(d);return Om(P,Ga(h,0,P.length))}function Pf(d,h,P,z){if(!Nn(d))return d;h=Ll(h,d);for(var U=-1,q=h.length,ee=q-1,ie=d;ie!=null&&++U<q;){var ve=vi(h[U]),De=P;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return d;if(U!=ee){var Fe=ie[ve];De=z?z(Fe,ve,ie):n,De===n&&(De=Nn(Fe)?Fe:Zi(h[U+1])?[]:{})}wf(ie,ve,De),ie=ie[ve]}return d}var bM=vm?function(d,h){return vm.set(d,h),d}:yo,LH=hm?function(d,h){return hm(d,"toString",{configurable:!0,enumerable:!1,value:j1(h),writable:!0})}:yo;function FH(d){return Om(iu(d))}function hs(d,h,P){var z=-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);++z<U;)q[z]=d[z+h];return q}function NH(d,h){var P;return Dl(d,function(z,U,q){return P=h(z,U,q),!P}),!!P}function Pm(d,h,P){var z=0,U=d==null?z:d.length;if(typeof h=="number"&&h===h&&U<=te){for(;z<U;){var q=z+U>>>1,ee=d[q];ee!==null&&!Fo(ee)&&(P?ee<=h:ee<h)?z=q+1:U=q}return U}return g1(d,h,yo,P)}function g1(d,h,P,z){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=Fo(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=Fo(Be);if(ee)var xt=z||Ct;else De?xt=Ct&&(z||Je):ie?xt=Ct&&Je&&(z||!pt):ve?xt=Ct&&Je&&!pt&&(z||!Dt):pt||Dt?xt=!1:xt=z?Be<=h:Be<h;xt?U=Fe+1:q=Fe}return Br(q,Y)}function wM(d,h){for(var P=-1,z=d.length,U=0,q=[];++P<z;){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 CM(d){return typeof d=="number"?d:Fo(d)?H:+d}function Lo(d){if(typeof d=="string")return d;if(Mt(d))return Rn(d,Lo)+"";if(Fo(d))return J2?J2.call(d):"";var h=d+"";return h=="0"&&1/d==-B?"-0":h}function Al(d,h,P){var z=-1,U=rm,q=d.length,ee=!0,ie=[],ve=ie;if(P)ee=!1,U=W0;else if(q>=o){var De=h?null:YH(d);if(De)return sm(De);ee=!1,U=hf,ve=new Wa}else ve=h?[]:ie;e:for(;++z<q;){var Fe=d[z],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 v1(d,h){return h=Ll(h,d),d=YM(d,h),d==null||delete d[vi(ms(h))]}function xM(d,h,P,z){return Pf(d,h,P(Ka(d,h)),z)}function km(d,h,P,z){for(var U=d.length,q=z?U:-1;(z?q--:++q<U)&&h(d[q],q,d););return P?hs(d,z?0:q,z?q+1:U):hs(d,z?q+1:0,z?U:q)}function SM(d,h){var P=d;return P instanceof Ht&&(P=P.value()),G0(h,function(z,U){return U.func.apply(U.thisArg,$l([z],U.args))},P)}function y1(d,h,P){var z=d.length;if(z<2)return z?Al(d[0]):[];for(var U=-1,q=ke(z);++U<z;)for(var ee=d[U],ie=-1;++ie<z;)ie!=U&&(q[U]=Cf(q[U]||ee,d[ie],h,P));return Al(Tr(q,1),h,P)}function PM(d,h,P){for(var z=-1,U=d.length,q=h.length,ee={};++z<U;){var ie=z<q?h[z]:n;P(ee,d[z],ie)}return ee}function b1(d){return Xn(d)?d:[]}function w1(d){return typeof d=="function"?d:yo}function Ll(d,h){return Mt(d)?d:_1(d,h)?[d]:JM(on(d))}var BH=Lt;function Fl(d,h,P){var z=d.length;return P=P===n?z:P,!h&&P>=z?d:hs(d,h,P)}var kM=Ej||function(d){return _r.clearTimeout(d)};function EM(d,h){if(h)return d.slice();var P=d.length,z=K2?K2(P):new d.constructor(P);return d.copy(z),z}function C1(d){var h=new d.constructor(d.byteLength);return new dm(h).set(new dm(d)),h}function zH(d,h){var P=h?C1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.byteLength)}function VH(d){var h=new d.constructor(d.source,we.exec(d));return h.lastIndex=d.lastIndex,h}function jH(d){return bf?vn(bf.call(d)):{}}function IM(d,h){var P=h?C1(d.buffer):d.buffer;return new d.constructor(P,d.byteOffset,d.length)}function MM(d,h){if(d!==h){var P=d!==n,z=d===null,U=d===d,q=Fo(d),ee=h!==n,ie=h===null,ve=h===h,De=Fo(h);if(!ie&&!De&&!q&&d>h||q&&ee&&ve&&!ie&&!De||z&&ee&&ve||!P&&ve||!U)return 1;if(!z&&!q&&!De&&d<h||De&&P&&U&&!z&&!q||ie&&P&&U||!ee&&U||!ve)return-1}return 0}function HH(d,h,P){for(var z=-1,U=d.criteria,q=h.criteria,ee=U.length,ie=P.length;++z<ee;){var ve=MM(U[z],q[z]);if(ve){if(z>=ie)return ve;var De=P[z];return ve*(De=="desc"?-1:1)}}return d.index-h.index}function _M(d,h,P,z){for(var U=-1,q=d.length,ee=P.length,ie=-1,ve=h.length,De=ur(q-ee,0),Fe=ke(ve+De),Be=!z;++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 TM(d,h,P,z){for(var U=-1,q=d.length,ee=-1,ie=P.length,ve=-1,De=h.length,Fe=ur(q-ie,0),Be=ke(Fe+De),Je=!z;++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,z=d.length;for(h||(h=ke(z));++P<z;)h[P]=d[P];return h}function gi(d,h,P,z){var U=!P;P||(P={});for(var q=-1,ee=h.length;++q<ee;){var ie=h[q],ve=z?z(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 UH(d,h){return gi(d,M1(d),h)}function WH(d,h){return gi(d,HM(d),h)}function Em(d,h){return function(P,z){var U=Mt(P)?QV:pH,q=h?h():{};return U(P,d,yt(z,2),q)}}function nu(d){return Lt(function(h,P){var z=-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);++z<U;){var ie=P[z];ie&&d(h,ie,z,q)}return h})}function $M(d,h){return function(P,z){if(P==null)return P;if(!go(P))return d(P,z);for(var U=P.length,q=h?U:-1,ee=vn(P);(h?q--:++q<U)&&z(ee[q],q,ee)!==!1;);return P}}function RM(d){return function(h,P,z){for(var U=-1,q=vn(h),ee=z(h),ie=ee.length;ie--;){var ve=ee[d?ie:++U];if(P(q[ve],ve,q)===!1)break}return h}}function GH(d,h,P){var z=h&C,U=kf(d);function q(){var ee=this&&this!==_r&&this instanceof q?U:d;return ee.apply(z?P:this,arguments)}return q}function OM(d){return function(h){h=on(h);var P=Yc(h)?Hs(h):n,z=P?P[0]:h.charAt(0),U=P?Fl(P,1).join(""):h.slice(1);return z[d]()+U}}function ru(d){return function(h){return G0($_(T_(h).replace(LV,"")),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),z=d.apply(P,h);return Nn(z)?z:P}}function KH(d,h,P){var z=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?[]:Rl(ee,ve);if(q-=De.length,q<P)return NM(d,h,Im,U.placeholder,n,ee,De,n,n,P-q);var Fe=this&&this!==_r&&this instanceof U?z:d;return Do(Fe,this,ee)}return U}function DM(d){return function(h,P,z){var U=vn(h);if(!go(h)){var q=yt(P,3);h=yr(h),P=function(ie){return q(U[ie],ie,U)}}var ee=d(h,P,z);return ee>-1?U[q?h[ee]:ee]:n}}function AM(d){return Xi(function(h){var P=h.length,z=P,U=fs.prototype.thru;for(d&&h.reverse();z--;){var q=h[z];if(typeof q!="function")throw new ds(i);if(U&&!ee&&$m(q)=="wrapper")var ee=new fs([],!0)}for(z=ee?z:P;++z<P;){q=h[z];var ie=$m(q),ve=ie=="wrapper"?E1(q):n;ve&&T1(ve[0])&&ve[1]==(I|x|_|T)&&!ve[4].length&&ve[9]==1?ee=ee[$m(ve[0])].apply(ee,ve[3]):ee=q.length==1&&T1(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,z,U,q,ee,ie,ve,De){var Fe=h&I,Be=h&C,Je=h&w,pt=h&(x|E),Ct=h&D,Dt=Je?n:kf(d);function xt(){for(var Bt=arguments.length,Gt=ke(Bt),No=Bt;No--;)Gt[No]=arguments[No];if(pt)var ro=ou(xt),Bo=sj(Gt,ro);if(z&&(Gt=_M(Gt,z,U,pt)),q&&(Gt=TM(Gt,q,ee,pt)),Bt-=Bo,pt&&Bt<De){var Zn=Rl(Gt,ro);return NM(d,h,Im,xt.placeholder,P,Gt,Zn,ie,ve,De-Bt)}var Gs=Be?P:this,tl=Je?Gs[d]:d;return Bt=Gt.length,ie?Gt=p6(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 LM(d,h){return function(P,z){return CH(P,d,h(z),{})}}function Mm(d,h){return function(P,z){var U;if(P===n&&z===n)return h;if(P!==n&&(U=P),z!==n){if(U===n)return z;typeof P=="string"||typeof z=="string"?(P=Lo(P),z=Lo(z)):(P=CM(P),z=CM(z)),U=d(P,z)}return U}}function x1(d){return Xi(function(h){return h=Rn(h,Ao(yt())),Lt(function(P){var z=this;return d(h,function(U){return Do(U,z,P)})})})}function _m(d,h){h=h===n?" ":Lo(h);var P=h.length;if(P<2)return P?m1(h,d):h;var z=m1(h,mm(d/Qc(h)));return Yc(h)?Fl(Hs(z),0,d).join(""):z.slice(0,d)}function qH(d,h,P,z){var U=h&C,q=kf(d);function ee(){for(var ie=-1,ve=arguments.length,De=-1,Fe=z.length,Be=ke(Fe+ve),Je=this&&this!==_r&&this instanceof ee?q:d;++De<Fe;)Be[De]=z[De];for(;ve--;)Be[De++]=arguments[++ie];return Do(Je,U?P:this,Be)}return ee}function FM(d){return function(h,P,z){return z&&typeof z!="number"&&no(h,P,z)&&(P=z=n),h=el(h),P===n?(P=h,h=0):P=el(P),z=z===n?h<P?1:-1:el(z),OH(h,P,z,d)}}function Tm(d){return function(h,P){return typeof h=="string"&&typeof P=="string"||(h=gs(h),P=gs(P)),d(h,P)}}function NM(d,h,P,z,U,q,ee,ie,ve,De){var Fe=h&x,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 T1(d)&&QM(xt,Dt),xt.placeholder=z,XM(xt,d,h)}function S1(d){var h=cr[d];return function(P,z){if(P=gs(P),z=z==null?0:Br(Ot(z),292),z&&X2(P)){var U=(on(P)+"e").split("e"),q=h(U[0]+"e"+(+U[1]+z));return U=(on(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-z))}return h(P)}}var YH=Jc&&1/sm(new Jc([,-0]))[1]==B?function(d){return new Jc(d)}:W1;function BM(d){return function(h){var P=zr(h);return P==Se?J0(h):P==fe?fj(h):oj(h,d(h))}}function Qi(d,h,P,z,U,q,ee,ie){var ve=h&w;if(!ve&&typeof d!="function")throw new ds(i);var De=z?z.length:0;if(De||(h&=~(_|k),z=U=n),ee=ee===n?ee:ur(Ot(ee),0),ie=ie===n?ie:Ot(ie),De-=U?U.length:0,h&k){var Fe=z,Be=U;z=U=n}var Je=ve?n:E1(d),pt=[d,h,P,z,U,Fe,Be,q,ee,ie];if(Je&&u6(pt,Je),d=pt[0],h=pt[1],P=pt[2],z=pt[3],U=pt[4],ie=pt[9]=pt[9]===n?ve?0:d.length:ur(pt[9]-De,0),!ie&&h&(x|E)&&(h&=~(x|E)),!h||h==C)var Ct=GH(d,h,P);else h==x||h==E?Ct=KH(d,h,ie):(h==_||h==(C|_))&&!U.length?Ct=qH(d,h,P,z):Ct=Im.apply(n,pt);var Dt=Je?bM:QM;return XM(Dt(Ct,pt),d,h)}function zM(d,h,P,z){return d===n||Ws(d,Zc[P])&&!cn.call(z,P)?h:d}function VM(d,h,P,z,U,q){return Nn(d)&&Nn(h)&&(q.set(h,d),Sm(d,h,n,VM,q),q.delete(h)),d}function QH(d){return Mf(d)?n:d}function jM(d,h,P,z,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&m?new Wa:n;for(q.set(d,h),q.set(h,d);++Be<ie;){var Ct=d[Be],Dt=h[Be];if(z)var xt=ee?z(Dt,Ct,Be,h,d,q):z(Ct,Dt,Be,d,h,q);if(xt!==n){if(xt)continue;Je=!1;break}if(pt){if(!K0(h,function(Bt,Gt){if(!hf(pt,Gt)&&(Ct===Bt||U(Ct,Bt,P,z,q)))return pt.push(Gt)})){Je=!1;break}}else if(!(Ct===Dt||U(Ct,Dt,P,z,q))){Je=!1;break}}return q.delete(d),q.delete(h),Je}function XH(d,h,P,z,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=J0;case fe:var ve=z&y;if(ie||(ie=sm),d.size!=h.size&&!ve)return!1;var De=ee.get(d);if(De)return De==h;z|=m,ee.set(d,h);var Fe=jM(ie(d),ie(h),z,U,q,ee);return ee.delete(d),Fe;case be:if(bf)return bf.call(d)==bf.call(h)}return!1}function ZH(d,h,P,z,U,q){var ee=P&y,ie=P1(d),ve=ie.length,De=P1(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(z)var No=ee?z(Gt,Bt,Je,h,d,q):z(Bt,Gt,Je,d,h,q);if(!(No===n?Bt===Gt||U(Bt,Gt,P,z,q):No)){Dt=!1;break}xt||(xt=Je=="constructor")}if(Dt&&!xt){var ro=d.constructor,Bo=h.constructor;ro!=Bo&&"constructor"in d&&"constructor"in h&&!(typeof ro=="function"&&ro instanceof ro&&typeof Bo=="function"&&Bo instanceof Bo)&&(Dt=!1)}return q.delete(d),q.delete(h),Dt}function Xi(d){return R1(qM(d,n,r_),d+"")}function P1(d){return aM(d,yr,M1)}function k1(d){return aM(d,vo,HM)}var E1=vm?function(d){return vm.get(d)}:W1;function $m(d){for(var h=d.name+"",P=eu[h],z=cn.call(eu,h)?P.length:0;z--;){var U=P[z],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||H1;return d=d===H1?dM:d,arguments.length?d(arguments[0],arguments[1]):d}function Rm(d,h){var P=d.__data__;return i6(h)?P[typeof h=="string"?"string":"hash"]:P.map}function I1(d){for(var h=yr(d),P=h.length;P--;){var z=h[P],U=d[z];h[P]=[z,U,GM(U)]}return h}function qa(d,h){var P=cj(d,h);return uM(P)?P:n}function JH(d){var h=cn.call(d,Ha),P=d[Ha];try{d[Ha]=n;var z=!0}catch(q){}var U=cm.call(d);return z&&(h?d[Ha]=P:delete d[Ha]),U}var M1=t1?function(d){return d==null?[]:(d=vn(d),Tl(t1(d),function(h){return Y2.call(d,h)}))}:G1,HM=t1?function(d){for(var h=[];d;)$l(h,M1(d)),d=fm(d);return h}:G1,zr=to;(n1&&zr(new n1(new ArrayBuffer(1)))!=Ue||gf&&zr(new gf)!=Se||r1&&zr(r1.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,z=P?Ya(P):"";if(z)switch(z){case Aj:return Ue;case Lj:return Se;case Fj:return ye;case Nj:return fe;case Bj:return Ne}return h});function e6(d,h,P){for(var z=-1,U=P.length;++z<U;){var q=P[z],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=ur(d,h-ee);break}}return{start:d,end:h}}function t6(d){var h=d.match(Oo);return h?h[1].split(hi):[]}function UM(d,h,P){h=Ll(h,d);for(var z=-1,U=h.length,q=!1;++z<U;){var ee=vi(h[z]);if(!(q=d!=null&&P(d,ee)))break;d=d[ee]}return q||++z!=U?q:(U=d==null?0:d.length,!!U&&Bm(U)&&Zi(ee,U)&&(Mt(d)||Qa(d)))}function n6(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 WM(d){return typeof d.constructor=="function"&&!Ef(d)?tu(fm(d)):{}}function r6(d,h,P){var z=d.constructor;switch(h){case Ve:return C1(d);case Z:case he:return new z(+d);case Ue:return zH(d,P);case Le:case ht:case Zt:case Pt:case wt:case Xe:case Oe:case qe:case mt:return IM(d,P);case Se:return new z;case Ee:case de:return new z(d);case pe:return VH(d);case fe:return new z;case be:return jH(d)}}function o6(d,h){var P=h.length;if(!P)return d;var z=P-1;return h[z]=(P>1?"& ":"")+h[z],h=h.join(P>2?", ":" "),d.replace(ir,`{
|
|
301
|
+
/* [wrapped with `+h+`] */
|
|
302
|
+
`)}function s6(d){return Mt(d)||Qa(d)||!!(Q2&&d&&d[Q2])}function Zi(d,h){var P=typeof d;return h=h==null?O: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 z=typeof h;return(z=="number"?go(P)&&Zi(h,P.length):z=="string"&&h in P)?Ws(P[h],d):!1}function _1(d,h){if(Mt(d))return!1;var P=typeof d;return P=="number"||P=="symbol"||P=="boolean"||d==null||Fo(d)?!0:ls.test(d)||!_l.test(d)||h!=null&&d in vn(h)}function i6(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function T1(d){var h=$m(d),P=G[h];if(typeof P!="function"||!(h in Ht.prototype))return!1;if(d===P)return!0;var z=E1(P);return!!z&&d===z[0]}function l6(d){return!!G2&&G2 in d}var a6=lm?Ji:K1;function Ef(d){var h=d&&d.constructor,P=typeof h=="function"&&h.prototype||Zc;return d===P}function GM(d){return d===d&&!Nn(d)}function KM(d,h){return function(P){return P==null?!1:P[d]===h&&(h!==n||d in vn(P))}}function c6(d){var h=Fm(d,function(z){return P.size===u&&P.clear(),z}),P=h.cache;return h}function u6(d,h){var P=d[1],z=h[1],U=P|z,q=U<(C|w|I),ee=z==I&&P==x||z==I&&P==T&&d[7].length<=h[8]||z==(I|T)&&h[7].length<=h[8]&&P==x;if(!(q||ee))return d;z&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?Rl(d[3],f):h[4]}return ie=h[5],ie&&(ve=d[5],d[5]=ve?TM(ve,ie,h[6]):ie,d[6]=ve?Rl(d[5],f):h[6]),ie=h[7],ie&&(d[7]=ie),z&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 d6(d){var h=[];if(d!=null)for(var P in vn(d))h.push(P);return h}function f6(d){return cm.call(d)}function qM(d,h,P){return h=ur(h===n?d.length-1:h,0),function(){for(var z=arguments,U=-1,q=ur(z.length-h,0),ee=ke(q);++U<q;)ee[U]=z[h+U];U=-1;for(var ie=ke(h+1);++U<h;)ie[U]=z[U];return ie[h]=P(ee),Do(d,this,ie)}}function YM(d,h){return h.length<2?d:Ka(d,hs(h,0,-1))}function p6(d,h){for(var P=d.length,z=Br(h.length,P),U=mo(d);z--;){var q=h[z];d[z]=Zi(q,P)?U[q]:n}return d}function $1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var QM=ZM(bM),If=Mj||function(d,h){return _r.setTimeout(d,h)},R1=ZM(LH);function XM(d,h,P){var z=h+"";return R1(d,o6(z,h6(t6(z),P)))}function ZM(d){var h=0,P=0;return function(){var z=Rj(),U=j-(z-P);if(P=z,U>0){if(++h>=V)return arguments[0]}else h=0;return d.apply(n,arguments)}}function Om(d,h){var P=-1,z=d.length,U=z-1;for(h=h===n?z:h;++P<h;){var q=h1(P,U),ee=d[q];d[q]=d[P],d[P]=ee}return d.length=h,d}var JM=c6(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(Tn,function(P,z,U,q){h.push(U?q.replace(js,"$1"):z||P)}),h});function vi(d){if(typeof d=="string"||Fo(d))return d;var h=d+"";return h=="0"&&1/d==-B?"-0":h}function Ya(d){if(d!=null){try{return am.call(d)}catch(h){}try{return d+""}catch(h){}}return""}function h6(d,h){return us(Q,function(P){var z="_."+P[0];h&P[1]&&!rm(d,z)&&d.push(z)}),d.sort()}function e_(d){if(d instanceof Ht)return d.clone();var h=new fs(d.__wrapped__,d.__chain__);return h.__actions__=mo(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function m6(d,h,P){(P?no(d,h,P):h===n)?h=1:h=ur(Ot(h),0);var z=d==null?0:d.length;if(!z||h<1)return[];for(var U=0,q=0,ee=ke(mm(z/h));U<z;)ee[q++]=hs(d,U,U+=h);return ee}function g6(d){for(var h=-1,P=d==null?0:d.length,z=0,U=[];++h<P;){var q=d[h];q&&(U[z++]=q)}return U}function v6(){var d=arguments.length;if(!d)return[];for(var h=ke(d-1),P=arguments[0],z=d;z--;)h[z-1]=arguments[z];return $l(Mt(P)?mo(P):[P],Tr(h,1))}var y6=Lt(function(d,h){return Xn(d)?Cf(d,Tr(h,1,Xn,!0)):[]}),b6=Lt(function(d,h){var P=ms(h);return Xn(P)&&(P=n),Xn(d)?Cf(d,Tr(h,1,Xn,!0),yt(P,2)):[]}),w6=Lt(function(d,h){var P=ms(h);return Xn(P)&&(P=n),Xn(d)?Cf(d,Tr(h,1,Xn,!0),n,P):[]});function C6(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),hs(d,h<0?0:h,z)):[]}function x6(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),h=z-h,hs(d,0,h<0?0:h)):[]}function S6(d,h){return d&&d.length?km(d,yt(h,3),!0,!0):[]}function P6(d,h){return d&&d.length?km(d,yt(h,3),!0):[]}function k6(d,h,P,z){var U=d==null?0:d.length;return U?(P&&typeof P!="number"&&no(d,h,P)&&(P=0,z=U),vH(d,h,P,z)):[]}function t_(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=P==null?0:Ot(P);return U<0&&(U=ur(z+U,0)),om(d,yt(h,3),U)}function n_(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=z-1;return P!==n&&(U=Ot(P),U=P<0?ur(z+U,0):Br(U,z-1)),om(d,yt(h,3),U,!0)}function r_(d){var h=d==null?0:d.length;return h?Tr(d,1):[]}function E6(d){var h=d==null?0:d.length;return h?Tr(d,B):[]}function I6(d,h){var P=d==null?0:d.length;return P?(h=h===n?1:Ot(h),Tr(d,h)):[]}function M6(d){for(var h=-1,P=d==null?0:d.length,z={};++h<P;){var U=d[h];z[U[0]]=U[1]}return z}function o_(d){return d&&d.length?d[0]:n}function _6(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=P==null?0:Ot(P);return U<0&&(U=ur(z+U,0)),qc(d,h,U)}function T6(d){var h=d==null?0:d.length;return h?hs(d,0,-1):[]}var $6=Lt(function(d){var h=Rn(d,b1);return h.length&&h[0]===d[0]?c1(h):[]}),R6=Lt(function(d){var h=ms(d),P=Rn(d,b1);return h===ms(P)?h=n:P.pop(),P.length&&P[0]===d[0]?c1(P,yt(h,2)):[]}),O6=Lt(function(d){var h=ms(d),P=Rn(d,b1);return h=typeof h=="function"?h:n,h&&P.pop(),P.length&&P[0]===d[0]?c1(P,n,h):[]});function D6(d,h){return d==null?"":Tj.call(d,h)}function ms(d){var h=d==null?0:d.length;return h?d[h-1]:n}function A6(d,h,P){var z=d==null?0:d.length;if(!z)return-1;var U=z;return P!==n&&(U=Ot(P),U=U<0?ur(z+U,0):Br(U,z-1)),h===h?hj(d,h,U):om(d,N2,U,!0)}function L6(d,h){return d&&d.length?mM(d,Ot(h)):n}var F6=Lt(s_);function s_(d,h){return d&&d.length&&h&&h.length?p1(d,h):d}function N6(d,h,P){return d&&d.length&&h&&h.length?p1(d,h,yt(P,2)):d}function B6(d,h,P){return d&&d.length&&h&&h.length?p1(d,h,n,P):d}var z6=Xi(function(d,h){var P=d==null?0:d.length,z=s1(d,h);return yM(d,Rn(h,function(U){return Zi(U,P)?+U:U}).sort(MM)),z});function V6(d,h){var P=[];if(!(d&&d.length))return P;var z=-1,U=[],q=d.length;for(h=yt(h,3);++z<q;){var ee=d[z];h(ee,z,d)&&(P.push(ee),U.push(z))}return yM(d,U),P}function O1(d){return d==null?d:Dj.call(d)}function j6(d,h,P){var z=d==null?0:d.length;return z?(P&&typeof P!="number"&&no(d,h,P)?(h=0,P=z):(h=h==null?0:Ot(h),P=P===n?z:Ot(P)),hs(d,h,P)):[]}function H6(d,h){return Pm(d,h)}function U6(d,h,P){return g1(d,h,yt(P,2))}function W6(d,h){var P=d==null?0:d.length;if(P){var z=Pm(d,h);if(z<P&&Ws(d[z],h))return z}return-1}function G6(d,h){return Pm(d,h,!0)}function K6(d,h,P){return g1(d,h,yt(P,2),!0)}function q6(d,h){var P=d==null?0:d.length;if(P){var z=Pm(d,h,!0)-1;if(Ws(d[z],h))return z}return-1}function Y6(d){return d&&d.length?wM(d):[]}function Q6(d,h){return d&&d.length?wM(d,yt(h,2)):[]}function X6(d){var h=d==null?0:d.length;return h?hs(d,1,h):[]}function Z6(d,h,P){return d&&d.length?(h=P||h===n?1:Ot(h),hs(d,0,h<0?0:h)):[]}function J6(d,h,P){var z=d==null?0:d.length;return z?(h=P||h===n?1:Ot(h),h=z-h,hs(d,h<0?0:h,z)):[]}function e9(d,h){return d&&d.length?km(d,yt(h,3),!1,!0):[]}function t9(d,h){return d&&d.length?km(d,yt(h,3)):[]}var n9=Lt(function(d){return Al(Tr(d,1,Xn,!0))}),r9=Lt(function(d){var h=ms(d);return Xn(h)&&(h=n),Al(Tr(d,1,Xn,!0),yt(h,2))}),o9=Lt(function(d){var h=ms(d);return h=typeof h=="function"?h:n,Al(Tr(d,1,Xn,!0),n,h)});function s9(d){return d&&d.length?Al(d):[]}function i9(d,h){return d&&d.length?Al(d,yt(h,2)):[]}function l9(d,h){return h=typeof h=="function"?h:n,d&&d.length?Al(d,n,h):[]}function D1(d){if(!(d&&d.length))return[];var h=0;return d=Tl(d,function(P){if(Xn(P))return h=ur(P.length,h),!0}),X0(h,function(P){return Rn(d,q0(P))})}function i_(d,h){if(!(d&&d.length))return[];var P=D1(d);return h==null?P:Rn(P,function(z){return Do(h,n,z)})}var a9=Lt(function(d,h){return Xn(d)?Cf(d,h):[]}),c9=Lt(function(d){return y1(Tl(d,Xn))}),u9=Lt(function(d){var h=ms(d);return Xn(h)&&(h=n),y1(Tl(d,Xn),yt(h,2))}),d9=Lt(function(d){var h=ms(d);return h=typeof h=="function"?h:n,y1(Tl(d,Xn),n,h)}),f9=Lt(D1);function p9(d,h){return PM(d||[],h||[],wf)}function h9(d,h){return PM(d||[],h||[],Pf)}var m9=Lt(function(d){var h=d.length,P=h>1?d[h-1]:n;return P=typeof P=="function"?(d.pop(),P):n,i_(d,P)});function l_(d){var h=G(d);return h.__chain__=!0,h}function g9(d,h){return h(d),d}function Dm(d,h){return h(d)}var v9=Xi(function(d){var h=d.length,P=h?d[0]:0,z=this.__wrapped__,U=function(q){return s1(q,d)};return h>1||this.__actions__.length||!(z instanceof Ht)||!Zi(P)?this.thru(U):(z=z.slice(P,+P+(h?1:0)),z.__actions__.push({func:Dm,args:[U],thisArg:n}),new fs(z,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function y9(){return l_(this)}function b9(){return new fs(this.value(),this.__chain__)}function w9(){this.__values__===n&&(this.__values__=C_(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function C9(){return this}function x9(d){for(var h,P=this;P instanceof bm;){var z=e_(P);z.__index__=0,z.__values__=n,h?U.__wrapped__=z:h=z;var U=z;P=P.__wrapped__}return U.__wrapped__=d,h}function S9(){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:[O1],thisArg:n}),new fs(h,this.__chain__)}return this.thru(O1)}function P9(){return SM(this.__wrapped__,this.__actions__)}var k9=Em(function(d,h,P){cn.call(d,P)?++d[P]:Yi(d,P,1)});function E9(d,h,P){var z=Mt(d)?L2:gH;return P&&no(d,h,P)&&(h=n),z(d,yt(h,3))}function I9(d,h){var P=Mt(d)?Tl:iM;return P(d,yt(h,3))}var M9=DM(t_),_9=DM(n_);function T9(d,h){return Tr(Am(d,h),1)}function $9(d,h){return Tr(Am(d,h),B)}function R9(d,h,P){return P=P===n?1:Ot(P),Tr(Am(d,h),P)}function a_(d,h){var P=Mt(d)?us:Dl;return P(d,yt(h,3))}function c_(d,h){var P=Mt(d)?XV:sM;return P(d,yt(h,3))}var O9=Em(function(d,h,P){cn.call(d,P)?d[P].push(h):Yi(d,P,[h])});function D9(d,h,P,z){d=go(d)?d:iu(d),P=P&&!z?Ot(P):0;var U=d.length;return P<0&&(P=ur(U+P,0)),zm(d)?P<=U&&d.indexOf(h,P)>-1:!!U&&qc(d,h,P)>-1}var A9=Lt(function(d,h,P){var z=-1,U=typeof h=="function",q=go(d)?ke(d.length):[];return Dl(d,function(ee){q[++z]=U?Do(h,ee,P):xf(ee,h,P)}),q}),L9=Em(function(d,h,P){Yi(d,P,h)});function Am(d,h){var P=Mt(d)?Rn:fM;return P(d,yt(h,3))}function F9(d,h,P,z){return d==null?[]:(Mt(h)||(h=h==null?[]:[h]),P=z?n:P,Mt(P)||(P=P==null?[]:[P]),gM(d,h,P))}var N9=Em(function(d,h,P){d[P?0:1].push(h)},function(){return[[],[]]});function B9(d,h,P){var z=Mt(d)?G0:z2,U=arguments.length<3;return z(d,yt(h,4),P,U,Dl)}function z9(d,h,P){var z=Mt(d)?ZV:z2,U=arguments.length<3;return z(d,yt(h,4),P,U,sM)}function V9(d,h){var P=Mt(d)?Tl:iM;return P(d,Nm(yt(h,3)))}function j9(d){var h=Mt(d)?tM:DH;return h(d)}function H9(d,h,P){(P?no(d,h,P):h===n)?h=1:h=Ot(h);var z=Mt(d)?dH:AH;return z(d,h)}function U9(d){var h=Mt(d)?fH:FH;return h(d)}function W9(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:d1(d).length}function G9(d,h,P){var z=Mt(d)?K0:NH;return P&&no(d,h,P)&&(h=n),z(d,yt(h,3))}var K9=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]]),gM(d,Tr(h,1),[])}),Lm=Ij||function(){return _r.Date.now()};function q9(d,h){if(typeof h!="function")throw new ds(i);return d=Ot(d),function(){if(--d<1)return h.apply(this,arguments)}}function u_(d,h,P){return h=P?n:h,h=d&&h==null?d.length:h,Qi(d,I,n,n,n,n,h)}function d_(d,h){var P;if(typeof h!="function")throw new ds(i);return d=Ot(d),function(){return--d>0&&(P=h.apply(this,arguments)),d<=1&&(h=n),P}}var A1=Lt(function(d,h,P){var z=C;if(P.length){var U=Rl(P,ou(A1));z|=_}return Qi(d,z,h,P,U)}),f_=Lt(function(d,h,P){var z=C|w;if(P.length){var U=Rl(P,ou(f_));z|=_}return Qi(h,z,d,P,U)});function p_(d,h,P){h=P?n:h;var z=Qi(d,x,n,n,n,n,n,h);return z.placeholder=p_.placeholder,z}function h_(d,h,P){h=P?n:h;var z=Qi(d,E,n,n,n,n,n,h);return z.placeholder=h_.placeholder,z}function m_(d,h,P){var z,U,q,ee,ie,ve,De=0,Fe=!1,Be=!1,Je=!0;if(typeof d!="function")throw new ds(i);h=gs(h)||0,Nn(P)&&(Fe=!!P.leading,Be="maxWait"in P,q=Be?ur(gs(P.maxWait)||0,h):q,Je="trailing"in P?!!P.trailing:Je);function pt(Zn){var Gs=z,tl=U;return z=U=n,De=Zn,ee=d.apply(tl,Gs),ee}function Ct(Zn){return De=Zn,ie=If(Bt,h),Fe?pt(Zn):ee}function Dt(Zn){var Gs=Zn-ve,tl=Zn-De,D_=h-Gs;return Be?Br(D_,q-tl):D_}function xt(Zn){var Gs=Zn-ve,tl=Zn-De;return ve===n||Gs>=h||Gs<0||Be&&tl>=q}function Bt(){var Zn=Lm();if(xt(Zn))return Gt(Zn);ie=If(Bt,Dt(Zn))}function Gt(Zn){return ie=n,Je&&z?pt(Zn):(z=U=n,ee)}function No(){ie!==n&&kM(ie),De=0,z=ve=U=ie=n}function ro(){return ie===n?ee:Gt(Lm())}function Bo(){var Zn=Lm(),Gs=xt(Zn);if(z=arguments,U=this,ve=Zn,Gs){if(ie===n)return Ct(ve);if(Be)return kM(ie),ie=If(Bt,h),pt(ve)}return ie===n&&(ie=If(Bt,h)),ee}return Bo.cancel=No,Bo.flush=ro,Bo}var Y9=Lt(function(d,h){return oM(d,1,h)}),Q9=Lt(function(d,h,P){return oM(d,gs(h)||0,P)});function X9(d){return Qi(d,D)}function Fm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new ds(i);var P=function(){var z=arguments,U=h?h.apply(this,z):z[0],q=P.cache;if(q.has(U))return q.get(U);var ee=d.apply(this,z);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 ds(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 Z9(d){return d_(2,d)}var J9=BH(function(d,h){h=h.length==1&&Mt(h[0])?Rn(h[0],Ao(yt())):Rn(Tr(h,1),Ao(yt()));var P=h.length;return Lt(function(z){for(var U=-1,q=Br(z.length,P);++U<q;)z[U]=h[U].call(this,z[U]);return Do(d,this,z)})}),L1=Lt(function(d,h){var P=Rl(h,ou(L1));return Qi(d,_,n,h,P)}),g_=Lt(function(d,h){var P=Rl(h,ou(g_));return Qi(d,k,n,h,P)}),e8=Xi(function(d,h){return Qi(d,T,n,n,n,h)});function t8(d,h){if(typeof d!="function")throw new ds(i);return h=h===n?h:Ot(h),Lt(d,h)}function n8(d,h){if(typeof d!="function")throw new ds(i);return h=h==null?0:ur(Ot(h),0),Lt(function(P){var z=P[h],U=Fl(P,0,h);return z&&$l(U,z),Do(d,this,U)})}function r8(d,h,P){var z=!0,U=!0;if(typeof d!="function")throw new ds(i);return Nn(P)&&(z="leading"in P?!!P.leading:z,U="trailing"in P?!!P.trailing:U),m_(d,h,{leading:z,maxWait:h,trailing:U})}function o8(d){return u_(d,1)}function s8(d,h){return L1(w1(h),d)}function i8(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function l8(d){return ps(d,v)}function a8(d,h){return h=typeof h=="function"?h:n,ps(d,v,h)}function c8(d){return ps(d,p|v)}function u8(d,h){return h=typeof h=="function"?h:n,ps(d,p|v,h)}function d8(d,h){return h==null||rM(d,h,yr(h))}function Ws(d,h){return d===h||d!==d&&h!==h}var f8=Tm(a1),p8=Tm(function(d,h){return d>=h}),Qa=cM(function(){return arguments}())?cM:function(d){return Hn(d)&&cn.call(d,"callee")&&!Y2.call(d,"callee")},Mt=ke.isArray,h8=T2?Ao(T2):xH;function go(d){return d!=null&&Bm(d.length)&&!Ji(d)}function Xn(d){return Hn(d)&&go(d)}function m8(d){return d===!0||d===!1||Hn(d)&&to(d)==Z}var Nl=_j||K1,g8=$2?Ao($2):SH;function v8(d){return Hn(d)&&d.nodeType===1&&!Mf(d)}function y8(d){if(d==null)return!0;if(go(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||Nl(d)||su(d)||Qa(d)))return!d.length;var h=zr(d);if(h==Se||h==fe)return!d.size;if(Ef(d))return!d1(d).length;for(var P in d)if(cn.call(d,P))return!1;return!0}function b8(d,h){return Sf(d,h)}function w8(d,h,P){P=typeof P=="function"?P:n;var z=P?P(d,h):n;return z===n?Sf(d,h,n,P):!!z}function F1(d){if(!Hn(d))return!1;var h=to(d);return h==re||h==ne||typeof d.message=="string"&&typeof d.name=="string"&&!Mf(d)}function C8(d){return typeof d=="number"&&X2(d)}function Ji(d){if(!Nn(d))return!1;var h=to(d);return h==me||h==ce||h==se||h==Me}function v_(d){return typeof d=="number"&&d==Ot(d)}function Bm(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=O}function Nn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Hn(d){return d!=null&&typeof d=="object"}var y_=R2?Ao(R2):kH;function x8(d,h){return d===h||u1(d,h,I1(h))}function S8(d,h,P){return P=typeof P=="function"?P:n,u1(d,h,I1(h),P)}function P8(d){return b_(d)&&d!=+d}function k8(d){if(a6(d))throw new It(s);return uM(d)}function E8(d){return d===null}function I8(d){return d==null}function b_(d){return typeof d=="number"||Hn(d)&&to(d)==Ee}function Mf(d){if(!Hn(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)==Sj}var N1=O2?Ao(O2):EH;function M8(d){return v_(d)&&d>=-O&&d<=O}var w_=D2?Ao(D2):IH;function zm(d){return typeof d=="string"||!Mt(d)&&Hn(d)&&to(d)==de}function Fo(d){return typeof d=="symbol"||Hn(d)&&to(d)==be}var su=A2?Ao(A2):MH;function _8(d){return d===n}function T8(d){return Hn(d)&&zr(d)==Ne}function $8(d){return Hn(d)&&to(d)==Ge}var R8=Tm(f1),O8=Tm(function(d,h){return d<=h});function C_(d){if(!d)return[];if(go(d))return zm(d)?Hs(d):mo(d);if(mf&&d[mf])return dj(d[mf]());var h=zr(d),P=h==Se?J0:h==fe?sm:iu;return P(d)}function el(d){if(!d)return d===0?d:0;if(d=gs(d),d===B||d===-B){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 x_(d){return d?Ga(Ot(d),0,K):0}function gs(d){if(typeof d=="number")return d;if(Fo(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=V2(d);var P=ft.test(d);return P||$n.test(d)?qV(d.slice(2),P?2:8):Qe.test(d)?H:+d}function S_(d){return gi(d,vo(d))}function D8(d){return d?Ga(Ot(d),-O,O):d===0?d:0}function on(d){return d==null?"":Lo(d)}var A8=nu(function(d,h){if(Ef(h)||go(h)){gi(h,yr(h),d);return}for(var P in h)cn.call(h,P)&&wf(d,P,h[P])}),P_=nu(function(d,h){gi(h,vo(h),d)}),Vm=nu(function(d,h,P,z){gi(h,vo(h),d,z)}),L8=nu(function(d,h,P,z){gi(h,yr(h),d,z)}),F8=Xi(s1);function N8(d,h){var P=tu(d);return h==null?P:nM(P,h)}var B8=Lt(function(d,h){d=vn(d);var P=-1,z=h.length,U=z>2?h[2]:n;for(U&&no(h[0],h[1],U)&&(z=1);++P<z;)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}),z8=Lt(function(d){return d.push(n,VM),Do(k_,n,d)});function V8(d,h){return F2(d,yt(h,3),mi)}function j8(d,h){return F2(d,yt(h,3),l1)}function H8(d,h){return d==null?d:i1(d,yt(h,3),vo)}function U8(d,h){return d==null?d:lM(d,yt(h,3),vo)}function W8(d,h){return d&&mi(d,yt(h,3))}function G8(d,h){return d&&l1(d,yt(h,3))}function K8(d){return d==null?[]:xm(d,yr(d))}function q8(d){return d==null?[]:xm(d,vo(d))}function B1(d,h,P){var z=d==null?n:Ka(d,h);return z===n?P:z}function Y8(d,h){return d!=null&&UM(d,h,yH)}function z1(d,h){return d!=null&&UM(d,h,bH)}var Q8=LM(function(d,h,P){h!=null&&typeof h.toString!="function"&&(h=cm.call(h)),d[h]=P},j1(yo)),X8=LM(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),Z8=Lt(xf);function yr(d){return go(d)?eM(d):d1(d)}function vo(d){return go(d)?eM(d,!0):_H(d)}function J8(d,h){var P={};return h=yt(h,3),mi(d,function(z,U,q){Yi(P,h(z,U,q),z)}),P}function e7(d,h){var P={};return h=yt(h,3),mi(d,function(z,U,q){Yi(P,U,h(z,U,q))}),P}var t7=nu(function(d,h,P){Sm(d,h,P)}),k_=nu(function(d,h,P,z){Sm(d,h,P,z)}),n7=Xi(function(d,h){var P={};if(d==null)return P;var z=!1;h=Rn(h,function(q){return q=Ll(q,d),z||(z=q.length>1),q}),gi(d,k1(d),P),z&&(P=ps(P,p|g|v,QH));for(var U=h.length;U--;)v1(P,h[U]);return P});function r7(d,h){return E_(d,Nm(yt(h)))}var o7=Xi(function(d,h){return d==null?{}:$H(d,h)});function E_(d,h){if(d==null)return{};var P=Rn(k1(d),function(z){return[z]});return h=yt(h),vM(d,P,function(z,U){return h(z,U[0])})}function s7(d,h,P){h=Ll(h,d);var z=-1,U=h.length;for(U||(U=1,d=n);++z<U;){var q=d==null?n:d[vi(h[z])];q===n&&(z=U,q=P),d=Ji(q)?q.call(d):q}return d}function i7(d,h,P){return d==null?d:Pf(d,h,P)}function l7(d,h,P,z){return z=typeof z=="function"?z:n,d==null?d:Pf(d,h,P,z)}var I_=BM(yr),M_=BM(vo);function a7(d,h,P){var z=Mt(d),U=z||Nl(d)||su(d);if(h=yt(h,4),P==null){var q=d&&d.constructor;U?P=z?new q:[]:Nn(d)?P=Ji(q)?tu(fm(d)):{}:P={}}return(U?us:mi)(d,function(ee,ie,ve){return h(P,ee,ie,ve)}),P}function c7(d,h){return d==null?!0:v1(d,h)}function u7(d,h,P){return d==null?d:xM(d,h,w1(P))}function d7(d,h,P,z){return z=typeof z=="function"?z:n,d==null?d:xM(d,h,w1(P),z)}function iu(d){return d==null?[]:Z0(d,yr(d))}function f7(d){return d==null?[]:Z0(d,vo(d))}function p7(d,h,P){return P===n&&(P=h,h=n),P!==n&&(P=gs(P),P=P===P?P:0),h!==n&&(h=gs(h),h=h===h?h:0),Ga(gs(d),h,P)}function h7(d,h,P){return h=el(h),P===n?(P=h,h=0):P=el(P),d=gs(d),wH(d,h,P)}function m7(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 z=d;d=h,h=z}if(P||d%1||h%1){var U=Z2();return Br(d+U*(h-d+KV("1e-"+((U+"").length-1))),h)}return h1(d,h)}var g7=ru(function(d,h,P){return h=h.toLowerCase(),d+(P?__(h):h)});function __(d){return V1(on(d).toLowerCase())}function T_(d){return d=on(d),d&&d.replace(St,ij).replace(FV,"")}function v7(d,h,P){d=on(d),h=Lo(h);var z=d.length;P=P===n?z:Ga(Ot(P),0,z);var U=P;return P-=h.length,P>=0&&d.slice(P,U)==h}function y7(d){return d=on(d),d&>.test(d)?d.replace(Pn,lj):d}function b7(d){return d=on(d),d&&vr.test(d)?d.replace(an,"\\$&"):d}var w7=ru(function(d,h,P){return d+(P?"-":"")+h.toLowerCase()}),C7=ru(function(d,h,P){return d+(P?" ":"")+h.toLowerCase()}),x7=OM("toLowerCase");function S7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;if(!h||z>=h)return d;var U=(h-z)/2;return _m(gm(U),P)+d+_m(mm(U),P)}function P7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;return h&&z<h?d+_m(h-z,P):d}function k7(d,h,P){d=on(d),h=Ot(h);var z=h?Qc(d):0;return h&&z<h?_m(h-z,P)+d:d}function E7(d,h,P){return P||h==null?h=0:h&&(h=+h),Oj(on(d).replace(ho,""),h||0)}function I7(d,h,P){return(P?no(d,h,P):h===n)?h=1:h=Ot(h),m1(on(d),h)}function M7(){var d=arguments,h=on(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var _7=ru(function(d,h,P){return d+(P?"_":"")+h.toLowerCase()});function T7(d,h,P){return P&&typeof P!="number"&&no(d,h,P)&&(h=P=n),P=P===n?K:P>>>0,P?(d=on(d),d&&(typeof h=="string"||h!=null&&!N1(h))&&(h=Lo(h),!h&&Yc(d))?Fl(Hs(d),0,P):d.split(h,P)):[]}var $7=ru(function(d,h,P){return d+(P?" ":"")+V1(h)});function R7(d,h,P){return d=on(d),P=P==null?0:Ga(Ot(P),0,d.length),h=Lo(h),d.slice(P,P+h.length)==h}function O7(d,h,P){var z=G.templateSettings;P&&no(d,h,P)&&(h=n),d=on(d),h=Vm({},h,z,zM);var U=Vm({},h.imports,z.imports,zM),q=yr(U),ee=Z0(U,q),ie,ve,De=0,Fe=h.interpolate||Qn,Be="__p += '",Je=e1((h.escape||Qn).source+"|"+Fe.source+"|"+(Fe===sr?$e:Qn).source+"|"+(h.evaluate||Qn).source+"|$","g"),pt="//# sourceURL="+(cn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jV+"]")+`
|
|
303
|
+
`;d.replace(Je,function(xt,Bt,Gt,No,ro,Bo){return Gt||(Gt=No),Be+=d.slice(De,Bo).replace(bV,aj),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=Bo+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=R_(function(){return en(q,pt+"return "+Be).apply(n,ee)});if(Dt.source=Be,F1(Dt))throw Dt;return Dt}function D7(d){return on(d).toLowerCase()}function A7(d){return on(d).toUpperCase()}function L7(d,h,P){if(d=on(d),d&&(P||h===n))return V2(d);if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=Hs(h),q=j2(z,U),ee=H2(z,U)+1;return Fl(z,q,ee).join("")}function F7(d,h,P){if(d=on(d),d&&(P||h===n))return d.slice(0,W2(d)+1);if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=H2(z,Hs(h))+1;return Fl(z,0,U).join("")}function N7(d,h,P){if(d=on(d),d&&(P||h===n))return d.replace(ho,"");if(!d||!(h=Lo(h)))return d;var z=Hs(d),U=j2(z,Hs(h));return Fl(z,U).join("")}function B7(d,h){var P=R,z=A;if(Nn(h)){var U="separator"in h?h.separator:U;P="length"in h?Ot(h.length):P,z="omission"in h?Lo(h.omission):z}d=on(d);var q=d.length;if(Yc(d)){var ee=Hs(d);q=ee.length}if(P>=q)return d;var ie=P-Qc(z);if(ie<1)return z;var ve=ee?Fl(ee,0,ie).join(""):d.slice(0,ie);if(U===n)return ve+z;if(ee&&(ie+=ve.length-ie),N1(U)){if(d.slice(ie).search(U)){var De,Fe=ve;for(U.global||(U=e1(U.source,on(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(Lo(U),ie)!=ie){var Je=ve.lastIndexOf(U);Je>-1&&(ve=ve.slice(0,Je))}return ve+z}function z7(d){return d=on(d),d&&bn.test(d)?d.replace(Qt,mj):d}var V7=ru(function(d,h,P){return d+(P?" ":"")+h.toUpperCase()}),V1=OM("toUpperCase");function $_(d,h,P){return d=on(d),h=P?n:h,h===n?uj(d)?yj(d):tj(d):d.match(h)||[]}var R_=Lt(function(d,h){try{return Do(d,n,h)}catch(P){return F1(P)?P:new It(P)}}),j7=Xi(function(d,h){return us(h,function(P){P=vi(P),Yi(d,P,A1(d[P],d))}),d});function H7(d){var h=d==null?0:d.length,P=yt();return d=h?Rn(d,function(z){if(typeof z[1]!="function")throw new ds(i);return[P(z[0]),z[1]]}):[],Lt(function(z){for(var U=-1;++U<h;){var q=d[U];if(Do(q[0],this,z))return Do(q[1],this,z)}})}function U7(d){return mH(ps(d,p))}function j1(d){return function(){return d}}function W7(d,h){return d==null||d!==d?h:d}var G7=AM(),K7=AM(!0);function yo(d){return d}function H1(d){return dM(typeof d=="function"?d:ps(d,p))}function q7(d){return pM(ps(d,p))}function Y7(d,h){return hM(d,ps(h,p))}var Q7=Lt(function(d,h){return function(P){return xf(P,d,h)}}),X7=Lt(function(d,h){return function(P){return xf(d,P,h)}});function U1(d,h,P){var z=yr(h),U=xm(h,z);P==null&&!(Nn(h)&&(U.length||!z.length))&&(P=h,h=d,d=this,U=xm(h,yr(h)));var q=!(Nn(P)&&"chain"in P)||!!P.chain,ee=Ji(d);return us(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,$l([this.value()],arguments))})}),d}function Z7(){return _r._===this&&(_r._=Pj),this}function W1(){}function J7(d){return d=Ot(d),Lt(function(h){return mM(h,d)})}var eU=x1(Rn),tU=x1(L2),nU=x1(K0);function O_(d){return _1(d)?q0(vi(d)):RH(d)}function rU(d){return function(h){return d==null?n:Ka(d,h)}}var oU=FM(),sU=FM(!0);function G1(){return[]}function K1(){return!1}function iU(){return{}}function lU(){return""}function aU(){return!0}function cU(d,h){if(d=Ot(d),d<1||d>O)return[];var P=K,z=Br(d,K);h=yt(h),d-=K;for(var U=X0(z,h);++P<d;)h(P);return U}function uU(d){return Mt(d)?Rn(d,vi):Fo(d)?[d]:mo(JM(on(d)))}function dU(d){var h=++xj;return on(d)+h}var fU=Mm(function(d,h){return d+h},0),pU=S1("ceil"),hU=Mm(function(d,h){return d/h},1),mU=S1("floor");function gU(d){return d&&d.length?Cm(d,yo,a1):n}function vU(d,h){return d&&d.length?Cm(d,yt(h,2),a1):n}function yU(d){return B2(d,yo)}function bU(d,h){return B2(d,yt(h,2))}function wU(d){return d&&d.length?Cm(d,yo,f1):n}function CU(d,h){return d&&d.length?Cm(d,yt(h,2),f1):n}var xU=Mm(function(d,h){return d*h},1),SU=S1("round"),PU=Mm(function(d,h){return d-h},0);function kU(d){return d&&d.length?Q0(d,yo):0}function EU(d,h){return d&&d.length?Q0(d,yt(h,2)):0}return G.after=q9,G.ary=u_,G.assign=A8,G.assignIn=P_,G.assignInWith=Vm,G.assignWith=L8,G.at=F8,G.before=d_,G.bind=A1,G.bindAll=j7,G.bindKey=f_,G.castArray=i8,G.chain=l_,G.chunk=m6,G.compact=g6,G.concat=v6,G.cond=H7,G.conforms=U7,G.constant=j1,G.countBy=k9,G.create=N8,G.curry=p_,G.curryRight=h_,G.debounce=m_,G.defaults=B8,G.defaultsDeep=z8,G.defer=Y9,G.delay=Q9,G.difference=y6,G.differenceBy=b6,G.differenceWith=w6,G.drop=C6,G.dropRight=x6,G.dropRightWhile=S6,G.dropWhile=P6,G.fill=k6,G.filter=I9,G.flatMap=T9,G.flatMapDeep=$9,G.flatMapDepth=R9,G.flatten=r_,G.flattenDeep=E6,G.flattenDepth=I6,G.flip=X9,G.flow=G7,G.flowRight=K7,G.fromPairs=M6,G.functions=K8,G.functionsIn=q8,G.groupBy=O9,G.initial=T6,G.intersection=$6,G.intersectionBy=R6,G.intersectionWith=O6,G.invert=Q8,G.invertBy=X8,G.invokeMap=A9,G.iteratee=H1,G.keyBy=L9,G.keys=yr,G.keysIn=vo,G.map=Am,G.mapKeys=J8,G.mapValues=e7,G.matches=q7,G.matchesProperty=Y7,G.memoize=Fm,G.merge=t7,G.mergeWith=k_,G.method=Q7,G.methodOf=X7,G.mixin=U1,G.negate=Nm,G.nthArg=J7,G.omit=n7,G.omitBy=r7,G.once=Z9,G.orderBy=F9,G.over=eU,G.overArgs=J9,G.overEvery=tU,G.overSome=nU,G.partial=L1,G.partialRight=g_,G.partition=N9,G.pick=o7,G.pickBy=E_,G.property=O_,G.propertyOf=rU,G.pull=F6,G.pullAll=s_,G.pullAllBy=N6,G.pullAllWith=B6,G.pullAt=z6,G.range=oU,G.rangeRight=sU,G.rearg=e8,G.reject=V9,G.remove=V6,G.rest=t8,G.reverse=O1,G.sampleSize=H9,G.set=i7,G.setWith=l7,G.shuffle=U9,G.slice=j6,G.sortBy=K9,G.sortedUniq=Y6,G.sortedUniqBy=Q6,G.split=T7,G.spread=n8,G.tail=X6,G.take=Z6,G.takeRight=J6,G.takeRightWhile=e9,G.takeWhile=t9,G.tap=g9,G.throttle=r8,G.thru=Dm,G.toArray=C_,G.toPairs=I_,G.toPairsIn=M_,G.toPath=uU,G.toPlainObject=S_,G.transform=a7,G.unary=o8,G.union=n9,G.unionBy=r9,G.unionWith=o9,G.uniq=s9,G.uniqBy=i9,G.uniqWith=l9,G.unset=c7,G.unzip=D1,G.unzipWith=i_,G.update=u7,G.updateWith=d7,G.values=iu,G.valuesIn=f7,G.without=a9,G.words=$_,G.wrap=s8,G.xor=c9,G.xorBy=u9,G.xorWith=d9,G.zip=f9,G.zipObject=p9,G.zipObjectDeep=h9,G.zipWith=m9,G.entries=I_,G.entriesIn=M_,G.extend=P_,G.extendWith=Vm,U1(G,G),G.add=fU,G.attempt=R_,G.camelCase=g7,G.capitalize=__,G.ceil=pU,G.clamp=p7,G.clone=l8,G.cloneDeep=c8,G.cloneDeepWith=u8,G.cloneWith=a8,G.conformsTo=d8,G.deburr=T_,G.defaultTo=W7,G.divide=hU,G.endsWith=v7,G.eq=Ws,G.escape=y7,G.escapeRegExp=b7,G.every=E9,G.find=M9,G.findIndex=t_,G.findKey=V8,G.findLast=_9,G.findLastIndex=n_,G.findLastKey=j8,G.floor=mU,G.forEach=a_,G.forEachRight=c_,G.forIn=H8,G.forInRight=U8,G.forOwn=W8,G.forOwnRight=G8,G.get=B1,G.gt=f8,G.gte=p8,G.has=Y8,G.hasIn=z1,G.head=o_,G.identity=yo,G.includes=D9,G.indexOf=_6,G.inRange=h7,G.invoke=Z8,G.isArguments=Qa,G.isArray=Mt,G.isArrayBuffer=h8,G.isArrayLike=go,G.isArrayLikeObject=Xn,G.isBoolean=m8,G.isBuffer=Nl,G.isDate=g8,G.isElement=v8,G.isEmpty=y8,G.isEqual=b8,G.isEqualWith=w8,G.isError=F1,G.isFinite=C8,G.isFunction=Ji,G.isInteger=v_,G.isLength=Bm,G.isMap=y_,G.isMatch=x8,G.isMatchWith=S8,G.isNaN=P8,G.isNative=k8,G.isNil=I8,G.isNull=E8,G.isNumber=b_,G.isObject=Nn,G.isObjectLike=Hn,G.isPlainObject=Mf,G.isRegExp=N1,G.isSafeInteger=M8,G.isSet=w_,G.isString=zm,G.isSymbol=Fo,G.isTypedArray=su,G.isUndefined=_8,G.isWeakMap=T8,G.isWeakSet=$8,G.join=D6,G.kebabCase=w7,G.last=ms,G.lastIndexOf=A6,G.lowerCase=C7,G.lowerFirst=x7,G.lt=R8,G.lte=O8,G.max=gU,G.maxBy=vU,G.mean=yU,G.meanBy=bU,G.min=wU,G.minBy=CU,G.stubArray=G1,G.stubFalse=K1,G.stubObject=iU,G.stubString=lU,G.stubTrue=aU,G.multiply=xU,G.nth=L6,G.noConflict=Z7,G.noop=W1,G.now=Lm,G.pad=S7,G.padEnd=P7,G.padStart=k7,G.parseInt=E7,G.random=m7,G.reduce=B9,G.reduceRight=z9,G.repeat=I7,G.replace=M7,G.result=s7,G.round=SU,G.runInContext=ge,G.sample=j9,G.size=W9,G.snakeCase=_7,G.some=G9,G.sortedIndex=H6,G.sortedIndexBy=U6,G.sortedIndexOf=W6,G.sortedLastIndex=G6,G.sortedLastIndexBy=K6,G.sortedLastIndexOf=q6,G.startCase=$7,G.startsWith=R7,G.subtract=PU,G.sum=kU,G.sumBy=EU,G.template=O7,G.times=cU,G.toFinite=el,G.toInteger=Ot,G.toLength=x_,G.toLower=D7,G.toNumber=gs,G.toSafeInteger=D8,G.toString=on,G.toUpper=A7,G.trim=L7,G.trimEnd=F7,G.trimStart=N7,G.truncate=B7,G.unescape=z7,G.uniqueId=dU,G.upperCase=V7,G.upperFirst=V1,G.each=a_,G.eachRight=c_,G.first=o_,U1(G,function(){var d={};return mi(G,function(h,P){cn.call(G.prototype,P)||(d[P]=h)}),d}(),{chain:!1}),G.VERSION=r,us(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),us(["drop","take"],function(d,h){Ht.prototype[d]=function(P){P=P===n?1:ur(Ot(P),0);var z=this.__filtered__&&!h?new Ht(this):this.clone();return z.__filtered__?z.__takeCount__=Br(P,z.__takeCount__):z.__views__.push({size:Br(P,K),type:d+(z.__dir__<0?"Right":"")}),z},Ht.prototype[d+"Right"]=function(P){return this.reverse()[d](P).reverse()}}),us(["filter","map","takeWhile"],function(d,h){var P=h+1,z=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__||z,q}}),us(["head","last"],function(d,h){var P="take"+(h?"Right":"");Ht.prototype[d]=function(){return this[P](1).value()[0]}}),us(["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)},mi(Ht.prototype,function(d,h){var P=/^(?:filter|find|map|reject)|While$/.test(h),z=/^(?:head|last)$/.test(h),U=G[z?"take"+(h=="last"?"Right":""):h],q=z||/^find/.test(h);U&&(G.prototype[h]=function(){var ee=this.__wrapped__,ie=z?[1]:arguments,ve=ee instanceof Ht,De=ie[0],Fe=ve||Mt(ee),Be=function(Bt){var Gt=U.apply(G,$l([Bt],ie));return z&&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 fs(xt,Je)}return Ct&&Dt?d.apply(this,ie):(xt=this.thru(Be),Ct?z?xt.value()[0]:xt.value():xt)})}),us(["pop","push","shift","sort","splice","unshift"],function(d){var h=im[d],P=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",z=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(z&&!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)})}}),mi(Ht.prototype,function(d,h){var P=G[h];if(P){var z=P.name+"";cn.call(eu,z)||(eu[z]=[]),eu[z].push({name:h,func:P})}}),eu[Im(n,w).name]=[{name:"wrapper",func:n}],Ht.prototype.clone=zj,Ht.prototype.reverse=Vj,Ht.prototype.value=jj,G.prototype.at=v9,G.prototype.chain=y9,G.prototype.commit=b9,G.prototype.next=w9,G.prototype.plant=x9,G.prototype.reverse=S9,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=P9,G.prototype.first=G.prototype.head,mf&&(G.prototype[mf]=C9),G},Xc=bj();ja?((ja.exports=Xc)._=Xc,H0._=Xc):_r._=Xc}).call(sn)})(Wv,Wv.exports);var Cue=Wv.exports;const nt=di(Cue);var Mk={},xue=et;Object.defineProperty(Mk,"__esModule",{value:!0});var w4=Mk.default=void 0,Sue=xue(tt()),Pue=Ze(),kue=(0,Sue.default)((0,Pue.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");w4=Mk.default=kue;var _k={},Eue=et;Object.defineProperty(_k,"__esModule",{value:!0});var Lb=_k.default=void 0,Iue=Eue(tt()),Mue=Ze(),_ue=(0,Iue.default)((0,Mue.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");Lb=_k.default=_ue;var Tk={},Tue=et;Object.defineProperty(Tk,"__esModule",{value:!0});var Fb=Tk.default=void 0,$ue=Tue(tt()),Rue=Ze(),Oue=(0,$ue.default)((0,Rue.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");Fb=Tk.default=Oue;var Nb={};const wi="\\\\/",XR=`[^${wi}]`,ll="\\.",Due="\\+",Aue="\\?",Bb="\\/",Lue="(?=.)",C4="[^/]",$k=`(?:${Bb}|$)`,x4=`(?:^|${Bb})`,Rk=`${ll}{1,2}${$k}`,Fue=`(?!${ll})`,Nue=`(?!${x4}${Rk})`,Bue=`(?!${ll}{0,1}${$k})`,zue=`(?!${Rk})`,Vue=`[^.${Bb}]`,jue=`${C4}*?`,Hue="/",S4={DOT_LITERAL:ll,PLUS_LITERAL:Due,QMARK_LITERAL:Aue,SLASH_LITERAL:Bb,ONE_CHAR:Lue,QMARK:C4,END_ANCHOR:$k,DOTS_SLASH:Rk,NO_DOT:Fue,NO_DOTS:Nue,NO_DOT_SLASH:Bue,NO_DOTS_SLASH:zue,QMARK_NO_DOT:Vue,STAR:jue,START_ANCHOR:x4,SEP:Hue},Uue=at(xe({},S4),{SLASH_LITERAL:`[${wi}]`,QMARK:XR,STAR:`${XR}*?`,DOTS_SLASH:`${ll}{1,2}(?:[${wi}]|$)`,NO_DOT:`(?!${ll})`,NO_DOTS:`(?!(?:^|[${wi}])${ll}{1,2}(?:[${wi}]|$))`,NO_DOT_SLASH:`(?!${ll}{0,1}(?:[${wi}]|$))`,NO_DOTS_SLASH:`(?!${ll}{1,2}(?:[${wi}]|$))`,QMARK_NO_DOT:`[^.${wi}]`,START_ANCHOR:`(?:^|[${wi}])`,END_ANCHOR:`(?:[${wi}]|$)`,SEP:"\\"}),Wue={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 zb={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wue,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?Uue:S4}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=zb;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}})(Nb);const ZR=Nb,{CHAR_ASTERISK:Bw,CHAR_AT:Gue,CHAR_BACKWARD_SLASH:ip,CHAR_COMMA:Kue,CHAR_DOT:zw,CHAR_EXCLAMATION_MARK:Vw,CHAR_FORWARD_SLASH:P4,CHAR_LEFT_CURLY_BRACE:jw,CHAR_LEFT_PARENTHESES:Hw,CHAR_LEFT_SQUARE_BRACKET:que,CHAR_PLUS:Yue,CHAR_QUESTION_MARK:JR,CHAR_RIGHT_CURLY_BRACE:Que,CHAR_RIGHT_PARENTHESES:eO,CHAR_RIGHT_SQUARE_BRACKET:Xue}=zb,tO=e=>e===P4||e===ip,nO=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Zue=(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,g=!1,v=!1,y=!1,m=!1,C=!1,w=!1,b=!1,x=!1,E=!1,_=!1,k=0,I,T,D={value:"",depth:0,isGlob:!1};const R=()=>u>=r,A=()=>a.charCodeAt(u+1),V=()=>(I=T,a.charCodeAt(++u));for(;u<r;){T=V();let B;if(T===ip){b=D.backslashes=!0,T=V(),T===jw&&(w=!0);continue}if(w===!0||T===jw){for(k++;R()!==!0&&(T=V());){if(T===ip){b=D.backslashes=!0,V();continue}if(T===jw){k++;continue}if(w!==!0&&T===zw&&(T=V())===zw){if(g=D.isBrace=!0,y=D.isGlob=!0,_=!0,o===!0)continue;break}if(w!==!0&&T===Kue){if(g=D.isBrace=!0,y=D.isGlob=!0,_=!0,o===!0)continue;break}if(T===Que&&(k--,k===0)){w=!1,g=D.isBrace=!0,_=!0;break}}if(o===!0)continue;break}if(T===P4){if(s.push(u),i.push(D),D={value:"",depth:0,isGlob:!1},_===!0)continue;if(I===zw&&u===f+1){f+=2;continue}p=u+1;continue}if(n.noext!==!0&&(T===Yue||T===Gue||T===Bw||T===JR||T===Vw)===!0&&A()===Hw){if(y=D.isGlob=!0,m=D.isExtglob=!0,_=!0,T===Vw&&u===f&&(E=!0),o===!0){for(;R()!==!0&&(T=V());){if(T===ip){b=D.backslashes=!0,T=V();continue}if(T===eO){y=D.isGlob=!0,_=!0;break}}continue}break}if(T===Bw){if(I===Bw&&(C=D.isGlobstar=!0),y=D.isGlob=!0,_=!0,o===!0)continue;break}if(T===JR){if(y=D.isGlob=!0,_=!0,o===!0)continue;break}if(T===que){for(;R()!==!0&&(B=V());){if(B===ip){b=D.backslashes=!0,V();continue}if(B===Xue){v=D.isBracket=!0,y=D.isGlob=!0,_=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&T===Vw&&u===f){x=D.negated=!0,f++;continue}if(n.noparen!==!0&&T===Hw){if(y=D.isGlob=!0,o===!0){for(;R()!==!0&&(T=V());){if(T===Hw){b=D.backslashes=!0,T=V();continue}if(T===eO){_=!0;break}}continue}break}if(y===!0){if(_=!0,o===!0)continue;break}}n.noext===!0&&(m=!1,y=!1);let j=a,M="",$="";f>0&&(M=a.slice(0,f),a=a.slice(f),p-=f),j&&y===!0&&p>0?(j=a.slice(0,p),$=a.slice(p)):y===!0?(j="",$=a):j=a,j&&j!==""&&j!=="/"&&j!==a&&tO(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),n.unescape===!0&&($&&($=ZR.removeBackslashes($)),j&&b===!0&&(j=ZR.removeBackslashes(j)));const F={prefix:M,input:e,start:f,base:j,glob:$,isBrace:g,isBracket:v,isGlob:y,isExtglob:m,isGlobstar:C,negated:x,negatedExtglob:E};if(n.tokens===!0&&(F.maxDepth=0,tO(T)||i.push(D),F.tokens=i),n.parts===!0||n.tokens===!0){let B;for(let O=0;O<s.length;O++){const N=B?B+1:f,H=s[O],K=e.slice(N,H);n.tokens&&(O===0&&f!==0?(i[O].isPrefix=!0,i[O].value=M):i[O].value=K,nO(i[O]),F.maxDepth+=i[O].depth),(O!==0||K!=="")&&l.push(K),B=H}if(B&&B+1<e.length){const O=e.slice(B+1);l.push(O),n.tokens&&(i[i.length-1].value=O,nO(i[i.length-1]),F.maxDepth+=i[i.length-1].depth)}F.slashes=s,F.parts=l}return F};var Jue=Zue;const Gv=zb,qs=Nb,{MAX_LENGTH:Kv,POSIX_REGEX_SOURCE:ede,REGEX_NON_SPECIAL_CHARS:tde,REGEX_SPECIAL_CHARS_BACKREF:nde,REPLACEMENTS:k4}=Gv,rde=(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`,Ok=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=k4[e]||e;const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(Kv,n.maxLength):Kv;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=Gv.globChars(n.windows),u=Gv.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:g,ONE_CHAR:v,DOTS_SLASH:y,NO_DOT:m,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:b,QMARK_NO_DOT:x,STAR:E,START_ANCHOR:_}=a,k=Z=>`(${l}(?:(?!${_}${Z.dot?y:f}).)*?)`,I=n.dot?"":m,T=n.dot?b:x;let D=n.bash===!0?k(n):E;n.capture&&(D=`(${D})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const R={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,R),o=e.length;const A=[],V=[],j=[];let M=s,$;const F=()=>R.index===o-1,B=R.peek=(Z=1)=>e[R.index+Z],O=R.advance=()=>e[++R.index]||"",N=()=>e.slice(R.index+1),H=(Z="",he=0)=>{R.consumed+=Z,R.index+=he},K=Z=>{R.output+=Z.output!=null?Z.output:Z.value,H(Z.value)},Y=()=>{let Z=1;for(;B()==="!"&&(B(2)!=="("||B(3)==="?");)O(),R.start++,Z++;return Z%2===0?!1:(R.negated=!0,R.start++,!0)},te=Z=>{R[Z]++,j.push(Z)},Q=Z=>{R[Z]--,j.pop()},X=Z=>{if(M.type==="globstar"){const he=R.braces>0&&(Z.type==="comma"||Z.type==="brace"),ne=Z.extglob===!0||A.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!he&&!ne&&(R.output=R.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=D,R.output+=M.output)}if(A.length&&Z.type!=="paren"&&(A[A.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=at(xe({},u[he]),{conditions:1,inner:""});ne.prev=M,ne.parens=R.parens,ne.output=R.output;const re=(n.capture?"(":"")+ne.open;te("parens"),X({type:Z,value:he,output:R.output?"":v}),X({type:"paren",extglob:!0,value:O(),output:re}),A.push(ne)},se=Z=>{let he=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=D;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=k(n)),(re!==D||F()||/^\)+$/.test(N()))&&(he=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=N())&&/^\.[^\\/.]+$/.test(ne)){const me=Ok(ne,at(xe({},t),{fastpaths:!1})).output;he=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:$,output:he}),Q("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,he=e.replace(nde,(ne,re,me,ce,Se,Ee)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(Se?b.repeat(Se.length):""):Ee===0?T+(Se?b.repeat(Se.length):""):b.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(Se?D:""):D: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?(R.output=e,R):(R.output=qs.wrapOutput(he,R,t),R)}for(;!F();){if($=O(),$==="\0")continue;if($==="\\"){const ne=B();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){$+="\\",X({type:"text",value:$});continue}const re=/^\\+/.exec(N());let me=0;if(re&&re[0].length>2&&(me=re[0].length,R.index+=me,me%2!==0&&($+="\\")),n.unescape===!0?$=O():$+=O(),R.brackets===0){X({type:"text",value:$});continue}}if(R.brackets>0&&($!=="]"||M.value==="["||M.value==="[^")){if(n.posix!==!1&&$===":"){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=ede[ce];if(Se){M.value=me+Se,R.backtrack=!0,O(),!s.output&&i.indexOf(M)===1&&(s.output=v);continue}}}($==="["&&B()!==":"||$==="-"&&B()==="]")&&($=`\\${$}`),$==="]"&&(M.value==="["||M.value==="[^")&&($=`\\${$}`),n.posix===!0&&$==="!"&&M.value==="["&&($="^"),M.value+=$,K({value:$});continue}if(R.quotes===1&&$!=='"'){$=qs.escapeRegex($),M.value+=$,K({value:$});continue}if($==='"'){R.quotes=R.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:$});continue}if($==="("){te("parens"),X({type:"paren",value:$});continue}if($===")"){if(R.parens===0&&n.strictBrackets===!0)throw new SyntaxError(mu("opening","("));const ne=A[A.length-1];if(ne&&R.parens===ne.parens+1){se(A.pop());continue}X({type:"paren",value:$,output:R.parens?")":"\\)"}),Q("parens");continue}if($==="["){if(n.nobracket===!0||!N().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));$=`\\${$}`}else te("brackets");X({type:"bracket",value:$});continue}if($==="]"){if(n.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){X({type:"text",value:$,output:`\\${$}`});continue}if(R.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mu("opening","["));X({type:"text",value:$,output:`\\${$}`});continue}Q("brackets");const ne=M.value.slice(1);if(M.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&($=`/${$}`),M.value+=$,K({value:$}),n.literalBrackets===!1||qs.hasRegexChars(ne))continue;const re=qs.escapeRegex(M.value);if(R.output=R.output.slice(0,-M.value.length),n.literalBrackets===!0){R.output+=re,M.value=re;continue}M.value=`(${l}${re}|${M.value})`,R.output+=M.value;continue}if($==="{"&&n.nobrace!==!0){te("braces");const ne={type:"brace",value:$,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};V.push(ne),X(ne);continue}if($==="}"){const ne=V[V.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:$,output:$});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=rde(ce,n),R.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){const me=R.output.slice(0,ne.outputIndex),ce=R.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",$=re="\\}",R.output=me;for(const Se of ce)R.output+=Se.output||Se.value}X({type:"brace",value:$,output:re}),Q("braces"),V.pop();continue}if($==="|"){A.length>0&&A[A.length-1].conditions++,X({type:"text",value:$});continue}if($===","){let ne=$;const re=V[V.length-1];re&&j[j.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:$,output:ne});continue}if($==="/"){if(M.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",i.pop(),M=s;continue}X({type:"slash",value:$,output:g});continue}if($==="."){if(R.braces>0&&M.type==="dot"){M.value==="."&&(M.output=f);const ne=V[V.length-1];M.type="dots",M.output+=$,M.value+=$,ne.dots=!0;continue}if(R.braces+R.parens===0&&M.type!=="bos"&&M.type!=="slash"){X({type:"text",value:$,output:f});continue}X({type:"dot",value:$,output:f});continue}if($==="?"){if(!(M&&M.value==="(")&&n.noextglob!==!0&&B()==="("&&B(2)!=="?"){J("qmark",$);continue}if(M&&M.type==="paren"){const re=B();let me=$;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=`\\${$}`),X({type:"text",value:$,output:me});continue}if(n.dot!==!0&&(M.type==="slash"||M.type==="bos")){X({type:"qmark",value:$,output:x});continue}X({type:"qmark",value:$,output:b});continue}if($==="!"){if(n.noextglob!==!0&&B()==="("&&(B(2)!=="?"||!/[!=<:]/.test(B(3)))){J("negate",$);continue}if(n.nonegate!==!0&&R.index===0){Y();continue}}if($==="+"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){J("plus",$);continue}if(M&&M.value==="("||n.regex===!1){X({type:"plus",value:$,output:p});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||R.parens>0){X({type:"plus",value:$});continue}X({type:"plus",value:p});continue}if($==="@"){if(n.noextglob!==!0&&B()==="("&&B(2)!=="?"){X({type:"at",extglob:!0,value:$,output:""});continue}X({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);const ne=tde.exec(N());ne&&($+=ne[0],R.index+=ne[0].length),X({type:"text",value:$});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=$,M.output=D,R.backtrack=!0,R.globstar=!0,H($);continue}let Z=N();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){J("star",$);continue}if(M.type==="star"){if(n.noglobstar===!0){H($);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:$,output:""});continue}const Se=R.braces>0&&(ne.type==="comma"||ne.type==="brace"),Ee=A.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!Se&&!Ee){X({type:"star",value:$,output:""});continue}for(;Z.slice(0,3)==="/**";){const ae=e[R.index+4];if(ae&&ae!=="/")break;Z=Z.slice(3),H("/**",3)}if(ne.type==="bos"&&F()){M.type="globstar",M.value+=$,M.output=k(n),R.output=M.output,R.globstar=!0,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&F()){R.output=R.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=k(n)+(n.strictSlashes?")":"|$)"),M.value+=$,R.globstar=!0,R.output+=ne.output+M.output,H($);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const ae=Z[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(ne.output+M.output).length),ne.output=`(?:${ne.output}`,M.type="globstar",M.output=`${k(n)}${g}|${g}${ae})`,M.value+=$,R.output+=ne.output+M.output,R.globstar=!0,H($+O()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){M.type="globstar",M.value+=$,M.output=`(?:^|${g}|${k(n)}${g})`,R.output=M.output,R.globstar=!0,H($+O()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-M.output.length),M.type="globstar",M.output=k(n),M.value+=$,R.output+=M.output,R.globstar=!0,H($);continue}const he={type:"star",value:$,output:D};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=$,X(he);continue}(R.index===R.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?(R.output+=C,M.output+=C):n.dot===!0?(R.output+=w,M.output+=w):(R.output+=I,M.output+=I),B()!=="*"&&(R.output+=v,M.output+=v)),X(he)}for(;R.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","]"));R.output=qs.escapeLast(R.output,"["),Q("brackets")}for(;R.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing",")"));R.output=qs.escapeLast(R.output,"("),Q("parens")}for(;R.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mu("closing","}"));R.output=qs.escapeLast(R.output,"{"),Q("braces")}if(n.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${g}?`}),R.backtrack===!0){R.output="";for(const Z of R.tokens)R.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&(R.output+=Z.suffix)}return R};Ok.fastpaths=(e,t)=>{const n=xe({},t),r=typeof n.maxLength=="number"?Math.min(Kv,n.maxLength):Kv,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=k4[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:g,START_ANCHOR:v}=Gv.globChars(n.windows),y=n.dot?f:u,m=n.dot?p:u,C=n.capture?"":"?:",w={negated:!1,prefix:""};let b=n.bash===!0?".*?":g;n.capture&&(b=`(${b})`);const x=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}${m}${b}`;case"**":return y+x(n);case"**/*":return`(?:${y}${x(n)}${i})?${m}${l}${b}`;case"**/*.*":return`(?:${y}${x(n)}${i})?${m}${b}${s}${l}${b}`;case"**/.*":return`(?:${y}${x(n)}${i})?${s}${l}${b}`;default:{const T=/^(.*?)\.(\w+)$/.exec(I);if(!T)return;const D=E(T[1]);return D?D+s+T[2]:void 0}}},_=qs.removePrefix(e,w);let k=E(_);return k&&n.strictSlashes!==!0&&(k+=`${i}?`),k};var ode=Ok;const sde=Jue,Fx=ode,E4=Nb,ide=zb,lde=e=>e&&typeof e=="object"&&!Array.isArray(e),tr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(g=>tr(g,t,n));return g=>{for(const v of f){const y=v(g);if(y)return y}return!1}}const r=lde(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?tr.compileRe(e,t):tr.makeRe(e,t,!1,!0),l=i.state;delete i.state;let a=()=>!1;if(o.ignore){const f=at(xe({},t),{ignore:null,onMatch:null,onResult:null});a=tr(o.ignore,f,n)}const u=(f,p=!1)=>{const{isMatch:g,match:v,output:y}=tr.test(f,i,t,{glob:e,posix:s}),m={glob:e,state:l,regex:i,posix:s,input:f,output:y,match:v,isMatch:g};return typeof o.onResult=="function"&&o.onResult(m),g===!1?(m.isMatch=!1,p?m:!1):a(f)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),p?m:!0)};return n&&(u.state=l),u};tr.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?E4.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=tr.matchBase(e,t,n,o):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};tr.matchBase=(e,t,n)=>(t instanceof RegExp?t:tr.makeRe(t,n)).test(E4.basename(e));tr.isMatch=(e,t,n)=>tr(t,n)(e);tr.parse=(e,t)=>Array.isArray(e)?e.map(n=>tr.parse(n,t)):Fx(e,at(xe({},t),{fastpaths:!1}));tr.scan=(e,t)=>sde(e,t);tr.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=tr.toRegex(l,t);return r===!0&&(a.state=e),a};tr.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=Fx.fastpaths(e,t)),o.output||(o=Fx(e,t)),tr.compileRe(o,t,n,r)};tr.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/$^/}};tr.constants=ide;var ade=tr;const cde=di(ade),Xd=401,Vb=403,ude=404,dde=406,fde=409,Nx=424,pde=500,hde={[Xd]:"Unauthorized",[Vb]:"Forbidden",[ude]:"Not found",[pde]:"Server error"},jb="https://github.com/rejetto/hfs/",mde=jb+"wiki/",gde=6e4,vde=60*gde,yde=24*vde,bde=10,wde=["name","extension","size","time"],Cde={auto:"",light:"light",dark:"dark"},br=Sde(["geo_enable","geo_allow","geo_list","geo_allow_unknown"]),gu={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},xde=!0,rO=!1,Uw={can_see:"can_read",can_read:xde,can_list:"can_read",can_upload:rO,can_delete:rO,can_archive:"can_read"};function Sde(e){return Object.fromEntries(e.map(t=>[t,t]))}function Pde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const kde=["","K","M","G","T"];function Cl(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";const o=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=vs(n,o),(o&&!isNaN(r)?e.toFixed(r):nt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(kde[o]||"")+t}function Ede(e,t={}){return Cl(e,xe({post:"B/s",k:1e3},t)).replace("K","k")}function Oi(e,t,n=""){return t?e+t+n:""}function Bh(e,t){return new Promise(n=>setTimeout(n,e,t))}function Hb(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function Ide(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function Mde(e){return!!e}function jc(e){return e.filter(Mde)}function _de(e,t){return Object.defineProperties(e,_4(t,n=>({enumerable:!1,writable:!0,value:n})))}function Tde(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Ma(e,t){return t(e)}function $de(e){return(e*100).toFixed(1)+"%"}function Ub(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dk(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function I4(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function Rde(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function Ode(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function oO(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function M4(e,t){return nt.isEqualWith(e,t,(n,r)=>{if(!nt.isPlainObject(n)||!nt.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&&M4(n[i],r[a])})})}function _4(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)&&nt.isPlainObject(a)&&(a=_4(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(jc(r))}function Dde(e){return Object.keys(e)}function Bx(e){return e?new Date(e).toLocaleString():"-"}function Ade(e){return!e||Object(e)!==e}function Lde(e){return/^([.:\da-f]+)$/i.test(e)}function Fde(e){return e&&/^[a-zA-Z]:$/.test(e)}function qv(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>qv(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||qv(r,e[n]))}function Ak(e,t){var n;return(n=t[e])!=null?n:e}function Nde(e){return e==="::1"||e.endsWith("127.0.0.1")}function T4(e){return e.includes(":")?"["+e+"]":e}function Bde(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function zde(e,t=!1){return e?cde(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function Vde(e,t,n=!1){return zde(t,n)(e)}function jde(e){var t;return nt.findKey(Hde,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const Hde={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},ju="/~/api/",Ude={loginSrp1:90,update:600,get_status:20},$4={};function Wde(e){Object.assign($4,e)}function ct(e,t,n={}){var a,u,f;nt.defaults(n,$4);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(u=Ude[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(G4()+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 m;r==null||r();let g=yield p.text(),v;try{v=JSON.parse(g)}catch(C){}const y=v!=null?v:g;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",y),yield(m=n.onResponse)==null?void 0:m.call(n,p,y),!p.ok)throw new R4(p.status,v===void 0?g:`Failed API ${e}: ${p.statusText}`,v);return y}),p=>{var g;throw r==null||r(),(g=p==null?void 0:p.message)!=null&&g.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class R4 extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function O4(e,t,n={}){const[r,o]=Co(void 0),[s,i]=Co(void 0),[l,a]=Co(0),u=c.useRef(),f=c.useRef();c.useEffect(()=>{var m,C;(m=u.current)==null||m.abort(),o(void 0),i(void 0);let g=!1,v;const y=Bh(0).then(()=>!e||g?void 0:v=ct(e,t,n)).then(w=>g||o(w),w=>{g||(i(w),o(void 0))}).finally(()=>u.current=f.current=void 0);u.current=Object.assign(y,{abort(){g=!0,v==null||v.abort()}}),(C=f.current)==null||C.resolve(y)},[e,JSON.stringify(t),l]);const p=c.useCallback(()=>{u.current||(a(g=>g+1),f.current=Dk())},[a]);return{data:r,setData:o,error:s,reload:p,loading:!!(u.current||f.current)}}function D4(e,t,n){t=nt.omitBy(t,nt.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(G4()+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 Gde(e,t={}){const[n,r]=Co(void 0),[o,s]=Co(void 0),[i,l]=Co(!1);return c.useEffect(()=>{const a=D4(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 Lk(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 Kde(e,t,n,r){const o=c.useRef(t);A4(()=>{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 qde(){const e=c.useRef(!1);return c.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),c.useCallback(()=>e.current,[])}const A4=typeof window!="undefined"?c.useLayoutEffect:c.useEffect;function Wb(){const[e,t]=c.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Kde("resize",n),A4(()=>{n()},[]),e}function Co(e){const t=qde(),[n,r]=c.useState(e),o=c.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function Yde(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Qde(e,t){const n=[];for(const r of Yde(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 Xde(){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=Xde();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 g;return o.cache.set(f,(g=u[p])!=null?g:null)}),o.waiter=void 0,l()}),n)}))).then(s)},[e]);const i=o&&o.cache.get(t);return o&&i===void 0&&o.batch.add(t),xe({data:i},o)}function Zde(n){var r=n,{margin:e}=r,t=Ft(r,["margin"]);const o=c.useRef(),[s,i]=c.useState(),l=Wb();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 Jde=navigator.platform.match("Mac");function Gb(e){return(e.ctrlKey||Jde&&e.metaKey)&&e.key}const efe=Symbol(),Fk=Symbol(),Gf="a",Yg="w";let tfe=(e,t)=>new Proxy(e,t);const zx=Object.getPrototypeOf,Vx=new WeakMap,L4=e=>e&&(Vx.has(e)?Vx.get(e):zx(e)===Object.prototype||zx(e)===Array.prototype),sO=e=>typeof e=="object"&&e!==null,nfe=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(zx(e),t)},F4=e=>e[Fk]||e,N4=(e,t,n,r)=>{if(!L4(e))return e;let o=r&&r.get(e);if(!o){const a=F4(e);o=(u=>Object.values(Object.getOwnPropertyDescriptors(u)).some(f=>!f.configurable&&!f.writable))(a)?[a,nfe(a)]:[a],r==null||r.set(e,o)}const[s,i]=o;let l=n&&n.get(s);return l&&l[1].f===!!i||(l=((a,u)=>{const f={f:u};let p=!1;const g=(y,m)=>{if(!p){let C=f[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(m)}}},v={get:(y,m)=>m===Fk?a:(g("k",m),N4(Reflect.get(y,m),f[Gf],f.c,f.t)),has:(y,m)=>m===efe?(p=!0,f[Gf].delete(a),!0):(g("h",m),Reflect.has(y,m)),getOwnPropertyDescriptor:(y,m)=>(g("o",m),Reflect.getOwnPropertyDescriptor(y,m)),ownKeys:y=>(g(Yg),Reflect.ownKeys(y))};return u&&(v.set=v.deleteProperty=()=>!1),[v,f]})(s,!!i),l[1].p=tfe(i||s,l[0]),n&&n.set(s,l)),l[1][Gf]=t,l[1].c=n,l[1].t=r,l[1].p},B4=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!sO(e)||!sO(t))return!0;const o=n.get(F4(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=B4(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},rfe=e=>L4(e)&&e[Fk]||null,iO=(e,t=!0)=>{Vx.set(e,t)};const Ww=e=>typeof e=="object"&&e!==null,Xl=new WeakMap,lp=new WeakSet,ofe=(e=Object.is,t=(u,f)=>new Proxy(u,f),n=u=>Ww(u)&&!lp.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),r=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},o=new WeakMap,s=(u,f,p=r)=>{const g=o.get(u);if((g==null?void 0:g[0])===f)return g[1];const v=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return iO(v,!0),o.set(u,[f,v]),Reflect.ownKeys(u).forEach(y=>{if(Object.getOwnPropertyDescriptor(v,y))return;const m=Reflect.get(u,y),{enumerable:C}=Reflect.getOwnPropertyDescriptor(u,y),w={value:m,enumerable:C,configurable:!0};if(lp.has(m))iO(m,!1);else if(m instanceof Promise)delete w.value,w.get=()=>p(m);else if(Xl.has(m)){const[b,x]=Xl.get(m);w.value=s(b,x(),p)}Object.defineProperty(v,y,w)}),Object.preventExtensions(v)},i=new WeakMap,l=[1,1],a=u=>{if(!Ww(u))throw new Error("object required");const f=i.get(u);if(f)return f;let p=l[0];const g=new Set,v=(D,R=++l[0])=>{p!==R&&(p=R,g.forEach(A=>A(D,R)))};let y=l[1];const m=(D=++l[1])=>(y!==D&&!g.size&&(y=D,w.forEach(([R])=>{const A=R[1](D);A>p&&(p=A)})),p),C=D=>(R,A)=>{const V=[...R];V[1]=[D,...V[1]],v(V,A)},w=new Map,b=(D,R)=>{if(g.size){const A=R[3](C(D));w.set(D,[R,A])}else w.set(D,[R])},x=D=>{var R;const A=w.get(D);A&&(w.delete(D),(R=A[1])==null||R.call(A))},E=D=>(g.add(D),g.size===1&&w.forEach(([A,V],j)=>{const M=A[3](C(j));w.set(j,[A,M])}),()=>{g.delete(D),g.size===0&&w.forEach(([A,V],j)=>{V&&(V(),w.set(j,[A]))})}),_=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),I=t(_,{deleteProperty(D,R){const A=Reflect.get(D,R);x(R);const V=Reflect.deleteProperty(D,R);return V&&v(["delete",[R],A]),V},set(D,R,A,V){const j=Reflect.has(D,R),M=Reflect.get(D,R,V);if(j&&(e(M,A)||i.has(A)&&e(M,i.get(A))))return!0;x(R),Ww(A)&&(A=rfe(A)||A);let $=A;if(A instanceof Promise)A.then(F=>{A.status="fulfilled",A.value=F,v(["resolve",[R],F])}).catch(F=>{A.status="rejected",A.reason=F,v(["reject",[R],F])});else{!Xl.has(A)&&n(A)&&($=a(A));const F=!lp.has($)&&Xl.get($);F&&b(R,F)}return Reflect.set(D,R,$,V),v(["set",[R],A,M]),!0}});i.set(u,I);const T=[_,m,s,E];return Xl.set(I,T),Reflect.ownKeys(u).forEach(D=>{const R=Object.getOwnPropertyDescriptor(u,D);"value"in R&&(I[D]=u[D],delete R.value,delete R.writable),Object.defineProperty(_,D,R)}),I})=>[a,Xl,lp,e,t,n,r,o,s,i,l],[sfe]=ofe();function Nk(e={}){return sfe(e)}function Bk(e,t,n){const r=Xl.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 lO(e,t){const n=Xl.get(e),[r,o,s]=n;return s(r,o(),t)}function ife(e){return lp.add(e),e}var z4={exports:{}},V4={};/**
|
|
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 lfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var afe=typeof Object.is=="function"?Object.is:lfe,cfe=kd.useState,ufe=kd.useEffect,dfe=kd.useLayoutEffect,ffe=kd.useDebugValue;function pfe(e,t){var n=t(),r=cfe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return dfe(function(){o.value=n,o.getSnapshot=t,Gw(o)&&s({inst:o})},[e,n,t]),ufe(function(){return Gw(o)&&s({inst:o}),e(function(){Gw(o)&&s({inst:o})})},[e]),ffe(n),n}function Gw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!afe(e,n)}catch(r){return!0}}function hfe(e,t){return t()}var mfe=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?hfe:pfe;V4.useSyncExternalStore=kd.useSyncExternalStore!==void 0?kd.useSyncExternalStore:mfe;z4.exports=V4;var gfe=z4.exports;const vfe=di(gfe),{use:aO}=co,{useSyncExternalStore:yfe}=vfe;const bfe=new WeakMap;function zk(e,t){const n=t==null?void 0:t.sync,r=c.useRef(),o=c.useRef();let s=!0;const i=yfe(c.useCallback(u=>{const f=Bk(e,u,n);return u(),f},[e,n]),()=>{const u=lO(e,aO);try{if(!s&&r.current&&o.current&&!B4(r.current,u,o.current,new WeakMap))return r.current}catch(f){}return u},()=>lO(e,aO));s=!1;const l=new WeakMap;c.useEffect(()=>{r.current=i,o.current=l});const a=c.useMemo(()=>new WeakMap,[]);return N4(i,l,a,bfe)}const Ed=Nk([]),jx={closableContent:"x",padding:!0},j4=['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(j4),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&wfe(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function wfe(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Cfe(){const e=zk(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(xfe,xe({key:t.$id},t))))}function xfe(e){var r;const t=c.useRef();if(c.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=xe(xe({},jx),e),e.Container)return c.createElement(e.Container,e);return c.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Sfe,onClick:o=>o.target===o.currentTarget&&Vi()},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(){Vi()}},e.closableContent),e.icon&&c.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},Yv(e.icon)),c.createElement("div",{className:"dialog-title"},Yv(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 Yv(e){return Ade(e)||c.isValidElement(e)?e:c.createElement(e)}function Sfe(e){e.key==="Escape"&&Vi()}function Ro(e){const t=Math.random();return e.$id=t,e=Hb(e,r=>c.isValidElement(r)?ife(r):r),Ed.push(e),{close:n};function n(r){const o=Ed.findIndex(s=>s.$id===t);if(!(o<0))return H4(o,r)}}function Vi(e){let t=Ed.length;for(;t--;){const n=Ed[t];if(!n.reserveClosing)return H4(t,e),n}}function H4(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={},Kb={},Id={};const Pfe={},kfe=Object.freeze(Object.defineProperty({__proto__:null,default:Pfe},Symbol.toStringTag,{value:"Module"})),cO=lA(kfe);Object.defineProperty(Id,"__esModule",{value:!0});var uO=Id.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||cO.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);uO=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=cO,n=r=>o=>t.createHash(r).update(o).digest().buffer;uO=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(Kb,"__esModule",{value:!0});Kb.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")}}Kb.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 qb={},Yb={};(function(e){var t=sn&&sn.__awaiter||function(x,E,_,k){function I(T){return T instanceof _?T:new _(function(D){D(T)})}return new(_||(_=Promise))(function(T,D){function R(j){try{V(k.next(j))}catch(M){D(M)}}function A(j){try{V(k.throw(j))}catch(M){D(M)}}function V(j){j.done?T(j.value):I(j.value).then(R,A)}V((k=k.apply(x,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=x=>{const E=x.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 T=0;T<_.byteLength;T++)k[T+I]=parseInt(E.slice(2*T+I,2*T+2+I),16);return _};e.bigIntToArrayBuffer=i;const l=x=>{const E=[];return new Uint8Array(x).forEach(_=>{E.push(("0"+_.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=l;function a(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=a;const u=(x,E)=>{const _=new Uint8Array(x);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(x,...E){const _=E.reduce((I,T)=>I+T.byteLength,0),k=new Uint8Array(_);for(let I=0,T=0;T<E.length;T++)k.set(new Uint8Array(E[T]),I),I+=E[T].byteLength;return x.H(k)}e.hash=f;function p(x,E,..._){const k=_.map(I=>e.padStartArrayBuffer(I,E));return f(x,...k)}e.hashPadded=p;function g(x=10){const E=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((_,k)=>{const I=k.toString(16).toString();return I.length===1?_+"0"+I:_+I},"").slice(0,x)}e.generateRandomString=g;function v(x=16){return e.arrayBufferToBigInt(b(x))}e.generateRandomBigInt=v;function y(x,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 x.computeX(E,_,k);return x.computeVerifier(I)})}e.createVerifier=y;function m(x,E,_,k){return t(this,void 0,void 0,function*(){const I=yield x.generateRandomSalt(k);return{s:I,v:yield y(x,E,I,_)}})}e.createVerifierAndSalt=m;const C=x=>t(void 0,void 0,void 0,function*(){return(yield f(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=C;function w(x,E,_){let k=o;for(;E>r;)E%s==o?(k=x*k%_,E-=o):(x=x*x%_,E/=s);return k}e.modPow=w;const b=x=>{const E=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(Yb);var jl=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(qb,"__esModule",{value:!0});qb.SRPRoutines=void 0;const hn=Yb;class Efe{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 jl(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 jl(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 jl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return jl(this,void 0,void 0,function*(){return hn.arrayBufferToBigInt(yield this.hash(hn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return jl(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 jl(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 jl(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 jl(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)}}qb.SRPRoutines=Efe;var wa={},Vk=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(wa,"__esModule",{value:!0});wa.SRPClientSessionStep2=wa.SRPClientSessionStep1=wa.SRPClientSession=void 0;class Ife{constructor(t){this.routines=t}step1(t,n){return Vk(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 Qb(this.routines,t,r)})}}wa.SRPClientSession=Ife;class Qb{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return Vk(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 Xb(this.routines,s,u,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new Qb(t,n.I,new Uint8Array(n.IH).buffer)}}wa.SRPClientSessionStep1=Qb;class Xb{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return Vk(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 Xb(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}wa.SRPClientSessionStep2=Xb;var _d={},Hx=sn&&sn.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{u(r.next(f))}catch(p){i(p)}}function a(f){try{u(r.throw(f))}catch(p){i(p)}}function u(f){f.done?s(f.value):o(f.value).then(l,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(_d,"__esModule",{value:!0});_d.SRPServerSessionStep1=_d.SRPServerSession=void 0;const Ux=Yb;class Mfe{constructor(t){this.routines=t}step1(t,n,r){return Hx(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=_fe(this.routines.parameters,s,r,o);return new Zb(this.routines,t,n,r,o,i)})}}_d.SRPServerSession=Mfe;class Zb{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 Hx(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 Tfe(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Hx(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 Zb(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}_d.SRPServerSessionStep1=Zb;const _fe=(e,t,n,r)=>(Ux.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,Tfe=(e,t,n,r,o)=>Ux.modPow(Ux.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=Kb;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=qb;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=Yb;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 $fe(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 Rfe(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 Rfe(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))})}window._=nt;const Kw=Jb();Object.assign(Kw,{getPluginKey:()=>dO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=dO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>Kw.plugins[Kw.getPluginKey()]||{}});function dO(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 U4(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 W4(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 Ofe(){return window.innerWidth<800}function Jb(){return window.HFS}function G4(){return Jb().prefixUrl||""}function Dfe(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,nt.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=nt.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}var jk={},Afe=et;Object.defineProperty(jk,"__esModule",{value:!0});var Hk=jk.default=void 0,Lfe=Afe(tt()),Ffe=Ze(),Nfe=(0,Lfe.default)((0,Ffe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Hk=jk.default=Nfe;var Uk={},Bfe=et;Object.defineProperty(Uk,"__esModule",{value:!0});var zh=Uk.default=void 0,zfe=Bfe(tt()),Vfe=Ze(),jfe=(0,zfe.default)((0,Vfe.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");zh=Uk.default=jfe;var Wk={},Hfe=et;Object.defineProperty(Wk,"__esModule",{value:!0});var e0=Wk.default=void 0,Ufe=Hfe(tt()),Wfe=Ze(),Gfe=(0,Ufe.default)((0,Wfe.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");e0=Wk.default=Gfe;var Gk={},Kfe=et;Object.defineProperty(Gk,"__esModule",{value:!0});var K4=Gk.default=void 0,qfe=Kfe(tt()),Yfe=Ze(),Qfe=(0,qfe.default)((0,Yfe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");K4=Gk.default=Qfe;var Kk={},Xfe=et;Object.defineProperty(Kk,"__esModule",{value:!0});var Xv=Kk.default=void 0,Zfe=Xfe(tt()),Jfe=Ze(),epe=(0,Zfe.default)((0,Jfe.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=Kk.default=epe;var qk={},tpe=et;Object.defineProperty(qk,"__esModule",{value:!0});var t0=qk.default=void 0,npe=tpe(tt()),rpe=Ze(),ope=(0,npe.default)((0,rpe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t0=qk.default=ope;var Yk={},spe=et;Object.defineProperty(Yk,"__esModule",{value:!0});var Vh=Yk.default=void 0,ipe=spe(tt()),lpe=Ze(),ape=(0,ipe.default)((0,lpe.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");Vh=Yk.default=ape;function cpe(e){return Ke("MuiLoadingButton",e)}const upe=We("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),nl=upe,dpe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],fpe=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,cpe,r);return S({},r,s)},ppe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",hpe=oe(qn,{shouldForwardProp:e=>ppe(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})=>S({[`& .${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}})),mpe=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})=>S({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})),gpe=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,dpe),g=Kt(i),v=a!=null?a:L.jsx(zi,{"aria-labelledby":g,color:"inherit",size:16}),y=S({},r,{disabled:s,loading:l,loadingIndicator:v,loadingPosition:u,variant:f}),m=fpe(y),C=l?L.jsx(mpe,{className:m.loadingIndicator,ownerState:y,children:v}):null;return L.jsxs(hpe,S({disabled:s||l,id:g,ref:n},p,{variant:f,classes:m,ownerState:y,children:[y.loadingPosition==="end"?o:C,y.loadingPosition==="end"?C:o]}))}),q4=gpe;function Ui(g){var v=g,{value:e,onChange:t,min:n,max:r,required:o,setApi:s,typing:i,start:l,end:a,onTyping:u,suggestions:f}=v,p=Ft(v,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const y=e!=null?e:"";s==null||s({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[m,C]=c.useState(y),w=c.useRef(y);c.useEffect(()=>{C(y),w.current=y},[y]);const b=c.useRef(),x=_=>c.createElement(Na,xe(at(xe({fullWidth:!0,InputLabelProps:m||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:m,onChange(k){let I=k.target.value;if(u){const T=u(I);if(T===!1)return;I=T}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(wl,{position:"start"},l),endAdornment:a&&c.createElement(wl,{position:"end"},a)},p.InputProps)}),_));return f?c.createElement(Fh,{freeSolo:!0,options:f,renderInput:x}):x(null);function E(_,k=m){k=k.trim(),k!==w.current&&(w.current=k,t(k,{was:e,event:_,cancel(){C(y)}}))}}var Qk={},vpe=et;Object.defineProperty(Qk,"__esModule",{value:!0});var Y4=Qk.default=void 0,ype=vpe(tt()),bpe=Ze(),wpe=(0,ype.default)((0,bpe.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");Y4=Qk.default=wpe;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,at(xe(xe({},Q4(e)),i),{onChange(a){try{let u=a.target.value;u=JSON.parse(u),n(u,{was:t,event:a})}catch(u){}}}))}function n0(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=Q4(at(xe({clearValue:[]},e),{clearable:!1})),{select:p,InputProps:g}=w,v=Ft(w,["select","InputProps"]),y=c.useMemo(()=>X4(o),[o]),m=c.useMemo(()=>Array.isArray(t)?t.map(b=>y.find(x=>x.value===b)||{value:b,label:String(b)}):[],[t,y]);return c.createElement(Fh,at(xe(xe({multiple:!0,options:y,filterSelectedOptions:!0,onChange:(b,x)=>n(x.map(E=>E.value),{was:t,event:b}),isOptionEqualToValue:(b,x)=>b.value===x.value,getOptionLabel:b=>b.label,renderOption:(b,x)=>c.createElement("span",b,x.label)},v),u),{value:m,renderInput:b=>c.createElement(Na,xe(at(xe({},f),{placeholder:m.length?void 0:a,SelectProps:{multiple:!0},sx:at(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 Q4(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=X4(t),u=JSON.stringify(l),f=a.find(g=>JSON.stringify(g.value)===u),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?u:"",disabled:!(a!=null&&a.length)||n,InputProps:xe({startAdornment:(r||p)&&c.createElement(wl,{position:"start"},p&&c.createElement(Il,{title:"Clear",children:c.createElement(pr,{onClick(g){e.onChange(i,{was:l,event:g})}},c.createElement(Y4))}),r),endAdornment:o&&c.createElement(wl,{position:"end"},o)},e.InputProps),children:a.map((g,v)=>c.createElement(Pr,{key:v,value:JSON.stringify(g==null?void 0:g.value),children:c.createElement(c.Fragment,{key:v},g==null?void 0:g.label)}))}}function X4(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(Ui,at(xe({},n),{value:e,disabled:!0}))}function Ss(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(Ui,xe({type:"number",value:e==null?"":String(e),onChange(p,y){var m=y,{was:g}=m,v=Ft(m,["was"]);t(p?Number(p):null,at(xe({},v),{was:g?Number(g):null}))},inputProps:{min:o,max:s,step:i},InputProps:nt.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:c.createElement(wl,{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,g]=c.useState(f);c.useEffect(()=>g(f),[t]);const v=c.createElement(u4,at(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(GN,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 m=y,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:s,addToBar:i=[],barSx:l,formRef:a,onError:u,saveOnEnter:f,gridProps:p,formProps:g}=m,v=Ft(m,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const C=c.useRef(!1);c.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const[w,b]=c.useState({}),[x,E]=c.useState({}),_=typeof o=="function"?{onClick:o}:o,[k,I]=c.useState(0),T=c.useRef(!1),D=c.useRef("");c.useEffect(()=>void M(),[k]);const R={},A={};return c.createElement("form",at(xe({ref:a&&($=>a.current=$||void 0)},g),{onSubmit($){$.preventDefault()},onKeyDown($){_&&!_.disabled&&($.ctrlKey||$.metaKey)&&$.key==="Enter"&&V()}}),c.createElement(ze,xe({display:"flex",flexDirection:"column",gap:3},v),c.createElement(ri,xe({container:!0,rowSpacing:3,columnSpacing:1},p),e.map(($,F)=>{if(!$)return null;if(c.isValidElement($))return c.createElement(ri,{key:F,item:!0,xs:12},$);const Q=$,{k:B,fromField:O=nt.identity,toField:N=nt.identity,getError:H,error:K}=Q,Y=Ft(Q,["k","fromField","toField","getError","error"]);let te=w[B]||K||x[B];if(te===!0&&(te="Not valid"),B){const J=$.hasOwnProperty("value")?$.value:t==null?void 0:t[B],se=xe(xe({},$),Y);Object.assign(Y,{value:N(J),error:!!(te||K)||void 0,setApi(Z){A[B]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&V()},onChange(Z){var he;try{if(Z=O(Z,{originalValue:J}),E(ne=>at(xe({},ne),{[B]:!1})),(((he=A[B])==null?void 0:he.isEqual)||nt.isEqual)(Z,J))return;n(Z,B),j(B)}catch(ne){E(re=>at(xe({},re),{[B]:(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=Z4(B)),nt.defaults(Y,r==null?void 0:r(se))}{const X=Y,{xs:J=12,sm:se,md:Z,lg:he,xl:ne,comp:re=Ui,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:B});const Ie=R[B]=(R[B]||0)+1;return c.createElement(ri,{key:B?B+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(q4,at(xe({variant:"contained",startIcon:c.createElement(Vh),children:"Save",loading:Lk(k!==0)},_),{onClick:V})),...i)));function V(){T.current=!0,j()}function j($=""){k===0&&(D.current=$,setTimeout(()=>I(F=>F===0?1:F)))}function M(){return ot(this,null,function*(){var B,O,N;if(k===0)return;if(k===1)return I(2);const $="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(O=(B=A[K])==null?void 0:B.getError)==null?void 0:O.call(B,Y,{values:t,fields:e}))||(yield(N=H.getError)==null?void 0:N.call(H,Y,{values:t,fields:e}))||x[K];if(F[K]=te||!1,!T.current&&K===D.current)break;if(!C.current)return}b(F);try{if(!T.current)return;if(Object.values(F).some(Boolean))return yield u==null?void 0:u($);const H=_&&_.onClick;H&&(yield H())}catch(H){yield u==null?void 0:u(H)}finally{T.current=!1,C.current&&I(0)}})}}function Z4(e){return nt.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function J4(){return Db("(prefers-color-scheme: dark)")}const Cpe={};function xpe(){const e=J4()?null:Cpe;return c.useMemo(()=>YP({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}const Spe={"`":"code","*":"i","**":"b"};function Jn(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),Xk(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(Spe[r[1]]||c.Fragment,{},n(r[2])):c.createElement(r[6]||r[8],{},r[7]),n)}function Xk(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)))}jx.Container=function(t){const n=c.useRef(),{width:r,height:o}=Wb(),s=r>0&&Math.min(r,o)<500;c.useEffect(()=>{const p=setTimeout(()=>{const g=n.current;g&&(g.focus(),!s&&(Qv("[autofocus]")||Qv("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=Zk();t=xe(xe({},jx),t);const f=t.dialogProps||{},{sx:l,root:a}=f,u=Ft(f,["sx","root"]);return t.noFrame?c.createElement(Ob,{open:!0,children:c.createElement(jh,{},c.createElement(t.Content))}):c.createElement(NN,at(xe(xe({open:!0,maxWidth:"lg",fullScreen:s},u),a),{className:t.className,onClose:()=>Vi()}),t.title&&c.createElement(Xre,{sx:xe({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},i)},t.icon&&c.createElement(ze,{mr:1},Yv(t.icon)),c.createElement(ze,{flex:1,minWidth:40},Yv(t.title)),c.createElement(mn,{icon:zh,title:"close",sx:{ml:1},onClick:()=>Vi()})),c.createElement(BN,{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 Zk(){return J4()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const e5={error:e0,warning:t0,info:Xv,success:Hk};function kt(e,t){const n=typeof t=="string"?{type:t}:t!=null?t:{};let l=n,{type:r="info"}=l,o=Ft(l,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const s=Dk(),i=Ro(at(xe({className:"dialog-alert dialog-alert-"+r,icon:"!",onClose:s.resolve},o),{Content(){var a;return c.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},c.createElement(pr,{onClick(){i.close()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},c.createElement(zh)),(a=n.icon)!=null?a:c.createElement(e5[r],{color:r,fontSize:"large"}),c.isValidElement(e)?e:c.createElement(ze,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}));return Object.assign(s,i)}function xr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=Ft(i,["href","confirmText","dontText"]);const l=Dk(),a=Ro(at(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"?Jn(e):e),c.createElement(qr,{},c.createElement("a",{href:t,onClick:()=>Vi(!0)},c.createElement(qn,{variant:"contained"},n)),c.createElement(qn,{onClick:()=>Vi(!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=>Ro(at(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,at(xe({},f),{values:i,set(g,v){l(y=>{const m=at(xe({},y),{[v]:g});return a==null||a(m,{setValues:l}),m})},save:at(xe({},f.save),{onClick(){Vi(i)}})})))}})}function Jk(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(at(xe({},s),{values:{text:t},form:{fields:[at(xe({k:"text",label:null,autoFocus:!0},n),{before:c.createElement(ze,{mb:2},e)})],save:xe({children:"Continue",startIcon:c.createElement(K4)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[c.createElement(qn,{onClick:Vi},"Cancel"),...o]}})).then(u=>u==null?void 0:u.text)})}function t5(){return Ro({Content:()=>c.createElement(zi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function nr(e,t="info",n){const o=Ro(at(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(e5[t],{color:t}),c.isValidElement(e)?e:c.createElement("div",{},String(e)))}}function n5(){return c.createElement(zi)}function Yo(e){return Db(t=>t.breakpoints.up(e),{noSsr:!0})}function r5({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(zi,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),c.createElement(Il,{title:c.createElement(c.Fragment,{},$de(t),r),children:c.createElement(zi,{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:mde+e,target:"help"},t)}function r0(e,t){return c.createElement(mn,xe({icon:Fb,title:"Reload",onClick:e},t))}function Zd(e){return e?{outline:"2px solid"}:void 0}const mn=c.forwardRef((g,p)=>{var v=g,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,sx:u}=v,f=Ft(v,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","sx"]);const[y,m]=Co(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s));let C=c.createElement(pr,at(xe({ref:p,disabled:!!(y||o||r)},f),{sx:xe({height:"fit-content"},u),onClick(...b){return ot(this,null,function*(){if(l&&!(yield xr(l)))return;const x=n==null?void 0:n.apply(this,b);x&&x instanceof Promise&&(m(!0),x.then(E=>E!==!1&&o5(a),kt).finally(()=>m(!1)))})}}),(o||y)&&o!==!1&&c.createElement(zi,at(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(Il,at(xe({title:e},i),{children:c.createElement("span",{},C)}))),C});function Qo(g){var v=g,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,labelFrom:u,children:f}=v,p=Ft(v,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","labelFrom","children"]);const[y,m]=Co(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Yo(u||"xs");let w=c.createElement(q4,at(xe({variant:"contained",startIcon:e&&c.createElement(e),loading:!!(y||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:c.createElement(zi,{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(...x){return ot(this,null,function*(){if(l&&!(yield xr(l===!0?"Are you sure?":l)))return;const E=n==null?void 0:n.apply(this,x);E&&E instanceof Promise&&(m(!0),E.then(_=>_!==!1&&o5(a),kt).finally(()=>m(!1)))})}}));return t&&(w=c.createElement(Il,at(xe({title:t},i),{children:c.createElement("span",{},w)}))),w}function o5(e){e&&nr(e===!0?"Operation completed":e,"success")}function Wr(e,t,n){return c.createElement(Il,{title:t,children:c.createElement(e,{sx:xe({verticalAlign:"bottom"},n)})})}function o0(e){return c.createElement(Ls,xe({component:TP},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 la(t){var e=Ft(t,[]);return c.createElement(Ls,at(xe({},e),{sx:xe({cursor:"pointer"},e.sx)}))}function s5(){const[e,t]=i5(n=>({title:n?"Pause":"Resume",icon:n?w4:Lb,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function i5(e,t=!1){const[n,r]=c.useState(t),o=c.useCallback(()=>r(l=>!l),[]),s=e(n),i=c.createElement(mn,at(xe({size:"small",color:n?"primary":"default"},s),{sx:xe({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function Ppe(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 l5(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function a5(e,t,n,r){let o=e[t];return Bk(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const c5="admin_state",ln=Nk(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[c5]||null))),u5=["onlinePluginsColumns"],kpe=nt.debounce(()=>localStorage[c5]=JSON.stringify(nt.pick(ln,u5)),500,{maxWait:1e3});for(const e of u5)a5(ln,e,kpe);function Wi(){return zk(ln)}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[es]}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)===Ope}(e)||Array.isArray(e)||!!e[bO]||!!(!((t=e.constructor)===null||t===void 0)&&t[bO])||eE(e)||tE(e))}function dh(e,t,n){n===void 0&&(n=!1),Jd(e)===0?(n?Object.keys:iE)(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[es];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:eE(e)?2:tE(e)?3:0}function Wx(e,t){return Jd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Epe(e,t){return Jd(e)===2?e.get(t):e[t]}function d5(e,t,n){var r=Jd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Ipe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eE(e){return $pe&&e instanceof Map}function tE(e){return Rpe&&e instanceof Set}function oc(e){return e.o||e.t}function nE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dpe(e);delete t[es];for(var n=iE(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 rE(e,t){return t===void 0&&(t=!1),oE(e)||Td(e)||!Dc(e)||(Jd(e)>1&&(e.set=e.add=e.clear=e.delete=Mpe),Object.freeze(e),t&&dh(e,function(n,r){return rE(r,!0)},!0)),e}function Mpe(){ni(2)}function oE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Di(e){var t=Ape[e];return t||ni(18,e),t}function fO(){return fh}function qw(e,t){t&&(Di("Patches"),e.u=[],e.s=[],e.v=t)}function Zv(e){Gx(e),e.p.forEach(_pe),e.p=null}function Gx(e){e===fh&&(fh=e.l)}function pO(e){return fh={p:[],l:fh,h:e,m:!0,_:0}}function _pe(e){var t=e[es];t.i===0||t.i===1?t.j():t.g=!0}function Yw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Di("ES5").S(t,e,r),r?(n[es].P&&(Zv(t),ni(4)),Dc(e)&&(e=Jv(t,e),t.l||ey(t,e)),t.u&&Di("Patches").M(n[es].t,e,t.u,t.s)):e=Jv(t,n,[]),Zv(t),t.u&&t.v(t.u,t.s),e!==f5?e:void 0}function Jv(e,t,n){if(oE(t))return t;var r=t[es];if(!r)return dh(t,function(l,a){return hO(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=nE(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 hO(e,r,o,l,a,n,i)}),ey(e,o,!1),n&&e.u&&Di("Patches").N(r,n,e.u,e.s)}return r.o}function hO(e,t,n,r,o,s,i){if(Td(o)){var l=Jv(e,o,s&&t&&t.i!==3&&!Wx(t.R,r)?s.concat(r):void 0);if(d5(n,r,l),!Td(l))return;e.m=!1}else i&&n.add(o);if(Dc(o)&&!oE(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&&rE(t,n)}function Qw(e,t){var n=e[es];return(n?oc(n):e)[t]}function mO(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 Kx(e){e.P||(e.P=!0,e.l&&Kx(e.l))}function Xw(e){e.o||(e.o=nE(e.t))}function qx(e,t,n){var r=eE(t)?Di("MapSet").F(t,n):tE(t)?Di("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:fO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,u=Yx;i&&(a=[l],u=ap);var f=Proxy.revocable(a,u),p=f.revoke,g=f.proxy;return l.k=g,l.j=p,g}(t,n):Di("ES5").J(t,n);return(n?n.A:fO()).p.push(r),r}function Tpe(e){return Td(e)||ni(22,e),function t(n){if(!Dc(n))return n;var r,o=n[es],s=Jd(n);if(o){if(!o.P&&(o.i<4||!Di("ES5").K(o)))return o.t;o.I=!0,r=gO(n,s),o.I=!1}else r=gO(n,s);return dh(r,function(i,l){o&&Epe(o.t,i)===l||d5(r,i,t(l))}),s===3?new Set(r):r}(e)}function gO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nE(e)}var vO,fh,sE=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",$pe=typeof Map!="undefined",Rpe=typeof Set!="undefined",yO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",f5=sE?Symbol.for("immer-nothing"):((vO={})["immer-nothing"]=!0,vO),bO=sE?Symbol.for("immer-draftable"):"__$immer_draftable",es=sE?Symbol.for("immer-state"):"__$immer_state",Ope=""+Object.prototype.constructor,iE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dpe=Object.getOwnPropertyDescriptors||function(e){var t={};return iE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Ape={},Yx={get:function(e,t){if(t===es)return e;var n=oc(e);if(!Wx(n,t))return function(o,s,i){var l,a=mO(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===Qw(e.t,t)?(Xw(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=mO(oc(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Qw(oc(e),t),s=o==null?void 0:o[es];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Ipe(n,o)&&(n!==void 0||Wx(e.t,t)))return!0;Xw(e),Kx(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 Qw(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Xw(e),Kx(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(Yx,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 Yx.set.call(this,e[0],t,n,e[0])};var Lpe=function(){function e(n){var r=this;this.O=yO,this.D=!0,this.produce=function(o,s,i){if(typeof o=="function"&&typeof s!="function"){var l=s;s=o;var a=r;return function(m){var C=this;m===void 0&&(m=l);for(var w=arguments.length,b=Array(w>1?w-1:0),x=1;x<w;x++)b[x-1]=arguments[x];return a.produce(m,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=pO(r),p=qx(r,o,void 0),g=!0;try{u=s(p),g=!1}finally{g?Zv(f):Gx(f)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(m){return qw(f,i),Yw(m,f)},function(m){throw Zv(f),m}):(qw(f,i),Yw(u,f))}if(!o||typeof o!="object"){if((u=s(o))===void 0&&(u=o),u===f5&&(u=void 0),r.D&&rE(u,!0),i){var v=[],y=[];Di("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),g=1;g<f;g++)p[g-1]=arguments[g];return r.produceWithPatches(u,function(v){return o.apply(void 0,[v].concat(p))})};var i,l,a=r.produce(o,s,function(u,f){i=u,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(u){return[u,i,l]}):[a,i,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Dc(n)||ni(8),Td(n)&&(n=Tpe(n));var r=pO(this),o=qx(this,n,void 0);return o[es].C=!0,Gx(r),o},t.finishDraft=function(n,r){var o=n&&n[es],s=o.A;return qw(s,r),Yw(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!yO&&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=Di("Patches").$;return Td(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),ts=new Lpe,Fpe=ts.produce;ts.produceWithPatches.bind(ts);ts.setAutoFreeze.bind(ts);ts.setUseProxies.bind(ts);ts.applyPatches.bind(ts);ts.createDraft.bind(ts);ts.finishDraft.bind(ts);const Npe=Fpe;Wde({onResponse(e,t){return ot(this,null,function*(){if(e.status===Xd)throw ln.loginRequired=(t==null?void 0:t.possible)!==!1||Vb,new R4(e.status,"Unauthorized")})}});const Bpe={timeout:"Operation timeout"};function Yn(...e){const t=O4(...e);return at(xe({},t),{element:c.useMemo(()=>e[0]?t.error?c.createElement(kr,{severity:"error"},Ak(String(t.error),Bpe),c.createElement(mn,{icon:Fb,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?n5():null:null,Object.values(t))})}function xl(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=Co([]),[l,a]=Co(void 0),[u,f]=Co(void 0),[p,g]=Co(!0),[v,y]=Co(!1),[m,C]=Co(!0),[w,b]=c.useState(0),x=c.useRef(0),[E,_]=c.useState();return c.useEffect(()=>_(o?s:void 0),[o]),c.useEffect(()=>{if(!e)return;const D=[],R=nt.debounce(()=>{const j=D.splice(0,1/0);j.length&&(r&&j.reverse(),i(M=>r?[...j,...M]:[...M,...j]))},1e3,{maxWait:1e3});f(void 0),y(!0),g(!0),C(!0),i([]);const A=D4(e,t,(j,M)=>{switch(j){case"connected":return g(!1),setTimeout(()=>R.flush());case"error":return f("Connection error"),setTimeout(k,1e3),V();case"closed":return V();case"msg":const $=[],F=[];Ub(M).forEach(B=>{var H,K;if(!Array.isArray(B))return console.debug("illegal list packet",B);const[O,N]=B;if(O===gu.ready){R.flush(),C(!1);return}if(O===gu.error){N===Xd?ln.loginRequired=B[2].possible!==!1||Vb:f(l5(N));return}if(O===gu.props)return a(N);if(O===gu.add){const Y=(H=n==null?void 0:n(N))!=null?H:N;(K=Y.id)!=null||(Y.id=x.current=Math.max(x.current,Date.now())+.001),D.push(Y),R();return}if(O===gu.remove){const Y=nt.matches(N);nt.isEmpty(nt.remove(D,Y))&&$.push(Y);return}if(O===gu.update){const Y=B[2],te=nt.find(D,N);if(te)return Object.assign(te,Y);F.push([N,Y]);return}console.debug("unknown list api",O)}),i(B=>{let O=B,N;if($.length&&(N=B.filter(H=>!$.some(K=>K(H))),N.length<B.length&&(O=N)),F.length)for(const[H,K]of F){const Y=nt.findIndex(O,H);Y<0||(O===B&&(O=N!=null?N:B.slice()),O[Y]=xe(xe({},O[Y]),K))}return O}),(A==null?void 0:A.readyState)===(A==null?void 0:A.CLOSED)&&V()}});return()=>A.close();function V(){C(!1),y(!1),R.flush()}},[w,e,JSON.stringify(t)]),{list:E!=null?E:s,props:l,loading:v,error:u,initializing:m,connecting:p,setList:i,updateList:I,updateEntry:T,reload:k};function k(){b(D=>D+1)}function I(D){i(Npe(s,R=>{D(R)}))}function T(D,R){I(A=>{const V=nt.find(A,D);V&&Object.assign(V,R)})}}var lE={},zpe=et;Object.defineProperty(lE,"__esModule",{value:!0});var p5=lE.default=void 0,Vpe=zpe(tt()),jpe=Ze(),Hpe=(0,Vpe.default)((0,jpe.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");p5=lE.default=Hpe;var aE={},Upe=et;Object.defineProperty(aE,"__esModule",{value:!0});var s0=aE.default=void 0,Wpe=Upe(tt()),Gpe=Ze(),Kpe=(0,Wpe.default)((0,Gpe.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");s0=aE.default=Kpe;var cE={},qpe=et;Object.defineProperty(cE,"__esModule",{value:!0});var h5=cE.default=void 0,Ype=qpe(tt()),Qpe=Ze(),Xpe=(0,Ype.default)((0,Qpe.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");h5=cE.default=Xpe;var uE={},Zpe=et;Object.defineProperty(uE,"__esModule",{value:!0});var m5=uE.default=void 0,Jpe=Zpe(tt()),ehe=Ze(),the=(0,Jpe.default)((0,ehe.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");m5=uE.default=the;var dE={},nhe=et;Object.defineProperty(dE,"__esModule",{value:!0});var Hh=dE.default=void 0,rhe=nhe(tt()),ohe=Ze(),she=(0,rhe.default)((0,ohe.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Hh=dE.default=she;var fE={},ihe=et;Object.defineProperty(fE,"__esModule",{value:!0});var pE=fE.default=void 0,lhe=ihe(tt()),ahe=Ze(),che=(0,lhe.default)((0,ahe.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");pE=fE.default=che;const g5=c.createContext(void 0);function Vt(){const e=c.useContext(g5);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 uhe=()=>c.useRef({}),v5=c.createContext(void 0),ut=()=>{const e=c.useContext(v5);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},y5=c.createContext(void 0);function Ba(){const e=c.useContext(y5);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 wO={};function hE(e,t){const n=c.useRef(wO);return n.current===wO&&(n.current=e(t)),n}const dhe=[];function b5(e){c.useEffect(e,dhe)}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))}},fhe=Object.is;function w5(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,!fhe(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 phe(e){return e.acceptsApiRef}function CO(e,t){return phe(t)?t(e):t(e.current.state)}const hhe=Object.is,mE=w5,mhe=()=>({state:null,equals:null,selector:null}),rt=(e,t,n=hhe)=>{const r=hE(mhe),o=r.current.selector!==null,[s,i]=c.useState(o?null:CO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,b5(()=>e.current.store.subscribe(()=>{const l=CO(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 ghe(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 vhe(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 yhe=function(t,n){return t===n};function bhe(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 i0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?yhe:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=bhe(o),u=i===1?ghe(a):vhe(i,a);function f(){var p=u.get(arguments);if(p===ty){if(p=e.apply(null,arguments),l){var g=u.getEntries(),v=g.find(function(y){return l(y.value,p)});v&&(p=v.value)}u.put(arguments,p)}return p}return f.clearCache=function(){return u.clear()},f}function whe(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 Che(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];var u=0,f,p={memoizeOptions:void 0},g=l.pop();if(typeof g=="object"&&(p=g,g=l.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var v=p,y=v.memoizeOptions,m=y===void 0?n:y,C=Array.isArray(m)?m:[m],w=whe(l),b=e.apply(void 0,[function(){return u++,g.apply(null,arguments)}].concat(C)),x=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(x,{resultFunc:g,memoizedResultFunc:b,dependencies:w,lastResult:function(){return f},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),x};return o}var xhe=Che(i0);const She={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,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p),C=r(g,p),w=o(g,p);return s(v,y,m,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,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p),C=r(g,p);return o(v,y,m,C)};else if(e&&t&&n&&r)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,g=f?a.current.state:a,v=e(g,p),y=t(g,p),m=n(g,p);return r(v,y,m)};else if(e&&t&&n)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,g=f?a.current.state:a,v=e(g,p),y=t(g,p);return n(v,y)};else if(e&&t)l=(a,u)=>{const f=Iu(a),p=u!=null?u:f?a.current.instanceId:Mu,g=f?a.current.state:a,v=e(g,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}=She;if(f.get(a)&&(r=f.get(a))!=null&&r.get(e)){var p;return(p=f.get(a))==null?void 0:p.get(e)(u,a)}const g=xhe(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,g),g(u,a)};return t.acceptsApiRef=!0,t},vc=e=>e.columns,hl=_t(vc,e=>e.orderedFields),ef=_t(vc,e=>e.lookup),Ai=_n(hl,ef,(e,t)=>e.map(n=>t[n])),oi=_t(vc,e=>e.columnVisibilityModel),Ar=_n(Ai,oi,(e,t)=>e.filter(n=>t[n.field]!==!1)),l0=_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}),gE=_t(Ar,$d,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),C5=_n(Ai,e=>e.filter(t=>t.filterable)),Phe=_n(Ai,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),a0=e=>e.columnGrouping,khe=_n(a0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),x5=_n(a0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),Ehe=_n(a0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Uh=_t(a0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),fi=e=>e.rows,c0=_t(fi,e=>e.totalRowCount),Ihe=_t(fi,e=>e.loading),Mhe=_t(fi,e=>e.totalTopLevelRowCount),aa=_t(fi,e=>e.dataRowIdToModelLookup),ny=_t(fi,e=>e.dataRowIdToIdLookup),ei=_t(fi,e=>e.tree),_he=_t(fi,e=>e.groupingName),xO=_t(fi,e=>e.treeDepths),u0=_n(fi,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(fi,e=>e.dataRowIds),The=_t(fi,e=>e==null?void 0:e.additionalRowGroups),tf=_n(The,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:{}}})}}),$he=_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)}),S5=()=>{var e;const t=Ba(),n=ut(),r=rt(t,Ar),o=rt(t,c0),s=rt(t,Uh),i=rt(t,$he);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}},Rhe=e=>{const{classes:t}=e;return Te({root:["main"]},jt,t)},Ohe=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),Dhe=c.forwardRef((e,t)=>{var n;const r=ut(),o=Rhe(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?S5:null,i=typeof s=="function"?s():null;return L.jsx(Ohe,S({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),P5=e=>e.sorting,vE=_t(P5,e=>e.sortedRows),yE=_n(vE,aa,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),ws=_t(P5,e=>e.sortModel),Ahe=_n(ws,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),bE=e=>e.filter,Or=_t(bE,e=>e.filterModel);_t(Or,e=>e.quickFilterValues);const Lhe=e=>e.visibleRowsLookup,k5=_t(bE,e=>e.filteredRowsLookup);_t(bE,e=>e.filteredDescendantCountLookup);const za=_n(Lhe,yE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Rp=_n(za,e=>e.map(t=>t.id)),Fhe=_n(k5,yE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Nhe=_n(Fhe,e=>e.map(t=>t.id)),E5=_n(za,ei,u0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),I5=_t(za,e=>e.length),d0=_t(E5,e=>e.length),Bhe=_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})}),zhe=_n(Bhe,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),f0=e=>e.focus,Vo=_t(f0,e=>e.cell),Vhe=_t(f0,e=>e.columnHeader);_t(f0,e=>e.columnHeaderFilter);const ry=_t(f0,e=>e.columnGroupHeader),p0=e=>e.tabIndex,oy=_t(p0,e=>e.cell),M5=_t(p0,e=>e.columnHeader);_t(p0,e=>e.columnHeaderFilter);const jhe=_t(p0,e=>e.columnGroupHeader),wE=e=>e.density,Hhe=_t(wE,e=>e.value),nf=_t(wE,e=>e.factor),Qx=e=>e.columnMenu;function Uhe(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Ba(),s=ut(),i=c.useRef(null),l=rt(o,Ar),a=rt(o,zhe),u=rt(o,Ahe),f=rt(o,$d),p=rt(o,M5),g=rt(o,oy),v=rt(o,jhe),y=rt(o,Vhe),m=rt(o,ry),C=rt(o,nf),w=rt(o,Uh),b=rt(o,Qx),x=rt(o,oi),E=rt(o,Ehe),_=!(v===null&&p===null&&g===null);Nt(()=>{o.current.computeSizeAndPublishResizeEvent();const R=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let A;const V=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return R&&V.observe(R),()=>{A&&window.cancelAnimationFrame(A),R&&V.unobserve(R)}},[o]);const k=c.useRef(null),I=c.useRef(null),T=c.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:I,columnHeadersElementRef:k,virtualScrollerRef:T,mainElementRef:i});const D=!!o.current.getRootDimensions();return L.jsxs(Dhe,{ref:i,children:[L.jsx(s.slots.columnHeaders,S({ref:I,innerRef:k,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:u,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:v,columnHeaderFocus:y,columnGroupHeaderFocus:m,densityFactor:C,headerGroupingMaxDepth:w,columnMenuState:b,columnVisibility:x,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:_},n)),D&&L.jsx(t,{ref:T}),r]})}function Whe(){var e;const t=ut();return t.hideFooter?null:L.jsx(t.slots.footer,S({},(e=t.slotProps)==null?void 0:e.footer))}const ao="auto-generated-group-node-root",od=Symbol("mui.id_autogenerated"),Ghe=()=>({type:"group",id:ao,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Khe(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 Khe(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}},_5=({tree:e,rowCountProp:t=0})=>{const n=e[ao];return Math.max(t,n.children.length+(n.footerId==null?0:1))},T5=({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:{}},S({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:_5({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,CE=(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(...CE(e,i,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},qhe=({previousCache:e,getRowId:t,updates:n})=>{var r,o,s;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const i=new Map;n.forEach(g=>{const v=sy(g,t,"A row was provided without id when calling updateRows():");i.has(v)?i.set(v,S({},i.get(v),g)):i.set(v,g)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(s=e.updates.actions.remove)!=null?s:[]]},idToActionLookup:S({},e.updates.idToActionLookup)},a=S({},e.dataRowIdToModelLookup),u=S({},e.dataRowIdToIdLookup),f={insert:{},modify:{},remove:{}};i.forEach((g,v)=>{const y=l.idToActionLookup[v];if(g._action==="delete"){if(y==="remove"||!a[v])return;y!=null&&(f[y][v]=!0),l.actions.remove.push(v),delete a[v],delete u[v];return}const m=a[v];if(m){y==="remove"?(f.remove[v]=!0,l.actions.modify.push(v)):y==null&&l.actions.modify.push(v),a[v]=S({},m,g);return}y==="remove"?(f.remove[v]=!0,l.actions.insert.push(v)):y==null&&l.actions.insert.push(v),a[v]=g,u[v]=v});const p=Object.keys(f);for(let g=0;g<p.length;g+=1){const v=p[g],y=f[v];Object.keys(y).length>0&&(l.actions[v]=l.actions[v].filter(m=>!y[m]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function $5(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 R5(e,t){const n=nf(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Yhe=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})),Qhe=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Xhe=e=>{const{classes:t}=e;return Te({root:["overlayWrapper"],inner:["overlayWrapperInner"]},jt,t)};function Zhe(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=R5(r,o.rowHeight));const u=Xhe(S({},e,{classes:o.classes}));return s?L.jsx(Yhe,{className:Ce(u.root),overlayType:e.overlayType,children:L.jsx(Qhe,S({className:Ce(u.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function Jhe(){const e=Vt(),t=ut(),n=rt(e,c0),r=rt(e,I5),o=rt(e,Ihe),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var u;l=L.jsx(t.slots.noRowsOverlay,S({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=L.jsx(t.slots.noResultsOverlay,S({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=L.jsx(t.slots.loadingOverlay,S({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:L.jsx(Zhe,{overlayType:a,children:l})}function h0(e){return c.memo(e,w5)}let Zw;function eme(){return Zw===void 0&&document.createElement("div").focus({get preventScroll(){return Zw=!0,!1}}),Zw}var ji=function(e){return e.Cell="cell",e.Row="row",e}(ji||{}),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||{}),Wl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Wl||{}),Xs=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Xs||{}),Gl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Gl||{}),rl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(rl||{});function O5(e){return e.field!==void 0}function tme(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function nme(e,t){return e.closest(`.${t}`)}function xE(e){return e.replace(/["\\]/g,"\\$&")}function rme(e,t){return e.querySelector(`[role="columnheader"][data-field="${xE(t)}"]`)}function D5(e){return`.${ue.row}[data-id="${xE(String(e))}"]`}function ome(e,t){return e.querySelector(D5(t))}function sme(e,{id:t,field:n}){const r=D5(t),o=`.${ue.cell}[data-field="${xE(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 ime(e,t){const{getRowId:n}=t,r=c.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=c.useCallback(y=>{const m=e.current.getRow(y);if(!m)throw new Hu(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:m}},[e]),s=c.useCallback((y,m)=>{const C=e.current.getRow(y),w=e.current.getRowNode(y);if(!C||!w)throw new Hu(`No row with id #${y} found`);const b=Vo(e),x=oy(e);return{id:y,field:m,row:C,rowNode:w,value:C[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(y,m),api:e.current,hasFocus:b!==null&&b.field===m&&b.id===y,tabIndex:x&&x.field===m&&x.id===y?0:-1}},[e]),i=c.useCallback((y,m)=>{const C=e.current.getColumn(m),w=e.current.getCellValue(y,m),b=e.current.getRow(y),x=e.current.getRowNode(y);if(!b||!x)throw new Hu(`No row with id #${y} found`);const E=Vo(e),_=oy(e),k={id:y,field:m,row:b,rowNode:x,colDef:C,cellMode:e.current.getCellMode(y,m),hasFocus:E!==null&&E.field===m&&E.id===y,tabIndex:_&&_.field===m&&_.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,m)=>{const C=e.current.getColumn(m);if(!C||!C.valueGetter){const w=e.current.getRow(y);if(!w)throw new Hu(`No row with id #${y} found`);return w[m]}return C.valueGetter(s(y,m))},[e,s]),a=c.useCallback((y,m)=>{var C;const w=od in y?y[od]:(C=n==null?void 0:n(y))!=null?C:y.id,b=m.field;return!m||!m.valueGetter?y[b]:m.valueGetter(s(w,b))},[s,n]),u=c.useCallback((y,m)=>{var C;const w=a(y,m);if(!m||!m.valueFormatter)return w;const b=(C=n?n(y):y.id)!=null?C:y[od],x=m.field;return m.valueFormatter({id:b,field:x,value:w,api:e.current})},[e,n,a]),f=c.useCallback(y=>e.current.rootElementRef.current?rme(e.current.rootElementRef.current,y):null,[e]),p=c.useCallback(y=>e.current.rootElementRef.current?ome(e.current.rootElementRef.current,y):null,[e]),g=c.useCallback((y,m)=>e.current.rootElementRef.current?sme(e.current.rootElementRef.current,{id:y,field:m}):null,[e]);At(e,{getCellValue:l,getCellParams:i,getCellElement:g,getRowValue:a,getRowFormattedValue:u,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const lme=["changeReason","unstable_updateValueOnRender"],ame=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],cme=["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:{}},ume=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)},dme=c.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Vt(),i=ut(),l=n.field,a=rt(s,()=>{try{const D=s.current.getCellParams(r,l);return D.api=s.current,D}catch(T){if(T instanceof Hu)return iy;throw T}},mE),u=rt(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===iy)return null;const{cellMode:f,hasFocus:p,isEditable:g,value:v,formattedValue:y}=a,m=n.type==="actions",C=(f==="view"||!g)&&!m?a.tabIndex:-1,{classes:w,getCellClassName:b}=i,x=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),b&&x.push(b(a));let E;if(o==null&&n.renderCell&&(E=n.renderCell(a),x.push(ue["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const T=s.current.getRowWithUpdatedValues(r,n.field),D=le(o,lme),R=S({},a,{row:T},D);E=n.renderEditCell(R),x.push(ue["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:_}=i,k=_.cell,I=S({},e,{ref:t,field:l,formattedValue:y,hasFocus:p,isEditable:g,isSelected:u,value:v,cellMode:f,children:E,tabIndex:C,className:Ce(x)});return c.createElement(k,I)}),fme=h0(dme),pme=c.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:u,colIndex:f,height:p,width:g,className:v,showRightBorder:y,colSpan:m,disableDragEvents:C,isNotVisible:w,onClick:b,onDoubleClick:x,onMouseDown:E,onMouseUp:_,onMouseOver:k,onKeyDown:I,onKeyUp:T,onDragEnter:D,onDragOver:R}=e,A=le(e,ame),V=Vt(),j=ut(),M=i.field,$=rt(V,()=>{try{const be=V.current.getCellParams(l,M);return be.api=V.current,be}catch(de){if(de instanceof Hu)return iy;throw de}},mE),F=rt(V,()=>V.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:M})),{cellMode:B,hasFocus:O,isEditable:N,value:H,formattedValue:K}=$,Y=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,V.current.getRowParams(l)).some(de=>!de.props.disabled)),te=(B==="view"||!N)&&!Y?$.tabIndex:-1,{classes:Q,getCellClassName:X}=j,J=V.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:M});i.cellClassName&&J.push(typeof i.cellClassName=="function"?i.cellClassName($):i.cellClassName),X&&J.push(X($));const se=K==null?H:K,Z=c.useRef(null),he=Et(t,Z),ne=c.useRef(null),re=(o=j.unstable_cellSelection)!=null?o:!1,me={align:u,showRightBorder:y,isEditable:N,classes:j.classes,isSelected:F,isSelectionMode:re},ce=ume(me),Se=c.useCallback(de=>be=>{const _e=V.current.getCellParams(l,M||"");V.current.publishEvent(de,_e,be),_&&_(be)},[V,M,_,l]),Ee=c.useCallback(de=>be=>{const _e=V.current.getCellParams(l,M||"");V.current.publishEvent(de,_e,be),E&&E(be)},[V,M,E,l]),ae=c.useCallback((de,be)=>_e=>{if(!V.current.getRow(l))return;const Ne=V.current.getCellParams(l,M||"");V.current.publishEvent(de,Ne,_e),be&&be(_e)},[V,M,l]),Ie=c.useMemo(()=>w?{padding:0,opacity:0,width:0,border:0}:{minWidth:g,maxWidth:g,minHeight:p,maxHeight:p==="auto"?"none":p},[g,p,w]);if(c.useEffect(()=>{if(!O||B===un.Edit)return;const de=fn(V.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(eme())_e.focus({preventScroll:!0});else{const Ne=V.current.getScrollPosition();_e.focus(),V.current.scroll(Ne)}}},[O,B,V]),$===iy)return null;let ye=A.onFocus,Me;if(a==null&&i.renderCell&&(Me=i.renderCell($),J.push(ue["cell--withRenderer"]),J.push(Q==null?void 0:Q["cell--withRenderer"])),a!=null&&i.renderEditCell){const de=V.current.getRowWithUpdatedValues(l,i.field),be=le(a,cme),_e=S({},$,{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=L.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",D),onDragOver:ae("cellDragOver",R)},fe=(s=j.experimentalFeatures)==null?void 0:s.ariaV7;return L.jsx("div",S({ref:he,className:Ce(v,J,ce.root),role:fe?"gridcell":"cell","data-field":M,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":m,style:Ie,tabIndex:te,onClick:ae("cellClick",b),onDoubleClick:ae("cellDoubleClick",x),onMouseOver:ae("cellMouseOver",k),onMouseDown:Ee("cellMouseDown"),onMouseUp:Se("cellMouseUp"),onKeyDown:ae("cellKeyDown",I),onKeyUp:ae("cellKeyUp",T)},pe,A,{onFocus:ye,children:Me}))}),Xx=h0(pme),hme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],mme=e=>{const{classes:t}=e;return Te({root:["booleanCell"]},jt,t)};function gme(e){const{value:t}=e,n=le(e,hme),r=Vt(),o=ut(),s={classes:o.classes},i=mme(s),l=c.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return L.jsx(l,S({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const vme=c.memo(gme),yme=e=>ph(e.rowNode)?"":L.jsx(vme,S({},e)),bme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],wme=e=>{const{classes:t}=e;return Te({root:["editBooleanCell"]},jt,t)};function Cme(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=le(e,bme),u=Vt(),f=c.useRef(null),p=Kt(),[g,v]=c.useState(r),y=ut(),m={classes:y.classes},C=wme(m),w=c.useCallback(b=>ot(this,null,function*(){const x=b.target.checked;l&&(yield l(b,x)),v(x),yield u.current.setEditCellValue({id:n,field:o,value:x},b)}),[u,o,n,l]);return c.useEffect(()=>{v(r)},[r]),Nt(()=>{i&&f.current.focus()},[i]),L.jsx("label",S({htmlFor:p,className:Ce(C.root,s)},a,{children:L.jsx(y.slots.baseCheckbox,S({id:p,inputRef:f,checked:!!g,onChange:w,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const xme=e=>L.jsx(Cme,S({},e)),Sme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Pme=oe(Gd)({fontSize:"inherit"}),kme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)};function Eme(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=le(e,Sme),u=o.type==="dateTime",f=Vt(),p=c.useRef(),g=c.useMemo(()=>{let I;n==null?I=null:n instanceof Date?I=n:I=new Date((n!=null?n:"").toString());let T;return I==null||Number.isNaN(I.getTime())?T="":T=new Date(I.getTime()-I.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:I,formatted:T}},[n,u]),[v,y]=c.useState(g),C={classes:ut().classes},w=kme(C),b=c.useRef(!1),x=c.useCallback(I=>{if(I==="")return null;const[T,D]=I.split("T"),[R,A,V]=T.split("-"),j=new Date;if(j.setFullYear(Number(R),Number(A)-1,Number(V)),j.setHours(0,0,0,0),D){const[M,$]=D.split(":");j.setHours(Number(M),Number($),0,0)}return j},[]),E=c.useCallback(I=>ot(this,null,function*(){const T=I.target.value,D=x(T);l&&(yield l(I,D)),y({parsed:D,formatted:T}),f.current.setEditCellValue({id:t,field:r,value:D},I)}),[f,r,t,l,x]);c.useEffect(()=>{y(I=>{var T,D;return g.parsed!==I.parsed&&((T=g.parsed)==null?void 0:T.getTime())!==((D=I.parsed)==null?void 0:D.getTime())?g:I})},[g]),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 T=p.current.value,D=x(T);y({parsed:D,formatted:T}),f.current.setEditCellValue({id:t,field:r,value:D}),b.current=!0}};return L.jsx(Pme,S({inputRef:k,fullWidth:!0,className:w.root,type:u?"datetime-local":"date",inputProps:S({max:u?"9999-12-31T23:59":"9999-12-31"},i),value:v.formatted,onChange:E},a))}const A5=e=>L.jsx(Eme,S({},e)),Ime=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Mme=e=>{const{classes:t}=e;return Te({root:["editInputCell"]},jt,t)},_me=oe(Gd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Tme=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,Ime),g=Vt(),v=c.useRef(),[y,m]=c.useState(o),C=Mme(n),w=c.useCallback(x=>ot(void 0,null,function*(){const E=x.target.value;f&&(yield f(x,E));const _=g.current.getColumn(s);let k=E;_.valueParser&&(k=_.valueParser(E,g.current.getCellParams(r,s))),m(k),g.current.setEditCellValue({id:r,field:s,value:k,debounceMs:a,unstable_skipValueParser:!0},x)}),[g,a,s,r,f]),b=g.current.unstable_getEditCellMeta(r,s);return c.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&m(o)},[b,o]),Nt(()=>{l&&v.current.focus()},[l]),L.jsx(_me,S({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?L.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),$me=e=>L.jsx(Tme,S({},e)),ly=e=>e==="Escape",Rme=e=>e==="Enter",L5=e=>e==="Tab",F5=e=>e===" ",Ome=e=>e.indexOf("Arrow")===0,Dme=e=>e==="Home"||e==="End",Ame=e=>e.indexOf("Page")===0;function N5(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const ay=e=>Dme(e)||Ome(e)||Ame(e)||F5(e),Lme=e=>!!e.key,Fme=e=>L5(e)||ly(e);function yc(e){return(e==null?void 0:e.type)==="singleSelect"}function Zx(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 Nme=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Bme=["MenuProps"];function zme(e){return!!e.key}function Vme(e){var t,n,r;const o=ut(),{id:s,value:i,field:l,row:a,colDef:u,hasFocus:f,error:p,onValueChange:g,initialOpen:v=o.editMode===ji.Cell,getOptionLabel:y,getOptionValue:m}=e,C=le(e,Nme),w=Vt(),b=c.useRef(),x=c.useRef(),[E,_]=c.useState(v),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,T=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:D}=T,R=le(T,Bme);if(Nt(()=>{if(f){var B;(B=x.current)==null||B.focus()}},[f]),!yc(u))return null;let A;if(typeof(u==null?void 0:u.valueOptions)=="function"?A=u==null?void 0:u.valueOptions({id:s,row:a,field:l}):A=u==null?void 0:u.valueOptions,!A)return null;const V=m||u.getOptionValue,j=y||u.getOptionLabel,M=B=>ot(this,null,function*(){if(!yc(u)||!A)return;_(!1);const O=B.target,N=Zx(O.value,A,V);g&&(yield g(B,N)),yield w.current.setEditCellValue({id:s,field:l,value:N},B)}),$=(B,O)=>{if(o.editMode===ji.Row){_(!1);return}if(O==="backdropClick"||ly(B.key)){const N=w.current.getCellParams(s,l);w.current.publishEvent("cellEditStop",S({},N,{reason:ly(B.key)?Xs.escapeKeyDown:Xs.cellFocusOut}))}},F=B=>{zme(B)&&B.key==="Enter"||_(!0)};return!A||!u?null:L.jsx(o.slots.baseSelect,S({ref:b,inputRef:x,value:i,onChange:M,open:E,onOpen:F,MenuProps:S({onClose:$},D),error:p,native:I,fullWidth:!0},C,R,{children:A.map(B=>{var O;const N=V(B);return c.createElement(o.slots.baseSelectOption,S({},((O=o.slotProps)==null?void 0:O.baseSelectOption)||{},{native:I,key:N,value:N}),j(B))})}))}const jme=e=>L.jsx(Vme,S({},e)),Hme=["open","target","onClose","children","position","className","onExited"],Ume=e=>{const{classes:t}=e;return Te({root:["menu"]},jt,t)},Wme=oe(Fa,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ue.menuList}`]:{outline:0}})),Gme={"bottom-start":"top left","bottom-end":"top right"};function B5(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,u=le(e,Hme),f=Vt(),p=ut(),g=Ume(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)},m=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return L.jsx(Wme,S({as:p.slots.basePopper,className:Ce(l,g.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},u,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:w})=>L.jsx(yN,{onClickAway:m,mouseEvent:"onMouseDown",children:L.jsx(ah,S({},C,{style:{transformOrigin:Gme[w]},onExited:y(C==null?void 0:C.onExited),children:L.jsx(Vs,{children:s})}))})}))}const Kme=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],qme=e=>typeof e.getActions=="function";function Yme(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=le(e,Kme),[u,f]=c.useState(-1),[p,g]=c.useState(!1),v=Vt(),y=c.useRef(null),m=c.useRef(null),C=c.useRef(!1),w=c.useRef({}),b=yn(),x=Kt(),E=Kt(),_=ut();if(!qme(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),T=k.filter(F=>F.props.showInMenu),D=I.length+(T.length?1:0);c.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([F,B])=>{B==null||B.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(B=>!B.props.disabled);f(F)}}}),[k]),c.useEffect(()=>{u>=D&&f(D-1)},[u,D]);const R=()=>{g(!0),f(D-1),C.current=!0},A=()=>{g(!1)},V=F=>B=>{w.current[F]=B},j=(F,B)=>O=>{f(F),C.current=!0,B&&B(O)},M=F=>{if(D<=1)return;const B=(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?B(N+te,H):N+te};let O=u;F.key==="ArrowRight"?O=B(u,"right"):F.key==="ArrowLeft"&&(O=B(u,"left")),!(O<0||O>=D)&&O!==u&&(F.preventDefault(),F.stopPropagation(),f(O))},$=F=>{F.key==="Tab"&&F.preventDefault(),["Tab","Enter","Escape"].includes(F.key)&&A()};return L.jsxs("div",S({role:"menu",ref:y,tabIndex:-1,className:ue.actionsCell,onKeyDown:M},a,{children:[I.map((F,B)=>c.cloneElement(F,{key:B,touchRippleRef:V(B),onClick:j(B,F.props.onClick),tabIndex:u===B?s:-1})),T.length>0&&E&&L.jsx(_.slots.baseIconButton,S({ref:m,id:E,"aria-label":v.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:V(E),tabIndex:u===I.length?s:-1},(t=_.slotProps)==null?void 0:t.baseIconButton,{children:L.jsx(_.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&L.jsx(B5,{open:p,target:m.current,position:i,onClose:A,onClick:A,children:L.jsx(Qd,{id:x,className:ue.menuList,onKeyDown:$,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:T.map((F,B)=>c.cloneElement(F,{key:B}))})})]}))}const Qme=e=>L.jsx(Yme,S({},e)),Xme=["label","icon","showInMenu","onClick"],yg=c.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:s}=e,i=le(e,Xme),l=ut(),a=f=>{s&&s(f)};if(!o){var u;return L.jsx(l.slots.baseIconButton,S({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 L.jsxs(Pr,S({ref:t},i,{onClick:s,children:[r&&L.jsx(pl,{children:r}),n]}))}),Zme=["field","align","width","contentWidth"],Jme=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Pe(t)}`,"withBorderColor"]};return Te(r,jt,n)};function ege(e){const{align:t,width:n,contentWidth:r}=e,o=le(e,Zme),i={classes:ut().classes,align:t},l=Jme(i);return L.jsx("div",S({className:l.root,style:{width:n}},o,{children:L.jsx(Xle,{width:`${r}%`})}))}function tge(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Tc(it(e.palette.divider,1),.88):_c(it(e.palette.divider,1),.68)}const SO={[`.${ue.columnSeparator}, .${ue["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},PO={[`& .${ue.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ue.menuIcon}`]:{width:"auto",visibility:"visible"}},nge=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=tge(e),n=e.shape.borderRadius;return S({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:it(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${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)`:it(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`]:SO,[`& .${ue.columnHeader}:hover`]:PO,[`& .${ue.columnHeader}:not(.${ue["columnHeader--sorted"]}):hover .${ue.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ue.columnHeaders}`]:SO,[`& .${ue.columnHeader}`]:PO},[`& .${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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
|
|
332
|
+
${e.vars.palette.action.selectedOpacity} +
|
|
333
|
+
${e.vars.palette.action.hoverOpacity}
|
|
334
|
+
))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${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)}})}),rge=["children","className"],oge=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Pe(n)}`,"withBorderColor"]};return Te(o,jt,r)},sge=c.forwardRef(function(t,n){var r;const o=ut(),{children:s,className:i}=t,l=le(t,rge),a=Ba(),u=rt(a,Hhe),f=c.useRef(null),p=Et(f,n),g=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:S5,v=typeof g=="function"?g():null,y=S({},o,{density:u}),m=oge(y);a.current.register("public",{rootElementRef:f});const[C,w]=c.useState(!1);return Nt(()=>{w(!0)},[]),C?L.jsx(nge,S({ref:p,className:Ce(i,m.root),ownerState:y},v,l,{children:s})):null}),ige=["className"],lge=e=>{const{classes:t}=e;return Te({root:["footerContainer","withBorderColor"]},jt,t)},age=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),cge=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,ige),s=ut(),i=lge(s);return L.jsx(age,S({ref:n,className:Ce(i.root,r),ownerState:s},o))}),uge=["className"],dge=e=>{const{classes:t}=e;return Te({root:["overlay"]},jt,t)},fge=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)"}),SE=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,uge),s=ut(),i=dge(s);return L.jsx(fge,S({ref:n,className:Ce(i.root,r),ownerState:s},o))}),pge=["className"],hge=e=>{const{classes:t}=e;return Te({root:["iconButtonContainer"]},jt,t)},mge=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),z5=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,pge),s=ut(),i=hge(s);return L.jsx(mge,S({ref:n,className:Ce(i.root,r),ownerState:s},o))}),gge=e=>{const{classes:t}=e;return Te({icon:["sortIcon"]},jt,t)};function vge(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?L.jsx(o,S({fontSize:"small",className:n},s)):null}function yge(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Vt(),i=ut(),l=S({},e,{classes:i.classes}),a=gge(l),u=vge(i.slots,n,a.icon,o);if(!u)return null;const f=L.jsx(i.slots.baseIconButton,S({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 L.jsxs(z5,{children:[r!=null&&L.jsx(ON,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const bge=c.memo(yge),wge=e=>{const{classes:t,open:n}=e;return Te({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},jt,t)},Cge=c.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Vt(),u=ut(),f=S({},e,{classes:u.classes}),p=wge(f),g=c.useCallback(v=>{v.preventDefault(),v.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return L.jsx("div",{className:p.root,children:L.jsx(u.slots.baseTooltip,S({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:L.jsx(u.slots.baseIconButton,S({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:g,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:L.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function xge({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:L.jsx(B5,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:L.jsx(n,S({colDef:u,hideMenu:f,open:s,id:e,labelledby:t},r))})}const Sge=["className"],Pge=e=>{const{classes:t}=e;return Te({root:["columnHeaderTitle"]},jt,t)},kge=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Ege=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,Sge),s=ut(),i=Pge(s);return L.jsx(kge,S({ref:n,className:Ce(i.root,r),ownerState:s},o))});function Ige(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=tme(s.current);l(u?n:"")}},[r,n]);return L.jsx(o.slots.baseTooltip,S({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:L.jsx(Ege,{onMouseOver:a,ref:s,children:n})}))}const Mge=["resizable","resizing","height","side"];var V5=function(e){return e.Left="left",e.Right="right",e}(V5||{});const _ge=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 Tge(e){const{height:t,side:n=V5.Right}=e,r=le(e,Mge),o=ut(),s=S({},e,{side:n,classes:o.classes}),i=_ge(s),l=c.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return L.jsx("div",S({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:L.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const $ge=c.memo(Tge),Rge=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],j5=c.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:s,height:i,isResizing:l,sortDirection:a,hasFocus:u,tabIndex:f,separatorSide:p,isDraggable:g,headerComponent:v,description:y,width:m,columnMenuIconButton:C=null,columnMenu:w=null,columnTitleIconButtons:b=null,headerClassName:x,label:E,resizable:_,draggableContainerProps:k,columnHeaderSeparatorProps:I}=t,T=le(t,Rge),D=Ba(),R=ut(),A=c.useRef(null),[V,j]=c.useState(o),M=Et(A,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),c.useEffect(()=>{V||j(o)},[V,o]),c.useLayoutEffect(()=>{const F=D.current.state.columnMenu;if(u&&!F.open){const O=A.current.querySelector('[tabindex="0"]')||A.current;O==null||O.focus(),D.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[D,u]),L.jsxs("div",S({ref:M,className:Ce(r.root,x),style:{height:i,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":$,"aria-label":v==null?E:void 0},T,{children:[L.jsxs("div",S({className:r.draggableContainer,draggable:g,role:"presentation"},k,{children:[L.jsxs("div",{className:r.titleContainer,role:"presentation",children:[L.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:L.jsx(Ige,{label:E,description:y,columnWidth:m})}),b]}),C]})),L.jsx($ge,S({resizable:!R.disableColumnResize&&!!_,resizing:l,height:i,side:p},I)),w]}))}),Oge=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 Dge(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:u,sortDirection:f,sortIndex:p,filterItemsCounter:g,hasFocus:v,tabIndex:y,disableReorder:m,separatorSide:C}=e,w=Ba(),b=ut(),x=c.useRef(null),E=Kt(),_=Kt(),k=c.useRef(null),[I,T]=c.useState(i),D=c.useMemo(()=>!b.disableColumnReorder&&!m&&!s.disableReorder,[b.disableColumnReorder,m,s.disableReorder]);let R;s.renderHeader&&(R=s.renderHeader(w.current.getColumnHeaderParams(s.field)));const A=S({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder}),V=Oge(A),j=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:j("columnHeaderClick"),onDoubleClick:j("columnHeaderDoubleClick"),onMouseOver:j("columnHeaderOver"),onMouseOut:j("columnHeaderOut"),onMouseEnter:j("columnHeaderEnter"),onMouseLeave:j("columnHeaderLeave"),onKeyDown:j("columnHeaderKeyDown"),onFocus:j("columnHeaderFocus"),onBlur:j("columnHeaderBlur")}),[j]),$=c.useMemo(()=>D?{onDragStart:j("columnHeaderDragStart"),onDragEnter:j("columnHeaderDragEnter"),onDragOver:j("columnHeaderDragOver"),onDragEnd:j("columnHeaderDragEnd")}:{},[D,j]),F=c.useMemo(()=>({onMouseDown:j("columnSeparatorMouseDown"),onDoubleClick:j("columnSeparatorDoubleClick")}),[j]);c.useEffect(()=>{I||T(i)},[I,i]);const B=c.useCallback(()=>{T(!1)},[]),O=!b.disableColumnMenu&&!s.disableColumnMenu&&L.jsx(Cge,{colDef:s,columnMenuId:E,columnMenuButtonId:_,open:I,iconButtonRef:k}),N=L.jsx(xge,{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:B}),H=(n=s.sortingOrder)!=null?n:b.sortingOrder,K=L.jsxs(c.Fragment,{children:[!b.disableColumnFilter&&L.jsx(b.slots.columnHeaderFilterIconButton,S({field:s.field,counter:g},(r=b.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&L.jsx(bge,{direction:f,index:p,sortingOrder:H})]});c.useLayoutEffect(()=>{const Q=w.current.state.columnMenu;if(v&&!Q.open){const J=x.current.querySelector('[tabindex="0"]')||x.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 L.jsx(j5,S({ref:x,classes:V,columnMenuOpen:i,colIndex:l,height:a,isResizing:u,sortDirection:f,hasFocus:v,tabIndex:y,separatorSide:C,isDraggable:D,headerComponent:R,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:O,columnTitleIconButtons:K,headerClassName:Y,label:te,resizable:!b.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:N,draggableContainerProps:$,columnHeaderSeparatorProps:F},M))}const hh=()=>({items:[],logicOperator:So.And,quickFilterValues:[],quickFilterLogicOperator:So.And}),kO=1e3;let Age=class{constructor(t=kO){this.timeouts=new Map,this.cleanupTimeout=kO,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)}},Lge=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 Li=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Li||{});let Fge=class{};function Nge(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Lge:new Age);const[l]=c.useState(new Fge),a=c.useRef(null),u=c.useRef();u.current=s;const f=c.useRef(null);if(!a.current&&u.current){const p=(g,v,y)=>{if(!v.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,g,v,y)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var g;(g=a.current)==null||g.call(a),a.current=null,f.current=null},f.current)}else!u.current&&a.current&&(a.current(),a.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));c.useEffect(()=>{if(!a.current&&u.current){const p=(g,v,y)=>{if(!v.defaultMuiPrevented){var m;(m=u.current)==null||m.call(u,g,v,y)}};a.current=r.current.subscribeEvent(o,p,i)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,i])}}const Bge={registry:null},dt=Nge(Bge),zge={isFirst:!0};function In(e,t,n){dt(e,t,n,zge)}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 Vge(e){return typeof e=="number"&&!Number.isNaN(e)}function H5(e){return typeof e=="function"}function PE(e){return typeof e=="object"&&e!==null}function jge(){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 Hge(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 Uge(e,t,n){const r=Hge(e);return()=>t+(n-t)*r()}function U5(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Wge=(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(H5(t)?f=t():f=t&&t.current?t.current:null,f&&n&&!i){s.debug(`Binding native ${n} event`),f.addEventListener(n,u,o);const p=f;l(!0);const g=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",g)}},[t,u,n,i,s,o,e])},Wh=e=>{const t=c.useRef(!0);t.current&&(t.current=!1,e())},Gge=100,Kge=e=>e?0:100,W5=(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 G5=e=>({page:0,pageSize:e?0:100}),qge=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),K5=(e,t)=>{if(t===Li.DataGrid&&e>Gge)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
|
+
`))},q5=e=>e.pagination,Ps=_t(q5,e=>e.paginationModel),Yge=_t(Ps,e=>e.page),Qge=_t(Ps,e=>e.pageSize);_t(Ps,d0,(e,t)=>W5(t,e.pageSize));const kE=_n(Ps,ei,u0,za,E5,(e,t,n,r,o)=>{const s=o.length,i=Math.min(e.pageSize*e.page,s-1),l=Math.min(i+e.pageSize-1,s-1);if(i===-1||l===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:l};const a=o[i],u=l-i+1,f=r.findIndex(y=>y.id===a.id);let p=f,g=0;for(;p<r.length&&g<=u;){var v;const y=r[p],m=(v=t[y.id])==null?void 0:v.depth;m===void 0?p+=1:((g<u||m>0)&&(p+=1),m===0&&(g+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),Xge=_n(za,kE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Y5=_n(Rp,kE,(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,Cs=e=>e.rowSelection,Zge=_t(Cs,e=>e.length),Jge=_n(Cs,aa,(e,t)=>new Map(e.map(n=>[n,t[n]]))),cy=_n(Cs,e=>e.reduce((t,n)=>(t[n]=n,t),{})),eve=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"),Q5=(e,t)=>t&&e.length>1?(eve(),[e[0]]):e,EO=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:Q5(e,t)})}),tve=e=>e==="desc",nve=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=tve(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}},rve=(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),ove=(e,t)=>{const n=e.map(r=>nve(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)=>rve(n,o,s)).map(o=>o.node.id)},IO=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},EE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,sve=new Intl.Collator,ive=(e,t)=>{const n=EE(e,t);return n!==null?n:typeof e=="string"?sve.compare(e.toString(),t.toString()):e-t},X5=(e,t)=>{const n=EE(e,t);return n!==null?n:Number(e)-Number(t)},Z5=(e,t)=>{const n=EE(e,t);return n!==null?n:e>t?1:e<t?-1:0},J5=e=>e.headerFiltering,lve=_t(J5,e=>e.editing),ave=_t(J5,e=>e.menuOpen),cve=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return S({},e,{virtualization:n})};function uve(e,t){const n=s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabled:s})}))};At(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabledForColumns:s})}))}},"public"),c.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const eB=e=>e.virtualization,dve=_t(eB,e=>e.enabled),tB=_t(eB,e=>e.enabledForColumns),fve=e=>{const{classes:t}=e;return Te({icon:["filterIcon"]},jt,t)};function pve(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Vt(),l=ut(),a=S({},e,{classes:l.classes}),u=fve(a),f=rt(i,mh),p=Kt(),g=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,g,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,g,p]);if(!r)return null;const y=f.open&&f.labelId===p,m=L.jsx(l.slots.baseIconButton,S({id:p,onClick:v,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?g:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:L.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return L.jsx(l.slots.baseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:L.jsxs(z5,{children:[r>1&&L.jsx(ON,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const hve=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],mve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},gve=c.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:u}=t,f=le(t,hve),p=Vt(),g=ut(),v={classes:g.classes},y=mve(v),m=c.useRef(null),C=c.useRef(null),w=Et(m,n),b=p.current.getCellElement(s,o),x=I=>{const T={value:I.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",T,I)};c.useLayoutEffect(()=>{u===0&&b&&(b.tabIndex=-1)},[b,u]),c.useEffect(()=>{if(a){var I;const T=(I=m.current)==null?void 0:I.querySelector("input");T==null||T.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const E=c.useCallback(I=>{F5(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 L.jsx(g.slots.baseCheckbox,S({ref:w,tabIndex:u,checked:i,onChange:x,className:y.root,inputProps:{"aria-label":k},onKeyDown:E,disabled:!_,touchRippleRef:C},(r=g.slotProps)==null?void 0:r.baseCheckbox,f))}),vve=gve,yve=["field","colDef"],bve=e=>{const{classes:t}=e;return Te({root:["checkboxInput"]},jt,t)},wve=c.forwardRef(function(t,n){var r;const o=le(t,yve),[,s]=c.useState(!1),i=Vt(),l=ut(),a={classes:l.classes},u=bve(a),f=rt(i,M5),p=rt(i,Cs),g=rt(i,Rp),v=rt(i,Y5),y=c.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(T=>i.current.getRow(T)?l.isRowSelectable(i.current.getRowParams(T)):!1),[i,l.isRowSelectable,p]),m=c.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?g:v).reduce((D,R)=>(D[R]=!0,D),{}),[l.pagination,l.checkboxSelectionVisibleOnly,v,g]),C=c.useMemo(()=>y.filter(T=>m[T]).length,[y,m]),w=C>0&&C<Object.keys(m).length,b=C>0,x=T=>{const D={value:T.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",D)},E=f!==null&&f.field===t.field?0:-1;c.useLayoutEffect(()=>{const T=i.current.getColumnHeaderElement(t.field);E===0&&T&&(T.tabIndex=-1)},[E,i,t.field]);const _=c.useCallback(T=>{T.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),k=c.useCallback(()=>{s(T=>!T)},[]);c.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",k),[i,k]);const I=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return L.jsx(l.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:b,onChange:x,className:u.root,inputProps:{"aria-label":I},tabIndex:E,onKeyDown:_},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),MO=bt(L.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),_O=bt(L.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),TO=bt(L.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),$O=bt(L.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Cve=bt(L.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),RO=bt(L.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"),xve=bt(L.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(L.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bt(L.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 Sve=bt(L.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"),Pve=bt(L.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),kve=bt(L.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Eve=bt(L.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Ive=bt(L.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Mve=bt(L.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"),Jw=bt(L.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"),OO=bt(L.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),_ve=bt(L.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Tve=bt(L.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"),DO=bt(L.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"),$ve=bt(L.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"),Rve=bt(L.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ove=bt(L.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"),Dve=bt(L.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"),Ave=bt(L.jsx("g",{children:L.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Lve=bt(L.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(L.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 Fve=bt(L.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"),Nve=["hideMenu","colDef","id","labelledby","className","children","open"],Bve=oe(Qd)(()=>({minWidth:248})),zve=c.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,u=le(t,Nve),f=c.useCallback(p=>{L5(p.key)&&p.preventDefault(),Fme(p.key)&&r(p)},[r]);return L.jsx(Bve,S({id:o,ref:n,className:Ce(ue.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},u,{children:l}))}),Vve=["displayOrder"],jve=e=>{const t=Ba(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:s={},hideMenu:i,colDef:l,addDividers:a=!0}=e,u=c.useMemo(()=>S({},n,o),[n,o]),f=c.useMemo(()=>{if(!s||Object.keys(s).length===0)return r;const v=S({},s);return Object.entries(r).forEach(([y,m])=>{v[y]=S({},m,s[y]||{})}),v},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=c.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(y=>!v.includes(y))},[o,n]);return c.useMemo(()=>{const m=Array.from(new Set([...p,...g])).filter(C=>u[C]!=null).sort((C,w)=>{const b=f[C],x=f[w],E=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,_=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return E-_});return m.reduce((C,w,b)=>{let x={colDef:l,onClick:i};const E=f[w];if(E){const _=le(E,Vve);x=S({},x,_)}return a&&b!==m.length-1?[...C,[u[w],x],[Pd,{}]]:[...C,[u[w],x]]},[])},[a,l,p,i,u,f,g])};function Hve(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:L.jsxs(Pr,{onClick:a,disabled:l,children:[L.jsx(pl,{children:L.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),L.jsx(Ri,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Uve(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:L.jsxs(Pr,{onClick:o,children:[L.jsx(pl,{children:L.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),L.jsx(Ri,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Wve(e){return L.jsxs(c.Fragment,{children:[L.jsx(Hve,S({},e)),L.jsx(Uve,S({},e))]})}function Gve(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:L.jsxs(Pr,{onClick:s,children:[L.jsx(pl,{children:L.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),L.jsx(Ri,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Kve(e){var t;const{colDef:n,onClick:r}=e,o=Vt(),s=rt(o,ws),i=ut(),l=c.useMemo(()=>{if(!n)return null;const p=s.find(g=>g.field===n.field);return p==null?void 0:p.sort},[n,s]),a=(t=n.sortingOrder)!=null?t:i.sortingOrder,u=c.useCallback(p=>{r(p);const g=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,g===l?null:g)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const g=o.current.getLocaleText(p);return typeof g=="function"?g(n):g};return L.jsxs(c.Fragment,{children:[a.includes("asc")&&l!=="asc"?L.jsxs(Pr,{onClick:u,"data-value":"asc",children:[L.jsx(pl,{children:L.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),L.jsx(Ri,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?L.jsxs(Pr,{onClick:u,"data-value":"desc",children:[L.jsx(pl,{children:L.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),L.jsx(Ri,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?L.jsxs(Pr,{onClick:u,children:[L.jsx(pl,{}),L.jsx(Ri,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const qve=["defaultSlots","defaultSlotProps","slots","slotProps"],Yve={columnMenuSortItem:Kve,columnMenuFilterItem:Gve,columnMenuColumnsItem:Wve},Qve={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Xve=c.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=le(t,qve),a=jve(S({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return L.jsx(zve,S({ref:n},l,{children:a.map(([u,f],p)=>L.jsx(u,S({},f),p))}))}),Zve=c.forwardRef(function(t,n){return L.jsx(Xve,S({},t,{ref:n,defaultSlots:Yve,defaultSlotProps:Qve}))}),Jve=["className"],eye=e=>{const{classes:t}=e;return Te({root:["panelContent"]},jt,t)},tye=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function nB(e){const{className:t}=e,n=le(e,Jve),r=ut(),o=eye(r);return L.jsx(tye,S({className:Ce(t,o.root),ownerState:r},n))}const nye=["className"],rye=e=>{const{classes:t}=e;return Te({root:["panelFooter"]},jt,t)},oye=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function rB(e){const{className:t}=e,n=le(e,nye),r=ut(),o=rye(r);return L.jsx(oye,S({className:Ce(t,o.root),ownerState:r},n))}const sye=["className"],iye=e=>{const{classes:t}=e;return Te({root:["panelHeader"]},jt,t)},lye=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function aye(e){const{className:t}=e,n=le(e,sye),r=ut(),o=iye(r);return L.jsx(lye,S({className:Ce(t,o.root),ownerState:r},n))}const cye=["className","slotProps"],uye=e=>{const{classes:t}=e;return Te({root:["panelWrapper"]},jt,t)},dye=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),fye=()=>!0,oB=c.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=le(t,cye),i=ut(),l=uye(i);return L.jsx(tk,S({open:!0,disableEnforceFocus:!0,isEnabled:fye},o.TrapFocus,{children:L.jsx(dye,S({ref:n,tabIndex:-1,className:Ce(r,l.root),ownerState:i},s))}))}),pye=!1,hye=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],mye=e=>{const{classes:t}=e;return Te({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},jt,t)},gye=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),vye=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)}})),yye=oe(pr)({justifyContent:"flex-end"}),AO=new Intl.Collator,bye=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function wye(e){var t,n,r;const o=Vt(),s=c.useRef(null),i=rt(o,Ai),l=rt(o,oi),a=ut(),[u,f]=c.useState(""),p=mye(a),{sort:g,searchPredicate:v=bye,autoFocusSearchField:y=!0,disableHideAllButton:m=!1,disableShowAllButton:C=!1,getTogglableColumns:w}=e,b=le(e,hye),x=c.useMemo(()=>{switch(g){case"asc":return[...i].sort((A,V)=>AO.compare(A.headerName||A.field,V.headerName||V.field));case"desc":return[...i].sort((A,V)=>-AO.compare(A.headerName||A.field,V.headerName||V.field));default:return i}},[i,g]),E=A=>{const{name:V}=A.target;o.current.setColumnVisibility(V,l[V]===!1)},_=c.useCallback(A=>{const V=oi(o),j=S({},V),M=w?w(i):null;return i.forEach($=>{$.hideable&&(M==null||M.includes($.field))&&(A?delete j[$.field]:j[$.field]=!1)}),o.current.setColumnVisibilityModel(j)},[o,i,w]),k=c.useCallback(A=>{f(A.target.value)},[]),I=c.useMemo(()=>{const A=w?w(x):null,V=A?x.filter(({field:j})=>A.includes(j)):x;return u?V.filter(j=>v(j,u.toLowerCase())):V},[x,u,v,w]),T=c.useRef(null);c.useEffect(()=>{y?s.current.focus():T.current&&typeof T.current.focus=="function"&&T.current.focus()},[y]);let D=!1;const R=A=>D===!1&&A.hideable!==!1?(D=!0,!0):!1;return L.jsxs(oB,S({},b,{children:[L.jsx(aye,{children:L.jsx(a.slots.baseTextField,S({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))}),L.jsx(nB,{children:L.jsx(gye,{className:p.root,ownerState:a,children:I.map(A=>{var V;return L.jsxs(vye,{className:p.columnsPanelRow,ownerState:a,children:[L.jsx(GN,{control:L.jsx(a.slots.baseSwitch,S({disabled:A.hideable===!1,checked:l[A.field]!==!1,onClick:E,name:A.field,size:"small",inputRef:R(A)?T:void 0},(V=a.slotProps)==null?void 0:V.baseSwitch)),label:A.headerName||A.field}),!a.disableColumnReorder&&pye&&L.jsx(yye,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:L.jsx(a.slots.columnReorderIcon,{})})]},A.field)})})}),C&&m?null:L.jsxs(rB,{children:[m?L.jsx("span",{}):L.jsx(a.slots.baseButton,S({onClick:()=>_(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:m,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:L.jsx(a.slots.baseButton,S({onClick:()=>_(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Cye=["children","className","classes"],xye=We("MuiDataGrid",["panel","paper"]),Sye=oe(Fa,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Pye=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"})),kye=c.forwardRef((e,t)=>{const{children:n,className:r}=e,o=le(e,Cye),s=Vt(),i=ut(),l=xye,[a,u]=c.useState(!1),f=c.useCallback(()=>{s.current.hidePreferences()},[s]),p=c.useCallback(m=>{ly(m.key)&&s.current.hidePreferences()},[s]),g=c.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[v,y]=c.useState(null);return c.useEffect(()=>{var m;const C=(m=s.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${ue.columnHeaders}`);C&&y(C)},[s]),v?L.jsx(Sye,S({ref:t,placement:"bottom-start",className:Ce(r,l.panel),ownerState:i,anchorEl:v,modifiers:g},o,{children:L.jsx(yN,{mouseEvent:"onMouseUp",onClickAway:f,children:L.jsx(Pye,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),Eye=c.forwardRef(function(t,n){var r,o,s;const i=Vt(),l=rt(i,Ai),a=ut(),u=rt(i,mh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:Ac.filters);return L.jsx(a.slots.panel,S({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}))}),Iye=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Mye=["InputComponentProps"],_ye=e=>{const{classes:t}=e;return Te({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},jt,t)},Tye=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),$ye=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)})),Rye=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Oye=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Dye=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Aye=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Lye=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,LO=new Intl.Collator,Fye=c.forwardRef(function(t,n){var r,o,s,i,l,a,u,f,p,g;const{item:v,hasMultipleFilters:y,deleteFilter:m,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:b,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:E,focusElementRef:_,logicOperators:k=[So.And,So.Or],columnsSort:I,filterColumns:T,deleteIconProps:D={},logicOperatorInputProps:R={},operatorInputProps:A={},columnInputProps:V={},valueInputProps:j={}}=t,M=le(t,Iye),$=Vt(),F=rt($,C5),B=rt($,Or),O=Kt(),N=Kt(),H=Kt(),K=Kt(),Y=ut(),te=_ye(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}=j,ce=le(j,Mye),Se=c.useMemo(()=>{if(T===void 0||typeof T!="function")return F;const de=T({field:v.field,columns:F,currentFilters:(B==null?void 0:B.items)||[]});return F.filter(be=>de.includes(be.field))},[T,B==null?void 0:B.items,F,v.field]),Ee=c.useMemo(()=>{switch(I){case"asc":return Se.sort((de,be)=>LO.compare(Kf(de),Kf(be)));case"desc":return Se.sort((de,be)=>-LO.compare(Kf(de),Kf(be)));default:return Se}},[Se,I]),ae=v.field?$.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=$.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(S({},v,{field:be,operator:Ne.value,value:Ge?void 0:v.value}))},[$,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(S({},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?m(v):C(S({},v,{value:void 0})):m(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]),L.jsxs(Tye,S({ref:n,className:te.root,"data-id":v.id,ownerState:Y},M,{children:[L.jsx($ye,S({variant:"standard",as:Y.slots.baseFormControl},se,D,{className:Ce(te.deleteIcon,se.className,D.className),ownerState:Y,children:L.jsx(Y.slots.baseIconButton,S({"aria-label":$.current.getLocaleText("filterPanelDeleteIconLabel"),title:$.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:fe,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:L.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),L.jsx(Rye,S({variant:"standard",as:Y.slots.baseFormControl},se,R,{sx:S({display:J?"flex":"none",visibility:b?"visible":"hidden"},se.sx||{},R.sx||{}),className:Ce(te.logicOperatorInput,se.className,R.className),ownerState:Y,children:L.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":$.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:pe,disabled:!!x||k.length===1,native:he},(u=Y.slotProps)==null?void 0:u.baseSelect,{children:k.map(de=>c.createElement(Y.slots.baseSelectOption,S({},re,{native:he,key:de.toString(),value:de.toString()}),$.current.getLocaleText(Lye(de))))}))})),L.jsxs(Oye,S({variant:"standard",as:Y.slots.baseFormControl},se,V,{className:Ce(te.columnInput,se.className,V.className),ownerState:Y,children:[L.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:O,id:N,children:$.current.getLocaleText("filterPanelColumns")})),L.jsx(Y.slots.baseSelect,S({labelId:N,id:O,label:$.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,S({},re,{native:he,key:de.field,value:de.field}),Kf(de)))}))]})),L.jsxs(Dye,S({variant:"standard",as:Y.slots.baseFormControl},se,A,{className:Ce(te.operatorInput,se.className,A.className),ownerState:Y,children:[L.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:H,id:K,children:$.current.getLocaleText("filterPanelOperator")})),L.jsx(Y.slots.baseSelect,S({labelId:K,label:$.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||(g=ae.filterOperators)==null?void 0:g.map(de=>c.createElement(Y.slots.baseSelectOption,S({},re,{native:he,key:de.value,value:de.value}),de.label||$.current.getLocaleText(`filterOperator${Pe(de.value)}`)))}))]})),L.jsx(Aye,S({variant:"standard",as:Y.slots.baseFormControl},se,ce,{className:Ce(te.valueInput,se.className,ce.className),ownerState:Y,children:Ie!=null&&Ie.InputComponent?L.jsx(Ie.InputComponent,S({apiRef:$,item:v,applyValue:C,focusElementRef:Q},Ie.InputComponentProps,me)):null}))]}))});class IE{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new IE}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function ME(){const e=hE(IE.create).current;return b5(e.disposeEffect),e}const Nye=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function ki(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:u,clearButton:f,InputProps:p}=e,g=le(e,Nye),v=ME(),[y,m]=c.useState((t=r.value)!=null?t:""),[C,w]=c.useState(!1),b=Kt(),x=ut(),E=c.useCallback(_=>{const{value:k}=_.target;m(String(k)),w(!0),v.start(x.filterDebounceMs,()=>{const I=S({},r,{value:k,fromInput:b});o(I),w(!1)})},[b,o,r,x.filterDebounceMs,v]);return c.useEffect(()=>{if(r.fromInput!==b){var k;m(String((k=r.value)!=null?k:""))}},[b,r]),L.jsx(x.slots.baseTextField,S({id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:E,variant:"standard",type:s||"text",InputProps:S({},C||f?{endAdornment:C?L.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:u},p,{inputProps:S({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},g,(n=x.slotProps)==null?void 0:n.baseTextField))}const Bye=["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,g=le(e,Bye),v=ME(),[y,m]=c.useState((t=r.value)!=null?t:""),[C,w]=c.useState(!1),b=Kt(),x=ut(),E=c.useCallback(_=>{const k=_.target.value;m(String(k)),w(!0),v.start(x.filterDebounceMs,()=>{o(S({},r,{value:k})),w(!1)})},[o,r,x.filterDebounceMs,v]);return c.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";m(String(k))},[r.value]),L.jsx(x.slots.baseTextField,S({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:S({},C||u?{endAdornment:C?L.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:p},a,{inputProps:S({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},a==null?void 0:a.inputProps)})},g,(n=x.slotProps)==null?void 0:n.baseTextField))}const zye=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton","InputLabelProps"],Vye=({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,S({},i,{native:s,key:u,value:u}),f)}),jye=oe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function FO(e){var t,n,r,o,s,i,l,a;const{item:u,applyValue:f,type:p,apiRef:g,focusElementRef:v,getOptionLabel:y,getOptionValue:m,placeholder:C,tabIndex:w,label:b,clearButton:x}=e,E=le(e,zye),[_,k]=c.useState((t=u.value)!=null?t:""),I=Kt(),T=Kt(),D=ut(),R=(n=(r=D.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let A=null;if(u.field){const B=g.current.getColumn(u.field);yc(B)&&(A=B)}const V=m||((o=A)==null?void 0:o.getOptionValue),j=y||((s=A)==null?void 0:s.getOptionLabel),M=c.useMemo(()=>{if(A)return typeof A.valueOptions=="function"?A.valueOptions({field:A.field}):A.valueOptions},[A]),$=c.useCallback(B=>{let O=B.target.value;O=Zx(O,M,V),k(String(O)),f(S({},u,{value:O}))},[M,V,f,u]);if(c.useEffect(()=>{var B;let O;if(M!==void 0){if(O=Zx(u.value,M,V),O!==u.value){f(S({},u,{value:O}));return}}else O=u.value;O=(B=O)!=null?B:"",k(String(O))},[u,M,f,V]),!yc(A)||!yc(A))return null;const F=b!=null?b:g.current.getLocaleText("filterPanelInputLabel");return L.jsxs(jye,{children:[L.jsxs(D.slots.baseFormControl,{children:[L.jsx(D.slots.baseInputLabel,S({},(i=D.slotProps)==null?void 0:i.baseInputLabel,{id:T,htmlFor:I,shrink:!0,variant:"standard",children:F})),L.jsx(D.slots.baseSelect,S({id:I,label:F,labelId:T,value:_,onChange:$,variant:"standard",type:p||"text",inputProps:{tabIndex:w,ref:v,placeholder:C!=null?C:g.current.getLocaleText("filterPanelInputPlaceholder")},native:R},E,(l=D.slotProps)==null?void 0:l.baseSelect,{children:Vye({column:A,OptionComponent:D.slots.baseSelectOption,getOptionLabel:j,getOptionValue:V,isSelectNative:R,baseSelectOptionProps:(a=D.slotProps)==null?void 0:a.baseSelectOption})}))]}),x]})}const Hye=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","InputLabelProps"],Uye=oe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Wye(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:u,tabIndex:f,label:p}=e,g=le(e,Hye),[v,y]=c.useState(s.value||""),m=ut(),C=Kt(),w=Kt(),b=((t=m.slotProps)==null?void 0:t.baseSelect)||{},x=(n=b.native)!=null?n:!0,E=((r=m.slotProps)==null?void 0:r.baseSelectOption)||{},_=c.useCallback(I=>{const T=I.target.value;y(T),i(S({},s,{value:T}))},[i,s]);c.useEffect(()=>{y(s.value||"")},[s.value]);const k=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return L.jsxs(Uye,{children:[L.jsxs(m.slots.baseFormControl,{fullWidth:!0,children:[L.jsx(m.slots.baseInputLabel,S({},(o=m.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:"standard",children:k})),L.jsxs(m.slots.baseSelect,S({labelId:C,id:w,label:k,value:v,onChange:_,variant:"standard",native:x,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},g,b,{children:[L.jsx(m.slots.baseSelectOption,S({},E,{native:x,value:"",children:l.current.getLocaleText("filterValueAny")})),L.jsx(m.slots.baseSelectOption,S({},E,{native:x,value:"true",children:l.current.getLocaleText("filterValueTrue")})),L.jsx(m.slots.baseSelectOption,S({},E,{native:x,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Gye=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],NO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Kye=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=rt(s,Or),a=rt(s,C5),u=c.useRef(null),f=c.useRef(null),{logicOperators:p=[So.And,So.Or],columnsSort:g,filterFormProps:v,getColumnForNewFilter:y,disableAddFilterButton:m=!1,disableRemoveAllButton:C=!1}=t,w=le(t,Gye),b=s.current.upsertFilterItem,x=c.useCallback(A=>{s.current.setFilterLogicOperator(A)},[s]),E=c.useCallback(()=>{let A;if(y&&typeof y=="function"){const V=y({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(V===null)return null;A=a.find(({field:j})=>j===V)}else A=a.find(V=>{var j;return(j=V.filterOperators)==null?void 0:j.length});return A?NO(A):null},[l==null?void 0:l.items,a,y]),_=c.useCallback(()=>{if(y===void 0||typeof y!="function")return E();const A=l.items.length?l.items:[E()].filter(Boolean),V=y({currentFilters:A,columns:a});if(V===null)return null;const j=a.find(({field:M})=>M===V);return j?NO(j):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,T=()=>{const A=_();A&&s.current.upsertFilterItems([...k,A])},D=c.useCallback(A=>{const V=k.length===1;s.current.deleteFilterItem(A),V&&s.current.hideFilterPanel()},[s,k.length]),R=()=>{k.length===1&&k[0].value===void 0&&(s.current.deleteFilterItem(k[0]),s.current.hideFilterPanel()),s.current.setFilterModel(S({},l,{items:[]}))};return c.useEffect(()=>{p.length>0&&l.logicOperator&&!p.includes(l.logicOperator)&&x(p[0])},[p,x,l.logicOperator]),c.useEffect(()=>{k.length>0&&u.current.focus()},[k.length]),L.jsxs(oB,S({ref:n},w,{children:[L.jsx(nB,{children:k.map((A,V)=>L.jsx(Fye,S({item:A,applyFilterChanges:b,deleteFilter:D,hasMultipleFilters:I,showMultiFilterOperators:V>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:V!==1,applyMultiFilterOperatorChanges:x,focusElementRef:V===k.length-1?u:null,logicOperators:p,columnsSort:g},v),A.id==null?V:A.id))}),!i.disableMultipleColumnsFiltering&&!(m&&C)?L.jsxs(rB,{children:[m?L.jsx("span",{}):L.jsx(i.slots.baseButton,S({onClick:T,startIcon:L.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:L.jsx(i.slots.baseButton,S({onClick:R,startIcon:L.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),qye=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function sB(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,qye),g={color:i,error:l,helperText:a,size:u,variant:f},[v,y]=c.useState(t.value||[]),m=Kt(),C=ut();c.useEffect(()=>{var b;const x=(b=t.value)!=null?b:[];y(x.map(String))},[t.value]);const w=c.useCallback((b,x)=>{y(x.map(String)),n(S({},t,{value:[...x]}))},[n,t]);return L.jsx(Fh,S({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,x)=>{const{inputValue:E}=x;return E==null||E===""?[]:[E]},id:m,value:v,onChange:w,renderTags:(b,x)=>b.map((E,_)=>L.jsx(C.slots.baseChip,S({variant:"outlined",size:"small",label:E},x({index:_})))),renderInput:b=>{var x;return L.jsx(C.slots.baseTextField,S({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},b.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},g,(x=C.slotProps)==null?void 0:x.baseTextField))}},p))}const Yye=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Qye=_N();function Xye(e){var t,n;const{item:r,applyValue:o,apiRef:s,focusElementRef:i,color:l,error:a,helperText:u,size:f,variant:p="standard",getOptionLabel:g,getOptionValue:v}=e,y=le(e,Yye),m={color:l,error:a,helperText:u,size:f,variant:p},C=Kt(),w=ut();let b=null;if(r.field){const R=s.current.getColumn(r.field);yc(R)&&(b=R)}const x=v||((t=b)==null?void 0:t.getOptionValue),E=g||((n=b)==null?void 0:n.getOptionLabel),_=c.useCallback((R,A)=>x(R)===x(A),[x]),k=c.useMemo(()=>{var R;return(R=b)!=null&&R.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[]},[b]),I=c.useMemo(()=>k==null?void 0:k.map(x),[k,x]),T=c.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(A=>I==null?void 0:I.findIndex(V=>V===A)).filter(A=>A>=0).map(A=>k[A]):r.value:[],[r.value,k,I]);c.useEffect(()=>{(!Array.isArray(r.value)||T.length!==r.value.length)&&o(S({},r,{value:T.map(x)}))},[r,T,o,x]);const D=c.useCallback((R,A)=>{o(S({},r,{value:A.map(x)}))},[o,r,x]);return L.jsx(Fh,S({multiple:!0,options:k,isOptionEqualToValue:_,filterOptions:Qye,id:C,value:T,onChange:D,getOptionLabel:E,renderTags:(R,A)=>R.map((V,j)=>L.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:E(V)},A({index:j})))),renderInput:R=>{var A;return L.jsx(w.slots.baseTextField,S({},R,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},R.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},m,(A=w.slotProps)==null?void 0:A.baseTextField))}},y))}const Zye=["hideMenu","options"],Jye=["hideMenu","options"];function ebe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,Zye);return L.jsx(Pr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function tbe(e){const t=Vt(),{hideMenu:n,options:r}=e,o=le(e,Jye);return L.jsx(Pr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const nbe=["className","selectedRowCount"],rbe=e=>{const{classes:t}=e;return Te({root:["selectedRowCount"]},jt,t)},obe=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"}})),sbe=c.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=le(t,nbe),i=Vt(),l=ut(),a=rbe(l),u=i.current.getLocaleText("footerRowSelected")(o);return L.jsx(obe,S({ref:n,className:Ce(a.root,r),ownerState:l},s,{children:u}))}),ibe=c.forwardRef(function(t,n){var r,o;const s=Vt(),i=ut(),l=rt(s,Mhe),a=rt(s,Zge),u=rt(s,d0),f=!i.hideFooterSelectedRowCount&&a>0?L.jsx(sbe,{selectedRowCount:a}):L.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?L.jsx(i.slots.footerRowCount,S({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:u})):null,g=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&L.jsx(i.slots.pagination,S({},(o=i.slotProps)==null?void 0:o.pagination));return L.jsxs(cge,S({ref:n},t,{children:[f,p,g]}))});function lbe(){var e,t;const n=ut();return L.jsxs(c.Fragment,{children:[L.jsx(n.slots.preferencesPanel,S({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&L.jsx(n.slots.toolbar,S({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const abe=c.forwardRef(function(t,n){return L.jsx(SE,S({ref:n},t,{children:L.jsx(zi,{})}))}),cbe=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noRowsLabel");return L.jsx(SE,S({ref:n},t,{children:o}))}),ube=oe(tce)(({theme:e})=>({[`& .${mc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${mc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),dbe=c.forwardRef(function(t,n){const r=Vt(),o=ut(),s=rt(r,Ps),i=rt(r,d0),l=c.useMemo(()=>{var v,y;return(v=(y=o.rowCount)!=null?y:i)!=null?v:0},[o.rowCount,i]),a=c.useMemo(()=>Math.floor(l/(s.pageSize||1)),[l,s.pageSize]),u=c.useCallback(v=>{const y=Number(v.target.value);r.current.setPageSize(y)},[r]),f=c.useCallback((v,y)=>{r.current.setPage(y)},[r]),g=(v=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const m=o.pageSizeOptions[y];if(typeof m=="number"){if(m===v)return!0}else if(m.value===v)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return L.jsx(ube,S({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:g,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:u},r.current.getLocaleText("MuiTablePagination"),t))}),fbe=["className","rowCount","visibleRowCount"],pbe=e=>{const{classes:t}=e;return Te({root:["rowCount"]},jt,t)},hbe=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),mbe=c.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=le(t,fbe),l=Vt(),a=ut(),u=pbe(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return L.jsxs(hbe,S({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=kE(e),n=Xge(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])},Jx={current:null};function Gh(e){return e.isInternal=!0,e}function dy(e){return e!==void 0&&e.isInternal===!0}function gbe(e){return Gh((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Jx.current))})}function Kh(e){return e.map(t=>S({},t,{getApplyFilterFn:gbe(t.getApplyFilterFnV7),getApplyFilterFnV7:Gh(t.getApplyFilterFnV7)}))}function iB(e){return Gh((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function lB(e){return{current:e.current.getPublicApi()}}const vbe=typeof window=="undefined"?globalThis:window,aB=vbe[atob("ZXZhbA==")];let eS;try{eS=aB("true")}catch(e){eS=!1}const tS=(e,t)=>{const n=S({},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},ybe=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"),bbe=Gi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),wbe=Gi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),cB=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(ybe(),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&&bbe(),i&&wbe(),i||s?S({},e,{items:o.map(l=>tS(l,n))}):e.items!==o?S({},e,{items:o}):e},BO=(e,t,n)=>r=>S({},r,{filterModel:cB(e,t,n)}),ca=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,uB=(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=S({},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=lB(t);if(a.getApplyFilterFnV7&&!(u&&!f)){const v=a.getApplyFilterFnV7(i,n);return typeof v!="function"?null:{v7:!0,item:i,fn:y=>{let m=t.current.getRowValue(y,n);return s&&(m=ca(m)),v(m,y,n,p)}}}const g=a.getApplyFilterFn(i,n);return typeof g!="function"?null:{v7:!1,item:i,fn:v=>{const y=t.current.getCellParams(v,i.field);Jx.current=p,s&&(y.value=ca(y.value));const m=g(y);return Jx.current=null,m}}};let zO=1;const Cbe=(e,t,n)=>{const{items:r}=e,o=r.map(a=>uB(a,t)).filter(a=>!!a);if(o.length===0)return null;if(!eS||n)return(a,u)=>{const f={};for(let p=0;p<o.length;p+=1){const g=o[p];(!u||u(g.item.field))&&(f[g.item.id]=g.v7?g.fn(a):g.fn(t.current.getRowId(a)))}return f};const s=`(function filterItem$$(getRowId, appliers, row, shouldApplyFilter) {
|
|
336
|
+
${o.map((a,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
|
|
337
|
+
`)}
|
|
338
|
+
|
|
339
|
+
const result$$ = {
|
|
340
|
+
${o.map((a,u)=>`${JSON.stringify(String(a.item.id))}:
|
|
341
|
+
!shouldApply${u} ?
|
|
342
|
+
false :
|
|
343
|
+
${a.v7?`appliers[${u}].fn(row)`:`appliers[${u}].fn(getRowId(row))`},
|
|
344
|
+
`).join(`
|
|
345
|
+
`)}};
|
|
346
|
+
|
|
347
|
+
return result$$;
|
|
348
|
+
})`,i=aB(s.replaceAll("$$",String(zO))),l=(a,u)=>i(t.current.getRowId,o,a,u);return zO+=1,l},xbe=(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)?l0(t):hl(t),a=[],{ignoreDiacritics:u}=t.current.rootProps,f=lB(t);return l.forEach(p=>{const g=t.current.getColumn(p),v=g==null?void 0:g.getApplyQuickFilterFn,y=g==null?void 0:g.getApplyQuickFilterFnV7,m=!dy(v),C=!dy(y);y&&!(m&&!C)?a.push({column:g,appliers:s.map(w=>{const b=u?ca(w):w;return{v7:!0,fn:y(b,g,f)}})}):v&&a.push({column:g,appliers:s.map(w=>{const b=u?ca(w):w;return{v7:!1,fn:v(b,g,f)}})})}),function(g,v){const y={},m={};e:for(let w=0;w<s.length;w+=1){const b=s[w];for(let x=0;x<a.length;x+=1){const{column:E,appliers:_}=a[x],{field:k}=E;if(v&&!v(k))continue;const I=_[w];let T=t.current.getRowValue(g,E);if(I.fn!==null)if(I.v7){if(u&&(T=ca(T)),I.fn(T,g,E,f)){y[b]=!0;continue e}}else{var C;const D=(C=m[k])!=null?C:t.current.getCellParams(t.current.getRowId(g),k);if(u&&(D.value=ca(D.value)),m[k]=D,I.fn(D)){y[b]=!0;continue e}}}y[b]=!1}return y}},Sbe=(e,t,n)=>{const r=Cbe(e,t,n),o=xbe(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}},VO=e=>e!=null,Pbe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>uB(r,t)!==null)),e.cleanedFilterItems),kbe=(e,t,n,r,o)=>{const s=Pbe(o,r,n.items),i=e.filter(VO),l=t.filter(VO);if(i.length>0){var a;const f=g=>i.some(v=>v[g.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=g=>l.some(v=>v[g]);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},jO=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}}),dB=(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:ki},{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:ki},{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:ki},{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:ki},{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:sB}]),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:ive,type:"string",align:"left",filterOperators:dB(),renderEditCell:$me,getApplyQuickFilterFn:iB(jO),getApplyQuickFilterFnV7:jO},Ebe=()=>Kh([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Wye}]);function Ibe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Mbe=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}},fB=S({},ai,{type:"boolean",align:"center",headerAlign:"center",renderCell:yme,renderEditCell:xme,sortComparator:X5,valueFormatter:Ibe,filterOperators:Ebe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Mbe(e)}),Kl="__check__",rf=S({},fB,{field:Kl,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=>L.jsx(wve,S({},e)),renderCell:e=>L.jsx(vve,S({},e))}),m0="actions",_be=S({},ai,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Qme,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),_E="__detail_panel_toggle__",lo=e=>e.editRows,Tbe=["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"],$be=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 Rbe({width:e}){if(!e)return null;const t={width:e};return L.jsx("div",{className:`${ue.cell} ${ue.withBorderColor}`,style:t})}const Obe=c.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:s,row:i,index:l,style:a,position:u,rowHeight:f,className:p,visibleColumns:g,renderedColumns:v,containerWidth:y,firstColumnToRender:m,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:w,isNotVisible:b,focusedCell:x,onClick:E,onDoubleClick:_,onMouseEnter:k,onMouseLeave:I,onMouseOut:T,onMouseOver:D}=t,R=le(t,Tbe),A=Vt(),V=c.useRef(null),j=ut(),M=Uc(A,j),$=rt(A,gE),F=rt(A,ws),B=rt(A,u0),O=rt(A,Uh),N=rt(A,lo),H=Et(V,n),K=l+O+2,Y={selected:r,hovered:o,isLastVisible:C,classes:j.classes,editing:A.current.getRowMode(s)===Cn.Edit,editable:j.editMode===ji.Row,rowHeight:f},te=$be(Y);c.useLayoutEffect(()=>{f==="auto"&&V.current&&typeof ResizeObserver=="undefined"&&A.current.unstable_storeRowHeightMeasurement(s,V.current.clientHeight,u)},[A,f,s,u]),c.useLayoutEffect(()=>{if(M.range){const Ge=A.current.getRowIndexRelativeToVisibleRows(s);Ge!=null&&A.current.unstable_setLastMeasuredRowIndex(Ge)}const be=V.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;A.current.unstable_storeRowHeightMeasurement(s,Ue,u)});return Ne.observe(be),()=>Ne.disconnect()},[A,M.range,l,f,s,u]);const Q=c.useCallback((be,_e)=>Ne=>{Ne.target.nodeType===1&&!Ne.currentTarget.contains(Ne.target)||A.current.getRow(s)&&(A.current.publishEvent(be,A.current.getRowParams(s),Ne),_e&&_e(Ne))},[A,s]),X=c.useCallback(be=>{const _e=nme(be.target,ue.cell),Ne=_e==null?void 0:_e.getAttribute("data-field");if(Ne){if(Ne===rf.field||Ne===_E||Ne==="__reorder__"||A.current.getCellMode(s,Ne)===un.Edit)return;const Ge=A.current.getColumn(Ne);if((Ge==null?void 0:Ge.type)===m0)return}Q("rowClick",E)(be)},[A,E,Q,s]),{slots:J,slotProps:se,disableColumnReorder:Z}=j,he=J.cell===Xx?Xx:fme,ne=j.rowReordering,re=(be,_e)=>{var Ne,Ge;const Ve=Z&&be.disableReorder||!ne&&!!F.length&&B>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&&g[w].field===be.field&&(Le=!0),L.jsx(he,S({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(A,()=>S({},A.current.unstable_getRowInternalSizes(s)),mE);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=S({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const _e=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";be[_e]=me.spacingTop}if(me!=null&&me.spacingBottom){const _e=j.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,j.rowSpacingType]),Ee=A.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof j.getRowClassName=="function"){var ae;const be=l-(((ae=M.range)==null?void 0:ae.firstRowIndex)||0),_e=S({},A.current.getRowParams(s),{isFirstVisible:be===0,isLastVisible:be===M.rows.length-1,indexRelativeToCurrentPage:be});Ee.push(j.getRowClassName(_e))}const Ie=Uge(1e4,20,80),ye=A.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=m+be;w!==void 0&&x&&(g[w].field===_e.field?Ne=w:Ne-=1);const Ge=A.current.unstable_getCellColSpanInfo(s,Ne);if(Ge&&!Ge.spannedByColSpan)if(Me!=="skeletonRow"){const{colSpan:Ve,width:Ue}=Ge.cellProps,Le={width:Ue,colSpan:Ve,showRightBorder:j.showCellVerticalBorder,indexRelativeToAllColumns:Ne};pe.push(re(_e,Le))}else{const{width:Ve}=Ge.cellProps,Ue=Math.round(Ie());pe.push(L.jsx(J.skeletonCell,{width:Ve,contentWidth:Ue,field:_e.field,align:_e.align},_e.field))}}const fe=y-$,de=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",_),onMouseEnter:Q("rowMouseEnter",k),onMouseLeave:Q("rowMouseLeave",I),onMouseOut:Q("rowMouseOut",T),onMouseOver:Q("rowMouseOver",D)}:null;return L.jsxs("div",S({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,R,{children:[pe,fe>0&&L.jsx(Rbe,{width:fe})]}))}),Dbe=h0(Obe);function Abe({privateApiRef:e,props:t,children:n}){const r=c.useRef(e.current.getPublicApi());return L.jsx(v5.Provider,{value:t,children:L.jsx(y5.Provider,{value:e,children:L.jsx(g5.Provider,{value:r,children:n})})})}const Lbe=jge()&&window.localStorage.getItem("DEBUG")!=null,cp=()=>{},Fbe={debug:cp,info:cp,warn:cp,error:cp},HO=["debug","info","warn","error"];function UO(e,t,n=console){const r=HO.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return HO.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[u,...f]=a;n[i](`MUI: ${e} - ${u}`,...f)}:s[i]=cp,s),{})}const Nbe=(e,t)=>{const n=c.useCallback(r=>Lbe?UO(r,"debug",t.logger):t.logLevel?UO(r,t.logLevel.toString(),t.logger):Fbe,[t.logLevel,t.logger]);At(e,{getLogger:n},"private")};class TE{static create(t){return new TE(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 Bbe=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 pB=Symbol("mui.api_private"),zbe=e=>e.isPropagationStopped!==void 0;let WO=0;function Vbe(e){var t;const n=(t=e.current)==null?void 0:t[pB];if(n)return n;const r={},o={state:r,store:TE.create(r),instanceId:{id:WO}};return WO+=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 Bbe}),o}function jbe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[pB]:e.current}}function Hbe(e,t){const n=c.useRef(),r=c.useRef();r.current||(r.current=Vbe(n)),n.current||(n.current=jbe(r));const o=c.useCallback((...i)=>{const[l,a,u={}]=i;if(u.defaultMuiPrevented=!1,zbe(u)&&u.isPropagationStopped())return;const f=t.signature===Li.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 Ube=(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 Wbe(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=Wbe(e,"string");return vh(t)==="symbol"?t:String(t)}const Gbe=e=>{const t=c.useRef({}),n=c.useRef(!1),r=c.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=c.useCallback((f,p,g)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const v=t.current[f];return v.processors.get(p)!==g&&(v.processors.set(p,g),r(v)),()=>{t.current[f].processors.set(p,null)}},[r]),s=c.useCallback((f,p,g)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=g,()=>{const v=t.current[f].appliers,y=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,g,v]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((m,C)=>C?C(m,v):m,g):g},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},u={unstable_applyPipeProcessors:l};At(e,a,"private"),At(e,u,"public")},hr=(e,t,n)=>{const r=c.useRef(),o=c.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=c.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Wh(()=>{s()});const i=c.useRef(!0);c.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},$E=(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",GO={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Kbe=e=>{const t=c.useRef(new Map),n=c.useRef({}),r=c.useCallback((a,u,f)=>{const p=()=>{const y=n.current[u],m=le(y,[a].map(yh));n.current[u]=m};n.current[u]||(n.current[u]={});const g=n.current[u],v=g[a];return g[a]=f,!v||v===f||a===e.current.getActiveStrategy(GO[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=c.useCallback((a,u)=>{const f=e.current.getActiveStrategy(GO[a]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[f])throw new Error(`No processor found for processor "${a}" on strategy "${f}"`);const g=p[f];return g(u)},[e]),s=c.useCallback(a=>{var u;const p=Array.from(t.current.entries()).find(([,g])=>g.group!==a?!1:g.isAvailable());return(u=p==null?void 0:p[0])!=null?u: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")},qbe=(e,t)=>{const n=c.useRef({}),[,r]=c.useState(),o=c.useCallback(f=>{n.current[f.stateId]=f},[]),s=c.useCallback((f,p)=>{let g;if(H5(f)?g=f(e.current.state):g=f,e.current.state===g)return!1;let v=!1;const y=[];if(Object.keys(n.current).forEach(m=>{const C=n.current[m],w=C.stateSelector(e.current.state,e.current.instanceId),b=C.stateSelector(g,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(m=>m.stateId).join(", ")} in the same transaction.`);if(v||(e.current.state=g,e.current.publishEvent&&e.current.publishEvent("stateChange",g),e.current.store.update(g)),y.length===1){const{stateId:m,hasPropChanged:C}=y[0],w=n.current[m],b=w.stateSelector(g,e.current.instanceId);if(w.propOnChange&&C){const x=t.signature===Li.DataGridPro?{api:e.current,reason:p}:{reason:p};w.propOnChange(b,x)}v||e.current.publishEvent(w.changeEvent,b,{reason:p})}return!v},[e,t.signature]),i=c.useCallback((f,p,g)=>e.current.setState(v=>S({},v,{[f]:p(v[f])}),g),[e]),l=c.useCallback(()=>r(()=>e.current.state),[e]),a={setState:s,forceUpdate:l},u={updateControlState:i,registerControlState:o};At(e,a,"public"),At(e,u,"private")},Ybe=(e,t)=>{const n=Hbe(e,t);return Nbe(n,t),qbe(n,t),Gbe(n),Kbe(n),Ube(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)},Qbe=/(\d+)-(\d+)-(\d+)/,Xbe=/(\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?Xbe:Qbe).slice(1).map(Number),u=new Date(o,s-1,i,l||0,a||0).getTime();return f=>{if(!f)return!1;if(r)return t(f.getTime(),u);const g=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(g,u)}}const hB=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 mB({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 Zbe({value:e,field:t,id:n}){return e?(mB({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Jbe({value:e,field:t,id:n}){return e?(mB({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const e0e=S({},ai,{type:"date",sortComparator:Z5,valueFormatter:Zbe,filterOperators:hB(),renderEditCell:A5,pastedValueParser:e=>new Date(e)}),t0e=S({},ai,{type:"dateTime",sortComparator:Z5,valueFormatter:Jbe,filterOperators:hB(!0),renderEditCell:A5,pastedValueParser:e=>new Date(e)}),Zl=e=>e==null?null:Number(e),KO=Gh(e=>e==null||Number.isNaN(e)||e===""?null:t=>Zl(t)===Zl(e)),n0e=()=>Kh([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Zl(t)===e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Zl(t)!==e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Zl(t)>e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Zl(t)>=e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Zl(t)<e.value,InputComponent:ki,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Zl(t)<=e.value,InputComponent:ki,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:sB,InputComponentProps:{type:"number"}}]),r0e=S({},ai,{type:"number",align:"right",headerAlign:"right",sortComparator:X5,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Vge(e)?e.toLocaleString():e||"",filterOperators:n0e(),getApplyQuickFilterFn:iB(KO),getApplyQuickFilterFnV7:KO}),bu=e=>e==null||!PE(e)?e:e.value,o0e=()=>Kh([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)===bu(e.value),InputComponent:FO},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>bu(t)!==bu(e.value),InputComponent:FO},{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:Xye}]),s0e=e=>typeof e[0]=="object",i0e=e=>PE(e)?e.value:e,l0e=e=>PE(e)?e.label:String(e),a0e=S({},ai,{type:"singleSelect",getOptionLabel:l0e,getOptionValue:i0e,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(!s0e(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:jme,filterOperators:o0e(),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}}),gB="__default__",c0e=()=>({string:ai,number:r0e,date:e0e,dateTime:t0e,boolean:fB,singleSelect:a0e,[m0]:_be,[gB]:ai});function nS(e,t){return typeof e=="string"&&[t,`
|
|
350
|
+
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const vB=(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 nS(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 rS{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 u0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const s=new rS({delimiterCharacter:r});return t.forEach(i=>{const l=n(e,i.field);s.addValue(vB(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),s.getRowString()};function d0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l}=e,a=n.reduce((v,y)=>`${v}${u0e({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 m=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 rS({delimiterCharacter:r,sanitizeCellValue:nS});f.push(w),u.forEach(b=>{const x=(m[b.field]||[])[C],E=v[x];w.addValue(E?E.headerName||E.groupId:"")})}}const p=new rS({delimiterCharacter:r,sanitizeCellValue:nS});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 f0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{qO(e)}):qO(e)}function p0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const h0e=(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")||p0e(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=Vo(e);if(u){const f=e.current.getCellParams(u.id,u.field);l=vB(f,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(f0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Wge(e,e.current.rootElementRef,"keydown",s),In(e,"clipboardCopy",t.onClipboardCopy)},m0e=e=>S({},e,{columnMenu:{open:!1}}),g0e=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"),S({},a,{columnMenu:{open:!0,field:i}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=c.useCallback(()=>{const i=Qx(e.current.state);if(i.field){const a=ef(e),u=oi(e),f=hl(e);let p=i.field;if(a[p]||(p=f[0]),u[p]===!1){const g=f.filter(y=>y===p?!0:u[y]!==!1),v=g.indexOf(p);p=g[v+1]||g[v-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),S({},a,{columnMenu:S({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=c.useCallback(i=>{t.debug("Toggle Column Menu");const l=Qx(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)},yB=["maxWidth","minWidth","width","flex"];function v0e({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 oS=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(l=>{const a=S({},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=v0e({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return S({},e,{lookup:n})},y0e=(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=S({},e.lookup);for(let f=0;f<o.length;f+=1){const p=o[f],g=S({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([v,y])=>{g[v]=y===-1?1/0:y}),a[p]=g}return S({},e,{orderedFields:l,lookup:a})};function YO(e,t){let n=e[gB];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:S({},y.lookup),columnVisibilityModel:o}}let p={};s&&!u&&(p=Object.keys(f.lookup).reduce((y,m)=>S({},y,{[m]:!1}),{})),t.forEach(y=>{const{field:m}=y;p[m]=!0;let C=f.lookup[m];C==null?(C=S({},YO(r,y.type),{field:m,hasBeenResized:!1}),f.orderedFields.push(m)):s&&f.orderedFields.push(m),C&&C.type!==y.type&&(C=S({},YO(r,y.type),{field:m}));let w=C.hasBeenResized;yB.forEach(b=>{y[b]!==void 0&&(w=!0,y[b]===-1&&(y[b]=1/0))}),f.lookup[m]=S({},C,y,{hasBeenResized:w})}),s&&!u&&Object.keys(f.lookup).forEach(y=>{p[y]||delete f.lookup[y]});const g=e.current.unstable_applyPipeProcessors("hydrateColumns",f),v=y0e(g,n);return oS(v,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},QO=e=>t=>S({},t,{columns:e});function sS({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 b0e({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return sS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function RE(e,t){const n=nf(e),r=Uh(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const bB=c0e(),w0e=(e,t,n)=>{var r,o,s,i;const l=_u({apiRef:n,columnTypes:bB,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 S({},e,{columns:l})};function C0e(e,t){var n,r;const o=eo(e,"useGridColumns"),s=bB,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(QO(M)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",M.orderedFields)},[o,e]),u=c.useCallback(M=>ef(e)[M],[e]),f=c.useCallback(()=>Ai(e),[e]),p=c.useCallback(()=>Ar(e),[e]),g=c.useCallback((M,$=!0)=>($?Ar(e):Ai(e)).findIndex(B=>B.field===M),[e]),v=c.useCallback(M=>{const $=g(M);return $d(e)[$]},[e,g]),y=c.useCallback(M=>{oi(e)!==M&&(e.current.setState(F=>S({},F,{columns:_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),m=c.useCallback(M=>{const $=_u({apiRef:e,columnTypes:s,columnsToUpsert:M,initialState:void 0,keepOnlyColumnsToUpsert:!1});a($)},[e,a,s]),C=c.useCallback((M,$)=>{var F;const B=oi(e),O=(F=B[M])!=null?F:!0;if($!==O){const N=S({},B,{[M]:$});e.current.setColumnVisibilityModel(N)}},[e]),w=c.useCallback(M=>hl(e).findIndex(F=>F===M),[e]),b=c.useCallback((M,$)=>{const F=hl(e),B=w(M);if(B===$)return;o.debug(`Moving column ${M} to index ${$}`);const O=[...F],N=O.splice(B,1)[0];O.splice($,0,N),a(S({},vc(e.current.state),{orderedFields:O}));const H={column:e.current.getColumn(M),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(M),oldIndex:B};e.current.publishEvent("columnIndexChange",H)},[e,o,a,w]),x=c.useCallback((M,$)=>{var F,B;o.debug(`Updating column ${M} width to ${$}`);const O=vc(e.current.state),N=O.lookup[M],H=S({},N,{width:$,hasBeenResized:!0});a(oS(S({},O,{lookup:S({},O.lookup,{[M]:H})}),(F=(B=e.current.getRootDimensions())==null?void 0:B.viewportInnerSize.width)!=null?F:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(M),colDef:H,width:$})},[e,o,a]),E={getColumn:u,getAllColumns:f,getColumnIndex:g,getColumnPosition:v,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:w,updateColumns:m,setColumnVisibilityModel:y,setColumnVisibility:C,setColumnWidth:x},_={setColumnIndex:b};At(e,E,"public"),At(e,_,t.signature===Li.DataGrid?"private":"public");const k=c.useCallback((M,$)=>{var F,B;const O={},N=oi(e);(!$.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((F=(B=t.initialState)==null||(B=B.columns)==null?void 0:B.columnVisibilityModel)!=null?F:{}).length>0||Object.keys(N).length>0)&&(O.columnVisibilityModel=N),O.orderedFields=hl(e);const K=Ai(e),Y={};return K.forEach(te=>{if(te.hasBeenResized){const Q={};yB.forEach(X=>{let J=te[X];J===1/0&&(J=-1),Q[X]=J}),Y[te.field]=Q}}),Object.keys(Y).length>0&&(O.dimensions=Y),S({},M,{columns:O})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=c.useCallback((M,$)=>{var F;const B=(F=$.stateToRestore.columns)==null?void 0:F.columnVisibilityModel,O=$.stateToRestore.columns;if(B==null&&O==null)return M;const N=_u({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:O,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(QO(N)),O!=null&&e.current.publishEvent("columnsChange",N.orderedFields),M},[e,s]),T=c.useCallback((M,$)=>{if($===Ac.columns){var F;const B=t.slots.columnsPanel;return L.jsx(B,S({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return M},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),D=c.useCallback(M=>t.disableColumnSelector?M:[...M,"columnMenuColumnsItem"],[t.disableColumnSelector]);hr(e,"columnMenu",D),hr(e,"exportState",k),hr(e,"restoreState",I),hr(e,"preferencePanel",T);const R=c.useRef(null);dt(e,"viewportInnerSizeChange",M=>{R.current!==M.width&&(R.current=M.width,a(oS(vc(e.current.state),M.width)))});const V=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]);$E(e,"hydrateColumns",V);const j=c.useRef(!0);c.useEffect(()=>{if(j.current){j.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const 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 x0e=.7,S0e=1.3,wB={compact:x0e,comfortable:S0e,standard:1},P0e=(e,t)=>S({},e,{density:{value:t.density,factor:wB[t.density]}}),k0e=(e,t)=>{const n=eo(e,"useDensity"),r=c.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=wE(i),a={value:s,factor:wB[s]};return bc(l,a)?i:S({},i,{density:a})}),e.current.forceUpdate()},[n,e]);c.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),At(e,{setDensity:r},"public")};function E0e(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 CB=({apiRef:e,options:t})=>{const n=Ai(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)},I0e=({apiRef:e})=>{var t,n;const r=Nhe(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},M0e=(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,g;n.debug("Get data as CSV");const v=CB({apiRef:e,options:u}),m=((f=u.getRowsToExport)!=null?f:I0e)({apiRef:e});return d0e({columns:v,rowIds:m,delimiterCharacter:u.delimiter||",",includeHeaders:(p=u.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(g=u.includeColumnGroupsHeaders)!=null?g:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),i=c.useCallback(u=>{n.debug("Export data as CSV");const f=s(u),p=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});E0e(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:L.jsx(ebe,{options:f.csvOptions}),componentName:"csvExport"}]},[]);hr(e,"exportMenu",a)},_0e=(e,t)=>{var n,r;const o=S({},G5(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return K5(o.pageSize,t.signature),S({},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=W5(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=qge(s.page,l);return a!==s.page&&(s=S({},s,{page:a})),K5(s.pageSize,t),{paginationModel:s}},T0e=(e,t)=>{var n;const r=eo(e,"useGridPagination"),o=rt(e,d0),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(m=>{const C=Ps(e);m!==C.page&&(r.debug(`Setting page to ${m}`),e.current.setPaginationModel({page:m,pageSize:C.pageSize}))},[e,r]),a=c.useCallback(m=>{const C=Ps(e);m!==C.pageSize&&(r.debug(`Setting page size to ${m}`),e.current.setPaginationModel({pageSize:m,page:C.page}))},[e,r]),u=c.useCallback(m=>{var C;const w=Ps(e);m!==w&&(r.debug("Setting 'paginationModel' to",m),e.current.updateControlState("pagination",Zg((C=t.rowCount)!=null?C:o,t.signature,m),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);At(e,{setPage:l,setPageSize:a,setPaginationModel:u},"public");const p=c.useCallback((m,C)=>{var 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!==Kge(t.autoPageSize)?S({},m,{pagination:S({},m.pagination,{paginationModel:b})}):m},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),g=c.useCallback((m,C)=>{var w,b,x;const E=(w=C.stateToRestore.pagination)!=null&&w.paginationModel?S({},G5(t.autoPageSize),(b=C.stateToRestore.pagination)==null?void 0:b.paginationModel):Ps(e);return e.current.updateControlState("pagination",Zg((x=t.rowCount)!=null?x:o,t.signature,E),"stateRestorePreProcessing"),m},[e,t.autoPageSize,t.rowCount,t.signature,o]);hr(e,"exportState",p),hr(e,"restoreState",g);const v=()=>{var m;const C=Ps(e);(m=e.current.virtualScrollerRef)!=null&&m.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},y=c.useCallback(()=>{const m=e.current.getRootDimensions();if(!t.autoPageSize||!m)return;const C=$5(e),w=Math.floor((m.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 m;e.current.updateControlState("pagination",Zg((m=t.rowCount)!=null?m:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),c.useEffect(()=>{y()},[y])};function $0e(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function R0e(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 O0e=(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,m,C)=>new Promise(w=>{const b=CB({apiRef:e,options:{fields:y,allColumns:m}}).map(_=>_.field),x=Ai(e),E={};x.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,m)=>{var C,w;const b=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),x=y.contentDocument;if(!x)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 D=k.querySelector(`.${ue.columnHeaders}`).querySelector(`.${ue.columnHeadersInner}`);D.style.width="100%";let R=((C=_.querySelector(`.${ue.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,A=((w=_.querySelector(`.${ue.footerContainer}`))==null?void 0:w.offsetHeight)||0;if(b.hideToolbar){var V;(V=k.querySelector(`.${ue.toolbarContainer}`))==null||V.remove(),R=0}if(b.hideFooter){var j;(j=k.querySelector(`.${ue.footerContainer}`))==null||j.remove(),A=0}const M=E.currentPageTotalHeight+RE(e,t.columnHeaderHeight)+R+A;if(k.style.height=`${M}px`,k.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const O=k.querySelector(`.${ue.footerContainer}`);O.style.position="absolute",O.style.width="100%",O.style.top=`${M-A}px`}const $=document.createElement("div");$.appendChild(k),x.body.innerHTML=$.innerHTML;const F=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof F=="string"){const O=x.createElement("style");O.appendChild(x.createTextNode(F)),x.head.appendChild(O)}b.bodyClassName&&x.body.classList.add(...b.bodyClassName.split(" "));const B=[];if(b.copyStyles){const O=_.getRootNode(),H=(O.constructor.name==="ShadowRoot"?O: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=x.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(x.createTextNode(X)),x.head.appendChild(te)}}else if(Y.getAttribute("href")){const te=x.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||"")}B.push(new Promise(Q=>{te.addEventListener("load",()=>Q())})),x.head.appendChild(te)}}}Promise.all(B).then(()=>{y.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=c.useCallback(y=>{var m;r.current.body.removeChild(y),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),g={exportDataAsPrint:c.useCallback(y=>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=I5(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 $0e();const m=R0e(y==null?void 0:y.fileName);m.onload=()=>{u(m,y),m.contentWindow.matchMedia("print").addEventListener("change",w=>{w.matches===!1&&f(m)})},r.current.body.appendChild(m)}),[t,n,e,u,f,l,a])};At(e,g,"public");const v=c.useCallback((y,m)=>{var C;return(C=m.printOptions)!=null&&C.disableToolbarButton?y:[...y,{component:L.jsx(tbe,{options:m.printOptions}),componentName:"printExport"}]},[]);hr(e,"exportMenu",v)},D0e=(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 S({},e,{filter:{filterModel:cB(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},A0e=e=>e.filteredRowsLookup;function XO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function L0e(){return i0(Object.values)}const F0e=(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(R=>{const A=Or(R,e.current.instanceId),V=t.filterMode==="client"?Sbe(A,e,t.disableEval):null,j=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:A!=null?A:hh()}),M=S({},R,{filter:S({},R.filter,j)}),$=XO(e,M);return S({},M,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=c.useCallback((R,A)=>A==null||A.filterable===!1||t.disableColumnFilter?R:[...R,"columnMenuFilterItem"],[t.disableColumnFilter]),l=c.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=c.useCallback(R=>{const A=Or(e),V=[...A.items],j=V.findIndex(M=>M.id===R.id);j===-1?V.push(R):V[j]=R,e.current.setFilterModel(S({},A,{items:V}),"upsertFilterItem")},[e]),u=c.useCallback(R=>{const A=Or(e),V=[...A.items];R.forEach(j=>{const M=R.findIndex($=>$.id===j.id);M===-1?V.push(j):V[M]=j}),e.current.setFilterModel(S({},A,{items:R}),"upsertFilterItems")},[e]),f=c.useCallback(R=>{const A=Or(e),V=A.items.filter(j=>j.id!==R.id);V.length!==A.items.length&&e.current.setFilterModel(S({},A,{items:V}),"deleteFilterItem")},[e]),p=c.useCallback((R,A,V)=>{if(o.debug("Displaying filter panel"),R){const j=Or(e),M=j.items.filter(O=>{var N;if(O.value!==void 0)return!(Array.isArray(O.value)&&O.value.length===0);const K=(N=e.current.getColumn(O.field).filterOperators)==null?void 0:N.find(te=>te.value===O.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let $;const F=M.find(O=>O.field===R),B=e.current.getColumn(R);F?$=M:t.disableMultipleColumnsFiltering?$=[tS({field:R,operator:B.filterOperators[0].value},e)]:$=[...M,tS({field:R,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(S({},j,{items:$}))}e.current.showPreferences(Ac.filters,A,V)},[e,o,t.disableMultipleColumnsFiltering]),g=c.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),v=c.useCallback(R=>{const A=Or(e);A.logicOperator!==R&&e.current.setFilterModel(S({},A,{logicOperator:R}),"changeLogicOperator")},[e]),y=c.useCallback(R=>{const A=Or(e);bc(A.quickFilterValues,R)||e.current.setFilterModel(S({},A,{quickFilterValues:[...R]}))},[e]),m=c.useCallback((R,A)=>{Or(e)!==R&&(o.debug("Setting filter model"),e.current.updateControlState("filter",BO(R,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:v,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:u,setFilterModel:m,showFilterPanel:p,hideFilterPanel:g,setQuickFilterValues:y,ignoreDiacritics:t.ignoreDiacritics};At(e,C,"public");const w=c.useCallback((R,A)=>{var V;const j=Or(e);return!A.exportOnlyDirtyModels||t.filterModel!=null||((V=t.initialState)==null||(V=V.filter)==null?void 0:V.filterModel)!=null||!bc(j,hh())?S({},R,{filter:{filterModel:j}}):R},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),b=c.useCallback((R,A)=>{var V;const j=(V=A.stateToRestore.filter)==null?void 0:V.filterModel;return j==null?R:(e.current.updateControlState("filter",BO(j,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},R,{callbacks:[...R.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=c.useCallback((R,A)=>{if(A===Ac.filters){var V;const j=t.slots.filterPanel;return L.jsx(j,S({},(V=t.slotProps)==null?void 0:V.filterPanel))}return R},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:E}=t,_=hE(L0e),k=c.useCallback(R=>{if(t.filterMode!=="client"||!R.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const A=aa(e),V={},{isRowMatchingFilters:j}=R,M={},$={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;j(H,void 0,$);const Y=kbe([$.passingFilterItems],[$.passingQuickFilterValues],R.filterModel,e,M);V[K]=Y}const B="auto-generated-group-footer-root";return A[B]&&(V[B]=!0),{filteredRowsLookup:V,filteredDescendantCountLookup:{}}},[e,t.filterMode,E,_]);hr(e,"columnMenu",i),hr(e,"exportState",w),hr(e,"restoreState",b),hr(e,"preferencePanel",x),fy(e,Lc,"filtering",k),fy(e,Lc,"visibleRowsLookupCreation",A0e);const I=c.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const R=Or(e),A=Phe(e),V=R.items.filter(j=>j.field&&A[j.field]);V.length<R.items.length&&e.current.setFilterModel(S({},R,{items:V}))},[e,o]),T=c.useCallback(R=>{R==="filtering"&&e.current.unstable_applyFilters()},[e]),D=c.useCallback(()=>{e.current.setState(R=>S({},R,{visibleRowsLookup:XO(e,R)})),e.current.forceUpdate()},[e]);dt(e,"rowsSet",s),dt(e,"columnsChange",I),dt(e,"activeStrategyProcessorChange",T),dt(e,"rowExpansionChange",D),dt(e,"columnVisibilityModelChange",()=>{const R=Or(e);R.quickFilterValues&&R.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Wh(()=>{e.current.unstable_applyFilters()}),Nt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},N0e=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),B0e=(e,t)=>{const n=eo(e,"useGridFocus"),r=c.useRef(null),o=c.useCallback((I,T)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),T)},[e]),s=c.useCallback((I,T)=>{const D=Vo(e);(D==null?void 0:D.id)===I&&(D==null?void 0:D.field)===T||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${I} and field=${T}`),S({},R,{tabIndex:{cell:{id:I,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:T},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(D&&o(D,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,T))))},[e,n,o]),i=c.useCallback((I,T={})=>{const D=Vo(e);o(D,T),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${I}`),S({},R,{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,T={})=>{const D=Vo(e);o(D,T),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${I}`),S({},R,{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,T,D={})=>{const R=Vo(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),D),e.current.setState(A=>S({},A,{tabIndex:{columnGroupHeader:{field:I,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:T},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=c.useCallback(()=>ry(e),[e]),f=c.useCallback((I,T,D)=>{let R=e.current.getColumnIndex(T);const A=Ar(e),V=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode}),j=tf(e),M=[].concat(j.top||[],V.rows,j.bottom||[]);let $=M.findIndex(N=>N.id===I);D==="right"?R+=1:D==="left"?R-=1:$+=1,R>=A.length?($+=1,$<M.length&&(R=0)):R<0&&($-=1,$>=0&&(R=A.length-1)),$=Rd($,0,M.length-1);const F=M[$];if(!F)return;const B=e.current.unstable_getCellColSpanInfo(F.id,R);B&&B.spannedByColSpan&&(D==="left"||D==="below"?R=B.leftVisibleCellIndex:D==="right"&&(R=B.rightVisibleCellIndex)),R=Rd(R,0,A.length-1);const O=A[R];e.current.setCellFocus(F.id,O.field)},[e,t.pagination,t.paginationMode]),p=c.useCallback(({id:I,field:T})=>{e.current.setCellFocus(I,T)},[e]),g=c.useCallback((I,T)=>{T.key==="Enter"||T.key==="Tab"||T.key==="Shift"||ay(T.key)||e.current.setCellFocus(I.id,I.field)},[e]),v=c.useCallback(({field:I},T)=>{T.target===T.currentTarget&&e.current.setColumnHeaderFocus(I,T)},[e]),y=c.useCallback(({fields:I,depth:T},D)=>{if(D.target!==D.currentTarget)return;const R=ry(e);R!==null&&R.depth===T&&I.includes(R.field)||e.current.setColumnGroupHeaderFocus(I[0],T,D)},[e]),m=c.useCallback((I,T)=>{var D;(D=T.relatedTarget)!=null&&D.className.includes(ue.columnHeader)||(n.debug("Clearing focus"),e.current.setState(R=>S({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=c.useCallback(I=>{r.current=I},[]),w=c.useCallback(I=>{const T=r.current;r.current=null;const D=Vo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:T}))return;if(!D){T&&e.current.setCellFocus(T.id,T.field);return}if((T==null?void 0:T.id)===D.id&&(T==null?void 0:T.field)===D.field)return;const A=e.current.getCellElement(D.id,D.field);A!=null&&A.contains(I.target)||(T?e.current.setCellFocus(T.id,T.field):(e.current.setState(V=>S({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(D,I)))},[e,o]),b=c.useCallback(I=>{if(I.cellMode==="view")return;const T=Vo(e);((T==null?void 0:T.id)!==I.id||(T==null?void 0:T.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),x=c.useCallback(()=>{const I=Vo(e);I&&!e.current.getRow(I.id)&&e.current.setState(T=>S({},T,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),E=Ye(()=>{const I=Vo(e);if(!I)return;const T=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(T.rows.find(A=>A.id===I.id))return;const R=Ar(e);e.current.setState(A=>S({},A,{tabIndex:{cell:{id:T.rows[0].id,field:R[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",m),dt(e,"cellDoubleClick",p),dt(e,"cellMouseDown",C),dt(e,"cellKeyDown",g),dt(e,"cellModeChange",b),dt(e,"columnHeaderFocus",v),dt(e,"columnGroupHeaderFocus",y),dt(e,"rowsSet",x),dt(e,"paginationModelChange",E)};function z0e(e,t){const n=tf(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const eC=({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},tC=({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},V0e=(e,t)=>{const n=eo(e,"useGridKeyboardNavigation"),r=Uc(e,t).rows,o=yn(),s=c.useMemo(()=>z0e(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=c.useCallback((w,b,x="left")=>{const E=za(e),_=e.current.unstable_getCellColSpanInfo(b,w);_&&_.spannedByColSpan&&(x==="left"?w=_.leftVisibleCellIndex:x==="right"&&(w=_.rightVisibleCellIndex));const k=E.findIndex(T=>T.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 x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,b)},[e,n]),u=c.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,b)},[e,n]),f=c.useCallback((w,b,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:E}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(E,b,x)},[e,n]),p=c.useCallback(w=>{var b;return(b=s[w])==null?void 0:b.id},[s]),g=c.useCallback((w,b)=>{const x=b.currentTarget.querySelector(`.${ue.columnHeaderTitleContainerContent}`);if(!!x&&x.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,T=s.length>0?0:null,D=s.length-1,R=0,A=Ar(e).length-1,V=Uh(e);let j=!0;switch(b.key){case"ArrowDown":{T!==null&&(i?u(I,b):l(I,p(T)));break}case"ArrowRight":{const M=tC({currentColIndex:I,firstColIndex:R,lastColIndex:A,direction:o.direction});M!==null&&a(M,b);break}case"ArrowLeft":{const M=eC({currentColIndex:I,firstColIndex:R,lastColIndex:A,direction:o.direction});M!==null&&a(M,b);break}case"ArrowUp":{V>0&&f(I,V-1,b);break}case"PageDown":{T!==null&&D!==null&&l(I,p(Math.min(T+k,D)));break}case"Home":{a(R,b);break}case"End":{a(A,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:j=!1}j&&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=lve(e)===w.field,_=ave(e)===w.field;if(E||_||!ay(b.key))return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,T=0,D=s.length-1,R=0,A=Ar(e).length-1;let V=!0;switch(b.key){case"ArrowDown":{const j=p(T);j!=null&&l(I,j);break}case"ArrowRight":{const j=tC({currentColIndex:I,firstColIndex:R,lastColIndex:A,direction:o.direction});j!==null&&u(j,b);break}case"ArrowLeft":{const j=eC({currentColIndex:I,firstColIndex:R,lastColIndex:A,direction:o.direction});j!==null?u(j,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{a(I,b);break}case"PageDown":{D!==null&&l(I,p(Math.min(T+k,D)));break}case"Home":{u(R,b);break}case"End":{u(A,b);break}case" ":break;default:V=!1}V&&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:T,maxDepth:D}=w,R=e.current.getViewportPageSize(),A=e.current.getColumnIndex(_),V=_?e.current.getColumnIndex(_):0,j=0,M=s.length-1,$=0,F=Ar(e).length-1;let B=!0;switch(b.key){case"ArrowDown":{T===D-1?a(A,b):f(A,k+1,b);break}case"ArrowUp":{T>0&&f(A,k-1,b);break}case"ArrowRight":{const O=I.length-I.indexOf(_)-1;A+O+1<=F&&f(A+O+1,k,b);break}case"ArrowLeft":{const O=I.indexOf(_);A-O-1>=$&&f(A-O-1,k,b);break}case"PageDown":{M!==null&&l(V,p(Math.min(j+R,M)));break}case"Home":{f($,k,b);break}case"End":{f(F,k,b);break}case" ":break;default:B=!1}B&&b.preventDefault()},[e,s.length,a,f,l,p]),m=c.useCallback((w,b)=>{if(!b.currentTarget.contains(b.target))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===un.Edit||!ay(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:x}))return;const _=e.current.getRootDimensions();if(s.length===0||!_)return;const k=o.direction,I=e.current.getViewportPageSize(),T=w.field?e.current.getColumnIndex(w.field):0,D=s.findIndex($=>$.id===w.id),R=0,A=s.length-1,V=0,j=Ar(e).length-1;let M=!0;switch(b.key){case"ArrowDown":{D<A&&l(T,p(D+1));break}case"ArrowUp":{D>R?l(T,p(D-1)):i?u(T,b):a(T,b);break}case"ArrowRight":{const $=tC({currentColIndex:T,firstColIndex:V,lastColIndex:j,direction:k});$!==null&&l($,p(D),k==="rtl"?"left":"right");break}case"ArrowLeft":{const $=eC({currentColIndex:T,firstColIndex:V,lastColIndex:j,direction:k});$!==null&&l($,p(D),k==="rtl"?"right":"left");break}case"Tab":{b.shiftKey&&T>V?l(T-1,p(D),"left"):!b.shiftKey&&T<j&&l(T+1,p(D),"right");break}case" ":{if(w.field===_E)break;const F=w.colDef;if(F&&F.type==="treeDataGroup")break;!b.shiftKey&&D<A&&l(T,p(Math.min(D+I,A)));break}case"PageDown":{D<A&&l(T,p(Math.min(D+I,A)));break}case"PageUp":{const $=Math.max(D-I,R);$!==D&&$>=R?l(T,p($)):a(T,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(V,p(R)):l(V,p(D));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(j,p(A)):l(j,p(D));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,[]);hr(e,"canStartEditing",C),dt(e,"columnHeaderKeyDown",g),dt(e,"headerFilterKeyDown",v),dt(e,"columnGroupHeaderKeyDown",y),dt(e,"cellKeyDown",m)},j0e=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},H0e=(e,t)=>{var n;const r=eo(e,"useGridPreferencesPanel"),o=c.useRef(),s=c.useRef(),i=c.useCallback(()=>{r.debug("Hiding Preferences Panel");const g=mh(e.current.state);g.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:g.openedPanelValue}),e.current.setState(v=>S({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=c.useCallback(()=>{s.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=c.useCallback(()=>{o.current=setTimeout(i,100)},[i]),u=c.useCallback((g,v,y)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(m=>S({},m,{preferencePanel:S({},m.preferencePanel,{open:!0,openedPanelValue:g,panelId:v,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:g}),e.current.forceUpdate()},[r,l,e]);At(e,{showPreferences:u,hidePreferences:a},"public");const f=c.useCallback((g,v)=>{var y;const m=mh(e.current.state);return!v.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||m.open?S({},g,{preferencePanel:m}):g},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=c.useCallback((g,v)=>{const y=v.stateToRestore.preferencePanel;return y!=null&&e.current.setState(m=>S({},m,{preferencePanel:y})),g},[e]);hr(e,"exportState",f),hr(e,"restoreState",p),c.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},U0e=["id","field"],W0e=["id","field"],G0e=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"),K0e=(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.editMode===ji.Cell&&M(...$)},p=c.useCallback((M,$)=>{const F=e.current.getCellParams(M,$);if(!e.current.isCellEditable(F))throw new Error(`MUI: The cell with id=${M} and field=${$} is not editable.`)},[e]),g=c.useCallback((M,$,F)=>{if(e.current.getCellMode(M,$)!==F)throw new Error(`MUI: The cell with id=${M} and field=${$} is not in ${F} mode.`)},[e]),v=c.useCallback((M,$)=>{if(!M.isEditable||M.cellMode===un.Edit)return;const F=S({},M,{reason:Wl.cellDoubleClick});e.current.publishEvent("cellEditStart",F,$)},[e]),y=c.useCallback((M,$)=>{if(M.cellMode===un.View||e.current.getCellMode(M.id,M.field)===un.View)return;const F=S({},M,{reason:Xs.cellFocusOut});e.current.publishEvent("cellEditStop",F,$)},[e]),m=c.useCallback((M,$)=>{if(M.cellMode===un.Edit){if($.which===229)return;let F;if($.key==="Escape"?F=Xs.escapeKeyDown:$.key==="Enter"?F=Xs.enterKeyDown:$.key==="Tab"&&(F=$.shiftKey?Xs.shiftTabKeyDown:Xs.tabKeyDown,$.preventDefault()),F){const B=S({},M,{reason:F});e.current.publishEvent("cellEditStop",B,$)}}else if(M.isEditable){let F;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:M,editMode:"cell"}))return;if(N5($)||($.ctrlKey||$.metaKey)&&$.key==="v"?F=Wl.printableKeyDown:$.key==="Enter"?F=Wl.enterKeyDown:($.key==="Delete"||$.key==="Backspace")&&(F=Wl.deleteKeyDown),F){const O=S({},M,{reason:F,key:$.key});e.current.publishEvent("cellEditStart",O,$)}}},[e]),C=c.useCallback(M=>{const{id:$,field:F,reason:B,key:O,colDef:N}=M,H={id:$,field:F};if(B===Wl.printableKeyDown)if(c.version.startsWith("17"))H.deleteValue=!0;else{const K=N.valueParser?N.valueParser(O):O;H.initialValue=K}else B===Wl.deleteKeyDown&&(H.deleteValue=!0);e.current.startCellEditMode(H)},[e]),w=c.useCallback(M=>{const{id:$,field:F,reason:B}=M;e.current.runPendingEditCellValueMutation($,F);let O;B===Xs.enterKeyDown?O="below":B===Xs.tabKeyDown?O="right":B===Xs.shiftTabKeyDown&&(O="left");const N=B==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:F,ignoreModifications:N,cellToFocusAfter:O})},[e]);dt(e,"cellDoubleClick",f(v)),dt(e,"cellFocusOut",f(y)),dt(e,"cellKeyDown",f(m)),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,$)=>{const F=lo(e.current.state);return F[M]&&F[M][$]?un.Edit:un.View},[e]),x=Ye(M=>{const $=M!==t.cellModesModel;u&&$&&u(M,{}),!(t.cellModesModel&&$)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),E=c.useCallback((M,$,F)=>{const B=S({},o.current);if(F!==null)B[M]=S({},B[M],{[$]:S({},F)});else{const O=B[M],N=le(O,[$].map(yh));B[M]=N,Object.keys(B[M]).length===0&&delete B[M]}x(B)},[x]),_=c.useCallback((M,$,F)=>{e.current.setState(B=>{const O=S({},B.editRows);return F!==null?O[M]=S({},O[M],{[$]:S({},F)}):(delete O[M][$],Object.keys(O[M]).length===0&&delete O[M]),S({},B,{editRows:O})}),e.current.forceUpdate()},[e]),k=c.useCallback(M=>{const{id:$,field:F}=M,B=le(M,U0e);p($,F),g($,F,un.View),E($,F,S({mode:un.Edit},B))},[p,g,E]),I=Ye(M=>{const{id:$,field:F,deleteValue:B,initialValue:O}=M;let N=e.current.getCellValue($,F),H=!1;(B||O)&&(N=B?"":O,H=!0),_($,F,{value:N,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:H}),e.current.setCellFocus($,F)}),T=c.useCallback(M=>{const{id:$,field:F}=M,B=le(M,W0e);g($,F,un.Edit),E($,F,S({mode:un.View},B))},[g,E]),D=Ye(M=>ot(void 0,null,function*(){const{id:$,field:F,ignoreModifications:B,cellToFocusAfter:O="none"}=M;g($,F,un.Edit),e.current.runPendingEditCellValueMutation($,F);const N=()=>{_($,F,null),E($,F,null),O!=="none"&&e.current.moveFocusToRelativeCell($,F,O)};if(B){N();return}const H=lo(e.current.state),{error:K,isProcessingProps:Y}=H[$][F];if(K||Y){s.current[$][F].mode=un.Edit,E($,F,{mode:un.Edit});return}const te=e.current.getRowWithUpdatedValuesFromCellEditing($,F);if(i){const Q=X=>{s.current[$][F].mode=un.Edit,E($,F,{mode:un.Edit}),l?l(X):G0e()};try{const X=e.current.getRow($);Promise.resolve(i(te,X)).then(J=>{e.current.updateRows([J]),N()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([te]),N()})),R=c.useCallback(M=>ot(void 0,null,function*(){var $;const{id:F,field:B,value:O,debounceMs:N,unstable_skipValueParser:H}=M;p(F,B),g(F,B,un.Edit);const K=e.current.getColumn(B),Y=e.current.getRow(F);let te=O;K.valueParser&&!H&&(te=K.valueParser(O,e.current.getCellParams(F,B)));let Q=lo(e.current.state),X=S({},Q[F][B],{value:te,changeReason:N?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const J=O!==Q[F][B].value;X=S({},X,{isProcessingProps:!0}),_(F,B,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:F,row:Y,props:X,hasChanged:J}))}return e.current.getCellMode(F,B)===un.View?!1:(Q=lo(e.current.state),X=S({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[F][B].value:te,_(F,B,X),Q=lo(e.current.state),!(($=Q[F])!=null&&($=$[B])!=null&&$.error))}),[e,p,g,_]),A=c.useCallback((M,$)=>{const F=e.current.getColumn($),B=lo(e.current.state),O=e.current.getRow(M);if(!B[M]||!B[M][$])return e.current.getRow(M);const{value:N}=B[M][$];return F.valueSetter?F.valueSetter({value:N,row:O}):S({},O,{[$]:N})},[e]),V={getCellMode:b,startCellEditMode:k,stopCellEditMode:T},j={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:A};At(e,V,"public"),At(e,j,"private"),c.useEffect(()=>{a&&x(a)},[a,x]),c.useEffect(()=>{const M=ny(e),$=s.current;s.current=U5(n),Object.entries(n).forEach(([F,B])=>{Object.entries(B).forEach(([O,N])=>{var H,K;const Y=((H=$[F])==null||(H=H[O])==null?void 0:H.mode)||un.View,te=(K=M[F])!=null?K:F;N.mode===un.Edit&&Y===un.View?I(S({id:te,field:O},N)):N.mode===un.View&&Y===un.Edit&&D(S({id:te,field:O},N))})})},[e,n,I,D])},q0e=["id"],Y0e=["id"],Q0e=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"),X0e=(e,t)=>{const[n,r]=c.useState({}),o=c.useRef(n),s=c.useRef({}),i=c.useRef(null),l=c.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:u,rowModesModel:f,onRowModesModelChange:p}=t,g=O=>(...N)=>{t.editMode===ji.Row&&O(...N)},v=c.useCallback((O,N)=>{const H=e.current.getCellParams(O,N);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${O} and field=${N} is not editable.`)},[e]),y=c.useCallback((O,N)=>{if(e.current.getRowMode(O)!==N)throw new Error(`MUI: The row with id=${O} is not in ${N} mode.`)},[e]),m=c.useCallback((O,N)=>{if(!O.isEditable||e.current.getRowMode(O.id)===Cn.Edit)return;const H=e.current.getRowParams(O.id),K=S({},H,{field:O.field,reason:Gl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,N)},[e]),C=c.useCallback(O=>{l.current=O},[]),w=c.useCallback((O,N)=>{O.isEditable&&e.current.getRowMode(O.id)!==Cn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==O.id){if(!e.current.getRow(O.id)||e.current.getRowMode(O.id)===Cn.View)return;const K=e.current.getRowParams(O.id),Y=S({},K,{field:O.field,reason:rl.rowFocusOut});e.current.publishEvent("rowEditStop",Y,N)}}))},[e]);c.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=c.useCallback((O,N)=>{if(O.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=l0(e).filter(Y=>e.current.getColumn(Y).type===m0?!0:e.current.isCellEditable(e.current.getCellParams(O.id,Y)));if(N.shiftKey?O.field===K[0]&&(H=rl.shiftTabKeyDown):O.field===K[K.length-1]&&(H=rl.tabKeyDown),N.preventDefault(),!H){const Y=K.findIndex(Q=>Q===O.field),te=K[N.shiftKey?Y-1:Y+1];e.current.setCellFocus(O.id,te)}}if(H){const K=S({},e.current.getRowParams(O.id),{reason:H,field:O.field});e.current.publishEvent("rowEditStop",K,N)}}else if(O.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:O,editMode:"row"}))return;if(N5(N)||(N.ctrlKey||N.metaKey)&&N.key==="v"?H=Gl.printableKeyDown:N.key==="Enter"?H=Gl.enterKeyDown:(N.key==="Delete"||N.key==="Backspace")&&(H=Gl.deleteKeyDown),H){const Y=e.current.getRowParams(O.id),te=S({},Y,{field:O.field,key:N.key,reason:H});e.current.publishEvent("rowEditStart",te,N)}}},[e]),x=c.useCallback(O=>{const{id:N,field:H,reason:K,key:Y,columns:te}=O,Q={id:N,fieldToFocus:H};if(K===Gl.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===Gl.deleteKeyDown&&(Q.deleteValue=!!H);e.current.startRowEditMode(Q)},[e]),E=c.useCallback(O=>{const{id:N,reason:H,field:K}=O;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",g(m)),dt(e,"cellFocusIn",g(C)),dt(e,"cellFocusOut",g(w)),dt(e,"cellKeyDown",g(b)),dt(e,"rowEditStart",g(x)),dt(e,"rowEditStop",g(E)),In(e,"rowEditStart",t.onRowEditStart),In(e,"rowEditStop",t.onRowEditStop);const _=c.useCallback(O=>{if(t.editMode===ji.Cell)return Cn.View;const N=lo(e.current.state);return N[O]&&Object.keys(N[O]).length>0?Cn.Edit:Cn.View},[e,t.editMode]),k=Ye(O=>{const N=O!==t.rowModesModel;p&&N&&p(O,{}),!(t.rowModesModel&&N)&&(r(O),o.current=O,e.current.publishEvent("rowModesModelChange",O))}),I=c.useCallback((O,N)=>{const H=S({},o.current);N!==null?H[O]=S({},N):delete H[O],k(H)},[k]),T=c.useCallback((O,N)=>{e.current.setState(H=>{const K=S({},H.editRows);return N!==null?K[O]=N:delete K[O],S({},H,{editRows:K})}),e.current.forceUpdate()},[e]),D=c.useCallback((O,N,H)=>{e.current.setState(K=>{const Y=S({},K.editRows);return H!==null?Y[O]=S({},Y[O],{[N]:S({},H)}):(delete Y[O][N],Object.keys(Y[O]).length===0&&delete Y[O]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),R=c.useCallback(O=>{const{id:N}=O,H=le(O,q0e);y(N,Cn.View),I(N,S({mode:Cn.Edit},H))},[y,I]),A=Ye(O=>{const{id:N,fieldToFocus:H,deleteValue:K,initialValue:Y}=O,Q=hl(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},{});T(N,Q),H&&e.current.setCellFocus(N,H)}),V=c.useCallback(O=>{const{id:N}=O,H=le(O,Y0e);y(N,Cn.Edit),I(N,S({mode:Cn.View},H))},[y,I]),j=Ye(O=>{const{id:N,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=O;e.current.runPendingEditCellValueMutation(N);const te=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(N,K,Y),T(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):Q0e()};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(O=>{const{id:N,field:H,value:K,debounceMs:Y,unstable_skipValueParser:te}=O;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=S({},se[N][H],{value:J,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||D(N,H,Z),new Promise(he=>{const ne=[];if(Q.preProcessEditCellProps){const re=Z.value!==se[N][H].value;Z=S({},Z,{isProcessingProps:!0}),D(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=S({},Ee,{isProcessingProps:!1}),Ee.value=Q.preProcessEditCellProps?se[N][H].value:J,D(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=S({},me,{isProcessingProps:!0}),D(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=S({},Ie,{isProcessingProps:!1}),D(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,D]),$=c.useCallback(O=>{const N=lo(e.current.state),H=e.current.getRow(O);if(!N[O])return e.current.getRow(O);let K=S({},H);return Object.entries(N[O]).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:R,stopRowEditMode:V},B={setRowEditingEditCellValue:M,getRowWithUpdatedValuesFromRowEditing:$};At(e,F,"public"),At(e,B,"private"),c.useEffect(()=>{f&&k(f)},[f,k]),c.useEffect(()=>{const O=ny(e),N=s.current;s.current=U5(n),Object.entries(n).forEach(([H,K])=>{var Y,te;const Q=((Y=N[H])==null?void 0:Y.mode)||Cn.View,X=(te=O[H])!=null?te:H;K.mode===Cn.Edit&&Q===Cn.View?A(S({id:X},K)):K.mode===Cn.View&&Q===Cn.Edit&&j(S({id:X},K))})},[e,n,A,j])},Z0e=e=>S({},e,{editRows:{}}),J0e=(e,t)=>{K0e(e,t),X0e(e,t);const n=c.useRef({}),{isCellEditable:r}=t,o=c.useCallback(g=>ph(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),s=(g,v,y,m)=>{if(!y){m();return}if(n.current[g]||(n.current[g]={}),n.current[g][v]){const[b]=n.current[g][v];clearTimeout(b)}const C=()=>{const[b]=n.current[g][v];clearTimeout(b),m(),delete n.current[g][v]},w=setTimeout(()=>{m(),delete n.current[g][v]},y);n.current[g][v]=[w,C]};c.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([v,y])=>{Object.keys(y).forEach(m=>{const[C]=g[v][m];clearTimeout(C),delete g[v][m]})})}},[]);const i=c.useCallback((g,v)=>{if(n.current[g]){if(!v)Object.keys(n.current[g]).forEach(y=>{const[,m]=n.current[g][y];m()});else if(n.current[g][v]){const[,y]=n.current[g][v];y()}}},[]),l=c.useCallback(g=>{const{id:v,field:y,debounceMs:m}=g;return new Promise(C=>{s(v,y,m,()=>ot(void 0,null,function*(){const w=t.editMode===ji.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,y)===un.Edit){const b=yield w(g);C(b)}}))})},[e,t.editMode]),a=c.useCallback((g,v)=>t.editMode===ji.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,v):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),u=c.useCallback((g,v)=>{var y,m;return(y=(m=lo(e.current.state)[g])==null?void 0:m[v])!=null?y:null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:a,unstable_getEditCellMeta:u},p={runPendingEditCellValueMutation:i};At(e,f,"public"),At(e,p,"private")},e1e=(e,t,n)=>(n.current.caches.rows=Qg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:T5({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),t1e=(e,t)=>{const n=eo(e,"useGridRows"),r=Uc(e,t),o=c.useRef(Date.now()),s=ME(),i=c.useCallback(j=>{const M=aa(e)[j];if(M)return M;const $=e.current.getRowNode(j);return $&&ph($)?{[od]:j}:null},[e]),l=t.getRowId,a=c.useCallback(j=>od in j?j[od]:l?l(j):j.id,[l]),u=c.useMemo(()=>r.rows.reduce((j,{id:M},$)=>(j[M]=$,j),{}),[r.rows]),f=c.useCallback(({cache:j,throttle:M})=>{const $=()=>{o.current=Date.now(),e.current.setState(B=>S({},B,{rows:T5({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ei(e),previousTreeDepths:xO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=j,!M){$();return}const F=t.throttleRowsMs-(Date.now()-o.current);if(F>0){s.start(F,$);return}$()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=c.useCallback(j=>{n.debug(`Updating all rows, new length ${j.length}`);const M=Qg({rows:j,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;M.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,f({cache:M,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),g=c.useCallback(j=>{if(t.signature===Li.DataGrid&&j.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
|
355
|
+
`));const M=[];j.forEach(F=>{const B=sy(F,t.getRowId,"A row was provided without id when calling updateRows():"),O=e.current.getRowNode(B);if((O==null?void 0:O.type)==="pinnedRow"){const N=e.current.caches.pinnedRows,H=N.idLookup[B];H&&(N.idLookup[B]=S({},H,F))}else M.push(F)});const $=qhe({updates:M,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:$,throttle:!0})},[t.signature,t.getRowId,f,e]),v=c.useCallback(()=>{const j=vg(e),M=aa(e);return new Map(j.map($=>{var F;return[$,(F=M[$])!=null?F:{}]}))},[e]),y=c.useCallback(()=>c0(e),[e]),m=c.useCallback(()=>vg(e),[e]),C=c.useCallback(j=>u[j],[u]),w=c.useCallback((j,M)=>{const $=e.current.getRowNode(j);if(!$)throw new Error(`MUI: No row with id #${j} found`);if($.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const F=S({},$,{childrenExpanded:M});e.current.setState(B=>S({},B,{rows:S({},B.rows,{tree:S({},B.rows.tree,{[j]:F})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",F)},[e]),b=c.useCallback(j=>{var M;return(M=ei(e)[j])!=null?M:null},[e]),x=c.useCallback(({skipAutoGeneratedRows:j=!0,groupId:M,applySorting:$,applyFiltering:F})=>{const B=ei(e);let O;if($){const N=B[M];if(!N)return[];const H=vE(e);O=[];const K=H.findIndex(Y=>Y===M)+1;for(let Y=K;Y<H.length&&B[H[Y]].depth>N.depth;Y+=1){const te=H[Y];(!j||!ph(B[te]))&&O.push(te)}}else O=CE(B,M,j);if(F){const N=k5(e);O=O.filter(H=>N[H]!==!1)}return O},[e]),E=c.useCallback((j,M)=>{const $=e.current.getRowNode(j);if(!$)throw new Error(`MUI: No row with id #${j} found`);if($.parent!==ao)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if($.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(F=>{const B=ei(F,e.current.instanceId)[ao],O=B.children,N=O.findIndex(K=>K===j);if(N===-1||N===M)return F;n.debug(`Moving row ${j} to index ${M}`);const H=[...O];return H.splice(M,0,H.splice(N,1)[0]),S({},F,{rows:S({},F.rows,{tree:S({},F.rows.tree,{[ao]:S({},B,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),_=c.useCallback((j,M)=>{if(t.signature===Li.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(u0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const F=S({},ei(e)),B=S({},aa(e)),O=S({},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(j+Y,1,Q);delete B[X],delete O[X],delete F[X];const J={id:Q,depth:0,parent:ao,type:"leaf",groupingKey:null};B[Q]=te,O[Q]=Q,F[Q]=J}F[ao]=S({},N,{children:H});const K=H.filter(Y=>F[Y].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=B,e.current.caches.rows.dataRowIdToIdLookup=O,e.current.setState(Y=>S({},Y,{rows:S({},Y.rows,{dataRowIdToModelLookup:B,dataRowIdToIdLookup:O,dataRowIds:K,tree:F})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),k={getRow:i,getRowId:a,getRowModels:v,getRowsCount:y,getAllRowIds:m,setRows:p,updateRows:g,getRowNode:b,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:_},I={setRowIndex:E,setRowChildrenExpansion:w,getRowGroupChildren:x},T=c.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let j;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?j=S({},e.current.caches.rows,{updates:{type:"full",rows:vg(e)}}):j=Qg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:j,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),D=c.useCallback(j=>{j==="rowTreeCreation"&&T()},[T]),R=c.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==_he(e)&&T()},[e,T]);dt(e,"activeStrategyProcessorChange",D),dt(e,"strategyAvailabilityChange",R);const A=c.useCallback(()=>{e.current.setState(j=>{const M=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ei(j,e.current.instanceId),treeDepths:xO(j,e.current.instanceId),dataRowIds:vg(j,e.current.instanceId),dataRowIdToModelLookup:aa(j,e.current.instanceId),dataRowIdToIdLookup:ny(j,e.current.instanceId)});return S({},j,{rows:S({},j.rows,M,{totalTopLevelRowCount:_5({tree:M.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);$E(e,"hydrateRows",A),At(e,k,"public"),At(e,I,t.signature===Li.DataGrid?"private":"public");const V=c.useRef(!0);c.useEffect(()=>{if(V.current){V.current=!1;return}const j=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,M=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(j){M||(e.current.setState(F=>S({},F,{rows:S({},F.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(F=>S({},F,{rows:S({},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])},n1e=e=>{const t={[ao]:S({},Ghe(),{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}},r1e=({previousTree:e,actions:t})=>{const n=S({},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]=S({},o,{children:s}),{groupingName:Lc,tree:n,treeDepths:{0:s.length},dataRowIds:s}},o1e=e=>e.updates.type==="full"?n1e(e.updates.rows):r1e({previousTree:e.previousTree,actions:e.updates.actions}),s1e=e=>{fy(e,Lc,"rowTreeCreation",o1e)},xB=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],i1e=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=xB(t.rowSelectionModel))!=null?n:[]:[]})},l1e=(e,t)=>{const n=eo(e,"useGridSelection"),r=M=>(...$)=>{t.rowSelection&&M(...$)},o=c.useMemo(()=>xB(t.rowSelectionModel,Cs(e.current.state)),[e,t.rowSelectionModel]),s=c.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Cs,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:u}=t,f=!l||i,p=Uc(e,t),g=c.useCallback(M=>{var $;let F=M;const B=($=s.current)!=null?$:M,O=e.current.isRowSelected(M);if(O){const N=Rp(e),H=N.findIndex(Y=>Y===B),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:B,endId:F},!O)},[e]),v=c.useCallback(M=>{if(t.signature===Li.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
|
+
`));Cs(e.current.state)!==M&&(n.debug("Setting selection model"),e.current.setState(F=>S({},F,{rowSelection:t.rowSelection?M:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=c.useCallback(M=>Cs(e.current.state).includes(M),[e]),m=c.useCallback(M=>{if(u&&!u(e.current.getRowParams(M)))return!1;const $=e.current.getRowNode(M);return!(($==null?void 0:$.type)==="footer"||($==null?void 0:$.type)==="pinnedRow")},[e,u]),C=c.useCallback(()=>Jge(e),[e]),w=c.useCallback((M,$=!0,F=!1)=>{if(e.current.isRowSelectable(M))if(s.current=M,F)n.debug(`Setting selection for row ${M}`),e.current.setRowSelectionModel($?[M]:[]);else{n.debug(`Toggling selection for row ${M}`);const O=Cs(e.current.state).filter(H=>H!==M);$&&O.push(M),(O.length<2||f)&&e.current.setRowSelectionModel(O)}},[e,n,f]),b=c.useCallback((M,$=!0,F=!1)=>{n.debug("Setting selection for several rows");const B=M.filter(H=>e.current.isRowSelectable(H));let O;if(F)O=$?B:[];else{const H=S({},cy(e));B.forEach(K=>{$?H[K]=K:delete H[K]}),O=Object.values(H)}(O.length<2||f)&&e.current.setRowSelectionModel(O)},[e,n,f]),x=c.useCallback(({startId:M,endId:$},F=!0,B=!1)=>{if(!e.current.getRow(M)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${M} to row ${$}`);const O=Rp(e),N=O.indexOf(M),H=O.indexOf($),[K,Y]=N>H?[H,N]:[N,H],te=O.slice(K,Y+1);e.current.selectRows(te,F,B)},[e,n]),E={selectRow:w,setRowSelectionModel:v,getSelectedRows:C,isRowSelected:y,isRowSelectable:m},_={selectRows:b,selectRowRange:x};At(e,E,"public"),At(e,_,t.signature===Li.DataGrid?"private":"public");const k=c.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const M=Cs(e.current.state),$=aa(e),F=S({},cy(e));let B=!1;M.forEach(O=>{$[O]||(delete F[O],B=!0)}),B&&e.current.setRowSelectionModel(Object.values(F))},[e,t.keepNonExistentRowsSelected]),I=c.useCallback((M,$)=>{const F=$.metaKey||$.ctrlKey,B=!i&&!F&&!Lme($),O=!f||B,N=e.current.isRowSelected(M);O?e.current.selectRow(M,B?!0:!N,!0):e.current.selectRow(M,!N,!1)},[e,f,i]),T=c.useCallback((M,$)=>{var F;if(a)return;const B=(F=$.target.closest(`.${ue.cell}`))==null?void 0:F.getAttribute("data-field");if(B===rf.field||B===_E)return;if(B){const N=e.current.getColumn(B);if((N==null?void 0:N.type)===m0)return}e.current.getRowNode(M.id).type!=="pinnedRow"&&($.shiftKey&&(f||i)?g(M.id):I(M.id,$))},[a,f,i,e,g,I]),D=c.useCallback((M,$)=>{if(f&&$.shiftKey){var F;(F=window.getSelection())==null||F.removeAllRanges()}},[f]),R=c.useCallback((M,$)=>{$.nativeEvent.shiftKey?g(M.id):e.current.selectRow(M.id,M.value)},[e,g]),A=c.useCallback(M=>{const F=t.checkboxSelectionVisibleOnly&&t.pagination?Y5(e):Rp(e);e.current.selectRows(F,M.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),V=c.useCallback((M,$)=>{if(e.current.getCellMode(M.id,M.field)!==un.Edit&&$.currentTarget.contains($.target)){if(ay($.key)&&$.shiftKey){const F=Vo(e);if(F&&F.id!==M.id){$.preventDefault();const B=e.current.isRowSelected(F.id);if(!f){e.current.selectRow(F.id,!B,!0);return}const O=e.current.getRowIndexRelativeToVisibleRows(F.id),N=e.current.getRowIndexRelativeToVisibleRows(M.id);let H,K;O>N?B?(H=N,K=O-1):(H=N,K=O):B?(H=O+1,K=N):(H=O,K=N);const Y=p.rows.slice(H,K+1).map(te=>te.id);e.current.selectRows(Y,!B);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),I(M.id,$);return}$.key==="a"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,I,b,p.rows,f]);dt(e,"sortedRowsSet",r(k)),dt(e,"rowClick",r(T)),dt(e,"rowSelectionCheckboxChange",r(R)),dt(e,"headerSelectionCheckboxChange",A),dt(e,"cellMouseDown",r(D)),dt(e,"cellKeyDown",r(V)),c.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),c.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;c.useEffect(()=>{if(j||!t.rowSelection)return;const M=Cs(e.current.state);if(m){const $=M.filter(F=>m(F));$.length<M.length&&e.current.setRowSelectionModel($)}},[e,m,j,t.rowSelection]),c.useEffect(()=>{if(!t.rowSelection||j)return;const M=Cs(e.current.state);!f&&M.length>1&&e.current.setRowSelectionModel([])},[e,f,i,j,t.rowSelection])},SB={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"},a1e=e=>{const{classes:t}=e;return c.useMemo(()=>Te({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},jt,t),[t])},c1e=(e,t)=>{const n={classes:t.classes},r=a1e(n),o=c.useCallback(s=>{const i=S({},rf,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[Kl]!=null;return l&&!a?(s.lookup[Kl]=i,s.orderedFields=[Kl,...s.orderedFields]):!l&&a?(delete s.lookup[Kl],s.orderedFields=s.orderedFields.filter(u=>u!==Kl)):l&&a&&(s.lookup[Kl]=S({},i,s.lookup[Kl])),s},[e,r,t.checkboxSelection]);hr(e,"hydrateColumns",o)},u1e=(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 S({},e,{sorting:{sortModel:Q5(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},d1e=(e,t)=>{var n;const r=eo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ws,changeEvent:"sortModelChange"});const o=c.useCallback((k,I)=>{const T=ws(e),D=T.findIndex(A=>A.field===k);let R=[...T];return D>-1?I?R.splice(D,1,I):R.splice(D,1):R=[...T,I],R},[e]),s=c.useCallback((k,I)=>{var T;const R=ws(e).find(V=>V.field===k.field);if(R){var A;const V=I===void 0?IO((A=k.sortingOrder)!=null?A:t.sortingOrder,R.sort):I;return V==null?void 0:S({},R,{sort:V})}return{field:k.field,sort:I===void 0?IO((T=k.sortingOrder)!=null?T:t.sortingOrder):I}},[e,t.sortingOrder]),i=c.useCallback((k,I)=>I==null||I.sortable===!1?k:(I.sortingOrder||t.sortingOrder).some(D=>!!D)?[...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"),S({},k,{sorting:S({},k.sorting,{sortedRows:CE(ei(e),ao,!1)})});const I=ws(k,e.current.instanceId),T=ove(I,e),D=e.current.applyStrategyProcessor("sorting",{sortRowList:T});return S({},k,{sorting:S({},k.sorting,{sortedRows:D})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=c.useCallback(k=>{ws(e)!==k&&(r.debug("Setting sort model"),e.current.setState(EO(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=c.useCallback((k,I,T)=>{if(!k.sortable)return;const D=s(k,I);let R;!T||t.disableMultipleColumnsSorting?R=D?[D]:[]:R=o(k.field,D),e.current.setSortModel(R)},[e,o,s,t.disableMultipleColumnsSorting]),f=c.useCallback(()=>ws(e),[e]),p=c.useCallback(()=>yE(e).map(I=>I.model),[e]),g=c.useCallback(()=>vE(e),[e]),v=c.useCallback(k=>e.current.getSortedRowIds()[k],[e]);At(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:g,getRowIdFromRowIndex:v,setSortModel:a,sortColumn:u,applySorting:l},"public");const m=c.useCallback((k,I)=>{var T;const D=ws(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((T=t.initialState)==null||(T=T.sorting)==null?void 0:T.sortModel)!=null||D.length>0?S({},k,{sorting:{sortModel:D}}):k},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=c.useCallback((k,I)=>{var T;const D=(T=I.stateToRestore.sorting)==null?void 0:T.sortModel;return D==null?k:(e.current.setState(EO(D,t.disableMultipleColumnsSorting)),S({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=c.useCallback(k=>{const I=ei(e),T=I[ao],D=k.sortRowList?k.sortRowList(T.children.map(R=>I[R])):[...T.children];return T.footerId!=null&&D.push(T.footerId),D},[e]);hr(e,"exportState",m),hr(e,"restoreState",C),fy(e,Lc,"sorting",w);const b=c.useCallback(({colDef:k},I)=>{const T=I.shiftKey||I.metaKey||I.ctrlKey;u(k,void 0,T)},[u]),x=c.useCallback(({colDef:k},I)=>{Rme(I.key)&&!I.ctrlKey&&!I.metaKey&&u(k,void 0,I.shiftKey)},[u]),E=c.useCallback(()=>{const k=ws(e),I=ef(e);if(k.length>0){const T=k.filter(D=>I[D.field]);T.length<k.length&&e.current.setSortModel(T)}},[e]),_=c.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);hr(e,"columnMenu",i),dt(e,"columnHeaderClick",b),dt(e,"columnHeaderKeyDown",x),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 ZO(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 f1e=(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 g=c0(e),v=Ar(e);if(!(p.rowIndex==null)&&g===0||v.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let m={};if(p.colIndex!=null){const x=$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),m.left=ZO({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:E,offsetTop:x[p.colIndex]})}if(p.rowIndex!=null){var w,b;const x=gh(e.current.state),E=Yge(e),_=Qge(e),k=t.pagination?p.rowIndex-E*_:p.rowIndex,I=x.positions[k+1]?x.positions[k+1]-x.positions[k]:x.currentPageTotalHeight-x.positions[k],T=((w=s.current.querySelector(`.${ue["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,D=((b=s.current.querySelector(`.${ue["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;m.top=ZO({clientHeight:s.current.clientHeight-T-D,scrollTop:s.current.scrollTop,offsetHeight:I,offsetTop:x.positions[k]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,p),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,s,t.pagination,i]),a=c.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const g=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=g*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),u=c.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);At(e,{scroll:a,scrollToIndexes:l,getScrollPosition:u},"public")};function p1e(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 h1e=({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 m1e(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=RE(e,t.columnHeaderHeight),f=c.useCallback(()=>{var I;const T=(I=e.current.rootElementRef)==null?void 0:I.current,D=gE(e),R=$5(e);if(!o.current)return;let A;if(t.scrollbarSize!=null)A=t.scrollbarSize;else if(!D||!T)A=0;else{const N=fn(T).createElement("div");N.style.width="99px",N.style.height="99px",N.style.position="absolute",N.style.overflow="scroll",N.className="scrollDiv",T.appendChild(N),A=N.offsetWidth-N.clientWidth,T.removeChild(N)}let V,j,M;if(t.autoHeight)M=!1,j=Math.round(D)>Math.round(o.current.width),V={width:o.current.width,height:i.currentPageTotalHeight+(j?A:0)};else{V={width:o.current.width,height:Math.max(o.current.height-u,0)};const O=h1e({content:{width:Math.round(D),height:i.currentPageTotalHeight},container:{width:Math.round(V.width),height:V.height-R.top-R.bottom},scrollBarSize:A});M=O.hasScrollY,j=O.hasScrollX}const $={width:V.width-(M?A:0),height:V.height-(j?A:0)},F={viewportOuterSize:V,viewportInnerSize:$,hasScrollX:j,hasScrollY:M,scrollBarSize:A},B=s.current;s.current=F,(F.viewportInnerSize.width!==(B==null?void 0:B.viewportInnerSize.width)||F.viewportInnerSize.height!==(B==null?void 0:B.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",F.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,u]),[p,g]=c.useState(),v=c.useMemo(()=>Aa(g,60),[]),y=c.useRef();Nt(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const m=c.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=c.useCallback(()=>s.current,[]),w=c.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const T=uy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const R=e.current.getRenderContext(),A=R.lastRowIndex-R.firstRowIndex;return Math.min(A-1,T.rows.length)}const D=Math.floor(I.viewportInnerSize.height/a);return Math.min(D,T.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),b=c.useCallback(()=>{var I,T,D;const R=(I=e.current.mainElementRef)==null?void 0:I.current;if(!R)return;const V=Zo(R).getComputedStyle(R),j=parseFloat(V.height)||0,M=parseFloat(V.width)||0,$=j!==((T=y.current)==null?void 0:T.height),F=M!==((D=y.current)==null?void 0:D.width);if(!y.current||$||F){const B={width:M,height:j};e.current.publishEvent("resize",B),y.current=B}},[e]),x={resize:m,getRootDimensions:C},E={getViewportPageSize:w,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:b};At(e,x,"public"),At(e,E,"private");const _=c.useRef(!0),k=c.useCallback(I=>{o.current=I;const T=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!T&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
358
|
+
`)),r.current=!0),I.width===0&&!r.current&&!T&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
|
359
|
+
`)),r.current=!0),_.current){g(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 g1e=["style"],v1e=["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 y1e(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 Jl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Rd(e-n,r,o),Rd(t+n,r,o)],PB=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,b1e={maxSize:3},w1e=e=>{var t,n;const r=Ba(),o=ut(),s=rt(r,Ar),i=rt(r,dve),l=rt(r,tB),{ref:a,onRenderZonePositioning:u,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:g}=e,v=yn(),y=rt(r,$d),m=rt(r,gE),C=rt(r,Vo),w=rt(r,oy),b=rt(r,gh),x=rt(r,cy),E=Uc(r,o),_=c.useRef(null),k=c.useRef(null),I=Et(a,k),[T,D]=c.useState(null),R=c.useRef(T),A=c.useRef({top:0,left:0}),[V,j]=c.useState({width:null,height:null}),M=c.useRef(m),[$,F]=c.useState(null),B=c.useRef(Object.create(null)),O=c.useRef(),N=c.useRef(),H=c.useRef(i0((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}},b1e)),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):y1e(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}=A.current,ye=Math.min(Y(ae),b.positions.length-1),Me=o.autoHeight?ye+E.rows.length:Y(ae+V.height);let pe=0,fe=y.length;if(l){let de=!1;const[be,_e]=Jl({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)+V.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,V]);Nt(()=>{i?(k.current.scrollLeft=0,k.current.scrollTop=0):_.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Nt(()=>{j({width:k.current.clientWidth,height:k.current.clientHeight})},[b.currentPageTotalHeight]);const Q=c.useCallback(()=>{k.current&&j({width:k.current.clientWidth,height:k.current.clientHeight})},[]);dt(r,"debouncedResize",Q);const X=c.useCallback(ae=>{const[Ie,ye]=Jl({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[Me]=Jl({firstIndex:ae.firstColumnIndex,lastIndex:ae.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),pe=sS({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(()=>R.current,[]),se=c.useCallback(ae=>{if(R.current&&PB(ae,R.current)){X(ae);return}D(ae),X(ae);const[Ie,ye]=Jl({firstIndex:ae.firstRowIndex,lastIndex:ae.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:Ie,lastRowToRender:ye}),R.current=ae},[r,D,R,E.rows.length,o.rowBuffer,X]);Nt(()=>{if(V.width==null)return;const ae=te();se(ae);const{top:Ie,left:ye}=A.current,Me={top:Ie,left:ye,renderContext:ae};r.current.publishEvent("scrollPositionChange",Me)},[r,te,V.width,se]);const Z=Ye(ae=>{const{scrollTop:Ie,scrollLeft:ye}=ae.currentTarget;if(A.current.top=Ie,A.current.left=ye,!R.current||Ie<0||v.direction==="ltr"&&ye<0||v.direction==="rtl"&&ye>0)return;const Me=i?te():R.current,pe=Math.abs(Me.firstRowIndex-R.current.firstRowIndex),fe=Math.abs(Me.lastRowIndex-R.current.lastRowIndex),de=Math.abs(Me.firstColumnIndex-R.current.firstColumnIndex),be=Math.abs(Me.lastColumnIndex-R.current.lastColumnIndex),_e=pe>=o.rowThreshold||fe>=o.rowThreshold||de>=o.columnThreshold||be>=o.columnThreshold||M.current!==m;r.current.publishEvent("scrollPositionChange",{top:Ie,left:ye,renderContext:_e?Me:R.current},ae),_e&&(zd.flushSync(()=>{se(Me)}),M.current=m)}),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:T})=>{var Ie;const{onRowRender:ye,renderContext:Me,minFirstColumn:pe=f,maxLastColumn:fe=p,availableSpace:de=V.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]=Jl({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]=Jl({firstIndex:Me.firstColumnIndex,lastIndex:Me.lastColumnIndex,minFirstIndex:pe,maxLastIndex:fe,buffer:Ge}),wt=sS({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,g1e);(O.current!==g||N.current!==vt)&&(B.current=Object.create(null));const Qt=[];let Pn=!1;for(let gt=0;gt<Le.length;gt+=1){var bn;const{id:Rt,model:gr}=Le[gt],sr=ht&&C.id===Rt,_l=ht?Ve+gt===E.rows.length:Ve+gt===E.rows.length-1,ls=r.current.rowHasAutoHeight(Rt)?"auto":r.current.unstable_getRowHeight(Rt);let Tn;x[Rt]==null?Tn=!1:Tn=r.current.isRowSelectable(Rt),ye&&ye(Rt);const an=C!==null&&C.id===Rt?C.field:null,vr=Oe!==void 0&&s[Oe],ho=vr&&an?[vr,...qe]:qe;let as=null;w!==null&&w.id===Rt&&(as=r.current.getCellParams(Rt,w.field).cellMode==="view"?w.field:null);const ir=typeof g=="function"&&g(Rt,gr)||{},{style:Oo}=ir,hi=le(ir,v1e);if(!B.current[Rt]){const Nr=S({},Oo,vt);B.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(L.jsx(o.slots.row,S({row:gr,rowId:Rt,focusedCellColumnIndexNotInRange:Oe,isNotVisible:sr,rowHeight:ls,focusedCell:an,tabbableCell:as,renderedColumns:ho,visibleColumns:s,firstColumnToRender:wt,lastColumnToRender:Pt,selected:Tn,index:Mr,containerWidth:de,isLastVisible:_l,position:_e},hi,Tt,{hovered:$===Rt,style:B.current[Rt]}),Rt))}return O.current=g,N.current=vt,Qt},ce=V.width&&m>=V.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?m:"auto",height:ae,minHeight:Ie?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(ye.height=R5(r,o.rowHeight)),ye},[r,k,m,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:T,updateRenderZonePosition:X,getRows:me,getRootProps:(ae={})=>S({ref:I,onScroll:Z,onWheel:he,onTouchMove:ne},ae,{style:ae.style?S({},ae.style,Ee):Ee,role:"presentation"}),getContentProps:({style:ae}={})=>({style:ae?S({},ae,Se):Se,role:"presentation"}),getRenderZoneProps:()=>({ref:_,role:"rowgroup"})}},C1e=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 x1e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:s,fields:i,height:l,colIndex:a,hasFocus:u,tabIndex:f,isLastColumn:p}=e,g=ut(),v=c.useRef(null),y=Vt(),m=rt(y,x5),C=n?m[n]:{},{headerName:w=n!=null?n:"",description:b="",headerAlign:x=void 0}=C;let E;const _=n&&((t=m[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=g.showColumnVerticalBorder,T=S({},e,{classes:g.classes,showColumnBorder:I,headerAlign:x,depth:o,isDragging:!1}),D=w!=null?w:n,R=Kt(),A=n===null?`empty-group-cell-${R}`:n,V=C1e(T);c.useLayoutEffect(()=>{if(u){const B=v.current.querySelector('[tabindex="0"]')||v.current;B==null||B.focus()}},[y,u]);const j=c.useCallback(F=>B=>{B.currentTarget.contains(B.target)&&y.current.publishEvent(F,k,B)},[y,k]),M=c.useMemo(()=>({onKeyDown:j("columnGroupHeaderKeyDown"),onFocus:j("columnGroupHeaderFocus"),onBlur:j("columnGroupHeaderBlur")}),[j]),$=typeof C.headerClassName=="function"?C.headerClassName(k):C.headerClassName;return L.jsx(j5,S({ref:v,classes:V,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:E,headerClassName:$,description:b,elementId:A,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:D,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},M))}const JO=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function S1e(e){return!!e.target}const P1e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:u,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:g,columnMenuState:v,columnVisibility:y,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:C}=e,w=yn(),[b,x]=c.useState(""),[E,_]=c.useState(""),k=Ba(),I=rt(k,tB),T=ut(),D=c.useRef(null),R=Et(t,D),[A,V]=c.useState(null),j=c.useRef(A),M=c.useRef(0),$=Uc(k,T),F=RE(k,T.columnHeaderHeight),B=Math.floor(T.columnHeaderHeight*p),O=c.useCallback(ne=>{A&&ne&&PB(A,ne)||V(ne)},[A]);c.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const N=c.useRef(i0(b0e,{equalityCheck:(ne,re)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(me=>ne[me]===re[me])})),H=c.useCallback(ne=>{const[re,me]=Jl({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:T.rowBuffer}),ce=N.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:T.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:k,visibleRows:$.rows}),Se=w.direction==="ltr"?1:-1,Ee=ce>0?M.current-Se*i[ce]:M.current;D.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[i,n,T.columnBuffer,k,$.rows,T.rowBuffer,w.direction]);c.useLayoutEffect(()=>{A&&H(A)},[A,H]);const K=c.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,Se;if(!D.current||M.current===ne&&((ce=j.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((Se=j.current)==null?void 0:Se.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;M.current=ne;let Ee=!1;re!==j.current||!j.current?(S1e(me)?(zd.flushSync(()=>{O(re)}),Ee=!0):O(re),j.current=re):Ee=!0,re&&Ee&&H(re)},[H,O]),Y=c.useCallback(ne=>_(ne.field),[]),te=c.useCallback(()=>_(""),[]),Q=c.useCallback(ne=>x(ne.field),[]),X=c.useCallback(()=>x(""),[]);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=A,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[Se,Ee]=Jl({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:T.rowBuffer}),ae=I?N.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:T.columnBuffer,apiRef:k,firstRowToRender:Se,lastRowToRender:Ee,visibleRows:$.rows}):0,Ie=I?Math.min(re.lastColumnIndex+T.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(L.jsx(Dge,S({},o[Ie.field],{columnMenuOpen:de,filterItemsCounter:s[Ie.field]&&s[Ie.field].length,headerHeight:B,isDragging:Ie.field===b,colDef:Ie,colIndex:ye,isResizing:E===Ie.field,hasFocus:fe,tabIndex:pe},re),Ie.field))}return L.jsx(JO,{role:"row","aria-rowindex":g+1,ownerState:T,children:Ee})},Z=ne=>{if(g===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<g;ye+=1){var ae,Ie;const Me=m[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=>S({},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(L.jsx(JO,{style:{height:`${B}px`,transform:`translateX(-${ye.leftOverflow}px)`},role:"row","aria-rowindex":Me+1,ownerState:T,children:ye.elements.map(({groupId:pe,width:fe,fields:de,colIndex:be,hasFocus:_e,tabIndex:Ne},Ge)=>L.jsx(x1e,{groupId:pe,width:fe,fields:de,colIndex:be,depth:Me,isLastColumn:be===r.length-de.length,maxDepth:Ee.length,height:B,hasFocus:_e,tabIndex:Ne},Ge))},Me))}),Se},he={minHeight:F,maxHeight:F,lineHeight:`${B}px`};return{renderContext:A,getColumnHeaders:se,getColumnsToRender:J,getColumnGroupHeaders:Z,isDragging:!!b,getRootProps:(ne={})=>S({style:he},ne),getInnerProps:()=>({ref:R,role:"rowgroup"}),headerHeight:B}},k1e=["className"],E1e=e=>{const{classes:t}=e;return Te({root:["columnHeaders","withBorderColor"]},jt,t)},I1e=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)"}),M1e=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,k1e),s=ut(),i=E1e(s);return L.jsx(I1e,S({ref:n,className:Ce(r,i.root),ownerState:s},o,{role:"presentation"}))}),_1e=["isDragging","className"],T1e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Te({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},jt,r)},$1e=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"}})),R1e=c.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=le(t,_1e),a=Vt(),u=ut(),f=S({},u,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=T1e(f);return L.jsx($1e,S({ref:n,className:Ce(i,p.root),ownerState:f},l))}),O1e=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],D1e=c.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:g,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w}=t,b=le(t,O1e),{isDragging:x,getRootProps:E,getInnerProps:_,getColumnHeaders:k,getColumnGroupHeaders:I}=P1e({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:g,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w});return L.jsx(M1e,S({ref:n},E(b),{children:L.jsxs(R1e,S({isDragging:x},_(),{children:[I(),k()]}))}))}),A1e=h0(D1e),L1e=c.forwardRef(function(t,n){const o=Vt().current.getLocaleText("noResultsOverlayLabel");return L.jsx(SE,S({ref:n},t,{children:o}))}),F1e=["sortingOrder"],N1e=c.memo(function(t){const{sortingOrder:n}=t,r=le(t,F1e),o=ut(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?L.jsx(i,S({},r)):null}),B1e=["native"];function z1e(e){let{native:t}=e,n=le(e,B1e);return t?L.jsx("option",S({},n)):L.jsx(Pr,S({},n))}const V1e={BooleanCellTrueIcon:Rve,BooleanCellFalseIcon:Jw,ColumnMenuIcon:Mve,OpenFilterButtonIcon:Cve,FilterPanelDeleteIcon:Jw,ColumnFilteredIcon:RO,ColumnSelectorIcon:Sve,ColumnUnsortedIcon:N1e,ColumnSortedAscendingIcon:MO,ColumnSortedDescendingIcon:_O,ColumnResizeIcon:Pve,DensityCompactIcon:kve,DensityStandardIcon:Eve,DensityComfortableIcon:Ive,ExportIcon:$ve,MoreActionsIcon:Ove,TreeDataCollapseIcon:$O,TreeDataExpandIcon:TO,GroupingCriteriaCollapseIcon:$O,GroupingCriteriaExpandIcon:TO,DetailPanelExpandIcon:OO,DetailPanelCollapseIcon:_ve,RowReorderIcon:DO,QuickFilterIcon:xve,QuickFilterClearIcon:Jw,ColumnMenuHideIcon:Dve,ColumnMenuSortAscendingIcon:MO,ColumnMenuSortDescendingIcon:_O,ColumnMenuFilterIcon:RO,ColumnMenuManageColumnsIcon:Ave,ColumnMenuClearIcon:Lve,LoadIcon:Tve,FilterPanelAddIcon:OO,FilterPanelRemoveAllIcon:Fve,ColumnReorderIcon:DO},j1e=S({},V1e,{BaseCheckbox:LN,BaseTextField:Na,BaseFormControl:WN,BaseSelect:pk,BaseSwitch:u4,BaseButton:qn,BaseIconButton:pr,BaseInputAdornment:wl,BaseTooltip:Il,BasePopper:Fa,BaseInputLabel:JN,BaseSelectOption:z1e,BaseChip:Pb}),H1e=j1e,U1e=S({},H1e,{Cell:Xx,SkeletonCell:ege,ColumnHeaderFilterIconButton:pve,ColumnMenu:Zve,ColumnHeaders:A1e,Footer:ibe,FooterRowCount:mbe,Toolbar:null,PreferencesPanel:Eye,LoadingOverlay:abe,NoResultsOverlay:L1e,NoRowsOverlay:cbe,Pagination:dbe,FilterPanel:Kye,ColumnsPanel:wye,Panel:kye,Row:Dbe}),kB=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function W1e({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?kB(n):null;if(!r||Object.keys(r).length===0)return e;const o=S({},e);return Object.keys(r).forEach(s=>{const i=s;r[i]!==void 0&&(o[i]=r[i])}),o}const G1e=["components","componentsProps"];function K1e(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 q1e(e){return c.useMemo(()=>{const{components:t,componentsProps:n}=e,r=le(e,G1e);return[t,n,K1e(r)]},[e])}const Y1e={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},g0={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:ji.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},Q1e=kB(U1e),X1e=e=>{const[t,n,r]=q1e(je({props:e,name:"MuiDataGrid"})),o=c.useMemo(()=>S({},SB,r.localeText),[r.localeText]),s=c.useMemo(()=>W1e({defaultSlots:Q1e,slots:r.slots,components:t}),[t,r.slots]);return c.useMemo(()=>{var i;return S({},g0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},Y1e)},[r,o,s,n])},Z1e=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),eD=(e,t,n)=>typeof e=="number"&&e>0?e:t,J1e=(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,q5),p=rt(e,ws),g=Uc(e,t),v=rt(e,tf),y=eD(t.rowHeight,g0.rowHeight),m=Math.floor(y*a),C=c.useCallback(()=>{var V,j;l.current=!1;const M=B=>{s.current[B.id]||(s.current[B.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:O,needsFirstMeasurement:N,sizes:H}=s.current[B.id];let K=typeof m=="number"&&m>0?m:52;const Y=H.baseCenter;if(O)K=Y;else if(n){const se=n(S({},B,{densityFactor:a}));if(se==="auto"){if(N){const Z=o?o(S({},B,{densityFactor:a})):m;K=Z!=null?Z:m}else K=Y;l.current=!0,s.current[B.id].autoHeight=!0}else K=eD(se,m),s.current[B.id].needsFirstMeasurement=!1,s.current[B.id].autoHeight=!1}else s.current[B.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(B.id),Z=r(S({},B,{isFirstVisible:se===0,isLastVisible:se===g.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,B);return s.current[B.id].sizes=J,J},$=[],F=g.rows.reduce((B,O)=>{$.push(B);let N=0,H=0;const K=M(O);for(const Y in K){const te=K[Y];/^base[A-Z]/.test(Y)?N=te>N?te:N:H+=te}return B+N+H},0);v==null||(V=v.top)==null||V.forEach(B=>{M(B)}),v==null||(j=v.bottom)==null||j.forEach(B=>{M(B)}),e.current.setState(B=>S({},B,{rowsMeta:{currentPageTotalHeight:F,positions:$}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,g.rows,m,n,r,o,v,a]),w=c.useCallback(V=>{const j=s.current[V];return j?j.sizes.baseCenter:m},[m]),b=V=>{var j;return(j=s.current[V])==null?void 0:j.sizes},x=c.useCallback((V,j)=>{s.current[V].sizes.baseCenter=j,s.current[V].isResized=!0,s.current[V].needsFirstMeasurement=!1,C()},[C]),E=c.useMemo(()=>Aa(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),_=c.useCallback((V,j,M)=>{if(!s.current[V]||!s.current[V].autoHeight)return;const $=s.current[V].sizes[`base${Pe(M)}`]!==j;s.current[V].needsFirstMeasurement=!1,s.current[V].sizes[`base${Pe(M)}`]=j,$&&E()},[E]),k=c.useCallback(V=>{var j;return((j=s.current[V])==null?void 0:j.autoHeight)||!1},[]),I=c.useCallback(()=>i.current,[]),T=c.useCallback(V=>{l.current&&V>i.current&&(i.current=V)},[]),D=c.useCallback(()=>{s.current={},C()},[C]);c.useEffect(()=>{C()},[m,u,f,p,C]),$E(e,"rowHeight",C);const R={unstable_setLastMeasuredRowIndex:T,unstable_getRowHeight:w,unstable_getRowInternalSizes:b,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:_,resetRowHeights:D},A={getLastMeasuredRowIndex:I,rowHasAutoHeight:k};At(e,R,"public"),At(e,A,"private")},ewe=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")},twe=e=>{const t=c.useRef({}),n=c.useCallback((u,f,p)=>{const g=t.current;g[u]||(g[u]={}),g[u][f]=p},[]),r=c.useCallback((u,f)=>{var p;return(p=t.current[u])==null?void 0:p[f]},[]),o=c.useCallback(u=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:g,maxLastColumnIndex:v,columns:y}=u,m=y.length,C=y[f],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 x=1;x<w;x+=1){const E=f+x;if(E>=g&&E<v){const _=y[E];b+=_.computedWidth,n(p,f+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+w,m-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:g})=>{for(let v=f;v<p;v+=1){const y=o({columnIndex:v,rowId:u,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:g});y.colSpan>1&&(v+=y.colSpan-1)}},[o]),i={unstable_getCellColSpanInfo:r},l={calculateColSpan:s};At(e,i,"public"),At(e,l,"private");const a=c.useCallback(()=>{t.current={}},[]);dt(e,"columnOrderChange",a)},EB=(e,t,n)=>{if(O5(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=>{EB(s,[...t,r],n)})},iS=e=>{if(!e)return{};const t={};return e.forEach(n=>{EB(n,[],t)}),t},lS=(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 g;const v=(g=r(p)[a])!=null?g:null;if(f.length===0)return[{columnFields:[p],groupId:v}];const y=f[f.length-1],m=y.columnFields[y.columnFields.length-1];return y.groupId!==v||!i(m,p,a)||l(m,p)?[...f,{columnFields:[p],groupId:v}]:[...f.slice(0,f.length-1),{columnFields:[...y.columnFields,p],groupId:v}]},[]);o.push(u)}return o},nwe=["groupId","children"],OE=e=>{let t={};return e.forEach(n=>{if(O5(n))return;const{groupId:r,children:o}=n,s=le(n,nwe);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=S({},s,{groupId:r}),l=OE(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=S({},t,l,{[r]:i})}),S({},t)},rwe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=hl(n),a=l0(n),u=OE((o=t.columnGroupingModel)!=null?o:[]),f=iS((s=t.columnGroupingModel)!=null?s:[]),p=lS(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),g=a.length===0?0:Math.max(...a.map(v=>{var y,m;return(y=(m=f[v])==null?void 0:m.length)!=null?y:0}));return S({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:f,headerStructure:p,maxDepth:g}})},owe=(e,t)=>{var n;const r=c.useCallback(a=>{var u;return(u=khe(e)[a])!=null?u:[]},[e]),o=c.useCallback(()=>x5(e),[e]);At(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=c.useCallback(()=>{var a;const u=iS((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,g,v;const y=(p=(g=f.columns)==null?void 0:g.orderedFields)!=null?p:[],m=(v=f.pinnedColumns)!=null?v:{},C=lS(y,u,m);return S({},f,{columnGrouping:S({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=c.useCallback(a=>{var u,f,p,g;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const v=(f=(p=(g=e.current).getPinnedColumns)==null?void 0:p.call(g))!=null?f:{},y=hl(e),m=l0(e),C=OE(a!=null?a:[]),w=iS(a!=null?a:[]),b=lS(y,w,v),x=m.length===0?0:Math.max(...m.map(E=>{var _,k;return(_=(k=w[E])==null?void 0:k.length)!=null?_:0}));e.current.setState(E=>S({},E,{columnGrouping:{lookup:C,unwrappedGroupingModel:w,headerStructure:b,maxDepth:x}}))},[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])},swe=(e,t)=>{const n=Ybe(e,t);return c1e(n,t),s1e(n),bo(i1e,n,t),bo(w0e,n,t),bo(e1e,n,t),bo(Z0e,n,t),bo(N0e,n,t),bo(u1e,n,t),bo(j0e,n,t),bo(D0e,n,t),bo(P0e,n,t),bo(_0e,n,t),bo(Z1e,n,t),bo(m0e,n,t),bo(rwe,n,t),bo(cve,n,t),V0e(n,t),l1e(n,t),C0e(n,t),t1e(n,t),ime(n,t),twe(n),owe(n,t),J0e(n,t),B0e(n,t),H0e(n,t),F0e(n,t),d1e(n,t),k0e(n,t),T0e(n,t),J1e(n,t),f1e(n,t),g0e(n),M0e(n,t),O0e(n,t),h0e(n,t),m1e(n,t),p1e(n,t),ewe(n),uve(n,t),n},iwe=e=>{const{classes:t}=e;return Te({root:["virtualScroller"]},jt,t)},lwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),awe=c.forwardRef(function(t,n){const r=ut(),o=iwe(r);return L.jsx(lwe,S({ref:n},t,{className:Ce(o.root,t.className),ownerState:r}))}),cwe=(e,t)=>{const{classes:n}=e;return Te({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},jt,n)},uwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),dwe=c.forwardRef(function(t,n){var r;const o=ut(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=cwe(o,s);return L.jsx(uwe,S({ref:n},t,{ownerState:o,className:Ce(i.root,t.className)}))}),fwe=["className"],pwe=e=>{const{classes:t}=e;return Te({root:["virtualScrollerRenderZone"]},jt,t)},hwe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),mwe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,fwe),s=ut(),i=pwe(s);return L.jsx(hwe,S({ref:n,className:Ce(i.root,r),ownerState:s},o))}),gwe=["className"],vwe=c.forwardRef(function(t,n){const{className:r}=t,o=le(t,gwe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=w1e({ref:n});return L.jsxs(awe,S({className:r},s(o),{children:[L.jsx(Jhe,{}),L.jsx(dwe,S({},i(),{children:L.jsx(mwe,S({},l(),{children:a()}))}))]}))}),IB=c.forwardRef(function(t,n){const r=X1e(t),o=swe(r.apiRef,r);return L.jsx(Abe,{privateApiRef:o,props:r,children:L.jsxs(sge,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[L.jsx(lbe,{}),L.jsx(Uhe,{VirtualScrollerComponent:vwe}),L.jsx(Whe,{})]}))})}),MB=c.memo(IB);g0.filterDebounceMs;g0.filterDebounceMs;IB.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:fq(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 ywe={},bwe=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:S({},e,{MuiTablePagination:(t==null||(n=t.components)==null||(n=n.MuiTablePagination)==null?void 0:n.defaultProps)||{}})}}}}},wwe=bwe(SB,ywe),nC="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}=Wb(),g=yn(),v=uhe(),[y,m]=c.useState(0),C=c.useMemo(()=>{const{localeText:k}=wwe.components.MuiDataGrid.defaultProps,I=e.map(T=>{var M;const{type:D}=T;(!D||D==="string")&&((M=T.filterOperators)!=null||(T.filterOperators=dB().map(F=>F.value.includes("Empty")?F:[F,at(xe(at(xe({},F),{value:"!"+F.value,getApplyFilterFn(B,O){const N=F.getApplyFilterFn(B,O);return N&&nt.negate(N)}}),F.getApplyFilterFnV7&&{getApplyFilterFnV7(B,O){var H;const N=(H=F.getApplyFilterFnV7)==null?void 0:H.call(F,B,O);return N?nt.negate(N):null}}),{label:"(not) "+(k["filterOperator"+nt.upperFirst(F.value)]||F.value)})]).flat()));const{mergeRender:R}=T;if(!R)return T;const $=R,{other:A,override:V}=$,j=Ft($,["other","override"]);return at(xe({},T),{originalRenderCell:T.renderCell||!0,renderCell(F){const{columns:B}=F.api.store.getSnapshot(),O=B.columnVisibilityModel[A]===!1;return c.createElement(ze,{},T.renderCell?T.renderCell(F):F.formattedValue,O&&c.createElement(ze,xe(xe({},l&&{lineHeight:"1em",fontSize:"smaller"}),j),_(xe(xe({},B.lookup[A]),V),F.row)))}})});return n&&I.push(xe({field:nC,width:40*y,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(T){const D=n(xe(xe({},T.row),T));return setTimeout(()=>m(D.length)),c.createElement(ze,{whiteSpace:"nowrap"},...D)}},r)),I},[e,n,y]),w=c.useMemo(()=>{if(!p)return;const k=jc(C.map(({field:T,hideUnder:D,hidden:R})=>(R||D&&p<(typeof D=="number"?D:g.breakpoints.values[D]))&&T)),I=Object.fromEntries(k.map(T=>[T,!1]));return nt.merge(t,{columns:{columnVisibilityModel:I}}),k},[C]),[b,x]=c.useState({}),E=c.useRef({});if(c.useEffect(()=>{const{current:{id:k,setCurRow:I}}=E;I==null||I(nt.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(MB,at(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===nC)return;const T=v.current.getVisibleColumns().length,D=C.filter(R=>R.renderCell||R.field===nC||I[R.field]!==void 0);D.length<=T||Ro({title:"Details",onClose(){E.current={}},Content(){const[R,A]=c.useState(I),V=c.useRef(I);R&&(V.current=R);const j=V.current;return E.current={id:j.id,setCurRow:A},c.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:R?void 0:.5}},D.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,j)))))}})}},a),{onColumnVisibilityModelChange:k=>x(k),columnVisibilityModel:xe(xe(xe({},Object.fromEntries(w.map(k=>[k,!1]))),a.columnVisibilityModel),b)})));function _(k,I){const T=v.current;let D=I[k.field];k.valueGetter&&(D=k.valueGetter({value:D,api:T,row:I,field:k.field,id:I.id}));const R=k.originalRenderCell||k.renderCell;return R&&R!==!0?R(xe({value:D,row:I,api:T},I)):k.valueFormatter?k.valueFormatter(xe({value:D},I)):D}}const _B=`🇦🇨|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}}),Cwe="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 DE={},xwe=et;Object.defineProperty(DE,"__esModule",{value:!0});var AE=DE.default=void 0,Swe=xwe(tt()),Pwe=Ze(),kwe=(0,Swe.default)((0,Pwe.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");AE=DE.default=kwe;var LE={},Ewe=et;Object.defineProperty(LE,"__esModule",{value:!0});var FE=LE.default=void 0,Iwe=Ewe(tt()),Mwe=Ze(),_we=(0,Iwe.default)((0,Mwe.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");FE=LE.default=_we;var NE={},Twe=et;Object.defineProperty(NE,"__esModule",{value:!0});var BE=NE.default=void 0,$we=Twe(tt()),Rwe=Ze(),Owe=(0,$we.default)((0,Rwe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");BE=NE.default=Owe;var zE={},Dwe=et;Object.defineProperty(zE,"__esModule",{value:!0});var VE=zE.default=void 0,Awe=Dwe(tt()),Lwe=Ze(),Fwe=(0,Awe.default)((0,Lwe.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");VE=zE.default=Fwe;var jE={},Nwe=et;Object.defineProperty(jE,"__esModule",{value:!0});var Ml=jE.default=void 0,Bwe=Nwe(tt()),zwe=Ze(),Vwe=(0,Bwe.default)((0,zwe.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");Ml=jE.default=Vwe;var HE={},jwe=et;Object.defineProperty(HE,"__esModule",{value:!0});var UE=HE.default=void 0,Hwe=jwe(tt()),Uwe=Ze(),Wwe=(0,Hwe.default)((0,Uwe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");UE=HE.default=Wwe;var WE={},Gwe=et;Object.defineProperty(WE,"__esModule",{value:!0});var TB=WE.default=void 0,Kwe=Gwe(tt()),qwe=Ze(),Ywe=(0,Kwe.default)((0,qwe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");TB=WE.default=Ywe;var GE={},Qwe=et;Object.defineProperty(GE,"__esModule",{value:!0});var $B=GE.default=void 0,Xwe=Qwe(tt()),Zwe=Ze(),Jwe=(0,Xwe.default)((0,Zwe.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");$B=GE.default=Jwe;const eCe=["localeText"],aS=c.createContext(null),KE=function(t){var n;const{localeText:r}=t,o=le(t,eCe),{utils:s,localeText:i}=(n=c.useContext(aS))!=null?n:{utils:void 0,localeText:void 0},l=je({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:u,dateFormats:f,dateLibInstance:p,adapterLocale:g,localeText:v}=l,y=c.useMemo(()=>S({},v,i,r),[v,i,r]),m=c.useMemo(()=>{if(!u)return s||null;const b=new u({locale:g,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,g,f,p,s]),C=c.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),w=c.useMemo(()=>({utils:m,defaultDates:C,localeText:y}),[C,m,y]);return L.jsx(aS.Provider,{value:w,children:a})},tCe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),RB={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"},nCe=RB;tCe(RB);const Wc=()=>{const e=c.useContext(aS);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(()=>S({},nCe,e.localeText),[e.localeText]);return c.useMemo(()=>S({},e,{localeText:t}),[e,t])},rn=()=>Wc().utils,Yh=()=>Wc().defaultDates,is=()=>Wc().localeText,Va=e=>{const t=rn(),n=c.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},rCe=bt(L.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),oCe=bt(L.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),sCe=bt(L.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),iCe=bt(L.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(L.jsxs(c.Fragment,{children:[L.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"}),L.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const lCe=bt(L.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"),aCe=bt(L.jsxs(c.Fragment,{children:[L.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"}),L.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),cCe=bt(L.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 uCe(e){return Ke("MuiPickersArrowSwitcher",e)}We("MuiPickersArrowSwitcher",["root","spacer","button"]);const dCe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],fCe=["ownerState"],pCe=["ownerState"],hCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),mCe=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),tD=oe(pr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),gCe=e=>{const{classes:t}=e;return Te({root:["root"],spacer:["spacer"],button:["button"]},uCe,t)},OB=c.forwardRef(function(t,n){var r,o,s,i;const a=yn().direction==="rtl",u=je({props:t,name:"MuiPickersArrowSwitcher"}),{children:f,className:p,slots:g,slotProps:v,isNextDisabled:y,isNextHidden:m,onGoToNext:C,nextLabel:w,isPreviousDisabled:b,isPreviousHidden:x,onGoToPrevious:E,previousLabel:_}=u,k=le(u,dCe),I=u,T=gCe(I),D={isDisabled:y,isHidden:m,goTo:C,label:w},R={isDisabled:b,isHidden:x,goTo:E,label:_},A=(r=g==null?void 0:g.previousIconButton)!=null?r:tD,V=qt({elementType:A,externalSlotProps:v==null?void 0:v.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:S({},I,{hidden:R.isHidden}),className:T.button}),j=(o=g==null?void 0:g.nextIconButton)!=null?o:tD,M=qt({elementType:j,externalSlotProps:v==null?void 0:v.nextIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"start",onClick:D.goTo},ownerState:S({},I,{hidden:D.isHidden}),className:T.button}),$=(s=g==null?void 0:g.leftArrowIcon)!=null?s:oCe,F=qt({elementType:$,externalSlotProps:v==null?void 0:v.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=le(F,fCe),O=(i=g==null?void 0:g.rightArrowIcon)!=null?i:sCe,N=qt({elementType:O,externalSlotProps:v==null?void 0:v.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=le(N,pCe);return L.jsxs(hCe,S({ref:n,className:Ce(T.root,p),ownerState:I},k,{children:[L.jsx(A,S({},V,{children:a?L.jsx(O,S({},H)):L.jsx($,S({},B))})),f?L.jsx(Kn,{variant:"subtitle1",component:"span",children:f}):L.jsx(mCe,{className:T.spacer,ownerState:I}),L.jsx(j,S({},M,{children:a?L.jsx($,S({},B)):L.jsx(O,S({},H))}))]}))}),Ii=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),vCe=({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}},DB=["hours","minutes","seconds"],Od=e=>DB.includes(e),ql=e=>DB.includes(e)||e==="meridiem",yCe=(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,bCe=(e,t,n,r)=>{const o=bh(r.getHours(e),t,n);return r.setHours(e,o)},nD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Qh=(e,t)=>(n,r)=>e?t.isAfter(n,r):nD(n,t)>nD(r,t),rD=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Ii(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Ii(n,["minutes"])?o.minutes:Ii(n,["seconds"])?o.seconds:Ii(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Ii(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),g=c.useRef(o.includes(n)?n:o[0]),[v,y]=Qr({name:"useViews",state:"view",controlled:r,default:g.current}),m=c.useRef(s?v:null),[C,w]=Qr({name:"useViews",state:"focusedView",controlled:i,default:m.current});c.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some(R=>!o.includes(R)))&&(y(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,y,v,o]);const b=o.indexOf(v),x=(a=o[b-1])!=null?a:null,E=(u=o[b+1])!=null?u:null,_=Ye((R,A)=>{w(A?R:V=>R===V?null:V),l==null||l(R,A)}),k=Ye(R=>{R!==v&&(y(R),_(R,!0),t&&t(R))}),I=Ye(()=>{E&&k(E),_(E,!0)}),T=Ye((R,A,V)=>{const j=A==="finish",M=V?o.indexOf(V)<o.length-1:!!E;e(R,j&&M?"partial":A),j&&I()}),D=Ye((R,A,V)=>{e(R,A?"partial":"finish",V),A&&(k(A),_(A,!0))});return{view:v,setView:k,focusedView:C,setFocusedView:_,nextView:E,previousView:x,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:T,setValueAndGoToView:D}}function wCe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function CCe(e,{disablePast:t,minDate:n,timezone:r}){const o=rn();return c.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function qE(e,t,n,r){const o=rn(),s=yCe(e,o),i=c.useCallback(l=>{const a=e==null?null:bCe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const wh=36,v0=2,y0=320,xCe=280,b0=334,AB=232,up=48,w0=oe("div")({overflow:"hidden",width:y0,maxHeight:b0,display:"flex",flexDirection:"column",margin:"0 auto"});function SCe(e){return Ke("MuiTimeClock",e)}We("MuiTimeClock",["root","arrowSwitcher"]);const Dd=220,Fi=36,Ch={x:Dd/2,y:Dd/2},LB={x:Ch.x,y:0},PCe=LB.x-Ch.x,kCe=LB.y-Ch.y,ECe=e=>e*(180/Math.PI),FB=(e,t,n)=>{const r=t-Ch.x,o=n-Ch.y,s=Math.atan2(PCe,kCe)-Math.atan2(r,o);let i=ECe(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=vs(r,2)+vs(o,2),u=Math.sqrt(a);return{value:l,distance:u}},ICe=(e,t,n=1)=>{const r=n*6;let{value:o}=FB(r,e,t);return o=o*n%60,o},MCe=(e,t,n)=>{const{value:r,distance:o}=FB(30,e,t);let s=r||12;return n?s%=12:o<Dd/2-Fi&&(s+=12,s%=24),s};function _Ce(e){return Ke("MuiClockPointer",e)}We("MuiClockPointer",["root","thumb"]);const TCe=["className","hasSelected","isInner","type","viewValue"],$Ce=e=>{const{classes:t}=e;return Te({root:["root"],thumb:["thumb"]},_Ce,t)},RCe=oe("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({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"])})),OCe=oe("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>S({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Fi/2}px)`,border:`${(Fi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function DCe(e){const t=je({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=le(t,TCe),l=c.useRef(o);c.useEffect(()=>{l.current=o},[o]);const a=S({},t,{shouldAnimate:l.current!==o}),u=$Ce(a),f=()=>{let g=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(g-=360),{height:Math.round((r?.26:.4)*Dd),transform:`rotateZ(${g}deg)`}};return L.jsx(RCe,S({style:f(),className:Ce(n,u.root),ownerState:a},i,{children:L.jsx(OCe,{ownerState:a,className:u.thumb})}))}function ACe(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},LCe=(e,t)=>t==null||!e.isValid(t)?null:t,Fs=(e,t,n)=>t==null||!e.isValid(t)?n:t,FCe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),YE=(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},cS=(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},QE=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),ul=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},NCe=["year","month","day"],id=e=>NCe.includes(e),oD=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Ii(n,["year"])?o.year:Ii(n,["month"])?o.month:Ii(n,["day"])?o.dayOfMonth:Ii(n,["month","year"])?`${o.month} ${o.year}`:Ii(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},BCe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},zCe=e=>{const{classes:t}=e;return Te({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},ACe,t)},VCe=oe("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),jCe=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"}),HCe=oe("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),UCe=oe("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>S({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"}})),WCe=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%)"})),GCe=oe(pr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Fi},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}})),KCe=oe(pr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Fi},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}})),sD=oe(Kn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function qCe(e){const t=je({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:s,value:i,handleMeridiemChange:l,isTimeDisabled:a,meridiemMode:u,minutesStep:f=1,onChange:p,selectedId:g,type:v,viewValue:y,disabled:m,readOnly:C,className:w}=t,b=t,x=rn(),E=is(),_=c.useRef(!1),k=zCe(b),I=a(y,v),T=!n&&v==="hours"&&(y<1||y>12),D=(N,H)=>{m||C||a(N,v)||p(N,H)},R=(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"?ICe(K,Y,f):MCe(K,Y,!!n);D(te,H)},A=N=>{_.current=!0,R(N,"shallow")},V=N=>{_.current&&(R(N,"finish"),_.current=!1)},j=N=>{N.buttons>0&&R(N.nativeEvent,"shallow")},M=N=>{_.current&&(_.current=!1),R(N.nativeEvent,"finish")},$=c.useMemo(()=>v==="hours"?!0:y%5===0,[v,y]),F=v==="minutes"?f:1,B=c.useRef(null);Nt(()=>{o&&B.current.focus()},[o]);const O=N=>{if(!_.current)switch(N.key){case"Home":D(0,"partial"),N.preventDefault();break;case"End":D(v==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":D(y+F,"partial"),N.preventDefault();break;case"ArrowDown":D(y-F,"partial"),N.preventDefault();break}};return L.jsxs(VCe,{className:Ce(w,k.root),children:[L.jsxs(jCe,{className:k.clock,children:[L.jsx(UCe,{onTouchMove:A,onTouchEnd:V,onMouseUp:M,onMouseMove:j,ownerState:{disabled:m},className:k.squareMask}),!I&&L.jsxs(c.Fragment,{children:[L.jsx(WCe,{className:k.pin}),i!=null&&L.jsx(DCe,{type:v,viewValue:y,isInner:T,hasSelected:$})]}),L.jsx(HCe,{"aria-activedescendant":g,"aria-label":E.clockLabelText(v,i,x),ref:B,role:"listbox",onKeyDown:O,tabIndex:0,className:k.wrapper,children:s})]}),n&&r&&L.jsxs(c.Fragment,{children:[L.jsx(GCe,{onClick:C?void 0:()=>l("am"),disabled:m||u===null,ownerState:b,className:k.amButton,title:ul(x,"am"),children:L.jsx(sD,{variant:"caption",className:k.meridiemText,children:ul(x,"am")})}),L.jsx(KCe,{disabled:m||u===null,onClick:C?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,title:ul(x,"pm"),children:L.jsx(sD,{variant:"caption",className:k.meridiemText,children:ul(x,"pm")})})]})]})}function YCe(e){return Ke("MuiClockNumber",e)}const bg=We("MuiClockNumber",["root","selected","disabled"]),QCe=["className","disabled","index","inner","label","selected"],XCe=e=>{const{classes:t,selected:n,disabled:r}=e;return Te({root:["root",n&&"selected",r&&"disabled"]},YCe,t)},ZCe=oe("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${bg.disabled}`]:t.disabled},{[`&.${bg.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>S({height:Fi,width:Fi,position:"absolute",left:`calc((100% - ${Fi}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&&S({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function NB(e){const t=je({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=le(t,QCe),u=t,f=XCe(u),p=o%12/12*Math.PI*2-Math.PI/2,g=(Dd-Fi-2)/2*(s?.65:1),v=Math.round(Math.cos(p)*g),y=Math.round(Math.sin(p)*g);return L.jsx(ZCe,S({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-Fi)/2}px`},ownerState:u},a,{children:i}))}const JCe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:s})=>{const i=t?s.getHours(t):null,l=[],a=e?1:0,u=e?12:23,f=p=>i===null?!1:e?p===12?i===12||i===0:i===p||i-12===p:i===p;for(let p=a;p<=u;p+=1){let g=p.toString();p===0&&(g="00");const v=!e&&(p===0||p>12);g=s.formatNumber(g);const y=f(p);l.push(L.jsx(NB,{id:y?o:void 0,index:p,inner:v,selected:y,disabled:r(p),label:g,"aria-label":n(g)},p))}return l},iD=({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 L.jsx(NB,{label:l,id:u?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:u,"aria-label":r(l)},i)})},XE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=rn(),a=c.useRef(n),u=(s=t!=null?t:a.current)!=null?s:o.emptyValue,f=c.useMemo(()=>o.getTimezone(l,u),[l,o,u]),p=Ye(m=>f==null?m:o.setTimezone(l,f,m)),g=(i=e!=null?e:f)!=null?i:"default",v=c.useMemo(()=>o.setTimezone(l,g,u),[o,l,g,u]),y=Ye((m,...C)=>{const w=p(m);r==null||r(w,...C)});return{value:v,handleValueChange:y,timezone:g}},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 XE({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},exe=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},txe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():qf(t,n,QE(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:cS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=qf(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:cS(t,i,e.maxTime))),i},BB=(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}},nxe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},C0=(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))},zB=(e,t,n,r)=>{switch(n){case"month":return YE(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return C0(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[]}},VB=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},jB=(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?VB(e,s,o.maxLength):s},rxe=(e,t,n,r,o,s,i)=>{const l=nxe(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=>jB(e,t,b,v,n),m=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let w=parseInt(n.value,10)+l*m;if(f){if(n.type==="year"&&!u&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?w=v.minimum:w=v.maximum}return w%m!==0&&((l<0||a)&&(w+=m-(m+w)%m),(l>0||u)&&(w-=w%m)),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)},g=()=>{const v=zB(e,t,n.type,n.format);if(v.length===0)return n.value;if(f)return l>0||a?v[0]:v[v.length-1];const m=(v.indexOf(n.value)+v.length+l)%v.length;return v[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():g()},ZE=(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,""),HB=(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=ZE(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,u=Uu(a).length,f=a.length,p=Uu(l),g=r+l.indexOf(p[0])+i.startSeparator.length,v=g+p.length;o.push(S({},i,{start:n,end:n+u,startInInput:g,endInInput:v})),n+=u,r+=f}return o},oxe=(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}},lD=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),UB=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,WB=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return UB(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")}},sxe=(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},aD=(e,t,n,r,o,s,i,l)=>{let a="";const u=[],f=e.date(),p=x=>{if(x==="")return null;const E=BB(e,x),_=WB(e,t,E.contentType,E.type,x),k=i?_:E.contentType==="digit",I=o!=null&&e.isValid(o);let T=I?e.formatByString(o,x):"",D=null;if(k)if(_)D=T===""?e.formatByString(f,x).length:T.length;else{if(E.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);D=E.maxLength,I&&(T=VB(e,T,D))}return u.push(S({},E,{format:x,maxLength:D,value:T,placeholder:oxe(e,t,n,E,x),hasLeadingZeros:_,hasLeadingZerosInFormat:_,hasLeadingZerosInInput:k,startSeparator:u.length===0?a:"",endSeparator:"",modified:!1})),null};let g=10,v=r,y=e.expandFormat(r);for(;y!==v;)if(v=y,y=e.expandFormat(v),g-=1,g<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=y,C=sxe(e,m),w=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((x,E)=>E.length-x.length).join("|")})`,"g");let b="";for(let x=0;x<m.length;x+=1){const E=C.find(D=>D.start<=x&&D.end>=x),_=m[x],k=E!=null,I=`${b}${m.slice(x)}`,T=w.test(I);!k&&_.match(/([A-Za-z]+)/)&&T?(b=I.slice(0,w.lastIndex),x+=w.lastIndex-1):k&&(E==null?void 0:E.start)===x||(E==null?void 0:E.end)===x||(p(b),b="",u.length===0?a+=_:u[u.length-1].endSeparator+=_)}return p(b),u.map(x=>{const E=_=>{let k=_;return l&&k!==null&&k.includes(" ")&&(k=`${k}`),s==="spacious"&&["/",".","-"].includes(k)&&(k=` ${k} `),k};return x.startSeparator=E(x.startSeparator),x.endSeparator=E(x.endSeparator),x})},ixe=(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(ZE(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},lxe=(e,t)=>{const r=e.map(o=>{const s=ZE(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`${r}`:r},axe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=YE(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:UB(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=C0(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})}},cxe=(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=C0(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}},cD={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},uD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>cD[i.type]-cD[l.type]).reduce((i,l)=>!s||l.modified?cxe(e,t,l,n,i):i,o),uxe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,dxe=(e,t)=>{const n={};if(!t)return e.forEach((a,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,l=e.length-1;for(;l>=0;){i=e.findIndex((a,u)=>{var f;return u>=s&&((f=a.endSeparator)==null?void 0:f.includes(" "))&&a.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let a=i;a>=s;a-=1)o[a]=l,r[l]=a,l-=1;s=i+1}return e.forEach((a,u)=>{const f=o[u],p=f===0?null:r[f-1],g=f===e.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:g}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},fxe=["value","referenceDate"],ns={emptyValue:null,getTodayValue:QE,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=le(e,fxe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:txe(r)},cleanValue:LCe,areValuesEqual:FCe,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)},pxe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:HB(o(t),r),getValueStrFromSections:lxe,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)},JE=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},eI=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=c.useMemo(()=>ns.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ti.day,timezone:o,getTodayDate:()=>QE(n,o,"date")}),[]);return e!=null?e:s},hxe=["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"],mxe=e=>{const{classes:t}=e;return Te({root:["root"],arrowSwitcher:["arrowSwitcher"]},SCe,t)},gxe=oe(w0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),vxe=oe(OB,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),yxe=["hours","minutes"],bxe=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:g,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:E=1,shouldDisableClock:_,shouldDisableTime:k,showViewSwitcher:I,onChange:T,view:D,views:R=yxe,openTo:A,onViewChange:V,focusedView:j,onFocusedViewChange:M,className:$,disabled:F,readOnly:B,timezone:O}=o,N=le(o,hxe),H=f!=null?f:JE(a),K=p!=null?p:u,{value:Y,handleValueChange:te,timezone:Q}=of({name:"TimeClock",timezone:O,value:g,defaultValue:v,onChange:T,valueManager:ns}),X=eI({value:Y,referenceDate:y,utils:r,props:o,timezone:Q}),J=is(),se=Va(Q),{view:Z,setView:he,previousView:ne,nextView:re,setValueAndGoToNextView:me}=Xh({view:D,views:R,openTo:A,onViewChange:V,onChange:te,focusedView:j,onFocusedViewChange:M}),{meridiemMode:ce,handleMeridiemChange:Se}=qE(X,s,me),Ee=c.useCallback((pe,fe)=>{const de=Qh(m,r),be=fe==="hours"||fe==="minutes"&&R.includes("seconds"),_e=({start:Ge,end:Ve})=>!(w&&de(w,Ve)||C&&de(Ge,C)||b&&de(Ge,se)||x&&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,m,C,ce,w,E,_,k,r,b,x,se,R]),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:JCe({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:iD({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:iD({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=mxe(ye);return L.jsxs(gxe,S({ref:n,className:Ce(Me.root,$),ownerState:ye},N,{children:[L.jsx(qCe,S({autoFocus:l!=null?l:!!j,ampmInClock:i&&R.includes("hours"),value:Y,type:Z,ampm:s,minutesStep:E,isTimeDisabled:Ee,meridiemMode:ce,handleMeridiemChange:Se,selectedId:ae,disabled:F,readOnly:B},Ie)),I&&L.jsx(vxe,{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 wxe(e){return Ke("MuiDigitalClock",e)}const Cxe=We("MuiDigitalClock",["root","list","item"]),xxe=["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"],Sxe=e=>{const{classes:t}=e;return Te({root:["root"],list:["list"],item:["item"]},wxe,t)},Pxe=oe(w0,{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:AB})),kxe=oe(Qd,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Exe=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})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity)}})),Ixe=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=c.useRef(null),a=Et(n,l),u=je({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:g,components:v,componentsProps:y,slots:m,slotProps:C,value:w,defaultValue:b,referenceDate:x,disableIgnoringDatePartForTimeValidation:E=!1,maxTime:_,minTime:k,disableFuture:I,disablePast:T,minutesStep:D=1,shouldDisableClock:R,shouldDisableTime:A,onChange:V,view:j,openTo:M,onViewChange:$,focusedView:F,onFocusedViewChange:B,className:O,disabled:N,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:te}=u,Q=le(u,xxe),{value:X,handleValueChange:J,timezone:se}=of({name:"DigitalClock",timezone:te,value:w,defaultValue:b,onChange:V,valueManager:ns}),Z=is(),he=Va(se),ne=c.useMemo(()=>S({},u,{alreadyRendered:!!l.current}),[u]),re=Sxe(ne),me=(r=(o=m==null?void 0:m.digitalClockItem)!=null?o:v==null?void 0:v.DigitalClockItem)!=null?r:Exe,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=eI({value:X,referenceDate:x,utils:i,props:u,timezone:se}),Ee=Ye(pe=>J(pe,"finish","hours")),{setValueAndGoToNextView:ae}=Xh({view:j,views:K,openTo:M,onViewChange:$,onChange:Ee,focusedView:F,onFocusedViewChange:B}),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)||T&&fe(he,pe)),be=()=>i.getMinutes(pe)%D!==0||R!=null&&R(i.toJsDate(pe).getTime(),"hours")?!1:A?!A(pe,"hours"):!0;return!de()||!be()},[E,i,k,_,I,he,T,D,R,A]),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 L.jsx(Pxe,S({ref:a,className:Ce(re.root,O),ownerState:ne},Q,{children:L.jsx(kxe,{autoFocusItem:g||!!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 L.jsx(me,S({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 Mxe(e){return Ke("MuiMultiSectionDigitalClock",e)}We("MuiMultiSectionDigitalClock",["root"]);function _xe(e){return Ke("MuiMultiSectionDigitalClock",e)}const Txe=We("MuiMultiSectionDigitalClock",["root","item"]),$xe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Rxe=e=>{const{classes:t}=e;return Te({root:["root"],item:["item"]},_xe,t)},Oxe=oe(Qd,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:AB,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)"}})),Dxe=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})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity)}})),Axe=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:g,items:v,active:y,slots:m,slotProps:C,skipDisabled:w}=l,b=le(l,$xe),x=c.useMemo(()=>S({},l,{alreadyRendered:!!o.current}),[l]),E=Rxe(x),_=(r=m==null?void 0:m.digitalClockSectionItem)!=null?r:Dxe;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}),L.jsx(Oxe,S({ref:s,className:Ce(E.root,f),ownerState:x,autoFocusItem:a&&y,role:"listbox"},b,{children:v.map(k=>{var I,T;if(w&&(I=k.isDisabled)!=null&&I.call(k,k.value))return null;const D=k.isSelected(k.value);return L.jsx(_,S({onClick:()=>!g&&u(k.value),selected:D,disabled:p||((T=k.isDisabled)==null?void 0:T.call(k,k.value)),disableRipple:g,role:"option","aria-disabled":g,"aria-label":k.ariaLabel,"aria-selected":D},C==null?void 0:C.digitalClockSectionItem,{children:k.label}),k.label)})}))}),Lxe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:s,timeStep:i})=>{const l=t?n.getHours(t):null,a=[],u=p=>l===null?!1:r?p===12?l===12||l===0:l===p||l-12===p:l===p,f=r?11:23;for(let p=0;p<=f;p+=i){let g=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const v=s(parseInt(g,10).toString());g=n.formatNumber(g),a.push({value:p,label:g,isSelected:u,isDisabled:o,ariaLabel:v})}return a},dD=({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())}})]},Fxe=["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"],Nxe=e=>{const{classes:t}=e;return Te({root:["root"]},Mxe,t)},Bxe=oe(w0,{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}`})),zxe=c.forwardRef(function(t,n){const r=rn(),o=je({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:u,slots:f,slotProps:p,value:g,defaultValue:v,referenceDate:y,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:E=1,shouldDisableClock:_,shouldDisableTime:k,onChange:I,view:T,views:D=["hours","minutes"],openTo:R,onViewChange:A,focusedView:V,onFocusedViewChange:j,className:M,disabled:$,readOnly:F,skipDisabled:B=!1,timezone:O}=o,N=le(o,Fxe),{value:H,handleValueChange:K,timezone:Y}=of({name:"MultiSectionDigitalClock",timezone:O,value:g,defaultValue:v,onChange:I,valueManager:ns}),te=is(),Q=Va(Y),X=c.useMemo(()=>S({hours:1,minutes:5,seconds:5},i),[i]),J=eI({value:H,referenceDate:y,utils:r,props:o,timezone:Y}),se=Ye((fe,de,be)=>K(fe,de,be)),Z=c.useMemo(()=>!s||!D.includes("hours")||D.includes("meridiem")?D:[...D,"meridiem"],[s,D]),{view:he,setValueAndGoToView:ne,focusedView:re}=Xh({view:T,views:Z,openTo:R,onViewChange:A,onChange:se,focusedView:V,onFocusedViewChange:j}),me=Ye(fe=>{ne(fe,null,"meridiem")}),{meridiemMode:ce,handleMeridiemChange:Se}=qE(J,s,me,"finish"),Ee=c.useCallback((fe,de)=>{const be=Qh(m,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)||x&&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,m,C,ce,w,E,_,k,r,b,x,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:Lxe({now:Q,value:H,ampm:s,utils:r,isDisabled:de=>$||Ee(de,"hours"),timeStep:X.hours,resolveAriaLabel:te.hoursClockNumberText})};case"minutes":return{onChange:de=>{ae("minutes",r.setMinutes(J,de))},items:dD({value:r.getMinutes(J),isDisabled:de=>$||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:dD({value:r.getSeconds(J),isDisabled:de=>$||Ee(de,"seconds"),resolveLabel:de=>r.format(r.setSeconds(Q,de),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:te.secondsClockNumberText})};case"meridiem":{const de=ul(r,"am"),be=ul(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,$,Ee,Se]),ye=c.useMemo(()=>Z.reduce((fe,de)=>S({},fe,{[de]:Ie(de)}),{}),[Z,Ie]),Me=o,pe=Nxe(Me);return L.jsx(Bxe,S({ref:n,className:Ce(pe.root,M),ownerState:Me,role:"group"},N,{children:Object.entries(ye).map(([fe,de])=>L.jsx(Axe,{items:de.items,onChange:de.onChange,active:he===fe,autoFocus:l!=null?l:re===fe,disabled:$,readOnly:F,slots:f!=null?f:a,slotProps:p!=null?p:u,skipDisabled:B,"aria-label":te.selectViewText(fe)},fe))}))});function Vxe(e){return Ke("MuiPickersDay",e)}const Za=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),jxe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Hxe=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"]},Vxe,a)},GB=({theme:e,ownerState:t})=>S({},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})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${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 ${v0}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}`}}),KB=(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]},Uxe=oe(ui,{name:"MuiPickersDay",slot:"Root",overridesResolver:KB})(GB),Wxe=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:KB})(({theme:e,ownerState:t})=>S({},GB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Yf=()=>{},Gxe=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:l=!1,disableHighlightToday:a=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:g,onFocus:v=Yf,onBlur:y=Yf,onKeyDown:m=Yf,onMouseDown:C=Yf,onMouseEnter:w=Yf,outsideCurrentMonth:b,selected:x=!1,showDaysOutsideCurrentMonth:E=!1,children:_,today:k=!1}=r,I=le(r,jxe),T=S({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:E,today:k}),D=Hxe(T),R=rn(),A=c.useRef(null),V=Et(A,n);Nt(()=>{o&&!l&&!f&&!b&&A.current.focus()},[o,l,f,b]);const j=$=>{C($),b&&$.preventDefault()},M=$=>{l||g(i),b&&$.currentTarget.focus(),p&&p($)};return b&&!E?L.jsx(Wxe,{className:Ce(D.root,D.hiddenDaySpacingFiller,s),ownerState:T,role:I.role}):L.jsx(Uxe,S({className:Ce(D.root,s),ref:V,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:$=>m($,i),onFocus:$=>v($,i),onBlur:$=>y($,i),onMouseEnter:$=>w($,i),onClick:M,onMouseDown:j},I,{ownerState:T,children:_||R.format(i,"dayOfMonth")}))}),Kxe=c.memo(Gxe);function qB(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 qxe=e=>{const t=rn(),n=is(),r=Wc(),s=yn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:u,internalProps:f,internalProps:{value:p,defaultValue:g,referenceDate:v,onChange:y,format:m,formatDensity:C="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:E}}=e,{timezone:_,value:k,handleValueChange:I}=XE({timezone:E,value:p,defaultValue:g,onChange:y,valueManager:i}),T=c.useMemo(()=>axe(t,_),[t,_]),D=c.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,J=>aD(t,_,n,m,J,C,x,s)),[l,m,n,s,x,t,C,_]),R=c.useMemo(()=>l.getValueStrFromSections(D(i.emptyValue),s),[l,D,i.emptyValue,s]),[A,V]=c.useState(()=>{const Q=D(k),X={sections:Q,value:k,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=exe(Q),se=i.getInitialReferenceValue({referenceDate:v,value:k,utils:t,props:f,granularity:J,timezone:_});return S({},X,{referenceValue:se})}),[j,M]=Qr({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),$=Q=>{M(Q),b==null||b(Q),V(X=>S({},X,{selectedSectionQuery:null}))},F=c.useMemo(()=>{if(j==null)return null;if(j==="all")return{startIndex:0,endIndex:A.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof j=="number")return{startIndex:j,endIndex:j};if(typeof j=="string"){const Q=A.sections.findIndex(X=>X.type===j);return{startIndex:Q,endIndex:Q}}return j},[j,A.sections]),B=({value:Q,referenceValue:X,sections:J})=>{if(V(Z=>S({},Z,{sections:J,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,A.value,Q))return;const se={validationError:u({adapter:r,value:Q,props:S({},f,{value:Q,timezone:_})})};I(Q,se)},O=(Q,X)=>{const J=[...A.sections];return J[Q]=S({},J[Q],{value:X,modified:!0}),HB(J,s)},N=()=>{B({value:i.emptyValue,referenceValue:A.referenceValue,sections:D(i.emptyValue)})},H=()=>{if(F==null)return;const Q=A.sections[F.startIndex],X=l.getActiveDateManager(t,A,Q),se=X.getSections(A.sections).filter(re=>re.value!=="").length===(Q.value===""?0:1),Z=O(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))?B(S({},ne,{sections:Z})):V(re=>S({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Q=>{const X=(Z,he)=>{const ne=t.parse(Z,m);if(ne==null||!t.isValid(ne))return null;const re=aD(t,_,n,m,ne,C,x,s);return uD(t,_,ne,re,he,!1)},J=l.parseValueStr(Q,A.referenceValue,X),se=l.updateReferenceValue(t,J,A.referenceValue);B({value:J,referenceValue:se,sections:D(J,A.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:J})=>{J&&F&&F.startIndex<A.sections.length-1?$(F.startIndex+1):F&&F.startIndex!==F.endIndex&&$(F.startIndex);const se=l.getActiveDateManager(t,A,Q),Z=O(F.startIndex,X),he=se.getSections(Z),ne=ixe(t,he);let re,me;if(ne!=null&&t.isValid(ne)){const ce=uD(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?B(S({},re,{sections:Z})):V(ce=>S({},ce,re,{sections:Z,tempValueStrAndroid:null}))},te=Q=>V(X=>S({},X,{tempValueStrAndroid:Q}));return c.useEffect(()=>{const Q=D(A.value);V(X=>S({},X,{sections:Q}))},[m,t.locale]),c.useEffect(()=>{let Q=!1;i.areValuesEqual(t,A.value,k)?Q=i.getTimezone(t,A.value)!==i.getTimezone(t,k):Q=!0,Q&&V(X=>S({},X,{value:k,referenceValue:l.updateReferenceValue(t,k,X.referenceValue),sections:D(k)}))},[k]),{state:A,selectedSectionIndexes:F,setSelectedSections:$,clearValue:N,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:te,sectionsValueBoundaries:T,placeholder:R,timezone:_}},Yxe=5e3,wu=e=>e.saveQuery!=null,Qxe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=rn(),[i,l]=c.useState(null),a=Ye(()=>l(null));c.useEffect(()=>{var v;i!=null&&((v=e[i.sectionIndex])==null?void 0:v.type)!==i.sectionType&&a()},[e,i,a]),c.useEffect(()=>{if(i!=null){const v=setTimeout(()=>a(),Yxe);return()=>{window.clearTimeout(v)}}return()=>{}},[i,a]);const u=({keyPressed:v,sectionIndex:y},m,C)=>{const w=v.toLowerCase(),b=e[y];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===y){const E=`${i.value}${w}`,_=m(E,b);if(!wu(_))return l({sectionIndex:y,value:E,sectionType:b.type}),_}const x=m(w,b);return wu(x)&&!x.saveQuery?(a(),null):(l({sectionIndex:y,value:w,sectionType:b.type}),wu(x)?null:x)},f=v=>{const y=(w,b,x)=>{const E=b.filter(_=>_.toLowerCase().startsWith(x));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},m=(w,b,x,E)=>{const _=k=>zB(s,o,b.type,k);if(b.contentType==="letter")return y(b.format,_(b.format),w);if(x&&E!=null&&BB(s,x).contentType==="letter"){const k=_(x),I=y(x,k,w);return wu(I)?{saveQuery:!1}:S({},I,{sectionValue:E(I.sectionValue,k)})}return{saveQuery:!1}};return u(v,(w,b)=>{switch(b.type){case"month":{const x=E=>lD(s,E,s.formats.month,b.format);return m(w,b,s.formats.month,x)}case"weekDay":{const x=(E,_)=>_.indexOf(E).toString();return m(w,b,s.formats.weekday,x)}case"meridiem":return m(w,b);default:return{saveQuery:!1}}})},p=v=>{const y=(C,w)=>{const b=+`${C}`,x=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(b>x.maximum)return{saveQuery:!1};if(b<x.minimum)return{saveQuery:!0};const E=+`${C}0`>x.maximum||C.length===x.maximum.toString().length;return{sectionValue:jB(s,o,b,x,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=WB(s,o,"digit","month","MM"),x=y(C,{type:w.type,format:"MM",hasLeadingZerosInFormat:b,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(wu(x))return x;const E=lD(s,x.sectionValue,"MM",w.format);return S({},x,{sectionValue:E})}if(w.type==="weekDay"){const b=y(C,w);if(wu(b))return b;const x=C0(s,o,w.format)[Number(b.sectionValue)-1];return S({},b,{sectionValue:x})}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 Xxe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Zxe=(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},Jxe="@media (pointer: fine)",eSe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],tSe=e=>{const t=rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:u,sectionsValueBoundaries:f,placeholder:p,timezone:g}=qxe(e),{inputRef:v,internalProps:y,internalProps:{readOnly:m=!1,unstableFieldRef:C,minutesStep:w},forwardedProps:{onClick:b,onKeyDown:x,onFocus:E,onBlur:_,onMouseUp:k,onPaste:I,error:T,clearable:D,onClear:R,disabled:A},fieldValueManager:V,valueManager:j,validator:M}=e,$=le(e.forwardedProps,eSe),{applyCharacterEditing:F,resetCharacterQuery:B}=Qxe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:u,timezone:g}),O=c.useRef(null),N=Et(v,O),H=c.useRef(void 0),Y=yn().direction==="rtl",te=c.useMemo(()=>dxe(n.sections,Y),[n.sections,Y]),Q=()=>{var pe;if(m){o(null);return}const fe=(pe=O.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=O.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!fe||fe!==O.current||r!=null||m||(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),m){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(),B(),a(fe)}),ne=Ye(pe=>{if(m)return;const fe=pe.target.value;if(fe===""){B(),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(V.getValueStrFromSections(n.sections,Y));let Ue=-1,Le=-1;for(let wt=0;wt<Ve.length;wt+=1)Ue===-1&&Ve[wt]!==Ne[wt]&&(Ue=wt),Le===-1&&Ve[Ve.length-wt-1]!==Ne[Ne.length-wt-1]&&(Le=wt);const 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){uxe()?u(_e):(B(),i());return}F({keyPressed:Ge,sectionIndex:r.startIndex})}),re=Ye(pe=>{switch(x==null||x(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(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),B();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(pe.key):{if(pe.preventDefault(),m||r==null)break;const fe=n.sections[r.startIndex],de=V.getActiveDateManager(t,n,fe),be=rxe(t,g,fe,pe.key,f,de.date,{minutesStep:w});l({activeSection:fe,newSectionValue:be,shouldGoToNextSection:!1});break}}});Nt(()=>{if(!O.current)return;if(r==null){O.current.scrollLeft&&(O.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!==O.current.selectionStart||be!==O.current.selectionEnd){const _e=O.current.scrollTop;O.current===py(document)&&O.current.setSelectionRange(de,be),O.current.scrollTop=_e}});const me=qB(S({},y,{value:n.value,timezone:g}),M,j.isSameError,j.defaultErrorState),ce=c.useMemo(()=>T!==void 0?T:j.hasError(me),[j,me,T]);c.useEffect(()=>{!ce&&!r&&B()},[n.referenceValue,r,ce]),c.useEffect(()=>(O.current&&O.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),c.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(B(),i())},[n.tempValueStrAndroid]);const Se=c.useMemo(()=>{var pe;return(pe=n.tempValueStrAndroid)!=null?pe:V.getValueStrFromSections(n.sections,Y)},[n.sections,V,n.tempValueStrAndroid,Y]),Ee=c.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ae=O.current&&O.current===py(document),Ie=j.areValuesEqual(t,n.value,j.emptyValue),ye=!ae&&Ie;c.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var pe,fe;const de=(pe=O.current.selectionStart)!=null?pe:0,be=(fe=O.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(),R==null||R(pe,...fe),s(),O==null||(de=O.current)==null||de.focus(),o(0)});return S({placeholder:p,autoComplete:"off",disabled:!!A},$,{value:ye?"":Se,inputMode:Ee,readOnly:m,onClick:X,onFocus:se,onBlur:Z,onPaste:he,onChange:ne,onKeyDown:re,onMouseUp:J,onClear:Me,error:ce,ref:N,clearable:!!(D&&!Ie&&!m&&!A)})},YB=({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}},uS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],dS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],QB=["minDateTime","maxDateTime"],nSe=[...uS,...dS,...QB],XB=e=>nSe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),rSe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],oSe=(e,t)=>{const n=S({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return rSe.forEach(o),t==="date"?uS.forEach(o):t==="time"?dS.forEach(o):t==="date-time"&&(uS.forEach(o),dS.forEach(o),QB.forEach(o)),{forwardedProps:n,internalProps:r}},sSe=oe(NN)({[`& .${_p.container}`]:{outline:0},[`& .${_p.paper}`]:{outline:0,minWidth:y0}}),iSe=oe(BN)({"&:first-of-type":{padding:0}});function lSe(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:sSe,u=(n=i==null?void 0:i.mobileTransition)!=null?n:Kd;return L.jsx(a,S({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:L.jsx(iSe,{children:r})}))}function aSe(e){return Ke("MuiPickersPopper",e)}We("MuiPickersPopper",["root","paper"]);const cSe="@media (prefers-reduced-motion: reduce)",ld=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),fD=ld&&ld[1]?parseInt(ld[1],10):null,pD=ld&&ld[2]?parseInt(ld[2],10):null,uSe=fD&&fD<10||pD&&pD<13||!1,ZB=()=>Db(cSe,{defaultMatches:!1})||uSe,dSe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],fSe=e=>{const{classes:t}=e;return Te({root:["root"],paper:["paper"]},aSe,t)},pSe=oe(Fa,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),hSe=oe(Vs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>S({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function mSe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function gSe(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&&mSe(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 vSe=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,dSe),p=S({},o,{placement:r}),g=qt({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return L.jsx(n,S({},f,g,{onClick:v=>{var y;a(v),(y=g.onClick)==null||y.call(g,v)},onTouchStart:v=>{var y;u(v),(y=g.onTouchStart)==null||y.call(g,v)},ownerState:p,children:s}))});function ySe(e){var t,n,r,o;const s=je({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:l,containerRef:a=null,shouldRestoreFocus:u,onBlur:f,onDismiss:p,open:g,role:v,placement:y,slots:m,slotProps:C,reduceAnimations:w}=s;c.useEffect(()=>{function N(H){g&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,g]);const b=c.useRef(null);c.useEffect(()=>{v==="tooltip"||u&&!u()||(g?b.current=py(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[g,v,u]);const[x,E,_]=gSe(g,f!=null?f:p),k=c.useRef(null),I=Et(k,a),T=Et(I,x),D=s,R=fSe(D),A=ZB(),V=w!=null?w:A,j=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},M=((t=m==null?void 0:m.desktopTransition)!=null?t:V)?Kd:ah,$=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:tk,F=(r=m==null?void 0:m.desktopPaper)!=null?r:hSe,B=(o=m==null?void 0:m.popper)!=null?o:pSe,O=qt({elementType:B,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:v,open:g,anchorEl:i,placement:y,onKeyDown:j},className:R.root,ownerState:s});return L.jsx(B,S({},O,{children:({TransitionProps:N,placement:H})=>L.jsx($,S({open:g,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:v==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:L.jsx(M,S({},N,C==null?void 0:C.desktopTransition,{children:L.jsx(vSe,{PaperComponent:F,ownerState:D,popperPlacement:H,ref:T,onPaperClick:E,onPaperTouchStart:_,paperClasses:R.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function JB(e){return Ke("MuiPickersToolbar",e)}We("MuiPickersToolbar",["root","content"]);const bSe=e=>{const{classes:t,isLandscape:n}=e;return Te({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},JB,t)},wSe=oe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({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"})),CSe=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"}}),xSe=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=bSe(u);return l?null:L.jsxs(wSe,{ref:n,className:Ce(f.root,s),ownerState:u,children:[L.jsx(Kn,{color:"text.secondary",variant:"overline",id:a,children:i}),L.jsx(CSe,{className:f.content,ownerState:u,children:o})]})});function SSe(e){return Ke("MuiPickersToolbarText",e)}const hD=We("MuiPickersToolbarText",["root","selected"]),PSe=["className","selected","value"],kSe=e=>{const{classes:t,selected:n}=e;return Te({root:["root",n&&"selected"]},SSe,t)},ESe=oe(Kn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${hD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${hD.selected}`]:{color:(e.vars||e).palette.text.primary}})),e3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=le(r,PSe),l=kSe(r);return L.jsx(ESe,S({ref:n,className:Ce(o,l.root),component:"span"},i,{children:s}))}),ISe=["align","className","selected","typographyClassName","value","variant","width"],MSe=e=>{const{classes:t}=e;return Te({root:["root"]},JB,t)},_Se=oe(qn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Hl=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,ISe),g=MSe(r);return L.jsx(_Se,S({variant:"text",ref:n,className:Ce(s,g.root)},f?{sx:{width:f}}:{},p,{children:L.jsx(e3,{align:o,className:l,variant:u,value:a,selected:i})}))}),TSe=({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}},$Se=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},RSe=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},OSe=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},DSe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:l,defaultValue:a,closeOnSelect:u=r==="desktop",selectedSections:f,onSelectedSectionsChange:p,timezone:g}=e,{current:v}=c.useRef(a),{current:y}=c.useRef(l!==void 0),m=rn(),C=Wc(),[w,b]=Qr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:E}=TSe(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:T}=XE({timezone:g,value:l,defaultValue:v,onChange:i,valueManager:t});qB(S({},e,{value:_.draft,timezone:I}),o,t.isSameError,t.defaultErrorState);const D=Ye(se=>{const Z={action:se,dateState:_,hasChanged:me=>!t.areValuesEqual(m,se.value,me),isControlled:y,closeOnSelect:u},he=$Se(Z),ne=RSe(Z),re=OSe(Z);if(k(me=>S({},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:S({},e,{value:se.value,timezone:I})})};se.name==="setValueFromShortcut"&&se.shortcut!=null&&(ce.shortcut=se.shortcut),T(se.value,ce)}ne&&s&&s(se.value),re&&E(!1)});if(l!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(m,_.lastControlledValue,l))){const se=t.areValuesEqual(m,_.draft,l);k(Z=>S({},Z,{lastControlledValue:l},se?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const R=Ye(()=>{D({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),A=Ye(()=>{D({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=Ye(()=>{D({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),j=Ye(()=>{D({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),M=Ye(()=>{D({value:t.getTodayValue(m,I,n),name:"setValueFromAction",pickerAction:"today"})}),$=Ye(()=>E(!0)),F=Ye(()=>E(!1)),B=Ye((se,Z="partial")=>D({name:"setValueFromView",value:se,selectionState:Z})),O=Ye((se,Z,he)=>D({name:"setValueFromShortcut",value:se,changeImportance:Z!=null?Z:"accept",shortcut:he})),N=Ye((se,Z)=>D({name:"setValueFromField",value:se,context:Z})),H=Ye(se=>{b(se),p==null||p(se)}),K={onClear:R,onAccept:A,onDismiss:V,onCancel:j,onSetToday:M,onOpen:$,onClose:F},Y={value:_.draft,onChange:N,selectedSections:w,onSelectedSectionsChange:H},te=c.useMemo(()=>t.cleanValue(m,_.draft),[m,t,_.draft]),Q={value:te,onChange:B,onClose:F,open:x,onSelectedSectionsChange:H},J=S({},K,{value:te,onChange:B,onSelectShortcut:O,isValid:se=>{const Z=o({adapter:C,value:se,props:S({},e,{value:se,timezone:I})});return!t.hasError(Z)}});return{open:x,fieldProps:Y,viewProps:Q,layoutProps:J,actions:K}},ASe=["className","sx"],LSe=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:s,open:i,onSelectedSectionsChange:l,onClose:a}=t,{views:u,openTo:f,onViewChange:p,disableOpenPicker:g,viewRenderers:v,timezone:y}=e,m=le(e,ASe),{view:C,setView:w,defaultView:b,focusedView:x,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,$)=>{let F;return g?F="field":v[$]!=null?F="UI":F="field",M.viewModeLookup[$]=F,F==="UI"&&(M.hasUIView=!0),M},{hasUIView:!1,viewModeLookup:{}}),[g,v,u]),T=c.useMemo(()=>u.reduce((M,$)=>v[$]!=null&&Od($)?M+1:M,0),[v,u]),D=I[C],R=Ye(()=>D==="UI"),[A,V]=c.useState(D==="UI"?C:null);return A!==C&&I[C]==="UI"&&V(C),Nt(()=>{D==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Nt(()=>{if(!i)return;let M=C;D==="field"&&A!=null&&(M=A),M!==b&&I[M]==="UI"&&I[b]==="UI"&&(M=b),M!==C&&w(M),E(M,!0)},[i]),{hasUIView:k,shouldRestoreFocus:R,layoutProps:{views:u,view:A,onViewChange:w},renderCurrentView:()=>{if(A==null)return null;const M=v[A];return M==null?null:M(S({},m,n,t,{views:u,timezone:y,onChange:_,view:A,onViewChange:w,focusedView:x,onFocusedViewChange:E,showViewSwitcher:T>1,timeViewsCount:T}))}}};function mD(){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 FSe=(e,t)=>{const[n,r]=c.useState(mD);return Nt(()=>{const s=()=>{r(mD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Xxe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},NSe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=FSe(n.views,o);return{layoutProps:S({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},t3=(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))}};t3(["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 n3=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=DSe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),u=LSe({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=NSe({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 r3(e){return Ke("MuiPickersLayout",e)}const rC=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),BSe=["onAccept","onClear","onCancel","onSetToday","actions"];function zSe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=le(e,BSe),l=is();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(u=>{switch(u){case"clear":return L.jsx(qn,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return L.jsx(qn,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return L.jsx(qn,{onClick:t,children:l.okButtonLabel},u);case"today":return L.jsx(qn,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return L.jsx(Nre,S({},i,{children:a}))}const VSe=["items","changeImportance","isLandscape","onChange","isValid"],jSe=["getValue"];function HSe(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=le(e,VSe);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,u=le(l,jSe);const f=a({isValid:o});return{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)}});return L.jsx(Nh,S({dense:!0,sx:[{maxHeight:b0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>L.jsx(uk,{children:L.jsx(Pb,S({},l))},l.label))}))}function USe(e){return e.view!==null}const WSe=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"]},r3,t)},GSe=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:u,onViewChange:f,value:p,onChange:g,onSelectShortcut:v,isValid:y,isLandscape:m,disabled:C,readOnly:w,children:b,components:x,componentsProps:E,slots:_,slotProps:k}=e,I=_!=null?_:JE(x),T=k!=null?k:E,D=WSe(e),R=(t=I==null?void 0:I.actionBar)!=null?t:zSe,A=qt({elementType:R,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:o,onClear:s,onCancel:i,onSetToday:l,actions:r==="desktop"?[]:["cancel","accept"],className:D.actionBar},ownerState:S({},e,{wrapperVariant:r})}),V=L.jsx(R,S({},A)),j=I==null?void 0:I.toolbar,M=qt({elementType:j,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:m,onChange:g,value:p,view:a,onViewChange:f,views:u,disabled:C,readOnly:w,className:D.toolbar},ownerState:S({},e,{wrapperVariant:r})}),$=USe(M)&&j?L.jsx(j,S({},M)):null,F=b,B=I==null?void 0:I.tabs,O=a&&B?L.jsx(B,S({view:a,onViewChange:f},T==null?void 0:T.tabs)):null,N=(n=I==null?void 0:I.shortcuts)!=null?n:HSe,H=qt({elementType:N,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:y,isLandscape:m,onChange:v,className:D.shortcuts},ownerState:{isValid:y,isLandscape:m,onChange:v,className:D.shortcuts,wrapperVariant:r}}),K=a&&N?L.jsx(N,S({},H)):null;return{toolbar:$,content:F,tabs:O,actionBar:V,shortcuts:K}},KSe=GSe,qSe=e=>{const{isLandscape:t,classes:n}=e;return Te({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},r3,n)},o3=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",[`& .${rC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${rC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${rC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));o3.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 YSe=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),s3=function(t){const n=je({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=KSe(n),{sx:a,className:u,isLandscape:f,ref:p,wrapperVariant:g}=n,v=n,y=qSe(v);return L.jsxs(o3,{ref:p,sx:a,className:Ce(u,y.root),ownerState:v,children:[f?l:r,f?r:l,L.jsx(YSe,{className:y.contentWrapper,children:g==="desktop"?L.jsxs(c.Fragment,{children:[o,s]}):L.jsxs(c.Fragment,{children:[s,o]})}),i]})},QSe=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableClock:i,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:a=!1,disablePast:u,disableFuture:f,timezone:p}=n,g=e.utils.dateWithTimezone(void 0,p),v=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,g)):return"disableFuture";case!!(u&&e.utils.isBefore(t,g)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},tI=({props:e,value:t,adapter:n})=>{const r=YB({adapter:n,value:t,props:e});return r!==null?r:QSe({adapter:n,value:t,props:e})},XSe=e=>Ke("MuiPickersSlideTransition",e),ys=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ZSe=["children","className","reduceAnimations","slideDirection","transKey","classes"],JSe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Te(r,XSe,t)},ePe=oe(JP,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ys["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ys["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ys.slideEnterActive}`]:t.slideEnterActive},{[`.${ys.slideExit}`]:t.slideExit},{[`.${ys["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ys["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},[`& .${ys["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ys["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ys.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ys.slideExit}`]:{transform:"translate(0%)"},[`& .${ys["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ys["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function tPe(e){const t=je({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=le(t,ZSe),l=JSe(t),a=yn();if(o)return L.jsx("div",{className:Ce(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return L.jsx(ePe,{className:Ce(l.root,r),childFactory:f=>c.cloneElement(f,{classNames:u}),role:"presentation",children:L.jsx(sZ,S({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:u},i,{children:n}),s)})}const i3=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Wc();return c.useCallback(u=>YB({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])},nPe=e=>Ke("MuiDayCalendar",e);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const rPe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],oPe=["ownerState"],sPe=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"]},nPe,t)},l3=(wh+v0*2)*6,iPe=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lPe=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),aPe=oe(Kn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),cPe=oe(Kn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),uPe=oe(Kn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:wh,height:wh,padding:0,margin:`0 ${v0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),dPe=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:l3}),fPe=oe(tPe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:l3}),pPe=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),hPe=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${v0}px 0`,display:"flex",justifyContent:"center"});function mPe(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:u,isViewFocused:f}=e,p=le(e,rPe);const{disabled:g,disableHighlightToday:v,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:m,components:C,componentsProps:w,slots:b,slotProps:x,timezone:E}=o,_=rn(),k=Va(E),I=i!==null&&_.isSameDay(s,i),T=l.some(B=>_.isSameDay(B,s)),D=_.isSameDay(s,k),R=(t=(n=b==null?void 0:b.day)!=null?n:C==null?void 0:C.Day)!=null?t:Kxe,A=qt({elementType:R,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:w==null?void 0:w.day,additionalProps:S({disableHighlightToday:v,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:y,"data-timestamp":_.toJsDate(s).valueOf()},p),ownerState:S({},o,{day:s,selected:T})}),V=le(A,oPe),j=c.useMemo(()=>g||a(s),[g,a,s]),M=c.useMemo(()=>_.getMonth(s)!==u,[_,s,u]),$=c.useMemo(()=>{const B=_.startOfMonth(_.setMonth(s,u));return m?_.isSameDay(s,_.startOfWeek(B)):_.isSameDay(s,B)},[u,s,m,_]),F=c.useMemo(()=>{const B=_.endOfMonth(_.setMonth(s,u));return m?_.isSameDay(s,_.endOfWeek(B)):_.isSameDay(s,B)},[u,s,m,_]);return L.jsx(R,S({},V,{day:s,disabled:j,autoFocus:f&&I,today:D,outsideCurrentMonth:M,isFirstVisibleCell:$,isLastVisibleCell:F,selected:T,tabIndex:I?0:-1,"aria-selected":T,"aria-current":D?"date":void 0}))}function gPe(e){const t=je({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:a,onMonthSwitchingAnimationEnd:u,readOnly:f,reduceAnimations:p,renderLoading:g=()=>L.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:m,disableFuture:C,minDate:w,maxDate:b,shouldDisableDate:x,shouldDisableMonth:E,shouldDisableYear:_,dayOfWeekFormatter:k,hasFocus:I,onFocusedViewChange:T,gridLabelId:D,displayWeekNumber:R,fixedWeekNumber:A,autoFocus:V,timezone:j}=t,M=Va(j),$=rn(),F=sPe(t),O=yn().direction==="rtl",N=k||((ye,Me)=>$.format(Me,"weekdayShort").charAt(0).toUpperCase()),H=i3({shouldDisableDate:x,shouldDisableMonth:E,shouldDisableYear:_,minDate:w,maxDate:b,disablePast:m,disableFuture:C,timezone:j}),K=is(),[Y,te]=Qr({name:"DayCalendar",state:"hasFocus",controlled:I,default:V!=null?V:!1}),[Q,X]=c.useState(()=>i||M),J=Ye(ye=>{f||a(ye)}),se=ye=>{H(ye)||(n(ye),X(ye),T==null||T(!0),te(!0))},Z=Ye((ye,Me)=>{switch(ye.key){case"ArrowUp":se($.addDays(Me,-7)),ye.preventDefault();break;case"ArrowDown":se($.addDays(Me,7)),ye.preventDefault();break;case"ArrowLeft":{const pe=$.addDays(Me,O?1:-1),fe=$.addMonths(Me,O?1:-1),de=Op({utils:$,date:pe,minDate:O?pe:$.startOfMonth(fe),maxDate:O?$.endOfMonth(fe):pe,isDateDisabled:H,timezone:j});se(de||pe),ye.preventDefault();break}case"ArrowRight":{const pe=$.addDays(Me,O?-1:1),fe=$.addMonths(Me,O?-1:1),de=Op({utils:$,date:pe,minDate:O?$.startOfMonth(fe):pe,maxDate:O?pe:$.endOfMonth(fe),isDateDisabled:H,timezone:j});se(de||pe),ye.preventDefault();break}case"Home":se($.startOfWeek(Me)),ye.preventDefault();break;case"End":se($.endOfWeek(Me)),ye.preventDefault();break;case"PageUp":se($.addMonths(Me,1)),ye.preventDefault();break;case"PageDown":se($.addMonths(Me,-1)),ye.preventDefault();break}}),he=Ye((ye,Me)=>se(Me)),ne=Ye((ye,Me)=>{Y&&$.isSameDay(Q,Me)&&(T==null||T(!1))}),re=$.getMonth(o),me=c.useMemo(()=>s.filter(ye=>!!ye).map(ye=>$.startOfDay(ye)),[$,s]),ce=re,Se=c.useMemo(()=>c.createRef(),[ce]),Ee=$.startOfWeek(M),ae=c.useMemo(()=>{const ye=$.startOfMonth(o),Me=$.endOfMonth(o);return H(Q)||$.isAfterDay(Q,Me)||$.isBeforeDay(Q,ye)?Op({utils:$,date:Q,minDate:ye,maxDate:Me,disablePast:m,disableFuture:C,isDateDisabled:H,timezone:j}):Q},[o,C,m,Q,H,$,j]),Ie=c.useMemo(()=>{const ye=$.setTimezone(o,j),Me=$.getWeekArray(ye);let pe=$.addMonths(ye,1);for(;A&&Me.length<A;){const fe=$.getWeekArray(pe),de=$.isSameDay(Me[Me.length-1][0],fe[0][0]);fe.slice(de?1:0).forEach(be=>{Me.length<A&&Me.push(be)}),pe=$.addMonths(pe,1)}return Me},[o,A,$,j]);return L.jsxs(iPe,{role:"grid","aria-labelledby":D,className:F.root,children:[L.jsxs(lPe,{role:"row",className:F.header,children:[R&&L.jsx(cPe,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),BCe($,M).map((ye,Me)=>{var pe;const fe=$.format(ye,"weekdayShort");return L.jsx(aPe,{variant:"caption",role:"columnheader","aria-label":$.format($.addDays(Ee,Me),"weekday"),className:F.weekDayLabel,children:(pe=N==null?void 0:N(fe,ye))!=null?pe:fe},fe+Me.toString())})]}),l?L.jsx(dPe,{className:F.loadingContainer,children:g()}):L.jsx(fPe,S({transKey:ce,onExited:u,reduceAnimations:p,slideDirection:v,className:Ce(r,F.slideTransition)},y,{nodeRef:Se,children:L.jsx(pPe,{ref:Se,role:"rowgroup",className:F.monthContainer,children:Ie.map((ye,Me)=>L.jsxs(hPe,{role:"row",className:F.weekContainer,"aria-rowindex":Me+1,children:[R&&L.jsx(uPe,{className:F.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText($.getWeekNumber(ye[0])),children:K.calendarWeekNumberText($.getWeekNumber(ye[0]))}),ye.map((pe,fe)=>L.jsx(mPe,{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 vPe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return S({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return S({},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 S({},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")}},yPe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:i=!1,maxDate:l,minDate:a,onMonthChange:u,reduceAnimations:f,shouldDisableDate:p,timezone:g}=e,v=Va(g),y=rn(),m=c.useRef(vPe(!!f,i,y)).current,C=c.useMemo(()=>{let T=null;return n?T=n:r&&(T=y.startOfMonth(r)),ns.getInitialReferenceValue({value:t,utils:y,timezone:g,props:e,referenceDate:T,granularity:ti.day})},[]),[w,b]=c.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:y.isValid(t)?t:v,currentMonth:y.startOfMonth(C),slideDirection:"left"}),x=c.useCallback(T=>{b(S({type:"changeMonth"},T)),u&&u(T.newMonth)},[u]),E=c.useCallback(T=>{const D=T;y.isSameMonth(D,w.currentMonth)||x({newMonth:y.startOfMonth(D),direction:y.isAfterDay(D,w.currentMonth)?"left":"right"})},[w.currentMonth,x,y]),_=i3({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:g}),k=c.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),I=Ye((T,D)=>{_(T)||b({type:"changeFocusedDay",focusedDay:T,withoutMonthSwitchingAnimation:D})});return{referenceDate:C,calendarState:w,changeMonth:E,changeFocusedDay:I,isDateDisabled:_,onMonthSwitchingAnimationEnd:k,handleChangeMonth:x}},bPe=["ownerState"],wPe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,u,f,p,g,v;const y=is(),m=(a=(u=o==null?void 0:o.clearButton)!=null?u:i==null?void 0:i.ClearButton)!=null?a:pr,C=qt({elementType:m,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),w=le(C,bPe),b=(p=(g=o==null?void 0:o.clearIcon)!=null?g:i==null?void 0:i.ClearIcon)!=null?p:cCe,x=qt({elementType:b,externalSlotProps:(v=s==null?void 0:s.clearIcon)!=null?v:l==null?void 0:l.clearIcon,ownerState:{}}),E=S({},n,{endAdornment:e?L.jsxs(c.Fragment,{children:[L.jsx(wl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:L.jsx(m,S({},w,{onClick:r,children:L.jsx(b,S({fontSize:"small"},x))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),_=S({},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:_}},CPe=e=>{var t,n,r,o,s,i,l,a;const u=rn(),f=Yh(),g=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return S({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:g,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate: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})},xPe=({props:e,inputRef:t})=>{const n=CPe(e),{forwardedProps:r,internalProps:o}=oSe(n,"date-time");return tSe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:ns,fieldValueManager:pxe,validator:tI,valueType:"date-time"})},SPe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],PPe=["inputRef"],kPe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],a3=c.forwardRef(function(t,n){var r,o,s;const i=je({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:u,slotProps:f,InputProps:p,inputProps:g}=i,v=le(i,SPe),y=i,m=(r=(o=u==null?void 0:u.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Na,C=qt({elementType:m,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:v,ownerState:y}),{inputRef:w}=C,b=le(C,PPe);b.inputProps=S({},g,b.inputProps),b.InputProps=S({},p,b.InputProps);const x=xPe({props:b,inputRef:w}),{ref:E,onPaste:_,onKeyDown:k,inputMode:I,readOnly:T,clearable:D,onClear:R}=x,A=le(x,kPe),{InputProps:V,fieldProps:j}=wPe({onClear:R,clearable:D,fieldProps:A,InputProps:A.InputProps,slots:u,slotProps:f,components:l,componentsProps:a});return L.jsx(m,S({ref:n},j,{InputProps:S({},V,{readOnly:T}),inputProps:S({},A.inputProps,{inputMode:I,onPaste:_,onKeyDown:k,ref:E})}))}),EPe=e=>Ke("MuiPickersFadeTransitionGroup",e);We("MuiPickersFadeTransitionGroup",["root"]);const IPe=e=>{const{classes:t}=e;return Te({root:["root"]},EPe,t)},MPe=oe(JP,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function c3(e){const t=je({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=IPe(t),l=yn();return o?n:L.jsx(MPe,{className:Ce(i.root,r),children:L.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 _Pe(e){return Ke("MuiPickersMonth",e)}const wg=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),TPe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],$Pe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_Pe,r)},RPe=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"})),OPe=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${wg.disabled}`]:t.disabled},{[`&.${wg.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${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}}})),DPe=c.memo(function(t){const n=je({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:s,selected:i,value:l,tabIndex:a,onClick:u,onKeyDown:f,onFocus:p,onBlur:g,"aria-current":v,"aria-label":y}=n,m=le(n,TPe),C=c.useRef(null),w=$Pe(n);return Nt(()=>{if(r){var b;(b=C.current)==null||b.focus()}},[r]),L.jsx(RPe,S({className:w.root,ownerState:n},m,{children:L.jsx(OPe,{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=>g(b,l),className:w.monthButton,ownerState:n,children:o})}))});function APe(e){return Ke("MuiMonthCalendar",e)}We("MuiMonthCalendar",["root"]);const LPe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],FPe=e=>{const{classes:t}=e;return Te({root:["root"]},APe,t)};function NPe(e,t){const n=rn(),r=Yh(),o=je({props:e,name:t});return S({disableFuture:!1,disablePast:!1},o,{minDate:Fs(n,o.minDate,r.minDate),maxDate:Fs(n,o.maxDate,r.maxDate)})}const BPe=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:y0,boxSizing:"border-box"}),zPe=c.forwardRef(function(t,n){const r=NPe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:u,disablePast:f,maxDate:p,minDate:g,onChange:v,shouldDisableMonth:y,readOnly:m,disableHighlightToday:C,autoFocus:w=!1,onMonthFocus:b,hasFocus:x,onFocusedViewChange:E,monthsPerRow:_=3,timezone:k,gridLabelId:I}=r,T=le(r,LPe),{value:D,handleValueChange:R,timezone:A}=of({name:"MonthCalendar",timezone:k,value:s,defaultValue:i,onChange:v,valueManager:ns}),V=Va(A),j=Wd(),M=rn(),$=c.useMemo(()=>ns.getInitialReferenceValue({value:D,utils:M,props:r,timezone:A,referenceDate:l,granularity:ti.month}),[]),F=r,B=FPe(F),O=c.useMemo(()=>M.getMonth(V),[M,V]),N=c.useMemo(()=>D!=null?M.getMonth(D):C?null:M.getMonth($),[D,M,C,$]),[H,K]=c.useState(()=>N||O),[Y,te]=Qr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:w!=null?w:!1}),Q=Ye(re=>{te(re),E&&E(re)}),X=c.useCallback(re=>{const me=M.startOfMonth(f&&M.isAfter(V,g)?V:g),ce=M.startOfMonth(u&&M.isBefore(V,p)?V:p),Se=M.startOfMonth(re);return M.isBefore(Se,me)||M.isAfter(Se,ce)?!0:y?y(Se):!1},[u,f,p,g,V,y,M]),J=Ye((re,me)=>{if(m)return;const ce=M.setMonth(D!=null?D:$,me);R(ce)}),se=Ye(re=>{X(M.setMonth(D!=null?D:$,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+(j.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":se((12+me+(j.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),he=Ye((re,me)=>{se(me)}),ne=Ye((re,me)=>{H===me&&Q(!1)});return L.jsx(BPe,S({ref:n,className:Ce(B.root,o),ownerState:F,role:"radiogroup","aria-labelledby":I},T,{children:YE(M,D!=null?D:$).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 L.jsx(DPe,{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":O===me?"date":void 0,"aria-label":Se,monthsPerRow:_,children:ce},ce)})}))});function VPe(e){return Ke("MuiPickersYear",e)}const Cg=We("MuiPickersYear",["root","yearButton","selected","disabled"]),jPe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],HPe=e=>{const{disabled:t,selected:n,classes:r}=e;return Te({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},VPe,r)},UPe=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"})),WPe=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Cg.disabled}`]:t.disabled},{[`&.${Cg.selected}`]:t.selected}]})(({theme:e})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${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}}})),GPe=c.memo(function(t){const n=je({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:l,value:a,tabIndex:u,onClick:f,onKeyDown:p,onFocus:g,onBlur:v,"aria-current":y}=n,m=le(n,jPe),C=c.useRef(null),w=HPe(n);return c.useEffect(()=>{r&&C.current.focus()},[r]),L.jsx(UPe,S({className:Ce(w.root,o),ownerState:n},m,{children:L.jsx(WPe,{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=>g(b,a),onBlur:b=>v(b,a),className:w.yearButton,ownerState:n,children:s})}))});function KPe(e){return Ke("MuiYearCalendar",e)}We("MuiYearCalendar",["root"]);const qPe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],YPe=e=>{const{classes:t}=e;return Te({root:["root"]},KPe,t)};function QPe(e,t){var n;const r=rn(),o=Yh(),s=je({props:e,name:t});return S({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 XPe=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:y0,maxHeight:xCe,boxSizing:"border-box",position:"relative"}),ZPe=c.forwardRef(function(t,n){const r=QPe(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:u,disableFuture:f,disablePast:p,maxDate:g,minDate:v,onChange:y,readOnly:m,shouldDisableYear:C,disableHighlightToday:w,onYearFocus:b,hasFocus:x,onFocusedViewChange:E,yearsPerRow:_,timezone:k,gridLabelId:I}=r,T=le(r,qPe),{value:D,handleValueChange:R,timezone:A}=of({name:"YearCalendar",timezone:k,value:i,defaultValue:l,onChange:y,valueManager:ns}),V=Va(A),j=Wd(),M=rn(),$=c.useMemo(()=>ns.getInitialReferenceValue({value:D,utils:M,props:r,timezone:A,referenceDate:a,granularity:ti.year}),[]),F=r,B=YPe(F),O=c.useMemo(()=>M.getYear(V),[M,V]),N=c.useMemo(()=>D!=null?M.getYear(D):w?null:M.getYear($),[D,M,w,$]),[H,K]=c.useState(()=>N||O),[Y,te]=Qr({name:"YearCalendar",state:"hasFocus",controlled:x,default:o!=null?o:!1}),Q=Ye(ce=>{te(ce),E&&E(ce)}),X=c.useCallback(ce=>{if(p&&M.isBeforeYear(ce,V)||f&&M.isAfterYear(ce,V)||v&&M.isBeforeYear(ce,v)||g&&M.isAfterYear(ce,g))return!0;if(!C)return!1;const Se=M.startOfYear(ce);return C(Se)},[f,p,g,v,V,C,M]),J=Ye((ce,Se)=>{if(m)return;const Ee=M.setYear(D!=null?D:$,Se);R(Ee)}),se=Ye(ce=>{X(M.setYear(D!=null?D:$,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+(j.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":se(Se+(j.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]),L.jsx(XPe,S({ref:me,className:Ce(B.root,s),ownerState:F,role:"radiogroup","aria-labelledby":I},T,{children:M.getYearRange(v,g).map(ce=>{const Se=M.getYear(ce),Ee=Se===N,ae=u||X(ce);return L.jsx(GPe,{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":O===Se?"date":void 0,yearsPerRow:_,children:M.format(ce,"year")},M.format(ce,"year"))})}))}),JPe=e=>Ke("MuiPickersCalendarHeader",e),eke=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),tke=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],nke=["ownerState"],rke=e=>{const{classes:t}=e;return Te({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},JPe,t)},oke=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}),ske=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),ike=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),lke=oe(pr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${eke.switchViewIcon}`]:{transform:"rotate(180deg)"}})),ake=oe(rCe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),cke=c.forwardRef(function(t,n){var r,o,s,i;const l=is(),a=rn(),u=je({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:g,currentMonth:v,disabled:y,disableFuture:m,disablePast:C,maxDate:w,minDate:b,onMonthChange:x,onViewChange:E,view:_,reduceAnimations:k,views:I,labelId:T,className:D,timezone:R}=u,A=le(u,tke),V=u,j=rke(u),M=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:g==null?void 0:g.SwitchViewButton)!=null?r:lke,$=qt({elementType:M,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(_)},ownerState:V,className:j.switchViewButton}),F=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:g==null?void 0:g.SwitchViewIcon)!=null?s:ake,B=qt({elementType:F,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:j.switchViewIcon}),O=le(B,nke),N=()=>x(a.addMonths(v,1),"left"),H=()=>x(a.addMonths(v,-1),"right"),K=wCe(v,{disableFuture:m,maxDate:w,timezone:R}),Y=CCe(v,{disablePast:C,minDate:b,timezone:R}),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:L.jsxs(oke,S({},A,{ownerState:V,className:Ce(D,j.root),ref:n,children:[L.jsxs(ske,{role:"presentation",onClick:te,ownerState:V,"aria-live":"polite",className:j.labelContainer,children:[L.jsx(c3,{reduceAnimations:k,transKey:a.format(v,"monthAndYear"),children:L.jsx(ike,{id:T,ownerState:V,className:j.label,children:a.format(v,"monthAndYear")})}),I.length>1&&!y&&L.jsx(M,S({},$,{children:L.jsx(F,S({},O))}))]}),L.jsx(Kd,{in:_==="day",children:L.jsx(OB,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:N,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),uke=e=>Ke("MuiDateCalendar",e);We("MuiDateCalendar",["root","viewTransitionContainer"]);const dke=["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"],fke=e=>{const{classes:t}=e;return Te({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},uke,t)};function pke(e,t){var n,r,o,s,i,l,a;const u=rn(),f=Yh(),p=ZB(),g=je({props:e,name:t});return S({},g,{loading:(n=g.loading)!=null?n:!1,disablePast:(r=g.disablePast)!=null?r:!1,disableFuture:(o=g.disableFuture)!=null?o:!1,openTo:(s=g.openTo)!=null?s:"day",views:(i=g.views)!=null?i:["year","day"],reduceAnimations:(l=g.reduceAnimations)!=null?l:p,renderLoading:(a=g.renderLoading)!=null?a:()=>L.jsx("span",{children:"..."}),minDate:Fs(u,g.minDate,f.minDate),maxDate:Fs(u,g.maxDate,f.maxDate)})}const hke=oe(w0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:b0}),mke=oe(c3,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),u3=c.forwardRef(function(t,n){var r,o,s;const i=rn(),l=Kt(),a=pke(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:f,value:p,defaultValue:g,referenceDate:v,disableFuture:y,disablePast:m,defaultCalendarMonth:C,onChange:w,onYearChange:b,onMonthChange:x,reduceAnimations:E,shouldDisableDate:_,shouldDisableMonth:k,shouldDisableYear:I,view:T,views:D,openTo:R,className:A,disabled:V,readOnly:j,minDate:M,maxDate:$,disableHighlightToday:F,focusedView:B,onFocusedViewChange:O,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,dke),{value:ce,handleValueChange:Se,timezone:Ee}=of({name:"DateCalendar",timezone:re,value:p,defaultValue:g,onChange:w,valueManager:ns}),{view:ae,setView:Ie,focusedView:ye,setFocusedView:Me,goToNextView:pe,setValueAndGoToNextView:fe}=Xh({view:T,views:D,openTo:R,onChange:Se,onViewChange:f,autoFocus:u,focusedView:B,onFocusedViewChange:O}),{referenceDate:de,calendarState:be,changeFocusedDay:_e,changeMonth:Ne,handleChangeMonth:Ge,isDateDisabled:Ve,onMonthSwitchingAnimationEnd:Ue}=yPe({value:ce,defaultCalendarMonth:C,referenceDate:v,reduceAnimations:E,onMonthChange:x,minDate:M,maxDate:$,shouldDisableDate:_,disablePast:m,disableFuture:y,timezone:Ee}),Le=V&&ce||M,ht=V&&ce||$,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:cke,Xe=qt({elementType:wt,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:te==null?void 0:te.calendarHeader,additionalProps:{views:D,view:ae,currentMonth:be.currentMonth,onViewChange:Ie,onMonthChange:(gt,Rt)=>Ge({newMonth:gt,direction:Rt}),minDate:Le,maxDate:ht,disabled:V,disablePast:m,disableFuture:y,reduceAnimations:E,timezone:Ee,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Oe=Ye(gt=>{const Rt=i.startOfMonth(gt),gr=i.endOfMonth(gt),sr=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(M,Rt)?Rt:M,maxDate:i.isAfter($,gr)?gr:$,disablePast:m,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;sr?(fe(sr,"finish"),x==null||x(Rt)):(pe(),Ne(Rt)),_e(sr,!0)}),qe=Ye(gt=>{const Rt=i.startOfYear(gt),gr=i.endOfYear(gt),sr=Ve(gt)?Op({utils:i,date:gt,minDate:i.isBefore(M,Rt)?Rt:M,maxDate:i.isAfter($,gr)?gr:$,disablePast:m,disableFuture:y,isDateDisabled:Ve,timezone:Ee}):gt;sr?(fe(sr,"finish"),b==null||b(sr)):(pe(),Ne(Rt)),_e(sr,!0)}),mt=Ye(gt=>Se(gt&&cS(i,gt,ce!=null?ce:de),"finish"));c.useEffect(()=>{ce!=null&&i.isValid(ce)&&Ne(ce)},[ce]);const vt=a,Tt=fke(vt),Yt={disablePast:m,disableFuture:y,maxDate:$,minDate:M},Qt={disableHighlightToday:F,readOnly:j,disabled:V,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 L.jsxs(hke,S({ref:n,className:Ce(Tt.root,A),ownerState:vt},me,{children:[L.jsx(wt,S({},Xe)),L.jsx(mke,{reduceAnimations:E,className:Tt.viewTransitionContainer,transKey:ae,ownerState:vt,children:L.jsxs("div",{children:[ae==="year"&&L.jsx(ZPe,S({},Yt,Qt,{value:ce,onChange:qe,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Me("year",gt),yearsPerRow:he,referenceDate:de})),ae==="month"&&L.jsx(zPe,S({},Yt,Qt,{hasFocus:Pt,className:A,value:ce,onChange:Oe,shouldDisableMonth:k,onFocusedViewChange:gt=>Me("month",gt),monthsPerRow:ne,referenceDate:de})),ae==="day"&&L.jsx(gPe,S({},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}))]})})]}))}),gke=["props","getOpenDialogAriaText"],vke=["ownerState"],yke=["ownerState"],bke=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=le(e,gke);const{slots:u,slotProps:f,className:p,sx:g,format:v,formatDensity:y,timezone:m,label:C,inputRef:w,readOnly:b,disabled:x,autoFocus:E,localeText:_,reduceAnimations:k}=i,I=rn(),T=c.useRef(null),D=c.useRef(null),R=Kt(),A=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:j,hasUIView:M,layoutProps:$,renderCurrentView:F,shouldRestoreFocus:B,fieldProps:O}=n3(S({},a,{props:i,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),N=(r=u.inputAdornment)!=null?r:wl,H=qt({elementType:N,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),K=le(H,vke),Y=(o=u.openPickerButton)!=null?o:pr,te=qt({elementType:Y,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:x||b,onClick:V?j.onClose:j.onOpen,"aria-label":l(O.value,I),edge:K.position},ownerState:i}),Q=le(te,yke),X=u.openPickerIcon,J=u.field,se=qt({elementType:J,externalSlotProps:f==null?void 0:f.field,additionalProps:S({},O,A&&{id:R},{readOnly:b,disabled:x,className:p,sx:g,format:v,formatDensity:y,timezone:m,label:C,autoFocus:E&&!i.open,focused:V?!0:void 0}),ownerState:i});M&&(se.InputProps=S({},se.InputProps,{ref:D,[`${K.position}Adornment`]:L.jsx(N,S({},K,{children:L.jsx(Y,S({},Q,{children:L.jsx(X,S({},f==null?void 0:f.openPickerIcon))}))}))}));const Z=S({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},se.slots),he=(s=u.layout)!=null?s:s3,ne=Et(T,se.inputRef,w);let re=R;A&&(C?re=`${R}-label`:re=void 0);const me=S({},f,{toolbar:S({},f==null?void 0:f.toolbar,{titleId:R}),popper:S({"aria-labelledby":re},f==null?void 0:f.popper)});return{renderPicker:()=>L.jsxs(KE,{localeText:_,children:[L.jsx(J,S({},se,{slots:Z,slotProps:me,inputRef:ne})),L.jsx(ySe,S({role:"dialog",placement:"bottom-start",anchorEl:D.current},j,{open:V,slots:u,slotProps:me,shouldRestoreFocus:B,reduceAnimations:k,children:L.jsx(he,S({},$,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:g,minDate:v,maxDate:y,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:E,onYearChange:_,yearsPerRow:k,defaultCalendarMonth:I,components:T,componentsProps:D,slots:R,slotProps:A,loading:V,renderLoading:j,disableHighlightToday:M,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:B,dayOfWeekFormatter:O,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te})=>L.jsx(u3,{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:g,minDate:v,maxDate:y,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:E,onYearChange:_,yearsPerRow:k,defaultCalendarMonth:I,components:T,componentsProps:D,slots:R,slotProps:A,loading:V,renderLoading:j,disableHighlightToday:M,readOnly:$,disabled:F,showDaysOutsideCurrentMonth:B,dayOfWeekFormatter:O,sx:N,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:te}),wke=["props","getOpenDialogAriaText"],Cke=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=le(e,wke);const{slots:l,slotProps:a,className:u,sx:f,format:p,formatDensity:g,timezone:v,label:y,inputRef:m,readOnly:C,disabled:w,localeText:b}=o,x=rn(),E=c.useRef(null),_=Kt(),k=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:I,actions:T,layoutProps:D,renderCurrentView:R,fieldProps:A}=n3(S({},i,{props:o,inputRef:E,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=l.field,j=qt({elementType:V,externalSlotProps:a==null?void 0:a.field,additionalProps:S({},A,k&&{id:_},!(w||C)&&{onClick:T.onOpen,onKeyDown:Zxe(T.onOpen)},{readOnly:C!=null?C:!0,disabled:w,className:u,sx:f,format:p,formatDensity:g,timezone:v,label:y}),ownerState:o});j.inputProps=S({},j.inputProps,{"aria-label":s(A.value,x)});const M=S({textField:l.textField},j.slots),$=(r=l.layout)!=null?r:s3,F=Et(E,j.inputRef,m);let B=_;k&&(y?B=`${_}-label`:B=void 0);const O=S({},a,{toolbar:S({},a==null?void 0:a.toolbar,{titleId:_}),mobilePaper:S({"aria-labelledby":B},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>L.jsxs(KE,{localeText:b,children:[L.jsx(V,S({},j,{slots:M,slotProps:O,inputRef:F})),L.jsx(lSe,S({},T,{open:I,slots:l,slotProps:O,children:L.jsx($,S({},D,O==null?void 0:O.layout,{slots:l,slotProps:O,children:R()}))}))]})}},oC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:E,componentsProps:_,slots:k,slotProps:I,readOnly:T,disabled:D,sx:R,autoFocus:A,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:M})=>L.jsx(bxe,{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:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:E,componentsProps:_,slots:k,slotProps:I,readOnly:T,disabled:D,sx:R,autoFocus:A,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:j,timezone:M}),xke=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:T,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:A,timeSteps:V,skipDisabled:j,timezone:M})=>L.jsx(Ixe,{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:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:T,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:A,timeStep:V==null?void 0:V.minutes,skipDisabled:j,timezone:M}),Ske=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:T,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:A,timeSteps:V,skipDisabled:j,timezone:M})=>L.jsx(zxe,{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:g,minTime:v,maxTime:y,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:E,slots:_,slotProps:k,readOnly:I,disabled:T,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:A,timeSteps:V,skipDisabled:j,timezone:M}),Pke=["views","format"],d3=(e,t)=>{let{views:n,format:r}=t,o=le(t,Pke);if(r)return r;const s=[],i=[];if(n.forEach(u=>{Od(u)?i.push(u):s.push(u)}),i.length===0)return oD(e,S({views:s},o),!1);if(s.length===0)return rD(e,S({views:i},o));const l=rD(e,S({views:i},o));return`${oD(e,S({views:s},o),!1)} ${l}`},kke=(e,t,n)=>n?t.filter(r=>!ql(r)||r==="hours"):e?[...t,"meridiem"]:t,Eke=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Ike({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=S({hours:1,minutes:5,seconds:5},n),i=Eke(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:kke(t,r,i)}}function Mke(e){return Ke("MuiDateTimePickerTabs",e)}We("MuiDateTimePickerTabs",["root"]);const _ke=e=>id(e)?"date":"time",Tke=e=>e==="date"?"day":"hours",$ke=e=>{const{classes:t}=e;return Te({root:["root"]},Mke,t)},Rke=oe(hk,{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}}})),Oke=function(t){const n=je({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=L.jsx(lCe,{}),onViewChange:o,timeIcon:s=L.jsx(aCe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667}=n,a=is(),u=$ke(n),f=(p,g)=>{o(Tke(g))};return l?null:L.jsxs(Rke,{ownerState:n,variant:"fullWidth",value:_ke(i),onChange:f,className:u.root,children:[L.jsx(Hv,{value:"date","aria-label":a.dateTableLabel,icon:L.jsx(c.Fragment,{children:r})}),L.jsx(Hv,{value:"time","aria-label":a.timeTableLabel,icon:L.jsx(c.Fragment,{children:s})})]})};function Dke(e){return Ke("MuiDateTimePickerToolbar",e)}const sC=We("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Ake=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Lke=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,Dke,t)},f3=oe(xSe,{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"}));f3.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 Fke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),p3=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 S({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&S({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Nke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>S({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));p3.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 gD=oe(e3,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Bke=oe("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${sC.ampmLabel}`]:t.ampmLabel},{[`&.${sC.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>S({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${sC.ampmLabel}`]:{fontSize:17}}));function zke(e){const t=je({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:s,view:i,isLandscape:l,onViewChange:a,toolbarFormat:u,toolbarPlaceholder:f="––",views:p,disabled:g,readOnly:v,toolbarVariant:y="mobile"}=t,m=le(t,Ake),C=t,w=rn(),{meridiemMode:b,handleMeridiemChange:x}=qE(o,n,s),E=!!(n&&!r),_=y==="desktop",k=is(),I=yn(),T=Lke(S({},C,{theme:I})),D=A=>n?w.format(A,"hours12h"):w.format(A,"hours24h"),R=c.useMemo(()=>o?u?w.formatByString(o,u):w.format(o,"shortDate"):f,[o,u,f,w]);return L.jsxs(f3,S({toolbarTitle:k.dateTimePickerToolbarTitle,isLandscape:l,className:T.root},m,{ownerState:C,children:[L.jsxs(Fke,{className:T.dateContainer,ownerState:C,children:[p.includes("year")&&L.jsx(Hl,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?w.format(o,"year"):"–"}),p.includes("day")&&L.jsx(Hl,{tabIndex:-1,variant:_?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:R})]}),L.jsxs(p3,{className:T.timeContainer,ownerState:C,children:[L.jsxs(Nke,{className:T.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&L.jsx(Hl,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?D(o):"--"}),p.includes("minutes")&&L.jsxs(c.Fragment,{children:[L.jsx(gD,{variant:_?"h5":"h3",value:":",className:T.separator,ownerState:C}),L.jsx(Hl,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?w.format(o,"minutes"):"--"})]}),p.includes("seconds")&&L.jsxs(c.Fragment,{children:[L.jsx(gD,{variant:_?"h5":"h3",value:":",className:T.separator,ownerState:C}),L.jsx(Hl,{variant:_?"h5":"h3",width:_&&!l?up:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?w.format(o,"seconds"):"--"})]})]}),E&&!_&&L.jsxs(Bke,{className:T.ampmSelection,ownerState:C,children:[L.jsx(Hl,{variant:"subtitle2",selected:b==="am",typographyClassName:T.ampmLabel,value:ul(w,"am"),onClick:v?void 0:()=>x("am"),disabled:g}),L.jsx(Hl,{variant:"subtitle2",selected:b==="pm",typographyClassName:T.ampmLabel,value:ul(w,"pm"),onClick:v?void 0:()=>x("pm"),disabled:g})]}),n&&_&&L.jsx(Hl,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&b?ul(w,b):"--",width:up})]})]}))}function h3(e,t){var n,r,o,s,i,l,a,u,f,p,g;const v=rn(),y=Yh(),m=je({props:e,name:t}),C=(n=m.ampm)!=null?n:v.is12HourCycleInCurrentLocale(),w=c.useMemo(()=>{var E;return((E=m.localeText)==null?void 0:E.toolbarTitle)==null?m.localeText:S({},m.localeText,{dateTimePickerToolbarTitle:m.localeText.toolbarTitle})},[m.localeText]),b=(r=m.slots)!=null?r:JE(m.components),x=(o=m.slotProps)!=null?o:m.componentsProps;return S({},m,vCe({views:m.views,openTo:m.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:w,orientation:(s=m.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=m.disableIgnoringDatePartForTimeValidation)!=null?i:!!(m.minDateTime||m.maxDateTime||m.disablePast||m.disableFuture),disableFuture:(l=m.disableFuture)!=null?l:!1,disablePast:(a=m.disablePast)!=null?a:!1,minDate:Fs(v,(u=m.minDateTime)!=null?u:m.minDate,y.minDate),maxDate:Fs(v,(f=m.maxDateTime)!=null?f:m.maxDate,y.maxDate),minTime:(p=m.minDateTime)!=null?p:m.minTime,maxTime:(g=m.maxDateTime)!=null?g:m.maxTime,slots:S({toolbar:zke,tabs:Oke},b),slotProps:S({},x,{toolbar:S({ampm:C},x==null?void 0:x.toolbar)})})}const Vke=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:g,minDate:v,minTime:y,maxDate:m,maxTime:C,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,shouldDisableTime:E,shouldDisableClock:_,reduceAnimations:k,minutesStep:I,ampm:T,onMonthChange:D,monthsPerRow:R,onYearChange:A,yearsPerRow:V,defaultCalendarMonth:j,components:M,componentsProps:$,slots:F,slotProps:B,loading:O,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=xb((ae=B==null?void 0:B.actionBar)!=null?ae:$==null?void 0:$.actionBar,{}))!=null&&(Ee=Ee.actions)!=null&&Ee.length),ye={view:ql(e)?e:"hours",onViewChange:t,focusedView:r&&ql(r)?r:null,onFocusedViewChange:o,views:n.filter(ql),value:s,defaultValue:i,referenceDate:l,onChange:a,className:u,classes:f,disableFuture:p,disablePast:g,minTime:y,maxTime:C,shouldDisableTime:E,shouldDisableClock:_,minutesStep:I,ampm:T,components:M,componentsProps:$,slots:F,slotProps:B,readOnly:K,disabled:Y,autoFocus:J,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:he};return L.jsxs(c.Fragment,{children:[L.jsxs(Vke,{children:[L.jsx(u3,{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:g,minDate:v,maxDate:m,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:k,onMonthChange:D,monthsPerRow:R,onYearChange:A,yearsPerRow:V,defaultCalendarMonth:j,components:M,componentsProps:$,slots:F,slotProps:B,loading:O,renderLoading:N,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:te,dayOfWeekFormatter:Q,sx:X,autoFocus:J,fixedWeekNumber:se,displayWeekNumber:Z,timezone:he}),ce>0&&L.jsxs(c.Fragment,{children:[L.jsx(Pd,{orientation:"vertical"}),Se?xke(S({},ye,{view:"hours",views:["hours"],focusedView:r&&ql(r)?"hours":null,sx:S({width:"auto",[`&.${Cxe.root}`]:{maxHeight:b0}},Array.isArray(X)?X:[X])})):Ske(S({},ye,{view:ql(e)?e:"hours",views:n.filter(ql),focusedView:r&&ql(r)?r:null,sx:S({borderBottom:0,width:"auto",[`.${Txe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),Ie&&L.jsx(Pd,{})]})},m3=c.forwardRef(function(t,n){var r,o,s,i,l,a,u;const f=is(),p=rn(),g=h3(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:v,thresholdToRenderTimeInASingleColumn:y,views:m,timeSteps:C}=Ike(g),w=!g.viewRenderers||Object.keys(g.viewRenderers).length===0,b=w?{day:Ja,month:Ja,year:Ja,hours:Ja,minutes:Ja,seconds:Ja,meridiem:Ja}:S({day:ad,month:ad,year:ad,hours:null,minutes:null,seconds:null,meridiem:null},g.viewRenderers),x=(r=g.ampmInClock)!=null?r:!0,E=w?["accept"]:[],_=S({},g,{viewRenderers:b,format:d3(p,g),views:m,yearsPerRow:(o=g.yearsPerRow)!=null?o:4,ampmInClock:x,timeSteps:C,thresholdToRenderTimeInASingleColumn:y,shouldRenderTimeInASingleColumn:v,slots:S({field:a3,openPickerIcon:iCe},g.slots),slotProps:S({},g.slotProps,{field:I=>{var T;return S({},xb((T=g.slotProps)==null?void 0:T.field,I),XB(g),{ref:n})},toolbar:S({hidden:!0,ampmInClock:x,toolbarVariant:w?"desktop":"mobile"},(s=g.slotProps)==null?void 0:s.toolbar),tabs:S({hidden:!0},(i=g.slotProps)==null?void 0:i.tabs),actionBar:S({actions:E},(l=g.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:k}=bke({props:_,valueManager:ns,valueType:"date-time",getOpenDialogAriaText:(a=(u=_.localeText)==null?void 0:u.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:tI});return k()});m3.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:OF,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 g3=c.forwardRef(function(t,n){var r,o,s,i,l;const a=is(),u=rn(),f=h3(t,"MuiMobileDateTimePicker"),p=S({day:ad,month:ad,year:ad,hours:oC,minutes:oC,seconds:oC},f.viewRenderers),g=(r=f.ampmInClock)!=null?r:!1,v=S({},f,{viewRenderers:p,format:d3(u,f),ampmInClock:g,slots:S({field:a3},f.slots),slotProps:S({},f.slotProps,{field:m=>{var C;return S({},xb((C=f.slotProps)==null?void 0:C.field,m),XB(f),{ref:n})},toolbar:S({hidden:!1,ampmInClock:g},(o=f.slotProps)==null?void 0:o.toolbar),tabs:S({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:y}=Cke({props:v,valueManager:ns,valueType:"date-time",getOpenDialogAriaText:(i=(l=v.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:tI});return y()});g3.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:OF,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 jke=["desktopModeMediaQuery"],Hke=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=Jxe}=r,s=le(r,jke);return Db(o,{defaultMatches:!0})?L.jsx(m3,S({ref:n},s)):L.jsx(g3,S({ref:n},s))});var v3={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",u="day",f="week",p="month",g="quarter",v="year",y="date",m="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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 $=["th","st","nd","rd"],F=M%100;return"["+M+($[(F-20)%10]||$[F]||$[0])+"]"}},x=function(M,$,F){var B=String(M);return!B||B.length>=$?M:""+Array($+1-B.length).join(F)+M},E={s:x,z:function(M){var $=-M.utcOffset(),F=Math.abs($),B=Math.floor(F/60),O=F%60;return($<=0?"+":"-")+x(B,2,"0")+":"+x(O,2,"0")},m:function M($,F){if($.date()<F.date())return-M(F,$);var B=12*(F.year()-$.year())+(F.month()-$.month()),O=$.clone().add(B,p),N=F-O<0,H=$.clone().add(B+(N?-1:1),p);return+(-(B+(F-O)/(N?O-H:H-O))||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:g}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},_="en",k={};k[_]=b;var I="$isDayjsObject",T=function(M){return M instanceof V||!(!M||!M[I])},D=function M($,F,B){var O;if(!$)return _;if(typeof $=="string"){var N=$.toLowerCase();k[N]&&(O=N),F&&(k[N]=F,O=N);var H=$.split("-");if(!O&&H.length>1)return M(H[0])}else{var K=$.name;k[K]=$,O=K}return!B&&O&&(_=O),O||!B&&_},R=function(M,$){if(T(M))return M.clone();var F=typeof $=="object"?$:{};return F.date=M,F.args=arguments,new V(F)},A=E;A.l=D,A.i=T,A.w=function(M,$){return R(M,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var V=function(){function M(F){this.$L=D(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[I]=!0}var $=M.prototype;return $.parse=function(F){this.$d=function(B){var O=B.date,N=B.utc;if(O===null)return new Date(NaN);if(A.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var H=O.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(O)}(F),this.init()},$.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()},$.$utils=function(){return A},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(F,B){var O=R(F);return this.startOf(B)<=O&&O<=this.endOf(B)},$.isAfter=function(F,B){return R(F)<this.startOf(B)},$.isBefore=function(F,B){return this.endOf(B)<R(F)},$.$g=function(F,B,O){return A.u(F)?this[B]:this.set(O,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,B){var O=this,N=!!A.u(B)||B,H=A.p(F),K=function(he,ne){var re=A.w(O.$u?Date.UTC(O.$y,ne,he):new Date(O.$y,ne,he),O);return N?re:re.endOf(u)},Y=function(he,ne){return A.w(O.toDate()[he].apply(O.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),O)},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()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,B){var O,N=A.p(F),H="set"+(this.$u?"UTC":""),K=(O={},O[u]=H+"Date",O[y]=H+"Date",O[p]=H+"Month",O[v]=H+"FullYear",O[a]=H+"Hours",O[l]=H+"Minutes",O[i]=H+"Seconds",O[s]=H+"Milliseconds",O)[N],Y=N===u?this.$D+(B-this.$W):B;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},$.set=function(F,B){return this.clone().$set(F,B)},$.get=function(F){return this[A.p(F)]()},$.add=function(F,B){var O,N=this;F=Number(F);var H=A.p(B),K=function(Q){var X=R(N);return A.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=(O={},O[l]=r,O[a]=o,O[i]=n,O)[H]||1,te=this.$d.getTime()+F*Y;return A.w(te,this)},$.subtract=function(F,B){return this.add(-1*F,B)},$.format=function(F){var B=this,O=this.$locale();if(!this.isValid())return O.invalidDate||m;var N=F||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),K=this.$H,Y=this.$m,te=this.$M,Q=O.weekdays,X=O.months,J=O.meridiem,se=function(ne,re,me,ce){return ne&&(ne[re]||ne(B,N))||me[re].slice(0,ce)},Z=function(ne){return A.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(B.$y).slice(-2);case"YYYY":return A.s(B.$y,4,"0");case"M":return te+1;case"MM":return A.s(te+1,2,"0");case"MMM":return se(O.monthsShort,te,X,3);case"MMMM":return se(X,te);case"D":return B.$D;case"DD":return A.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return se(O.weekdaysMin,B.$W,Q,2);case"ddd":return se(O.weekdaysShort,B.$W,Q,3);case"dddd":return Q[B.$W];case"H":return String(K);case"HH":return A.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 A.s(Y,2,"0");case"s":return String(B.$s);case"ss":return A.s(B.$s,2,"0");case"SSS":return A.s(B.$ms,3,"0");case"Z":return H}return null}(ne)||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,B,O){var N,H=this,K=A.p(B),Y=R(F),te=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return A.m(H,Y)};switch(K){case v:N=X()/12;break;case p:N=X();break;case g:N=X()/3;break;case f:N=(Q-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 O?N:A.a(N)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return k[this.$L]},$.locale=function(F,B){if(!F)return this.$L;var O=this.clone(),N=D(F,B,!0);return N&&(O.$L=N),O},$.clone=function(){return A.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},M}(),j=V.prototype;return R.prototype=j,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",u],["$M",p],["$y",v],["$D",y]].forEach(function(M){j[M[1]]=function($){return this.$g($,M[0],M[1])}}),R.extend=function(M,$){return M.$i||(M($,V,R),M.$i=!0),R},R.locale=D,R.isDayjs=T,R.unix=function(M){return R(1e3*M)},R.en=k[_],R.Ls=k,R.p={},R})})(v3);var Uke=v3.exports;const $r=di(Uke);function Wke(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=Ft(s,["onChange","error","helperText"]);return c.createElement(ze,{},c.createElement(Hke,at(xe({},Hb(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 g=c.useMemo(()=>(r||[]).map((w,b)=>_de(xe({},w),w.hasOwnProperty("id")?{$idx:b}:{id:b})),[JSON.stringify(r)]),v={fields:n.map(_=>{var k=_,{$width:w,$column:b,$type:x}=k,E=Ft(k,["$width","$column","$type"]);var I;return nt.defaults(E,(I=vD[x])==null?void 0:I.field)})};i==null||i({isEqual:M4});const[y,m]=c.useState();return c.createElement(c.Fragment,{},e&&c.createElement(KN,{sx:{ml:1}},e),t&&c.createElement(qd,{},t),c.createElement(ze,xe({},u),c.createElement(MB,{rows:g,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var x,E;const b=(x=vD[w.$type])==null?void 0:x.column;return xe(xe(xe({field:w.k,headerName:(E=w.headerName)!=null?E:typeof w.label=="string"?w.label:Z4(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:BE,title:w,size:"small",onClick:b=>uh({form:v,title:w}).then(x=>{if(!x)return;const E=(r==null?void 0:r.slice())||[];a?E.unshift(x):E.push(x),C(E,b)})}),y!==void 0&&c.createElement(mn,{icon:$B,title:"Undo",size:"small",onClick:b=>C(y,b)}))},getActions({row:w}){const{$idx:b=w.id}=w,x="Modify";return[c.createElement(yg,{icon:c.createElement(VE),label:x,title:x,onClick(E){uh({values:w,form:v,title:x}).then(_=>{_&&C(r.map((k,I)=>I===b?_:k),E)})}}),c.createElement(yg,{icon:c.createElement(Ml),label:"Delete",showInMenu:l,onClick:E=>C(r.filter((_,k)=>k!==b),E)}),l&&b&&c.createElement(yg,{icon:c.createElement(UE),label:"Move up",showInMenu:!0,onClick:E=>C(oO(r.slice(),b,b-1),E)}),l&&b<g.length-1&&c.createElement(yg,{icon:c.createElement(TB),label:"Move down",showInMenu:!0,onClick:E=>C(oO(r.slice(),b,b+1),E)})].filter(Boolean)}}]})));function C(w,b){o(w,{was:r,event:b}),m(r)}}const vD={dateTime:{field:{comp:Wke},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 nI={},Gke=et;Object.defineProperty(nI,"__esModule",{value:!0});var y3=nI.default=void 0,Kke=Gke(tt()),qke=Ze(),Yke=(0,Kke.default)((0,qke.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");y3=nI.default=Yke;var rI={},Qke=et;Object.defineProperty(rI,"__esModule",{value:!0});var b3=rI.default=void 0,Xke=Qke(tt()),Zke=Ze(),Jke=(0,Xke.default)((0,Zke.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}),"CreateNewFolder");b3=rI.default=Jke;var oI={},eEe=et;Object.defineProperty(oI,"__esModule",{value:!0});var w3=oI.default=void 0,tEe=eEe(tt()),nEe=Ze(),rEe=(0,tEe.default)((0,nEe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");w3=oI.default=rEe;const oEe=["element"];function sEe(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function iEe(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 C3=c.createContext({});function lEe(e){const t=c.useRef(null);return c.useEffect(()=>{t.current=e},[e]),t.current}const yD=()=>{};function aEe(e){const[,t]=c.useState(),{registerDescendant:n=yD,unregisterDescendant:r=yD,descendants:o=[],parentId:s=null}=c.useContext(C3),i=sEe(o,u=>u.element===e.element),l=lEe(o),a=o.some((u,f)=>l&&l[f]&&l[f].element!==u.element);return Nt(()=>{if(e.element)return n(S({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function x3(e){const{children:t,id:n}=e,[r,o]=c.useState([]),s=c.useCallback(a=>{let{element:u}=a,f=le(a,oEe);o(p=>{if(p.length===0)return[S({},f,{element:u,index:0})];const g=iEe(p,u);let v;if(p[g]&&p[g].element===u)v=p;else{const y=S({},f,{element:u,index:g});v=p.slice(),v.splice(g,0,y)}return v.forEach((y,m)=>{y.index=m}),v})},[]),i=c.useCallback(a=>{o(u=>u.filter(f=>a!==f.element))},[]),l=c.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:i,parentId:n}),[r,s,i,n]);return L.jsx(C3.Provider,{value:l,children:t})}const S3={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},P3=c.createContext(S3),k3=()=>c.useContext(P3);function cEe(e){const{instance:t,multiSelect:n}=k3(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,i=t?t.isNodeSelected(e):!1,l=t?t.isNodeDisabled(e):!1;return{disabled:l,expanded:o,selected:i,focused:s,handleExpansion:p=>{if(t&&!l){s||t.focusNode(p,e);const g=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(g&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(p,e)}},handleSelection:p=>{t&&!l&&(s||t.focusNode(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.selectRange(p,{end:e}):t.selectNode(p,e,!0):t.selectNode(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||l)&&p.preventDefault()}}}const uEe=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],E3=c.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:s,expansionIcon:i,icon:l,label:a,nodeId:u,onClick:f,onMouseDown:p}=t,g=le(t,uEe),{disabled:v,expanded:y,selected:m,focused:C,handleExpansion:w,handleSelection:b,preventSelection:x}=cEe(u),E=l||i||s,_=I=>{x(I),p&&p(I)},k=I=>{w(I),b(I),f&&f(I)};return L.jsxs("div",S({},g,{className:Ce(o,r.root,y&&r.expanded,m&&r.selected,C&&r.focused,v&&r.disabled),onClick:k,onMouseDown:_,ref:n,children:[L.jsx("div",{className:r.iconContainer,children:E}),L.jsx("div",{className:r.label,children:a})]}))});function dEe(e){return Ke("MuiTreeItem",e)}const Ul=We("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),fEe=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],pEe=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"]},dEe,t)},hEe=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),mEe=oe(E3,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ul.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ul.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"}},[`&.${Ul.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ul.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ul.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ul.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ul.label}`]:S({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),gEe=oe(Fv,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),fS=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=E3,ContentProps:a,endIcon:u,expandIcon:f,disabled:p,icon:g,id:v,label:y,nodeId:m,onClick:C,onMouseDown:w,TransitionComponent:b=Fv,TransitionProps:x}=r,E=le(r,fEe),{icons:_,multiSelect:k,disabledItemsFocusable:I,treeId:T,instance:D}=k3();let R;v!=null?R=v:T&&m&&(R=`${T}-${m}`);const[A,V]=c.useState(null),j=c.useRef(null),M=Et(V,n),$=c.useMemo(()=>({element:A,id:m}),[m,A]),{index:F,parentId:B}=aEe($),O=!!(Array.isArray(o)?o.length:o),N=D?D.isNodeExpanded(m):!1,H=D?D.isNodeFocused(m):!1,K=D?D.isNodeSelected(m):!1,Y=D?D.isNodeDisabled(m):!1,te=S({},r,{expanded:N,focused:H,selected:K,disabled:Y}),Q=pEe(te);let X,J;O&&(N?J=i||_.defaultCollapseIcon:J=f||_.defaultExpandIcon),O?X=_.defaultParentIcon:X=u||_.defaultEndIcon,c.useEffect(()=>{if(D&&F!==-1)return D.updateNode({id:m,idAttribute:R,index:F,parentId:B,expandable:O,disabled:p}),()=>D.removeNode(m)},[D,B,F,m,O,p,R]),c.useEffect(()=>{if(D&&y){var he,ne;return D.mapFirstChar(m,((he=(ne=j.current)==null?void 0:ne.textContent)!=null?he:"").substring(0,1).toLowerCase())}},[D,m,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(T).focus({preventScroll:!0})}const ne=!I&&Y;D&&!H&&he.currentTarget===he.target&&!ne&&D.focusNode(he,m)}return L.jsxs(hEe,S({className:Ce(Q.root,s),role:"treeitem","aria-expanded":O?N:void 0,"aria-selected":se,"aria-disabled":Y||void 0,id:R,tabIndex:-1},E,{ownerState:te,onFocus:Z,ref:M,children:[L.jsx(mEe,S({as:l,ref:j,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,iconContainer:Q.iconContainer,label:Q.label},label:y,nodeId:m,onClick:C,onMouseDown:w,icon:g,expansionIcon:J,displayIcon:X,ownerState:te},a)),o&&L.jsx(x3,{id:m,children:L.jsx(gEe,S({as:b,unmountOnExit:!0,className:Q.group,in:N,component:"ul",role:"group"},x,{children:o}))})]}))});function vEe(e){return Ke("MuiTreeView",e)}We("MuiTreeView",["root"]);const yEe=(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=>S({},f,{[i]:u}))}}]}))};class bEe{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 iC=(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},pS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},hS=e=>e.getNavigableChildrenIds(null)[0],sf=(e,t)=>{Object.assign(e,t)},wEe=e=>e.isPropagationStopped!==void 0,CEe=({instance:e})=>{const[t]=c.useState(()=>new bEe),n=c.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(wEe(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})},xEe=[CEe],SEe=e=>{const t=[...xEe,...e.plugins],n=t.reduce((y,m)=>m.getDefaultizedParams?m.getDefaultizedParams(y):y,e),r=yEe(t,n),s=c.useRef({}).current,i=c.useRef(null),l=Et(i,e.rootRef),[a,u]=c.useState(()=>{const y={};return t.forEach(m=>{m.getInitialState&&Object.assign(y,m.getInitialState(n))}),y}),f=[];let p=S3;const g=y=>{const m=y({instance:s,params:n,state:a,setState:u,rootRef:i,models:r})||{};m.getRootProps&&f.push(m.getRootProps),m.contextValue&&(p=m.contextValue)};return t.forEach(g),{getRootProps:(y={})=>{const m=S({role:"tree",tabIndex:0},y,{ref:l});return f.forEach(C=>{Object.assign(m,C(y))}),m},rootRef:l,contextValue:p}};function PEe(e){const{value:t,children:n}=e;return L.jsx(P3.Provider,{value:t,children:L.jsx(x3,{children:n})})}const kEe=(e,t,n)=>{e.$$publishEvent(t,n)},EEe=({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=S({},n.current);delete f[u],n.current=f,kEe(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})},sI=({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)),g=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(g),t.onNodeToggle&&t.onNodeToggle(l,g))}})};sI.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const IEe=[];sI.getDefaultizedParams=e=>{var t;return S({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:IEe})};const MEe=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const s=[r.id],i=[o.id];let l=r.parentId,a=o.parentId,u=i.indexOf(l)!==-1,f=s.indexOf(a)!==-1,p=!0,g=!0;for(;!f&&!u;)p&&(s.push(l),u=i.indexOf(l)!==-1,p=l!==null,!u&&p&&(l=e.getNode(l).parentId)),g&&!u&&(i.push(a),f=s.indexOf(a)!==-1,g=a!==null,!f&&g&&(a=e.getNode(a).parentId));const v=u?l:a,y=e.getChildrenIds(v),m=s[s.indexOf(v)-1],C=i[i.indexOf(v)-1];return y.indexOf(m)<y.indexOf(C)?[t,n]:[n,t]},iI=({instance:e,params:t,models:n})=>{const r=c.useRef(null),o=c.useRef(!1),s=c.useRef([]),i=y=>Array.isArray(n.selected.value)?n.selected.value.indexOf(y)!==-1:n.selected.value===y,l=(y,m,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(m)!==-1?w=n.selected.value.filter(b=>b!==m):w=[m].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(y,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[m]:m;t.onNodeSelect&&t.onNodeSelect(y,w),n.selected.setValue(w)}r.current=m,o.current=!1,s.current=[]}},a=(y,m)=>{const[C,w]=MEe(e,y,m),b=[C];let x=C;for(;x!==w;)x=dp(e,x),b.push(x);return b},u=(y,m)=>{let C=n.selected.value.slice();const{start:w,next:b,current:x}=m;!b||!x||(s.current.indexOf(x)===-1&&(s.current=[]),o.current?s.current.indexOf(b)!==-1?(C=C.filter(E=>E===w||E!==x),s.current=s.current.filter(E=>E===w||E!==x)):(C.push(b),s.current.push(b)):(C.push(b),s.current.push(x,b)),t.onNodeSelect&&t.onNodeSelect(y,C),n.selected.setValue(C))},f=(y,m)=>{let C=n.selected.value.slice();const{start:w,end:b}=m;o.current&&(C=C.filter(_=>s.current.indexOf(_)===-1));let x=a(w,b);x=x.filter(_=>!e.isNodeDisabled(_)),s.current=x;let E=C.concat(x);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,m,C=!1)=>{if(t.disableSelection)return;const{start:w=r.current,end:b,current:x}=m;C?u(y,{start:w,next:b,current:x}):w!=null&&b!=null&&f(y,{start:w,end:b}),o.current=!0},rangeSelectToLast:(y,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(y,{start:C,end:pS(e)})},rangeSelectToFirst:(y,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(y,{start:C,end:hS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};iI.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const _Ee=[];iI.getDefaultizedParams=e=>{var t,n,r;return S({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?_Ee:null})};const bD=1e3;class TEe{constructor(t=bD){this.timeouts=new Map,this.cleanupTimeout=bD,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 $Ee{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 REe{}function OEe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new $Ee:new TEe);const[i]=c.useState(new REe),l=c.useRef(null),a=c.useRef();a.current=s;const u=c.useRef(null);if(!l.current&&a.current){const f=(p,g)=>{if(!g.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,g)}};l.current=r.$$subscribeEvent(o,f),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,u.current=null},u.current)}else!a.current&&l.current&&(l.current(),l.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));c.useEffect(()=>{if(!l.current&&a.current){const f=(p,g)=>{if(!g.defaultMuiPrevented){var v;(v=a.current)==null||v.call(a,p,g)}};l.current=r.$$subscribeEvent(o,f)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o])}}const DEe={registry:null},AEe=OEe(DEe),lI=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=Ye(v=>{const y=typeof v=="function"?v(n.focusedNodeId):v;r(m=>S({},m,{focusedNodeId:y}))}),l=c.useCallback(v=>n.focusedNodeId===v,[n.focusedNodeId]),a=Ye((v,y)=>{y&&(i(y),t.onNodeFocus&&t.onNodeFocus(v,y))});sf(e,{isNodeFocused:l,focusNode:a}),AEe(e,"removeNode",({id:v})=>{i(y=>y===v&&s.current===fn(s.current).activeElement?e.getChildrenIds(null)[0]:y)});const u=v=>y=>{var m;if((m=v.onFocus)==null||m.call(v,y),y.target===y.currentTarget){const C=b=>{const x=e.getNode(b);return x&&(x.parentId==null||e.isNodeExpanded(x.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 m;(m=v.onBlur)==null||m.call(v,y),i(null)},p=e.getNode(n.focusedNodeId),g=p?p.idAttribute:null;return{getRootProps:v=>({onFocus:u(v),onBlur:f(v),"aria-activedescendant":g!=null?g:void 0})}};lI.getInitialState=()=>({focusedNodeId:null});lI.getDefaultizedParams=e=>{var t;return S({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function LEe(e){return e&&e.length===1&&e.match(/\S/)}function wD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const FEe=({instance:e,params:t,state:n})=>{const o=yn().direction==="rtl",s=c.useRef({}),i=Ye((v,y)=>(s.current[v]=y,()=>{const m=S({},s.current);delete m[v],s.current=m}));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,m)=>{let C,w;const b=m.toLowerCase(),x=[],E=[];Object.keys(s.current).forEach(_=>{const k=e.getNode(_),I=k.parentId?e.isNodeExpanded(k.parentId):!0,T=t.disabledItemsFocusable?!1:e.isNodeDisabled(_);I&&!T&&(x.push(_),E.push(s.current[_]))}),C=x.indexOf(y)+1,C>=x.length&&(C=0),w=wD(E,C,b),w===-1&&(w=wD(E,0,b)),w>-1&&e.focusNode(v,x[w])},f=(v,y)=>{e.isNodeDisabled(dp(e,y))||e.selectRange(v,{end:dp(e,y),current:y},!0)},p=(v,y)=>{e.isNodeDisabled(iC(e,y))||e.selectRange(v,{end:iC(e,y),current:y},!0)},g=v=>y=>{var m;(m=v.onKeyDown)==null||m.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,iC(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,hS(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,pS(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:hS(e),end:pS(e)}),C=!0):!b&&!y.shiftKey&&LEe(w)&&(u(y,n.focusedNodeId,w),C=!0)}C&&(y.preventDefault(),y.stopPropagation())};return{getRootProps:v=>({onKeyDown:g(v)})}},NEe=({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}}}},BEe=[EEe,sI,iI,lI,FEe,NEe],zEe=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],VEe=e=>{const{classes:t}=e;return Te({root:["root"]},vEe,t)},CD=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),I3=c.forwardRef(function(t,n){const r=je({props:t,name:"MuiTreeView"}),o=r,s=r,{disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:g,selected:v,multiSelect:y,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:E,children:_}=s,k=le(s,zEe),{getRootProps:I,contextValue:T}=SEe({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:u,onNodeFocus:f,disableSelection:p,defaultSelected:g,selected:v,multiSelect:y,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:E,plugins:BEe,rootRef:n}),D=VEe(r),R=qt({elementType:CD,externalSlotProps:{},externalForwardedProps:k,className:D.root,getSlotProps:I,ownerState:o});return L.jsx(PEe,{value:T,children:L.jsx(CD,S({},R,{children:_}))})});var aI={},jEe=et;Object.defineProperty(aI,"__esModule",{value:!0});var M3=aI.default=void 0,HEe=jEe(tt()),UEe=Ze(),WEe=(0,HEe.default)((0,UEe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");M3=aI.default=WEe;var cI={},GEe=et;Object.defineProperty(cI,"__esModule",{value:!0});var _3=cI.default=void 0,KEe=GEe(tt()),qEe=Ze(),YEe=(0,KEe.default)((0,qEe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");_3=cI.default=YEe;var uI={},QEe=et;Object.defineProperty(uI,"__esModule",{value:!0});var T3=uI.default=void 0,XEe=QEe(tt()),xD=Ze(),ZEe=(0,XEe.default)([(0,xD.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,xD.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");T3=uI.default=ZEe;var dI={},JEe=et;Object.defineProperty(dI,"__esModule",{value:!0});var $3=dI.default=void 0,eIe=JEe(tt()),tIe=Ze(),nIe=(0,eIe.default)((0,tIe.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");$3=dI.default=nIe;var fI={},rIe=et;Object.defineProperty(fI,"__esModule",{value:!0});var R3=fI.default=void 0,oIe=rIe(tt()),sIe=Ze(),iIe=(0,oIe.default)((0,sIe.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");R3=fI.default=iIe;var pI={},lIe=et;Object.defineProperty(pI,"__esModule",{value:!0});var O3=pI.default=void 0,aIe=lIe(tt()),cIe=Ze(),uIe=(0,aIe.default)((0,cIe.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");O3=pI.default=uIe;var hI={},dIe=et;Object.defineProperty(hI,"__esModule",{value:!0});var D3=hI.default=void 0,fIe=dIe(tt()),pIe=Ze(),hIe=(0,fIe.default)((0,pIe.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");D3=hI.default=hIe;var mI={},mIe=et;Object.defineProperty(mI,"__esModule",{value:!0});var A3=mI.default=void 0,gIe=mIe(tt()),vIe=Ze(),yIe=(0,gIe.default)((0,vIe.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");A3=mI.default=yIe;var gI={},bIe=et;Object.defineProperty(gI,"__esModule",{value:!0});var L3=gI.default=void 0,wIe=bIe(tt()),CIe=Ze(),xIe=(0,wIe.default)((0,CIe.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");L3=gI.default=xIe;var vI={},SIe=et;Object.defineProperty(vI,"__esModule",{value:!0});var F3=vI.default=void 0,PIe=SIe(tt()),kIe=Ze(),EIe=(0,PIe.default)((0,kIe.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");F3=vI.default=EIe;var yI={},IIe=et;Object.defineProperty(yI,"__esModule",{value:!0});var N3=yI.default=void 0;TIe(c);var MIe=IIe(tt()),_Ie=Ze();function B3(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(B3=function(r){return r?n:t})(e)}function TIe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=B3(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 $Ie=(0,MIe.default)((0,_Ie.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");N3=yI.default=$Ie;let xg;function RIe(){const{close:e}=Ro({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=bI();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(Bz,{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 OIe(){return ot(this,null,function*(){try{const e=yield Jk("Enter folder name");if(!e)return;const{id:t}=bI(),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 DIe(){return ot(this,null,function*(){try{const{id:e}=bI(),t=yield ct("add_vfs",{parent:e,name:"new link",url:"https://google.com"});$a([e+encodeURI(t.name)]),nr("Link created","success",{onClose:()=>Qv("input[name=url]")})}catch(e){yield kt(e)}})}function bI(){const e=ln.selectedFiles[0]||ln.vfs;return e.type==="folder"?e:e.parent}function z3(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(qn,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(o4,{anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((a,u)=>c.createElement(Pr,at(xe({key:u},a),{onClick(){var f;l(),(f=a.onClick)==null||f.apply(this,arguments)}})))}))}var wI={},AIe=et;Object.defineProperty(wI,"__esModule",{value:!0});var V3=wI.default=void 0,LIe=AIe(tt()),FIe=Ze(),NIe=(0,LIe.default)((0,FIe.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");V3=wI.default=NIe;function mS(s){var i=s,{keys:e,form:t,saveOnChange:n,onSave:r}=i,o=Ft(i,["keys","form","saveOnChange","onSave"]);const l=Yn("get_config",{only:e}),[a,u]=c.useState(l.data);c.useEffect(()=>u(v=>l.data||v),[l.data]);const f=a&&!nt.isEqual(a,l.data);if(c.useEffect(()=>{f&&n&&g()},[f]),!a)return l.element;const p=nt.isFunction(t)?t(a):t;return c.createElement(Hc,at(xe(xe({values:a,set(v,y){u(m=>at(xe({},m),{[y]:v}))},save:n?!1:{onClick:g,sx:Zd(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:xe({gap:1},o.barSx),addToBar:[c.createElement(mn,{icon:V3,disabled:!f,title:"Reset",onClick(){u(l.data)}}),...o.addToBar||[]]}));function g(){return ct("set_config",{values:a}).then(r).then(l.reload)}}function BIe(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=Rde(e),{list:u,loading:f}=xl("get_file_list",{uri:a,onlyFolders:!0}),p=c.useMemo(()=>[a+"/"].concat(u.map(g=>e+g.n)),[u,a]);return c.createElement(Fh,xe({value:e,options:p,isOptionEqualToValue:(g,v)=>g===v||g===v+"/",loading:f,disableClearable:!0,renderInput:g=>c.createElement(Na,at(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})}},g),s),{InputLabelProps:xe(xe({shrink:!0},g.InputLabelProps),s.InputLabelProps)})),onChange:(g,v)=>t(v,{was:e,event:g})},o))}function zIe({statusApi:e}){var s;const t=((s=e.data)==null?void 0:s.platform)==="win32",{data:n,reload:r}=O4(t&&"windows_integrated");return c.createElement(qr,{mb:2,position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"},c.createElement(z3,{variant:"contained",startIcon:c.createElement(BE),items:[{children:"from disk",onClick:RIe},{children:"virtual folder",onClick:OIe},{children:"web-link",onClick:DIe}]},"Add"),c.createElement(Qo,{variant:"outlined",onClick:o},"Roots"),r0(()=>$a()),t&&c.createElement(Qo,xe({icon:N3,variant:"outlined",doneMessage:!0},n!=null&&n.is?{confirm:!0,children:"Remove integration",onClick:()=>ct("windows_remove").then(r)}:{children:"System integration",onClick:()=>ct("windows_integration").then(r),confirm: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!"))})));function o(){const{close:i}=Ro({dialogProps:{maxWidth:"sm"},Content:()=>c.createElement(mS,{onSave:()=>{e.reload(),i()},keys:["roots"],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:BIe,placeholder:"default",helperText:"Root path in VFS"}]},{k:"roots_mandatory",label:"Block requests that are not using any of the domains above",helperText:"localhost connections are not included",comp:Dn}]}})})}}const CI=Symbol.for("yaml.alias"),gS=Symbol.for("yaml.document"),Ca=Symbol.for("yaml.map"),j3=Symbol.for("yaml.pair"),Sl=Symbol.for("yaml.scalar"),lf=Symbol.for("yaml.seq"),Ns=Symbol.for("yaml.node.type"),Gc=e=>!!e&&typeof e=="object"&&e[Ns]===CI,af=e=>!!e&&typeof e=="object"&&e[Ns]===gS,cf=e=>!!e&&typeof e=="object"&&e[Ns]===Ca,Ln=e=>!!e&&typeof e=="object"&&e[Ns]===j3,Sn=e=>!!e&&typeof e=="object"&&e[Ns]===Sl,uf=e=>!!e&&typeof e=="object"&&e[Ns]===lf;function zn(e){if(e&&typeof e=="object")switch(e[Ns]){case Ca:case lf:return!0}return!1}function rr(e){if(e&&typeof e=="object")switch(e[Ns]){case CI:case Ca:case Sl:case lf:return!0}return!1}const VIe=e=>(Sn(e)||zn(e))&&!!e.anchor,xo=Symbol("break visit"),H3=Symbol("skip children"),Ni=Symbol("remove node");function _a(e,t){const n=U3(t);af(e)?Wu(null,e.contents,n,Object.freeze([e]))===Ni&&(e.contents=null):Wu(null,e,n,Object.freeze([]))}_a.BREAK=xo;_a.SKIP=H3;_a.REMOVE=Ni;function Wu(e,t,n,r){const o=W3(e,t,n,r);if(rr(o)||Ln(o))return G3(e,r,o),Wu(e,o,n,r);if(typeof o!="symbol"){if(zn(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===Ni&&(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===Ni&&(t.key=null);const i=Wu("value",t.value,n,r);if(i===xo)return xo;i===Ni&&(t.value=null)}}return o}function x0(e,t){return ot(this,null,function*(){const n=U3(t);af(e)?(yield Gu(null,e.contents,n,Object.freeze([e])))===Ni&&(e.contents=null):yield Gu(null,e,n,Object.freeze([]))})}x0.BREAK=xo;x0.SKIP=H3;x0.REMOVE=Ni;function Gu(e,t,n,r){return ot(this,null,function*(){const o=yield W3(e,t,n,r);if(rr(o)||Ln(o))return G3(e,r,o),Gu(e,o,n,r);if(typeof o!="symbol"){if(zn(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===Ni&&(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===Ni&&(t.key=null);const i=yield Gu("value",t.value,n,r);if(i===xo)return xo;i===Ni&&(t.value=null)}}return o})}function U3(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 W3(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 G3(e,t,n){const r=t[t.length-1];if(zn(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 jIe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},HIe=e=>e.replace(/[!,[\]{}]/g,t=>jIe[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+HIe(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&&rr(t.contents)){const s={};_a(t.contents,(i,l)=>{rr(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 K3(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 q3(e){const t=new Set;return _a(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function Y3(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function UIe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=q3(e));const i=Y3(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)||zn(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||!VIe(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 xI{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 S0 extends xI{constructor(t){super(CI),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(K3(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(zn(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 Q3=e=>!e||typeof e!="function"&&typeof e!="object";class $t extends xI{constructor(t){super(Sl),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 WIe="tag:yaml.org,2002:";function GIe(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,g,v;if(af(e)&&(e=e.contents),rr(e))return e;if(Ln(e)){const y=(g=(p=n.schema[Ca]).createNode)==null?void 0:g.call(p,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=n;let a;if(r&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=o(e)),new S0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=WIe+t.slice(2));let u=GIe(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 P0 extends xI{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=>rr(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(zn(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(zn(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:zn(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 zn(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(zn(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}`)}}}P0.maxFlowStringSingleLineLength=60;const KIe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function dl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ua=(e,t,n)=>e.endsWith(`
|
|
625
|
+
`)?dl(n,t):n.includes(`
|
|
626
|
+
`)?`
|
|
627
|
+
`+dl(n,t):(e.endsWith(" ")?"":" ")+n,X3="flow",vS="block",ev="quoted";function k0(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return e;const a=Math.max(1+s,1+o-t.length);if(e.length<=a)return e;const u=[],f={};let p=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?u.push(0):p=o-r);let g,v,y=!1,m=-1,C=-1,w=-1;n===vS&&(m=SD(e,m),m!==-1&&(p=m+a));for(let x;x=e[m+=1];){if(n===ev&&x==="\\"){switch(C=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}w=m}if(x===`
|
|
628
|
+
`)n===vS&&(m=SD(e,m)),p=m+a,g=void 0;else{if(x===" "&&v&&v!==" "&&v!==`
|
|
629
|
+
`&&v!==" "){const E=e[m+1];E&&E!==" "&&E!==`
|
|
630
|
+
`&&E!==" "&&(g=m)}if(m>=p)if(g)u.push(g),p=g+a,g=void 0;else if(n===ev){for(;v===" "||v===" ";)v=x,x=e[m+=1],y=!0;const E=m>w+1?m-2:C-1;if(f[E])return e;u.push(E),f[E]=!0,p=E+a,g=void 0}else y=!0}v=x}if(y&&l&&l(),u.length===0)return e;i&&i();let b=e.slice(0,u[0]);for(let x=0;x<u.length;++x){const E=u[x],_=u[x+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 SD(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 E0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),I0=e=>/^(%|---|\.\.\.)/m.test(e);function qIe(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||(I0(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:k0(i,s,ev,E0(t,!1))}function yS(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||(I0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
639
|
+
${n}`)+"'";return t.implicitKey?r:k0(r,n,X3,E0(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=yS:s&&!o?r=Dp:r=n?yS:Dp}return r(e,t)}let bS;try{bS=new RegExp(`(^|(?<!
|
|
640
|
+
))
|
|
641
|
+
+(?!
|
|
642
|
+
|$)`,"g")}catch(e){bS=/\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||I0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===$t.BLOCK_FOLDED?!1:t===$t.BLOCK_LITERAL?!0:!qIe(n,a,u.length);if(!n)return f?`|
|
|
643
|
+
`:`>
|
|
644
|
+
`;let p,g;for(g=n.length;g>0;--g){const k=n[g-1];if(k!==`
|
|
645
|
+
`&&k!==" "&&k!==" ")break}let v=n.substring(g);const y=v.indexOf(`
|
|
646
|
+
`);y===-1?p="-":n===v||y!==v.length-1?(p="+",s&&s()):p="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
|
|
647
|
+
`&&(v=v.slice(0,-1)),v=v.replace(bS,`$&${u}`));let m=!1,C,w=-1;for(C=0;C<n.length;++C){const k=n[C];if(k===" ")m=!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?"|":">")+(m?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 _=k0(`${b}${n}${v}`,u,vS,E0(r,!0));return`${E}
|
|
651
|
+
${u}${_}`}function YIe(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(I0(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 g=m=>{var C;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((C=m.test)==null?void 0:C.test(p))},{compat:v,tags:y}=t.doc.schema;if(y.some(g)||v!=null&&v.some(g))return qu(s,t)}return l?p:k0(p,a,X3,E0(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 yS(i.value,t);case $t.PLAIN:return YIe(i,t,n,r);default:return null}};let u=a(l);if(u===null){const{defaultKeyType:f,defaultStringType:p}=t.options,g=o&&f||p;if(u=a(g),u===null)throw new Error(`Unsupported default string type ${g}`)}return u}function Z3(e,t){const n=Object.assign({blockQuote:!0,commentString:KIe,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 QIe(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 XIe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(Sn(e)||zn(e))&&e.anchor;s&&K3(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=rr(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=QIe(t.doc.schema.tags,s));const i=XIe(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 ZIe({key:e,value:t},n,r,o){var I,T;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:u,indentSeq:f,simpleKeys:p}}=n;let g=rr(e)&&e.comment||null;if(p){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(zn(e)){const D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let v=!p&&(!e||g&&t==null&&!n.inFlow||zn(e)||(Sn(e)?e.type===$t.BLOCK_FOLDED||e.type===$t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(p||!s),indent:l+a});let y=!1,m=!1,C=Ad(e,n,()=>y=!0,()=>m=!0);if(!v&&!n.inFlow&&C.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(s||t==null)return y&&r&&r(),C===""?"?":v?`? ${C}`:C}else if(s&&!p||t==null&&v)return C=`? ${C}`,g&&!y?C+=ua(C,n.indent,u(g)):m&&o&&o(),C;y&&(g=null),v?(g&&(C+=ua(C,n.indent,u(g))),C=`? ${C}
|
|
656
|
+
${l}:`):(C=`${C}:`,g&&(C+=ua(C,n.indent,u(g))));let w,b,x;rr(t)?(w=!!t.spaceBefore,b=t.commentBefore,x=t.comment):(w=!1,b=null,x=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!v&&!g&&Sn(t)&&(n.indentAtStart=C.length+1),m=!1,!f&&a.length>=2&&!n.inFlow&&!v&&uf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let E=!1;const _=Ad(t,n,()=>E=!0,()=>m=!0);let k=" ";if(g||w||b){if(k=w?`
|
|
657
|
+
`:"",b){const D=u(b);k+=`
|
|
658
|
+
${dl(D,n.indent)}`}_===""&&!n.inFlow?k===`
|
|
659
|
+
`&&(k=`
|
|
660
|
+
|
|
661
|
+
`):k+=`
|
|
662
|
+
${n.indent}`}else if(!v&&zn(t)){const D=_[0],R=_.indexOf(`
|
|
663
|
+
`),A=R!==-1,V=(T=(I=n.inFlow)!=null?I:t.flow)!=null?T:t.items.length===0;if(A||!V){let j=!1;if(A&&(D==="&"||D==="!")){let M=_.indexOf(" ");D==="&"&&M!==-1&&M<R&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||R<M)&&(j=!0)}j||(k=`
|
|
664
|
+
${n.indent}`)}}else(_===""||_[0]===`
|
|
665
|
+
`)&&(k="");return C+=k+_,n.inFlow?E&&r&&r():x&&!E?C+=ua(C,n.indent,u(x)):m&&o&&o(),C}function J3(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const PD="<<";function ez(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&JIe(n))if(r=Gc(r)?r.resolve(e.doc):r,uf(r))for(const o of r.items)lC(e,t,o);else if(Array.isArray(r))for(const o of r)lC(e,t,o);else lC(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=e2e(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 JIe=e=>e===PD||Sn(e)&&e.value===PD&&(!e.type||e.type===$t.PLAIN);function lC(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 e2e(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(rr(e)&&n&&n.doc){const r=Z3(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)+'..."'),J3(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 SI(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:j3}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return rr(n)&&(n=n.clone(t)),rr(r)&&(r=r.clone(t)),new Xr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return ez(n,r,this)}toString(t,n,r){return t!=null&&t.doc?ZIe(this,t,n,r):JSON.stringify(this)}}function tz(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?n2e:t2e)(e,t,n)}function t2e({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:a,options:{commentString:u}}=n,f=Object.assign({},n,{indent:s,type:null});let p=!1;const g=[];for(let y=0;y<t.length;++y){const m=t[y];let C=null;if(rr(m))!p&&m.spaceBefore&&g.push(""),my(n,g,m.commentBefore,p),m.comment&&(C=m.comment);else if(Ln(m)){const b=rr(m.key)?m.key:null;b&&(!p&&b.spaceBefore&&g.push(""),my(n,g,b.commentBefore,p))}p=!1;let w=Ad(m,f,()=>C=null,()=>p=!0);C&&(w+=ua(w,s,u(C))),p&&C&&(p=!1),g.push(r+w)}let v;if(g.length===0)v=o.start+o.end;else{v=g[0];for(let y=1;y<g.length;++y){const m=g[y];v+=m?`
|
|
666
|
+
${a}${m}`:`
|
|
667
|
+
`}}return e?(v+=`
|
|
668
|
+
`+dl(u(e),a),l&&l()):p&&i&&i(),v}function n2e({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:l,flowCollectionPadding:a,options:{commentString:u}}=n;o+=l;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,g=0;const v=[];for(let w=0;w<t.length;++w){const b=t[w];let x=null;if(rr(b))b.spaceBefore&&v.push(""),my(n,v,b.commentBefore,!1),b.comment&&(x=b.comment);else if(Ln(b)){const _=rr(b.key)?b.key:null;_&&(_.spaceBefore&&v.push(""),my(n,v,_.commentBefore,!1),_.comment&&(p=!0));const k=rr(b.value)?b.value:null;k?(k.comment&&(x=k.comment),k.commentBefore&&(p=!0)):b.value==null&&_&&_.comment&&(x=_.comment)}x&&(p=!0);let E=Ad(b,f,()=>x=null);w<t.length-1&&(E+=","),x&&(E+=ua(E,o,u(x))),!p&&(v.length>g||E.includes(`
|
|
669
|
+
`))&&(p=!0),v.push(E),g=v.length}let y;const{start:m,end:C}=r;if(v.length===0)y=m+C;else if(p||(p=v.reduce((b,x)=>b+x.length+2,2)>P0.maxFlowStringSingleLineLength),p){y=m;for(const w of v)y+=w?`
|
|
670
|
+
${l}${i}${w}`:`
|
|
671
|
+
`;y+=`
|
|
672
|
+
${i}${C}`}else y=`${m}${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=dl(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 Wo extends P0{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(SI(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)&&Q3(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)ez(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})),tz(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const df={collection:"map",default:!0,nodeClass:Wo,tag:"tag:yaml.org,2002:map",resolve(e,t){return cf(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Wo.from(e,t,n)};class Ta extends P0{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)&&Q3(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?tz(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)},M0={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},PI={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&&PI.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 pi({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 nz={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:pi},rz={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():pi(e)}},oz={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:pi},T0=e=>typeof e=="bigint"||Number.isInteger(e),kI=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function sz(e,t,n){const{value:r}=e;return T0(r)&&r>=0?n+r.toString(t):pi(e)}const iz={identify:e=>T0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>kI(e,2,8,n),stringify:e=>sz(e,8,"0o")},lz={identify:T0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>kI(e,0,10,n),stringify:pi},az={identify:e=>T0(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>kI(e,2,16,n),stringify:e=>sz(e,16,"0x")},r2e=[df,ff,M0,_0,PI,iz,lz,az,nz,rz,oz];function kD(e){return typeof e=="bigint"||Number.isInteger(e)}const Pg=({value:e})=>JSON.stringify(e),o2e=[{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:kD,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})=>kD(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}],s2e={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},i2e=[df,ff].concat(o2e,s2e),EI={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){const i=n;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let u=0;u<i.length;++u)a+=String.fromCharCode(i[u]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=$t.BLOCK_LITERAL),t!==$t.QUOTE_DOUBLE){const a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),u=Math.ceil(l.length/a),f=new Array(u);for(let p=0,g=0;p<u;++p,g+=a)f[p]=l.substr(g,a);l=f.join(t===$t.BLOCK_LITERAL?`
|
|
673
|
+
`:" ")}return Zh({comment:e,type:t,value:l},r,o,s)}};function cz(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 uz(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(SI(l,a,n))}return o}const II={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:cz,createNode:uz};class cd extends Ta{constructor(){super(),this.add=Wo.prototype.add.bind(this),this.delete=Wo.prototype.delete.bind(this),this.get=Wo.prototype.get.bind(this),this.has=Wo.prototype.has.bind(this),this.set=Wo.prototype.set.bind(this),this.tag=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=uz(t,n,r),s=new this;return s.items=o.items,s}}cd.tag="tag:yaml.org,2002:omap";const MI={collection:"seq",identify:e=>e instanceof Map,nodeClass:cd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=cz(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 dz({value:e,source:t},n){return t&&(e?fz:pz).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const fz={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:dz},pz={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:dz},l2e={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:pi},a2e={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():pi(e)}},c2e={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:pi},Jh=e=>typeof e=="bigint"||Number.isInteger(e);function $0(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 _I(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 pi(e)}const u2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>$0(e,2,2,n),stringify:e=>_I(e,2,"0b")},d2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>$0(e,1,8,n),stringify:e=>_I(e,8,"0")},f2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>$0(e,0,10,n),stringify:pi},p2e={identify:Jh,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>$0(e,2,16,n),stringify:e=>_I(e,16,"0x")};class ud extends Wo{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(SI(i,null,r));return s}}ud.tag="tag:yaml.org,2002:set";const TI={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 $I(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 hz(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return pi(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 mz={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})=>$I(e,n),stringify:hz},gz={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=>$I(e,!1),stringify:hz},R0={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(R0.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=$I(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$/,"")},ED=[df,ff,M0,_0,fz,pz,u2e,d2e,f2e,p2e,l2e,a2e,c2e,EI,MI,II,TI,mz,gz,R0],ID=new Map([["core",r2e],["failsafe",[df,ff,M0]],["json",i2e],["yaml11",ED],["yaml-1.1",ED]]),MD={binary:EI,bool:PI,float:oz,floatExp:rz,floatNaN:nz,floatTime:gz,int:lz,intHex:az,intOct:iz,intTime:mz,map:df,null:_0,omap:MI,pairs:II,seq:ff,set:TI,timestamp:R0},h2e={"tag:yaml.org,2002:binary":EI,"tag:yaml.org,2002:omap":MI,"tag:yaml.org,2002:pairs":II,"tag:yaml.org,2002:set":TI,"tag:yaml.org,2002:timestamp":R0};function aC(e,t){let n=ID.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(ID.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=MD[r];if(o)return o;const s=Object.keys(MD).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const m2e=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class O0{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?aC(t,"compat"):t?aC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?h2e:{},this.tags=aC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Ca,{value:df}),Object.defineProperty(this,Sl,{value:M0}),Object.defineProperty(this,lf,{value:ff}),this.sortMapEntries=typeof i=="function"?i:i===!0?m2e:null}clone(){const t=Object.create(O0.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function g2e(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=Z3(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=s(e.commentBefore);n.unshift(dl(u,""))}let i=!1,l=null;if(e.contents){if(rr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(dl(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(dl(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(dl(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:gS});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:gS}});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=rr(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=q3(this);t.anchor=!n||r.has(n)?Y3(n||"a",r):n}return new S0(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:g,sourceObjects:v}=UIe(this,i||"a"),y={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:a!=null?a:!1,onAnchor:p,onTagObj:u,replacer:o,schema:this.schema,sourceObjects:v},m=Sh(t,f,y);return l&&zn(m)&&(m.flow=!0),g(),m}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new 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 zn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return fp(t)?!n&&Sn(this.contents)?this.contents.value:this.contents:zn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return zn(this.contents)?this.contents.has(t):!1}hasIn(t){return fp(t)?this.contents!==void 0:zn(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 O0(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 g2e(this,t)}}function Cu(e){if(zn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class RI extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class uc extends RI{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class vz extends RI{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="",g=!1,v=!1,y=!1,m=null,C=null,w=null,b=null,x=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,g=!0,(m||C)&&(v=!0),u=!0;break;case"anchor":m&&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),m=k,x===null&&(x=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,x===null&&(x=k.offset),a=!1,u=!1,y=!0;break}case n:(m||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:g,hasNewlineAfterProp:v,anchor:m,tag:C,end:_,start:x!=null?x:_}}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 wS(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 yz(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 _D="All mapping items must start at the same column";function v2e({composeNode:e,composeEmptyNode:t},n,r,o,s){var f,p;const i=(f=s==null?void 0:s.nodeClass)!=null?f:Wo,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,u=null;for(const g of r.items){const{start:v,key:y,sep:m,value:C}=g,w=Ld(v,{indicator:"explicit-key-ind",next:y!=null?y:m==null?void 0:m[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",_D)),!w.anchor&&!w.tag&&!m){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",_D);const x=w.end,E=y?e(n,y,w,o):t(n,x,v,null,w,o);n.schema.compat&&wS(r.indent,y,o),yz(n,l.items,E)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const _=Ld(m!=null?m:[],{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,m,null,_,o);n.schema.compat&&wS(r.indent,C,o),a=k.range[2];const I=new Xr(E,k);n.options.keepSourceTokens&&(I.srcToken=g),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=g),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 y2e({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:g}of r.items){const v=Ld(p,{indicator:"seq-item-ind",next:g,offset:a,onError:o,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||g)g&&g.type==="block-seq"?o(v.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{u=v.end,v.comment&&(l.comment=v.comment);continue}const y=g?e(n,g,v,o):t(n,v.end,p,null,v,o);n.schema.compat&&wS(r.indent,g,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 cC="Block collections are not allowed within flow collections",uC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function b2e({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?Wo: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 x=r.items[b],{start:E,key:_,sep:k,value:I}=x,T=Ld(E,{flow:l,indicator:"explicit-key-ind",next:_!=null?_:k==null?void 0:k[0],offset:p,onError:o,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!k&&!I){b===0&&T.comma?o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<r.items.length-1&&o(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),T.comment&&(u.comment?u.comment+=`
|
|
687
|
+
`+T.comment:u.comment=T.comment),p=T.end;continue}!i&&n.options.strict&&Ph(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)T.comma&&o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(T.comma||o(T.start,"MISSING_CHAR",`Missing , between ${l} items`),T.comment){let D="";e:for(const R of E)switch(R.type){case"comma":case"space":break;case"comment":D=R.source.substring(1);break e;default:break e}if(D){let R=u.items[u.items.length-1];Ln(R)&&(R=(w=R.value)!=null?w:R.key),R.comment?R.comment+=`
|
|
688
|
+
`+D:R.comment=D,T.comment=T.comment.substring(D.length+1)}}if(!i&&!k&&!T.found){const D=I?e(n,I,T,o):t(n,T.end,k,null,T,o);u.items.push(D),p=D.range[2],uC(I)&&o(D.range,"BLOCK_IN_FLOW",cC)}else{const D=T.end,R=_?e(n,_,T,o):t(n,D,E,null,T,o);uC(_)&&o(R.range,"BLOCK_IN_FLOW",cC);const A=Ld(k!=null?k:[],{flow:l,indicator:"map-value-ind",next:I,offset:R.range[2],onError:o,startOnNewline:!1});if(A.found){if(!i&&!T.found&&n.options.strict){if(k)for(const M of k){if(M===A.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}}T.start<A.found.offset-1024&&o(A.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(A.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const V=I?e(n,I,A,o):A.found?t(n,A.end,k,null,A,o):null;V?uC(I)&&o(V.range,"BLOCK_IN_FLOW",cC):A.comment&&(R.comment?R.comment+=`
|
|
689
|
+
`+A.comment:R.comment=A.comment);const j=new Xr(R,V);if(n.options.keepSourceTokens&&(j.srcToken=x),i){const M=u;yz(n,M.items,R)&&o(D,"DUPLICATE_KEY","Map keys must be unique"),M.items.push(j)}else{const M=new Wo(n.schema);M.flow=!0,M.items.push(j),u.items.push(M)}p=V?V.range[2]:A.end}}const g=i?"}":"]",[v,...y]=r.end;let m=p;if(v&&v.source===g)m=v.offset+v.source.length;else{const b=l[0].toUpperCase()+l.substring(1),x=f?`${b} must end with a ${g}`:`${b} in block collection must be sufficiently indented and end with a ${g}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",x),v&&v.source.length!==1&&y.unshift(v)}if(y.length>0){const b=em(y,m,n.options.strict,o);b.comment&&(u.comment?u.comment+=`
|
|
690
|
+
`+b.comment:u.comment=b.comment),u.range=[r.offset,m,b.offset]}else u.range=[r.offset,m,m];return u}function dC(e,t,n,r,o,s){const i=n.type==="block-map"?v2e(e,t,n,r,s):n.type==="block-seq"?y2e(e,t,n,r,s):b2e(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function w2e(e,t,n,r,o){var p,g;const s=r?t.directives.tagName(r.source,v=>o(r,"TAG_RESOLVE_FAILED",v)):null,i=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Wo.tagName&&i==="map"||s===Ta.tagName&&i==="seq"||!i)return dC(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),dC(e,t,n,o,s)}const a=dC(e,t,n,o,s,l),u=(g=(p=l.resolve)==null?void 0:p.call(l,a,v=>o(r,"TAG_RESOLVE_FAILED",v),t.options))!=null?g:a,f=rr(u)?u:new $t(u);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function bz(e,t,n){const r=e.offset,o=C2e(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?x2e(e.source):[];let l=i.length;for(let m=i.length-1;m>=0;--m){const C=i[m][1];if(C===""||C==="\r")l=m;else break}if(l===0){const m=o.chomp==="+"&&i.length>0?`
|
|
691
|
+
`.repeat(Math.max(1,i.length-1)):"";let C=r+o.length;return e.source&&(C+=e.source.length),{value:m,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,u=e.offset+o.length,f=0;for(let m=0;m<l;++m){const[C,w]=i[m];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=m;break}u+=C.length+w.length+1}for(let m=i.length-1;m>=l;--m)i[m][0].length>a&&(l=m+1);let p="",g="",v=!1;for(let m=0;m<f;++m)p+=i[m][0].slice(a)+`
|
|
692
|
+
`;for(let m=f;m<l;++m){let[C,w]=i[m];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+=g+C.slice(a)+w,g=`
|
|
693
|
+
`):C.length>a||w[0]===" "?(g===" "?g=`
|
|
694
|
+
`:!v&&g===`
|
|
695
|
+
`&&(g=`
|
|
696
|
+
|
|
697
|
+
`),p+=g+C.slice(a)+w,g=`
|
|
698
|
+
`,v=!0):w===""?g===`
|
|
699
|
+
`?p+=`
|
|
700
|
+
`:g=`
|
|
701
|
+
`:(p+=g+w,g=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let m=l;m<i.length;++m)p+=`
|
|
702
|
+
`+i[m][0].slice(a);p[p.length-1]!==`
|
|
703
|
+
`&&(p+=`
|
|
704
|
+
`);break;default:p+=`
|
|
705
|
+
`}const y=r+o.length+e.source.length;return{value:p,type:s,comment:o.comment,range:[r,y,y]}}function C2e({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,l="",a=-1;for(let g=1;g<o.length;++g){const v=o[g];if(!l&&(v==="-"||v==="+"))l=v;else{const y=Number(v);!i&&y?i=y:a===-1&&(a=e+g)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let u=!1,f="",p=o.length;for(let g=1;g<t.length;++g){const v=t[g];switch(v.type){case"space":u=!0;case"newline":p+=v.source.length;break;case"comment":n&&!u&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=v.source.length,f=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),p+=v.source.length;break;default:{const y=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",y);const m=v.source;m&&typeof m=="string"&&(p+=m.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function x2e(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 wz(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const u=(g,v,y)=>n(r+g,v,y);switch(o){case"scalar":l=$t.PLAIN,a=S2e(s,u);break;case"single-quoted-scalar":l=$t.QUOTE_SINGLE,a=P2e(s,u);break;case"double-quoted-scalar":l=$t.QUOTE_DOUBLE,a=k2e(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 S2e(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}`),Cz(e)}function P2e(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Cz(e.slice(1,-1)).replace(/''/g,"'")}function Cz(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 k2e(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}=E2e(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=I2e[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+=M2e(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 E2e(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 I2e={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
720
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function M2e(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 xz(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?bz(t,e.options.strict,r):wz(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,u=n&&a?_2e(e.schema,o,a,n,r):t.type==="scalar"?T2e(e,o,t,r):e.schema[Sl];let f;try{const p=u.resolve(o,g=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",g),e.options);f=Sn(p)?p:new $t(p)}catch(p){const g=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",g),f=new $t(o)}return f.range=l,f.source=o,s&&(f.type=s),a&&(f.tag=a),u.format&&(f.format=u.format),i&&(f.comment=i),f}function _2e(e,t,n,r,o){var l;if(n==="!")return e[Sl];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[Sl])}function T2e({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[Sl];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[Sl];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 $2e(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 R2e={composeNode:Sz,composeEmptyNode:OI};function Sz(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,u=!0;switch(t.type){case"alias":a=O2e(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=xz(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=w2e(R2e,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=OI(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 OI(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},u){const f={type:"scalar",offset:$2e(t,n,r),indent:-1,source:""},p=xz(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 O2e({options:e},{offset:t,source:n,end:r},o){const s=new S0(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 D2e(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?Sz(u,o,f,i):OI(u,f.end,r,null,f,i);const p=a.contents.range[2],g=em(s,p,!1,i);return g.comment&&(a.comment=g.comment),a.range=[n,p,g.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 TD(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 DI{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 vz(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}=TD(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(zn(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:TD(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=D2e(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 A2e(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 wz(e,t,r);case"block-scalar":return bz(e,t,r)}}return null}function L2e(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),g=l.substring(f+1)+`
|
|
730
|
+
`,v=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return Pz(v,a)||v.push({type:"newline",offset:-1,indent:r,source:`
|
|
731
|
+
`}),{type:"block-scalar",offset:s,indent:r,props:v,source:g}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function F2e(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">":N2e(e,a);break;case'"':fC(e,a,"double-quoted-scalar");break;case"'":fC(e,a,"single-quoted-scalar");break;default:fC(e,a,"scalar")}}function N2e(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}];Pz(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 Pz(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 fC(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 B2e=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 CS=Symbol("break visit"),z2e=Symbol("skip children"),kz=Symbol("remove item");function Fc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Ez(Object.freeze([]),e,t)}Fc.BREAK=CS;Fc.SKIP=z2e;Fc.REMOVE=kz;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 Ez(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=Ez(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===CS)return CS;l===kz&&(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 D0="\uFEFF",A0="",L0="",kh="",V2e=e=>!!e&&"items"in e,j2e=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function H2e(e){switch(e){case D0:return"<BOM>";case A0:return"<DOC>";case L0:return"<FLOW_END>";case kh:return"<SCALAR>";default:return JSON.stringify(e)}}function Iz(e){switch(e){case D0:return"byte-order-mark";case A0:return"doc-mode";case L0: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 U2e=Object.freeze(Object.defineProperty({__proto__:null,BOM:D0,DOCUMENT:A0,FLOW_END:L0,SCALAR:kh,createScalarToken:L2e,isCollection:V2e,isScalar:j2e,prettyToken:H2e,resolveAsScalar:A2e,setScalarValue:F2e,stringify:B2e,tokenType:Iz,visit:Fc},Symbol.toStringTag,{value:"Module"}));function bs(e){switch(e){case void 0:case" ":case`
|
|
738
|
+
`:case"\r":case" ":return!0;default:return!1}}const $D="0123456789ABCDEFabcdef".split(""),W2e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),pC=",[]{}".split(""),G2e=` ,[]{}
|
|
739
|
+
\r `.split(""),hC=e=>!e||G2e.includes(e);class Mz{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==="...")&&bs(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]===D0&&(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 A0,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==="---"&&bs(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&bs(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!bs(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===":")&&bs(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(hC)),"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("..."))&&bs(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield L0,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(hC)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||bs(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=>bs(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(bs(s)||t&&s===",")break;n=r}else if(bs(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&&pC.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&&pC.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(hC)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(bs(n)||t&&pC.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(;!bs(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(W2e.includes(n))n=this.buffer[++t];else if(n==="%"&&$D.includes(this.buffer[t+1])&&$D.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 _z{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 RD(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 Tz(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 OD(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,Tz(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 AI=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 Mz,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=Iz(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"&&OD(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&&RD(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":{RD(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(Tz(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);OD(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 $z(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new _z||null,prettyErrors:t}}function K2e(e,t={}){const{lineCounter:n,prettyErrors:r}=$z(t),o=new AI(n==null?void 0:n.addNewLine),s=new DI(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 Rz(e,t={}){const{lineCounter:n,prettyErrors:r}=$z(t),o=new AI(n==null?void 0:n.addNewLine),s=new DI(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 q2e(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=Rz(e,n);if(!o)return null;if(o.warnings.forEach(s=>J3(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 Y2e(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 DD=Object.freeze(Object.defineProperty({__proto__:null,Alias:S0,CST:U2e,Composer:DI,Document:pf,Lexer:Mz,LineCounter:_z,Pair:Xr,Parser:AI,Scalar:$t,Schema:O0,YAMLError:RI,YAMLMap:Wo,YAMLParseError:uc,YAMLSeq:Ta,YAMLWarning:vz,isAlias:Gc,isCollection:zn,isDocument:af,isMap:cf,isNode:rr,isPair:Ln,isScalar:Sn,isSeq:uf,parse:q2e,parseAllDocuments:K2e,parseDocument:Rz,stringify:Y2e,visit:_a,visitAsync:x0},Symbol.toStringTag,{value:"Module"}));var LI={},Q2e=et;Object.defineProperty(LI,"__esModule",{value:!0});var FI=LI.default=void 0,X2e=Q2e(tt()),Z2e=Ze(),J2e=(0,X2e.default)((0,Z2e.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");FI=LI.default=J2e;var NI={},eMe=et;Object.defineProperty(NI,"__esModule",{value:!0});var Oz=NI.default=void 0,tMe=eMe(tt()),nMe=Ze(),rMe=(0,tMe.default)((0,nMe.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");Oz=NI.default=rMe;var BI={},oMe=et;Object.defineProperty(BI,"__esModule",{value:!0});var xS=BI.default=void 0,sMe=oMe(tt()),iMe=Ze(),lMe=(0,sMe.default)((0,iMe.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");xS=BI.default=lMe;const aMe="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function cMe({file:e,anyMask:t,addToBar:n,statusApi:r}){var $,F,O;const M=e,{parent:o,children:s,isRoot:i,byMasks:l}=M,a=Ft(M,["parent","children","isRoot","byMasks"]),[u,f]=c.useState(a);c.useEffect(()=>{f(Object.assign(Hb(Uw,()=>null),a))},[e]);const p=c.useMemo(()=>{let N=e.parent;for(;N;){if(N.default!=null)return N.default;N=N.parent}},[e]),{source:g}=e,v=e.type==="folder",y=u.url!==void 0,m=g!==void 0,C=m&&v,w=Yo("lg"),b=!y&&(w||m),x=!y&&w||m&&!C,E=e.accept>""||v&&((F=e.can_upload)!=null?F:($=e.inherited)==null?void 0:$.can_upload),_=v,k=Zk(),{movingFile:I}=Wi(),{data:T,element:D}=Yn("get_accounts");if(D||!T)return D;const R=T.list,A=!m&&"Works only on folders with source! ",V={can_read:!y,can_see:!0,can_archive:!y,can_list:v,can_upload:v&&m,can_delete:v&&m};return c.createElement(Hc,{values:u,set(N,H){f(K=>{var Q;const te=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?I4(N):K.name;return at(xe({},K),{name:te,[H]:N})})},barSx:xe({gap:2,width:"100%"},k),stickyBar:!0,addToBar:[c.createElement(mn,{icon:Oz,disabled:i||I===e.id,title:"You can also use drag & drop to move items",onClick(){ln.movingFile=e.id,kt(c.createElement(ze,{},"Now that this is marked for moving, click on the destination folder, and then the paste button ",c.createElement(xS)),"info")}}),I&&c.createElement(mn,{icon:xS,disabled:e.type!=="folder"||e.id.startsWith(I)||e.id===I.replace(/[^/]+\/?$/,""),title:I,onClick(){return ln.movingFile="",Nz(I,e.id)}}),!i&&c.createElement(mn,{icon:Ml,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_vfs",{uris:[e.id]}).then(()=>$a())}),...Ub(n)],onError:kt,save:{sx:Zd(!qv(u,a)),onClick(){return ot(this,null,function*(){const N=nt.omit(u,["ctime","mtime","size","id"]);N.masks||(N.masks=null),yield ct("set_vfs",{uri:u.id,props:N}),N.name!==e.name&&(ln.selectedFiles[0].id=e.parent.id+N.name+(v?"/":"")),$a()})}},fields:[v&&m&&c.createElement(kr,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),i?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:m&&"You can decide a name that's different from the one on your disk"},y?{k:"url",label:"URL",lg:12,required:!0}:{k:"source",label:"Load content from disk",xl:!0,comp:Ap,files:!v,folders:v,placeholder:"no",helperText:u.source?"Content from this path will be listed, but you can also add more":"This field is empty, and thus this element is a virtual-folder. You can set this field, pointing at any folder/file on disk."},!y&&{k:"id",comp:uMe,statusApi:r,xs:12},j("can_read","Who can see but not download will be asked to login"),j("can_see","If you can't see, you may still download with a direct link"),j("can_archive","Should this be included when user downloads as ZIP",{lg:v?!0:12}),j("can_list","Permission to see content of folders",{contentText:"subfolders"}),j("can_delete",[A,"Those who can delete can also rename and cut/move"]),j("can_upload",A,{contentText:"subfolders"}),x&&{k:"size",comp:$p,lg:4,toField:Cl},b&&{k:"ctime",comp:$p,md:6,lg:x&&4,label:"Created",toField:Bx},b&&{k:"mtime",comp:$p,md:6,lg:x&&4,label:"Modified",toField:Bx},E&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:_?4:12,helperText:c.createElement(Ls,{href:aMe,target:"_blank"},"Example: .zip")},_&&{k:"default",comp:Dn,xl:!0,label:"Serve as website if index.html is found"+(p&&u.default==null?" (inherited)":""),value:(O=u.default)!=null?O:p,toField:Boolean,fromField:N=>N&&!p?"index.html":N?null:!1,helperText:Jn("...instead of showing list of files")},v&&{k:"masks",multiline:!0,toField:DD.stringify,fromField:N=>N?DD.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 j(N,H,K={}){var Q,X;if(!V[N])return null;const Y=[N,...jc(nt.map(V,(J,se)=>!J&&se))],te=nt.difference(Object.keys(Uw),Y);return xe({comp:Dz,k:N,lg:6,xl:4,parent:o,accounts:R,helperText:H,isDir:v,showInherited:t,otherPerms:te.map(J=>({value:J,label:"As "+SS(J)})),label:"Who can "+SS(N),inherit:(X=(Q=e.inherited)==null?void 0:Q[N])!=null?X:Uw[N],byMasks:l==null?void 0:l[N],fromField:J=>J!=null?J:null},K)}}function SS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function Dz(m){var C=m,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,showInherited:i,otherPerms:l,byMasks:a,hideValues:u,isChildren:f,isDir:p,contentText:g="folder content",setApi:v}=C,y=Ft(C,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const w=(a!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+AD(a!=null?a:r),b=Pde(e),x=b?e.this:e,E=c.useMemo(()=>jc([{value:null,label:w},{value:!0},{value:!1},{value:"*"},...l,{value:[],label:"Select accounts"}].map(T=>!(u!=null&&u.includes(T.value))&&(T.value===x||i||T.value!==r)&&xe({label:nt.capitalize(AD(T.value))},T))),[r,n,x]),_=500,k=Array.isArray(x);return c.createElement(ze,{sx:{borderRight:b?"8px solid #8884":void 0,transition:`all ${_}ms`}},c.createElement(Kr,at(xe({},y),{value:k?[]:x!=null?x:null,onChange(T,{event:D}){t(b?I(at(xe({},e),{this:T!=null?T:void 0})):T!=null?T:void 0,{was:e,event:D})},options:E})),c.createElement(Fv,{in:k,timeout:_},k&&c.createElement(n0,{label:o!=null&&o.length?"Accounts for "+y.label:"You didn't create any account yet",value:x,onChange:t,options:(o==null?void 0:o.map(T=>({value:T.username,label:T.username})))||[]})),c.createElement(qd,{},s,!f&&p&&c.createElement(la,{sx:{display:"block",mt:-.5},onClick(T){t(b?x:{this:x,children:x==null?!r:void 0},{was:e,event:T})}},b?"Different permission for ":"Same permission for ",g)),!f&&c.createElement(Fv,{in:b,timeout:_},c.createElement(Dz,{label:"Permission for "+g,parent:n,inherit:r,accounts:o,showInherited:i,otherPerms:l,isDir:p,value:b&&(e==null?void 0:e.children),isChildren:!0,hideValues:[x!=null?x:r,x],onChange(T,{event:D}){b&&t(I(at(xe({},e),{children:T})),{was:e,event:D})}})));function I(T){return T.this===T.children?T.this:T}}function AD(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+SS(e):"*UNKNOWN*"+JSON.stringify(e)}function uMe({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(()=>{var u,f;return i&&((f=(u=n.roots)==null?void 0:u.find(p=>Vde(i,p.host)))==null?void 0:f.root)},[n]);l&&e&&(e=e.indexOf(l)===1?e.slice(l.length):void 0);const a=Oi((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:FI,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),c.createElement(mn,{icon:VE,title:"Change",onClick(){Az().then(r)}}))}):"error")}function Az(){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}=Ro({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(Hk,{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(g=>c.createElement(Pr,{key:g,selected:g===s,onClick:()=>f(g)},g,g===s&&u))),c.createElement(Ui,{label:"Custom IP or domain",helperText:Jn(`You can type any address but *you* are responsible to make the address work.
|
|
760
|
+
This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:a,onChange:g=>f(Oi(l,g)),start:c.createElement(Kr,{value:l,onChange:g=>a?f(g+a):nr("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(Qo,{icon:Vh,children:"Save",onClick(){return ot(this,null,function*(){s!==n&&(yield ct("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(g){g.endsWith("/")&&(g=g.slice(0,-1)),i(g)}}})}))})}let PS;function dMe(){var x,E,_;const[e]=c.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=Wi(),{data:o,reload:s,element:i}=Yn("get_vfs");c.useMemo(()=>t||s(),[t,s]);const l=c.useMemo(()=>{let k=n[0];for(;k;)if(nt.isEmpty(k.masks))k=k.parent;else return!0},[n]),a="md",u=Yo(a),f=Yn("get_status"),{data:p}=f,g=c.useMemo(()=>{const k=p==null?void 0:p.baseUrl,I=(p==null?void 0:p.urls.https)||(p==null?void 0:p.urls.http);return k&&!I.includes(k)?[k,...I]:I},[p]);function v(){ln.selectedFiles=[]}const y=n.length?n.length===1?c.createElement(cMe,{addToBar:u&&[c.createElement(ze,{flex:1}),kS(n[0]),c.createElement(mn,{icon:zh,title:"Close",onClick:v})],anyMask:l,statusApi:f,file:n[0]}):c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(Kn,{variant:"h6"},n.length+" selected"),c.createElement(qn,{onClick:fMe,startIcon:c.createElement(Ml)},"Remove")),c.createElement(Nh,{dense:!0,disablePadding:!0},n.map(k=>c.createElement(uk,{key:k.id},c.createElement(Ri,{primary:k.name,secondary:k.source}))))):null,[m,C]=c.useState(()=>nt.noop);if(c.useEffect(()=>{var k;r===((k=n[0])==null?void 0:k.id)&&m()},[r,m]),c.useEffect(()=>{if(u||!y)return;const{close:k}=Ro({title:n.length>1?"Multiple selection":c.createElement(qr,{},kS(n[0]),n[0].name||"Home"),Content:()=>y,onClose:v});return C(()=>k),k},[u,n]),c.useEffect(()=>{if(ln.vfs=void 0,!o)return;e.clear();const{root:k}=o;if(!k)return;k.isRoot=!0,T(k),ln.vfs=k;const I=PS||ln.selectedFiles.map(D=>D.id);PS=void 0,ln.selectedFiles=jc(I.map(D=>e.get(D)));function T(D,R="/",A=void 0){if(D.parent=A,D.id=D.isRoot?"/":Oi(R,encodeURIComponent(D.name),D.type==="folder"?"/":""),e.set(D.id,D),!!D.children)for(const V of D.children)T(V,D.id,D)}},[o,e]),i)return e.clear(),i;const b=!((E=(x=o==null?void 0:o.root)==null?void 0:x.children)!=null&&E.length)&&!((_=o==null?void 0:o.root)!=null&&_.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:g&&{severity:"info",children:["Your shared files can be browsed from ",Qde(" or ",g.slice(0,3).map(k=>c.createElement(Ls,{href:k,target:"frontend"},k)))]};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"),b&&c.createElement(kr,b)),c.createElement(ri,{item:!0,[a]:6,lg:5,xl:4},c.createElement(Kn,{variant:"h6",mb:1},"Virtual File System"),c.createElement(zIe,{statusApi:f}),t&&c.createElement(pMe,{id2node:e,statusApi:f})),u&&y&&c.createElement(ri,{item:!0,[a]:!0,maxWidth:"100%"},c.createElement(Tb,{sx:{overflow:"initial"}},c.createElement($b,{},y))))}function $a(e){PS=e,ln.vfs=void 0}function fMe(){return ot(this,null,function*(){const e=ln.selectedFiles;if(e.length&&(yield xr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);nt.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 Lz=$3,Fz=O3;function pMe({id2node:e,statusApi:t}){const{vfs:n,selectedFiles:r}=Wi(),[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(I3,{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),ln.selectedFiles=jc(y.map(m=>e.get(m))))}},g(n));function p(v){return v!==void 0&&v!==!0}function g(v){var x,E,_,k;let{id:y,name:m,isRoot:C}=v;if(!y)debugger;const w=v.type==="folder";return c.createElement(fS,{ref(I){I==null||I.addEventListener("focusin",T=>T.stopImmediatePropagation())},label:c.createElement(ze,{draggable:!C,onDragStart(){a.current=y},onDragOver(I){if(!w)return;const T=a.current;T!=null&&T.startsWith(y)&&!T.slice(y.length+1).includes("/")||I.preventDefault()},onDrop(){return ot(this,null,function*(){const I=a.current;I&&(yield xr(`Moving ${I} under ${y}`))&&Nz(I,y)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},c.createElement(ze,{display:"flex",flex:0},kS(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(Ml,"Delete permission"),v.can_upload!==void 0&&Wr(Hh,"Upload permission"),!C&&!v.source&&!v.url&&Wr(L3,"Virtual (no source)"),p(v.can_see)&&Wr(D3,"Restrictions on who can see"),p(v.can_read)&&Wr(s0,"Restrictions on who can download"),v.default&&Wr(A3,"Act as website"),v.masks&&Wr(T3,"Masks"),v.size===-1&&Wr(F3,"Source not found"),Ma((E=(x=t.data)==null?void 0:x.roots)==null?void 0:E.find(I=>I.root===y.slice(1)),I=>I&&Wr(Ab,`home for ${I.host}`)))),C?"Home":(()=>{var R;const I=(R=v.parent)==null?void 0:R.source,{source:T}=v,D=I&&(T!=null&&T.startsWith(I))?"."+T.slice(I.length):T;return!D||!(T!=null&&T.endsWith(m))||D.length>45?c.createElement(ze,{lineHeight:"1.2em"},m):c.createElement("span",{},c.createElement("span",{style:{opacity:.4}},D.slice(0,-m.length)),D.slice(-m.length))})()),key:m,collapseIcon:c.createElement(_3,{onClick(I){l(i.filter(T=>T!==y)),I.preventDefault(),I.stopPropagation()}}),expandIcon:c.createElement(M3,{onClick(I){l([...i,y]),I.preventDefault(),I.stopPropagation()}}),nodeId:y},C&&!((_=v.children)!=null&&_.length)?c.createElement(fS,{nodeId:"?",label:c.createElement("i",{},"nothing here")}):(k=v.children)==null?void 0:k.map(g))}}function Nz(e,t){ct("move_vfs",{from:e,parent:t}).then(()=>{$a([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},kt)}function kS(e){return e.isRoot?Wr(Ab,"home, or root if you like"):e.type==="folder"?Wr(Lz,"Folder"):e.url?Wr(R3,"Web-link"):Wr(Fz,"File")}var LD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hMe(e,t){return!!(e===t||LD(e)&&LD(t))}function mMe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!hMe(e[n],t[n]))return!1;return!0}function mC(e,t){t===void 0&&(t=mMe);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 gMe=typeof performance=="object"&&typeof performance.now=="function",FD=gMe?function(){return performance.now()}:function(){return Date.now()};function ND(e){cancelAnimationFrame(e.id)}function vMe(e,t){var n=FD();function r(){FD()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var gC=-1;function BD(e){if(e===void 0&&(e=!1),gC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),gC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gC}var Su=null;function zD(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 yMe=150,bMe=function(t,n){return t};function wMe(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){wb(g,p);function g(y){var m;return m=p.call(this,y)||this,m._instanceProps=a(m.props,Ix(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:Ix(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=mC(function(C,w,b,x){return m.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:w,visibleStartIndex:b,visibleStopIndex:x})}),m._callOnScroll=void 0,m._callOnScroll=mC(function(C,w,b){return m.props.onScroll({scrollDirection:C,scrollOffset:w,scrollUpdateWasRequested:b})}),m._getItemStyle=void 0,m._getItemStyle=function(C){var w=m.props,b=w.direction,x=w.itemSize,E=w.layout,_=m._getItemStyleCache(u&&x,u&&E,u&&b),k;if(_.hasOwnProperty(C))k=_[C];else{var I=n(m.props,C,m._instanceProps),T=o(m.props,C,m._instanceProps),D=b==="horizontal"||E==="horizontal",R=b==="rtl",A=D?I:0;_[C]=k={position:"absolute",left:R?void 0:A,right:R?A:void 0,top:D?0:I,height:D?"100%":T,width:D?T:"100%"}}return k},m._getItemStyleCache=void 0,m._getItemStyleCache=mC(function(C,w,b){return{}}),m._onScrollHorizontal=function(C){var w=C.currentTarget,b=w.clientWidth,x=w.scrollLeft,E=w.scrollWidth;m.setState(function(_){if(_.scrollOffset===x)return null;var k=m.props.direction,I=x;if(k==="rtl")switch(zD()){case"negative":I=-x;break;case"positive-descending":I=E-b-x;break}return I=Math.max(0,Math.min(I,E-b)),{isScrolling:!0,scrollDirection:_.scrollOffset<x?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(C){var w=C.currentTarget,b=w.clientHeight,x=w.scrollHeight,E=w.scrollTop;m.setState(function(_){if(_.scrollOffset===E)return null;var k=Math.max(0,Math.min(E,x-b));return{isScrolling:!0,scrollDirection:_.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(C){var w=m.props.outerRef;m._outerRef=C,typeof w=="function"?w(C):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=C)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&ND(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=vMe(m._resetIsScrolling,yMe)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}g.getDerivedStateFromProps=function(m,C){return CMe(m,C),f(m),null};var v=g.prototype;return v.scrollTo=function(m){m=Math.max(0,m),this.setState(function(C){return C.scrollOffset===m?null:{scrollDirection:C.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(m,C){C===void 0&&(C="auto");var w=this.props,b=w.itemCount,x=w.layout,E=this.state.scrollOffset;m=Math.max(0,Math.min(m,b-1));var _=0;if(this._outerRef){var k=this._outerRef;x==="vertical"?_=k.scrollWidth>k.clientWidth?BD():0:_=k.scrollHeight>k.clientHeight?BD():0}this.scrollTo(s(this.props,m,C,E,this._instanceProps,_))},v.componentDidMount=function(){var m=this.props,C=m.direction,w=m.initialScrollOffset,b=m.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;C==="horizontal"||b==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},v.componentDidUpdate=function(){var m=this.props,C=m.direction,w=m.layout,b=this.state,x=b.scrollOffset,E=b.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var _=this._outerRef;if(C==="horizontal"||w==="horizontal")if(C==="rtl")switch(zD()){case"negative":_.scrollLeft=-x;break;case"positive-ascending":_.scrollLeft=x;break;default:var k=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-k-x;break}else _.scrollLeft=x;else _.scrollTop=x}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ND(this._resetIsScrollingTimeoutId)},v.render=function(){var m=this.props,C=m.children,w=m.className,b=m.direction,x=m.height,E=m.innerRef,_=m.innerElementType,k=m.innerTagName,I=m.itemCount,T=m.itemData,D=m.itemKey,R=D===void 0?bMe:D,A=m.layout,V=m.outerElementType,j=m.outerTagName,M=m.style,$=m.useIsScrolling,F=m.width,B=this.state.isScrolling,O=b==="horizontal"||A==="horizontal",N=O?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:T,key:R(Q,T),index:Q,isScrolling:$?B:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return c.createElement(V||j||"div",{className:w,onScroll:N,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:F,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},M)},c.createElement(_||k||"div",{children:te,ref:E,style:{height:O?"100%":X,pointerEvents:B?"none":void 0,width:O?X:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var C=this._getRangeToRender(),w=C[0],b=C[1],x=C[2],E=C[3];this._callOnItemsRendered(w,b,x,E)}}if(typeof this.props.onScroll=="function"){var _=this.state,k=_.scrollDirection,I=_.scrollOffset,T=_.scrollUpdateWasRequested;this._callOnScroll(k,I,T)}},v._getRangeToRender=function(){var m=this.props,C=m.itemCount,w=m.overscanCount,b=this.state,x=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),T=!x||E==="backward"?Math.max(1,w):1,D=!x||E==="forward"?Math.max(1,w):1;return[Math.max(0,k-T),Math.max(0,Math.min(C-1,I+D)),k,I]},g}(c.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var CMe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},xMe=wMe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,s,i){var l=t.direction,a=t.height,u=t.itemCount,f=t.itemSize,p=t.layout,g=t.width,v=l==="horizontal"||p==="horizontal",y=v?g:a,m=Math.max(0,u*f-y),C=Math.min(m,n*f),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>m+Math.floor(y/2)?m: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,g=f?u:s,v=Math.ceil((g+r-p)/l);return Math.max(0,Math.min(i-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function Bz({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:g,connecting:v,reload:y}=xl(a&&"get_ls",{path:i,files:n,fileMask:o});c.useEffect(()=>{C([]),b("")},[i]);const[m,C]=c.useState([]),[w,b]=c.useState(""),x=c.useMemo(()=>nt.debounce(M=>b(M)),[]),E=c.useMemo(()=>{const M=new RegExp(nt.escapeRegExp(w),"i");return $=>M.test($)},[w]),[_,k]=c.useState(0),I=c.useMemo(()=>p.filter(M=>E(M.n)),[p,E]),T=f.current?"":"/",D=f.current?"\\":"/",R=Ide(D,i),A=i.length<2;return c.createElement(c.Fragment,{},c.createElement(ze,{display:"flex",gap:1},c.createElement(qn,{title:"root",disabled:A,onClick(){l(T)}},c.createElement(w3)),c.createElement(qn,{disabled:A,title:"parent folder",onClick(){const M=/[\\/]$/.test(i)?i.slice(0,-1):i,$=Fde(M)?T:M.slice(0,M.lastIndexOf(D)||1);l($)}},c.createElement(UE)),c.createElement(Ui,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(M){return ot(this,null,function*(){if(!M)return l(T);const $=yield ct("resolve_path",{path:M});if($.isFolder===!1)return n?e([M]):l(M.slice(0,-I4(M)));l($.path)})}})),g?c.createElement(kr,{severity:"error"},l5(g)):c.createElement(c.Fragment,{},c.createElement(ze,{ref(M){if(!M)return;const $=(M==null?void 0:M.clientHeight)-1;$-_>1&&k($)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?c.createElement(xMe,{width:"100%",height:_,itemSize:46,itemCount:I.length,overscanCount:5,children({index:M,style:$}){const F=I[M],B=F.k==="d";return c.createElement(Pr,{style:at(xe({},$),{padding:0}),key:F.n,onClick(){B?l(R+F.n):e([R+F.n])}},t&&c.createElement(LN,{checked:m.includes(F.n),disabled:!r&&B,onClick(O){const N=F.n,H=m.filter(K=>K!==N);C(H.length<m.length?H:[...m,N]),O.stopPropagation()}}),c.createElement(pl,{},c.createElement(F.k?Lz:Fz)),c.createElement(Ri,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},F.n),!B&&F.s!==void 0&&c.createElement(Kn,{variant:"body2",color:"text.secondary",ml:4,mr:1},Cl(F.s)))}}):c.createElement(jh,{flex:1,mt:"4em"},v?n5():"No elements in this folder")),c.createElement(qr,{alignItems:"stretch"},(t||r||!n)&&c.createElement(qn,{variant:"contained",disabled:!i||!r&&!m.length&&n,sx:{minWidth:"max-content"},onClick(){e(m.length?m.map(M=>R+M):[i])}},n&&(m.length||!r)?`Select (${m.length})`:"Select this folder"),c.createElement(Na,{size:"small",value:w,label:`Filter results (${I.length}${I.length<p.length?"/"+p.length:""})`,onChange(M){x(M.target.value)},sx:{flex:1}}),c.createElement(mn,{icon:b3,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return ot(this,null,function*(){const M=yield Jk("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=Yo("md");return c.createElement(Ui,at(xe({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
|
|
761
|
+
`)&&p,InputProps:{multiline:!0,endAdornment:c.createElement(wl,{position:"end"},c.createElement(mn,{icon:y3,title:"Browse files...",edge:"end",onClick(){const{close:p}=Ro({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(Bz,{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 m=(C=yield ct("get_cwd"))==null?void 0:C.path;y.startsWith(m)&&(y=y.slice(m.length+1)||"."),t(y,{was:e,event:"picker"}),p()})}})}})}}))}}))}var zI={},SMe=et;Object.defineProperty(zI,"__esModule",{value:!0});var rv=zI.default=void 0,PMe=SMe(tt()),kMe=Ze(),EMe=(0,PMe.default)((0,kMe.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=zI.default=EMe;var VI={},IMe=et;Object.defineProperty(VI,"__esModule",{value:!0});var zz=VI.default=void 0,MMe=IMe(tt()),_Me=Ze(),TMe=(0,MMe.default)((0,_Me.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");zz=VI.default=TMe;var jI={},$Me=et;Object.defineProperty(jI,"__esModule",{value:!0});var Vz=jI.default=void 0,RMe=$Me(tt()),OMe=Ze(),DMe=(0,RMe.default)((0,OMe.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");Vz=jI.default=DMe;var HI={},AMe=et;Object.defineProperty(HI,"__esModule",{value:!0});var jz=HI.default=void 0,LMe=AMe(tt()),FMe=Ze(),NMe=(0,LMe.default)((0,FMe.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");jz=HI.default=NMe;function BMe(){var k,I,T,R;const e=" — ",{username:t}=Wi(),{data:n,reload:r,element:o}=Yn("get_status"),{data:s}=Yn("get_vfs"),{data:i}=Yn(t&&"get_account"),l=Yn("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:a}=xl("get_plugins"),[u,f]=c.useState(!1),{list:p}=xl(u&&"get_plugin_updates"),[g,v]=c.useState();if(o||!n)return o;const{http:y,https:m}=n,C=!(y!=null&&y.listening)&&(m!=null&&m.listening)?"s":"",w=C?m:(y==null?void 0:y.listening)&&y,b=w&&`http${C}://`+window.location.hostname+(w.port===(C?443:80)?"":":"+w.port),x=nt.pick(n,["http","https"]),E=Hb(x,A=>A.busy?[`port ${A.port} already used by ${A.busy}${e}choose a `,Eg("different port"),` or stop ${A.busy}`]:A.error),_=E&&jc(Object.entries(E).map(([A,V])=>V&&[Jn(`Protocol <u>${A}</u> cannot work: `),V,(F0(V)||WI(V))&&[e,c.createElement(la,{onClick(){MS().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(A=>oo("error",ch(A)))):oo("success","Server is working"),s?!((I=(k=s.root)==null?void 0:k.children)!=null&&I.length)&&!((T=s.root)!=null&&T.source)?oo("warning","You have no files shared",e,VMe("add some")):oo("",Jn("This is Admin-panel, where you manage your server. Access your files on "),c.createElement(Ls,{target:"frontend",href:"../.."},"Front-end",c.createElement(Vz,{sx:{verticalAlign:"sub",ml:".2em"}}))):c.createElement(zv),!b&&oo("warning","Frontend unreachable: ",nt.map(E,(A,V)=>V+" "+(A?"is in error":"is off")).join(", "),!_.length&&[e,Eg("switch http or https on")]),a.find(A=>A.badApi)&&oo("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&oo("",Jn("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",c.createElement(o0,{to:"accounts"},Jn("create an account with *admin* permission"))),ES(l,n)&&oo("warning",ES(l,n),e,Eg("set the number of proxies"),e,"unless you are sure and you can ",c.createElement(qn,{size:"small",onClick(){return ot(this,null,function*(){(yield xr("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")),(((R=l.data)==null?void 0:R.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",{},Jn("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:jb+"discussions"},"Get support")),p.length>0&&oo("success","Updates available for plugin(s): "+p.map(A=>A.id).join(", ")),n.updatePossible==="local"?c.createElement(Qo,{icon:rv,onClick:()=>VD()},"Update from local file"):g?Ma(nt.find(g,"isNewer"),A=>!g.length||!n.updatePossible&&!A?oo("","No update available"):A&&!n.updatePossible?oo("success",`Version ${A.name} available`):c.createElement(qr,{vert:!0},g.map(V=>c.createElement(qr,{key:V.name,alignItems:"flex-start",flexWrap:"wrap"},c.createElement(Tb,{},c.createElement($b,{},c.createElement(Qo,at(xe({icon:rv},!V.isNewer&&{color:"warning",variant:"outlined"}),{onClick:()=>VD(V.tag_name)}),Oi("Install ",V.name,V.isNewer?"":" (older)")),c.createElement(ze,{mt:1},zMe(V.body)))))))):c.createElement(Qo,{variant:"outlined",icon:rv,onClick(){return f(!0),ct("check_update").then(A=>v(A.options),kt)}},"Check for updates"))}function zMe(e){return Jn(e,{onText:t});function t(n){return Xk(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>c.createElement(Ls,{href:jb+"issues/"+r[1],target:"_blank"},c.createElement(jz,{sx:{verticalAlign:"bottom"}})))}}function VD(e){return ot(this,null,function*(){if(!(yield xr("Installation may take less than a minute, depending on the speed of your server")))return;nr("Downloading"),yield ct("update",{tag:e}),nr("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(),a5(ln,"loginRequired",()=>ln.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:zz,info:Xv,"":Xv,warning:t0,error:e0}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function VMe(e="File System page"){return c.createElement(o0,{to:"fs"},e)}function Eg(e="Options page"){return c.createElement(o0,{to:"options"},e)}function ES(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var Hz={},jMe=sn&&sn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=sn&&sn.__assign||function(){return wr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wr.apply(this,arguments)},HMe=sn&&sn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),UMe=sn&&sn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),WMe=sn&&sn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&HMe(t,e,n);return UMe(t,e),t},GMe=sn&&sn.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(Hz,"__esModule",{value:!0});var Xf=WMe(c),KMe=13,qMe=9,YMe=8,QMe=89,Ig=90,XMe=77,jD=57,HD=219,UD=222,WD=192,ZMe=27,GD=100,JMe=3e3,e_e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),vC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ov="npm__react-simple-code-editor__textarea",t_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
|
+
`),n_e=function(e){jMe(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>GD){var g=p-GD;n._history.stack=u.slice(g,p),n._history.offset=Math.max(n._history.offset-g,0)}}var v=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&v-y.timestamp<JMe){var m=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(y.value,y.selectionStart).pop())===null||s===void 0?void 0:s.match(m),w=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(m);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===ZMe&&r.currentTarget.blur();var u=r.currentTarget,f=u.value,p=u.selectionStart,g=u.selectionEnd,v=(i?" ":" ").repeat(s);if(r.keyCode===qMe&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(f,p),m=y.length-1,C=n._getLines(f,g).length-1,w=f.split(`
|
|
789
|
+
`).map(function(V,j){return j>=m&&j<=C&&V.startsWith(v)?V.substring(v.length):V}).join(`
|
|
790
|
+
`);if(f!==w){var b=y[m];n._applyEdits({value:w,selectionStart:b!=null&&b.startsWith(v)?p-v.length:p,selectionEnd:g-(f.length-w.length)})}}else if(p!==g){var y=n._getLines(f,p),x=y.length-1,E=n._getLines(f,g).length-1,b=y[x];n._applyEdits({value:f.split(`
|
|
791
|
+
`).map(function(M,$){return $>=x&&$<=E?v+M:M}).join(`
|
|
792
|
+
`),selectionStart:b&&/\S/.test(b)?p+v.length:p,selectionEnd:g+v.length*(E-x+1)})}else{var _=p+v.length;n._applyEdits({value:f.substring(0,p)+v+f.substring(g),selectionStart:_,selectionEnd:_})}else if(r.keyCode===YMe){var k=p!==g,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(g),selectionStart:_,selectionEnd:_})}}else if(r.keyCode===KMe){if(p===g){var T=n._getLines(f,p).pop(),D=T==null?void 0:T.match(/^\s+/);if(D!=null&&D[0]){r.preventDefault();var R=`
|
|
793
|
+
`+D[0],_=p+R.length;n._applyEdits({value:f.substring(0,p)+R+f.substring(g),selectionStart:_,selectionEnd:_})}}}else if(r.keyCode===jD||r.keyCode===HD||r.keyCode===UD||r.keyCode===WD){var A=void 0;r.keyCode===jD&&r.shiftKey?A=["(",")"]:r.keyCode===HD?r.shiftKey?A=["{","}"]:A=["[","]"]:r.keyCode===UD?r.shiftKey?A=['"','"']:A=["'","'"]:r.keyCode===WD&&!r.shiftKey&&(A=["`","`"]),p!==g&&A&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+A[0]+f.substring(p,g)+A[1]+f.substring(g),selectionStart:p,selectionEnd:g+2}))}else(vC?r.metaKey&&r.keyCode===Ig:r.ctrlKey&&r.keyCode===Ig)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(vC?r.metaKey&&r.keyCode===Ig&&r.shiftKey:e_e?r.ctrlKey&&r.keyCode===QMe:r.ctrlKey&&r.keyCode===Ig&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===XMe&&r.ctrlKey&&(!vC||r.shiftKey)&&(r.preventDefault(),n.setState(function(V){return{capture:!V.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,s=o.value,i=o.selectionStart,l=o.selectionEnd;n._recordChange({value:s,selectionStart:i,selectionEnd:l},!0),n.props.onValueChange(s)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,s=r.style,i=r.padding,l=r.highlight,a=r.textareaId,u=r.textareaClassName,f=r.autoFocus,p=r.disabled,g=r.form,v=r.maxLength,y=r.minLength,m=r.name,C=r.placeholder,w=r.readOnly,b=r.required,x=r.onClick,E=r.onFocus,_=r.onBlur,k=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,T=GMe(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"]),D={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},R=l(o);return Xf.createElement("div",wr({},T,{style:wr(wr({},Zf.container),s)}),Xf.createElement("pre",wr({className:I,"aria-hidden":"true",style:wr(wr(wr({},Zf.editor),Zf.highlight),D)},typeof R=="string"?{dangerouslySetInnerHTML:{__html:R+"<br />"}}:{children:R})),Xf.createElement("textarea",{ref:function(A){return n._input=A},style:wr(wr(wr({},Zf.editor),Zf.textarea),D),className:ov+(u?" ".concat(u):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:k,onFocus:E,onBlur:_,disabled:p,form:g,maxLength:v,minLength:y,name:m,placeholder:C,readOnly:w,required:b,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Xf.createElement("style",{dangerouslySetInnerHTML:{__html:t_e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Xf.Component),r_e=Hz.default=n_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 UI=c.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Ft(o,["style"]);return c.createElement(r_e,xe({highlight:Bde,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 o_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,at(xe({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:s_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),Gb(u)==="Enter")return e(l,{was:t,event:u});if(!u.altKey||u.key!=="Tab")return;u.preventDefault();const f=document.querySelectorAll(j4),p=nt.indexOf(f,u.target),g=f.length,v=(p+(u.shiftKey?-1:1)+g)%g;f[v].focus(),console.debug(f[v])}}))}const s_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(UI,at(xe({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){Gb(s)==="Enter"&&s.preventDefault()}})))});let xa,IS;const Uz=Nk({changes:{}});Bk(ln,e=>{e.some(t=>t[1][0]==="config")&&Wz()});const yy={log:"Access",error_log:"Access error",console:"Console"},KD=Ui;function i_e(){var y;const{data:e,reload:t,element:n}=Yn("get_config",{omit:["vfs"]}),r=Wi(),{changes:o}=zk(Uz),s=Yn(e&&"get_status"),i=s.data,l=IS=s.reload;c.useEffect(()=>void l(),[e]),c.useEffect(()=>()=>IS=void 0,[]);const a=Yo("sm"),u=(y=Yn("get_admins").data)==null?void 0:y.list;if(n)return n;if(s.error)return s.element;const f=xa!==e?ln.config=xa=e:r.config,p={comp:Ss,min:1,unit:"KB/s",placeholder:"no limit",md:6},g=f.https_port>=0;return c.createElement(Hc,{sx:{maxWidth:"60em"},values:f,set(m,C){ln.config[C]=m},stickyBar:!0,onError:kt,save:{onClick:v,sx:Zd(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[c.createElement(qn,{onClick(){t(),l()},startIcon:c.createElement(Fb)},"Reload"),c.createElement(qn,{component:TP,to:"/edit",startIcon:c.createElement(FE)},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(m){return m>=0&&!g&&!f.cert&&MS().then(),m}},i&&{k:"listen_interface",comp:Kr,md:4,options:[{label:"any",value:""},"127.0.0.1","::1",...i==null?void 0:i.ips]},g&&f.port>=0&&{k:"force_https",comp:Dn,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},g&&{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,m=>F0(m)&&(i.https.listening?m:[m," - ",c.createElement(la,{key:"fix",onClick:MS},"make one")]))},g&&xe({k:"private_key",comp:Ap,md:4,label:"HTTPS private key file"},Ma(i==null?void 0:i.https.error,m=>WI(m)?{error:!0,helperText:m}: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:l_e},{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:m=>!m&&(u==null?void 0:u.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},at(xe({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),at(xe({k:"max_kbps_per_ip"},p),{label:"Limit output per-ip"}),{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:Ss,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Ss,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:Ss,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Ss,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:KD,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,...nt.range(1250,1257),10029,20866,21866]},{k:"proxies",comp:Ss,min:0,max:9,label:"How many HTTP proxies between this server and users?",error:ES(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:m,id:C})=>c.createElement("code",{},m,m==="*"&&C<nt.size(f.mime)-1&&Wr(t0,Jn("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:m=>m==="auto"?"":m,fromField:m=>m?m.toLowerCase():"auto",helperText:"Leave empty to get automatic value"}],toField:m=>Object.entries(m||{}).map(([C,w])=>({k:C,v:w})),fromField:m=>Object.fromEntries(m.map(C=>[C.k,C.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:o_e,sm:12,getError:m=>Tde(()=>new Function(m)&&null,C=>C.message),helperText:Jn(`This code works similarly to [a plugin](${jb}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:KD,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:Ss,xs:6,sm:4,min:0,max:bde,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Kr,xs:6,sm:4,options:Cde},{k:"sort_by",comp:Kr,xs:6,sm:4,options:wde},{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 v(){return ot(this,null,function*(){var D,R;if(nt.isEmpty(o))return nr("Nothing to save");const m=window.location,C=["port","https_port"];if(C.every(A=>o[A]!==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 w=[(D=i==null?void 0:i.http)==null?void 0:D.listening,(R=i==null?void 0:i.https)==null?void 0:R.listening],b=location.protocol==="https:";b&&(C.reverse(),w.reverse());const x=o[C[0]],E=f[C[1]],_=E>0&&w[1],k=b?"http":"https";if(x<0&&!_)return kt("You cannot switch off this port unless you have a working fixed port for "+k,"warning");if(x===0&&!_)return kt("You cannot randomize this port unless you have a working fixed port for "+k,"warning");if(x>0&&!(yield xr("You are changing the port and you may be disconnected")))return;const I="cert"in o||"private_key"in o;if(b&&I&&!(yield xr("You may disrupt https service, kicking you out")))return;if(yield ct("set_config",{values:o}),x!==void 0||o.listen_interface&&!(m.hostname==="localhost"&&Nde(o.listen_interface))){yield kt("You are being redirected but in some cases this may fail. Hold on tight!","warning");const A=T4(o.listen_interface||m.hostname);return window.location.href=x<=0?`${b?"http:":"https:"}//${A}:${E}${m.pathname}`:`${m.protocol}//${A}:${x||f[C[0]]}${m.pathname}`}const T="port"in o||"https_port"in o;setTimeout(l,T||I?1e3:0),Object.assign(xa,o),Wz(),nr("Changes applied","success")})}}function Wz(){const e={};if(ln.config)for(const[t,n]of Object.entries(ln.config))JSON.stringify(n)!==JSON.stringify(xa==null?void 0:xa[t])&&(e[t]=n);Uz.changes=e}function F0(e){return/certificate/.test(e)}function WI(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&&(F0(f)||WI(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(Ss,{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 l_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(Ui,{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 MS(){return ot(this,null,function*(){return new Promise(e=>{const{close:t}=Ro({icon:AE,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(o0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),c.createElement(ze,{},"If you don't have a domain ",c.createElement(la,{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=t5();try{yield Bh(50);const o=yield ct("save_pem",yield a_e({}));r(),yield ct("set_config",{values:o}),xa&&Object.assign(xa,o),setTimeout(IS,1e3),Object.assign(ln.config,o),t(),yield kt("Certificate saved","success")}finally{r()}})}})})}function a_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 GI={},c_e=et;Object.defineProperty(GI,"__esModule",{value:!0});var Gz=GI.default=void 0,u_e=c_e(tt()),d_e=Ze(),f_e=(0,u_e.default)((0,d_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");Gz=GI.default=f_e;function p_e(){const[e,t]=c.useState(0),n=Dde(yy),{pause:r,pauseButton:o}=s5(),[s,i]=i5(a=>({title:a?"hide APIs":"show APIs",icon:Gz,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Yo("sm")&&{error_log:"Errors"};return c.createElement(c.Fragment,{},c.createElement(qr,{gap:0},c.createElement(hk,{value:e,onChange(a,u){t(u)}},n.map(a=>c.createElement(Hv,{label:nt.get(l,a)||yy[a],key:a}))),c.createElement(ze,{flex:1}),i,o),c.createElement(h_e,{key:e,pause:r,showApi:s,file:n[e]}))}function h_e({file:e,pause:t,showApi:n}){const{list:r,error:o,connecting:s}=xl("get_log",{file:e},{invert:!0,pause:t,map(l){var u;const{extra:a}=l;return l.notes=a!=null&&a.dl?"fully downloaded":a!=null&&a.ul?"uploaded "+Cl(a.size):l.status===Xd&&((u=l.uri)!=null&&u.startsWith(ju+"loginSrp"))?"login failed"+Oi(`:
|
|
794
|
+
`,a==null?void 0:a.u):l.notes,l}}),i={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:l})=>new Date(l),renderCell:({value:l})=>c.createElement(c.Fragment,{},l.toLocaleDateString(),c.createElement("br"),l.toLocaleTimeString())};return c.createElement(qh,{error:o,loading:s,rows:c.useMemo(()=>n?r:r.filter(l=>!l.uri.startsWith(ju)),[r,n]),compact:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[i,{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:l})=>l!=="log"&&l}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user"}},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"lg"},i,{field:"method",headerName:"Method",width:80,hideUnder:"lg"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"lg"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:l})=>Cl(l)},{headerName:"Agent",hideUnder:"xl",field:"extra",valueGetter:({value:l})=>l==null?void 0:l.ua,renderCell:({value:l})=>l&&Kz(l)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap",renderCell:({value:l})=>l&&Jn(l)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:l,row:a})=>{var v,y;if((v=a.extra)!=null&&v.ul)return(y=a.extra)==null?void 0:y.ul;if(l=decodeURIComponent(l),!l.startsWith(ju))return l;const u=ju.length,f=l.indexOf("?",u),p=l.slice(u,f>0?f:1/0),g=f<0?"":Array.from(new URLSearchParams(l.slice(f))).map(m=>{var C;return`${m[0]}=${(C=Ode(m[1]))!=null?C:m[1]}`}).join(" ; ");return`API ${p} ${g}`}}]})}function Kz(e){const t=jde(e),n=s(t,{Chrome:"https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg",Chromium:"https://upload.wikimedia.org/wikipedia/commons/f/fe/Chromium_Material_Icon.svg",Firefox:"https://upload.wikimedia.org/wikipedia/commons/a/a0/Firefox_logo%2C_2019.svg",Safari:"https://upload.wikimedia.org/wikipedia/commons/5/52/Safari_browser_logo.svg",Edge:"https://upload.wikimedia.org/wikipedia/commons/f/f6/Edge_Logo_2019.svg",Opera:"https://upload.wikimedia.org/wikipedia/commons/4/49/Opera_2015_icon.svg"}),r=nt.findKey(m_e,i=>i.test(e)),o=r&&{linux:"🐧",win:"⊞",mac:"",ios:""}[r];return c.createElement(Il,{title:e,children:c.createElement("span",{},n||t," ",o)});function s(i,l){const a=l[i];return a&&c.createElement("img",{src:a,style:{height:"1em",verticalAlign:"text-bottom",marginRight:".2em"}})}}const m_e={mac:/Mac OS/,ios:/iPhone OS/,win:/Windows NT/,linux:/Linux/};function g_e(){return c.createElement(c.Fragment,{},c.createElement(y_e),c.createElement(C_e))}const v_e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function y_e(){const{data:e,element:t}=Yn("get_status"),{data:n}=Gde("get_connection_stats");e&&n&&Object.assign(e,n);const r=Yo("xl"),o=Yo("md"),s=Yo("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:Cl,minWidth:"4em"}),s&&i("got",{render:Cl,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 g=nt.get(e,a);if(g===void 0)return null;typeof g=="string"&&v_e.test(g)&&(g=new Date(g).toLocaleString());let v;return p&&(g=p(g),Array.isArray(g)&&([g,v]=g)),u||(u=nt.capitalize(a.replaceAll("_"," "))),c.createElement(Pb,{variant:"filled",color:v,label:c.createElement(c.Fragment,{},c.createElement("b",{},u),": ",c.createElement("span",{style:{display:"inline-block",minWidth:f}},g))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function b_e({code:e,ip:t,def:n}){const{data:r}=qg(e===void 0&&t&&w_e,t,{delay:100});e||(e=r||"");const o=e&&nt.find(_B,{code:e});return o?c.createElement(Il,{title:o.name,children:c.createElement("span",{},o.flag," ",e)}):c.createElement(c.Fragment,{},n)}function w_e(e){return ot(this,null,function*(){return(yield ct("ip_country",{ips:e})).codes})}function C_e(){var u;const{list:e,error:t,props:n}=xl("get_connections"),r=Yn("get_config",{only:[br.geo_enable]}),[o,s]=c.useState(!0),{pause:i,pauseButton:l}=s5(),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})=>T4(p)+" :"+f.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((u=r.data)==null?void 0:u[br.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:f,row:p})=>c.createElement(b_e,{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(m5,{sx:{mr:1}}),p.archive,c.createElement(ze,{ml:2,color:"text.secondary"},f));if(!p.op)return c.createElement(ze,{},f,c.createElement(ze,{fontSize:"x-small"},"browsing"));const g=f==null?void 0:f.lastIndexOf("/");return c.createElement(c.Fragment,{},c.createElement(r5,{icon:p.op==="upload"?Hh:pE,progress:(v=p.opProgress)!=null?v:p.opOffset,offset:p.opOffset,addTitle:p.opTotal&&c.createElement("div",{},"Total: "+Cl(p.opTotal)),sx:{mr:1}}),c.createElement(ze,{},f.slice(g+1),g>0&&c.createElement(ze,{ml:2,fontSize:"x-small",color:"text.secondary"},f.slice(0,g))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:f,row:p})=>_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})=>Cl(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(s0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:f})=>Kz(f)}],actionsProps:{hideUnder:"sm"},actions:({row:f})=>[c.createElement(mn,{icon:p5,title:"Disconnect",onClick:()=>ct("disconnect",nt.pick(f,["ip","port"])).then(()=>nr("Disconnection requested"))}),c.createElement(mn,{icon:h5,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>x_e(f.ip)})]}))}function x_e(e){return Ppe("block",t=>[...t,{ip:e}])}function _S(e){return e===void 0?"":Ede(e*1e3,{digits:1})}var KI={},S_e=et;Object.defineProperty(KI,"__esModule",{value:!0});var qz=KI.default=void 0,P_e=S_e(tt()),k_e=Ze(),E_e=(0,P_e.default)((0,k_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");qz=KI.default=E_e;var qI={},I_e=et;Object.defineProperty(qI,"__esModule",{value:!0});var YI=qI.default=void 0,M_e=I_e(tt()),__e=Ze(),T_e=(0,M_e.default)((0,__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");YI=qI.default=T_e;var QI={},$_e=et;Object.defineProperty(QI,"__esModule",{value:!0});var Yz=QI.default=void 0,R_e=$_e(tt()),O_e=Ze(),D_e=(0,R_e.default)((0,O_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");Yz=QI.default=D_e;var XI={},A_e=et;Object.defineProperty(XI,"__esModule",{value:!0});var Qz=XI.default=void 0,L_e=A_e(tt()),F_e=Ze(),N_e=(0,L_e.default)((0,F_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");Qz=XI.default=N_e;var ZI={},B_e=et;Object.defineProperty(ZI,"__esModule",{value:!0});var Xz=ZI.default=void 0,z_e=B_e(tt()),V_e=Ze(),j_e=(0,z_e.default)((0,V_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");Xz=ZI.default=j_e;var JI={},H_e=et;Object.defineProperty(JI,"__esModule",{value:!0});var Zz=JI.default=void 0,U_e=H_e(tt()),YD=Ze(),W_e=(0,U_e.default)([(0,YD.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,YD.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");Zz=JI.default=W_e;function G_e({account:e,done:t,groups:n,addToBar:r,reload:o}){const[s,i]=c.useState(e),[l,a]=c.useState([]);c.useEffect(()=>{var v,y;i(e),a(n.filter(m=>m!==e.username)),Ofe()||(y=(v=p.current)==null?void 0:v.querySelector("input"))==null||y.focus()},[JSON.stringify(e)]);const u=!e.username,f=!s.hasPassword,p=c.useRef();return c.createElement(Hc,{formRef:p,values:s,set(v,y){i(m=>at(xe({},m),{[y]:v}))},barSx:xe({gap:2,width:"100%"},Zk()),stickyBar:!0,addToBar:[!u&&c.createElement(mn,{icon:Ml,title:"Delete",confirm:"Delete?",onClick:()=>ct("del_account",{username:e.username}).then(o)}),c.createElement(mn,{icon:Zz,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ct("invalidate_sessions",{username:e.username}).then(o)}),...Ub(r)],fields:[{k:"username",label:f?"Group name":void 0,autoComplete:"off",required:!0,xl:f?12:4,getError:v=>v!==e.username&&ct("get_account",{username:v}).then(y=>(y==null?void 0:y.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!f&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:u,label:u?"Password":"Change password"},!f&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:y})=>(v||"")!==(y.password||"")&&"Enter same password"},{k:"disabled",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Enabled",xs:12,sm:6,xl:8,helperText:"Login is prevented if account is disabled, or if all its groups are disabled"},{k:"ignore_limits",comp:Dn,xs:"auto",helperText:s.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},xe({k:"admin",comp:Dn,fromField:v=>v||null,label:"Admin-panel access",xs:12,sm:6,xl:8,helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"disable_password_change",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Allow password change",xs:"auto"},f&&c.createElement(kr,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:n0,label:"Inherit from groups",options:l,helperText:"Specify groups to inherit permissions from"+(f?". A group can inherit from another group":"")+(l.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:kt,save:{sx:Zd(!qv(s,e)),onClick(){return ot(this,null,function*(){const E=s,{password:v="",password2:y,adminActualAccess:m,hasPassword:C}=E,w=Ft(E,["password","password2","adminActualAccess","hasPassword"]),{username:b}=s;if(u){const _=yield ct("add_account",w);if(v)try{yield TS(b,v)}catch(k){throw ct("del_account",{username:b}).then(),k}t(_==null?void 0:_.username),nr("Account created","success");return}const x=yield ct("set_account",{username:e.username,changes:w});v&&(yield TS(b,v)),setTimeout(()=>nr("Account modified","success"),1),t(x==null?void 0:x.username)})}}})}function TS(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!==dde)throw o;return ct("change_password_others",{username:e,newPassword:t})})})}const yC={fieldSeparator:",",lineSeparator:`
|
|
795
|
+
`,quote:'"'},Mg={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class QD extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class K_e{constructor(t=yC){yi(this,"_rows",[]);yi(this,"_row",[]);yi(this,"_cell","");yi(this,"_options",yC);yi(this,"_state",xe({},Mg));yi(this,"_index",0);yi(this,"_current","");yi(this,"_previous","");yi(this,"_quoteState",xe({},Mg));this._options=Object.assign({},yC,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 QD(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 QD(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 q_e(e){return ot(this,null,function*(){U4(t=>ot(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield W4(n);if(!r)return;const s=new K_e().parse(r.trim()),i={comp:Ss,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 g=s[p.skipFirstLines||0],v=f(g,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:Ss,min:0,max:s.length-1,typing:!0,md:6,helperText:c.createElement(c.Fragment,{},"First line: ",c.createElement("code",{},g.join(", ")))},{k:"overwriteExistingAccounts",comp:Dn,md:6},at(xe({k:"usernameColumn"},i),{helperText:c.createElement(c.Fragment,{},"First username: ",v.u)}),at(xe({k:"passwordColumn"},i),{helperText:c.createElement(c.Fragment,{},"First password: ",v.p)}),at(xe({k:"groupColumn"},i),{helperText:c.createElement(c.Fragment,{},"First group: ",v.g)}),at(xe({k:"redirectColumn"},i),{helperText:c.createElement(c.Fragment,{},"First redirect: ",v.r)})]}}});if(!a)return;const{close:u}=Ro({title:"Importing...",Content(){const[p,g]=c.useState(0),[v,y]=c.useState();return c.useEffect(()=>{let m=!1;return setTimeout(()=>ot(this,null,function*(){var E;if(m)return;let C=0,w=0,b=a.skipFirstLines;const x=s.length-b;try{let _=0;for(const k of s){if(m)return;if(b){b--;continue}const I=f(k,a);y(I),g(_++/x),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 TS(I.u,I.p)},T=>{if(T.code===fde)return w++;C++})}}finally{u();const _=x-C-w,k="Results: "+[Oi("",C," failed"),Oi("",_," succeeded"),Oi("",w," skipped because already present")].filter(Boolean).join(", ");kt(k,!_&&C?"error":C||w?"warning":"success"),e==null||e()}})),()=>{m=!0}},[]),c.createElement(ze,{display:"flex",gap:2,alignItems:"center"},c.createElement(r5,{icon:YI,progress:p}),v==null?void 0:v.u)}});function f(p,g){return{u:p[g.usernameColumn-1],p:p[g.passwordColumn-1],g:p[g.groupColumn-1],r:p[g.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function Y_e(){const{username:e}=Wi(),{data:t,reload:n,element:r}=Yn("get_accounts"),[o,s]=c.useState([]),i=Array.isArray(o);c.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&i&&s(o.filter(y=>t.list.find(m=>(m==null?void 0:m.username)===y)))},[t]);const l=t==null?void 0:t.list,a=i&&nt.find(l,{username:o[0]}),f=Yo("md"),p=!(o.length>0)||!l?null:i&&o.length>1?c.createElement(c.Fragment,{},c.createElement(qr,{},c.createElement(Kn,{variant:"h6"},o.length+" selected"),c.createElement(qn,{onClick:v,startIcon:c.createElement(Ml)},"Remove")),c.createElement(Nh,{},o.map(y=>c.createElement(uk,{key:y},c.createElement(Ri,{},y))))):Ma(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},y=>c.createElement(G_e,{account:y,groups:l.filter(m=>!m.hasPassword).map(m=>m.username),addToBar:f&&[c.createElement(ze,{flex:1}),XD(y,{fontSize:"large",sx:{p:1}}),c.createElement(mn,{icon:zh,title:"Close",onClick:g})],reload:n,done(m){s([m]),n()}}));return c.useEffect(()=>{if(f||!p||!o.length)return;const{close:y}=Ro({title:nt.isString(o)?nt.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:g});return y},[f,o,a]),r||c.createElement(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(z3,{variant:"contained",startIcon:c.createElement(Xz),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>q_e(n)}]},"Add"),r0(n),(l==null?void 0:l.length)>0&&c.createElement(Kn,{p:1},`${l.length} account(s)`))),c.createElement(ri,{item:!0,md:5},!(l!=null&&l.length)&&c.createElement(kr,{severity:"info"},Jn`To access administration <u>remotely</u> you will need to create a user account with admin permission`),c.createElement(I3,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(y,m){s(m)}},l==null?void 0:l.map(y=>{var m,C;return c.createElement(fS,{key:y.username,nodeId:y.username,label:c.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},XD(y),y.adminActualAccess&&Wr(Yz,"Can login into Admin"),y.username,!!((m=y.belongs)!=null&&m.length)&&c.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=y.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&c.createElement(ri,{item:!0,md:7},c.createElement(Tb,{},c.createElement($b,{},p))));function g(){s([])}function v(){return ot(this,null,function*(){if(o.length>nt.pull(o,e).length&&(yield kt("Won't delete current account","warning")),!!o.length&&(yield xr(`Delete ${o.length} item(s)?`)))try{const y=[];for(const m of o)(yield ct("del_account",{username:m}).then(()=>1,()=>0))||y.push(m);if(n(),y.length)return kt("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield kt(y)}})}}function XD(e,t={}){return c.createElement(c.Fragment,{},c.createElement(e.hasPassword?Qz:YI,t),e.disabled&&c.createElement(qz))}var e2={},Q_e=et;Object.defineProperty(e2,"__esModule",{value:!0});var Jz=e2.default=void 0,X_e=Q_e(tt()),Z_e=Ze(),J_e=(0,X_e.default)((0,Z_e.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");Jz=e2.default=J_e;function eTe(){const{element:e}=Yn("get_config",{only:[]}),{username:t}=Wi();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(Qo,{icon:wk,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(Qo,{icon:Jz,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 tTe(){const{list:e,error:t,connecting:n,reload:r}=xl("get_langs"),o=c.useMemo(()=>["en",...nt.uniq(e.map(l=>l.code))],[e]),s=Yo("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(qn,{variant:"contained",startIcon:c.createElement(Hh),onClick:i},"Add"),c.createElement(ze,{flex:1}),c.createElement(nTe,{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:Ml,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return ot(this,null,function*(){yield ct("del_lang",nt.pick(l,"code")),r(),nr("Deleted")})}})]})));function i(){U4(l=>ot(this,null,function*(){if(!l)return;const a={};for(const u of l)a[u.name]=yield W4(u);try{yield ct("add_langs",{langs:a}),r(),nr("Loaded")}catch(u){yield kt(u)}}),{accept:".json"})}}function nTe({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Yn("get_config",{only:[t]}),[s,i]=c.useState();c.useEffect(()=>{var f;return i((f=n==null?void 0:n[t])!=null?f:s)},[n]);const[l,a]=c.useState();return c.createElement(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 t2={},rTe=et;Object.defineProperty(t2,"__esModule",{value:!0});var $S=t2.default=void 0,oTe=rTe(tt()),sTe=Ze(),iTe=(0,oTe.default)((0,sTe.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");$S=t2.default=iTe;var n2={},lTe=et;Object.defineProperty(n2,"__esModule",{value:!0});var eV=n2.default=void 0,aTe=lTe(tt()),cTe=Ze(),uTe=(0,aTe.default)((0,cTe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");eV=n2.default=uTe;function ZD({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=xl(e?"get_plugin_updates":"get_plugins"),s="small";return c.createElement(qh,{error:Ak(r,iV),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:tV,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:eV,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(g=>{var v;throw g.code!==Nx?g:Error("Failed dependencies: "+((v=g.cause)==null?void 0:v.map(y=>Oi('plugin "',y.id||y.repo,'" ')+y.error).join("; ")))}),n({id:l},{updated:!0}),nr("Plugin updated")})}})]:[c.createElement(mn,i.started?{icon:$S,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}),nr("Plugin stopped",c.createElement($S,{color:"warning"}))})}}:{icon:Lb,title:`Start ${l}`,size:s,onClick:()=>rV(l)}),c.createElement(mn,{icon:kk,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 g=yield ct("get_plugin",{id:l});let v=g.config;const y=yield uh({title:`Options for ${l}`,form:C=>({before:c.createElement(ze,{mx:2,mb:3},i.description),fields:nV(i.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[c.createElement(Qo,{variant:"outlined",onClick:()=>m(C)},"Save")]}),values:g.config,dialogProps:nt.merge({sx:{m:"auto"}},i.configDialog)});if(y&&!nt.isEqual(v,y))return m(y);function m(C){return ot(this,null,function*(){yield ct("set_plugin",{id:l,config:C}),Object.assign(v,C),nr("Configuration saved")})}})}}),c.createElement(mn,{icon:Ml,title:"Uninstall",size:s,confirm:"Remove?",onClick(){return ot(this,null,function*(){yield ct("uninstall_plugin",{id:l}),nr("Plugin uninstalled")})}})]})}function tV({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(Il,{title:o,children:c.createElement(e0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function nV(e){return Object.entries(e).map(([t,n])=>{if(!nt.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=dTe[r];return a===xh&&(s=nV(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),xe({k:t,comp:a,fields:s},l)})}const dTe={string:Ui,number:Ss,boolean:Dn,select:Kr,multiselect:n0,array:xh,real_path:Ap};function rV(e){return ot(this,null,function*(){try{return yield ct("start_plugin",{id:e}),nr("Plugin started",c.createElement(Lb,{color:"success"})),!0}catch(t){kt(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var r2={},fTe=et;Object.defineProperty(r2,"__esModule",{value:!0});var oV=r2.default=void 0,pTe=fTe(tt()),hTe=Ze(),mTe=(0,pTe.default)((0,hTe.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");oV=r2.default=mTe;function gTe(){const[e,t]=c.useState(""),n=Lk(e,1e3),{list:r,error:o,initializing:s}=xl("get_online_plugins",{text:n}),i=Wi();return c.createElement(c.Fragment,{},c.createElement(Ui,{value:e,onChange:t,start:c.createElement(oV),typing:!0,label:"Search text"}),c.createElement(qh,{error:Ak(o,iV),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(ln.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:tV,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:pE,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 xr("This will also install: "+nt.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(u,p).catch(g=>{if(g.code!==Nx)return kt(g);const v=c.createElement(c.Fragment,{},"This plugin has some dependencies unmet:",g.data.map(y=>c.createElement("li",{key:y.repo},y.repo+": "+y.error)));return kt(v,"error")})})}})]}));function l(a,u){return ot(this,null,function*(){try{const f=yield ct("download_plugin",{id:a,branch:u},{timeout:!1});(yield xr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield rV(f.id))}catch(f){let p=!1;if(f.code===Nx)for(const g of f.cause)g.error==="missing"&&(nr("Installing dependency: "+g.repo),yield l(g.repo),p=!0);if(p)return l(a,u);throw f}})}}const sV={Installed:ZD,"Search online|Search":gTe,"Check updates|Updates":()=>c.createElement(ZD,{updates:!0})},vTe=Object.keys(sV),yTe=Object.values(sV),iV={ENOTFOUND:"Cannot reach github.com"};function bTe(){const[e,t]=c.useState(0),n=!Yo("sm");return c.createElement(c.Fragment,{},c.createElement(hk,{value:e,onChange(r,o){t(o)}},vTe.map(r=>c.createElement(Hv,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),c.createElement(yTe[e]))}function wTe(){const{data:e,reload:t}=Yn("get_custom_html"),[n,r]=c.useState(""),[o,s]=c.useState({}),[i,l]=c.useState({});c.useEffect(()=>e&&l(e==null?void 0:e.sections),[e]),c.useEffect(()=>s(i),[i]);const a=c.useMemo(()=>{const p=nt.sortBy(Object.keys(o),g=>!isNaN(+g));return p.includes(n)||r(nt.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(g=>{var v;return{value:g,label:(Oi("HTTP ",hde[g])||nt.startCase(g))+((v=o[g])!=null&&v.trim()?" *":"")}})},[Lk(o,500)]),u=c.useMemo(()=>!nt.isEqualWith(i,o,(p,g)=>!p&&!g||void 0),[i,o]);return c.createElement(c.Fragment,{},c.createElement(kr,{severity:"info"},Jn("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}),r0(t),c.createElement(mn,{icon:Vh,title:`Save
|
|
796
|
+
(ctrl+enter)`,sx:Zd(u),onClick:f})),c.createElement(UI,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(g=>at(xe({},g),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(Gb(p))&&(f().then(),p.preventDefault())}}));function f(){return ct("set_custom_html",{sections:o}).then(()=>l(o))}}var o2={},CTe=et;Object.defineProperty(o2,"__esModule",{value:!0});var lV=o2.default=void 0,xTe=CTe(tt()),_g=Ze(),STe=(0,xTe.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");lV=o2.default=STe;var s2={},PTe=et;Object.defineProperty(s2,"__esModule",{value:!0});var aV=s2.default=void 0,kTe=PTe(tt()),JD=Ze(),ETe=(0,kTe.default)([(0,JD.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,JD.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");aV=s2.default=ETe;var i2={},ITe=et;Object.defineProperty(i2,"__esModule",{value:!0});var cV=i2.default=void 0,MTe=ITe(tt()),eA=Ze(),_Te=(0,MTe.default)([(0,eA.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,eA.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");cV=i2.default=_Te;var l2={},TTe=et;Object.defineProperty(l2,"__esModule",{value:!0});var uV=l2.default=void 0,$Te=TTe(tt()),RTe=Ze(),OTe=(0,$Te.default)((0,RTe.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");uV=l2.default=OTe;var a2={},DTe=et;Object.defineProperty(a2,"__esModule",{value:!0});var dV=a2.default=void 0,ATe=DTe(tt()),LTe=Ze(),FTe=(0,ATe.default)((0,LTe.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");dV=a2.default=FTe;const tA=_B.filter(e=>Cwe.includes(e.code)),nA="https://portforward.com/",bC=1080,wC=`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 NTe(){var V,j,M,$;const[e,t]=c.useState(),[n,r]=c.useState(!1),[o,s]=c.useState(!1),[i,l]=c.useState(!1),a=Yn("get_status"),u=Yn("get_config",{only:["base_url"]}),f=Ma([(j=(V=a.data)==null?void 0:V.http)==null?void 0:j.error,($=(M=a.data)==null?void 0:M.https)==null?void 0:$.error],([F,B])=>F&&B?"error":F||B?"warning":"success"),{data:p,reload:g,error:v,loading:y,element:m}=Yn("get_nat"),C=p==null?void 0:p.internalPort,w=(p==null?void 0:p.mapped)&&p.mapped.private.port!==C&&p.mapped.private.port,b=(p==null?void 0:p.externalIp)&&(p==null?void 0:p.publicIps)&&!p.publicIps.includes(p.externalIp);return c.useEffect(()=>{!i||!p||y||(T().then(),l(!1))},[i,p,y]),c.createElement(qr,{vert:!0,gap:"2em",maxWidth:"40em"},c.createElement(kr,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),k(),I(),E(),x());function x(){const F=c.useMemo(()=>nt.sortBy(tA,"name").map(B=>({value:B.code,label:`${B.flag} ${B.name}`})),[tA]);return c.createElement(xC,{title:"Geo IP",icon:Uv},c.createElement(mS,{keys:[br.geo_enable,br.geo_allow,br.geo_list,br.geo_allow_unknown],form:B=>{var O;return{fields:[{k:br.geo_enable,comp:Dn,label:"Enable",helperText:"Necessary database will be downloaded every month (2MB)"},...B[br.geo_enable]?[{k:br.geo_allow,comp:Kr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},B[br.geo_allow]!=null&&{k:br.geo_list,comp:n0,label:`Selected countries (${((O=B[br.geo_list])==null?void 0:O.length)||0})`,placeholder:"none",options:F,clearable:!0},B[br.geo_allow]!=null&&{k:br.geo_allow_unknown,comp:Kr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function E(){var K;const{error:F,listening:B}=((K=a.data)==null?void 0:K.https)||{},[O,N]=c.useState(),H=Yn("get_cert");return c.useEffect(()=>{ct("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(N)},[]),!a||!O?c.createElement(zi):m||a.element||c.createElement(xC,{title:"HTTPS",icon:s0,color:B&&!F?"success":"warning"},F0(F)&&c.createElement(kr,{severity:"warning"},F),!B&&c.createElement(la,{onClick:_},"Not enabled")||F&&"For HTTPS to work, you need a valid certificate",H.element||Ma(H.data,te=>{var Q,X;return c.createElement(ze,{},c.createElement(AE,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",c.createElement("ul",{},c.createElement("li",{},"Domain: ",((Q=te.altNames)==null?void 0:Q.join(" + "))||"-"),c.createElement("li",{},"Issuer: ",((X=te.issuer)==null?void 0:X.O)||c.createElement("i",{},"self-signed")),c.createElement("li",{},"Validity: ",["validFrom","validTo"].map(J=>Bx(te[J])).join(" – "))))}),c.createElement(Pd),c.createElement(Hc,{gap:1,gridProps:{rowSpacing:1},values:O,set(te,Q){N(X=>{const J=at(xe({},X),{[Q]:te});return ct("set_config",{values:J}),J})},fields:[Jn("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:Jn(`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:!O.acme_domain}],save:{children:"Request",startIcon:c.createElement(uV),onClick(){return ot(this,null,function*(){var se;const[te,...Q]=O.acme_domain.split(",");te===((se=H.data.subject)==null?void 0:se.CN)&&Number(new Date(H.data.validTo))-Date.now()>=30*yde&&!(yield xr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield xr("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:te}).catch(Z=>xr(String(Z),{confirmText:"Continue anyway"})))===!1||(yield ct("make_cert",{domain:te,altNames:Q,email:O.acme_email},{timeout:2e4}).then(()=>ot(this,null,function*(){yield kt("Certificate created","success"),B||(yield _()),H.reload()}),kt))})}}}))}function _(){return ot(this,null,function*(){if(!(yield xr(`HTTPS is currently disabled.
|
|
798
|
+
Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const F=t5();try{yield ct("set_config",{values:{https_port:443}}),yield Bh(1e3),a.reload()}finally{F()}})}function k(){var N;const F=(N=u.data)==null?void 0:N.base_url,B=F&&new URL(F).hostname,O=!Lde(B)&&B;return u.element||c.createElement(xC,{icon:Uv,title:"Address / Domain"},c.createElement(qr,{flexWrap:"wrap"},F||"Automatic, not configured",c.createElement(qr,{},c.createElement(Qo,{size:"small",variant:"outlined",onClick:()=>void Az().then(u.reload)},"Change"),O&&c.createElement(Qo,{size:"small",variant:"outlined",onClick:()=>ct("check_domain",{domain:O}).then(()=>kt("Domain seems ok","success"))},"Check"))),c.createElement(mS,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:Dn,label:"Accept requests only using domain (and localhost)"}]}}))}function I(){if(v)return m;if(!p)return c.createElement(zi);const F=p==null?void 0:p.publicIps.includes(p==null?void 0:p.localIp);return c.createElement(qr,{justifyContent:"space-around"},c.createElement(CC,{name:"Server",icon:F?dV:lV,color:f,ip:p==null?void 0:p.localIp,below:C&&c.createElement(ze,{fontSize:"smaller"},"port ",C)}),!F&&c.createElement(rA),!F&&c.createElement(CC,{name:"Router",icon:cV,ip:p==null?void 0:p.gatewayIp,color:(p==null?void 0:p.mapped)&&(w?"warning":"success"),below:o?c.createElement(zv,{sx:{height:"1em"}}):c.createElement(la,{fontSize:"smaller",display:"block",onClick:D},"port ",w?"is wrong":(p==null?void 0:p.externalPort)||"unknown")}),c.createElement(rA),c.createElement(CC,{name:"Internet",icon:aV,ip:p==null?void 0:p.publicIps,color:e?"success":e===!1?"error":b?"warning":void 0,below:n?c.createElement(zv,{sx:{height:"1em"}}):c.createElement(ze,{fontSize:"smaller"},b&&c.createElement(la,{display:"block",onClick:()=>kt(wC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(p==null?void 0:p.publicIps.length)>0&&p.internalPort&&c.createElement(la,{onClick:T},"Verify"))}))}function T(){return ot(this,null,function*(){var B;if(!p||(t(void 0),!i&&!(yield xr("This test will check if your server is working properly on the Internet"))))return;r(!0);try{const O=(B=u.data)==null?void 0:B.base_url,N=O&&(yield ct("self_check",{url:O}).catch(()=>kt(Jn(`Sorry, we couldn't verify your configured address ${O} 😰
|
|
799
|
+
still, we are going to test your IP address 🤞`),"warning")));if(N!=null&&N.success)return t(!0),kt(c.createElement(ze,{},"Your server is responding correctly over the Internet:",c.createElement("ul",{},c.createElement("li",{},N.url))),"success");(N==null?void 0:N.success)===!1&&(yield kt(Jn(`Your configured address ${O} doesn't seem to work 😰
|
|
800
|
+
still, we are going to test your IP address 🤞`),"warning"));const H=yield ct("self_check",{});if(H.some(Q=>Q.success)){t(!0);const Q=N.success===!1&&Jn(`Your server is responding over the Internet 👍
|
|
801
|
+
but not with configured address ${O} 👎
|
|
802
|
+
just on your IP:`);return kt(c.createElement(ze,{},Q||"Your server is responding correctly over the Internet:",c.createElement("ul",{},...H.map(X=>c.createElement("li",{},X.url)))),Q?"warning":"success")}if(t(!1),w)return R().then(F);if(b)return kt(wC,"warning");const K="We couldn't reach your server from the Internet. ";if(p.upnp&&!p.mapped)return xr(K+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(Q=>{if(Q){try{A(p.internalPort,"","")}catch(X){A(bC,"")}nr("Port forwarded, now verify again","success"),F()}});const Y=yield ct("get_config",{only:[br.geo_enable,br.geo_allow]}),{close:te}=kt(c.createElement(ze,{},K+"Possible causes:",c.createElement("ul",{},Y[br.geo_enable]&&Y[br.geo_allow]!=null&&c.createElement("li",{},"You may be blocking a country from where the test is performed"),!p.upnp&&c.createElement("li",{},"Your router may need to be configured. ",c.createElement(Ls,{href:nA,target:"help"},"How?")),c.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(p.externalPort||p.internalPort)<=1024&&c.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",p.upnp&&c.createElement(qn,{size:"small",onClick(){te(),A(bC).then(F)}},"Try "+bC)),p.mapped&&c.createElement("li",{},"A bug in your modem/router, try rebooting it."),c.createElement("li",{},wC))),"warning")}catch(O){kt(O)}finally{r(!1)}function F(){l(!0)}})}function D(){return ot(this,null,function*(){if(!p)return;if(w)return(yield xr(`There is a port-forwarding but it is pointing to the wrong port (${w})`,{confirmText:"Fix it"}))&&R();if(!p.upnp)return kt(c.createElement(ze,{lineHeight:1.5},Jn(`We cannot help you configuring your router because UPnP is not available.
|
|
803
|
+
Find more help [on this website](${nA}).`)),"info");const F=yield Jk(Jn(`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 (${C}), or a different one.`),{value:p.externalPort||C,field:{label:"Port seen from the Internet",comp:Ss},addToBar:p.mapped&&[c.createElement(qn,{color:"warning",onClick:B},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});F&&(yield A(Number(F),"Port forwarded"));function B(){Vi(),A(0,"Port removed")}})}function R(){return p!=null&&p.externalPort?A(p.externalPort,"Forwarding corrected"):kt("externalPort not found","error")}function A(F,B="",O="Operation failed"){return ot(this,null,function*(){s(!0);try{yield ct("map_port",{external:F}),g(),B&&nr(B,"success"),t(void 0)}catch(N){if(O){const H=F&&Math.min(F,p.internalPort)<1024,K=O+(H?". Some routers refuse to work with ports under 1024.":"");yield kt(K,"error")}throw N}finally{s(!1)}})}}function rA(){return c.createElement(ze,{flex:1,className:"animated-dashed-line"})}function CC({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"},Ub(r).join(`
|
|
805
|
+
`)||"unknown"),o)}function xC({title:e,icon:t,color:n,children:r}){return c.createElement(Tb,{},c.createElement($b,{},c.createElement(qr,{vert:!0},c.createElement(ze,{fontSize:"x-large"},t&&c.createElement(t,{color:n,sx:{mr:1,verticalAlign:"bottom",mb:"2px"}}),e),r)))}const RS=[{path:"",icon:Ab,label:"Home",title:"Admin panel",comp:BMe},{path:"fs",icon:p4,label:"Shared files",comp:dMe},{path:"accounts",icon:g4,comp:Y_e},{path:"options",icon:kk,comp:i_e},{path:"internet",icon:Uv,comp:NTe},{path:"monitoring",icon:v4,comp:g_e,noPaddingOnMobile:!0},{path:"logs",icon:m4,comp:p_e,noPaddingOnMobile:!0},{path:"language",icon:y4,comp:tTe},{path:"plugins",icon:h4,comp:bTe,noPaddingOnMobile:!0},{path:"html",icon:b4,label:"Custom HTML",comp:wTe},{path:"logout",icon:wk,comp:eTe}];function oA({onSelect:e}){const{VERSION:t}=Jb(),n="hfs-logo.svg",r=Wb().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"},Xk(t||"",/-/,()=>c.createElement("br"))),r&&c.createElement("img",{src:n,style:{height:"2.5em"}})),RS.map(o=>c.createElement(pie,{key:o.path,to:o.path,component:tq,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&c.createElement(pl,{sx:{color:"primary.contrastText",minWidth:48}},c.createElement(o.icon)),c.createElement(Ri,{sx:{whiteSpace:"nowrap"},primary:fV(o)}))),!r&&c.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function fV(e){var t;return e&&((t=e.label)!=null?t:nt.capitalize(e.path))}function BTe({children:e}){const{loginRequired:t}=Wi();return t===Vb?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(zTe):c.createElement(c.Fragment,{},e)}function zTe(){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=>at(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 VTe(e.username,e.password)}catch(a){r(String(a))}})}}}))}function VTe(e,t){return ot(this,null,function*(){const n=yield $fe(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";ln.loginRequired=!1,pV(n)})}const pV=Dfe(ln);pV(Jb().session);var c2={},jTe=et;Object.defineProperty(c2,"__esModule",{value:!0});var hV=c2.default=void 0,HTe=jTe(tt()),UTe=Ze(),WTe=(0,HTe.default)((0,UTe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");hV=c2.default=WTe;var mV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n="week",r="year";return function(o,s,i){var l=s.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(r).add(1,r).date(u),p=i(this).endOf(n);if(f.isBefore(p))return 1}var g=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(g,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(mV);var GTe=mV.exports;const KTe=di(GTe);var gV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},a=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(C){this[m]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(m)}],p=function(m){var C=l[m];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(m,C){var w,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(m.indexOf(b(x,0,C))>-1){w=x>12;break}}else w=m===(C?"pm":"PM");return w},v={A:[i,function(m){this.afternoon=g(m,!1)}],a:[i,function(m){this.afternoon=g(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[o,u("day")],Do:[i,function(m){var C=l.ordinal,w=m.match(/\d+/);if(this.day=w[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[s,u("month")],MM:[o,u("month")],MMM:[i,function(m){var C=p("months"),w=(p("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var C=p("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=a(m)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function y(m){var C,w;C=m,w=l&&l.formats;for(var b=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,R,A){var V=A&&A.toUpperCase();return R||w[A]||n[A]||w[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,M,$){return M||$.slice(1)})})).match(r),x=b.length,E=0;E<x;E+=1){var _=b[E],k=v[_],I=k&&k[0],T=k&&k[1];b[E]=T?{regex:I,parser:T}:_.replace(/^\[|\]$/g,"")}return function(D){for(var R={},A=0,V=0;A<x;A+=1){var j=b[A];if(typeof j=="string")V+=j.length;else{var M=j.regex,$=j.parser,F=D.slice(V),B=M.exec(F)[0];$.call(R,B),D=D.replace(B,"")}}return function(O){var N=O.afternoon;if(N!==void 0){var H=O.hours;N?H<12&&(O.hours+=12):H===12&&(O.hours=0),delete O.afternoon}}(R),R}}return function(m,C,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(a=m.parseTwoDigitYear);var b=C.prototype,x=b.parse;b.parse=function(E){var _=E.date,k=E.utc,I=E.args;this.$u=k;var T=I[1];if(typeof T=="string"){var D=I[2]===!0,R=I[3]===!0,A=D||R,V=I[2];R&&(V=I[2]),l=this.$locale(),!D&&V&&(l=w.Ls[V]),this.$d=function(F,B,O){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*F);var N=y(B)(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)):O?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("")}}(_,T,k),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),A&&_!=this.format(T)&&(this.$d=new Date("")),l={}}else if(T instanceof Array)for(var j=T.length,M=1;M<=j;M+=1){I[1]=T[M-1];var $=w.apply(this,I);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}M===j&&(this.$d=new Date(""))}else x.call(this,E)}}})})(gV);var qTe=gV.exports;const YTe=di(qTe);var vV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,s){var i=o.prototype,l=i.format;s.en.formats=n,i.format=function(a){a===void 0&&(a="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,g){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,y,m){var C=m&&m.toUpperCase();return y||g[m]||n[m]||g[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,x){return b||x.slice(1)})})}(a,u===void 0?{}:u);return l.call(this,f)}}})})(vV);var QTe=vV.exports;const XTe=di(QTe);var yV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(sn,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,l,a){var u=o(s),f=o(i),p=(a=a||"()")[0]==="(",g=a[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(g?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(g?this.isAfter(f,l):!this.isBefore(f,l))}}})})(yV);var ZTe=yV.exports;const JTe=di(ZTe);$r.extend(YTe);$r.extend(XTe);$r.extend(JTe);const e$e=t3(["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"]),t$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"},n$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"},SC=["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
|
+
`),sA=["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
|
+
`),r$e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class o$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=t$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(SC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(SC);if(!this.hasTimezonePlugin())throw new Error(sA);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&&(e$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(SC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(sA)}return $r.tz(s,this.cleanTimezone(i))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,i)=>s===""?null:this.dayjs(s,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const i=this.getLocaleFormats(),l=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(u,f,p)=>f||p.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,u,f)=>{const p=f&&f.toUpperCase();return u||i[f]||l(i[p])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,i)=>this.formatByString(s,this.formats[i]),this.formatByString=(s,i)=>this.dayjs(s).format(i),this.formatNumber=s=>s,this.getDiff=(s,i,l)=>s.diff(i,l),this.isEqual=(s,i)=>s===null&&i===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(s,i)=>this.isSame(s,i,"YYYY"),this.isSameMonth=(s,i)=>this.isSame(s,i,"YYYY-MM"),this.isSameDay=(s,i)=>this.isSame(s,i,"YYYY-MM-DD"),this.isSameHour=(s,i)=>s.isSame(i,"hour"),this.isAfter=(s,i)=>s>i,this.isAfterYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()>i.utc():s.isAfter(i,"year"),this.isAfterDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()>i.utc():s.isAfter(i,"day"),this.isBefore=(s,i)=>s<i,this.isBeforeYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()<i.utc():s.isBefore(i,"year"),this.isBeforeDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()<i.utc():s.isBefore(i,"day"),this.isWithinRange=(s,[i,l])=>s>=i&&s<=l,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"year"):s.add(i,"year")),this.addMonths=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"month"):s.add(i,"month")),this.addWeeks=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"week"):s.add(i,"week")),this.addDays=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"day"):s.add(i,"day")),this.addHours=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"hour"):s.add(i,"hour")),this.addMinutes=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"minute"):s.add(i,"minute")),this.addSeconds=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"second"):s.add(i,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,i)=>this.adjustOffset(s.set("year",i)),this.setMonth=(s,i)=>this.adjustOffset(s.set("month",i)),this.setDate=(s,i)=>this.adjustOffset(s.set("date",i)),this.setHours=(s,i)=>this.adjustOffset(s.set("hour",i)),this.setMinutes=(s,i)=>this.adjustOffset(s.set("minute",i)),this.setSeconds=(s,i)=>this.adjustOffset(s.set("second",i)),this.setMilliseconds=(s,i)=>this.adjustOffset(s.set("millisecond",i)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const l=[s.startOf("year")];for(;l.length<12;){const a=l[l.length-1];l.push(this.addMonths(a,1))}return l},this.mergeDateAndTime=(s,i)=>s.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(s,i),"dd"))},this.getWeekArray=s=>{const i=this.setLocaleToValue(s),l=i.startOf("month").startOf("week"),a=i.endOf("month").endOf("week");let u=0,f=l;const p=[];for(;f<a;){const g=Math.floor(u/7);p[g]=p[g]||[],p[g].push(f),f=this.addDays(f,1),u+=1}return p},this.getWeekNumber=s=>s.week(),this.getYearRange=(s,i)=>{const l=s.startOf("year"),a=i.endOf("year"),u=[];let f=l;for(;f<a;)u.push(f),f=this.addYears(f,1);return u},this.getMeridiemText=s=>s==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=r$e((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=S({},n$e,n),$r.extend(KTe)}}function s$e(){ln.title="Config file";const{data:e,reload:t,element:n}=Yn("get_config_text",{}),[r,o]=c.useState(),[s,i]=c.useState(),[l,a]=c.useState(!1);return c.useEffect(()=>{i(e==null?void 0:e.text)},[e]),c.useEffect(()=>{s!==void 0&&o(s||"")},[s]),c.createElement(c.Fragment,{},c.createElement(qr,{flexWrap:"wrap",justifyContent:"space-between"},c.createElement(Qo,{icon:FI,onClick:f},"Copy excluding passwords"),l?c.createElement(c.Fragment,{},r0(t),c.createElement(mn,{icon:Vh,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(Qo,{icon:FE,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(Zde,{margin:10},c.createElement(UI,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(Gb(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,"")),nr("copied"))}}function i$e(){return c.createElement(KX,{theme:xpe()},c.createElement(l$e,{},c.createElement(KE,{dateAdapter:o$e},c.createElement(BTe,{},c.createElement(ZK,{},c.createElement(a$e))))))}function l$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 a$e(){const e=Hd().pathname.slice(1),t=RS.find(l=>l.path===e);let{title:n}=Wi();n=t&&(t.title||fV(t))||n;const[r,o]=c.useState(!1),s=Yo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1;return c.createElement(c.Fragment,{},!s&&c.createElement(c$e,{title:n,openMenu:()=>o(!0)}),!s&&c.createElement(yoe,{anchor:"left",open:r,onClose(){o(!1)}},c.createElement(oA,{onSelect:()=>o(!1)})),c.createElement(ze,{display:"flex",flex:1},s&&c.createElement(oA),c.createElement(ze,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:i,md:2,lg:3},pb:{xs:i,md:2},boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"column",width:"100%",overflowX:"clip"}},n&&s&&c.createElement(Kn,{variant:"h2",mb:2},n),c.createElement(KK,{},RS.map((l,a)=>c.createElement(yx,{key:a,path:l.path,element:c.createElement(l.comp)})),c.createElement(yx,{path:"edit",element:c.createElement(s$e)}))),c.createElement(Cfe)))}function c$e({title:e,openMenu:t}){return c.createElement(vJ,{position:"sticky",sx:{mb:2}},c.createElement(d4,{},c.createElement(pr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},c.createElement(hV)),e))}bF(document.getElementById("root")).render(c.createElement(c.StrictMode,{},c.createElement(i$e)));export{sn as c,di as g};
|