hfs 0.29.1 → 0.30.0

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.
@@ -0,0 +1,414 @@
1
+ var TB=Object.defineProperty,MB=Object.defineProperties;var _B=Object.getOwnPropertyDescriptors;var Jp=Object.getOwnPropertySymbols;var QE=Object.prototype.hasOwnProperty,JE=Object.prototype.propertyIsEnumerable;var ns=Math.pow,XE=(e,t,n)=>t in e?TB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ae=(e,t)=>{for(var n in t||(t={}))QE.call(t,n)&&XE(e,n,t[n]);if(Jp)for(var n of Jp(t))JE.call(t,n)&&XE(e,n,t[n]);return e},Ht=(e,t)=>MB(e,_B(t));var an=(e,t)=>{var n={};for(var r in e)QE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jp)for(var r of Jp(e))t.indexOf(r)<0&&JE.call(e,r)&&(n[r]=e[r]);return n};var pt=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(f){o(f)}},s=c=>{try{a(n.throw(c))}catch(f){o(f)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function RB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var io=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Bb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function OB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var u={},LB={get exports(){return u},set exports(e){u=e}},Ot={};/**
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 Lf=Symbol.for("react.element"),AB=Symbol.for("react.portal"),FB=Symbol.for("react.fragment"),NB=Symbol.for("react.strict_mode"),DB=Symbol.for("react.profiler"),BB=Symbol.for("react.provider"),zB=Symbol.for("react.context"),HB=Symbol.for("react.forward_ref"),jB=Symbol.for("react.suspense"),VB=Symbol.for("react.memo"),UB=Symbol.for("react.lazy"),ZE=Symbol.iterator;function WB(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var S$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E$=Object.assign,P$={};function pu(e,t,n){this.props=e,this.context=t,this.refs=P$,this.updater=n||S$}pu.prototype.isReactComponent={};pu.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")};pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function k$(){}k$.prototype=pu.prototype;function zb(e,t,n){this.props=e,this.context=t,this.refs=P$,this.updater=n||S$}var Hb=zb.prototype=new k$;Hb.constructor=zb;E$(Hb,pu.prototype);Hb.isPureReactComponent=!0;var eP=Array.isArray,I$=Object.prototype.hasOwnProperty,jb={current:null},$$={key:!0,ref:!0,__self:!0,__source:!0};function T$(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)I$.call(t,r)&&!$$.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Lf,type:e,key:i,ref:s,props:o,_owner:jb.current}}function GB(e,t){return{$$typeof:Lf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Vb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lf}function KB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tP=/\/+/g;function Uy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?KB(""+e.key):t.toString(36)}function Oh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Lf:case AB:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Uy(s,0):r,eP(o)?(n="",e!=null&&(n=e.replace(tP,"$&/")+"/"),Oh(o,t,n,"",function(f){return f})):o!=null&&(Vb(o)&&(o=GB(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(tP,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",eP(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Uy(i,a);s+=Oh(i,t,n,c,o)}else if(c=WB(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Uy(i,a++),s+=Oh(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Zp(e,t,n){if(e==null)return e;var r=[],o=0;return Oh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function qB(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 Mr={current:null},Lh={transition:null},YB={ReactCurrentDispatcher:Mr,ReactCurrentBatchConfig:Lh,ReactCurrentOwner:jb};Ot.Children={map:Zp,forEach:function(e,t,n){Zp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zp(e,function(){t++}),t},toArray:function(e){return Zp(e,function(t){return t})||[]},only:function(e){if(!Vb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=pu;Ot.Fragment=FB;Ot.Profiler=DB;Ot.PureComponent=zb;Ot.StrictMode=NB;Ot.Suspense=jB;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YB;Ot.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=E$({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=jb.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)I$.call(t,c)&&!$$.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var f=0;f<c;f++)a[f]=arguments[f+2];r.children=a}return{$$typeof:Lf,type:e.type,key:o,ref:i,props:r,_owner:s}};Ot.createContext=function(e){return e={$$typeof:zB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:BB,_context:e},e.Consumer=e};Ot.createElement=T$;Ot.createFactory=function(e){var t=T$.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:HB,render:e}};Ot.isValidElement=Vb;Ot.lazy=function(e){return{$$typeof:UB,_payload:{_status:-1,_result:e},_init:qB}};Ot.memo=function(e,t){return{$$typeof:VB,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=Lh.transition;Lh.transition={};try{e()}finally{Lh.transition=t}};Ot.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ot.useCallback=function(e,t){return Mr.current.useCallback(e,t)};Ot.useContext=function(e){return Mr.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return Mr.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return Mr.current.useEffect(e,t)};Ot.useId=function(){return Mr.current.useId()};Ot.useImperativeHandle=function(e,t,n){return Mr.current.useImperativeHandle(e,t,n)};Ot.useInsertionEffect=function(e,t){return Mr.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return Mr.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return Mr.current.useMemo(e,t)};Ot.useReducer=function(e,t,n){return Mr.current.useReducer(e,t,n)};Ot.useRef=function(e){return Mr.current.useRef(e)};Ot.useState=function(e){return Mr.current.useState(e)};Ot.useSyncExternalStore=function(e,t,n){return Mr.current.useSyncExternalStore(e,t,n)};Ot.useTransition=function(){return Mr.current.useTransition()};Ot.version="18.2.0";(function(e){e.exports=Ot})(LB);const Lo=Bb(u),Uc=RB({__proto__:null,default:Lo},[u]);var gl={},XB={get exports(){return gl},set exports(e){gl=e}},ho={},J0={},QB={get exports(){return J0},set exports(e){J0=e}},M$={};/**
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(A,z){var G=A.length;A.push(z);e:for(;0<G;){var q=G-1>>>1,X=A[q];if(0<o(X,z))A[q]=z,A[G]=X,G=q;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var z=A[0],G=A.pop();if(G!==z){A[0]=G;e:for(var q=0,X=A.length,ie=X>>>1;q<ie;){var ee=2*(q+1)-1,se=A[ee],ae=ee+1,we=A[ae];if(0>o(se,G))ae<X&&0>o(we,se)?(A[q]=we,A[ae]=G,q=ae):(A[q]=se,A[ee]=G,q=ee);else if(ae<X&&0>o(we,G))A[q]=we,A[ae]=G,q=ae;else break e}}return z}function o(A,z){var G=A.sortIndex-z.sortIndex;return G!==0?G:A.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],f=[],p=1,h=null,m=3,v=!1,b=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(A){for(var z=n(f);z!==null;){if(z.callback===null)r(f);else if(z.startTime<=A)r(f),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(f)}}function E(A){if(g=!1,C(A),!b)if(n(c)!==null)b=!0,B(I);else{var z=n(f);z!==null&&W(E,z.startTime-A)}}function I(A,z){b=!1,g&&(g=!1,w($),$=-1),v=!0;var G=m;try{for(C(z),h=n(c);h!==null&&(!(h.expirationTime>z)||A&&!N());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),C(z)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var ee=n(f);ee!==null&&W(E,ee.startTime-z),ie=!1}return ie}finally{h=null,m=G,v=!1}}var T=!1,k=null,$=-1,R=5,O=-1;function N(){return!(e.unstable_now()-O<R)}function U(){if(k!==null){var A=e.unstable_now();O=A;var z=!0;try{z=k(!0,A)}finally{z?j():(T=!1,k=null)}}else T=!1}var j;if(typeof P=="function")j=function(){P(U)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=U,j=function(){D.postMessage(null)}}else j=function(){S(U,0)};function B(A){k=A,T||(T=!0,j())}function W(A,z){$=S(function(){A(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,B(I))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(A){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var G=m;m=z;try{return A()}finally{m=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=m;m=A;try{return z()}finally{m=G}},e.unstable_scheduleCallback=function(A,z,G){var q=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?q+G:q):G=q,A){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=G+X,A={id:p++,callback:z,priorityLevel:A,startTime:G,expirationTime:X,sortIndex:-1},G>q?(A.sortIndex=G,t(f,A),n(c)===null&&A===n(f)&&(g?(w($),$=-1):g=!0,W(E,G-q))):(A.sortIndex=X,t(c,A),b||v||(b=!0,B(I))),A},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(A){var z=m;return function(){var G=m;m=z;try{return A.apply(this,arguments)}finally{m=G}}}})(M$);(function(e){e.exports=M$})(QB);/**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var _$=u,co=J0;function Me(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 R$=new Set,Wd={};function $a(e,t){Wc(e,t),Wc(e+"Capture",t)}function Wc(e,t){for(Wd[e]=t,e=0;e<t.length;e++)R$.add(t[e])}var vs=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Z0=Object.prototype.hasOwnProperty,JB=/^[: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]*$/,nP={},rP={};function ZB(e){return Z0.call(rP,e)?!0:Z0.call(nP,e)?!1:JB.test(e)?rP[e]=!0:(nP[e]=!0,!1)}function ez(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 tz(e,t,n,r){if(t===null||typeof t=="undefined"||ez(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 _r(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lr[e]=new _r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lr[t]=new _r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lr[e]=new _r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lr[e]=new _r(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){lr[e]=new _r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lr[e]=new _r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lr[e]=new _r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lr[e]=new _r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lr[e]=new _r(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ub=/[\-:]([a-z])/g;function Wb(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(Ub,Wb);lr[t]=new _r(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(Ub,Wb);lr[t]=new _r(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(Ub,Wb);lr[t]=new _r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lr[e]=new _r(e,1,!1,e.toLowerCase(),null,!1,!1)});lr.xlinkHref=new _r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lr[e]=new _r(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gb(e,t,n,r){var o=lr.hasOwnProperty(t)?lr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tz(t,n,o,r)&&(n=null),r||o===null?ZB(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 Ps=_$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eh=Symbol.for("react.element"),vc=Symbol.for("react.portal"),yc=Symbol.for("react.fragment"),Kb=Symbol.for("react.strict_mode"),e1=Symbol.for("react.profiler"),O$=Symbol.for("react.provider"),L$=Symbol.for("react.context"),qb=Symbol.for("react.forward_ref"),t1=Symbol.for("react.suspense"),n1=Symbol.for("react.suspense_list"),Yb=Symbol.for("react.memo"),Us=Symbol.for("react.lazy"),A$=Symbol.for("react.offscreen"),oP=Symbol.iterator;function qu(e){return e===null||typeof e!="object"?null:(e=oP&&e[oP]||e["@@iterator"],typeof e=="function"?e:null)}var $n=Object.assign,Wy;function pd(e){if(Wy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wy=t&&t[1]||""}return`
26
+ `+Wy+e}var Gy=!1;function Ky(e,t){if(!e||Gy)return"";Gy=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
27
+ `),i=r.stack.split(`
28
+ `),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
29
+ `+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Gy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pd(e):""}function nz(e){switch(e.tag){case 5:return pd(e.type);case 16:return pd("Lazy");case 13:return pd("Suspense");case 19:return pd("SuspenseList");case 0:case 2:case 15:return e=Ky(e.type,!1),e;case 11:return e=Ky(e.type.render,!1),e;case 1:return e=Ky(e.type,!0),e;default:return""}}function r1(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 yc:return"Fragment";case vc:return"Portal";case e1:return"Profiler";case Kb:return"StrictMode";case t1:return"Suspense";case n1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L$:return(e.displayName||"Context")+".Consumer";case O$:return(e._context.displayName||"Context")+".Provider";case qb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yb:return t=e.displayName||null,t!==null?t:r1(e.type)||"Memo";case Us:t=e._payload,e=e._init;try{return r1(e(t))}catch(n){}}return null}function rz(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 r1(t);case 8:return t===Kb?"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 vl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function F$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oz(e){var t=F$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=oz(e))}function N$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=F$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rm(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 o1(e,t){var n=t.checked;return $n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function iP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vl(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 D$(e,t){t=t.checked,t!=null&&Gb(e,"checked",t,!1)}function i1(e,t){D$(e,t);var n=vl(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")?s1(e,t.type,n):t.hasOwnProperty("defaultValue")&&s1(e,t.type,vl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sP(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 s1(e,t,n){(t!=="number"||rm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hd=Array.isArray;function _c(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=""+vl(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 l1(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return $n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lP(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Me(92));if(hd(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vl(n)}}function B$(e,t){var n=vl(t.value),r=vl(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 aP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function z$(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 a1(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z$(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nh,H$=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(nh=nh||document.createElement("div"),nh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pd={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},iz=["Webkit","ms","Moz","O"];Object.keys(Pd).forEach(function(e){iz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pd[t]=Pd[e]})});function j$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pd.hasOwnProperty(e)&&Pd[e]?(""+t).trim():t+"px"}function V$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=j$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var sz=$n({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 c1(e,t){if(t){if(sz[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function u1(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 d1=null;function Xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var f1=null,Rc=null,Oc=null;function cP(e){if(e=Nf(e)){if(typeof f1!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=ng(t),f1(e.stateNode,e.type,t))}}function U$(e){Rc?Oc?Oc.push(e):Oc=[e]:Rc=e}function W$(){if(Rc){var e=Rc,t=Oc;if(Oc=Rc=null,cP(e),t)for(e=0;e<t.length;e++)cP(t[e])}}function G$(e,t){return e(t)}function K$(){}var qy=!1;function q$(e,t,n){if(qy)return e(t,n);qy=!0;try{return G$(e,t,n)}finally{qy=!1,(Rc!==null||Oc!==null)&&(K$(),W$())}}function Kd(e,t){var n=e.stateNode;if(n===null)return null;var r=ng(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(Me(231,t,typeof n));return n}var p1=!1;if(vs)try{var Yu={};Object.defineProperty(Yu,"passive",{get:function(){p1=!0}}),window.addEventListener("test",Yu,Yu),window.removeEventListener("test",Yu,Yu)}catch(e){p1=!1}function lz(e,t,n,r,o,i,s,a,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var kd=!1,om=null,im=!1,h1=null,az={onError:function(e){kd=!0,om=e}};function cz(e,t,n,r,o,i,s,a,c){kd=!1,om=null,lz.apply(az,arguments)}function uz(e,t,n,r,o,i,s,a,c){if(cz.apply(this,arguments),kd){if(kd){var f=om;kd=!1,om=null}else throw Error(Me(198));im||(im=!0,h1=f)}}function Ta(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 Y$(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 uP(e){if(Ta(e)!==e)throw Error(Me(188))}function dz(e){var t=e.alternate;if(!t){if(t=Ta(e),t===null)throw Error(Me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return uP(o),e;if(i===r)return uP(o),t;i=i.sibling}throw Error(Me(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?e:t}function X$(e){return e=dz(e),e!==null?Q$(e):null}function Q$(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Q$(e);if(t!==null)return t;e=e.sibling}return null}var J$=co.unstable_scheduleCallback,dP=co.unstable_cancelCallback,fz=co.unstable_shouldYield,pz=co.unstable_requestPaint,Fn=co.unstable_now,hz=co.unstable_getCurrentPriorityLevel,Qb=co.unstable_ImmediatePriority,Z$=co.unstable_UserBlockingPriority,sm=co.unstable_NormalPriority,mz=co.unstable_LowPriority,eT=co.unstable_IdlePriority,Jm=null,Li=null;function gz(e){if(Li&&typeof Li.onCommitFiberRoot=="function")try{Li.onCommitFiberRoot(Jm,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ai=Math.clz32?Math.clz32:bz,vz=Math.log,yz=Math.LN2;function bz(e){return e>>>=0,e===0?32:31-(vz(e)/yz|0)|0}var rh=64,oh=4194304;function md(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 lm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=md(a):(i&=s,i!==0&&(r=md(i)))}else s=n&~o,s!==0?r=md(s):i!==0&&(r=md(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ai(t),o=1<<n,r|=e[n],t&=~o;return r}function wz(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 Cz(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-ai(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=wz(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function m1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tT(){var e=rh;return rh<<=1,!(rh&4194240)&&(rh=64),e}function Yy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Af(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ai(t),e[t]=n}function xz(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-ai(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Jb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ai(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Zt=0;function nT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rT,Zb,oT,iT,sT,g1=!1,ih=[],rl=null,ol=null,il=null,qd=new Map,Yd=new Map,Ys=[],Sz="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 fP(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":qd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yd.delete(t.pointerId)}}function Xu(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Nf(t),t!==null&&Zb(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ez(e,t,n,r,o){switch(t){case"focusin":return rl=Xu(rl,e,t,n,r,o),!0;case"dragenter":return ol=Xu(ol,e,t,n,r,o),!0;case"mouseover":return il=Xu(il,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return qd.set(i,Xu(qd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Yd.set(i,Xu(Yd.get(i)||null,e,t,n,r,o)),!0}return!1}function lT(e){var t=Jl(e.target);if(t!==null){var n=Ta(t);if(n!==null){if(t=n.tag,t===13){if(t=Y$(n),t!==null){e.blockedOn=t,sT(e.priority,function(){oT(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 Ah(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=v1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);d1=r,n.target.dispatchEvent(r),d1=null}else return t=Nf(n),t!==null&&Zb(t),e.blockedOn=n,!1;t.shift()}return!0}function pP(e,t,n){Ah(e)&&n.delete(t)}function Pz(){g1=!1,rl!==null&&Ah(rl)&&(rl=null),ol!==null&&Ah(ol)&&(ol=null),il!==null&&Ah(il)&&(il=null),qd.forEach(pP),Yd.forEach(pP)}function Qu(e,t){e.blockedOn===t&&(e.blockedOn=null,g1||(g1=!0,co.unstable_scheduleCallback(co.unstable_NormalPriority,Pz)))}function Xd(e){function t(o){return Qu(o,e)}if(0<ih.length){Qu(ih[0],e);for(var n=1;n<ih.length;n++){var r=ih[n];r.blockedOn===e&&(r.blockedOn=null)}}for(rl!==null&&Qu(rl,e),ol!==null&&Qu(ol,e),il!==null&&Qu(il,e),qd.forEach(t),Yd.forEach(t),n=0;n<Ys.length;n++)r=Ys[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ys.length&&(n=Ys[0],n.blockedOn===null);)lT(n),n.blockedOn===null&&Ys.shift()}var Lc=Ps.ReactCurrentBatchConfig,am=!0;function kz(e,t,n,r){var o=Zt,i=Lc.transition;Lc.transition=null;try{Zt=1,ew(e,t,n,r)}finally{Zt=o,Lc.transition=i}}function Iz(e,t,n,r){var o=Zt,i=Lc.transition;Lc.transition=null;try{Zt=4,ew(e,t,n,r)}finally{Zt=o,Lc.transition=i}}function ew(e,t,n,r){if(am){var o=v1(e,t,n,r);if(o===null)i0(e,t,r,cm,n),fP(e,r);else if(Ez(o,e,t,n,r))r.stopPropagation();else if(fP(e,r),t&4&&-1<Sz.indexOf(e)){for(;o!==null;){var i=Nf(o);if(i!==null&&rT(i),i=v1(e,t,n,r),i===null&&i0(e,t,r,cm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else i0(e,t,r,null,n)}}var cm=null;function v1(e,t,n,r){if(cm=null,e=Xb(r),e=Jl(e),e!==null)if(t=Ta(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Y$(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 cm=e,null}function aT(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(hz()){case Qb:return 1;case Z$:return 4;case sm:case mz:return 16;case eT:return 536870912;default:return 16}default:return 16}}var Qs=null,tw=null,Fh=null;function cT(){if(Fh)return Fh;var e,t=tw,n=t.length,r,o="value"in Qs?Qs.value:Qs.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Fh=o.slice(e,1<r?1-r:void 0)}function Nh(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 sh(){return!0}function hP(){return!1}function mo(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?sh:hP,this.isPropagationStopped=hP,this}return $n(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=sh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sh)},persist:function(){},isPersistent:sh}),t}var hu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nw=mo(hu),Ff=$n({},hu,{view:0,detail:0}),$z=mo(Ff),Xy,Qy,Ju,Zm=$n({},Ff,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rw,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!==Ju&&(Ju&&e.type==="mousemove"?(Xy=e.screenX-Ju.screenX,Qy=e.screenY-Ju.screenY):Qy=Xy=0,Ju=e),Xy)},movementY:function(e){return"movementY"in e?e.movementY:Qy}}),mP=mo(Zm),Tz=$n({},Zm,{dataTransfer:0}),Mz=mo(Tz),_z=$n({},Ff,{relatedTarget:0}),Jy=mo(_z),Rz=$n({},hu,{animationName:0,elapsedTime:0,pseudoElement:0}),Oz=mo(Rz),Lz=$n({},hu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Az=mo(Lz),Fz=$n({},hu,{data:0}),gP=mo(Fz),Nz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dz={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"},Bz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bz[e])?!!t[e]:!1}function rw(){return zz}var Hz=$n({},Ff,{key:function(e){if(e.key){var t=Nz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rw,charCode:function(e){return e.type==="keypress"?Nh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jz=mo(Hz),Vz=$n({},Zm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vP=mo(Vz),Uz=$n({},Ff,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rw}),Wz=mo(Uz),Gz=$n({},hu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kz=mo(Gz),qz=$n({},Zm,{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}),Yz=mo(qz),Xz=[9,13,27,32],ow=vs&&"CompositionEvent"in window,Id=null;vs&&"documentMode"in document&&(Id=document.documentMode);var Qz=vs&&"TextEvent"in window&&!Id,uT=vs&&(!ow||Id&&8<Id&&11>=Id),yP=String.fromCharCode(32),bP=!1;function dT(e,t){switch(e){case"keyup":return Xz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bc=!1;function Jz(e,t){switch(e){case"compositionend":return fT(t);case"keypress":return t.which!==32?null:(bP=!0,yP);case"textInput":return e=t.data,e===yP&&bP?null:e;default:return null}}function Zz(e,t){if(bc)return e==="compositionend"||!ow&&dT(e,t)?(e=cT(),Fh=tw=Qs=null,bc=!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 uT&&t.locale!=="ko"?null:t.data;default:return null}}var e6={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 wP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e6[e.type]:t==="textarea"}function pT(e,t,n,r){U$(r),t=um(t,"onChange"),0<t.length&&(n=new nw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $d=null,Qd=null;function t6(e){ET(e,0)}function eg(e){var t=xc(e);if(N$(t))return e}function n6(e,t){if(e==="change")return t}var hT=!1;if(vs){var Zy;if(vs){var e0="oninput"in document;if(!e0){var CP=document.createElement("div");CP.setAttribute("oninput","return;"),e0=typeof CP.oninput=="function"}Zy=e0}else Zy=!1;hT=Zy&&(!document.documentMode||9<document.documentMode)}function xP(){$d&&($d.detachEvent("onpropertychange",mT),Qd=$d=null)}function mT(e){if(e.propertyName==="value"&&eg(Qd)){var t=[];pT(t,Qd,e,Xb(e)),q$(t6,t)}}function r6(e,t,n){e==="focusin"?(xP(),$d=t,Qd=n,$d.attachEvent("onpropertychange",mT)):e==="focusout"&&xP()}function o6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eg(Qd)}function i6(e,t){if(e==="click")return eg(t)}function s6(e,t){if(e==="input"||e==="change")return eg(t)}function l6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var di=typeof Object.is=="function"?Object.is:l6;function Jd(e,t){if(di(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(!Z0.call(t,o)||!di(e[o],t[o]))return!1}return!0}function SP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function EP(e,t){var n=SP(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=SP(n)}}function gT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vT(){for(var e=window,t=rm();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=rm(e.document)}return t}function iw(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 a6(e){var t=vT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gT(n.ownerDocument.documentElement,n)){if(r!==null&&iw(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=EP(n,i);var s=EP(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var c6=vs&&"documentMode"in document&&11>=document.documentMode,wc=null,y1=null,Td=null,b1=!1;function PP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;b1||wc==null||wc!==rm(r)||(r=wc,"selectionStart"in r&&iw(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}),Td&&Jd(Td,r)||(Td=r,r=um(y1,"onSelect"),0<r.length&&(t=new nw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wc)))}function lh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cc={animationend:lh("Animation","AnimationEnd"),animationiteration:lh("Animation","AnimationIteration"),animationstart:lh("Animation","AnimationStart"),transitionend:lh("Transition","TransitionEnd")},t0={},yT={};vs&&(yT=document.createElement("div").style,"AnimationEvent"in window||(delete Cc.animationend.animation,delete Cc.animationiteration.animation,delete Cc.animationstart.animation),"TransitionEvent"in window||delete Cc.transitionend.transition);function tg(e){if(t0[e])return t0[e];if(!Cc[e])return e;var t=Cc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yT)return t0[e]=t[n];return e}var bT=tg("animationend"),wT=tg("animationiteration"),CT=tg("animationstart"),xT=tg("transitionend"),ST=new Map,kP="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 Il(e,t){ST.set(e,t),$a(t,[e])}for(var n0=0;n0<kP.length;n0++){var r0=kP[n0],u6=r0.toLowerCase(),d6=r0[0].toUpperCase()+r0.slice(1);Il(u6,"on"+d6)}Il(bT,"onAnimationEnd");Il(wT,"onAnimationIteration");Il(CT,"onAnimationStart");Il("dblclick","onDoubleClick");Il("focusin","onFocus");Il("focusout","onBlur");Il(xT,"onTransitionEnd");Wc("onMouseEnter",["mouseout","mouseover"]);Wc("onMouseLeave",["mouseout","mouseover"]);Wc("onPointerEnter",["pointerout","pointerover"]);Wc("onPointerLeave",["pointerout","pointerover"]);$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$a("onBeforeInput",["compositionend","keypress","textInput","paste"]);$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gd="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(" "),f6=new Set("cancel close invalid load scroll toggle".split(" ").concat(gd));function IP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uz(r,t,void 0,e),e.currentTarget=null}function ET(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,f=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;IP(o,a,f),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,f=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;IP(o,a,f),i=c}}}if(im)throw e=h1,im=!1,h1=null,e}function hn(e,t){var n=t[E1];n===void 0&&(n=t[E1]=new Set);var r=e+"__bubble";n.has(r)||(PT(t,e,2,!1),n.add(r))}function o0(e,t,n){var r=0;t&&(r|=4),PT(n,e,r,t)}var ah="_reactListening"+Math.random().toString(36).slice(2);function Zd(e){if(!e[ah]){e[ah]=!0,R$.forEach(function(n){n!=="selectionchange"&&(f6.has(n)||o0(n,!1,e),o0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ah]||(t[ah]=!0,o0("selectionchange",!1,t))}}function PT(e,t,n,r){switch(aT(t)){case 1:var o=kz;break;case 4:o=Iz;break;default:o=ew}n=o.bind(null,t,n,e),o=void 0,!p1||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 i0(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Jl(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}q$(function(){var f=i,p=Xb(n),h=[];e:{var m=ST.get(e);if(m!==void 0){var v=nw,b=e;switch(e){case"keypress":if(Nh(n)===0)break e;case"keydown":case"keyup":v=jz;break;case"focusin":b="focus",v=Jy;break;case"focusout":b="blur",v=Jy;break;case"beforeblur":case"afterblur":v=Jy;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=mP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Mz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Wz;break;case bT:case wT:case CT:v=Oz;break;case xT:v=Kz;break;case"scroll":v=$z;break;case"wheel":v=Yz;break;case"copy":case"cut":case"paste":v=Az;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=vP}var g=(t&4)!==0,S=!g&&e==="scroll",w=g?m!==null?m+"Capture":null:m;g=[];for(var P=f,C;P!==null;){C=P;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,w!==null&&(E=Kd(P,w),E!=null&&g.push(ef(P,E,C)))),S)break;P=P.return}0<g.length&&(m=new v(m,b,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==d1&&(b=n.relatedTarget||n.fromElement)&&(Jl(b)||b[ys]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?Jl(b):null,b!==null&&(S=Ta(b),b!==S||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(g=mP,E="onMouseLeave",w="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(g=vP,E="onPointerLeave",w="onPointerEnter",P="pointer"),S=v==null?m:xc(v),C=b==null?m:xc(b),m=new g(E,P+"leave",v,n,p),m.target=S,m.relatedTarget=C,E=null,Jl(p)===f&&(g=new g(w,P+"enter",b,n,p),g.target=C,g.relatedTarget=S,E=g),S=E,v&&b)t:{for(g=v,w=b,P=0,C=g;C;C=ec(C))P++;for(C=0,E=w;E;E=ec(E))C++;for(;0<P-C;)g=ec(g),P--;for(;0<C-P;)w=ec(w),C--;for(;P--;){if(g===w||w!==null&&g===w.alternate)break t;g=ec(g),w=ec(w)}g=null}else g=null;v!==null&&$P(h,m,v,g,!1),b!==null&&S!==null&&$P(h,S,b,g,!0)}}e:{if(m=f?xc(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var I=n6;else if(wP(m))if(hT)I=s6;else{I=o6;var T=r6}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(I=i6);if(I&&(I=I(e,f))){pT(h,I,n,p);break e}T&&T(e,m,f),e==="focusout"&&(T=m._wrapperState)&&T.controlled&&m.type==="number"&&s1(m,"number",m.value)}switch(T=f?xc(f):window,e){case"focusin":(wP(T)||T.contentEditable==="true")&&(wc=T,y1=f,Td=null);break;case"focusout":Td=y1=wc=null;break;case"mousedown":b1=!0;break;case"contextmenu":case"mouseup":case"dragend":b1=!1,PP(h,n,p);break;case"selectionchange":if(c6)break;case"keydown":case"keyup":PP(h,n,p)}var k;if(ow)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else bc?dT(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(uT&&n.locale!=="ko"&&(bc||$!=="onCompositionStart"?$==="onCompositionEnd"&&bc&&(k=cT()):(Qs=p,tw="value"in Qs?Qs.value:Qs.textContent,bc=!0)),T=um(f,$),0<T.length&&($=new gP($,e,null,n,p),h.push({event:$,listeners:T}),k?$.data=k:(k=fT(n),k!==null&&($.data=k)))),(k=Qz?Jz(e,n):Zz(e,n))&&(f=um(f,"onBeforeInput"),0<f.length&&(p=new gP("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:f}),p.data=k))}ET(h,t)})}function ef(e,t,n){return{instance:e,listener:t,currentTarget:n}}function um(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Kd(e,n),i!=null&&r.unshift(ef(e,i,o)),i=Kd(e,t),i!=null&&r.push(ef(e,i,o))),e=e.return}return r}function ec(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $P(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,f=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&f!==null&&(a=f,o?(c=Kd(n,i),c!=null&&s.unshift(ef(n,c,a))):o||(c=Kd(n,i),c!=null&&s.push(ef(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var p6=/\r\n?/g,h6=/\u0000|\uFFFD/g;function TP(e){return(typeof e=="string"?e:""+e).replace(p6,`
30
+ `).replace(h6,"")}function ch(e,t,n){if(t=TP(t),TP(e)!==t&&n)throw Error(Me(425))}function dm(){}var w1=null,C1=null;function x1(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 S1=typeof setTimeout=="function"?setTimeout:void 0,m6=typeof clearTimeout=="function"?clearTimeout:void 0,MP=typeof Promise=="function"?Promise:void 0,g6=typeof queueMicrotask=="function"?queueMicrotask:typeof MP!="undefined"?function(e){return MP.resolve(null).then(e).catch(v6)}:S1;function v6(e){setTimeout(function(){throw e})}function s0(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),Xd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Xd(t)}function sl(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 _P(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 mu=Math.random().toString(36).slice(2),Ri="__reactFiber$"+mu,tf="__reactProps$"+mu,ys="__reactContainer$"+mu,E1="__reactEvents$"+mu,y6="__reactListeners$"+mu,b6="__reactHandles$"+mu;function Jl(e){var t=e[Ri];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ys]||n[Ri]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_P(e);e!==null;){if(n=e[Ri])return n;e=_P(e)}return t}e=n,n=e.parentNode}return null}function Nf(e){return e=e[Ri]||e[ys],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function ng(e){return e[tf]||null}var P1=[],Sc=-1;function $l(e){return{current:e}}function mn(e){0>Sc||(e.current=P1[Sc],P1[Sc]=null,Sc--)}function cn(e,t){Sc++,P1[Sc]=e.current,e.current=t}var yl={},Cr=$l(yl),Vr=$l(!1),ha=yl;function Gc(e,t){var n=e.type.contextTypes;if(!n)return yl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ur(e){return e=e.childContextTypes,e!=null}function fm(){mn(Vr),mn(Cr)}function RP(e,t,n){if(Cr.current!==yl)throw Error(Me(168));cn(Cr,t),cn(Vr,n)}function kT(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(Me(108,rz(e)||"Unknown",o));return $n({},n,r)}function pm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yl,ha=Cr.current,cn(Cr,e),cn(Vr,Vr.current),!0}function OP(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=kT(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,mn(Vr),mn(Cr),cn(Cr,e)):mn(Vr),cn(Vr,n)}var as=null,rg=!1,l0=!1;function IT(e){as===null?as=[e]:as.push(e)}function w6(e){rg=!0,IT(e)}function Tl(){if(!l0&&as!==null){l0=!0;var e=0,t=Zt;try{var n=as;for(Zt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}as=null,rg=!1}catch(o){throw as!==null&&(as=as.slice(e+1)),J$(Qb,Tl),o}finally{Zt=t,l0=!1}}return null}var Ec=[],Pc=0,hm=null,mm=0,_o=[],Ro=0,ma=null,cs=1,us="";function Gl(e,t){Ec[Pc++]=mm,Ec[Pc++]=hm,hm=e,mm=t}function $T(e,t,n){_o[Ro++]=cs,_o[Ro++]=us,_o[Ro++]=ma,ma=e;var r=cs;e=us;var o=32-ai(r)-1;r&=~(1<<o),n+=1;var i=32-ai(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,cs=1<<32-ai(t)+o|n<<o|r,us=i+e}else cs=1<<i|n<<o|r,us=e}function sw(e){e.return!==null&&(Gl(e,1),$T(e,1,0))}function lw(e){for(;e===hm;)hm=Ec[--Pc],Ec[Pc]=null,mm=Ec[--Pc],Ec[Pc]=null;for(;e===ma;)ma=_o[--Ro],_o[Ro]=null,us=_o[--Ro],_o[Ro]=null,cs=_o[--Ro],_o[Ro]=null}var lo=null,so=null,bn=!1,ii=null;function TT(e,t){var n=Ao(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 LP(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,lo=e,so=sl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lo=e,so=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ma!==null?{id:cs,overflow:us}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ao(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lo=e,so=null,!0):!1;default:return!1}}function k1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function I1(e){if(bn){var t=so;if(t){var n=t;if(!LP(e,t)){if(k1(e))throw Error(Me(418));t=sl(n.nextSibling);var r=lo;t&&LP(e,t)?TT(r,n):(e.flags=e.flags&-4097|2,bn=!1,lo=e)}}else{if(k1(e))throw Error(Me(418));e.flags=e.flags&-4097|2,bn=!1,lo=e}}}function AP(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lo=e}function uh(e){if(e!==lo)return!1;if(!bn)return AP(e),bn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!x1(e.type,e.memoizedProps)),t&&(t=so)){if(k1(e))throw MT(),Error(Me(418));for(;t;)TT(e,t),t=sl(t.nextSibling)}if(AP(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){so=sl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}so=null}}else so=lo?sl(e.stateNode.nextSibling):null;return!0}function MT(){for(var e=so;e;)e=sl(e.nextSibling)}function Kc(){so=lo=null,bn=!1}function aw(e){ii===null?ii=[e]:ii.push(e)}var C6=Ps.ReactCurrentBatchConfig;function ni(e,t){if(e&&e.defaultProps){t=$n({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var gm=$l(null),vm=null,kc=null,cw=null;function uw(){cw=kc=vm=null}function dw(e){var t=gm.current;mn(gm),e._currentValue=t}function $1(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 Ac(e,t){vm=e,cw=kc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(jr=!0),e.firstContext=null)}function Ho(e){var t=e._currentValue;if(cw!==e)if(e={context:e,memoizedValue:t,next:null},kc===null){if(vm===null)throw Error(Me(308));kc=e,vm.dependencies={lanes:0,firstContext:e}}else kc=kc.next=e;return t}var Zl=null;function fw(e){Zl===null?Zl=[e]:Zl.push(e)}function _T(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,fw(t)):(n.next=o.next,o.next=n),t.interleaved=n,bs(e,r)}function bs(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 Ws=!1;function pw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RT(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 ps(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ll(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,bs(e,n)}return o=r.interleaved,o===null?(t.next=t,fw(r)):(t.next=o.next,o.next=t),r.interleaved=t,bs(e,n)}function Dh(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,Jb(e,n)}}function FP(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ym(e,t,n,r){var o=e.updateQueue;Ws=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,f=c.next;c.next=null,s===null?i=f:s.next=f,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=f:a.next=f,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=f=c=null,a=i;do{var m=a.lane,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(m=t,v=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=$n({},h,m);break e;case 2:Ws=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(f=p=v,c=h):p=p.next=v,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=f,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);va|=s,e.lanes=s,e.memoizedState=h}}function NP(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(Me(191,o));o.call(r)}}}var OT=new _$.Component().refs;function T1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:$n({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var og={isMounted:function(e){return(e=e._reactInternals)?Ta(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tr(),o=cl(e),i=ps(r,o);i.payload=t,n!=null&&(i.callback=n),t=ll(e,i,o),t!==null&&(ci(t,e,o,r),Dh(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tr(),o=cl(e),i=ps(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ll(e,i,o),t!==null&&(ci(t,e,o,r),Dh(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tr(),r=cl(e),o=ps(n,r);o.tag=2,t!=null&&(o.callback=t),t=ll(e,o,r),t!==null&&(ci(t,e,r,n),Dh(t,e,r))}};function DP(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Jd(n,r)||!Jd(o,i):!0}function LT(e,t,n){var r=!1,o=yl,i=t.contextType;return typeof i=="object"&&i!==null?i=Ho(i):(o=Ur(t)?ha:Cr.current,r=t.contextTypes,i=(r=r!=null)?Gc(e,o):yl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=og,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function BP(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&&og.enqueueReplaceState(t,t.state,null)}function M1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=OT,pw(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ho(i):(i=Ur(t)?ha:Cr.current,o.context=Gc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(T1(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&og.enqueueReplaceState(o,o.state,null),ym(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Zu(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(Me(309));var r=n.stateNode}if(!r)throw Error(Me(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===OT&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,e))}return e}function dh(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zP(e){var t=e._init;return t(e._payload)}function AT(e){function t(w,P){if(e){var C=w.deletions;C===null?(w.deletions=[P],w.flags|=16):C.push(P)}}function n(w,P){if(!e)return null;for(;P!==null;)t(w,P),P=P.sibling;return null}function r(w,P){for(w=new Map;P!==null;)P.key!==null?w.set(P.key,P):w.set(P.index,P),P=P.sibling;return w}function o(w,P){return w=ul(w,P),w.index=0,w.sibling=null,w}function i(w,P,C){return w.index=C,e?(C=w.alternate,C!==null?(C=C.index,C<P?(w.flags|=2,P):C):(w.flags|=2,P)):(w.flags|=1048576,P)}function s(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,P,C,E){return P===null||P.tag!==6?(P=h0(C,w.mode,E),P.return=w,P):(P=o(P,C),P.return=w,P)}function c(w,P,C,E){var I=C.type;return I===yc?p(w,P,C.props.children,E,C.key):P!==null&&(P.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Us&&zP(I)===P.type)?(E=o(P,C.props),E.ref=Zu(w,P,C),E.return=w,E):(E=Uh(C.type,C.key,C.props,null,w.mode,E),E.ref=Zu(w,P,C),E.return=w,E)}function f(w,P,C,E){return P===null||P.tag!==4||P.stateNode.containerInfo!==C.containerInfo||P.stateNode.implementation!==C.implementation?(P=m0(C,w.mode,E),P.return=w,P):(P=o(P,C.children||[]),P.return=w,P)}function p(w,P,C,E,I){return P===null||P.tag!==7?(P=aa(C,w.mode,E,I),P.return=w,P):(P=o(P,C),P.return=w,P)}function h(w,P,C){if(typeof P=="string"&&P!==""||typeof P=="number")return P=h0(""+P,w.mode,C),P.return=w,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case eh:return C=Uh(P.type,P.key,P.props,null,w.mode,C),C.ref=Zu(w,null,P),C.return=w,C;case vc:return P=m0(P,w.mode,C),P.return=w,P;case Us:var E=P._init;return h(w,E(P._payload),C)}if(hd(P)||qu(P))return P=aa(P,w.mode,C,null),P.return=w,P;dh(w,P)}return null}function m(w,P,C,E){var I=P!==null?P.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return I!==null?null:a(w,P,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case eh:return C.key===I?c(w,P,C,E):null;case vc:return C.key===I?f(w,P,C,E):null;case Us:return I=C._init,m(w,P,I(C._payload),E)}if(hd(C)||qu(C))return I!==null?null:p(w,P,C,E,null);dh(w,C)}return null}function v(w,P,C,E,I){if(typeof E=="string"&&E!==""||typeof E=="number")return w=w.get(C)||null,a(P,w,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case eh:return w=w.get(E.key===null?C:E.key)||null,c(P,w,E,I);case vc:return w=w.get(E.key===null?C:E.key)||null,f(P,w,E,I);case Us:var T=E._init;return v(w,P,C,T(E._payload),I)}if(hd(E)||qu(E))return w=w.get(C)||null,p(P,w,E,I,null);dh(P,E)}return null}function b(w,P,C,E){for(var I=null,T=null,k=P,$=P=0,R=null;k!==null&&$<C.length;$++){k.index>$?(R=k,k=null):R=k.sibling;var O=m(w,k,C[$],E);if(O===null){k===null&&(k=R);break}e&&k&&O.alternate===null&&t(w,k),P=i(O,P,$),T===null?I=O:T.sibling=O,T=O,k=R}if($===C.length)return n(w,k),bn&&Gl(w,$),I;if(k===null){for(;$<C.length;$++)k=h(w,C[$],E),k!==null&&(P=i(k,P,$),T===null?I=k:T.sibling=k,T=k);return bn&&Gl(w,$),I}for(k=r(w,k);$<C.length;$++)R=v(k,w,$,C[$],E),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?$:R.key),P=i(R,P,$),T===null?I=R:T.sibling=R,T=R);return e&&k.forEach(function(N){return t(w,N)}),bn&&Gl(w,$),I}function g(w,P,C,E){var I=qu(C);if(typeof I!="function")throw Error(Me(150));if(C=I.call(C),C==null)throw Error(Me(151));for(var T=I=null,k=P,$=P=0,R=null,O=C.next();k!==null&&!O.done;$++,O=C.next()){k.index>$?(R=k,k=null):R=k.sibling;var N=m(w,k,O.value,E);if(N===null){k===null&&(k=R);break}e&&k&&N.alternate===null&&t(w,k),P=i(N,P,$),T===null?I=N:T.sibling=N,T=N,k=R}if(O.done)return n(w,k),bn&&Gl(w,$),I;if(k===null){for(;!O.done;$++,O=C.next())O=h(w,O.value,E),O!==null&&(P=i(O,P,$),T===null?I=O:T.sibling=O,T=O);return bn&&Gl(w,$),I}for(k=r(w,k);!O.done;$++,O=C.next())O=v(k,w,$,O.value,E),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?$:O.key),P=i(O,P,$),T===null?I=O:T.sibling=O,T=O);return e&&k.forEach(function(U){return t(w,U)}),bn&&Gl(w,$),I}function S(w,P,C,E){if(typeof C=="object"&&C!==null&&C.type===yc&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case eh:e:{for(var I=C.key,T=P;T!==null;){if(T.key===I){if(I=C.type,I===yc){if(T.tag===7){n(w,T.sibling),P=o(T,C.props.children),P.return=w,w=P;break e}}else if(T.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Us&&zP(I)===T.type){n(w,T.sibling),P=o(T,C.props),P.ref=Zu(w,T,C),P.return=w,w=P;break e}n(w,T);break}else t(w,T);T=T.sibling}C.type===yc?(P=aa(C.props.children,w.mode,E,C.key),P.return=w,w=P):(E=Uh(C.type,C.key,C.props,null,w.mode,E),E.ref=Zu(w,P,C),E.return=w,w=E)}return s(w);case vc:e:{for(T=C.key;P!==null;){if(P.key===T)if(P.tag===4&&P.stateNode.containerInfo===C.containerInfo&&P.stateNode.implementation===C.implementation){n(w,P.sibling),P=o(P,C.children||[]),P.return=w,w=P;break e}else{n(w,P);break}else t(w,P);P=P.sibling}P=m0(C,w.mode,E),P.return=w,w=P}return s(w);case Us:return T=C._init,S(w,P,T(C._payload),E)}if(hd(C))return b(w,P,C,E);if(qu(C))return g(w,P,C,E);dh(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,P!==null&&P.tag===6?(n(w,P.sibling),P=o(P,C),P.return=w,w=P):(n(w,P),P=h0(C,w.mode,E),P.return=w,w=P),s(w)):n(w,P)}return S}var qc=AT(!0),FT=AT(!1),Df={},Ai=$l(Df),nf=$l(Df),rf=$l(Df);function ea(e){if(e===Df)throw Error(Me(174));return e}function hw(e,t){switch(cn(rf,t),cn(nf,e),cn(Ai,Df),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:a1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=a1(t,e)}mn(Ai),cn(Ai,t)}function Yc(){mn(Ai),mn(nf),mn(rf)}function NT(e){ea(rf.current);var t=ea(Ai.current),n=a1(t,e.type);t!==n&&(cn(nf,e),cn(Ai,n))}function mw(e){nf.current===e&&(mn(Ai),mn(nf))}var En=$l(0);function bm(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 a0=[];function gw(){for(var e=0;e<a0.length;e++)a0[e]._workInProgressVersionPrimary=null;a0.length=0}var Bh=Ps.ReactCurrentDispatcher,c0=Ps.ReactCurrentBatchConfig,ga=0,In=null,Kn=null,Qn=null,wm=!1,Md=!1,of=0,x6=0;function dr(){throw Error(Me(321))}function vw(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!di(e[n],t[n]))return!1;return!0}function yw(e,t,n,r,o,i){if(ga=i,In=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bh.current=e===null||e.memoizedState===null?k6:I6,e=n(r,o),Md){i=0;do{if(Md=!1,of=0,25<=i)throw Error(Me(301));i+=1,Qn=Kn=null,t.updateQueue=null,Bh.current=$6,e=n(r,o)}while(Md)}if(Bh.current=Cm,t=Kn!==null&&Kn.next!==null,ga=0,Qn=Kn=In=null,wm=!1,t)throw Error(Me(300));return e}function bw(){var e=of!==0;return of=0,e}function Si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qn===null?In.memoizedState=Qn=e:Qn=Qn.next=e,Qn}function jo(){if(Kn===null){var e=In.alternate;e=e!==null?e.memoizedState:null}else e=Kn.next;var t=Qn===null?In.memoizedState:Qn.next;if(t!==null)Qn=t,Kn=e;else{if(e===null)throw Error(Me(310));Kn=e,e={memoizedState:Kn.memoizedState,baseState:Kn.baseState,baseQueue:Kn.baseQueue,queue:Kn.queue,next:null},Qn===null?In.memoizedState=Qn=e:Qn=Qn.next=e}return Qn}function sf(e,t){return typeof t=="function"?t(e):t}function u0(e){var t=jo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=Kn,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,f=i;do{var p=f.lane;if((ga&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,In.lanes|=p,va|=p}f=f.next}while(f!==null&&f!==i);c===null?s=r:c.next=a,di(r,t.memoizedState)||(jr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,In.lanes|=i,va|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function d0(e){var t=jo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);di(i,t.memoizedState)||(jr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function DT(){}function BT(e,t){var n=In,r=jo(),o=t(),i=!di(r.memoizedState,o);if(i&&(r.memoizedState=o,jr=!0),r=r.queue,ww(jT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Qn!==null&&Qn.memoizedState.tag&1){if(n.flags|=2048,lf(9,HT.bind(null,n,r,o,t),void 0,null),Zn===null)throw Error(Me(349));ga&30||zT(n,t,o)}return o}function zT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=In.updateQueue,t===null?(t={lastEffect:null,stores:null},In.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function HT(e,t,n,r){t.value=n,t.getSnapshot=r,VT(t)&&UT(e)}function jT(e,t,n){return n(function(){VT(t)&&UT(e)})}function VT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!di(e,n)}catch(r){return!0}}function UT(e){var t=bs(e,1);t!==null&&ci(t,e,1,-1)}function HP(e){var t=Si();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:e},t.queue=e,e=e.dispatch=P6.bind(null,In,e),[t.memoizedState,e]}function lf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=In.updateQueue,t===null?(t={lastEffect:null,stores:null},In.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 WT(){return jo().memoizedState}function zh(e,t,n,r){var o=Si();In.flags|=e,o.memoizedState=lf(1|t,n,void 0,r===void 0?null:r)}function ig(e,t,n,r){var o=jo();r=r===void 0?null:r;var i=void 0;if(Kn!==null){var s=Kn.memoizedState;if(i=s.destroy,r!==null&&vw(r,s.deps)){o.memoizedState=lf(t,n,i,r);return}}In.flags|=e,o.memoizedState=lf(1|t,n,i,r)}function jP(e,t){return zh(8390656,8,e,t)}function ww(e,t){return ig(2048,8,e,t)}function GT(e,t){return ig(4,2,e,t)}function KT(e,t){return ig(4,4,e,t)}function qT(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 YT(e,t,n){return n=n!=null?n.concat([e]):null,ig(4,4,qT.bind(null,t,e),n)}function Cw(){}function XT(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function QT(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vw(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function JT(e,t,n){return ga&21?(di(n,t)||(n=tT(),In.lanes|=n,va|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,jr=!0),e.memoizedState=n)}function S6(e,t){var n=Zt;Zt=n!==0&&4>n?n:4,e(!0);var r=c0.transition;c0.transition={};try{e(!1),t()}finally{Zt=n,c0.transition=r}}function ZT(){return jo().memoizedState}function E6(e,t,n){var r=cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eM(e))tM(t,n);else if(n=_T(e,t,n,r),n!==null){var o=Tr();ci(n,e,r,o),nM(n,t,r)}}function P6(e,t,n){var r=cl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eM(e))tM(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,di(a,s)){var c=t.interleaved;c===null?(o.next=o,fw(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(f){}finally{}n=_T(e,t,o,r),n!==null&&(o=Tr(),ci(n,e,r,o),nM(n,t,r))}}function eM(e){var t=e.alternate;return e===In||t!==null&&t===In}function tM(e,t){Md=wm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Jb(e,n)}}var Cm={readContext:Ho,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},k6={readContext:Ho,useCallback:function(e,t){return Si().memoizedState=[e,t===void 0?null:t],e},useContext:Ho,useEffect:jP,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zh(4194308,4,qT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zh(4194308,4,e,t)},useInsertionEffect:function(e,t){return zh(4,2,e,t)},useMemo:function(e,t){var n=Si();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Si();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=E6.bind(null,In,e),[r.memoizedState,e]},useRef:function(e){var t=Si();return e={current:e},t.memoizedState=e},useState:HP,useDebugValue:Cw,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=HP(!1),t=e[0];return e=S6.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=In,o=Si();if(bn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Zn===null)throw Error(Me(349));ga&30||zT(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,jP(jT.bind(null,r,i,e),[e]),r.flags|=2048,lf(9,HT.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Si(),t=Zn.identifierPrefix;if(bn){var n=us,r=cs;n=(r&~(1<<32-ai(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=of++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=x6++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},I6={readContext:Ho,useCallback:XT,useContext:Ho,useEffect:ww,useImperativeHandle:YT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:u0,useRef:WT,useState:function(){return u0(sf)},useDebugValue:Cw,useDeferredValue:function(e){var t=jo();return JT(t,Kn.memoizedState,e)},useTransition:function(){var e=u0(sf)[0],t=jo().memoizedState;return[e,t]},useMutableSource:DT,useSyncExternalStore:BT,useId:ZT,unstable_isNewReconciler:!1},$6={readContext:Ho,useCallback:XT,useContext:Ho,useEffect:ww,useImperativeHandle:YT,useInsertionEffect:GT,useLayoutEffect:KT,useMemo:QT,useReducer:d0,useRef:WT,useState:function(){return d0(sf)},useDebugValue:Cw,useDeferredValue:function(e){var t=jo();return Kn===null?t.memoizedState=e:JT(t,Kn.memoizedState,e)},useTransition:function(){var e=d0(sf)[0],t=jo().memoizedState;return[e,t]},useMutableSource:DT,useSyncExternalStore:BT,useId:ZT,unstable_isNewReconciler:!1};function Xc(e,t){try{var n="",r=t;do n+=nz(r),r=r.return;while(r);var o=n}catch(i){o=`
31
+ Error generating stack: `+i.message+`
32
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function f0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function _1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var T6=typeof WeakMap=="function"?WeakMap:Map;function rM(e,t,n){n=ps(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sm||(Sm=!0,H1=r),_1(e,t)},n}function oM(e,t,n){n=ps(-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(){_1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){_1(e,t),typeof r!="function"&&(al===null?al=new Set([this]):al.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function VP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new T6;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=V6.bind(null,e,t,n),t.then(e,e))}function UP(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 WP(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=ps(-1,1),t.tag=2,ll(n,t,1))),n.lanes|=1),e)}var M6=Ps.ReactCurrentOwner,jr=!1;function kr(e,t,n,r){t.child=e===null?FT(t,null,n,r):qc(t,e.child,n,r)}function GP(e,t,n,r,o){n=n.render;var i=t.ref;return Ac(t,o),r=yw(e,t,n,r,i,o),n=bw(),e!==null&&!jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ws(e,t,o)):(bn&&n&&sw(t),t.flags|=1,kr(e,t,r,o),t.child)}function KP(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Tw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,iM(e,t,i,r,o)):(e=Uh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Jd,n(s,r)&&e.ref===t.ref)return ws(e,t,o)}return t.flags|=1,e=ul(i,r),e.ref=t.ref,e.return=t,t.child=e}function iM(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Jd(i,r)&&e.ref===t.ref)if(jr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(jr=!0);else return t.lanes=e.lanes,ws(e,t,o)}return R1(e,t,n,r,o)}function sM(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},cn($c,ro),ro|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,cn($c,ro),ro|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,cn($c,ro),ro|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,cn($c,ro),ro|=r;return kr(e,t,o,n),t.child}function lM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function R1(e,t,n,r,o){var i=Ur(n)?ha:Cr.current;return i=Gc(t,i),Ac(t,o),n=yw(e,t,n,r,i,o),r=bw(),e!==null&&!jr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ws(e,t,o)):(bn&&r&&sw(t),t.flags|=1,kr(e,t,n,o),t.child)}function qP(e,t,n,r,o){if(Ur(n)){var i=!0;pm(t)}else i=!1;if(Ac(t,o),t.stateNode===null)Hh(e,t),LT(t,n,r),M1(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Ho(f):(f=Ur(n)?ha:Cr.current,f=Gc(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==f)&&BP(t,s,r,f),Ws=!1;var m=t.memoizedState;s.state=m,ym(t,r,s,o),c=t.memoizedState,a!==r||m!==c||Vr.current||Ws?(typeof p=="function"&&(T1(t,n,p,r),c=t.memoizedState),(a=Ws||DP(t,n,a,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,RT(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:ni(t.type,a),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ho(c):(c=Ur(n)?ha:Cr.current,c=Gc(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&BP(t,s,r,c),Ws=!1,m=t.memoizedState,s.state=m,ym(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||Vr.current||Ws?(typeof v=="function"&&(T1(t,n,v,r),b=t.memoizedState),(f=Ws||DP(t,n,f,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=c,r=f):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return O1(e,t,n,r,i,o)}function O1(e,t,n,r,o,i){lM(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&OP(t,n,!1),ws(e,t,i);r=t.stateNode,M6.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=qc(t,e.child,null,i),t.child=qc(t,null,a,i)):kr(e,t,a,i),t.memoizedState=r.state,o&&OP(t,n,!0),t.child}function aM(e){var t=e.stateNode;t.pendingContext?RP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&RP(e,t.context,!1),hw(e,t.containerInfo)}function YP(e,t,n,r,o){return Kc(),aw(o),t.flags|=256,kr(e,t,n,r),t.child}var L1={dehydrated:null,treeContext:null,retryLane:0};function A1(e){return{baseLanes:e,cachePool:null,transitions:null}}function cM(e,t,n){var r=t.pendingProps,o=En.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),cn(En,o&1),e===null)return I1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=ag(s,r,0,null),e=aa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=A1(n),t.memoizedState=L1,e):xw(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return _6(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ul(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=ul(a,i):(i=aa(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?A1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=L1,r}return i=e.child,e=i.sibling,r=ul(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xw(e,t){return t=ag({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fh(e,t,n,r){return r!==null&&aw(r),qc(t,e.child,null,n),e=xw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _6(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=f0(Error(Me(422))),fh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ag({mode:"visible",children:r.children},o,0,null),i=aa(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&qc(t,e.child,null,s),t.child.memoizedState=A1(s),t.memoizedState=L1,i);if(!(t.mode&1))return fh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Me(419)),r=f0(i,r,void 0),fh(e,t,s,r)}if(a=(s&e.childLanes)!==0,jr||a){if(r=Zn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,bs(e,o),ci(r,e,o,-1))}return $w(),r=f0(Error(Me(421))),fh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=U6.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,so=sl(o.nextSibling),lo=t,bn=!0,ii=null,e!==null&&(_o[Ro++]=cs,_o[Ro++]=us,_o[Ro++]=ma,cs=e.id,us=e.overflow,ma=t),t=xw(t,r.children),t.flags|=4096,t)}function XP(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$1(e.return,t,n)}function p0(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function uM(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(kr(e,t,r.children,n),r=En.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&&XP(e,n,t);else if(e.tag===19)XP(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(cn(En,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&&bm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),p0(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&bm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}p0(t,!0,n,null,i);break;case"together":p0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ws(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),va|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=ul(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ul(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function R6(e,t,n){switch(t.tag){case 3:aM(t),Kc();break;case 5:NT(t);break;case 1:Ur(t.type)&&pm(t);break;case 4:hw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;cn(gm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(cn(En,En.current&1),t.flags|=128,null):n&t.child.childLanes?cM(e,t,n):(cn(En,En.current&1),e=ws(e,t,n),e!==null?e.sibling:null);cn(En,En.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uM(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),cn(En,En.current),r)break;return null;case 22:case 23:return t.lanes=0,sM(e,t,n)}return ws(e,t,n)}var dM,F1,fM,pM;dM=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}};F1=function(){};fM=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ea(Ai.current);var i=null;switch(n){case"input":o=o1(e,o),r=o1(e,r),i=[];break;case"select":o=$n({},o,{value:void 0}),r=$n({},r,{value:void 0}),i=[];break;case"textarea":o=l1(e,o),r=l1(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dm)}c1(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var a=o[f];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Wd.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(a=o!=null?o[f]:void 0,r.hasOwnProperty(f)&&c!==a&&(c!=null||a!=null))if(f==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Wd.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&hn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};pM=function(e,t,n,r){n!==r&&(t.flags|=4)};function ed(e,t){if(!bn)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 fr(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 O6(e,t,n){var r=t.pendingProps;switch(lw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(t),null;case 1:return Ur(t.type)&&fm(),fr(t),null;case 3:return r=t.stateNode,Yc(),mn(Vr),mn(Cr),gw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(uh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ii!==null&&(U1(ii),ii=null))),F1(e,t),fr(t),null;case 5:mw(t);var o=ea(rf.current);if(n=t.type,e!==null&&t.stateNode!=null)fM(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return fr(t),null}if(e=ea(Ai.current),uh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ri]=t,r[tf]=i,e=(t.mode&1)!==0,n){case"dialog":hn("cancel",r),hn("close",r);break;case"iframe":case"object":case"embed":hn("load",r);break;case"video":case"audio":for(o=0;o<gd.length;o++)hn(gd[o],r);break;case"source":hn("error",r);break;case"img":case"image":case"link":hn("error",r),hn("load",r);break;case"details":hn("toggle",r);break;case"input":iP(r,i),hn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},hn("invalid",r);break;case"textarea":lP(r,i),hn("invalid",r)}c1(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ch(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ch(r.textContent,a,e),o=["children",""+a]):Wd.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&hn("scroll",r)}switch(n){case"input":th(r),sP(r,i,!0);break;case"textarea":th(r),aP(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=dm)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=z$(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ri]=t,e[tf]=r,dM(e,t,!1,!1),t.stateNode=e;e:{switch(s=u1(n,r),n){case"dialog":hn("cancel",e),hn("close",e),o=r;break;case"iframe":case"object":case"embed":hn("load",e),o=r;break;case"video":case"audio":for(o=0;o<gd.length;o++)hn(gd[o],e);o=r;break;case"source":hn("error",e),o=r;break;case"img":case"image":case"link":hn("error",e),hn("load",e),o=r;break;case"details":hn("toggle",e),o=r;break;case"input":iP(e,r),o=o1(e,r),hn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$n({},r,{value:void 0}),hn("invalid",e);break;case"textarea":lP(e,r),o=l1(e,r),hn("invalid",e);break;default:o=r}c1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?V$(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&H$(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Gd(e,c):typeof c=="number"&&Gd(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Wd.hasOwnProperty(i)?c!=null&&i==="onScroll"&&hn("scroll",e):c!=null&&Gb(e,i,c,s))}switch(n){case"input":th(e),sP(e,r,!1);break;case"textarea":th(e),aP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_c(e,!!r.multiple,i,!1):r.defaultValue!=null&&_c(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=dm)}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 fr(t),null;case 6:if(e&&t.stateNode!=null)pM(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=ea(rf.current),ea(Ai.current),uh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ri]=t,(i=r.nodeValue!==n)&&(e=lo,e!==null))switch(e.tag){case 3:ch(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ch(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ri]=t,t.stateNode=r}return fr(t),null;case 13:if(mn(En),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(bn&&so!==null&&t.mode&1&&!(t.flags&128))MT(),Kc(),t.flags|=98560,i=!1;else if(i=uh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Me(317));i[Ri]=t}else Kc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fr(t),i=!1}else ii!==null&&(U1(ii),ii=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||En.current&1?qn===0&&(qn=3):$w())),t.updateQueue!==null&&(t.flags|=4),fr(t),null);case 4:return Yc(),F1(e,t),e===null&&Zd(t.stateNode.containerInfo),fr(t),null;case 10:return dw(t.type._context),fr(t),null;case 17:return Ur(t.type)&&fm(),fr(t),null;case 19:if(mn(En),i=t.memoizedState,i===null)return fr(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ed(i,!1);else{if(qn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=bm(e),s!==null){for(t.flags|=128,ed(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return cn(En,En.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fn()>Qc&&(t.flags|=128,r=!0,ed(i,!1),t.lanes=4194304)}else{if(!r)if(e=bm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ed(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!bn)return fr(t),null}else 2*Fn()-i.renderingStartTime>Qc&&n!==1073741824&&(t.flags|=128,r=!0,ed(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fn(),t.sibling=null,n=En.current,cn(En,r?n&1|2:n&1),t):(fr(t),null);case 22:case 23:return Iw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ro&1073741824&&(fr(t),t.subtreeFlags&6&&(t.flags|=8192)):fr(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function L6(e,t){switch(lw(t),t.tag){case 1:return Ur(t.type)&&fm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yc(),mn(Vr),mn(Cr),gw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mw(t),null;case 13:if(mn(En),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Kc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mn(En),null;case 4:return Yc(),null;case 10:return dw(t.type._context),null;case 22:case 23:return Iw(),null;case 24:return null;default:return null}}var ph=!1,mr=!1,A6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Ic(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mn(e,t,r)}else n.current=null}function N1(e,t,n){try{n()}catch(r){Mn(e,t,r)}}var QP=!1;function F6(e,t){if(w1=am,e=vT(),iw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(E){n=null;break e}var s=0,a=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(C1={focusedElem:e,selectionRange:n},am=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,S=b.memoizedState,w=t.stateNode,P=w.getSnapshotBeforeUpdate(t.elementType===t.type?g:ni(t.type,g),S);w.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Mn(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return b=QP,QP=!1,b}function _d(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&N1(t,n,i)}o=o.next}while(o!==r)}}function sg(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 D1(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 hM(e){var t=e.alternate;t!==null&&(e.alternate=null,hM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ri],delete t[tf],delete t[E1],delete t[y6],delete t[b6])),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 mM(e){return e.tag===5||e.tag===3||e.tag===4}function JP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mM(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 B1(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=dm));else if(r!==4&&(e=e.child,e!==null))for(B1(e,t,n),e=e.sibling;e!==null;)B1(e,t,n),e=e.sibling}function z1(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(z1(e,t,n),e=e.sibling;e!==null;)z1(e,t,n),e=e.sibling}var or=null,oi=!1;function Ds(e,t,n){for(n=n.child;n!==null;)gM(e,t,n),n=n.sibling}function gM(e,t,n){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(Jm,n)}catch(a){}switch(n.tag){case 5:mr||Ic(n,t);case 6:var r=or,o=oi;or=null,Ds(e,t,n),or=r,oi=o,or!==null&&(oi?(e=or,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):or.removeChild(n.stateNode));break;case 18:or!==null&&(oi?(e=or,n=n.stateNode,e.nodeType===8?s0(e.parentNode,n):e.nodeType===1&&s0(e,n),Xd(e)):s0(or,n.stateNode));break;case 4:r=or,o=oi,or=n.stateNode.containerInfo,oi=!0,Ds(e,t,n),or=r,oi=o;break;case 0:case 11:case 14:case 15:if(!mr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&N1(n,t,s),o=o.next}while(o!==r)}Ds(e,t,n);break;case 1:if(!mr&&(Ic(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Mn(n,t,a)}Ds(e,t,n);break;case 21:Ds(e,t,n);break;case 22:n.mode&1?(mr=(r=mr)||n.memoizedState!==null,Ds(e,t,n),mr=r):Ds(e,t,n);break;default:Ds(e,t,n)}}function ZP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new A6),t.forEach(function(r){var o=W6.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ei(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:or=a.stateNode,oi=!1;break e;case 3:or=a.stateNode.containerInfo,oi=!0;break e;case 4:or=a.stateNode.containerInfo,oi=!0;break e}a=a.return}if(or===null)throw Error(Me(160));gM(i,s,o),or=null,oi=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(f){Mn(o,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vM(t,e),t=t.sibling}function vM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ei(t,e),Ci(e),r&4){try{_d(3,e,e.return),sg(3,e)}catch(g){Mn(e,e.return,g)}try{_d(5,e,e.return)}catch(g){Mn(e,e.return,g)}}break;case 1:ei(t,e),Ci(e),r&512&&n!==null&&Ic(n,n.return);break;case 5:if(ei(t,e),Ci(e),r&512&&n!==null&&Ic(n,n.return),e.flags&32){var o=e.stateNode;try{Gd(o,"")}catch(g){Mn(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&D$(o,i),u1(a,s);var f=u1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?V$(o,h):p==="dangerouslySetInnerHTML"?H$(o,h):p==="children"?Gd(o,h):Gb(o,p,h,f)}switch(a){case"input":i1(o,i);break;case"textarea":B$(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?_c(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?_c(o,!!i.multiple,i.defaultValue,!0):_c(o,!!i.multiple,i.multiple?[]:"",!1))}o[tf]=i}catch(g){Mn(e,e.return,g)}}break;case 6:if(ei(t,e),Ci(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Mn(e,e.return,g)}}break;case 3:if(ei(t,e),Ci(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xd(t.containerInfo)}catch(g){Mn(e,e.return,g)}break;case 4:ei(t,e),Ci(e);break;case 13:ei(t,e),Ci(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Pw=Fn())),r&4&&ZP(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(mr=(f=mr)||p,ei(t,e),mr=f):ei(t,e),Ci(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(Ve=e,p=e.child;p!==null;){for(h=Ve=p;Ve!==null;){switch(m=Ve,v=m.child,m.tag){case 0:case 11:case 14:case 15:_d(4,m,m.return);break;case 1:Ic(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Mn(r,n,g)}}break;case 5:Ic(m,m.return);break;case 22:if(m.memoizedState!==null){tk(h);continue}}v!==null?(v.return=m,Ve=v):tk(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,f?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=j$("display",s))}catch(g){Mn(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(g){Mn(e,e.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ei(t,e),Ci(e),r&4&&ZP(e);break;case 21:break;default:ei(t,e),Ci(e)}}function Ci(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(mM(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Gd(o,""),r.flags&=-33);var i=JP(e);z1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=JP(e);B1(e,a,s);break;default:throw Error(Me(161))}}catch(c){Mn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function N6(e,t,n){Ve=e,yM(e)}function yM(e,t,n){for(var r=(e.mode&1)!==0;Ve!==null;){var o=Ve,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||ph;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||mr;a=ph;var f=mr;if(ph=s,(mr=c)&&!f)for(Ve=o;Ve!==null;)s=Ve,c=s.child,s.tag===22&&s.memoizedState!==null?nk(o):c!==null?(c.return=s,Ve=c):nk(o);for(;i!==null;)Ve=i,yM(i),i=i.sibling;Ve=o,ph=a,mr=f}ek(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Ve=i):ek(e)}}function ek(e){for(;Ve!==null;){var t=Ve;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mr||sg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ni(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&NP(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}NP(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Xd(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}mr||t.flags&512&&D1(t)}catch(m){Mn(t,t.return,m)}}if(t===e){Ve=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ve=n;break}Ve=t.return}}function tk(e){for(;Ve!==null;){var t=Ve;if(t===e){Ve=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ve=n;break}Ve=t.return}}function nk(e){for(;Ve!==null;){var t=Ve;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sg(4,t)}catch(c){Mn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Mn(t,o,c)}}var i=t.return;try{D1(t)}catch(c){Mn(t,i,c)}break;case 5:var s=t.return;try{D1(t)}catch(c){Mn(t,s,c)}}}catch(c){Mn(t,t.return,c)}if(t===e){Ve=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ve=a;break}Ve=t.return}}var D6=Math.ceil,xm=Ps.ReactCurrentDispatcher,Sw=Ps.ReactCurrentOwner,No=Ps.ReactCurrentBatchConfig,jt=0,Zn=null,Hn=null,ir=0,ro=0,$c=$l(0),qn=0,af=null,va=0,lg=0,Ew=0,Rd=null,zr=null,Pw=0,Qc=1/0,os=null,Sm=!1,H1=null,al=null,hh=!1,Js=null,Em=0,Od=0,j1=null,jh=-1,Vh=0;function Tr(){return jt&6?Fn():jh!==-1?jh:jh=Fn()}function cl(e){return e.mode&1?jt&2&&ir!==0?ir&-ir:C6.transition!==null?(Vh===0&&(Vh=tT()),Vh):(e=Zt,e!==0||(e=window.event,e=e===void 0?16:aT(e.type)),e):1}function ci(e,t,n,r){if(50<Od)throw Od=0,j1=null,Error(Me(185));Af(e,n,r),(!(jt&2)||e!==Zn)&&(e===Zn&&(!(jt&2)&&(lg|=n),qn===4&&Xs(e,ir)),Wr(e,r),n===1&&jt===0&&!(t.mode&1)&&(Qc=Fn()+500,rg&&Tl()))}function Wr(e,t){var n=e.callbackNode;Cz(e,t);var r=lm(e,e===Zn?ir:0);if(r===0)n!==null&&dP(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dP(n),t===1)e.tag===0?w6(rk.bind(null,e)):IT(rk.bind(null,e)),g6(function(){!(jt&6)&&Tl()}),n=null;else{switch(nT(r)){case 1:n=Qb;break;case 4:n=Z$;break;case 16:n=sm;break;case 536870912:n=eT;break;default:n=sm}n=kM(n,bM.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bM(e,t){if(jh=-1,Vh=0,jt&6)throw Error(Me(327));var n=e.callbackNode;if(Fc()&&e.callbackNode!==n)return null;var r=lm(e,e===Zn?ir:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pm(e,r);else{t=r;var o=jt;jt|=2;var i=CM();(Zn!==e||ir!==t)&&(os=null,Qc=Fn()+500,la(e,t));do try{H6();break}catch(a){wM(e,a)}while(1);uw(),xm.current=i,jt=o,Hn!==null?t=0:(Zn=null,ir=0,t=qn)}if(t!==0){if(t===2&&(o=m1(e),o!==0&&(r=o,t=V1(e,o))),t===1)throw n=af,la(e,0),Xs(e,r),Wr(e,Fn()),n;if(t===6)Xs(e,r);else{if(o=e.current.alternate,!(r&30)&&!B6(o)&&(t=Pm(e,r),t===2&&(i=m1(e),i!==0&&(r=i,t=V1(e,i))),t===1))throw n=af,la(e,0),Xs(e,r),Wr(e,Fn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:Kl(e,zr,os);break;case 3:if(Xs(e,r),(r&130023424)===r&&(t=Pw+500-Fn(),10<t)){if(lm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Tr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=S1(Kl.bind(null,e,zr,os),t);break}Kl(e,zr,os);break;case 4:if(Xs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ai(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*D6(r/1960))-r,10<r){e.timeoutHandle=S1(Kl.bind(null,e,zr,os),r);break}Kl(e,zr,os);break;case 5:Kl(e,zr,os);break;default:throw Error(Me(329))}}}return Wr(e,Fn()),e.callbackNode===n?bM.bind(null,e):null}function V1(e,t){var n=Rd;return e.current.memoizedState.isDehydrated&&(la(e,t).flags|=256),e=Pm(e,t),e!==2&&(t=zr,zr=n,t!==null&&U1(t)),e}function U1(e){zr===null?zr=e:zr.push.apply(zr,e)}function B6(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!di(i(),o))return!1}catch(s){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xs(e,t){for(t&=~Ew,t&=~lg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ai(t),r=1<<n;e[n]=-1,t&=~r}}function rk(e){if(jt&6)throw Error(Me(327));Fc();var t=lm(e,0);if(!(t&1))return Wr(e,Fn()),null;var n=Pm(e,t);if(e.tag!==0&&n===2){var r=m1(e);r!==0&&(t=r,n=V1(e,r))}if(n===1)throw n=af,la(e,0),Xs(e,t),Wr(e,Fn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kl(e,zr,os),Wr(e,Fn()),null}function kw(e,t){var n=jt;jt|=1;try{return e(t)}finally{jt=n,jt===0&&(Qc=Fn()+500,rg&&Tl())}}function ya(e){Js!==null&&Js.tag===0&&!(jt&6)&&Fc();var t=jt;jt|=1;var n=No.transition,r=Zt;try{if(No.transition=null,Zt=1,e)return e()}finally{Zt=r,No.transition=n,jt=t,!(jt&6)&&Tl()}}function Iw(){ro=$c.current,mn($c)}function la(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m6(n)),Hn!==null)for(n=Hn.return;n!==null;){var r=n;switch(lw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fm();break;case 3:Yc(),mn(Vr),mn(Cr),gw();break;case 5:mw(r);break;case 4:Yc();break;case 13:mn(En);break;case 19:mn(En);break;case 10:dw(r.type._context);break;case 22:case 23:Iw()}n=n.return}if(Zn=e,Hn=e=ul(e.current,null),ir=ro=t,qn=0,af=null,Ew=lg=va=0,zr=Rd=null,Zl!==null){for(t=0;t<Zl.length;t++)if(n=Zl[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Zl=null}return e}function wM(e,t){do{var n=Hn;try{if(uw(),Bh.current=Cm,wm){for(var r=In.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}wm=!1}if(ga=0,Qn=Kn=In=null,Md=!1,of=0,Sw.current=null,n===null||n.return===null){qn=1,af=t,Hn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=ir,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=UP(s);if(v!==null){v.flags&=-257,WP(v,s,a,i,t),v.mode&1&&VP(i,f,t),t=v,c=f;var b=t.updateQueue;if(b===null){var g=new Set;g.add(c),t.updateQueue=g}else b.add(c);break e}else{if(!(t&1)){VP(i,f,t),$w();break e}c=Error(Me(426))}}else if(bn&&a.mode&1){var S=UP(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),WP(S,s,a,i,t),aw(Xc(c,a));break e}}i=c=Xc(c,a),qn!==4&&(qn=2),Rd===null?Rd=[i]:Rd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=rM(i,c,t);FP(i,w);break e;case 1:a=c;var P=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof P.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(al===null||!al.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=oM(i,a,t);FP(i,E);break e}}i=i.return}while(i!==null)}SM(n)}catch(I){t=I,Hn===n&&n!==null&&(Hn=n=n.return);continue}break}while(1)}function CM(){var e=xm.current;return xm.current=Cm,e===null?Cm:e}function $w(){(qn===0||qn===3||qn===2)&&(qn=4),Zn===null||!(va&268435455)&&!(lg&268435455)||Xs(Zn,ir)}function Pm(e,t){var n=jt;jt|=2;var r=CM();(Zn!==e||ir!==t)&&(os=null,la(e,t));do try{z6();break}catch(o){wM(e,o)}while(1);if(uw(),jt=n,xm.current=r,Hn!==null)throw Error(Me(261));return Zn=null,ir=0,qn}function z6(){for(;Hn!==null;)xM(Hn)}function H6(){for(;Hn!==null&&!fz();)xM(Hn)}function xM(e){var t=PM(e.alternate,e,ro);e.memoizedProps=e.pendingProps,t===null?SM(e):Hn=t,Sw.current=null}function SM(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=L6(n,t),n!==null){n.flags&=32767,Hn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qn=6,Hn=null;return}}else if(n=O6(n,t,ro),n!==null){Hn=n;return}if(t=t.sibling,t!==null){Hn=t;return}Hn=t=e}while(t!==null);qn===0&&(qn=5)}function Kl(e,t,n){var r=Zt,o=No.transition;try{No.transition=null,Zt=1,j6(e,t,n,r)}finally{No.transition=o,Zt=r}return null}function j6(e,t,n,r){do Fc();while(Js!==null);if(jt&6)throw Error(Me(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(Me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(xz(e,i),e===Zn&&(Hn=Zn=null,ir=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hh||(hh=!0,kM(sm,function(){return Fc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=No.transition,No.transition=null;var s=Zt;Zt=1;var a=jt;jt|=4,Sw.current=null,F6(e,n),vM(n,e),a6(C1),am=!!w1,C1=w1=null,e.current=n,N6(n),pz(),jt=a,Zt=s,No.transition=i}else e.current=n;if(hh&&(hh=!1,Js=e,Em=o),i=e.pendingLanes,i===0&&(al=null),gz(n.stateNode),Wr(e,Fn()),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(Sm)throw Sm=!1,e=H1,H1=null,e;return Em&1&&e.tag!==0&&Fc(),i=e.pendingLanes,i&1?e===j1?Od++:(Od=0,j1=e):Od=0,Tl(),null}function Fc(){if(Js!==null){var e=nT(Em),t=No.transition,n=Zt;try{if(No.transition=null,Zt=16>e?16:e,Js===null)var r=!1;else{if(e=Js,Js=null,Em=0,jt&6)throw Error(Me(331));var o=jt;for(jt|=4,Ve=e.current;Ve!==null;){var i=Ve,s=i.child;if(Ve.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var f=a[c];for(Ve=f;Ve!==null;){var p=Ve;switch(p.tag){case 0:case 11:case 15:_d(8,p,i)}var h=p.child;if(h!==null)h.return=p,Ve=h;else for(;Ve!==null;){p=Ve;var m=p.sibling,v=p.return;if(hM(p),p===f){Ve=null;break}if(m!==null){m.return=v,Ve=m;break}Ve=v}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}Ve=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Ve=s;else e:for(;Ve!==null;){if(i=Ve,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_d(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,Ve=w;break e}Ve=i.return}}var P=e.current;for(Ve=P;Ve!==null;){s=Ve;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,Ve=C;else e:for(s=P;Ve!==null;){if(a=Ve,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:sg(9,a)}}catch(I){Mn(a,a.return,I)}if(a===s){Ve=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,Ve=E;break e}Ve=a.return}}if(jt=o,Tl(),Li&&typeof Li.onPostCommitFiberRoot=="function")try{Li.onPostCommitFiberRoot(Jm,e)}catch(I){}r=!0}return r}finally{Zt=n,No.transition=t}}return!1}function ok(e,t,n){t=Xc(n,t),t=rM(e,t,1),e=ll(e,t,1),t=Tr(),e!==null&&(Af(e,1,t),Wr(e,t))}function Mn(e,t,n){if(e.tag===3)ok(e,e,n);else for(;t!==null;){if(t.tag===3){ok(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(al===null||!al.has(r))){e=Xc(n,e),e=oM(t,e,1),t=ll(t,e,1),e=Tr(),t!==null&&(Af(t,1,e),Wr(t,e));break}}t=t.return}}function V6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Tr(),e.pingedLanes|=e.suspendedLanes&n,Zn===e&&(ir&n)===n&&(qn===4||qn===3&&(ir&130023424)===ir&&500>Fn()-Pw?la(e,0):Ew|=n),Wr(e,t)}function EM(e,t){t===0&&(e.mode&1?(t=oh,oh<<=1,!(oh&130023424)&&(oh=4194304)):t=1);var n=Tr();e=bs(e,t),e!==null&&(Af(e,t,n),Wr(e,n))}function U6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),EM(e,n)}function W6(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(Me(314))}r!==null&&r.delete(t),EM(e,n)}var PM;PM=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vr.current)jr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jr=!1,R6(e,t,n);jr=!!(e.flags&131072)}else jr=!1,bn&&t.flags&1048576&&$T(t,mm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hh(e,t),e=t.pendingProps;var o=Gc(t,Cr.current);Ac(t,n),o=yw(null,t,r,e,o,n);var i=bw();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,Ur(r)?(i=!0,pm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pw(t),o.updater=og,t.stateNode=o,o._reactInternals=t,M1(t,r,e,n),t=O1(null,t,r,!0,i,n)):(t.tag=0,bn&&i&&sw(t),kr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=K6(r),e=ni(r,e),o){case 0:t=R1(null,t,r,e,n);break e;case 1:t=qP(null,t,r,e,n);break e;case 11:t=GP(null,t,r,e,n);break e;case 14:t=KP(null,t,r,ni(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ni(r,o),R1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ni(r,o),qP(e,t,r,o,n);case 3:e:{if(aM(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,RT(e,t),ym(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Xc(Error(Me(423)),t),t=YP(e,t,r,n,o);break e}else if(r!==o){o=Xc(Error(Me(424)),t),t=YP(e,t,r,n,o);break e}else for(so=sl(t.stateNode.containerInfo.firstChild),lo=t,bn=!0,ii=null,n=FT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kc(),r===o){t=ws(e,t,n);break e}kr(e,t,r,n)}t=t.child}return t;case 5:return NT(t),e===null&&I1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,x1(r,o)?s=null:i!==null&&x1(r,i)&&(t.flags|=32),lM(e,t),kr(e,t,s,n),t.child;case 6:return e===null&&I1(t),null;case 13:return cM(e,t,n);case 4:return hw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qc(t,null,r,n):kr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ni(r,o),GP(e,t,r,o,n);case 7:return kr(e,t,t.pendingProps,n),t.child;case 8:return kr(e,t,t.pendingProps.children,n),t.child;case 12:return kr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,cn(gm,r._currentValue),r._currentValue=s,i!==null)if(di(i.value,s)){if(i.children===o.children&&!Vr.current){t=ws(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=ps(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),$1(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),$1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}kr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ac(t,n),o=Ho(o),r=r(o),t.flags|=1,kr(e,t,r,n),t.child;case 14:return r=t.type,o=ni(r,t.pendingProps),o=ni(r.type,o),KP(e,t,r,o,n);case 15:return iM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ni(r,o),Hh(e,t),t.tag=1,Ur(r)?(e=!0,pm(t)):e=!1,Ac(t,n),LT(t,r,o),M1(t,r,o,n),O1(null,t,r,!0,e,n);case 19:return uM(e,t,n);case 22:return sM(e,t,n)}throw Error(Me(156,t.tag))};function kM(e,t){return J$(e,t)}function G6(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 Ao(e,t,n,r){return new G6(e,t,n,r)}function Tw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K6(e){if(typeof e=="function")return Tw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qb)return 11;if(e===Yb)return 14}return 2}function ul(e,t){var n=e.alternate;return n===null?(n=Ao(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 Uh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Tw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yc:return aa(n.children,o,i,t);case Kb:s=8,o|=8;break;case e1:return e=Ao(12,n,t,o|2),e.elementType=e1,e.lanes=i,e;case t1:return e=Ao(13,n,t,o),e.elementType=t1,e.lanes=i,e;case n1:return e=Ao(19,n,t,o),e.elementType=n1,e.lanes=i,e;case A$:return ag(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O$:s=10;break e;case L$:s=9;break e;case qb:s=11;break e;case Yb:s=14;break e;case Us:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=Ao(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function aa(e,t,n,r){return e=Ao(7,e,r,t),e.lanes=n,e}function ag(e,t,n,r){return e=Ao(22,e,r,t),e.elementType=A$,e.lanes=n,e.stateNode={isHidden:!1},e}function h0(e,t,n){return e=Ao(6,e,null,t),e.lanes=n,e}function m0(e,t,n){return t=Ao(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q6(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=Yy(0),this.expirationTimes=Yy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yy(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mw(e,t,n,r,o,i,s,a,c){return e=new q6(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ao(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pw(i),e}function Y6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function IM(e){if(!e)return yl;e=e._reactInternals;e:{if(Ta(e)!==e||e.tag!==1)throw Error(Me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ur(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Me(171))}if(e.tag===1){var n=e.type;if(Ur(n))return kT(e,n,t)}return t}function $M(e,t,n,r,o,i,s,a,c){return e=Mw(n,r,!0,e,o,i,s,a,c),e.context=IM(null),n=e.current,r=Tr(),o=cl(n),i=ps(r,o),i.callback=t!=null?t:null,ll(n,i,o),e.current.lanes=o,Af(e,o,r),Wr(e,r),e}function cg(e,t,n,r){var o=t.current,i=Tr(),s=cl(o);return n=IM(n),t.context===null?t.context=n:t.pendingContext=n,t=ps(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ll(o,t,s),e!==null&&(ci(e,o,s,i),Dh(e,o,s)),s}function km(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 ik(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _w(e,t){ik(e,t),(e=e.alternate)&&ik(e,t)}function X6(){return null}var TM=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rw(e){this._internalRoot=e}ug.prototype.render=Rw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));cg(e,t,null,null)};ug.prototype.unmount=Rw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ya(function(){cg(null,e,null,null)}),t[ys]=null}};function ug(e){this._internalRoot=e}ug.prototype.unstable_scheduleHydration=function(e){if(e){var t=iT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ys.length&&t!==0&&t<Ys[n].priority;n++);Ys.splice(n,0,e),n===0&&lT(e)}};function Ow(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function dg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sk(){}function Q6(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var f=km(s);i.call(f)}}var s=$M(t,r,e,0,null,!1,!1,"",sk);return e._reactRootContainer=s,e[ys]=s.current,Zd(e.nodeType===8?e.parentNode:e),ya(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var f=km(c);a.call(f)}}var c=Mw(e,0,!1,null,null,!1,!1,"",sk);return e._reactRootContainer=c,e[ys]=c.current,Zd(e.nodeType===8?e.parentNode:e),ya(function(){cg(t,c,n,r)}),c}function fg(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=km(s);a.call(c)}}cg(t,s,e,o)}else s=Q6(n,t,e,o,r);return km(s)}rT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=md(t.pendingLanes);n!==0&&(Jb(t,n|1),Wr(t,Fn()),!(jt&6)&&(Qc=Fn()+500,Tl()))}break;case 13:ya(function(){var r=bs(e,1);if(r!==null){var o=Tr();ci(r,e,1,o)}}),_w(e,1)}};Zb=function(e){if(e.tag===13){var t=bs(e,134217728);if(t!==null){var n=Tr();ci(t,e,134217728,n)}_w(e,134217728)}};oT=function(e){if(e.tag===13){var t=cl(e),n=bs(e,t);if(n!==null){var r=Tr();ci(n,e,t,r)}_w(e,t)}};iT=function(){return Zt};sT=function(e,t){var n=Zt;try{return Zt=e,t()}finally{Zt=n}};f1=function(e,t,n){switch(t){case"input":if(i1(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=ng(r);if(!o)throw Error(Me(90));N$(r),i1(r,o)}}}break;case"textarea":B$(e,n);break;case"select":t=n.value,t!=null&&_c(e,!!n.multiple,t,!1)}};G$=kw;K$=ya;var J6={usingClientEntryPoint:!1,Events:[Nf,xc,ng,U$,W$,kw]},td={findFiberByHostInstance:Jl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Z6={bundleType:td.bundleType,version:td.version,rendererPackageName:td.rendererPackageName,rendererConfig:td.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ps.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=X$(e),e===null?null:e.stateNode},findFiberByHostInstance:td.findFiberByHostInstance||X6,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 mh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mh.isDisabled&&mh.supportsFiber)try{Jm=mh.inject(Z6),Li=mh}catch(e){}}ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J6;ho.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ow(t))throw Error(Me(200));return Y6(e,t,null,n)};ho.createRoot=function(e,t){if(!Ow(e))throw Error(Me(299));var n=!1,r="",o=TM;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Mw(e,1,!1,null,null,n,!1,r,o),e[ys]=t.current,Zd(e.nodeType===8?e.parentNode:e),new Rw(t)};ho.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(Me(188)):(e=Object.keys(e).join(","),Error(Me(268,e)));return e=X$(t),e=e===null?null:e.stateNode,e};ho.flushSync=function(e){return ya(e)};ho.hydrate=function(e,t,n){if(!dg(t))throw Error(Me(200));return fg(null,e,t,!0,n)};ho.hydrateRoot=function(e,t,n){if(!Ow(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=TM;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$M(t,null,e,1,n!=null?n:null,o,!1,i,s),e[ys]=t.current,Zd(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 ug(t)};ho.render=function(e,t,n){if(!dg(t))throw Error(Me(200));return fg(null,e,t,!1,n)};ho.unmountComponentAtNode=function(e){if(!dg(e))throw Error(Me(40));return e._reactRootContainer?(ya(function(){fg(null,null,e,!1,function(){e._reactRootContainer=null,e[ys]=null})}),!0):!1};ho.unstable_batchedUpdates=kw;ho.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!dg(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return fg(e,t,n,!1,r)};ho.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ho})(XB);const gh=Bb(gl);var MM,lk=gl;MM=lk.createRoot,lk.hydrateRoot;const e9="modulepreload",t9=function(e){return"/"+e},ak={},n9=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=t9(i),i in ak)return;ak[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const f=document.createElement("link");if(f.rel=s?"stylesheet":e9,s||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),s)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var x$;if(!((x$=window.crypto)!=null&&x$.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return pt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield n9(()=>import("./sha512-15452202.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}var ta;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ta||(ta={}));var ck=function(e){return e},uk="beforeunload",r9="hashchange",o9="popstate";function i9(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function i(){var $=bl(r.location.hash.substr(1)),R=$.pathname,O=R===void 0?"/":R,N=$.search,U=N===void 0?"":N,j=$.hash,L=j===void 0?"":j,D=o.state||{};return[D.idx,ck({pathname:O,search:U,hash:L,state:D.usr||null,key:D.key||"default"})]}var s=null;function a(){if(s)v.call(s),s=null;else{var $=ta.Pop,R=i(),O=R[0],N=R[1];if(v.length){if(O!=null){var U=p-O;U&&(s={action:$,location:N,retry:function(){T(U*-1)}},T(U))}}else C($)}}r.addEventListener(o9,a),r.addEventListener(r9,function(){var $=i(),R=$[1];Ld(R)!==Ld(h)&&a()});var c=ta.Pop,f=i(),p=f[0],h=f[1],m=fk(),v=fk();p==null&&(p=0,o.replaceState(x({},o.state,{idx:p}),""));function b(){var $=document.querySelector("base"),R="";if($&&$.getAttribute("href")){var O=r.location.href,N=O.indexOf("#");R=N===-1?O:O.slice(0,N)}return R}function g($){return b()+"#"+(typeof $=="string"?$:Ld($))}function S($,R){return R===void 0&&(R=null),ck(x({pathname:h.pathname,hash:"",search:""},typeof $=="string"?bl($):$,{state:R,key:s9()}))}function w($,R){return[{usr:$.state,key:$.key,idx:R},g($)]}function P($,R,O){return!v.length||(v.call({action:$,location:R,retry:O}),!1)}function C($){c=$;var R=i();p=R[0],h=R[1],m.call({action:c,location:h})}function E($,R){var O=ta.Push,N=S($,R);function U(){E($,R)}if(P(O,N,U)){var j=w(N,p+1),L=j[0],D=j[1];try{o.pushState(L,"",D)}catch(B){r.location.assign(D)}C(O)}}function I($,R){var O=ta.Replace,N=S($,R);function U(){I($,R)}if(P(O,N,U)){var j=w(N,p),L=j[0],D=j[1];o.replaceState(L,"",D),C(O)}}function T($){o.go($)}var k={get action(){return c},get location(){return h},createHref:g,push:E,replace:I,go:T,back:function(){T(-1)},forward:function(){T(1)},listen:function(R){return m.push(R)},block:function(R){var O=v.push(R);return v.length===1&&r.addEventListener(uk,dk),function(){O(),v.length||r.removeEventListener(uk,dk)}}};return k}function dk(e){e.preventDefault(),e.returnValue=""}function fk(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function s9(){return Math.random().toString(36).substr(2,8)}function Ld(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,i=e.hash,s=i===void 0?"":i;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function bl(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
33
+ * React Router v6.3.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
+ */const Lw=u.createContext(null),Aw=u.createContext(null),pg=u.createContext({outlet:null,matches:[]});function ji(e,t){if(!e)throw new Error(t)}function l9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?bl(t):t,o=OM(r.pathname||"/",n);if(o==null)return null;let i=_M(e);a9(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=v9(i[a],o);return s}function _M(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let s={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(s.relativePath.startsWith(r)||ji(!1),s.relativePath=s.relativePath.slice(r.length));let a=dl([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(o.index===!0&&ji(!1),_M(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:m9(a,o.index),routesMeta:c})}),t}function a9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const c9=/^:\w+$/,u9=3,d9=2,f9=1,p9=10,h9=-2,pk=e=>e==="*";function m9(e,t){let n=e.split("/"),r=n.length;return n.some(pk)&&(r+=h9),t&&(r+=d9),n.filter(o=>!pk(o)).reduce((o,i)=>o+(c9.test(i)?u9:i===""?f9:p9),r)}function g9(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 v9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,f=o==="/"?t:t.slice(o.length)||"/",p=y9({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},f);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:dl([o,p.pathname]),pathnameBase:LM(dl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=dl([o,p.pathnameBase]))}return i}function y9(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=b9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((f,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return f[p]=w9(a[h]||""),f},{}),pathname:i,pathnameBase:s,pattern:e}}function b9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(s,a)=>(r.push(a),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),r]}function w9(e,t){try{return decodeURIComponent(e)}catch(n){return e}}function C9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?bl(e):e;return{pathname:n?n.startsWith("/")?n:x9(n,t):t,search:E9(r),hash:P9(o)}}function x9(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 RM(e,t,n){let r=typeof e=="string"?bl(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let a=t.length-1;if(o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),a-=1;r.pathname=c.join("/")}i=a>=0?t[a]:"/"}let s=C9(r,i);return o&&o!=="/"&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function S9(e){return e===""||e.pathname===""?"/":typeof e=="string"?bl(e).pathname:e.pathname}function OM(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const dl=e=>e.join("/").replace(/\/\/+/g,"/"),LM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function k9(e){Bf()||ji(!1);let{basename:t,navigator:n}=u.useContext(Lw),{hash:r,pathname:o,search:i}=Fw(e),s=o;if(t!=="/"){let a=S9(e),c=a!=null&&a.endsWith("/");s=o==="/"?t+(c?"/":""):dl([t,o])}return n.createHref({pathname:s,search:i,hash:r})}function Bf(){return u.useContext(Aw)!=null}function gu(){return Bf()||ji(!1),u.useContext(Aw).location}function I9(){Bf()||ji(!1);let{basename:e,navigator:t}=u.useContext(Lw),{matches:n}=u.useContext(pg),{pathname:r}=gu(),o=JSON.stringify(n.map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let f=RM(a,JSON.parse(o),r);e!=="/"&&(f.pathname=dl([e,f.pathname])),(c.replace?t.replace:t.push)(f,c.state)},[e,t,o,r])}function Fw(e){let{matches:t}=u.useContext(pg),{pathname:n}=gu(),r=JSON.stringify(t.map(o=>o.pathnameBase));return u.useMemo(()=>RM(e,JSON.parse(r),n),[e,r,n])}function $9(e,t){Bf()||ji(!1);let{matches:n}=u.useContext(pg),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let s=gu(),a;if(t){var c;let m=typeof t=="string"?bl(t):t;i==="/"||(c=m.pathname)!=null&&c.startsWith(i)||ji(!1),a=m}else a=s;let f=a.pathname||"/",p=i==="/"?f:f.slice(i.length)||"/",h=l9(e,{pathname:p});return T9(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:dl([i,m.pathname]),pathnameBase:m.pathnameBase==="/"?i:dl([i,m.pathnameBase])})),n)}function T9(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>u.createElement(pg.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function AM(e){ji(!1)}function M9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ta.Pop,navigator:i,static:s=!1}=e;Bf()&&ji(!1);let a=LM(t),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=bl(r));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=OM(f,a);return g==null?null:{pathname:g,search:p,hash:h,state:m,key:v}},[a,f,p,h,m,v]);return b==null?null:u.createElement(Lw.Provider,{value:c},u.createElement(Aw.Provider,{children:n,value:{location:b,navigationType:o}}))}function _9(e){let{children:t,location:n}=e;return $9(W1(t),n)}function W1(e){let t=[];return u.Children.forEach(e,n=>{if(!u.isValidElement(n))return;if(n.type===u.Fragment){t.push.apply(t,W1(n.props.children));return}n.type!==AM&&ji(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=W1(n.props.children)),t.push(r)}),t}/**
42
+ * React Router DOM v6.3.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 Im(){return Im=Object.assign||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},Im.apply(this,arguments)}function FM(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const R9=["onClick","reloadDocument","replace","state","target","to"],O9=["aria-current","caseSensitive","className","end","style","to","children"];function L9(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=i9({window:r}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(M9,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}function A9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const NM=u.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:s,target:a,to:c}=t,f=FM(t,R9),p=k9(c),h=N9(c,{replace:i,state:s,target:a});function m(v){r&&r(v),!v.defaultPrevented&&!o&&h(v)}return u.createElement("a",Im({},f,{href:p,onClick:m,ref:n,target:a}))}),F9=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:f}=t,p=FM(t,O9),h=gu(),m=Fw(c),v=h.pathname,b=m.pathname;o||(v=v.toLowerCase(),b=b.toLowerCase());let g=v===b||!s&&v.startsWith(b)&&v.charAt(b.length)==="/",S=g?r:void 0,w;typeof i=="function"?w=i({isActive:g}):w=[i,g?"active":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:g}):a;return u.createElement(NM,Im({},p,{"aria-current":S,className:w,ref:n,style:P,to:c}),typeof f=="function"?f({isActive:g}):f)});function N9(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=I9(),s=gu(),a=Fw(e);return u.useCallback(c=>{if(c.button===0&&(!n||n==="_self")&&!A9(c)){c.preventDefault();let f=!!r||Ld(s)===Ld(a);i(e,{replace:f,state:o})}},[s,i,a,r,o,n,e])}const D9={black:"#000",white:"#fff"},cf=D9,B9={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"},tc=B9,z9={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"},nc=z9,H9={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"},rc=H9,j9={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"},oc=j9,V9={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"},ic=V9,U9={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"},nd=U9,W9={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"},G9=W9;function oe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function DM(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var K9=/^((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)-.*))$/,q9=DM(function(e){return K9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Y9(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 X9(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 Q9=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(X9(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Y9(o);try{i.insertRule(r,i.cssRules.length)}catch(s){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),pr="-ms-",$m="-moz-",Gt="-webkit-",BM="comm",Nw="rule",Dw="decl",J9="@import",zM="@keyframes",Z9=Math.abs,hg=String.fromCharCode,eH=Object.assign;function tH(e,t){return(((t<<2^Br(e,0))<<2^Br(e,1))<<2^Br(e,2))<<2^Br(e,3)}function HM(e){return e.trim()}function nH(e,t){return(e=t.exec(e))?e[0]:e}function Yt(e,t,n){return e.replace(t,n)}function G1(e,t){return e.indexOf(t)}function Br(e,t){return e.charCodeAt(t)|0}function uf(e,t,n){return e.slice(t,n)}function $i(e){return e.length}function Bw(e){return e.length}function vh(e,t){return t.push(e),e}function rH(e,t){return e.map(t).join("")}var mg=1,Jc=1,jM=0,qr=0,zn=0,vu="";function gg(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:mg,column:Jc,length:s,return:""}}function rd(e,t){return eH(gg("",null,null,"",null,null,0),e,{length:-e.length},t)}function oH(){return zn}function iH(){return zn=qr>0?Br(vu,--qr):0,Jc--,zn===10&&(Jc=1,mg--),zn}function ao(){return zn=qr<jM?Br(vu,qr++):0,Jc++,zn===10&&(Jc=1,mg++),zn}function Fi(){return Br(vu,qr)}function Wh(){return qr}function zf(e,t){return uf(vu,e,t)}function df(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 VM(e){return mg=Jc=1,jM=$i(vu=e),qr=0,[]}function UM(e){return vu="",e}function Gh(e){return HM(zf(qr-1,K1(e===91?e+2:e===40?e+1:e)))}function sH(e){for(;(zn=Fi())&&zn<33;)ao();return df(e)>2||df(zn)>3?"":" "}function lH(e,t){for(;--t&&ao()&&!(zn<48||zn>102||zn>57&&zn<65||zn>70&&zn<97););return zf(e,Wh()+(t<6&&Fi()==32&&ao()==32))}function K1(e){for(;ao();)switch(zn){case e:return qr;case 34:case 39:e!==34&&e!==39&&K1(zn);break;case 40:e===41&&K1(e);break;case 92:ao();break}return qr}function aH(e,t){for(;ao()&&e+zn!==47+10;)if(e+zn===42+42&&Fi()===47)break;return"/*"+zf(t,qr-1)+"*"+hg(e===47?e:ao())}function cH(e){for(;!df(Fi());)ao();return zf(e,qr)}function uH(e){return UM(Kh("",null,null,null,[""],e=VM(e),0,[0],e))}function Kh(e,t,n,r,o,i,s,a,c){for(var f=0,p=0,h=s,m=0,v=0,b=0,g=1,S=1,w=1,P=0,C="",E=o,I=i,T=r,k=C;S;)switch(b=P,P=ao()){case 40:if(b!=108&&k.charCodeAt(h-1)==58){G1(k+=Yt(Gh(P),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=Gh(P);break;case 9:case 10:case 13:case 32:k+=sH(b);break;case 92:k+=lH(Wh()-1,7);continue;case 47:switch(Fi()){case 42:case 47:vh(dH(aH(ao(),Wh()),t,n),c);break;default:k+="/"}break;case 123*g:a[f++]=$i(k)*w;case 125*g:case 59:case 0:switch(P){case 0:case 125:S=0;case 59+p:v>0&&$i(k)-h&&vh(v>32?mk(k+";",r,n,h-1):mk(Yt(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(vh(T=hk(k,t,n,f,p,o,a,C,E=[],I=[],h),i),P===123)if(p===0)Kh(k,t,T,T,E,i,h,a,I);else switch(m){case 100:case 109:case 115:Kh(e,T,T,r&&vh(hk(e,T,T,0,0,o,a,C,o,E=[],h),I),o,I,h,a,r?E:I);break;default:Kh(k,T,T,T,[""],I,0,a,I)}}f=p=v=0,g=w=1,C=k="",h=s;break;case 58:h=1+$i(k),v=b;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&iH()==125)continue}switch(k+=hg(P),P*g){case 38:w=p>0?1:(k+="\f",-1);break;case 44:a[f++]=($i(k)-1)*w,w=1;break;case 64:Fi()===45&&(k+=Gh(ao())),m=Fi(),p=h=$i(C=k+=cH(Wh())),P++;break;case 45:b===45&&$i(k)==2&&(g=0)}}return i}function hk(e,t,n,r,o,i,s,a,c,f,p){for(var h=o-1,m=o===0?i:[""],v=Bw(m),b=0,g=0,S=0;b<r;++b)for(var w=0,P=uf(e,h+1,h=Z9(g=s[b])),C=e;w<v;++w)(C=HM(g>0?m[w]+" "+P:Yt(P,/&\f/g,m[w])))&&(c[S++]=C);return gg(e,t,n,o===0?Nw:a,c,f,p)}function dH(e,t,n){return gg(e,t,n,BM,hg(oH()),uf(e,2,-2),0)}function mk(e,t,n,r){return gg(e,t,n,Dw,uf(e,0,r),uf(e,r+1,-1),r)}function WM(e,t){switch(tH(e,t)){case 5103:return Gt+"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 Gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gt+e+$m+e+pr+e+e;case 6828:case 4268:return Gt+e+pr+e+e;case 6165:return Gt+e+pr+"flex-"+e+e;case 5187:return Gt+e+Yt(e,/(\w+).+(:[^]+)/,Gt+"box-$1$2"+pr+"flex-$1$2")+e;case 5443:return Gt+e+pr+"flex-item-"+Yt(e,/flex-|-self/,"")+e;case 4675:return Gt+e+pr+"flex-line-pack"+Yt(e,/align-content|flex-|-self/,"")+e;case 5548:return Gt+e+pr+Yt(e,"shrink","negative")+e;case 5292:return Gt+e+pr+Yt(e,"basis","preferred-size")+e;case 6060:return Gt+"box-"+Yt(e,"-grow","")+Gt+e+pr+Yt(e,"grow","positive")+e;case 4554:return Gt+Yt(e,/([^-])(transform)/g,"$1"+Gt+"$2")+e;case 6187:return Yt(Yt(Yt(e,/(zoom-|grab)/,Gt+"$1"),/(image-set)/,Gt+"$1"),e,"")+e;case 5495:case 3959:return Yt(e,/(image-set\([^]*)/,Gt+"$1$`$1");case 4968:return Yt(Yt(e,/(.+:)(flex-)?(.*)/,Gt+"box-pack:$3"+pr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gt+e+e;case 4095:case 3583:case 4068:case 2532:return Yt(e,/(.+)-inline(.+)/,Gt+"$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($i(e)-1-t>6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+$m+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~G1(e,"stretch")?WM(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,$i(e)-3-(~G1(e,"!important")&&10))){case 107:return Yt(e,":",":"+Gt)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+pr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Gt+e+pr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+pr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+pr+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+pr+e+e}return e}function Nc(e,t){for(var n="",r=Bw(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fH(e,t,n,r){switch(e.type){case J9:case Dw:return e.return=e.return||e.value;case BM:return"";case zM:return e.return=e.value+"{"+Nc(e.children,r)+"}";case Nw:e.value=e.props.join(",")}return $i(n=Nc(e.children,r))?e.return=e.value+"{"+n+"}":""}function pH(e){var t=Bw(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function hH(e){return function(t){t.root||(t=t.return)&&e(t)}}function mH(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dw:e.return=WM(e.value,e.length);break;case zM:return Nc([rd(e,{value:Yt(e.value,"@","@"+Gt)})],r);case Nw:if(e.length)return rH(e.props,function(o){switch(nH(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nc([rd(e,{props:[Yt(o,/:(read-\w+)/,":"+$m+"$1")]})],r);case"::placeholder":return Nc([rd(e,{props:[Yt(o,/:(plac\w+)/,":"+Gt+"input-$1")]}),rd(e,{props:[Yt(o,/:(plac\w+)/,":"+$m+"$1")]}),rd(e,{props:[Yt(o,/:(plac\w+)/,pr+"input-$1")]})],r)}return""})}}var gH=function(t,n,r){for(var o=0,i=0;o=i,i=Fi(),o===38&&i===12&&(n[r]=1),!df(i);)ao();return zf(t,qr)},vH=function(t,n){var r=-1,o=44;do switch(df(o)){case 0:o===38&&Fi()===12&&(n[r]=1),t[r]+=gH(qr-1,n,r);break;case 2:t[r]+=Gh(o);break;case 4:if(o===44){t[++r]=Fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=hg(o)}while(o=ao());return t},yH=function(t,n){return UM(vH(VM(t),n))},gk=new WeakMap,bH=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&&!gk.get(r))&&!o){gk.set(t,!0);for(var i=[],s=yH(n,i),a=r.props,c=0,f=0;c<s.length;c++)for(var p=0;p<a.length;p++,f++)t.props[f]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},wH=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},CH=[mH],xH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||CH,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),w=1;w<S.length;w++)i[S[w]]=!0;a.push(g)});var c,f=[bH,wH];{var p,h=[fH,hH(function(g){p.insert(g)})],m=pH(f.concat(o,h)),v=function(S){return Nc(uH(S),m)};c=function(S,w,P,C){p=P,v(S?S+"{"+w.styles+"}":w.styles),C&&(b.inserted[w.name]=!0)}}var b={key:n,sheet:new Q9({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(a),b},q1={},SH={get exports(){return q1},set exports(e){q1=e}},en={};/** @license React v16.13.1
51
+ * react-is.production.min.js
52
+ *
53
+ * Copyright (c) Facebook, Inc. and its affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var tr=typeof Symbol=="function"&&Symbol.for,zw=tr?Symbol.for("react.element"):60103,Hw=tr?Symbol.for("react.portal"):60106,vg=tr?Symbol.for("react.fragment"):60107,yg=tr?Symbol.for("react.strict_mode"):60108,bg=tr?Symbol.for("react.profiler"):60114,wg=tr?Symbol.for("react.provider"):60109,Cg=tr?Symbol.for("react.context"):60110,jw=tr?Symbol.for("react.async_mode"):60111,xg=tr?Symbol.for("react.concurrent_mode"):60111,Sg=tr?Symbol.for("react.forward_ref"):60112,Eg=tr?Symbol.for("react.suspense"):60113,EH=tr?Symbol.for("react.suspense_list"):60120,Pg=tr?Symbol.for("react.memo"):60115,kg=tr?Symbol.for("react.lazy"):60116,PH=tr?Symbol.for("react.block"):60121,kH=tr?Symbol.for("react.fundamental"):60117,IH=tr?Symbol.for("react.responder"):60118,$H=tr?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zw:switch(e=e.type,e){case jw:case xg:case vg:case bg:case yg:case Eg:return e;default:switch(e=e&&e.$$typeof,e){case Cg:case Sg:case kg:case Pg:case wg:return e;default:return t}}case Hw:return t}}}function GM(e){return go(e)===xg}en.AsyncMode=jw;en.ConcurrentMode=xg;en.ContextConsumer=Cg;en.ContextProvider=wg;en.Element=zw;en.ForwardRef=Sg;en.Fragment=vg;en.Lazy=kg;en.Memo=Pg;en.Portal=Hw;en.Profiler=bg;en.StrictMode=yg;en.Suspense=Eg;en.isAsyncMode=function(e){return GM(e)||go(e)===jw};en.isConcurrentMode=GM;en.isContextConsumer=function(e){return go(e)===Cg};en.isContextProvider=function(e){return go(e)===wg};en.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zw};en.isForwardRef=function(e){return go(e)===Sg};en.isFragment=function(e){return go(e)===vg};en.isLazy=function(e){return go(e)===kg};en.isMemo=function(e){return go(e)===Pg};en.isPortal=function(e){return go(e)===Hw};en.isProfiler=function(e){return go(e)===bg};en.isStrictMode=function(e){return go(e)===yg};en.isSuspense=function(e){return go(e)===Eg};en.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vg||e===xg||e===bg||e===yg||e===Eg||e===EH||typeof e=="object"&&e!==null&&(e.$$typeof===kg||e.$$typeof===Pg||e.$$typeof===wg||e.$$typeof===Cg||e.$$typeof===Sg||e.$$typeof===kH||e.$$typeof===IH||e.$$typeof===$H||e.$$typeof===PH)};en.typeOf=go;(function(e){e.exports=en})(SH);var KM=q1,TH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qM={};qM[KM.ForwardRef]=TH;qM[KM.Memo]=MH;var _H=!0;function RH(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var YM=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||_H===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},XM=function(t,n,r){YM(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function OH(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 LH={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},AH=/[A-Z]|^ms/g,FH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QM=function(t){return t.charCodeAt(1)===45},vk=function(t){return t!=null&&typeof t!="boolean"},g0=DM(function(e){return QM(e)?e:e.replace(AH,"-$&").toLowerCase()}),yk=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FH,function(r,o,i){return Ti={name:o,styles:i,next:Ti},o})}return LH[t]!==1&&!QM(t)&&typeof n=="number"&&n!==0?n+"px":n};function ff(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 Ti={name:n.name,styles:n.styles,next:Ti},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ti={name:r.name,styles:r.styles,next:Ti},r=r.next;var o=n.styles+";";return o}return NH(e,t,n)}case"function":{if(e!==void 0){var i=Ti,s=n(e);return Ti=i,ff(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function NH(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ff(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":vk(s)&&(r+=g0(i)+":"+yk(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)vk(s[a])&&(r+=g0(i)+":"+yk(i,s[a])+";");else{var c=ff(e,t,s);switch(i){case"animation":case"animationName":{r+=g0(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var bk=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ti,Vw=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ti=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=ff(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=ff(r,n,t[a]),o&&(i+=s[a]);bk.lastIndex=0;for(var c="",f;(f=bk.exec(i))!==null;)c+="-"+f[1];var p=OH(i)+c;return{name:p,styles:i,next:Ti}},JM=u.createContext(typeof HTMLElement!="undefined"?xH({key:"css"}):null);JM.Provider;var ZM=function(t){return u.forwardRef(function(n,r){var o=u.useContext(JM);return t(n,o,r)})},Uw=u.createContext({}),wk=Uc["useInsertionEffect"]?Uc["useInsertionEffect"]:u.useLayoutEffect,DH=ZM(function(e,t){var n=e.styles,r=Vw([n],void 0,u.useContext(Uw)),o=u.useRef();return wk(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),wk(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&XM(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function yu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vw(t)}var Ml=function(){var t=yu.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_"}}},BH=q9,zH=function(t){return t!=="theme"},Ck=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?BH:zH},xk=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},HH=Uc["useInsertionEffect"]?Uc["useInsertionEffect"]:function(t){t()};function jH(e){HH(e)}var VH=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return YM(n,r,o),jH(function(){return XM(n,r,o)}),null},UH=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=xk(t,n,r),c=a||Ck(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=ZM(function(g,S,w){var P=f&&g.as||o,C="",E=[],I=g;if(g.theme==null){I={};for(var T in g)I[T]=g[T];I.theme=u.useContext(Uw)}typeof g.className=="string"?C=RH(S.registered,E,g.className):g.className!=null&&(C=g.className+" ");var k=Vw(h.concat(E),S.registered,I);C+=S.key+"-"+k.name,s!==void 0&&(C+=" "+s);var $=f&&a===void 0?Ck(P):c,R={};for(var O in g)f&&O==="as"||$(O)&&(R[O]=g[O]);return R.className=C,R.ref=w,u.createElement(u.Fragment,null,u.createElement(VH,{cache:S,serialized:k,isStringTag:typeof P=="string"}),u.createElement(P,R))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(g,S){return e(g,x({},n,S,{shouldForwardProp:xk(b,S,!0)})).apply(void 0,h)},b}},WH=["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"],Y1=UH.bind();WH.forEach(function(e){Y1[e]=Y1(e)});const GH=Y1;var ue={},KH={get exports(){return ue},set exports(e){ue=e}},qH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YH=qH,XH=YH;function e_(){}function t_(){}t_.resetWarningCache=e_;var QH=function(){function e(r,o,i,s,a,c){if(c!==XH){var f=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 f.name="Invariant Violation",f}}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:t_,resetWarningCache:e_};return n.PropTypes=n,n};KH.exports=QH();var _={},JH={get exports(){return _},set exports(e){_=e}},Ig={};/**
58
+ * @license React
59
+ * react-jsx-runtime.production.min.js
60
+ *
61
+ * Copyright (c) Facebook, Inc. and its affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var ZH=u,ej=Symbol.for("react.element"),tj=Symbol.for("react.fragment"),nj=Object.prototype.hasOwnProperty,rj=ZH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oj={key:!0,ref:!0,__self:!0,__source:!0};function n_(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)nj.call(t,r)&&!oj.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ej,type:e,key:i,ref:s,props:o,_owner:rj.current}}Ig.Fragment=tj;Ig.jsx=n_;Ig.jsxs=n_;(function(e){e.exports=Ig})(JH);function ij(e){return e==null||Object.keys(e).length===0}function sj(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ij(o)?n:o):t;return _.jsx(DH,{styles:r})}/** @license MUI v5.10.2
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */function r_(e,t){return GH(e,t)}const lj=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function v0(e,t){return()=>null}function vd(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Do(e,t,n={clone:!0}){const r=n.clone?x({},e):e;return vd(e)&&vd(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(vd(t[o])&&o in e&&vd(e[o])?r[o]=Do(e[o],t[o],n):r[o]=t[o])}),r}function wl(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 Sk={},aj={get exports(){return Sk},set exports(e){Sk=e}},tn={};/**
70
+ * @license React
71
+ * react-is.production.min.js
72
+ *
73
+ * Copyright (c) Facebook, Inc. and its affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var Ww=Symbol.for("react.element"),Gw=Symbol.for("react.portal"),$g=Symbol.for("react.fragment"),Tg=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),_g=Symbol.for("react.provider"),Rg=Symbol.for("react.context"),cj=Symbol.for("react.server_context"),Og=Symbol.for("react.forward_ref"),Lg=Symbol.for("react.suspense"),Ag=Symbol.for("react.suspense_list"),Fg=Symbol.for("react.memo"),Ng=Symbol.for("react.lazy"),uj=Symbol.for("react.offscreen"),o_;o_=Symbol.for("react.module.reference");function Go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ww:switch(e=e.type,e){case $g:case Mg:case Tg:case Lg:case Ag:return e;default:switch(e=e&&e.$$typeof,e){case cj:case Rg:case Og:case Ng:case Fg:case _g:return e;default:return t}}case Gw:return t}}}tn.ContextConsumer=Rg;tn.ContextProvider=_g;tn.Element=Ww;tn.ForwardRef=Og;tn.Fragment=$g;tn.Lazy=Ng;tn.Memo=Fg;tn.Portal=Gw;tn.Profiler=Mg;tn.StrictMode=Tg;tn.Suspense=Lg;tn.SuspenseList=Ag;tn.isAsyncMode=function(){return!1};tn.isConcurrentMode=function(){return!1};tn.isContextConsumer=function(e){return Go(e)===Rg};tn.isContextProvider=function(e){return Go(e)===_g};tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ww};tn.isForwardRef=function(e){return Go(e)===Og};tn.isFragment=function(e){return Go(e)===$g};tn.isLazy=function(e){return Go(e)===Ng};tn.isMemo=function(e){return Go(e)===Fg};tn.isPortal=function(e){return Go(e)===Gw};tn.isProfiler=function(e){return Go(e)===Mg};tn.isStrictMode=function(e){return Go(e)===Tg};tn.isSuspense=function(e){return Go(e)===Lg};tn.isSuspenseList=function(e){return Go(e)===Ag};tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$g||e===Mg||e===Tg||e===Lg||e===Ag||e===uj||typeof e=="object"&&e!==null&&(e.$$typeof===Ng||e.$$typeof===Fg||e.$$typeof===_g||e.$$typeof===Rg||e.$$typeof===Og||e.$$typeof===o_||e.getModuleId!==void 0)};tn.typeOf=Go;(function(e){e.exports=tn})(aj);function fe(e){if(typeof e!="string")throw new Error(wl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ek(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Cl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function qh(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Cn(e){return e&&e.ownerDocument||document}function uo(e){return Cn(e).defaultView||window}function pf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const dj=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Rn=dj;let Pk=0;function fj(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(Pk+=1,n(`mui-${Pk}`))},[t]),r}const kk=Uc["useId"];function kn(e){if(kk!==void 0){const t=kk();return e!=null?e:t}return fj(e)}function hs({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(f=>{o||s(f)},[]);return[a,c]}function jn(e){const t=u.useRef(e);return Rn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function xt(e,t){return u.useMemo(()=>e==null&&t==null?null:n=>{pf(e,n),pf(t,n)},[e,t])}let Dg=!0,X1=!1,Ik;const pj={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 hj(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&pj[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mj(e){e.metaKey||e.altKey||e.ctrlKey||(Dg=!0)}function y0(){Dg=!1}function gj(){this.visibilityState==="hidden"&&X1&&(Dg=!0)}function vj(e){e.addEventListener("keydown",mj,!0),e.addEventListener("mousedown",y0,!0),e.addEventListener("pointerdown",y0,!0),e.addEventListener("touchstart",y0,!0),e.addEventListener("visibilitychange",gj,!0)}function yj(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Dg||hj(t)}function Kw(){const e=u.useCallback(o=>{o!=null&&vj(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(X1=!0,window.clearTimeout(Ik),Ik=window.setTimeout(()=>{X1=!1},100),t.current=!1,!0):!1}function r(o){return yj(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function i_(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let sc;function s_(){if(sc)return sc;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),sc="reverse",e.scrollLeft>0?sc="default":(e.scrollLeft=1,e.scrollLeft===0&&(sc="negative")),document.body.removeChild(e),sc}function $k(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(s_()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const bj=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},l_=bj;function a_(e,t){const n=x({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Ie(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>(s&&(i.push(t(s)),n&&n[s]&&i.push(n[s])),i),[]).join(" ")}),r}const Tk=e=>e,wj=()=>{let e=Tk;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Tk}}},Cj=wj(),c_=Cj,xj={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function qe(e,t,n="Mui"){const r=xj[t];return r?`${n}-${r}`:`${c_.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=qe(e,o,n)}),r}function Ad(e,t){return t?Do(e,t,{clone:!1}):e}const qw={xs:0,sm:600,md:900,lg:1200,xl:1536},Mk={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qw[e]}px)`};function pi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Mk;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Mk;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||qw).indexOf(a)!==-1){const c=i.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function Sj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ej(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Pj(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Bg({values:e,breakpoints:t,base:n}){const r=n||Pj(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function hf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function _k(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=hf(e,n)||r,t&&(o=t(o)),o}function Ge(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,f=hf(c,r)||{};return pi(s,a,h=>{let m=_k(f,o,h);return h===m&&typeof h=="string"&&(m=_k(f,o,`${t}${h==="default"?"":fe(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function _l(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ad(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function kj(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ij={m:"margin",p:"padding"},$j={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rk={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tj=kj(e=>{if(e.length>2)if(Rk[e])e=Rk[e];else return[e];const[t,n]=e.split(""),r=Ij[t],o=$j[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Mj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_j=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],u_=[...Mj,..._j];function Hf(e,t,n,r){var o;const i=(o=hf(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function d_(e){return Hf(e,"spacing",8)}function jf(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 Rj(e,t){return n=>e.reduce((r,o)=>(r[o]=jf(t,n),r),{})}function Oj(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Tj(n),i=Rj(o,r),s=e[n];return pi(e,s,i)}function Lj(e,t){const n=d_(e.theme);return Object.keys(e).map(r=>Oj(e,t,r,n)).reduce(Ad,{})}function zg(e){return Lj(e,u_)}zg.propTypes={};zg.filterProps=u_;function Vf(e){return typeof e!="number"?e:`${e}px solid`}const Aj=Ge({prop:"border",themeKey:"borders",transform:Vf}),Fj=Ge({prop:"borderTop",themeKey:"borders",transform:Vf}),Nj=Ge({prop:"borderRight",themeKey:"borders",transform:Vf}),Dj=Ge({prop:"borderBottom",themeKey:"borders",transform:Vf}),Bj=Ge({prop:"borderLeft",themeKey:"borders",transform:Vf}),zj=Ge({prop:"borderColor",themeKey:"palette"}),Hj=Ge({prop:"borderTopColor",themeKey:"palette"}),jj=Ge({prop:"borderRightColor",themeKey:"palette"}),Vj=Ge({prop:"borderBottomColor",themeKey:"palette"}),Uj=Ge({prop:"borderLeftColor",themeKey:"palette"}),Yw=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hf(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:jf(t,r)});return pi(e,e.borderRadius,n)}return null};Yw.propTypes={};Yw.filterProps=["borderRadius"];const Wj=_l(Aj,Fj,Nj,Dj,Bj,zj,Hj,jj,Vj,Uj,Yw),f_=Wj,Gj=Ge({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Kj=Ge({prop:"display"}),qj=Ge({prop:"overflow"}),Yj=Ge({prop:"textOverflow"}),Xj=Ge({prop:"visibility"}),Qj=Ge({prop:"whiteSpace"}),p_=_l(Gj,Kj,qj,Yj,Xj,Qj),Jj=Ge({prop:"flexBasis"}),Zj=Ge({prop:"flexDirection"}),e8=Ge({prop:"flexWrap"}),t8=Ge({prop:"justifyContent"}),n8=Ge({prop:"alignItems"}),r8=Ge({prop:"alignContent"}),o8=Ge({prop:"order"}),i8=Ge({prop:"flex"}),s8=Ge({prop:"flexGrow"}),l8=Ge({prop:"flexShrink"}),a8=Ge({prop:"alignSelf"}),c8=Ge({prop:"justifyItems"}),u8=Ge({prop:"justifySelf"}),d8=_l(Jj,Zj,e8,t8,n8,r8,o8,i8,s8,l8,a8,c8,u8),h_=d8,Xw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hf(e.theme,"spacing",8),n=r=>({gap:jf(t,r)});return pi(e,e.gap,n)}return null};Xw.propTypes={};Xw.filterProps=["gap"];const Qw=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hf(e.theme,"spacing",8),n=r=>({columnGap:jf(t,r)});return pi(e,e.columnGap,n)}return null};Qw.propTypes={};Qw.filterProps=["columnGap"];const Jw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hf(e.theme,"spacing",8),n=r=>({rowGap:jf(t,r)});return pi(e,e.rowGap,n)}return null};Jw.propTypes={};Jw.filterProps=["rowGap"];const f8=Ge({prop:"gridColumn"}),p8=Ge({prop:"gridRow"}),h8=Ge({prop:"gridAutoFlow"}),m8=Ge({prop:"gridAutoColumns"}),g8=Ge({prop:"gridAutoRows"}),v8=Ge({prop:"gridTemplateColumns"}),y8=Ge({prop:"gridTemplateRows"}),b8=Ge({prop:"gridTemplateAreas"}),w8=Ge({prop:"gridArea"}),C8=_l(Xw,Qw,Jw,f8,p8,h8,m8,g8,v8,y8,b8,w8),m_=C8,x8=Ge({prop:"color",themeKey:"palette"}),S8=Ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),E8=Ge({prop:"backgroundColor",themeKey:"palette"}),P8=_l(x8,S8,E8),g_=P8,k8=Ge({prop:"position"}),I8=Ge({prop:"zIndex",themeKey:"zIndex"}),$8=Ge({prop:"top"}),T8=Ge({prop:"right"}),M8=Ge({prop:"bottom"}),_8=Ge({prop:"left"}),v_=_l(k8,I8,$8,T8,M8,_8),R8=Ge({prop:"boxShadow",themeKey:"shadows"}),y_=R8;function Rl(e){return e<=1&&e!==0?`${e*100}%`:e}const O8=Ge({prop:"width",transform:Rl}),b_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||qw[n]||Rl(n)}};return pi(e,e.maxWidth,t)}return null};b_.filterProps=["maxWidth"];const L8=Ge({prop:"minWidth",transform:Rl}),A8=Ge({prop:"height",transform:Rl}),F8=Ge({prop:"maxHeight",transform:Rl}),N8=Ge({prop:"minHeight",transform:Rl});Ge({prop:"size",cssProperty:"width",transform:Rl});Ge({prop:"size",cssProperty:"height",transform:Rl});const D8=Ge({prop:"boxSizing"}),B8=_l(O8,b_,L8,A8,F8,N8,D8),w_=B8,z8=Ge({prop:"fontFamily",themeKey:"typography"}),H8=Ge({prop:"fontSize",themeKey:"typography"}),j8=Ge({prop:"fontStyle",themeKey:"typography"}),V8=Ge({prop:"fontWeight",themeKey:"typography"}),U8=Ge({prop:"letterSpacing"}),W8=Ge({prop:"textTransform"}),G8=Ge({prop:"lineHeight"}),K8=Ge({prop:"textAlign"}),q8=Ge({prop:"typography",cssProperty:!1,themeKey:"typography"}),Y8=_l(q8,z8,H8,j8,V8,U8,G8,K8,W8),C_=Y8,Ok={borders:f_.filterProps,display:p_.filterProps,flexbox:h_.filterProps,grid:m_.filterProps,positions:v_.filterProps,palette:g_.filterProps,shadows:y_.filterProps,sizing:w_.filterProps,spacing:zg.filterProps,typography:C_.filterProps},x_={borders:f_,display:p_,flexbox:h_,grid:m_,positions:v_,palette:g_,shadows:y_,sizing:w_,spacing:zg,typography:C_},X8=Object.keys(Ok).reduce((e,t)=>(Ok[t].forEach(n=>{e[n]=x_[t]}),e),{});function Q8(...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 J8(e,t){return typeof e=="function"?e(t):e}function Z8(e=x_){const t=Object.keys(e).reduce((o,i)=>(e[i].filterProps.forEach(s=>{o[s]=e[i]}),o),{});function n(o,i,s){const a={[o]:i,theme:s},c=t[o];return c?c(a):{[o]:i}}function r(o){const{sx:i,theme:s={}}=o||{};if(!i)return null;function a(c){let f=c;if(typeof c=="function")f=c(s);else if(typeof c!="object")return c;if(!f)return null;const p=Sj(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(v=>{const b=J8(f[v],s);if(b!=null)if(typeof b=="object")if(t[v])m=Ad(m,n(v,b,s));else{const g=pi({theme:s},b,S=>({[v]:S}));Q8(g,b)?m[v]=r({sx:b,theme:s}):m=Ad(m,g)}else m=Ad(m,n(v,b,s))}),Ej(h,m)}return Array.isArray(i)?i.map(a):a(i)}return r}const S_=Z8();S_.filterProps=["sx"];const E_=S_,eV=["sx"],tV=e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach(n=>{X8[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function Zw(e){const{sx:t}=e,n=oe(e,eV),{systemProps:r,otherProps:o}=tV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return vd(a)?x({},r,a):r}:i=x({},r,t),x({},o,{sx:i})}function P_(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=P_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=P_(e))&&(r&&(r+=" "),r+=t);return r}const nV=["values","unit","step"],rV=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>x({},n,{[r.key]:r.val}),{})};function oV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oe(e,nV),i=rV(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):a(m)}function h(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return x({keys:s,values:i,up:a,down:c,between:f,only:p,not:h,unit:n},o)}const iV={borderRadius:4},sV=iV;function lV(e=8){if(e.mui)return e;const t=d_({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}const aV=["breakpoints","palette","spacing","shape"];function eC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=oe(e,aV),a=oV(n),c=lV(o);let f=Do({breakpoints:a,direction:"ltr",components:{},palette:x({mode:"light"},r),spacing:c,shape:x({},sV,i)},s);return f=t.reduce((p,h)=>Do(p,h),f),f}const cV=u.createContext(null),k_=cV;function I_(){return u.useContext(k_)}const uV=typeof Symbol=="function"&&Symbol.for,dV=uV?Symbol.for("mui.nested"):"__THEME_NESTED__";function fV(e,t){return typeof t=="function"?t(e):x({},e,t)}function pV(e){const{children:t,theme:n}=e,r=I_(),o=u.useMemo(()=>{const i=r===null?n:fV(r,n);return i!=null&&(i[dV]=r!==null),i},[n,r]);return _.jsx(k_.Provider,{value:o,children:t})}function hV(e){return Object.keys(e).length===0}function tC(e=null){const t=I_();return!t||hV(t)?e:t}const mV=eC();function Hg(e=mV){return tC(e)}const gV=["className","component"];function vV(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r,styleFunctionSx:o=E_}=e,i=r_("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(o);return u.forwardRef(function(c,f){const p=Hg(t),h=Zw(c),{className:m,component:v="div"}=h,b=oe(h,gV);return _.jsx(i,x({as:v,ref:f,className:he(m,r?r(n):n),theme:p},b))})}const yV=["variant"];function Lk(e){return e.length===0}function $_(e){const{variant:t}=e,n=oe(e,yV);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Lk(r)?e[o]:fe(e[o]):r+=`${Lk(r)?o:fe(o)}${fe(e[o].toString())}`}),r}const bV=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],wV=["theme"],CV=["theme"];function od(e){return Object.keys(e).length===0}function xV(e){return typeof e=="string"&&e.charCodeAt(0)>96}const SV=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,EV=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=$_(o.props);r[i]=o.style}),r},PV=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(f=>{let p=!0;Object.keys(f.props).forEach(h=>{s[h]!==f.props[h]&&e[h]!==f.props[h]&&(p=!1)}),p&&a.push(t[$_(f.props)])}),a};function Fd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kV=eC();function IV(e={}){const{defaultTheme:t=kV,rootShouldForwardProp:n=Fd,slotShouldForwardProp:r=Fd,styleFunctionSx:o=E_}=e,i=s=>{const a=od(s.theme)?t:s.theme;return o(x({},s,{theme:a}))};return i.__mui_systemSx=!0,(s,a={})=>{lj(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=oe(a,bV),b=p!==void 0?p:f&&f!=="Root"||!1,g=h||!1;let S,w=Fd;f==="Root"?w=n:f?w=r:xV(s)&&(w=void 0);const P=r_(s,x({shouldForwardProp:w,label:S},v)),C=(E,...I)=>{const T=I?I.map(O=>typeof O=="function"&&O.__emotion_real!==O?N=>{let{theme:U}=N,j=oe(N,wV);return O(x({theme:od(U)?t:U},j))}:O):[];let k=E;c&&m&&T.push(O=>{const N=od(O.theme)?t:O.theme,U=SV(c,N);if(U){const j={};return Object.entries(U).forEach(([L,D])=>{j[L]=typeof D=="function"?D(x({},O,{theme:N})):D}),m(O,j)}return null}),c&&!b&&T.push(O=>{const N=od(O.theme)?t:O.theme;return PV(O,EV(c,N),N,c)}),g||T.push(i);const $=T.length-I.length;if(Array.isArray(E)&&$>0){const O=new Array($).fill("");k=[...E,...O],k.raw=[...E.raw,...O]}else typeof E=="function"&&E.__emotion_real!==E&&(k=O=>{let{theme:N}=O,U=oe(O,CV);return E(x({theme:od(N)?t:N},U))});return P(k,...T)};return P.withConfig&&(C.withConfig=P.withConfig),C}}function T_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:a_(t.components[n].defaultProps,r)}function $V({props:e,name:t,defaultTheme:n}){const r=Hg(n);return T_({theme:r,name:t,props:e})}function nC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function TV(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 ba(e){if(e.type)return e;if(e.charAt(0)==="#")return ba(TV(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(wl(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(wl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function jg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function MV(e){e=ba(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,p=(f+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),jg({type:a,values:c})}function Ak(e){e=ba(e);let t=e.type==="hsl"?ba(MV(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:ns((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _V(e,t){const n=Ak(e),r=Ak(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ot(e,t){return e=ba(e),t=nC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jg(e)}function Cs(e,t){if(e=ba(e),t=nC(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 jg(e)}function xs(e,t){if(e=ba(e),t=nC(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 jg(e)}function RV(e){const t=Hg();return _.jsx(Uw.Provider,{value:typeof t=="object"?t:{},children:e.children})}function OV(e){const{children:t,theme:n}=e;return _.jsx(pV,{theme:n,children:_.jsx(RV,{children:t})})}function xl(e){return typeof e=="string"}function yd(e,t={},n){return xl(e)?t:x({},t,{ownerState:x({},t.ownerState,n)})}function LV(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 Q1(e,t){return typeof e=="function"?e(t):e}function Fk(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 AV(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=x({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=x({},n,o,r);return v.length>0&&(g.className=v),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const s=LV(x({},o,r)),a=Fk(r),c=Fk(o),f=t(s),p=he(f==null?void 0:f.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=x({},f==null?void 0:f.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=x({},f,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}const FV=["elementType","externalSlotProps","ownerState"];function mf(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=oe(e,FV),s=Q1(r,o),{props:a,internalRef:c}=AV(x({},i,{externalSlotProps:s})),f=xt(c,xt(s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref));return yd(n,x({},a,{ref:f}),o)}function Nk(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M_(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:f})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=Nk(p));const h=a.filter(m=>{let v=(i||f)(m);return n&&(v=v.toLowerCase()),t&&(v=Nk(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1});return typeof r=="number"?h.slice(0,r):h}}function b0(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const NV=M_(),Dk=5;function DV(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:r=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:a="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:v=!1,filterOptions:b=NV,filterSelectedOptions:g=!1,freeSolo:S=!1,getOptionDisabled:w,getOptionLabel:P=ve=>{var ge;return(ge=ve.label)!=null?ge:ve},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:I,includeInputInList:T=!1,inputValue:k,isOptionEqualToValue:$=(ve,ge)=>ve===ge,multiple:R=!1,onChange:O,onClose:N,onHighlightChange:U,onInputChange:j,onOpen:L,open:D,openOnFocus:B=!1,options:W,readOnly:A=!1,selectOnFocus:z=!e.freeSolo,value:G}=e,q=kn(I);let X=P;X=ve=>{const ge=P(ve);return typeof ge!="string"?String(ge):ge};const ie=u.useRef(!1),ee=u.useRef(!0),se=u.useRef(null),ae=u.useRef(null),[we,de]=u.useState(null),[le,te]=u.useState(-1),be=n?0:-1,$e=u.useRef(be),[Se,Ne]=hs({controlled:G,default:c,name:a}),[Re,Fe]=hs({controlled:k,default:"",name:a,state:"inputValue"}),[Le,et]=u.useState(!1),gt=u.useCallback((ve,ge)=>{if(!(R?Se.length<ge.length:ge!==null)&&!i)return;let at;if(R)at="";else if(ge==null)at="";else{const zt=X(ge);at=typeof zt=="string"?zt:""}Re!==at&&(Fe(at),j&&j(ve,at,"reset"))},[X,Re,R,j,Fe,i,Se]),nt=u.useRef();u.useEffect(()=>{const ve=Se!==nt.current;nt.current=Se,!(Le&&!ve)&&(S&&!ve||gt(null,Se))},[Se,gt,Le,nt,S]);const[tt,St]=hs({controlled:D,default:!1,name:a,state:"open"}),[dt,it]=u.useState(!0),Pt=!R&&Se!=null&&Re===X(Se),Qe=tt&&!A,_e=Qe?b(W.filter(ve=>!(g&&(R?Se:[Se]).some(ge=>ge!==null&&$(ve,ge)))),{inputValue:Pt&&dt?"":Re,getOptionLabel:X}):[],ne=tt&&_e.length>0&&!A,ke=jn(ve=>{ve===-1?se.current.focus():we.querySelector(`[data-tag-index="${ve}"]`).focus()});u.useEffect(()=>{R&&le>Se.length-1&&(te(-1),ke(-1))},[Se,R,le,ke]);function Ee(ve,ge){if(!ae.current||ve===-1)return-1;let rt=ve;for(;;){if(ge==="next"&&rt===_e.length||ge==="previous"&&rt===-1)return-1;const at=ae.current.querySelector(`[data-option-index="${rt}"]`),zt=m?!1:!at||at.disabled||at.getAttribute("aria-disabled")==="true";if(at&&!at.hasAttribute("tabindex")||zt)rt+=ge==="next"?1:-1;else return rt}}const Te=jn(({event:ve,index:ge,reason:rt="auto"})=>{if($e.current=ge,ge===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${q}-option-${ge}`),U&&U(ve,ge===-1?null:_e[ge],rt),!ae.current)return;const at=ae.current.querySelector('[role="option"].Mui-focused');at&&(at.classList.remove("Mui-focused"),at.classList.remove("Mui-focusVisible"));const zt=ae.current.parentElement.querySelector('[role="listbox"]');if(!zt)return;if(ge===-1){zt.scrollTop=0;return}const sn=ae.current.querySelector(`[data-option-index="${ge}"]`);if(sn&&(sn.classList.add("Mui-focused"),rt==="keyboard"&&sn.classList.add("Mui-focusVisible"),zt.scrollHeight>zt.clientHeight&&rt!=="mouse")){const gn=sn,Or=zt.clientHeight+zt.scrollTop,Ba=gn.offsetTop+gn.offsetHeight;Ba>Or?zt.scrollTop=Ba-zt.clientHeight:gn.offsetTop-gn.offsetHeight*(C?1.3:0)<zt.scrollTop&&(zt.scrollTop=gn.offsetTop-gn.offsetHeight*(C?1.3:0))}}),Ke=jn(({event:ve,diff:ge,direction:rt="next",reason:at="auto"})=>{if(!Qe)return;const sn=Ee((()=>{const gn=_e.length-1;if(ge==="reset")return be;if(ge==="start")return 0;if(ge==="end")return gn;const Or=$e.current+ge;return Or<0?Or===-1&&T?-1:v&&$e.current!==-1||Math.abs(ge)>1?0:gn:Or>gn?Or===gn+1&&T?-1:v||Math.abs(ge)>1?gn:0:Or})(),rt);if(Te({index:sn,reason:at,event:ve}),t&&ge!=="reset")if(sn===-1)se.current.value=Re;else{const gn=X(_e[sn]);se.current.value=gn,gn.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&se.current.setSelectionRange(Re.length,gn.length)}}),bt=u.useCallback(()=>{if(!Qe)return;const ve=R?Se[0]:Se;if(_e.length===0||ve==null){Ke({diff:"reset"});return}if(ae.current){if(ve!=null){const ge=_e[$e.current];if(R&&ge&&b0(Se,at=>$(ge,at))!==-1)return;const rt=b0(_e,at=>$(at,ve));rt===-1?Ke({diff:"reset"}):Te({index:rt});return}if($e.current>=_e.length-1){Te({index:_e.length-1});return}Te({index:$e.current})}},[_e.length,R?!1:Se,g,Ke,Te,Qe,Re,R]),Nt=jn(ve=>{pf(ae,ve),ve&&bt()});u.useEffect(()=>{bt()},[bt]);const Dt=ve=>{tt||(St(!0),it(!0),L&&L(ve))},Yn=(ve,ge)=>{tt&&(St(!1),N&&N(ve,ge))},dn=(ve,ge,rt,at)=>{if(R){if(Se.length===ge.length&&Se.every((zt,sn)=>zt===ge[sn]))return}else if(Se===ge)return;O&&O(ve,ge,rt,at),Ne(ge)},Un=u.useRef(!1),xr=(ve,ge,rt="selectOption",at="options")=>{let zt=rt,sn=ge;if(R){sn=Array.isArray(Se)?Se.slice():[];const gn=b0(sn,Or=>$(ge,Or));gn===-1?sn.push(ge):at!=="freeSolo"&&(sn.splice(gn,1),zt="removeOption")}gt(ve,sn),dn(ve,sn,zt,{option:ge}),!p&&(!ve||!ve.ctrlKey&&!ve.metaKey)&&Yn(ve,zt),(o===!0||o==="touch"&&Un.current||o==="mouse"&&!Un.current)&&se.current.blur()};function fn(ve,ge){if(ve===-1)return-1;let rt=ve;for(;;){if(ge==="next"&&rt===Se.length||ge==="previous"&&rt===-1)return-1;const at=we.querySelector(`[data-tag-index="${rt}"]`);if(!at||!at.hasAttribute("tabindex")||at.disabled||at.getAttribute("aria-disabled")==="true")rt+=ge==="next"?1:-1;else return rt}}const nn=(ve,ge)=>{if(!R)return;Re===""&&Yn(ve,"toggleInput");let rt=le;le===-1?Re===""&&ge==="previous"&&(rt=Se.length-1):(rt+=ge==="next"?1:-1,rt<0&&(rt=0),rt===Se.length&&(rt=-1)),rt=fn(rt,ge),te(rt),ke(rt)},Xt=ve=>{ie.current=!0,Fe(""),j&&j(ve,"","clear"),dn(ve,R?[]:null,"clear")},yo=ve=>ge=>{if(ve.onKeyDown&&ve.onKeyDown(ge),!ge.defaultMuiPrevented&&(le!==-1&&["ArrowLeft","ArrowRight"].indexOf(ge.key)===-1&&(te(-1),ke(-1)),ge.which!==229))switch(ge.key){case"Home":Qe&&E&&(ge.preventDefault(),Ke({diff:"start",direction:"next",reason:"keyboard",event:ge}));break;case"End":Qe&&E&&(ge.preventDefault(),Ke({diff:"end",direction:"previous",reason:"keyboard",event:ge}));break;case"PageUp":ge.preventDefault(),Ke({diff:-Dk,direction:"previous",reason:"keyboard",event:ge}),Dt(ge);break;case"PageDown":ge.preventDefault(),Ke({diff:Dk,direction:"next",reason:"keyboard",event:ge}),Dt(ge);break;case"ArrowDown":ge.preventDefault(),Ke({diff:1,direction:"next",reason:"keyboard",event:ge}),Dt(ge);break;case"ArrowUp":ge.preventDefault(),Ke({diff:-1,direction:"previous",reason:"keyboard",event:ge}),Dt(ge);break;case"ArrowLeft":nn(ge,"previous");break;case"ArrowRight":nn(ge,"next");break;case"Enter":if($e.current!==-1&&Qe){const rt=_e[$e.current],at=w?w(rt):!1;if(ge.preventDefault(),at)return;xr(ge,rt,"selectOption"),t&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else S&&Re!==""&&Pt===!1&&(R&&ge.preventDefault(),xr(ge,Re,"createOption","freeSolo"));break;case"Escape":Qe?(ge.preventDefault(),ge.stopPropagation(),Yn(ge,"escape")):s&&(Re!==""||R&&Se.length>0)&&(ge.preventDefault(),ge.stopPropagation(),Xt(ge));break;case"Backspace":if(R&&!A&&Re===""&&Se.length>0){const rt=le===-1?Se.length-1:le,at=Se.slice();at.splice(rt,1),dn(ge,at,"removeOption",{option:Se[rt]})}break}},vi=ve=>{et(!0),B&&!ie.current&&Dt(ve)},Rr=ve=>{if(ae.current!==null&&ae.current.parentElement.contains(document.activeElement)){se.current.focus();return}et(!1),ee.current=!0,ie.current=!1,r&&$e.current!==-1&&Qe?xr(ve,_e[$e.current],"blur"):r&&S&&Re!==""?xr(ve,Re,"blur","freeSolo"):i&&gt(ve,Se),Yn(ve,"blur")},Yo=ve=>{const ge=ve.target.value;Re!==ge&&(Fe(ge),it(!1),j&&j(ve,ge,"input")),ge===""?!f&&!R&&dn(ve,null,"clear"):Dt(ve)},bo=ve=>{Te({event:ve,index:Number(ve.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Mt=()=>{Un.current=!0},On=ve=>{const ge=Number(ve.currentTarget.getAttribute("data-option-index"));xr(ve,_e[ge],"selectOption"),Un.current=!1},ce=ve=>ge=>{const rt=Se.slice();rt.splice(ve,1),dn(ge,rt,"removeOption",{option:Se[ve]})},me=ve=>{tt?Yn(ve,"toggleInput"):Dt(ve)},He=ve=>{ve.target.getAttribute("id")!==q&&ve.preventDefault()},ft=()=>{se.current.focus(),z&&ee.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),ee.current=!1},vt=ve=>{(Re===""||!tt)&&me(ve)};let ze=S&&Re.length>0;ze=ze||(R?Se.length>0:Se!==null);let st=_e;return C&&(st=_e.reduce((ve,ge,rt)=>{const at=C(ge);return ve.length>0&&ve[ve.length-1].group===at?ve[ve.length-1].options.push(ge):ve.push({key:rt,index:rt,group:at,options:[ge]}),ve},[])),h&&Le&&Rr(),{getRootProps:(ve={})=>x({"aria-owns":ne?`${q}-listbox`:null},ve,{onKeyDown:yo(ve),onMouseDown:He,onClick:ft}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:Re,onBlur:Rr,onFocus:vi,onChange:Yo,onMouseDown:vt,"aria-activedescendant":Qe?"":null,"aria-autocomplete":t?"both":"list","aria-controls":ne?`${q}-listbox`:void 0,"aria-expanded":ne,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:Xt}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:me}),getTagProps:({index:ve})=>x({key:ve,"data-tag-index":ve,tabIndex:-1},!A&&{onDelete:ce(ve)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:Nt,onMouseDown:ve=>{ve.preventDefault()}}),getOptionProps:({index:ve,option:ge})=>{const rt=(R?Se:[Se]).some(zt=>zt!=null&&$(ge,zt)),at=w?w(ge):!1;return{key:X(ge),tabIndex:-1,role:"option",id:`${q}-option-${ve}`,onMouseOver:bo,onClick:On,onTouchStart:Mt,"data-option-index":ve,"aria-disabled":at,"aria-selected":rt}},id:q,inputValue:Re,value:Se,dirty:ze,popupOpen:Qe,focused:Le||le!==-1,anchorEl:we,setAnchorEl:de,focusedTag:le,groupedOptions:st}}function BV(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=l_({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,f=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:f}}function zV(e){return qe("BaseBadge",e)}Ue("BaseBadge",["root","badge","invisible"]);const HV=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],jV=e=>{const{invisible:t}=e;return Ie({root:["root"],badge:["badge",t&&"invisible"]},zV,void 0)},VV=u.forwardRef(function(t,n){const{component:r,children:o,components:i={},componentsProps:s={},max:a=99,showZero:c=!1}=t,f=oe(t,HV),{badgeContent:p,max:h,displayValue:m,invisible:v}=BV(x({},t,{max:a})),b=x({},t,{badgeContent:p,invisible:v,max:h,showZero:c}),g=jV(b),S=r||i.Root||"span",w=mf({elementType:S,externalSlotProps:s.root,externalForwardedProps:f,additionalProps:{ref:n},ownerState:b,className:g.root}),P=i.Badge||"span",C=mf({elementType:P,externalSlotProps:s.badge,ownerState:b,className:g.badge});return _.jsxs(S,x({},w,{children:[o,_.jsx(P,x({},C,{children:m}))]}))}),UV=VV;function Bk(e){return e.substring(2).toLowerCase()}function WV(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function __(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),f=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=xt(t.ref,a),h=jn(b=>{const g=f.current;f.current=!1;const S=Cn(a.current);if(!c.current||!a.current||"clientX"in b&&WV(b,S))return;if(s.current){s.current=!1;return}let w;b.composedPath?w=b.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(b.target)||a.current.contains(b.target),!w&&(n||!g)&&o(b)}),m=b=>g=>{f.current=!0;const S=t.props[b];S&&S(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=Bk(i),g=Cn(a.current),S=()=>{s.current=!0};return g.addEventListener(b,h),g.addEventListener("touchmove",S),()=>{g.removeEventListener(b,h),g.removeEventListener("touchmove",S)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=Bk(r),g=Cn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),_.jsx(u.Fragment,{children:u.cloneElement(t,v)})}var Gr="top",Vo="bottom",Uo="right",Kr="left",rC="auto",Uf=[Gr,Vo,Uo,Kr],Zc="start",gf="end",GV="clippingParents",R_="viewport",id="popper",KV="reference",zk=Uf.reduce(function(e,t){return e.concat([t+"-"+Zc,t+"-"+gf])},[]),O_=[].concat(Uf,[rC]).reduce(function(e,t){return e.concat([t,t+"-"+Zc,t+"-"+gf])},[]),qV="beforeRead",YV="read",XV="afterRead",QV="beforeMain",JV="main",ZV="afterMain",e7="beforeWrite",t7="write",n7="afterWrite",r7=[qV,YV,XV,QV,JV,ZV,e7,t7,n7];function Vi(e){return e?(e.nodeName||"").toLowerCase():null}function Ko(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wa(e){var t=Ko(e).Element;return e instanceof t||e instanceof Element}function Bo(e){var t=Ko(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oC(e){if(typeof ShadowRoot=="undefined")return!1;var t=Ko(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function o7(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Bo(i)||!Vi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function i7(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,f){return c[f]="",c},{});!Bo(o)||!Vi(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const s7={name:"applyStyles",enabled:!0,phase:"write",fn:o7,effect:i7,requires:["computeStyles"]};function Ni(e){return e.split("-")[0]}var ca=Math.max,Tm=Math.min,eu=Math.round;function J1(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function L_(){return!/^((?!chrome|android).)*safari/i.test(J1())}function tu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Bo(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var s=wa(e)?Ko(e):window,a=s.visualViewport,c=!L_()&&n,f=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function iC(e){var t=tu(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 A_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ss(e){return Ko(e).getComputedStyle(e)}function l7(e){return["table","td","th"].indexOf(Vi(e))>=0}function Ol(e){return((wa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vg(e){return Vi(e)==="html"?e:e.assignedSlot||e.parentNode||(oC(e)?e.host:null)||Ol(e)}function Hk(e){return!Bo(e)||Ss(e).position==="fixed"?null:e.offsetParent}function a7(e){var t=/firefox/i.test(J1()),n=/Trident/i.test(J1());if(n&&Bo(e)){var r=Ss(e);if(r.position==="fixed")return null}var o=Vg(e);for(oC(o)&&(o=o.host);Bo(o)&&["html","body"].indexOf(Vi(o))<0;){var i=Ss(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wf(e){for(var t=Ko(e),n=Hk(e);n&&l7(n)&&Ss(n).position==="static";)n=Hk(n);return n&&(Vi(n)==="html"||Vi(n)==="body"&&Ss(n).position==="static")?t:n||a7(e)||t}function sC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nd(e,t,n){return ca(e,Tm(t,n))}function c7(e,t,n){var r=Nd(e,t,n);return r>n?n:r}function F_(){return{top:0,right:0,bottom:0,left:0}}function N_(e){return Object.assign({},F_(),e)}function D_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u7=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,N_(typeof t!="number"?t:D_(t,Uf))};function d7(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ni(n.placement),c=sC(a),f=[Kr,Uo].indexOf(a)>=0,p=f?"height":"width";if(!(!i||!s)){var h=u7(o.padding,n),m=iC(i),v=c==="y"?Gr:Kr,b=c==="y"?Vo:Uo,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],S=s[c]-n.rects.reference[c],w=Wf(i),P=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,C=g/2-S/2,E=h[v],I=P-m[p]-h[b],T=P/2-m[p]/2+C,k=Nd(E,T,I),$=c;n.modifiersData[r]=(t={},t[$]=k,t.centerOffset=k-T,t)}}function f7(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)||A_(t.elements.popper,o)&&(t.elements.arrow=o))}const p7={name:"arrow",enabled:!0,phase:"main",fn:d7,effect:f7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nu(e){return e.split("-")[1]}var h7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m7(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:eu(t*o)/o||0,y:eu(n*o)/o||0}}function jk(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,b=s.y,g=b===void 0?0:b,S=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=S.x,g=S.y;var w=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),C=Kr,E=Gr,I=window;if(f){var T=Wf(n),k="clientHeight",$="clientWidth";if(T===Ko(n)&&(T=Ol(n),Ss(T).position!=="static"&&a==="absolute"&&(k="scrollHeight",$="scrollWidth")),T=T,o===Gr||(o===Kr||o===Uo)&&i===gf){E=Vo;var R=h&&T===I&&I.visualViewport?I.visualViewport.height:T[k];g-=R-r.height,g*=c?1:-1}if(o===Kr||(o===Gr||o===Vo)&&i===gf){C=Uo;var O=h&&T===I&&I.visualViewport?I.visualViewport.width:T[$];v-=O-r.width,v*=c?1:-1}}var N=Object.assign({position:a},f&&h7),U=p===!0?m7({x:v,y:g}):{x:v,y:g};if(v=U.x,g=U.y,c){var j;return Object.assign({},N,(j={},j[E]=P?"0":"",j[C]=w?"0":"",j.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},N,(t={},t[E]=P?g+"px":"",t[C]=w?v+"px":"",t.transform="",t))}function g7(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:Ni(t.placement),variation:nu(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,jk(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jk(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const v7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g7,data:{}};var yh={passive:!0};function y7(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,c=Ko(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,yh)}),a&&c.addEventListener("resize",n.update,yh),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,yh)}),a&&c.removeEventListener("resize",n.update,yh)}}const b7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y7,data:{}};var w7={left:"right",right:"left",bottom:"top",top:"bottom"};function Yh(e){return e.replace(/left|right|bottom|top/g,function(t){return w7[t]})}var C7={start:"end",end:"start"};function Vk(e){return e.replace(/start|end/g,function(t){return C7[t]})}function lC(e){var t=Ko(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function aC(e){return tu(Ol(e)).left+lC(e).scrollLeft}function x7(e,t){var n=Ko(e),r=Ol(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var f=L_();(f||!f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+aC(e),y:c}}function S7(e){var t,n=Ol(e),r=lC(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ca(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ca(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+aC(e),c=-r.scrollTop;return Ss(o||n).direction==="rtl"&&(a+=ca(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function cC(e){var t=Ss(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function B_(e){return["html","body","#document"].indexOf(Vi(e))>=0?e.ownerDocument.body:Bo(e)&&cC(e)?e:B_(Vg(e))}function Dd(e,t){var n;t===void 0&&(t=[]);var r=B_(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ko(r),s=o?[i].concat(i.visualViewport||[],cC(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Dd(Vg(s)))}function Z1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E7(e,t){var n=tu(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 Uk(e,t,n){return t===R_?Z1(x7(e,n)):wa(t)?E7(t,n):Z1(S7(Ol(e)))}function P7(e){var t=Dd(Vg(e)),n=["absolute","fixed"].indexOf(Ss(e).position)>=0,r=n&&Bo(e)?Wf(e):e;return wa(r)?t.filter(function(o){return wa(o)&&A_(o,r)&&Vi(o)!=="body"}):[]}function k7(e,t,n,r){var o=t==="clippingParents"?P7(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,f){var p=Uk(e,f,r);return c.top=ca(p.top,c.top),c.right=Tm(p.right,c.right),c.bottom=Tm(p.bottom,c.bottom),c.left=ca(p.left,c.left),c},Uk(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function z_(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ni(r):null,i=r?nu(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Gr:c={x:s,y:t.y-n.height};break;case Vo:c={x:s,y:t.y+t.height};break;case Uo:c={x:t.x+t.width,y:a};break;case Kr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?sC(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Zc:c[f]=c[f]-(t[p]/2-n[p]/2);break;case gf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function vf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?GV:a,f=n.rootBoundary,p=f===void 0?R_:f,h=n.elementContext,m=h===void 0?id:h,v=n.altBoundary,b=v===void 0?!1:v,g=n.padding,S=g===void 0?0:g,w=N_(typeof S!="number"?S:D_(S,Uf)),P=m===id?KV:id,C=e.rects.popper,E=e.elements[b?P:m],I=k7(wa(E)?E:E.contextElement||Ol(e.elements.popper),c,p,s),T=tu(e.elements.reference),k=z_({reference:T,element:C,strategy:"absolute",placement:o}),$=Z1(Object.assign({},C,k)),R=m===id?$:T,O={top:I.top-R.top+w.top,bottom:R.bottom-I.bottom+w.bottom,left:I.left-R.left+w.left,right:R.right-I.right+w.right},N=e.modifiersData.offset;if(m===id&&N){var U=N[o];Object.keys(O).forEach(function(j){var L=[Uo,Vo].indexOf(j)>=0?1:-1,D=[Gr,Vo].indexOf(j)>=0?"y":"x";O[j]+=U[D]*L})}return O}function I7(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?O_:c,p=nu(r),h=p?a?zk:zk.filter(function(b){return nu(b)===p}):Uf,m=h.filter(function(b){return f.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=vf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[Ni(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function $7(e){if(Ni(e)===rC)return[];var t=Yh(e);return[Vk(e),t,Vk(t)]}function T7(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,S=t.options.placement,w=Ni(S),P=w===S,C=c||(P||!b?[Yh(S)]:$7(S)),E=[S].concat(C).reduce(function(ee,se){return ee.concat(Ni(se)===rC?I7(t,{placement:se,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:g}):se)},[]),I=t.rects.reference,T=t.rects.popper,k=new Map,$=!0,R=E[0],O=0;O<E.length;O++){var N=E[O],U=Ni(N),j=nu(N)===Zc,L=[Gr,Vo].indexOf(U)>=0,D=L?"width":"height",B=vf(t,{placement:N,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),W=L?j?Uo:Kr:j?Vo:Gr;I[D]>T[D]&&(W=Yh(W));var A=Yh(W),z=[];if(i&&z.push(B[U]<=0),a&&z.push(B[W]<=0,B[A]<=0),z.every(function(ee){return ee})){R=N,$=!1;break}k.set(N,z)}if($)for(var G=b?3:1,q=function(se){var ae=E.find(function(we){var de=k.get(we);if(de)return de.slice(0,se).every(function(le){return le})});if(ae)return R=ae,"break"},X=G;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const M7={name:"flip",enabled:!0,phase:"main",fn:T7,requiresIfExists:["offset"],data:{_skip:!1}};function Wk(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 Gk(e){return[Gr,Uo,Vo,Kr].some(function(t){return e[t]>=0})}function _7(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=vf(t,{elementContext:"reference"}),a=vf(t,{altBoundary:!0}),c=Wk(s,r),f=Wk(a,o,i),p=Gk(c),h=Gk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const R7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_7};function O7(e,t,n){var r=Ni(e),o=[Kr,Gr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Kr,Uo].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function L7(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=O_.reduce(function(p,h){return p[h]=O7(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const A7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L7};function F7(e){var t=e.state,n=e.name;t.modifiersData[n]=z_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const N7={name:"popperOffsets",enabled:!0,phase:"read",fn:F7,data:{}};function D7(e){return e==="x"?"y":"x"}function B7(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,S=vf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),w=Ni(t.placement),P=nu(t.placement),C=!P,E=sC(w),I=D7(E),T=t.modifiersData.popperOffsets,k=t.rects.reference,$=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(T){if(i){var j,L=E==="y"?Gr:Kr,D=E==="y"?Vo:Uo,B=E==="y"?"height":"width",W=T[E],A=W+S[L],z=W-S[D],G=v?-$[B]/2:0,q=P===Zc?k[B]:$[B],X=P===Zc?-$[B]:-k[B],ie=t.elements.arrow,ee=v&&ie?iC(ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:F_(),ae=se[L],we=se[D],de=Nd(0,k[B],ee[B]),le=C?k[B]/2-G-de-ae-O.mainAxis:q-de-ae-O.mainAxis,te=C?-k[B]/2+G+de+we+O.mainAxis:X+de+we+O.mainAxis,be=t.elements.arrow&&Wf(t.elements.arrow),$e=be?E==="y"?be.clientTop||0:be.clientLeft||0:0,Se=(j=N==null?void 0:N[E])!=null?j:0,Ne=W+le-Se-$e,Re=W+te-Se,Fe=Nd(v?Tm(A,Ne):A,W,v?ca(z,Re):z);T[E]=Fe,U[E]=Fe-W}if(a){var Le,et=E==="x"?Gr:Kr,gt=E==="x"?Vo:Uo,nt=T[I],tt=I==="y"?"height":"width",St=nt+S[et],dt=nt-S[gt],it=[Gr,Kr].indexOf(w)!==-1,Pt=(Le=N==null?void 0:N[I])!=null?Le:0,Qe=it?St:nt-k[tt]-$[tt]-Pt+O.altAxis,_e=it?nt+k[tt]+$[tt]-Pt-O.altAxis:dt,ne=v&&it?c7(Qe,nt,_e):Nd(v?Qe:St,nt,v?_e:dt);T[I]=ne,U[I]=ne-nt}t.modifiersData[r]=U}}const z7={name:"preventOverflow",enabled:!0,phase:"main",fn:B7,requiresIfExists:["offset"]};function H7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j7(e){return e===Ko(e)||!Bo(e)?lC(e):H7(e)}function V7(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function U7(e,t,n){n===void 0&&(n=!1);var r=Bo(t),o=Bo(t)&&V7(t),i=Ol(t),s=tu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Vi(t)!=="body"||cC(i))&&(a=j7(t)),Bo(t)?(c=tu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=aC(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function W7(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function G7(e){var t=W7(e);return r7.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function K7(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function q7(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 Kk={placement:"bottom",modifiers:[],strategy:"absolute"};function qk(){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 Y7(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Kk:o;return function(a,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kk,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(w){var P=typeof w=="function"?w(p.options):w;g(),p.options=Object.assign({},i,p.options,P),p.scrollParents={reference:wa(a)?Dd(a):a.contextElement?Dd(a.contextElement):[],popper:Dd(c)};var C=G7(q7([].concat(r,p.options.modifiers)));return p.orderedModifiers=C.filter(function(E){return E.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var w=p.elements,P=w.reference,C=w.popper;if(qk(P,C)){p.rects={reference:U7(P,Wf(C),p.options.strategy==="fixed"),popper:iC(C)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var E=0;E<p.orderedModifiers.length;E++){if(p.reset===!0){p.reset=!1,E=-1;continue}var I=p.orderedModifiers[E],T=I.fn,k=I.options,$=k===void 0?{}:k,R=I.name;typeof T=="function"&&(p=T({state:p,options:$,name:R,instance:v})||p)}}}},update:K7(function(){return new Promise(function(S){v.forceUpdate(),S(p)})}),destroy:function(){g(),m=!0}};if(!qk(a,c))return v;v.setOptions(f).then(function(S){!m&&f.onFirstUpdate&&f.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var w=S.name,P=S.options,C=P===void 0?{}:P,E=S.effect;if(typeof E=="function"){var I=E({state:p,name:w,instance:v,options:C}),T=function(){};h.push(I||T)}})}function g(){h.forEach(function(S){return S()}),h=[]}return v}}var X7=[b7,N7,v7,s7,A7,M7,z7,p7,R7],Q7=Y7({defaultModifiers:X7});function J7(e){return typeof e=="function"?e():e}const Z7=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=xt(u.isValidElement(r)?r.ref:null,n);return Rn(()=>{i||a(J7(o)||document.body)},[o,i]),Rn(()=>{if(s&&!i)return pf(n,s),()=>{pf(n,null)}},[n,s,i]),i?u.isValidElement(r)?u.cloneElement(r,{ref:c}):r:s&&gl.createPortal(r,s)}),H_=Z7;function eU(e){return qe("MuiPopperUnstyled",e)}Ue("MuiPopperUnstyled",["root"]);const tU=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],nU=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function rU(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 eb(e){return typeof e=="function"?e():e}const oU=()=>Ie({root:["root"]},eU,{}),iU={},sU=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,components:a={},componentsProps:c={},direction:f,disablePortal:p,modifiers:h,open:m,ownerState:v,placement:b,popperOptions:g,popperRef:S,TransitionProps:w}=t,P=oe(t,tU),C=u.useRef(null),E=xt(C,n),I=u.useRef(null),T=xt(I,S),k=u.useRef(T);Rn(()=>{k.current=T},[T]),u.useImperativeHandle(S,()=>I.current,[]);const $=rU(b,f),[R,O]=u.useState($);u.useEffect(()=>{I.current&&I.current.forceUpdate()}),Rn(()=>{if(!o||!m)return;const D=A=>{O(A.placement)};eb(o);let B=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{D(A)}}];h!=null&&(B=B.concat(h)),g&&g.modifiers!=null&&(B=B.concat(g.modifiers));const W=Q7(eb(o),C.current,x({placement:$},g,{modifiers:B}));return k.current(W),()=>{W.destroy(),k.current(null)}},[o,p,h,m,g,$]);const N={placement:R};w!==null&&(N.TransitionProps=w);const U=oU(),j=(r=s!=null?s:a.Root)!=null?r:"div",L=mf({elementType:j,externalSlotProps:c.root,externalForwardedProps:P,additionalProps:{role:"tooltip",ref:E},ownerState:x({},t,v),className:U.root});return _.jsx(j,x({},L,{children:typeof i=="function"?i(N):i}))}),lU=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=iU,popperRef:v,style:b,transition:g=!1}=t,S=oe(t,nU),[w,P]=u.useState(!0),C=()=>{P(!1)},E=()=>{P(!0)};if(!c&&!p&&(!g||w))return null;const I=i||(r?Cn(eb(r)).body:void 0);return _.jsx(H_,{disablePortal:a,container:I,children:_.jsx(sU,x({anchorEl:r,direction:s,disablePortal:a,modifiers:f,ref:n,open:g?!w:p,placement:h,popperOptions:m,popperRef:v},S,{style:x({position:"fixed",top:0,left:0,display:!p&&c&&(!g||w)?"none":null},b),TransitionProps:g?{in:p,onEnter:C,onExited:E}:null,children:o}))})}),aU=lU;function cU(e){const t=Cn(e);return t.body===e?uo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Yk(e){return parseInt(uo(e).getComputedStyle(e).paddingRight,10)||0}function uU(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 Xk(e,t,n,r=[],o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!uU(s);a&&c&&Bd(s,o)})}function w0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function dU(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(cU(r)){const s=i_(Cn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Yk(r)+s}px`;const a=Cn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Yk(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Cn(r).body;else{const s=r.parentElement,a=uo(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function fU(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class pU{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&&Bd(t.modalRef,!1);const o=fU(n);Xk(n,t.mount,t.modalRef,o,!0);const i=w0(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=w0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=dU(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=w0(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Bd(t.modalRef,n),Xk(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Bd(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mU(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 gU(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 vU(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gU(e))}function yU(e){const t=[],n=[];return Array.from(e.querySelectorAll(hU)).forEach((r,o)=>{const i=mU(r);i===-1||!vU(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function bU(){return!0}function j_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=yU,isEnabled:s=bU,open:a}=e,c=u.useRef(),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=xt(t.ref,b),S=u.useRef(null);u.useEffect(()=>{!a||!b.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const C=Cn(b.current);return b.current.contains(C.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),v.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!b.current)return;const C=Cn(b.current),E=k=>{const{current:$}=b;if($!==null){if(!C.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!$.contains(C.activeElement)){if(k&&m.current!==k.target||C.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let N=[];if((C.activeElement===f.current||C.activeElement===p.current)&&(N=i(b.current)),N.length>0){var R,O;const U=Boolean(((R=S.current)==null?void 0:R.shiftKey)&&((O=S.current)==null?void 0:O.key)==="Tab"),j=N[0],L=N[N.length-1];U?L.focus():j.focus()}else $.focus()}}},I=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&C.activeElement===b.current&&k.shiftKey&&(c.current=!0,p.current.focus())};C.addEventListener("focusin",E),C.addEventListener("keydown",I,!0);const T=setInterval(()=>{C.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),C.removeEventListener("focusin",E),C.removeEventListener("keydown",I,!0)}},[n,r,o,s,a,i]);const w=C=>{h.current===null&&(h.current=C.relatedTarget),v.current=!0,m.current=C.target;const E=t.props.onFocus;E&&E(C)},P=C=>{h.current===null&&(h.current=C.relatedTarget),v.current=!0};return _.jsxs(u.Fragment,{children:[_.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:w}),_.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:p,"data-testid":"sentinelEnd"})]})}function wU(e){return qe("MuiModal",e)}Ue("MuiModal",["root","hidden"]);const CU=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"],xU=e=>{const{open:t,exited:n,classes:r}=e;return Ie({root:["root",!t&&n&&"hidden"]},wU,r)};function SU(e){return typeof e=="function"?e():e}function EU(e){return e.children?e.children.props.hasOwnProperty("in"):!1}const PU=new pU,kU=u.forwardRef(function(t,n){var r;const{children:o,classes:i,closeAfterTransition:s=!1,component:a="div",components:c={},componentsProps:f={},container:p,disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:b=!1,disableRestoreFocus:g=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,keepMounted:P=!1,manager:C=PU,onBackdropClick:E,onClose:I,onKeyDown:T,open:k,onTransitionEnter:$,onTransitionExited:R}=t,O=oe(t,CU),[N,U]=u.useState(!0),j=u.useRef({}),L=u.useRef(null),D=u.useRef(null),B=xt(D,n),W=EU(t),A=(r=t["aria-hidden"])!=null?r:!0,z=()=>Cn(L.current),G=()=>(j.current.modalRef=D.current,j.current.mountNode=L.current,j.current),q=()=>{C.mount(G(),{disableScrollLock:S}),D.current.scrollTop=0},X=jn(()=>{const Le=SU(p)||z().body;C.add(G(),Le),D.current&&q()}),ie=u.useCallback(()=>C.isTopModal(G()),[C]),ee=jn(Le=>{L.current=Le,Le&&(k&&ie()?q():Bd(D.current,A))}),se=u.useCallback(()=>{C.remove(G(),A)},[C,A]);u.useEffect(()=>()=>{se()},[se]),u.useEffect(()=>{k?X():(!W||!s)&&se()},[k,se,W,s,X]);const ae=x({},t,{classes:i,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:b,disableRestoreFocus:g,disableScrollLock:S,exited:N,hideBackdrop:w,keepMounted:P}),we=xU(ae),de=()=>{U(!1),$&&$()},le=()=>{U(!0),R&&R(),s&&se()},te=Le=>{Le.target===Le.currentTarget&&(E&&E(Le),I&&I(Le,"backdropClick"))},be=Le=>{T&&T(Le),!(Le.key!=="Escape"||!ie())&&(v||(Le.stopPropagation(),I&&I(Le,"escapeKeyDown")))},$e={};o.props.tabIndex===void 0&&($e.tabIndex="-1"),W&&($e.onEnter=Ek(de,o.props.onEnter),$e.onExited=Ek(le,o.props.onExited));const Se=c.Root||a,Ne=mf({elementType:Se,externalSlotProps:f.root,externalForwardedProps:O,additionalProps:{ref:B,role:"presentation",onKeyDown:be},className:we.root,ownerState:ae}),Re=c.Backdrop,Fe=mf({elementType:Re,externalSlotProps:f.backdrop,additionalProps:{"aria-hidden":!0,onClick:te,open:k},ownerState:ae});return!P&&!k&&(!W||N)?null:_.jsx(H_,{ref:ee,container:p,disablePortal:b,children:_.jsxs(Se,x({},Ne,{children:[!w&&Re?_.jsx(Re,x({},Fe)):null,_.jsx(j_,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:g,isEnabled:ie,open:k,children:u.cloneElement(o,$e)})]}))})}),IU=kU,$U=["onChange","maxRows","minRows","style","value"];function bh(e,t){return parseInt(e[t],10)||0}const TU={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Qk(e){return e==null||Object.keys(e).length===0}const MU=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=oe(t,$U),{current:f}=u.useRef(a!=null),p=u.useRef(null),h=xt(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({}),S=u.useCallback(()=>{const I=p.current,k=uo(I).getComputedStyle(I);if(k.width==="0px")return{};const $=m.current;$.style.width=k.width,$.value=I.value||t.placeholder||"x",$.value.slice(-1)===`
78
+ `&&($.value+=" ");const R=k["box-sizing"],O=bh(k,"padding-bottom")+bh(k,"padding-top"),N=bh(k,"border-bottom-width")+bh(k,"border-top-width"),U=$.scrollHeight;$.value="x";const j=$.scrollHeight;let L=U;i&&(L=Math.max(Number(i)*j,L)),o&&(L=Math.min(Number(o)*j,L)),L=Math.max(L,j);const D=L+(R==="border-box"?O+N:0),B=Math.abs(L-U)<=1;return{outerHeightStyle:D,overflow:B}},[o,i,t.placeholder]),w=(I,T)=>{const{outerHeightStyle:k,overflow:$}=T;return v.current<20&&(k>0&&Math.abs((I.outerHeightStyle||0)-k)>1||I.overflow!==$)?(v.current+=1,{overflow:$,outerHeightStyle:k}):I},P=u.useCallback(()=>{const I=S();Qk(I)||g(T=>w(T,I))},[S]),C=()=>{const I=S();Qk(I)||gl.flushSync(()=>{g(T=>w(T,I))})};u.useEffect(()=>{const I=Cl(()=>{v.current=0,p.current&&C()}),T=uo(p.current);T.addEventListener("resize",I);let k;return typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(I),k.observe(p.current)),()=>{I.clear(),T.removeEventListener("resize",I),k&&k.disconnect()}}),Rn(()=>{P()}),u.useEffect(()=>{v.current=0},[a]);const E=I=>{v.current=0,f||P(),r&&r(I)};return _.jsxs(u.Fragment,{children:[_.jsx("textarea",x({value:a,onChange:E,ref:h,rows:i,style:x({height:b.outerHeightStyle,overflow:b.overflow?"hidden":null},s)},c)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:x({},TU.shadow,s,{padding:0})})]})}),_U=MU;function RU(e,t){return x({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const OU=["mode","contrastThreshold","tonalOffset"],Jk={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:cf.white,default:cf.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}},C0={text:{primary:cf.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:cf.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 Zk(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xs(e.main,o):t==="dark"&&(e.dark=Cs(e.main,i)))}function LU(e="light"){return e==="dark"?{main:rc[200],light:rc[50],dark:rc[400]}:{main:rc[700],light:rc[400],dark:rc[800]}}function AU(e="light"){return e==="dark"?{main:nc[200],light:nc[50],dark:nc[400]}:{main:nc[500],light:nc[300],dark:nc[700]}}function FU(e="light"){return e==="dark"?{main:tc[500],light:tc[300],dark:tc[700]}:{main:tc[700],light:tc[400],dark:tc[800]}}function NU(e="light"){return e==="dark"?{main:oc[400],light:oc[300],dark:oc[700]}:{main:oc[700],light:oc[500],dark:oc[900]}}function DU(e="light"){return e==="dark"?{main:ic[400],light:ic[300],dark:ic[700]}:{main:ic[800],light:ic[500],dark:ic[900]}}function BU(e="light"){return e==="dark"?{main:nd[400],light:nd[300],dark:nd[700]}:{main:"#ed6c02",light:nd[500],dark:nd[900]}}function zU(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oe(e,OU),i=e.primary||LU(t),s=e.secondary||AU(t),a=e.error||FU(t),c=e.info||NU(t),f=e.success||DU(t),p=e.warning||BU(t);function h(g){return _V(g,C0.text.primary)>=n?C0.text.primary:Jk.text.primary}const m=({color:g,name:S,mainShade:w=500,lightShade:P=300,darkShade:C=700})=>{if(g=x({},g),!g.main&&g[w]&&(g.main=g[w]),!g.hasOwnProperty("main"))throw new Error(wl(11,S?` (${S})`:"",w));if(typeof g.main!="string")throw new Error(wl(12,S?` (${S})`:"",JSON.stringify(g.main)));return Zk(g,"light",P,r),Zk(g,"dark",C,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:C0,light:Jk};return Do(x({common:x({},cf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:f,name:"success"}),grey:G9,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const HU=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jU(e){return Math.round(e*1e5)/1e5}const e2={textTransform:"uppercase"},t2='"Roboto", "Helvetica", "Arial", sans-serif';function VU(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=t2,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=oe(n,HU),v=o/14,b=h||(w=>`${w/f*v}rem`),g=(w,P,C,E,I)=>x({fontFamily:r,fontWeight:w,fontSize:b(P),lineHeight:C},r===t2?{letterSpacing:`${jU(E/P)}em`}:{},I,p),S={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,e2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,e2)};return Do(x({htmlFontSize:f,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),m,{clone:!1})}const UU=.2,WU=.14,GU=.12;function yn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${UU})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${WU})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GU})`].join(",")}const KU=["none",yn(0,2,1,-1,0,1,1,0,0,1,3,0),yn(0,3,1,-2,0,2,2,0,0,1,5,0),yn(0,3,3,-2,0,3,4,0,0,1,8,0),yn(0,2,4,-1,0,4,5,0,0,1,10,0),yn(0,3,5,-1,0,5,8,0,0,1,14,0),yn(0,3,5,-1,0,6,10,0,0,1,18,0),yn(0,4,5,-2,0,7,10,1,0,2,16,1),yn(0,5,5,-3,0,8,10,1,0,3,14,2),yn(0,5,6,-3,0,9,12,1,0,3,16,2),yn(0,6,6,-3,0,10,14,1,0,4,18,3),yn(0,6,7,-4,0,11,15,1,0,4,20,3),yn(0,7,8,-4,0,12,17,2,0,5,22,4),yn(0,7,8,-4,0,13,19,2,0,5,24,4),yn(0,7,9,-4,0,14,21,2,0,5,26,4),yn(0,8,9,-5,0,15,22,2,0,6,28,5),yn(0,8,10,-5,0,16,24,2,0,6,30,5),yn(0,8,11,-5,0,17,26,2,0,6,32,5),yn(0,9,11,-5,0,18,28,2,0,7,34,6),yn(0,9,12,-6,0,19,29,2,0,7,36,6),yn(0,10,13,-6,0,20,31,3,0,8,38,7),yn(0,10,13,-6,0,21,33,3,0,8,40,7),yn(0,10,14,-6,0,22,35,3,0,8,42,7),yn(0,11,14,-7,0,23,36,3,0,9,44,8),yn(0,11,15,-7,0,24,38,3,0,9,46,8)],qU=KU,YU=["duration","easing","delay"],XU={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)"},V_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function n2(e){return`${Math.round(e)}ms`}function QU(e){if(!e)return 0;const t=e/36;return Math.round((4+15*ns(t,.25)+t/5)*10)}function JU(e){const t=x({},XU,e.easing),n=x({},V_,e.duration);return x({getAutoHeightDuration:QU,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return oe(i,YU),(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof s=="string"?s:n2(s)} ${a} ${typeof c=="string"?c:n2(c)}`).join(",")}},e,{easing:t,duration:n})}const ZU={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eW=ZU,tW=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function uC(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=oe(e,tW);if(e.vars)throw new Error(wl(18));const a=zU(r),c=eC(e);let f=Do(c,{mixins:RU(c.breakpoints,n),palette:a,shadows:qU.slice(),typography:VU(a,i),transitions:JU(o),zIndex:x({},eW)});return f=Do(f,s),f=t.reduce((p,h)=>Do(p,h),f),f}const nW=uC(),Ug=nW;function Yr(){return Hg(Ug)}function Je({props:e,name:t}){return $V({props:e,name:t,defaultTheme:Ug})}const vo=e=>Fd(e)&&e!=="classes",rW=Fd,oW=IV({defaultTheme:Ug,rootShouldForwardProp:vo}),re=oW;function iW(e){return qe("MuiPaper",e)}Ue("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 sW=["className","component","elevation","square","variant"],r2=e=>{let t;return e<1?t=5.11916*ns(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},lW=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ie(i,iW,o)},aW=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return x({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&x({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ot("#fff",r2(t.elevation))}, ${ot("#fff",r2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),cW=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,f=oe(r,sW),p=x({},r,{component:i,elevation:s,square:a,variant:c}),h=lW(p);return _.jsx(aW,x({as:i,ownerState:p,className:he(h.root,o),ref:n},f))}),qo=cW;function uW(e){return qe("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dW=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fW=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return Ie(o,uW,r)},pW=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,f,p,h,m,v,b,g,S,w,P;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875"}[t.fontSize],color:(m=(v=(e.vars||e).palette)==null||(b=v[t.color])==null?void 0:b.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(S=g.action)==null?void 0:S.active,disabled:(w=(e.vars||e).palette)==null||(P=w.action)==null?void 0:P.disabled,inherit:void 0}[t.color]}}),U_=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=oe(r,dW),b=x({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const S=fW(b);return _.jsxs(pW,x({as:a,className:he(S.root,i),ownerState:b,focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{children:[o,h?_.jsx("title",{children:h}):null]}))});U_.muiName="SvgIcon";const o2=U_;function Oe(e,t){const n=(r,o)=>_.jsx(o2,x({"data-testid":`${t}Icon`,ref:o},r,{children:e}));return n.muiName=o2.muiName,u.memo(u.forwardRef(n))}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},tb(e,t)}function dC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tb(e,t)}const i2={disabled:!1},Mm=Lo.createContext(null);var hW=function(t){return t.scrollTop},bd="unmounted",ql="exited",Yl="entering",pc="entered",nb="exiting",ks=function(e){dC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=ql,i.appearStatus=Yl):c=pc:r.unmountOnExit||r.mountOnEnter?c=bd:c=ql,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===bd?{status:ql}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Yl&&s!==pc&&(i=Yl):(s===Yl||s===pc)&&(i=nb)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Yl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:gh.findDOMNode(this);s&&hW(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ql&&this.setState({status:bd})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[gh.findDOMNode(this),a],f=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||i2.disabled){this.safeSetState({status:pc},function(){i.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:Yl},function(){i.props.onEntering(f,p),i.onTransitionEnd(m,function(){i.safeSetState({status:pc},function(){i.props.onEntered(f,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:gh.findDOMNode(this);if(!i||i2.disabled){this.safeSetState({status:ql},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:nb},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ql},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:gh.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===bd)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=oe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Lo.createElement(Mm.Provider,{value:null},typeof s=="function"?s(o,a):Lo.cloneElement(Lo.Children.only(s),a))},t}(Lo.Component);ks.contextType=Mm;ks.propTypes={};function lc(){}ks.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lc,onEntering:lc,onEntered:lc,onExit:lc,onExiting:lc,onExited:lc};ks.UNMOUNTED=bd;ks.EXITED=ql;ks.ENTERING=Yl;ks.ENTERED=pc;ks.EXITING=nb;const Wg=ks;function rb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fC(e,t){var n=function(i){return t&&u.isValidElement(i)?t(i):i},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function mW(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var f=r[c][s];a[r[c][s]]=n(f)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function na(e,t,n){return n[t]!=null?n[t]:e.props[t]}function gW(e,t){return fC(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:na(n,"appear",e),enter:na(n,"enter",e),exit:na(n,"exit",e)})})}function vW(e,t,n){var r=fC(e.children),o=mW(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,f=t[i],p=u.isValidElement(f)&&!f.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:na(s,"exit",e),enter:na(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(f)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:na(s,"exit",e),enter:na(s,"enter",e)}))}}),o}var yW=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},bW={component:"div",childFactory:function(t){return t}},pC=function(e){dC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(rb(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,c=i.firstRender;return{children:c?gW(o,a):vW(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=fC(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=x({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=oe(o,["component","childFactory"]),c=this.state.contextValue,f=yW(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Lo.createElement(Mm.Provider,{value:c},f):Lo.createElement(Mm.Provider,{value:c},Lo.createElement(i,a,f))},t}(Lo.Component);pC.propTypes={};pC.defaultProps=bW;const wW=pC,hC=e=>e.scrollTop;function Sl(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function CW(e){return qe("MuiCollapse",e)}Ue("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const xW=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],SW=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ie(r,CW,n)},EW=re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>x({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&x({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),PW=re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>x({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),kW=re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>x({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),W_=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:f,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:S,orientation:w="vertical",style:P,timeout:C=V_.standard,TransitionComponent:E=Wg}=r,I=oe(r,xW),T=x({},r,{orientation:w,collapsedSize:a}),k=SW(T),$=Yr(),R=u.useRef(),O=u.useRef(null),N=u.useRef(),U=typeof a=="number"?`${a}px`:a,j=w==="horizontal",L=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(R.current)},[]);const D=u.useRef(null),B=xt(n,D),W=ae=>we=>{if(ae){const de=D.current;we===void 0?ae(de):ae(de,we)}},A=()=>O.current?O.current[j?"clientWidth":"clientHeight"]:0,z=W((ae,we)=>{O.current&&j&&(O.current.style.position="absolute"),ae.style[L]=U,h&&h(ae,we)}),G=W((ae,we)=>{const de=A();O.current&&j&&(O.current.style.position="");const{duration:le,easing:te}=Sl({style:P,timeout:C,easing:f},{mode:"enter"});if(C==="auto"){const be=$.transitions.getAutoHeightDuration(de);ae.style.transitionDuration=`${be}ms`,N.current=be}else ae.style.transitionDuration=typeof le=="string"?le:`${le}ms`;ae.style[L]=`${de}px`,ae.style.transitionTimingFunction=te,v&&v(ae,we)}),q=W((ae,we)=>{ae.style[L]="auto",m&&m(ae,we)}),X=W(ae=>{ae.style[L]=`${A()}px`,b&&b(ae)}),ie=W(g),ee=W(ae=>{const we=A(),{duration:de,easing:le}=Sl({style:P,timeout:C,easing:f},{mode:"exit"});if(C==="auto"){const te=$.transitions.getAutoHeightDuration(we);ae.style.transitionDuration=`${te}ms`,N.current=te}else ae.style.transitionDuration=typeof de=="string"?de:`${de}ms`;ae.style[L]=U,ae.style.transitionTimingFunction=le,S&&S(ae)}),se=ae=>{C==="auto"&&(R.current=setTimeout(ae,N.current||0)),o&&o(D.current,ae)};return _.jsx(E,x({in:p,onEnter:z,onEntered:q,onEntering:G,onExit:X,onExited:ie,onExiting:ee,addEndListener:se,nodeRef:D,timeout:C==="auto"?null:C},I,{children:(ae,we)=>_.jsx(EW,x({as:c,className:he(k.root,s,{entered:k.entered,exited:!p&&U==="0px"&&k.hidden}[ae]),style:x({[j?"minWidth":"minHeight"]:U},P),ownerState:x({},T,{state:ae}),ref:B},we,{children:_.jsx(PW,{ownerState:x({},T,{state:ae}),className:k.wrapper,ref:O,children:_.jsx(kW,{ownerState:x({},T,{state:ae}),className:k.wrapperInner,children:i})})}))}))});W_.muiSupportAuto=!0;const G_=W_;function IW(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:f}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,f);return()=>{clearTimeout(g)}}},[c,a,f]),_.jsx("span",{className:m,style:v,children:_.jsx("span",{className:b})})}const $W=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mo=$W,TW=["center","classes","className"];let Gg=e=>e,s2,l2,a2,c2;const ob=550,MW=80,_W=Ml(s2||(s2=Gg`
79
+ 0% {
80
+ transform: scale(0);
81
+ opacity: 0.1;
82
+ }
83
+
84
+ 100% {
85
+ transform: scale(1);
86
+ opacity: 0.3;
87
+ }
88
+ `)),RW=Ml(l2||(l2=Gg`
89
+ 0% {
90
+ opacity: 1;
91
+ }
92
+
93
+ 100% {
94
+ opacity: 0;
95
+ }
96
+ `)),OW=Ml(a2||(a2=Gg`
97
+ 0% {
98
+ transform: scale(1);
99
+ }
100
+
101
+ 50% {
102
+ transform: scale(0.92);
103
+ }
104
+
105
+ 100% {
106
+ transform: scale(1);
107
+ }
108
+ `)),LW=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),AW=re(IW,{name:"MuiTouchRipple",slot:"Ripple"})(c2||(c2=Gg`
109
+ opacity: 0;
110
+ position: absolute;
111
+
112
+ &.${0} {
113
+ opacity: 0.3;
114
+ transform: scale(1);
115
+ animation-name: ${0};
116
+ animation-duration: ${0}ms;
117
+ animation-timing-function: ${0};
118
+ }
119
+
120
+ &.${0} {
121
+ animation-duration: ${0}ms;
122
+ }
123
+
124
+ & .${0} {
125
+ opacity: 1;
126
+ display: block;
127
+ width: 100%;
128
+ height: 100%;
129
+ border-radius: 50%;
130
+ background-color: currentColor;
131
+ }
132
+
133
+ & .${0} {
134
+ opacity: 0;
135
+ animation-name: ${0};
136
+ animation-duration: ${0}ms;
137
+ animation-timing-function: ${0};
138
+ }
139
+
140
+ & .${0} {
141
+ position: absolute;
142
+ /* @noflip */
143
+ left: 0px;
144
+ top: 0;
145
+ animation-name: ${0};
146
+ animation-duration: 2500ms;
147
+ animation-timing-function: ${0};
148
+ animation-iteration-count: infinite;
149
+ animation-delay: 200ms;
150
+ }
151
+ `),Mo.rippleVisible,_W,ob,({theme:e})=>e.transitions.easing.easeInOut,Mo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Mo.child,Mo.childLeaving,RW,ob,({theme:e})=>e.transitions.easing.easeInOut,Mo.childPulsate,OW,({theme:e})=>e.transitions.easing.easeInOut),FW=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=oe(r,TW),[c,f]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const S=u.useCallback(E=>{const{pulsate:I,rippleX:T,rippleY:k,rippleSize:$,cb:R}=E;f(O=>[...O,_.jsx(AW,{classes:{ripple:he(i.ripple,Mo.ripple),rippleVisible:he(i.rippleVisible,Mo.rippleVisible),ripplePulsate:he(i.ripplePulsate,Mo.ripplePulsate),child:he(i.child,Mo.child),childLeaving:he(i.childLeaving,Mo.childLeaving),childPulsate:he(i.childPulsate,Mo.childPulsate)},timeout:ob,pulsate:I,rippleX:T,rippleY:k,rippleSize:$},p.current)]),p.current+=1,h.current=R},[i]),w=u.useCallback((E={},I={},T)=>{const{pulsate:k=!1,center:$=o||I.pulsate,fakeElement:R=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const O=R?null:g.current,N=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,j,L;if($||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)U=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:D,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;U=Math.round(D-N.left),j=Math.round(B-N.top)}if($)L=Math.sqrt((2*ns(N.width,2)+ns(N.height,2))/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((O?O.clientWidth:0)-U),U)*2+2,B=Math.max(Math.abs((O?O.clientHeight:0)-j),j)*2+2;L=Math.sqrt(ns(D,2)+ns(B,2))}E!=null&&E.touches?b.current===null&&(b.current=()=>{S({pulsate:k,rippleX:U,rippleY:j,rippleSize:L,cb:T})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},MW)):S({pulsate:k,rippleX:U,rippleY:j,rippleSize:L,cb:T})},[o,S]),P=u.useCallback(()=>{w({},{pulsate:!0})},[w]),C=u.useCallback((E,I)=>{if(clearTimeout(v.current),(E==null?void 0:E.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{C(E,I)});return}b.current=null,f(T=>T.length>0?T.slice(1):T),h.current=I},[]);return u.useImperativeHandle(n,()=>({pulsate:P,start:w,stop:C}),[P,w,C]),_.jsx(LW,x({className:he(Mo.root,i.root,s),ref:g},a,{children:_.jsx(wW,{component:null,exit:!0,children:c})}))}),NW=FW;function DW(e){return qe("MuiButtonBase",e)}const BW=Ue("MuiButtonBase",["root","disabled","focusVisible"]),zW=BW,HW=["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"],jW=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},DW,o);return n&&r&&(s.root+=` ${r}`),s},VW=re("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"},[`&.${zW.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),UW=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:v="a",onBlur:b,onClick:g,onContextMenu:S,onDragLeave:w,onFocus:P,onFocusVisible:C,onKeyDown:E,onKeyUp:I,onMouseDown:T,onMouseLeave:k,onMouseUp:$,onTouchEnd:R,onTouchMove:O,onTouchStart:N,tabIndex:U=0,TouchRippleProps:j,touchRippleRef:L,type:D}=r,B=oe(r,HW),W=u.useRef(null),A=u.useRef(null),z=xt(A,L),{isFocusVisibleRef:G,onFocus:q,onBlur:X,ref:ie}=Kw(),[ee,se]=u.useState(!1);f&&ee&&se(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),W.current.focus()}}),[]);const[ae,we]=u.useState(!1);u.useEffect(()=>{we(!0)},[]);const de=ae&&!p&&!f;u.useEffect(()=>{ee&&m&&!p&&ae&&A.current.pulsate()},[p,m,ee,ae]);function le(Ee,Te,Ke=h){return jn(bt=>(Te&&Te(bt),!Ke&&A.current&&A.current[Ee](bt),!0))}const te=le("start",T),be=le("stop",S),$e=le("stop",w),Se=le("stop",$),Ne=le("stop",Ee=>{ee&&Ee.preventDefault(),k&&k(Ee)}),Re=le("start",N),Fe=le("stop",R),Le=le("stop",O),et=le("stop",Ee=>{X(Ee),G.current===!1&&se(!1),b&&b(Ee)},!1),gt=jn(Ee=>{W.current||(W.current=Ee.currentTarget),q(Ee),G.current===!0&&(se(!0),C&&C(Ee)),P&&P(Ee)}),nt=()=>{const Ee=W.current;return c&&c!=="button"&&!(Ee.tagName==="A"&&Ee.href)},tt=u.useRef(!1),St=jn(Ee=>{m&&!tt.current&&ee&&A.current&&Ee.key===" "&&(tt.current=!0,A.current.stop(Ee,()=>{A.current.start(Ee)})),Ee.target===Ee.currentTarget&&nt()&&Ee.key===" "&&Ee.preventDefault(),E&&E(Ee),Ee.target===Ee.currentTarget&&nt()&&Ee.key==="Enter"&&!f&&(Ee.preventDefault(),g&&g(Ee))}),dt=jn(Ee=>{m&&Ee.key===" "&&A.current&&ee&&!Ee.defaultPrevented&&(tt.current=!1,A.current.stop(Ee,()=>{A.current.pulsate(Ee)})),I&&I(Ee),g&&Ee.target===Ee.currentTarget&&nt()&&Ee.key===" "&&!Ee.defaultPrevented&&g(Ee)});let it=c;it==="button"&&(B.href||B.to)&&(it=v);const Pt={};it==="button"?(Pt.type=D===void 0?"button":D,Pt.disabled=f):(!B.href&&!B.to&&(Pt.role="button"),f&&(Pt["aria-disabled"]=f));const Qe=xt(ie,W),_e=xt(n,Qe),ne=x({},r,{centerRipple:i,component:c,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:U,focusVisible:ee}),ke=jW(ne);return _.jsxs(VW,x({as:it,className:he(ke.root,a),ownerState:ne,onBlur:et,onClick:g,onContextMenu:be,onFocus:gt,onKeyDown:St,onKeyUp:dt,onMouseDown:te,onMouseLeave:Ne,onMouseUp:Se,onDragLeave:$e,onTouchEnd:Fe,onTouchMove:Le,onTouchStart:Re,ref:_e,tabIndex:f?-1:U,type:D},Pt,B,{children:[s,de?_.jsx(NW,x({ref:z,center:i},j)):null]}))}),Ui=UW;function WW(e){return qe("MuiAlert",e)}const GW=Ue("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),u2=GW;function KW(e){return qe("MuiIconButton",e)}const qW=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),YW=qW,XW=["edge","children","className","color","disabled","disableFocusRipple","size"],QW=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,o&&`edge${fe(o)}`,`size${fe(i)}`]};return Ie(s,KW,t)},JW=re(Ui,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>x({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(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})=>x({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&x({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].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)},{[`&.${YW.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})),ZW=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=r,h=oe(r,XW),m=x({},r,{edge:o,color:a,disabled:c,disableFocusRipple:f,size:p}),v=QW(m);return _.jsx(JW,x({className:he(v.root,s),centerRipple:!0,focusRipple:!f,disabled:c,ref:n,ownerState:m},h,{children:i}))}),Jn=ZW,eG=Oe(_.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"),tG=Oe(_.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),nG=Oe(_.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"),rG=Oe(_.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"),K_=Oe(_.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");var d2;const oG=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],iG=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,WW,o)},sG=re(qo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Cs:xs,r=e.palette.mode==="light"?xs:Cs,o=t.color||t.severity;return x({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${u2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},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}`,[`& .${u2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette.mode==="dark"?e.palette[o].main:e.palette[o].light}},o&&t.variant==="filled"&&x({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main)}))}),lG=re("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),aG=re("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),f2=re("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),p2={success:_.jsx(eG,{fontSize:"inherit"}),warning:_.jsx(tG,{fontSize:"inherit"}),error:_.jsx(nG,{fontSize:"inherit"}),info:_.jsx(rG,{fontSize:"inherit"})},cG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:c,icon:f,iconMapping:p=p2,onClose:h,role:m="alert",severity:v="success",variant:b="standard"}=r,g=oe(r,oG),S=x({},r,{color:c,severity:v,variant:b}),w=iG(S);return _.jsxs(sG,x({role:m,elevation:0,ownerState:S,className:he(w.root,s),ref:n},g,{children:[f!==!1?_.jsx(lG,{ownerState:S,className:w.icon,children:f||p[v]||p2[v]}):null,_.jsx(aG,{ownerState:S,className:w.message,children:i}),o!=null?_.jsx(f2,{ownerState:S,className:w.action,children:o}):null,o==null&&h?_.jsx(f2,{ownerState:S,className:w.action,children:_.jsx(Jn,{size:"small","aria-label":a,title:a,color:"inherit",onClick:h,children:d2||(d2=_.jsx(K_,{fontSize:"small"}))})}):null]}))}),Wi=cG;function uG(e){return qe("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dG=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],fG=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ie(a,uG,s)},pG=re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>x({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),h2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mG=e=>hG[e]||e,gG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTypography"}),o=mG(r.color),i=Zw(x({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=h2}=i,b=oe(i,dG),g=x({},i,{align:s,color:o,className:a,component:c,gutterBottom:f,noWrap:p,paragraph:h,variant:m,variantMapping:v}),S=c||(h?"p":v[m]||h2[m])||"span",w=fG(g);return _.jsx(pG,x({as:S,ref:n,ownerState:g,className:he(w.root,a)},b))}),gr=gG;function vG(e){return qe("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const yG=["className","color","enableColorOnDark","position"],bG=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${fe(t)}`,`position${fe(n)}`]};return Ie(o,vG,r)},wh=(e,t)=>`${e==null?void 0:e.replace(")","")}, ${t})`,wG=re(qo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return x({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&x({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&x({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&x({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:wh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:wh(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:wh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:wh(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"}))}),CG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=oe(r,yG),f=x({},r,{color:i,position:a,enableColorOnDark:s}),p=bG(f);return _.jsx(wG,x({square:!0,component:"header",ownerState:f,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),xG=CG,SG=re(aU,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EG=u.forwardRef(function(t,n){const r=tC(),o=Je({props:t,name:"MuiPopper"});return _.jsx(SG,x({direction:r==null?void 0:r.direction},o,{ref:n}))}),Ma=EG;function PG(e){return qe("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const kG=["className","color","component","disableGutters","disableSticky","inset"],IG=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${fe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ie(s,PG,t)},$G=re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>x({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),TG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:f=!1}=r,p=oe(r,kG),h=x({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:f}),m=IG(h);return _.jsx($G,x({as:s,className:he(m.root,o),ref:n,ownerState:h},p))}),MG=TG,_G=Oe(_.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 RG(e){return qe("MuiChip",e)}const OG=Ue("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Vt=OG,LG=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],AG=e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:i,clickable:s,variant:a}=e,c={root:["root",a,n&&"disabled",`size${fe(r)}`,`color${fe(o)}`,s&&"clickable",s&&`clickableColor${fe(o)}`,i&&"deletable",i&&`deletableColor${fe(o)}`,`${a}${fe(o)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(o)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(o)}`,`deleteIcon${fe(a)}Color${fe(o)}`]};return Ie(c,RG,t)},FG=re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:i,size:s,variant:a}=n;return[{[`& .${Vt.avatar}`]:t.avatar},{[`& .${Vt.avatar}`]:t[`avatar${fe(s)}`]},{[`& .${Vt.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${Vt.icon}`]:t.icon},{[`& .${Vt.icon}`]:t[`icon${fe(s)}`]},{[`& .${Vt.icon}`]:t[`iconColor${fe(r)}`]},{[`& .${Vt.deleteIcon}`]:t.deleteIcon},{[`& .${Vt.deleteIcon}`]:t[`deleteIcon${fe(s)}`]},{[`& .${Vt.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${Vt.deleteIcon}`]:t[`deleteIcon${fe(a)}Color${fe(r)}`]},t.root,t[`size${fe(s)}`],t[`color${fe(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${fe(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${fe(r)}`],t[a],t[`${a}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=ot(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return x({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Vt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Vt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Vt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Vt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Vt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Vt.icon}`]:x({color:e.vars?e.vars.palette.Chip.defaultIconColor:r,marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.color!=="default"&&{color:"inherit"}),[`& .${Vt.deleteIcon}`]:x({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ot(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:ot(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>x({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.hoverOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity+e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>x({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Vt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Vt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Vt.avatar}`]:{marginLeft:4},[`& .${Vt.avatarSmall}`]:{marginLeft:2},[`& .${Vt.icon}`]:{marginLeft:4},[`& .${Vt.iconSmall}`]:{marginLeft:2},[`& .${Vt.deleteIcon}`]:{marginRight:5},[`& .${Vt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ot(e.palette[t.color].main,.7)}`,[`&.${Vt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Vt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ot(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Vt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:ot(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),NG=re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>x({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function m2(e){return e.key==="Backspace"||e.key==="Delete"}const DG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:f,disabled:p=!1,icon:h,label:m,onClick:v,onDelete:b,onKeyDown:g,onKeyUp:S,size:w="medium",variant:P="filled"}=r,C=oe(r,LG),E=u.useRef(null),I=xt(E,n),T=W=>{W.stopPropagation(),b&&b(W)},k=W=>{W.currentTarget===W.target&&m2(W)&&W.preventDefault(),g&&g(W)},$=W=>{W.currentTarget===W.target&&(b&&m2(W)?b(W):W.key==="Escape"&&E.current&&E.current.blur()),S&&S(W)},R=s!==!1&&v?!0:s,O=R||b?Ui:c||"div",N=x({},r,{component:O,disabled:p,size:w,color:a,onDelete:!!b,clickable:R,variant:P}),U=AG(N),j=O===Ui?x({component:c||"div",focusVisibleClassName:U.focusVisible},b&&{disableRipple:!0}):{};let L=null;b&&(L=f&&u.isValidElement(f)?u.cloneElement(f,{className:he(f.props.className,U.deleteIcon),onClick:T}):_.jsx(_G,{className:he(U.deleteIcon),onClick:T}));let D=null;o&&u.isValidElement(o)&&(D=u.cloneElement(o,{className:he(U.avatar,o.props.className)}));let B=null;return h&&u.isValidElement(h)&&(B=u.cloneElement(h,{className:he(U.icon,h.props.className)})),_.jsxs(FG,x({as:O,className:he(U.root,i),disabled:R&&p?!0:void 0,onClick:v,onKeyDown:k,onKeyUp:$,ref:I,ownerState:N},j,C,{children:[D||B,_.jsx(NG,{className:he(U.label),ownerState:N,children:m}),L]}))}),Kg=DG;function _a({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 BG=u.createContext(),qg=BG;function Is(){return u.useContext(qg)}function zG(e){return _.jsx(sj,x({},e,{defaultTheme:Ug}))}function g2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mC(e,t=!1){return e&&(g2(e.value)&&e.value!==""||t&&g2(e.defaultValue)&&e.defaultValue!=="")}function HG(e){return e.startAdornment}function jG(e){return qe("MuiInputBase",e)}const VG=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oi=VG,UG=["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","startAdornment","type","value"],Yg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xg=(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]},WG=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:f,multiline:p,readOnly:h,size:m,startAdornment:v,type:b}=e,g={root:["root",`color${fe(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",f&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Ie(g,jG,t)},Qg=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yg})(({theme:e,ownerState:t})=>x({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&x({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Jg=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xg})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=x({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return x({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oi.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Oi.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"})}),GG=_.jsx(zG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),KG=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:m,endAdornment:v,fullWidth:b=!1,id:g,inputComponent:S="input",inputProps:w={},inputRef:P,maxRows:C,minRows:E,multiline:I=!1,name:T,onBlur:k,onChange:$,onClick:R,onFocus:O,onKeyDown:N,onKeyUp:U,placeholder:j,readOnly:L,renderSuffix:D,rows:B,startAdornment:W,type:A="text",value:z}=r,G=oe(r,UG),q=w.value!=null?w.value:z,{current:X}=u.useRef(q!=null),ie=u.useRef(),ee=u.useCallback(_e=>{},[]),se=xt(w.ref,ee),ae=xt(P,se),we=xt(ie,ae),[de,le]=u.useState(!1),te=Is(),be=_a({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});be.focused=te?te.focused:de,u.useEffect(()=>{!te&&h&&de&&(le(!1),k&&k())},[te,h,de,k]);const $e=te&&te.onFilled,Se=te&&te.onEmpty,Ne=u.useCallback(_e=>{mC(_e)?$e&&$e():Se&&Se()},[$e,Se]);Rn(()=>{X&&Ne({value:q})},[q,Ne,X]);const Re=_e=>{if(be.disabled){_e.stopPropagation();return}O&&O(_e),w.onFocus&&w.onFocus(_e),te&&te.onFocus?te.onFocus(_e):le(!0)},Fe=_e=>{k&&k(_e),w.onBlur&&w.onBlur(_e),te&&te.onBlur?te.onBlur(_e):le(!1)},Le=(_e,...ne)=>{if(!X){const ke=_e.target||ie.current;if(ke==null)throw new Error(wl(1));Ne({value:ke.value})}w.onChange&&w.onChange(_e,...ne),$&&$(_e,...ne)};u.useEffect(()=>{Ne(ie.current)},[]);const et=_e=>{ie.current&&_e.currentTarget===_e.target&&ie.current.focus(),R&&R(_e)};let gt=S,nt=w;I&&gt==="input"&&(B?nt=x({type:void 0,minRows:B,maxRows:B},nt):nt=x({type:void 0,maxRows:C,minRows:E},nt),gt=_U);const tt=_e=>{Ne(_e.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};u.useEffect(()=>{te&&te.setAdornedStart(Boolean(W))},[te,W]);const St=x({},r,{color:be.color||"primary",disabled:be.disabled,endAdornment:v,error:be.error,focused:be.focused,formControl:te,fullWidth:b,hiddenLabel:be.hiddenLabel,multiline:I,size:be.size,startAdornment:W,type:A}),dt=WG(St),it=c.Root||Qg,Pt=f.root||{},Qe=c.Input||Jg;return nt=x({},nt,f.input),_.jsxs(u.Fragment,{children:[!m&&GG,_.jsxs(it,x({},Pt,!xl(it)&&{ownerState:x({},St,Pt.ownerState)},{ref:n,onClick:et},G,{className:he(dt.root,Pt.className,a),children:[W,_.jsx(qg.Provider,{value:null,children:_.jsx(Qe,x({ownerState:St,"aria-invalid":be.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:be.disabled,id:g,onAnimationStart:tt,name:T,placeholder:j,readOnly:L,required:be.required,rows:B,value:q,onKeyDown:N,onKeyUp:U,type:A},nt,!xl(Qe)&&{as:gt,ownerState:x({},St,nt.ownerState)},{ref:we,className:he(dt.input,nt.className),onBlur:Fe,onChange:Le,onFocus:Re}))}),v,D?D(x({},be,{startAdornment:W})):null]}))]})}),bu=KG;function qG(e){return qe("MuiInput",e)}const YG=x({},Oi,Ue("MuiInput",["root","underline","input"])),ra=YG;function XG(e){return qe("MuiOutlinedInput",e)}const QG=x({},Oi,Ue("MuiOutlinedInput",["root","notchedOutline","input"])),Ei=QG;function JG(e){return qe("MuiFilledInput",e)}const ZG=x({},Oi,Ue("MuiFilledInput",["root","underline","input"])),Mi=ZG,q_=Oe(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function eK(e){return qe("MuiAutocomplete",e)}const tK=Ue("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Ft=tK;var v2,y2;const nK=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],rK=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${fe(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(p,eK,t)},oK=re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Ft.tag}`]:t.tag},{[`& .${Ft.tag}`]:t[`tagSize${fe(a)}`]},{[`& .${Ft.inputRoot}`]:t.inputRoot},{[`& .${Ft.input}`]:t.input},{[`& .${Ft.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>x({[`&.${Ft.focused} .${Ft.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ft.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Ft.tag}`]:x({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Ft.inputRoot}`]:{flexWrap:"wrap",[`.${Ft.hasPopupIcon}&, .${Ft.hasClearIcon}&`]:{paddingRight:26+4},[`.${Ft.hasPopupIcon}.${Ft.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Ft.input}`]:{width:0,minWidth:30}},[`& .${ra.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ra.root}.${Oi.sizeSmall}`]:{[`& .${ra.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ei.root}`]:{padding:9,[`.${Ft.hasPopupIcon}&, .${Ft.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ft.hasPopupIcon}.${Ft.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ft.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Ft.endAdornment}`]:{right:9}},[`& .${Ei.root}.${Oi.sizeSmall}`]:{padding:6,[`& .${Ft.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Mi.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ft.hasPopupIcon}&, .${Ft.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Ft.hasPopupIcon}.${Ft.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Mi.input}`]:{padding:"7px 4px"},[`& .${Ft.endAdornment}`]:{right:9}},[`& .${Mi.root}.${Oi.sizeSmall}`]:{paddingBottom:1,[`& .${Mi.input}`]:{padding:"2.5px 4px"}},[`& .${Oi.hiddenLabel}`]:{paddingTop:8},[`& .${Ft.input}`]:x({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),iK=re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),sK=re(Jn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),lK=re(Jn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>x({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>x({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),aK=re(Ma,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ft.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>x({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),cK=re(qo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>x({},e.typography.body1,{overflow:"auto"})),uK=re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),dK=re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),fK=re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${Ft.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"},[`&.${Ft.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"},[`&.${Ft.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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ft.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ft.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),pK=re(MG,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),hK=re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ft.option}`]:{paddingLeft:24}}),mK=u.forwardRef(function(t,n){var r,o,i,s;const a=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:f=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=v2||(v2=_.jsx(K_,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:S=!1,clearText:w="Clear",closeText:P="Close",componentsProps:C={},defaultValue:E=a.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:T=!1,disabled:k=!1,disabledItemsFocusable:$=!1,disableListWrap:R=!1,disablePortal:O=!1,filterSelectedOptions:N=!1,forcePopupIcon:U="auto",freeSolo:j=!1,fullWidth:L=!1,getLimitTagsText:D=Mt=>`+${Mt}`,getOptionLabel:B=Mt=>{var On;return(On=Mt.label)!=null?On:Mt},groupBy:W,handleHomeEndKeys:A=!a.freeSolo,includeInputInList:z=!1,limitTags:G=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:ee="Loading…",multiple:se=!1,noOptionsText:ae="No options",openOnFocus:we=!1,openText:de="Open",PaperComponent:le=qo,PopperComponent:te=Ma,popupIcon:be=y2||(y2=_.jsx(q_,{})),readOnly:$e=!1,renderGroup:Se,renderInput:Ne,renderOption:Re,renderTags:Fe,selectOnFocus:Le=!a.freeSolo,size:et="medium"}=a,gt=oe(a,nK),{getRootProps:nt,getInputProps:tt,getInputLabelProps:St,getPopupIndicatorProps:dt,getClearProps:it,getTagProps:Pt,getListboxProps:Qe,getOptionProps:_e,value:ne,dirty:ke,id:Ee,popupOpen:Te,focused:Ke,focusedTag:bt,anchorEl:Nt,setAnchorEl:Dt,inputValue:Yn,groupedOptions:dn}=DV(x({},a,{componentName:"Autocomplete"})),Un=!I&&!k&&ke&&!$e,xr=(!j||U===!0)&&U!==!1,fn=x({},a,{disablePortal:O,focused:Ke,fullWidth:L,hasClearIcon:Un,hasPopupIcon:xr,inputFocused:bt===-1,popupOpen:Te,size:et}),nn=rK(fn);let Xt;if(se&&ne.length>0){const Mt=On=>x({className:nn.tag,disabled:k},Pt(On));Fe?Xt=Fe(ne,Mt,fn):Xt=ne.map((On,ce)=>_.jsx(Kg,x({label:B(On),size:et},Mt({index:ce}),m)))}if(G>-1&&Array.isArray(Xt)){const Mt=Xt.length-G;!Ke&&Mt>0&&(Xt=Xt.splice(0,G),Xt.push(_.jsx("span",{className:nn.tag,children:D(Mt)},Xt.length)))}const vi=Se||(Mt=>_.jsxs("li",{children:[_.jsx(pK,{className:nn.groupLabel,ownerState:fn,component:"div",children:Mt.group}),_.jsx(hK,{className:nn.groupUl,ownerState:fn,children:Mt.children})]},Mt.key)),Yo=Re||((Mt,On)=>_.jsx("li",x({},Mt,{children:B(On)}))),bo=(Mt,On)=>{const ce=_e({option:Mt,index:On});return Yo(x({},ce,{className:nn.option}),Mt,{selected:ce["aria-selected"],inputValue:Yn})};return _.jsxs(u.Fragment,{children:[_.jsx(oK,x({ref:n,className:he(nn.root,v),ownerState:fn},nt(gt),{children:Ne({id:Ee,disabled:k,fullWidth:!0,size:et==="small"?"small":void 0,InputLabelProps:St(),InputProps:x({ref:Dt,className:nn.inputRoot,startAdornment:Xt},(Un||xr)&&{endAdornment:_.jsxs(iK,{className:nn.endAdornment,ownerState:fn,children:[Un?_.jsx(sK,x({},it(),{"aria-label":w,title:w,ownerState:fn},C.clearIndicator,{className:he(nn.clearIndicator,(r=C.clearIndicator)==null?void 0:r.className),children:b})):null,xr?_.jsx(lK,x({},dt(),{disabled:k,"aria-label":Te?P:de,title:Te?P:de,ownerState:fn},C.popupIndicator,{className:he(nn.popupIndicator,(o=C.popupIndicator)==null?void 0:o.className),children:be})):null]})}),inputProps:x({className:nn.input,disabled:k,readOnly:$e},tt())})})),Nt?_.jsx(aK,x({as:te,disablePortal:O,style:{width:Nt?Nt.clientWidth:null},ownerState:fn,role:"presentation",anchorEl:Nt,open:Te},C.popper,{className:he(nn.popper,(i=C.popper)==null?void 0:i.className),children:_.jsxs(cK,x({ownerState:fn,as:le},C.paper,{className:he(nn.paper,(s=C.paper)==null?void 0:s.className),children:[ie&&dn.length===0?_.jsx(uK,{className:nn.loading,ownerState:fn,children:ee}):null,dn.length===0&&!j&&!ie?_.jsx(dK,{className:nn.noOptions,ownerState:fn,role:"presentation",onMouseDown:Mt=>{Mt.preventDefault()},children:ae}):null,dn.length>0?_.jsx(fK,x({as:q,className:nn.listbox,ownerState:fn},Qe(),X,{children:dn.map((Mt,On)=>W?vi({key:Mt.key,group:Mt.group,children:Mt.options.map((ce,me)=>bo(ce,Mt.index+me))}):bo(Mt,On))})):null]}))})):null]})}),Y_=mK,gK=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vK={entering:{opacity:1},entered:{opacity:1}},yK=u.forwardRef(function(t,n){const r=Yr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:v,onExited:b,onExiting:g,style:S,timeout:w=o,TransitionComponent:P=Wg}=t,C=oe(t,gK),E=u.useRef(null),I=xt(a.ref,n),T=xt(E,I),k=D=>B=>{if(D){const W=E.current;B===void 0?D(W):D(W,B)}},$=k(m),R=k((D,B)=>{hC(D);const W=Sl({style:S,timeout:w,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",W),D.style.transition=r.transitions.create("opacity",W),p&&p(D,B)}),O=k(h),N=k(g),U=k(D=>{const B=Sl({style:S,timeout:w,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",B),D.style.transition=r.transitions.create("opacity",B),v&&v(D)}),j=k(b),L=D=>{i&&i(E.current,D)};return _.jsx(P,x({appear:s,in:f,nodeRef:E,onEnter:R,onEntered:O,onEntering:$,onExit:U,onExited:j,onExiting:N,addEndListener:L,timeout:w},C,{children:(D,B)=>u.cloneElement(a,x({style:x({opacity:0,visibility:D==="exited"&&!f?"hidden":void 0},vK[D],S,a.props.style),ref:T},B))}))}),X_=yK;function bK(e){return qe("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const wK=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],CK=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},bK,t)},xK=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>x({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),SK=u.forwardRef(function(t,n){var r,o;const i=Je({props:t,name:"MuiBackdrop"}),{children:s,component:a="div",components:c={},componentsProps:f={},className:p,invisible:h=!1,open:m,transitionDuration:v,TransitionComponent:b=X_}=i,g=oe(i,wK),S=x({},i,{component:a,invisible:h}),w=CK(S);return _.jsx(b,x({in:m,timeout:v},g,{children:_.jsx(xK,{"aria-hidden":!0,as:(r=c.Root)!=null?r:a,className:he(w.root,p),ownerState:x({},S,(o=f.root)==null?void 0:o.ownerState),classes:w,ref:n,children:s})}))}),Q_=SK,EK=e=>!e||!xl(e),b2=EK;function PK(e){return qe("MuiBadge",e)}const kK=Ue("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"]),Bs=kK,IK=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],x0=10,S0=4,$K=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`,`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}${fe(o)}`,`overlap${fe(o)}`,t!=="default"&&`color${fe(t)}`]};return Ie(a,PK,s)},TK=re("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),MK=re("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}${fe(n.overlap)}`],n.color!=="default"&&t[`color${fe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>x({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:x0*2,lineHeight:1,padding:"0 6px",height:x0*2,borderRadius:x0,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:S0,height:S0*2,minWidth:S0*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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.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%",[`&.${Bs.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),_K=u.forwardRef(function(t,n){var r,o,i,s;const a=Je({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:f,component:p="span",components:h={},componentsProps:m={},overlap:v="rectangular",color:b="default",invisible:g=!1,max:S,badgeContent:w,showZero:P=!1,variant:C="standard"}=a,E=oe(a,IK),I=l_({anchorOrigin:c,color:b,overlap:v,variant:C});let T=g;g===!1&&(w===0&&!P||w==null&&C!=="dot")&&(T=!0);const{color:k=b,overlap:$=v,anchorOrigin:R=c,variant:O=C}=T?I:a,N=x({},a,{anchorOrigin:R,invisible:T,color:k,overlap:$,variant:O}),U=$K(N);let j;return O!=="dot"&&(j=w&&Number(w)>S?`${S}+`:w),_.jsx(UV,x({invisible:g,badgeContent:j,showZero:P,max:S},E,{components:x({Root:TK,Badge:MK},h),className:he((r=m.root)==null?void 0:r.className,U.root,f),componentsProps:{root:x({},m.root,b2(h.Root)&&{as:p,ownerState:x({},(o=m.root)==null?void 0:o.ownerState,{anchorOrigin:R,color:k,overlap:$,variant:O})}),badge:x({},m.badge,{className:he(U.badge,(i=m.badge)==null?void 0:i.className)},b2(h.Badge)&&{ownerState:x({},(s=m.badge)==null?void 0:s.ownerState,{anchorOrigin:R,color:k,overlap:$,variant:O})})},ref:n}))}),J_=_K,RK=uC(),OK=vV({defaultTheme:RK,defaultClassName:"MuiBox-root",generateClassName:c_.generate}),ht=OK;function LK(e){return qe("MuiButton",e)}const AK=Ue("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"]),Ch=AK,FK=u.createContext({}),NK=FK,DK=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],BK=["root"],zK=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${fe(o)}`],endIcon:["endIcon",`iconSize${fe(o)}`]},c=Ie(a,LK,s);return x({},s,c)},Z_=e=>x({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),HK=re(Ui,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return x({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":x({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(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})`:ot(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})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ch.focusVisible}`]:x({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ch.disabled}`]:x({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="outlined"&&t.color==="secondary"&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},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 ${ot(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ch.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ch.disabled}`]:{boxShadow:"none"}}),jK=re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Z_(e))),VK=re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>x({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Z_(e))),UK=u.forwardRef(function(t,n){const r=u.useContext(NK),o=a_(r,t),i=Je({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:S="medium",startIcon:w,type:P,variant:C="text"}=i,E=oe(i,DK),I=x({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:S,type:P,variant:C}),T=zK(I),{root:k}=T,$=oe(T,BK),R=w&&_.jsx(jK,{className:$.startIcon,ownerState:I,children:w}),O=v&&_.jsx(VK,{className:$.endIcon,ownerState:I,children:v});return _.jsxs(HK,x({ownerState:I,className:he(r.className,k,f),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he($.focusVisible,b),ref:n,type:P},E,{classes:$,children:[R,s,O]}))}),vr=UK;function WK(e){return qe("MuiCard",e)}Ue("MuiCard",["root"]);const GK=["className","raised"],KK=e=>{const{classes:t}=e;return Ie({root:["root"]},WK,t)},qK=re(qo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),YK=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=oe(r,GK),a=x({},r,{raised:i}),c=KK(a);return _.jsx(qK,x({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),eR=YK;function XK(e){return qe("MuiCardContent",e)}Ue("MuiCardContent",["root"]);const QK=["className","component"],JK=e=>{const{classes:t}=e;return Ie({root:["root"]},XK,t)},ZK=re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),eq=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=oe(r,QK),a=x({},r,{component:i}),c=JK(a);return _.jsx(ZK,x({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),tR=eq;function tq(e){return qe("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nq=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],rq=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${fe(o)}`],input:["input"]};return Ie(i,tq,t)},oq=re(Ui)(({ownerState:e})=>x({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),iq=re("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sq=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:f=!1,edge:p=!1,icon:h,id:m,inputProps:v,inputRef:b,name:g,onBlur:S,onChange:w,onFocus:P,readOnly:C,required:E,tabIndex:I,type:T,value:k}=t,$=oe(t,nq),[R,O]=hs({controlled:o,default:Boolean(a),name:"SwitchBase",state:"checked"}),N=Is(),U=z=>{P&&P(z),N&&N.onFocus&&N.onFocus(z)},j=z=>{S&&S(z),N&&N.onBlur&&N.onBlur(z)},L=z=>{if(z.nativeEvent.defaultPrevented)return;const G=z.target.checked;O(G),w&&w(z,G)};let D=c;N&&typeof D=="undefined"&&(D=N.disabled);const B=T==="checkbox"||T==="radio",W=x({},t,{checked:R,disabled:D,disableFocusRipple:f,edge:p}),A=rq(W);return _.jsxs(oq,x({component:"span",className:he(A.root,s),centerRipple:!0,focusRipple:!f,disabled:D,tabIndex:null,role:void 0,onFocus:U,onBlur:j,ownerState:W,ref:n},$,{children:[_.jsx(iq,x({autoFocus:r,checked:o,defaultChecked:a,className:A.input,disabled:D,id:B&&m,name:g,onChange:L,readOnly:C,ref:b,required:E,ownerState:W,tabIndex:I,type:T},T==="checkbox"&&k===void 0?{}:{value:k},v)),R?i:h]}))}),nR=sq,lq=Oe(_.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"),aq=Oe(_.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"),cq=Oe(_.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 uq(e){return qe("MuiCheckbox",e)}const dq=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),E0=dq,fq=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],pq=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${fe(r)}`]},i=Ie(o,uq,t);return x({},t,i)},hq=re(nR,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${E0.checked}, &.${E0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${E0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),mq=_.jsx(aq,{}),gq=_.jsx(lq,{}),vq=_.jsx(cq,{}),yq=u.forwardRef(function(t,n){var r,o;const i=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:s=mq,color:a="primary",icon:c=gq,indeterminate:f=!1,indeterminateIcon:p=vq,inputProps:h,size:m="medium"}=i,v=oe(i,fq),b=f?p:c,g=f?p:s,S=x({},i,{color:a,indeterminate:f,size:m}),w=pq(S);return _.jsx(hq,x({type:"checkbox",inputProps:x({"data-indeterminate":f},h),icon:u.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(g,{fontSize:(o=g.props.fontSize)!=null?o:m}),ownerState:S,ref:n},v,{classes:w}))}),rR=yq;function bq(e){return qe("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wq=["className","color","disableShrink","size","style","thickness","value","variant"];let Zg=e=>e,w2,C2,x2,S2;const zs=44,Cq=Ml(w2||(w2=Zg`
152
+ 0% {
153
+ transform: rotate(0deg);
154
+ }
155
+
156
+ 100% {
157
+ transform: rotate(360deg);
158
+ }
159
+ `)),xq=Ml(C2||(C2=Zg`
160
+ 0% {
161
+ stroke-dasharray: 1px, 200px;
162
+ stroke-dashoffset: 0;
163
+ }
164
+
165
+ 50% {
166
+ stroke-dasharray: 100px, 200px;
167
+ stroke-dashoffset: -15px;
168
+ }
169
+
170
+ 100% {
171
+ stroke-dasharray: 100px, 200px;
172
+ stroke-dashoffset: -125px;
173
+ }
174
+ `)),Sq=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${fe(r)}`],svg:["svg"],circle:["circle",`circle${fe(n)}`,o&&"circleDisableShrink"]};return Ie(i,bq,t)},Eq=re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>x({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&yu(x2||(x2=Zg`
175
+ animation: ${0} 1.4s linear infinite;
176
+ `),Cq)),Pq=re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),kq=re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>x({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&yu(S2||(S2=Zg`
177
+ animation: ${0} 1.4s ease-in-out infinite;
178
+ `),xq)),Iq=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:f=3.6,value:p=0,variant:h="indeterminate"}=r,m=oe(r,wq),v=x({},r,{color:i,disableShrink:s,size:a,thickness:f,value:p,variant:h}),b=Sq(v),g={},S={},w={};if(h==="determinate"){const P=2*Math.PI*((zs-f)/2);g.strokeDasharray=P.toFixed(3),w["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,S.transform="rotate(-90deg)"}return _.jsx(Eq,x({className:he(b.root,o),style:x({width:a,height:a},S,c),ownerState:v,ref:n,role:"progressbar"},w,m,{children:_.jsx(Pq,{className:b.svg,ownerState:v,viewBox:`${zs/2} ${zs/2} ${zs} ${zs}`,children:_.jsx(kq,{className:b.circle,style:g,ownerState:v,cx:zs,cy:zs,r:(zs-f)/2,fill:"none",strokeWidth:f})})}))}),Gf=Iq,$q=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],Tq=e=>e.classes,Mq=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>x({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),_q=re(Q_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rq=u.forwardRef(function(t,n){var r,o;const i=Je({name:"MuiModal",props:t}),{BackdropComponent:s=_q,BackdropProps:a,closeAfterTransition:c=!1,children:f,component:p,components:h={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:g=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:P=!1,hideBackdrop:C=!1,keepMounted:E=!1,theme:I}=i,T=oe(i,$q),[k,$]=u.useState(!0),R={closeAfterTransition:c,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:g,disablePortal:S,disableRestoreFocus:w,disableScrollLock:P,hideBackdrop:C,keepMounted:E},O=x({},i,R,{exited:k}),N=Tq(O),U=(r=(o=h.Root)!=null?o:p)!=null?r:Mq;return _.jsx(IU,x({components:x({Root:U,Backdrop:s},h),componentsProps:{root:()=>x({},Q1(m.root,O),!xl(U)&&{as:p,theme:I}),backdrop:()=>x({},a,Q1(m.backdrop,O))},onTransitionEnter:()=>$(!1),onTransitionExited:()=>$(!0),ref:n},T,{classes:N},R,{children:f}))}),gC=Rq;function Oq(e){return qe("MuiDialog",e)}const Lq=Ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),P0=Lq,Aq=u.createContext({}),oR=Aq,Fq=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Nq=re(Q_,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Dq=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(s,Oq,t)},Bq=re(gC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),zq=re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>x({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Hq=re(qo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>x({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${P0.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}`,[`&.${P0.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,[`&.${P0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jq=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialog"}),o=Yr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:f,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:S,onClose:w,open:P,PaperComponent:C=qo,PaperProps:E={},scroll:I="paper",TransitionComponent:T=X_,transitionDuration:k=i,TransitionProps:$}=r,R=oe(r,Fq),O=x({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:I}),N=Dq(O),U=u.useRef(),j=W=>{U.current=W.target===W.currentTarget},L=W=>{U.current&&(U.current=null,S&&S(W),w&&w(W,"backdropClick"))},D=kn(a),B=u.useMemo(()=>({titleId:D}),[D]);return _.jsx(Bq,x({className:he(N.root,h),closeAfterTransition:!0,components:{Backdrop:Nq},componentsProps:{backdrop:x({transitionDuration:k,as:c},f)},disableEscapeKeyDown:m,onClose:w,open:P,ref:n,onClick:L,ownerState:O},R,{children:_.jsx(T,x({appear:!0,in:P,timeout:k,role:"presentation"},$,{children:_.jsx(zq,{className:he(N.container),onMouseDown:j,ownerState:O,children:_.jsx(Hq,x({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},E,{className:he(N.paper,E.className),ownerState:O,children:_.jsx(oR.Provider,{value:B,children:p})}))})}))}))}),Vq=jq;function Uq(e){return qe("MuiDialogContent",e)}Ue("MuiDialogContent",["root","dividers"]);function Wq(e){return qe("MuiDialogTitle",e)}const Gq=Ue("MuiDialogTitle",["root"]),Kq=Gq,qq=["className","dividers"],Yq=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},Uq,t)},Xq=re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>x({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Kq.root} + &`]:{paddingTop:0}})),Qq=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=oe(r,qq),a=x({},r,{dividers:i}),c=Yq(a);return _.jsx(Xq,x({className:he(c.root,o),ownerState:a,ref:n},s))}),Jq=Qq,Zq=["className","id"],eY=e=>{const{classes:t}=e;return Ie({root:["root"]},Wq,t)},tY=re(gr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),nY=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=oe(r,Zq),a=r,c=eY(a),{titleId:f=i}=u.useContext(oR);return _.jsx(tY,x({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:f},s))}),rY=nY,oY=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),E2=oY,iY=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sY(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=uo(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const f=i.getComputedStyle(t);s=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const f=s.split("(")[1].split(")")[0].split(",");a=parseInt(f[4],10),c=parseInt(f[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function lY(e){return typeof e=="function"?e():e}function xh(e,t,n){const r=lY(n),o=sY(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const aY=u.forwardRef(function(t,n){const r=Yr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:f,direction:p="down",easing:h=o,in:m,onEnter:v,onEntered:b,onEntering:g,onExit:S,onExited:w,onExiting:P,style:C,timeout:E=i,TransitionComponent:I=Wg}=t,T=oe(t,iY),k=u.useRef(null),$=xt(c.ref,k),R=xt($,n),O=z=>G=>{z&&(G===void 0?z(k.current):z(k.current,G))},N=O((z,G)=>{xh(p,z,f),hC(z),v&&v(z,G)}),U=O((z,G)=>{const q=Sl({timeout:E,style:C,easing:h},{mode:"enter"});z.style.webkitTransition=r.transitions.create("-webkit-transform",x({},q)),z.style.transition=r.transitions.create("transform",x({},q)),z.style.webkitTransform="none",z.style.transform="none",g&&g(z,G)}),j=O(b),L=O(P),D=O(z=>{const G=Sl({timeout:E,style:C,easing:h},{mode:"exit"});z.style.webkitTransition=r.transitions.create("-webkit-transform",G),z.style.transition=r.transitions.create("transform",G),xh(p,z,f),S&&S(z)}),B=O(z=>{z.style.webkitTransition="",z.style.transition="",w&&w(z)}),W=z=>{s&&s(k.current,z)},A=u.useCallback(()=>{k.current&&xh(p,k.current,f)},[p,f]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const z=Cl(()=>{k.current&&xh(p,k.current,f)}),G=uo(k.current);return G.addEventListener("resize",z),()=>{z.clear(),G.removeEventListener("resize",z)}},[p,m,f]),u.useEffect(()=>{m||A()},[m,A]),_.jsx(I,x({nodeRef:k,onEnter:N,onEntered:j,onEntering:U,onExit:D,onExited:B,onExiting:L,addEndListener:W,appear:a,in:m,timeout:E},T,{children:(z,G)=>u.cloneElement(c,x({ref:R,style:x({visibility:z==="exited"&&!m?"hidden":void 0},C,c.props.style)},G))}))}),cY=aY;function uY(e){return qe("MuiDrawer",e)}Ue("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dY=["BackdropProps"],fY=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],iR=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},pY=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${fe(n)}`,r!=="temporary"&&`paperAnchorDocked${fe(n)}`]};return Ie(o,uY,t)},hY=re(gC,{name:"MuiDrawer",slot:"Root",overridesResolver:iR})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),P2=re("div",{shouldForwardProp:vo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:iR})({flex:"0 0 auto"}),mY=re(qo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>x({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),sR={left:"right",right:"left",top:"down",bottom:"up"};function gY(e){return["left","right"].indexOf(e)!==-1}function vY(e,t){return e.direction==="rtl"&&gY(t)?sR[t]:t}const yY=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiDrawer"}),o=Yr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:f,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:v,open:b=!1,PaperProps:g={},SlideProps:S,TransitionComponent:w=cY,transitionDuration:P=i,variant:C="temporary"}=r,E=oe(r.ModalProps,dY),I=oe(r,fY),T=u.useRef(!1);u.useEffect(()=>{T.current=!0},[]);const k=vY(o,s),R=x({},r,{anchor:s,elevation:p,open:b,variant:C},I),O=pY(R),N=_.jsx(mY,x({elevation:C==="temporary"?p:0,square:!0},g,{className:he(O.paper,g.className),ownerState:R,children:c}));if(C==="permanent")return _.jsx(P2,x({className:he(O.root,O.docked,f),ownerState:R,ref:n},I,{children:N}));const U=_.jsx(w,x({in:b,direction:sR[k],timeout:P,appear:T.current},S,{children:N}));return C==="persistent"?_.jsx(P2,x({className:he(O.root,O.docked,f),ownerState:R,ref:n},I,{children:U})):_.jsx(hY,x({BackdropProps:x({},a,m,{transitionDuration:P}),className:he(O.root,O.modal,f),open:b,ownerState:R,onClose:v,hideBackdrop:h,ref:n},I,E,{children:U}))}),bY=yY,wY=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],CY=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},JG,t);return x({},t,o)},xY=re(Qg,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yg(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return x({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Mi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Mi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mi.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&: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(.${Mi.disabled}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&x({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),SY=re(Jg,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xg})(({theme:e,ownerState:t})=>x({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),lR=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFilledInput"}),{components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:c=!1,type:f="text"}=r,p=oe(r,wY),h=x({},r,{fullWidth:s,inputComponent:a,multiline:c,type:f}),m=CY(r),v={root:{ownerState:h},input:{ownerState:h}},b=i?Do(i,v):v;return _.jsx(bu,x({components:x({Root:xY,Input:SY},o),componentsProps:b,fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f},p,{classes:m}))});lR.muiName="Input";const aR=lR;function EY(e){return qe("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PY=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kY=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return Ie(o,EY,t)},IY=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>x({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),$Y=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:f=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:v="none",required:b=!1,size:g="medium",variant:S="outlined"}=r,w=oe(r,PY),P=x({},r,{color:s,component:a,disabled:c,error:f,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:S}),C=kY(P),[E,I]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{if(!qh(B,["Input","Select"]))return;const W=qh(B,["Select"])?B.props.input:B;W&&HG(W.props)&&(D=!0)}),D}),[T,k]=u.useState(()=>{let D=!1;return o&&u.Children.forEach(o,B=>{qh(B,["Input","Select"])&&mC(B.props,!0)&&(D=!0)}),D}),[$,R]=u.useState(!1);c&&$&&R(!1);const O=p!==void 0&&!c?p:$;let N;const U=u.useCallback(()=>{k(!0)},[]),j=u.useCallback(()=>{k(!1)},[]),L={adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:f,filled:T,focused:O,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{R(!1)},onEmpty:j,onFilled:U,onFocus:()=>{R(!0)},registerEffect:N,required:b,variant:S};return _.jsx(qg.Provider,{value:L,children:_.jsx(IY,x({as:a,ownerState:P,className:he(C.root,i),ref:n},w,{children:o}))})}),Ra=$Y;function TY(e){return qe("MuiFormControlLabel",e)}const MY=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Sh=MY,_Y=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],RY=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${fe(r)}`,o&&"error"],label:["label",n&&"disabled"]};return Ie(i,TY,t)},OY=re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sh.label}`]:t.label},t.root,t[`labelPlacement${fe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Sh.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},{[`& .${Sh.label}`]:{[`&.${Sh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),LY=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:a,disableTypography:c,label:f,labelPlacement:p="end"}=r,h=oe(r,_Y),m=Is();let v=a;typeof v=="undefined"&&typeof s.props.disabled!="undefined"&&(v=s.props.disabled),typeof v=="undefined"&&m&&(v=m.disabled);const b={disabled:v};["checked","name","onChange","value","inputRef"].forEach(C=>{typeof s.props[C]=="undefined"&&typeof r[C]!="undefined"&&(b[C]=r[C])});const g=_a({props:r,muiFormControl:m,states:["error"]}),S=x({},r,{disabled:v,labelPlacement:p,error:g.error}),w=RY(S);let P=f;return P!=null&&P.type!==gr&&!c&&(P=_.jsx(gr,x({component:"span",className:w.label},i.typography,{children:P}))),_.jsxs(OY,x({className:he(w.root,o),ownerState:S,ref:n},h,{children:[u.cloneElement(s,b),P]}))}),cR=LY;function AY(e){return qe("MuiFormHelperText",e)}const FY=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),k2=FY;var I2;const NY=["children","className","component","disabled","error","filled","focused","margin","required","variant"],DY=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,f={root:["root",o&&"disabled",i&&"error",r&&`size${fe(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Ie(f,AY,t)},BY=re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${k2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${k2.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),zY=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=oe(r,NY),c=Is(),f=_a({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=x({},r,{component:s,contained:f.variant==="filled"||f.variant==="outlined",variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=DY(p);return _.jsx(BY,x({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?I2||(I2=_.jsx("span",{className:"notranslate",children:"​"})):o}))}),ev=zY;function HY(e){return qe("MuiFormLabel",e)}const jY=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zd=jY,VY=["children","className","color","component","disabled","error","filled","focused","required"],UY=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${fe(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(c,HY,t)},WY=re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>x({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>x({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${zd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${zd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zd.error}`]:{color:(e.vars||e).palette.error.main}})),GY=re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${zd.error}`]:{color:(e.vars||e).palette.error.main}})),KY=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=oe(r,VY),c=Is(),f=_a({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=x({},r,{color:f.color||"primary",component:s,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),h=UY(p);return _.jsxs(WY,x({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,f.required&&_.jsxs(GY,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),uR=KY,qY=u.createContext(),$2=qY;function YY(e){return qe("MuiGrid",e)}const XY=[0,1,2,3,4,5,6,7,8,9,10],QY=["column-reverse","column","row-reverse","row"],JY=["nowrap","wrap-reverse","wrap"],sd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],yf=Ue("MuiGrid",["root","container","item","zeroMinWidth",...XY.map(e=>`spacing-xs-${e}`),...QY.map(e=>`direction-xs-${e}`),...JY.map(e=>`wrap-xs-${e}`),...sd.map(e=>`grid-xs-${e}`),...sd.map(e=>`grid-sm-${e}`),...sd.map(e=>`grid-md-${e}`),...sd.map(e=>`grid-lg-${e}`),...sd.map(e=>`grid-xl-${e}`)]),ZY=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Dc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function eX({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Bg({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let f={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${Dc(p)})`;f={flexBasis:h,maxWidth:h}}}i=x({flexBasis:c,flexGrow:0,maxWidth:c},f)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function tX({theme:e,ownerState:t}){const n=Bg({values:t.direction,breakpoints:e.breakpoints.values});return pi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${yf.item}`]={maxWidth:"none"}),o})}function dR({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function nX({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Bg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=dR({breakpoints:e.breakpoints.values,values:i})),o=pi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${Dc(p)}`,[`& > .${yf.item}`]:{paddingTop:Dc(p)}}:(f=s)!=null&&f.includes(c)?{}:{marginTop:0,[`& > .${yf.item}`]:{paddingTop:0}}})}return o}function rX({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Bg({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=dR({breakpoints:e.breakpoints.values,values:i})),o=pi({theme:e},i,(a,c)=>{var f;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${Dc(p)})`,marginLeft:`-${Dc(p)}`,[`& > .${yf.item}`]:{paddingLeft:Dc(p)}}:(f=s)!=null&&f.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${yf.item}`]:{paddingLeft:0}}})}return o}function oX(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const iX=re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:f}=n;let p=[];r&&(p=oX(s,f,t));const h=[];return f.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({ownerState:e})=>x({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),tX,nX,rX,eX);function sX(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const lX=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let f=[];n&&(f=sX(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...f,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Ie(h,YY,t)},aX=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiGrid"}),{breakpoints:o}=Yr(),i=Zw(r),{className:s,columns:a,columnSpacing:c,component:f="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:S=!1}=i,w=oe(i,ZY),P=v||b,C=c||b,E=u.useContext($2),I=p?a||12:E,T={},k=x({},w);o.keys.forEach(O=>{w[O]!=null&&(T[O]=w[O],delete k[O])});const $=x({},i,{columns:I,container:p,direction:h,item:m,rowSpacing:P,columnSpacing:C,wrap:g,zeroMinWidth:S,spacing:b},T,{breakpoints:o.keys}),R=lX($);return _.jsx($2.Provider,{value:I,children:_.jsx(iX,x({ownerState:$,className:he(R.root,s),as:f,ref:n},k))})}),Bn=aX,cX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ib(e){return`scale(${e}, ${ns(e,2)})`}const uX={entering:{opacity:1,transform:ib(1)},entered:{opacity:1,transform:"none"}},k0=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fR=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:v,style:b,timeout:g="auto",TransitionComponent:S=Wg}=t,w=oe(t,cX),P=u.useRef(),C=u.useRef(),E=Yr(),I=u.useRef(null),T=xt(i.ref,n),k=xt(I,T),$=B=>W=>{if(B){const A=I.current;W===void 0?B(A):B(A,W)}},R=$(p),O=$((B,W)=>{hC(B);const{duration:A,delay:z,easing:G}=Sl({style:b,timeout:g,easing:s},{mode:"enter"});let q;g==="auto"?(q=E.transitions.getAutoHeightDuration(B.clientHeight),C.current=q):q=A,B.style.transition=[E.transitions.create("opacity",{duration:q,delay:z}),E.transitions.create("transform",{duration:k0?q:q*.666,delay:z,easing:G})].join(","),c&&c(B,W)}),N=$(f),U=$(v),j=$(B=>{const{duration:W,delay:A,easing:z}=Sl({style:b,timeout:g,easing:s},{mode:"exit"});let G;g==="auto"?(G=E.transitions.getAutoHeightDuration(B.clientHeight),C.current=G):G=W,B.style.transition=[E.transitions.create("opacity",{duration:G,delay:A}),E.transitions.create("transform",{duration:k0?G:G*.666,delay:k0?A:A||G*.333,easing:z})].join(","),B.style.opacity=0,B.style.transform=ib(.75),h&&h(B)}),L=$(m),D=B=>{g==="auto"&&(P.current=setTimeout(B,C.current||0)),r&&r(I.current,B)};return u.useEffect(()=>()=>{clearTimeout(P.current)},[]),_.jsx(S,x({appear:o,in:a,nodeRef:I,onEnter:O,onEntered:N,onEntering:R,onExit:j,onExited:L,onExiting:U,addEndListener:D,timeout:g==="auto"?null:g},w,{children:(B,W)=>u.cloneElement(i,x({style:x({opacity:0,transform:ib(.75),visibility:B==="exited"&&!a?"hidden":void 0},uX[B],b,i.props.style),ref:k},W))}))});fR.muiSupportAuto=!0;const _m=fR;function dX(e,t,n,r,o){const i=typeof window!="undefined"&&typeof window.matchMedia!="undefined",[s,a]=u.useState(()=>o&&i?n(e).matches:r?r(e).matches:t);return Rn(()=>{let c=!0;if(!i)return;const f=n(e),p=()=>{c&&a(f.matches)};return p(),f.addListener(p),()=>{c=!1,f.removeListener(p)}},[e,n,i]),s}const pR=Uc["useSyncExternalStore"];function fX(e,t,n,r){const o=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r]),[s,a]=u.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[o,n,e]);return pR(a,s,i)}function hR(e,t={}){const n=tC(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a}=T_({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(pR!==void 0?fX:dX)(c,o,i,s,a)}const pX=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],hX=e=>{const{classes:t,disableUnderline:n}=e,o=Ie({root:["root",!n&&"underline"],input:["input"]},qG,t);return x({},t,o)},mX=re(Qg,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yg(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),x({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ra.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ra.error}:after`]:{borderBottomColor:(e.vars||e).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ra.disabled}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ra.disabled}:before`]:{borderBottomStyle:"dotted"}})}),gX=re(Jg,{name:"MuiInput",slot:"Input",overridesResolver:Xg})({}),mR=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInput"}),{disableUnderline:o,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:c="input",multiline:f=!1,type:p="text"}=r,h=oe(r,pX),m=hX(r),b={root:{ownerState:{disableUnderline:o}}},g=s?Do(s,b):b;return _.jsx(bu,x({components:x({Root:mX,Input:gX},i),componentsProps:g,fullWidth:a,inputComponent:c,multiline:f,ref:n,type:p},h,{classes:m}))});mR.muiName="Input";const gR=mR;function vX(e){return qe("MuiInputAdornment",e)}const yX=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),T2=yX;var M2;const bX=["children","className","component","disablePointerEvents","disableTypography","position","variant"],wX=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},CX=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${fe(o)}`,s,r&&"hiddenLabel",i&&`size${fe(i)}`]};return Ie(a,vX,t)},xX=re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:wX})(({theme:e,ownerState:t})=>x({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${T2.positionStart}&:not(.${T2.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),SX=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:f,variant:p}=r,h=oe(r,bX),m=Is()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=x({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:f,variant:v}),g=CX(b);return _.jsx(qg.Provider,{value:null,children:_.jsx(xX,x({as:s,ownerState:b,className:he(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?_.jsx(gr,{color:"text.secondary",children:o}):_.jsxs(u.Fragment,{children:[f==="start"?M2||(M2=_.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Rm=SX;function EX(e){return qe("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const PX=["disableAnimation","margin","shrink","variant"],kX=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,f=Ie({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},EX,t);return x({},t,f)},IX=re(uR,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>x({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&x({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&x({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&x({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),$X=u.forwardRef(function(t,n){const r=Je({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i}=r,s=oe(r,PX),a=Is();let c=i;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=_a({props:r,muiFormControl:a,states:["size","variant","required"]}),p=x({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required}),h=kX(p);return _.jsx(IX,x({"data-shrink":c,ownerState:p,ref:n},s,{classes:h}))}),sb=$X;function TX(e){return qe("MuiLinearProgress",e)}Ue("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const MX=["className","color","value","valueBuffer","variant"];let wu=e=>e,_2,R2,O2,L2,A2,F2;const lb=4,_X=Ml(_2||(_2=wu`
179
+ 0% {
180
+ left: -35%;
181
+ right: 100%;
182
+ }
183
+
184
+ 60% {
185
+ left: 100%;
186
+ right: -90%;
187
+ }
188
+
189
+ 100% {
190
+ left: 100%;
191
+ right: -90%;
192
+ }
193
+ `)),RX=Ml(R2||(R2=wu`
194
+ 0% {
195
+ left: -200%;
196
+ right: 100%;
197
+ }
198
+
199
+ 60% {
200
+ left: 107%;
201
+ right: -8%;
202
+ }
203
+
204
+ 100% {
205
+ left: 107%;
206
+ right: -8%;
207
+ }
208
+ `)),OX=Ml(O2||(O2=wu`
209
+ 0% {
210
+ opacity: 1;
211
+ background-position: 0 -23px;
212
+ }
213
+
214
+ 60% {
215
+ opacity: 0;
216
+ background-position: 0 -23px;
217
+ }
218
+
219
+ 100% {
220
+ opacity: 1;
221
+ background-position: -200px -23px;
222
+ }
223
+ `)),LX=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${fe(r)}`,n],dashed:["dashed",`dashedColor${fe(r)}`],bar1:["bar",`barColor${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${fe(r)}`,n==="buffer"&&`color${fe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ie(o,TX,t)},vC=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?xs(e.palette[t].main,.62):Cs(e.palette[t].main,.5),AX=re("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${fe(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>x({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:vC(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)"})),FX=re("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${fe(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=vC(t,e.color);return x({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},yu(L2||(L2=wu`
224
+ animation: ${0} 3s infinite linear;
225
+ `),OX)),NX=re("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>x({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${lb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${lb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yu(A2||(A2=wu`
226
+ width: auto;
227
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
228
+ `),_X)),DX=re("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${fe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>x({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:vC(t,e.color),transition:`transform .${lb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yu(F2||(F2=wu`
229
+ width: auto;
230
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
231
+ `),RX)),BX=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,f=oe(r,MX),p=x({},r,{color:i,variant:c}),h=LX(p),m=Yr(),v={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),b.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),b.bar2.transform=`translateX(${g}%)`}return _.jsxs(AX,x({className:he(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},f,{children:[c==="buffer"?_.jsx(FX,{className:h.dashed,ownerState:p}):null,_.jsx(NX,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:_.jsx(DX,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),zX=BX;function HX(e){return qe("MuiLink",e)}const jX=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),VX=jX,vR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},UX=e=>vR[e]||e,WX=({theme:e,ownerState:t})=>{const n=UX(t.color),r=hf(e,`palette.${n}`,!1)||t.color,o=hf(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ot(r,.4)},GX=WX,KX=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],qX=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${fe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ie(i,HX,t)},YX=re(gr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>x({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&x({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:GX({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"},[`&.${VX.focusVisible}`]:{outline:"auto"}})),XX=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:f,underline:p="always",variant:h="inherit",sx:m}=r,v=oe(r,KX),{isFocusVisibleRef:b,onBlur:g,onFocus:S,ref:w}=Kw(),[P,C]=u.useState(!1),E=xt(n,w),I=R=>{g(R),b.current===!1&&C(!1),a&&a(R)},T=R=>{S(R),b.current===!0&&C(!0),c&&c(R)},k=x({},r,{color:i,component:s,focusVisible:P,underline:p,variant:h}),$=qX(k);return _.jsx(YX,x({color:i,className:he($.root,o),classes:f,component:s,onBlur:I,onFocus:T,ref:E,ownerState:k,variant:h,sx:[...Object.keys(vR).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),bf=XX,QX=u.createContext({}),ui=QX;function JX(e){return qe("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const ZX=["children","className","component","dense","disablePadding","subheader"],eQ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ie({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},JX,t)},tQ=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>x({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),nQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:f}=r,p=oe(r,ZX),h=u.useMemo(()=>({dense:a}),[a]),m=x({},r,{component:s,dense:a,disablePadding:c}),v=eQ(m);return _.jsx(ui.Provider,{value:h,children:_.jsxs(tQ,x({as:s,className:he(v.root,i),ref:n,ownerState:m},p,{children:[f,o]}))})}),tv=nQ;function rQ(e){return qe("MuiListItem",e)}const oQ=Ue("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),hc=oQ;function iQ(e){return qe("MuiListItemButton",e)}const sQ=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mc=sQ,lQ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],aQ=(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]},cQ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,f=Ie({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},iQ,n);return x({},n,f)},uQ=re(Ui,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:aQ})(({theme:e,ownerState:t})=>x({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),dQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:f=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1}=r,v=oe(r,lQ),b=u.useContext(ui),g={dense:c||b.dense||!1,alignItems:o,disableGutters:f},S=u.useRef(null);Rn(()=>{i&&S.current&&S.current.focus()},[i]);const w=x({},r,{alignItems:o,dense:g.dense,disableGutters:f,divider:p,selected:m}),P=cQ(w),C=xt(S,n);return _.jsx(ui.Provider,{value:g,children:_.jsx(uQ,x({ref:C,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"a":s,focusVisibleClassName:he(P.focusVisible,h),ownerState:w},v,{classes:P,children:a}))})}),fQ=dQ;function pQ(e){return qe("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const hQ=["className"],mQ=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},pQ,n)},gQ=re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>x({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),yR=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=oe(r,hQ),s=u.useContext(ui),a=x({},r,{disableGutters:s.disableGutters}),c=mQ(a);return _.jsx(gQ,x({className:he(c.root,o),ownerState:a,ref:n},i))});yR.muiName="ListItemSecondaryAction";const vQ=yR,yQ=["className"],bQ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],wQ=(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]},CQ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:f,selected:p}=e;return Ie({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction",p&&"selected"],container:["container"]},rQ,r)},xQ=re("div",{name:"MuiListItem",slot:"Root",overridesResolver:wQ})(({theme:e,ownerState:t})=>x({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&x({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${mc.root}`]:{paddingRight:48}},{[`&.${hc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hc.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"}},[`&.${hc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),SQ=re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),EQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:f,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:v}={},dense:b=!1,disabled:g=!1,disableGutters:S=!1,disablePadding:w=!1,divider:P=!1,focusVisibleClassName:C,secondaryAction:E,selected:I=!1}=r,T=oe(r.ContainerProps,yQ),k=oe(r,bQ),$=u.useContext(ui),R={dense:b||$.dense||!1,alignItems:o,disableGutters:S},O=u.useRef(null);Rn(()=>{i&&O.current&&O.current.focus()},[i]);const N=u.Children.toArray(a),U=N.length&&qh(N[N.length-1],["ListItemSecondaryAction"]),j=x({},r,{alignItems:o,autoFocus:i,button:s,dense:R.dense,disabled:g,disableGutters:S,disablePadding:w,divider:P,hasSecondaryAction:U,selected:I}),L=CQ(j),D=xt(O,n),B=p.Root||xQ,W=h.root||{},A=x({className:he(L.root,W.className,c),disabled:g},k);let z=f||"li";return s&&(A.component=f||"div",A.focusVisibleClassName=he(hc.focusVisible,C),z=Ui),U?(z=!A.component&&!f?"div":z,m==="li"&&(z==="li"?z="div":A.component==="li"&&(A.component="div")),_.jsx(ui.Provider,{value:R,children:_.jsxs(SQ,x({as:m,className:he(L.container,v),ref:D,ownerState:j},T,{children:[_.jsx(B,x({},W,!xl(B)&&{as:z,ownerState:x({},j,W.ownerState)},A,{children:N})),N.pop()]}))})):_.jsx(ui.Provider,{value:R,children:_.jsxs(B,x({},W,{as:z,ref:D,ownerState:j},!xl(B)&&{ownerState:x({},j,W.ownerState)},A,{children:[N,E&&_.jsx(vQ,{children:E})]}))})}),bR=EQ;function PQ(e){return qe("MuiListItemIcon",e)}const kQ=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),N2=kQ,IQ=["className"],$Q=e=>{const{alignItems:t,classes:n}=e;return Ie({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},PQ,n)},TQ=re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>x({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),MQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=oe(r,IQ),s=u.useContext(ui),a=x({},r,{alignItems:s.alignItems}),c=$Q(a);return _.jsx(TQ,x({className:he(c.root,o),ownerState:a,ref:n},i))}),wR=MQ;function _Q(e){return qe("MuiListItemText",e)}const RQ=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Om=RQ,OQ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],LQ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},_Q,t)},AQ=re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Om.primary}`]:t.primary},{[`& .${Om.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>x({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),FQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:f,secondary:p,secondaryTypographyProps:h}=r,m=oe(r,OQ),{dense:v}=u.useContext(ui);let b=c!=null?c:o,g=p;const S=x({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),w=LQ(S);return b!=null&&b.type!==gr&&!s&&(b=_.jsx(gr,x({variant:v?"body2":"body1",className:w.primary,component:"span",display:"block"},f,{children:b}))),g!=null&&g.type!==gr&&!s&&(g=_.jsx(gr,x({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:g}))),_.jsxs(AQ,x({className:he(w.root,i),ownerState:S,ref:n},m,{children:[b,g]}))}),nv=FQ,NQ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function I0(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function D2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function CR(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 ld(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!CR(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const DQ=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=oe(t,NQ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,E)=>{const I=!v.current.style.width;if(C.clientHeight<v.current.clientHeight&&I){const T=`${i_(Cn(C))}px`;v.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=T,v.current.style.width=`calc(100% + ${T})`}return v.current}}),[]);const g=C=>{const E=v.current,I=C.key,T=Cn(E).activeElement;if(I==="ArrowDown")C.preventDefault(),ld(E,T,f,c,I0);else if(I==="ArrowUp")C.preventDefault(),ld(E,T,f,c,D2);else if(I==="Home")C.preventDefault(),ld(E,null,f,c,I0);else if(I==="End")C.preventDefault(),ld(E,null,f,c,D2);else if(I.length===1){const k=b.current,$=I.toLowerCase(),R=performance.now();k.keys.length>0&&(R-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&$!==k.keys[0]&&(k.repeating=!1)),k.lastTime=R,k.keys.push($);const O=T&&!k.repeating&&CR(T,k);k.previousKeyMatched&&(O||ld(E,T,!1,c,I0,k))?C.preventDefault():k.previousKeyMatched=!1}p&&p(C)},S=xt(v,n);let w=-1;u.Children.forEach(s,(C,E)=>{u.isValidElement(C)&&(C.props.disabled||(h==="selectedMenu"&&C.props.selected||w===-1)&&(w=E))});const P=u.Children.map(s,(C,E)=>{if(E===w){const I={};return i&&(I.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),u.cloneElement(C,I)}return C});return _.jsx(tv,x({role:"menu",ref:S,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:P}))}),yC=DQ;function BQ(e){return qe("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const zQ=["onEntering"],HQ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function B2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function z2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function H2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $0(e){return typeof e=="function"?e():e}const jQ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},BQ,t)},VQ=re(gC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UQ=re(qo,{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}),WQ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:b,PaperProps:g={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=_m,transitionDuration:P="auto",TransitionProps:{onEntering:C}={}}=r,E=oe(r.TransitionProps,zQ),I=oe(r,HQ),T=u.useRef(),k=xt(T,g.ref),$=x({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:S,TransitionComponent:w,transitionDuration:P,TransitionProps:E}),R=jQ($),O=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=$0(i),z=(W&&W.nodeType===1?W:Cn(T.current).body).getBoundingClientRect();return{top:z.top+B2(z,s.vertical),left:z.left+z2(z,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),N=u.useCallback(W=>({vertical:B2(W,S.vertical),horizontal:z2(W,S.horizontal)}),[S.horizontal,S.vertical]),U=u.useCallback(W=>{const A={width:W.offsetWidth,height:W.offsetHeight},z=N(A);if(c==="none")return{top:null,left:null,transformOrigin:H2(z)};const G=O();let q=G.top-z.vertical,X=G.left-z.horizontal;const ie=q+A.height,ee=X+A.width,se=uo($0(i)),ae=se.innerHeight-v,we=se.innerWidth-v;if(q<v){const de=q-v;q-=de,z.vertical+=de}else if(ie>ae){const de=ie-ae;q-=de,z.vertical+=de}if(X<v){const de=X-v;X-=de,z.horizontal+=de}else if(ee>we){const de=ee-we;X-=de,z.horizontal+=de}return{top:`${Math.round(q)}px`,left:`${Math.round(X)}px`,transformOrigin:H2(z)}},[i,c,O,N,v]),j=u.useCallback(()=>{const W=T.current;if(!W)return;const A=U(W);A.top!==null&&(W.style.top=A.top),A.left!==null&&(W.style.left=A.left),W.style.transformOrigin=A.transformOrigin},[U]),L=(W,A)=>{C&&C(W,A),j()};u.useEffect(()=>{b&&j()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),u.useEffect(()=>{if(!b)return;const W=Cl(()=>{j()}),A=uo(i);return A.addEventListener("resize",W),()=>{W.clear(),A.removeEventListener("resize",W)}},[i,b,j]);let D=P;P==="auto"&&!w.muiSupportAuto&&(D=void 0);const B=h||(i?Cn($0(i)).body:void 0);return _.jsx(VQ,x({BackdropProps:{invisible:!0},className:he(R.root,p),container:B,open:b,ref:n,ownerState:$},I,{children:_.jsx(w,x({appear:!0,in:b,onEntering:L,timeout:D},E,{children:_.jsx(UQ,x({elevation:m},g,{ref:k,className:he(R.paper,g.className),children:f}))}))}))}),GQ=WQ;function KQ(e){return qe("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const qQ=["onEntering"],YQ=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],XQ={vertical:"top",horizontal:"right"},QQ={vertical:"top",horizontal:"left"},JQ=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},KQ,t)},ZQ=re(GQ,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eJ=re(qo,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tJ=re(yC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nJ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:b="selectedMenu"}=r,g=oe(r.TransitionProps,qQ),S=oe(r,YQ),w=Yr(),P=w.direction==="rtl",C=x({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),E=JQ(C),I=o&&!s&&f,T=u.useRef(null),k=(O,N)=>{T.current&&T.current.adjustStyleForScrollbar(O,w),v&&v(O,N)},$=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let R=-1;return u.Children.map(i,(O,N)=>{u.isValidElement(O)&&(O.props.disabled||(b==="selectedMenu"&&O.props.selected||R===-1)&&(R=N))}),_.jsx(ZQ,x({classes:h,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?XQ:QQ,PaperProps:x({component:eJ},p,{classes:x({},p.classes,{root:E.paper})}),className:E.root,open:f,ref:n,transitionDuration:m,TransitionProps:x({onEntering:k},g),ownerState:C},S,{children:_.jsx(tJ,x({onKeyDown:$,actions:T,autoFocus:o&&(R===-1||s),autoFocusItem:I,variant:b},a,{className:he(E.list,a.className),children:i}))}))}),xR=nJ;function rJ(e){return qe("MuiMenuItem",e)}const oJ=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ad=oJ,iJ=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],sJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},lJ=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Ie({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},rJ,s);return x({},s,c)},aJ=re(Ui,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:sJ})(({theme:e,ownerState:t})=>x({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ad.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ad.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ad.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ad.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ad.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${E2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${E2.inset}`]:{marginLeft:52},[`& .${Om.root}`]:{marginTop:0,marginBottom:0},[`& .${Om.inset}`]:{paddingLeft:36},[`& .${N2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&x({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${N2.root} svg`]:{fontSize:"1.25rem"}}))),cJ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:h}=r,m=oe(r,iJ),v=u.useContext(ui),b={dense:s||v.dense||!1,disableGutters:c},g=u.useRef(null);Rn(()=>{o&&g.current&&g.current.focus()},[o]);const S=x({},r,{dense:b.dense,divider:a,disableGutters:c}),w=lJ(r),P=xt(g,n);let C;return r.disabled||(C=h!==void 0?h:-1),_.jsx(ui.Provider,{value:b,children:_.jsx(aJ,x({ref:P,role:p,tabIndex:C,component:i,focusVisibleClassName:he(w.focusVisible,f)},m,{ownerState:S,classes:w}))})}),sr=cJ;function uJ(e){return qe("MuiNativeSelect",e)}const dJ=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),bC=dJ,fJ=["className","disabled","IconComponent","inputRef","variant"],pJ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"]};return Ie(s,uJ,t)},SR=({ownerState:e,theme:t})=>x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${bC.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),hJ=re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${bC.multiple}`]:t.multiple}]}})(SR),ER=({ownerState:e,theme:t})=>x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${bC.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),mJ=re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(ER),gJ=u.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:s,variant:a="standard"}=t,c=oe(t,fJ),f=x({},t,{disabled:o,variant:a}),p=pJ(f);return _.jsxs(u.Fragment,{children:[_.jsx(hJ,x({ownerState:f,className:he(p.select,r),disabled:o,ref:s||n},c)),t.multiple?null:_.jsx(mJ,{as:i,ownerState:f,className:p.icon})]})}),vJ=gJ;var j2;const yJ=["children","classes","className","label","notched"],bJ=re("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),wJ=re("legend")(({ownerState:e,theme:t})=>x({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&x({display:"block",width:"auto",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 CJ(e){const{className:t,label:n,notched:r}=e,o=oe(e,yJ),i=n!=null&&n!=="",s=x({},e,{notched:r,withLabel:i});return _.jsx(bJ,x({"aria-hidden":!0,className:t,ownerState:s},o,{children:_.jsx(wJ,{ownerState:s,children:i?_.jsx("span",{children:n}):j2||(j2=_.jsx("span",{className:"notranslate",children:"​"}))})}))}const xJ=["components","fullWidth","inputComponent","label","multiline","notched","type"],SJ=e=>{const{classes:t}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},XG,t);return x({},t,r)},EJ=re(Qg,{shouldForwardProp:e=>vo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yg})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return x({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ei.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ei.focused} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ei.error} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ei.disabled} .${Ei.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&x({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),PJ=re(CJ,{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}}),kJ=re(Jg,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xg})(({theme:e,ownerState:t})=>x({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),PR=u.forwardRef(function(t,n){var r;const o=Je({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:c,multiline:f=!1,notched:p,type:h="text"}=o,m=oe(o,xJ),v=SJ(o),b=Is(),g=_a({props:o,muiFormControl:b,states:["required"]}),S=x({},o,{color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:b,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:f,size:g.size,type:h});return _.jsx(bu,x({components:x({Root:EJ,Input:kJ},i),renderSuffix:w=>_.jsx(PJ,{ownerState:S,className:v.notchedOutline,label:c!=null&&c!==""&&g.required?r||(r=_.jsxs(u.Fragment,{children:[c," ","*"]})):c,notched:typeof p!="undefined"?p:Boolean(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:a,multiline:f,ref:n,type:h},m,{classes:x({},v,{notchedOutline:null})}))});PR.muiName="Input";const kR=PR,V2=Oe(_.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),U2=Oe(_.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function IJ(e){return qe("MuiSelect",e)}const $J=Ue("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Eh=$J;var W2;const TJ=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],MJ=re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Eh.select}`]:t.select},{[`&.${Eh.select}`]:t[n.variant]},{[`&.${Eh.multiple}`]:t.multiple}]}})(SR,{[`&.${Eh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_J=re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})(ER),RJ=re("input",{shouldForwardProp:e=>rW(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 G2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function OJ(e){return e==null||typeof e=="string"&&!e.trim()}const LJ=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,s={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${fe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(s,IJ,t)},AJ=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:m,IconComponent:v,inputRef:b,labelId:g,MenuProps:S={},multiple:w,name:P,onBlur:C,onChange:E,onClose:I,onFocus:T,onOpen:k,open:$,readOnly:R,renderValue:O,SelectDisplayProps:N={},tabIndex:U,value:j,variant:L="standard"}=t,D=oe(t,TJ),[B,W]=hs({controlled:j,default:p,name:"Select"}),[A,z]=hs({controlled:$,default:f,name:"Select"}),G=u.useRef(null),q=u.useRef(null),[X,ie]=u.useState(null),{current:ee}=u.useRef($!=null),[se,ae]=u.useState(),we=xt(n,b),de=u.useCallback(ne=>{q.current=ne,ne&&ie(ne)},[]);u.useImperativeHandle(we,()=>({focus:()=>{q.current.focus()},node:G.current,value:B}),[B]),u.useEffect(()=>{f&&A&&X&&!ee&&(ae(s?null:X.clientWidth),q.current.focus())},[X,s]),u.useEffect(()=>{i&&q.current.focus()},[i]),u.useEffect(()=>{if(!g)return;const ne=Cn(q.current).getElementById(g);if(ne){const ke=()=>{getSelection().isCollapsed&&q.current.focus()};return ne.addEventListener("click",ke),()=>{ne.removeEventListener("click",ke)}}},[g]);const le=(ne,ke)=>{ne?k&&k(ke):I&&I(ke),ee||(ae(s?null:X.clientWidth),z(ne))},te=ne=>{ne.button===0&&(ne.preventDefault(),q.current.focus(),le(!0,ne))},be=ne=>{le(!1,ne)},$e=u.Children.toArray(a),Se=ne=>{const ke=$e.map(Te=>Te.props.value).indexOf(ne.target.value);if(ke===-1)return;const Ee=$e[ke];W(Ee.props.value),E&&E(ne,Ee)},Ne=ne=>ke=>{let Ee;if(ke.currentTarget.hasAttribute("tabindex")){if(w){Ee=Array.isArray(B)?B.slice():[];const Te=B.indexOf(ne.props.value);Te===-1?Ee.push(ne.props.value):Ee.splice(Te,1)}else Ee=ne.props.value;if(ne.props.onClick&&ne.props.onClick(ke),B!==Ee&&(W(Ee),E)){const Te=ke.nativeEvent||ke,Ke=new Te.constructor(Te.type,Te);Object.defineProperty(Ke,"target",{writable:!0,value:{value:Ee,name:P}}),E(Ke,ne)}w||le(!1,ke)}},Re=ne=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ne.key)!==-1&&(ne.preventDefault(),le(!0,ne))},Fe=X!==null&&A,Le=ne=>{!Fe&&C&&(Object.defineProperty(ne,"target",{writable:!0,value:{value:B,name:P}}),C(ne))};delete D["aria-invalid"];let et,gt;const nt=[];let tt=!1;(mC({value:B})||m)&&(O?et=O(B):tt=!0);const St=$e.map((ne,ke,Ee)=>{if(!u.isValidElement(ne))return null;let Te;if(w){if(!Array.isArray(B))throw new Error(wl(2));Te=B.some(bt=>G2(bt,ne.props.value)),Te&&tt&&nt.push(ne.props.children)}else Te=G2(B,ne.props.value),Te&&tt&&(gt=ne.props.children);if(ne.props.value===void 0)return u.cloneElement(ne,{"aria-readonly":!0,role:"option"});const Ke=()=>{if(B)return Te;const bt=Ee.find(Nt=>Nt.props.value!==void 0&&Nt.props.disabled!==!0);return ne===bt?!0:Te};return u.cloneElement(ne,{"aria-selected":Te?"true":"false",onClick:Ne(ne),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),ne.props.onKeyUp&&ne.props.onKeyUp(bt)},role:"option",selected:Ee[0].props.value===void 0||Ee[0].props.disabled===!0?Ke():Te,value:void 0,"data-value":ne.props.value})});tt&&(w?nt.length===0?et=null:et=nt.reduce((ne,ke,Ee)=>(ne.push(ke),Ee<nt.length-1&&ne.push(", "),ne),[]):et=gt);let dt=se;!s&&ee&&X&&(dt=X.clientWidth);let it;typeof U!="undefined"?it=U:it=h?null:0;const Pt=N.id||(P?`mui-component-select-${P}`:void 0),Qe=x({},t,{variant:L,value:B,open:Fe}),_e=LJ(Qe);return _.jsxs(u.Fragment,{children:[_.jsx(MJ,x({ref:de,tabIndex:it,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,Pt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:h||R?null:te,onBlur:Le,onFocus:T},N,{ownerState:Qe,className:he(N.className,_e.select,c),id:Pt,children:OJ(et)?W2||(W2=_.jsx("span",{className:"notranslate",children:"​"})):et})),_.jsx(RJ,x({value:Array.isArray(B)?B.join(","):B,name:P,ref:G,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:h,className:_e.nativeInput,autoFocus:i,ownerState:Qe},D)),_.jsx(_J,{as:v,className:_e.icon,ownerState:Qe}),_.jsx(xR,x({id:`menu-${P||""}`,anchorEl:X,open:Fe,onClose:be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:x({"aria-labelledby":g,role:"listbox",disableListWrap:!0},S.MenuListProps),PaperProps:x({},S.PaperProps,{style:x({minWidth:dt},S.PaperProps!=null?S.PaperProps.style:null)}),children:St}))]})}),FJ=AJ;var K2,q2;const NJ=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],DJ=e=>{const{classes:t}=e;return t},wC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vo(e)&&e!=="variant",slot:"Root"},BJ=re(gR,wC)(""),zJ=re(kR,wC)(""),HJ=re(aR,wC)(""),IR=u.forwardRef(function(t,n){const r=Je({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:p=q_,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:S,multiple:w=!1,native:P=!1,onClose:C,onOpen:E,open:I,renderValue:T,SelectDisplayProps:k,variant:$="outlined"}=r,R=oe(r,NJ),O=P?vJ:FJ,N=Is(),j=_a({props:r,muiFormControl:N,states:["variant"]}).variant||$,L=m||{standard:K2||(K2=_.jsx(BJ,{})),outlined:_.jsx(zJ,{label:b}),filled:q2||(q2=_.jsx(HJ,{}))}[j],D=x({},r,{variant:j,classes:s}),B=DJ(D),W=xt(n,L.ref);return u.cloneElement(L,x({inputComponent:O,inputProps:x({children:i,IconComponent:p,variant:j,type:void 0,multiple:w},P?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:g,MenuProps:S,onClose:C,onOpen:E,open:I,renderValue:T,SelectDisplayProps:x({id:h},k)},v,{classes:v?Do(B,v.classes):B},m?m.props.inputProps:{})},w&&P&&j==="outlined"?{notched:!0}:{},{ref:W,className:he(L.props.className,a),variant:j},R))});IR.muiName="Select";const CC=IR;function jJ(e){return qe("MuiTooltip",e)}const VJ=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Zs=VJ,UJ=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];function WJ(e){return Math.round(e*1e5)/1e5}const GJ=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${fe(i.split("-")[0])}`],arrow:["arrow"]};return Ie(s,jJ,t)},KJ=re(Ma,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>x({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Zs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Zs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Zs.arrow}`]:x({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Zs.arrow}`]:x({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),qJ=re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>x({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ot(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:`${WJ(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Zs.popper}[data-popper-placement*="left"] &`]:x({transformOrigin:"right center"},t.isRtl?x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):x({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Zs.popper}[data-popper-placement*="right"] &`]:x({transformOrigin:"left center"},t.isRtl?x({marginRight:"14px"},t.touch&&{marginRight:"24px"}):x({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Zs.popper}[data-popper-placement*="top"] &`]:x({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Zs.popper}[data-popper-placement*="bottom"] &`]:x({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),YJ=re("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:ot(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ph=!1,T0=null;function kh(e,t){return n=>{t&&t(n),e(n)}}const XJ=u.forwardRef(function(t,n){var r,o,i,s,a,c;const f=Je({props:t,name:"MuiTooltip"}),{arrow:p=!1,children:h,components:m={},componentsProps:v={},describeChild:b=!1,disableFocusListener:g=!1,disableHoverListener:S=!1,disableInteractive:w=!1,disableTouchListener:P=!1,enterDelay:C=100,enterNextDelay:E=0,enterTouchDelay:I=700,followCursor:T=!1,id:k,leaveDelay:$=0,leaveTouchDelay:R=1500,onClose:O,onOpen:N,open:U,placement:j="bottom",PopperComponent:L,PopperProps:D={},title:B,TransitionComponent:W=_m,TransitionProps:A}=f,z=oe(f,UJ),G=Yr(),q=G.direction==="rtl",[X,ie]=u.useState(),[ee,se]=u.useState(null),ae=u.useRef(!1),we=w||T,de=u.useRef(),le=u.useRef(),te=u.useRef(),be=u.useRef(),[$e,Se]=hs({controlled:U,default:!1,name:"Tooltip",state:"open"});let Ne=$e;const Re=kn(k),Fe=u.useRef(),Le=u.useCallback(()=>{Fe.current!==void 0&&(document.body.style.WebkitUserSelect=Fe.current,Fe.current=void 0),clearTimeout(be.current)},[]);u.useEffect(()=>()=>{clearTimeout(de.current),clearTimeout(le.current),clearTimeout(te.current),Le()},[Le]);const et=ze=>{clearTimeout(T0),Ph=!0,Se(!0),N&&!Ne&&N(ze)},gt=jn(ze=>{clearTimeout(T0),T0=setTimeout(()=>{Ph=!1},800+$),Se(!1),O&&Ne&&O(ze),clearTimeout(de.current),de.current=setTimeout(()=>{ae.current=!1},G.transitions.duration.shortest)}),nt=ze=>{ae.current&&ze.type!=="touchstart"||(X&&X.removeAttribute("title"),clearTimeout(le.current),clearTimeout(te.current),C||Ph&&E?le.current=setTimeout(()=>{et(ze)},Ph?E:C):et(ze))},tt=ze=>{clearTimeout(le.current),clearTimeout(te.current),te.current=setTimeout(()=>{gt(ze)},$)},{isFocusVisibleRef:St,onBlur:dt,onFocus:it,ref:Pt}=Kw(),[,Qe]=u.useState(!1),_e=ze=>{dt(ze),St.current===!1&&(Qe(!1),tt(ze))},ne=ze=>{X||ie(ze.currentTarget),it(ze),St.current===!0&&(Qe(!0),nt(ze))},ke=ze=>{ae.current=!0;const st=h.props;st.onTouchStart&&st.onTouchStart(ze)},Ee=nt,Te=tt,Ke=ze=>{ke(ze),clearTimeout(te.current),clearTimeout(de.current),Le(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Fe.current,nt(ze)},I)},bt=ze=>{h.props.onTouchEnd&&h.props.onTouchEnd(ze),Le(),clearTimeout(te.current),te.current=setTimeout(()=>{gt(ze)},R)};u.useEffect(()=>{if(!Ne)return;function ze(st){(st.key==="Escape"||st.key==="Esc")&&gt(st)}return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[gt,Ne]);const Nt=xt(ie,n),Dt=xt(Pt,Nt),Yn=xt(h.ref,Dt);B===""&&(Ne=!1);const dn=u.useRef({x:0,y:0}),Un=u.useRef(),xr=ze=>{const st=h.props;st.onMouseMove&&st.onMouseMove(ze),dn.current={x:ze.clientX,y:ze.clientY},Un.current&&Un.current.update()},fn={},nn=typeof B=="string";b?(fn.title=!Ne&&nn&&!S?B:null,fn["aria-describedby"]=Ne?Re:null):(fn["aria-label"]=nn?B:null,fn["aria-labelledby"]=Ne&&!nn?Re:null);const Xt=x({},fn,z,h.props,{className:he(z.className,h.props.className),onTouchStart:ke,ref:Yn},T?{onMouseMove:xr}:{}),yo={};P||(Xt.onTouchStart=Ke,Xt.onTouchEnd=bt),S||(Xt.onMouseOver=kh(Ee,Xt.onMouseOver),Xt.onMouseLeave=kh(Te,Xt.onMouseLeave),we||(yo.onMouseOver=Ee,yo.onMouseLeave=Te)),g||(Xt.onFocus=kh(ne,Xt.onFocus),Xt.onBlur=kh(_e,Xt.onBlur),we||(yo.onFocus=ne,yo.onBlur=_e));const vi=u.useMemo(()=>{var ze;let st=[{name:"arrow",enabled:Boolean(ee),options:{element:ee,padding:4}}];return(ze=D.popperOptions)!=null&&ze.modifiers&&(st=st.concat(D.popperOptions.modifiers)),x({},D.popperOptions,{modifiers:st})},[ee,D]),Rr=x({},f,{isRtl:q,arrow:p,disableInteractive:we,placement:j,PopperComponentProp:L,touch:ae.current}),Yo=GJ(Rr),bo=(r=m.Popper)!=null?r:KJ,Mt=(o=(i=m.Transition)!=null?i:W)!=null?o:_m,On=(s=m.Tooltip)!=null?s:qJ,ce=(a=m.Arrow)!=null?a:YJ,me=yd(bo,x({},D,v.popper),Rr),He=yd(Mt,x({},A,v.transition),Rr),ft=yd(On,x({},v.tooltip),Rr),vt=yd(ce,x({},v.arrow),Rr);return _.jsxs(u.Fragment,{children:[u.cloneElement(h,Xt),_.jsx(bo,x({as:L!=null?L:Ma,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:dn.current.y,left:dn.current.x,right:dn.current.x,bottom:dn.current.y,width:0,height:0})}:X,popperRef:Un,open:X?Ne:!1,id:Re,transition:!0},yo,me,{className:he(Yo.popper,D==null?void 0:D.className,(c=v.popper)==null?void 0:c.className),popperOptions:vi,children:({TransitionProps:ze})=>{var st,ve;return _.jsx(Mt,x({timeout:G.transitions.duration.shorter},ze,He,{children:_.jsxs(On,x({},ft,{className:he(Yo.tooltip,(st=v.tooltip)==null?void 0:st.className),children:[B,p?_.jsx(ce,x({},vt,{className:he(Yo.arrow,(ve=v.arrow)==null?void 0:ve.className),ref:se})):null]}))}))}}))]})}),rv=XJ;function QJ(e){return qe("MuiSwitch",e)}const JJ=Ue("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),hr=JJ,ZJ=["className","color","edge","size","sx"],eZ=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${fe(n)}`,`size${fe(r)}`],switchBase:["switchBase",`color${fe(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ie(a,QJ,t);return x({},t,c)},tZ=re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({ownerState:e})=>x({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${hr.thumb}`]:{width:16,height:16},[`& .${hr.switchBase}`]:{padding:4,[`&.${hr.checked}`]:{transform:"translateX(16px)"}}})),nZ=re(nR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${hr.input}`]:t.input},n.color!=="default"&&t[`color${fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${hr.checked}`]:{transform:"translateX(20px)"},[`&.${hr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${hr.checked} + .${hr.track}`]:{opacity:.5},[`&.${hr.disabled} + .${hr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${hr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>x({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?xs(e.palette[t.color].main,.62):Cs(e.palette[t.color].main,.55)}`}},[`&.${hr.checked} + .${hr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),rZ=re("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}`})),oZ=re("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%"})),iZ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,f=oe(r,ZJ),p=x({},r,{color:i,edge:s,size:a}),h=eZ(p),m=_.jsx(oZ,{className:h.thumb,ownerState:p});return _.jsxs(tZ,{className:he(h.root,o),sx:c,ownerState:p,children:[_.jsx(nZ,x({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},f,{classes:x({},h,{root:h.switchBase})})),_.jsx(rZ,{className:h.track,ownerState:p})]})}),$R=iZ;function sZ(e){return qe("MuiTab",e)}const lZ=Ue("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Wl=lZ,aZ=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],cZ=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,f={root:["root",i&&s&&"labelIcon",`textColor${fe(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Ie(f,sZ,t)},uZ=re(Ui,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>x({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Wl.iconWrapper}`]:x({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Wl.selected}`]:{opacity:1},[`&.${Wl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Wl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Wl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Wl.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)})),dZ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:f="top",indicator:p,label:h,onChange:m,onClick:v,onFocus:b,selected:g,selectionFollowsFocus:S,textColor:w="inherit",value:P,wrapped:C=!1}=r,E=oe(r,aZ),I=x({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:f,label:!!h,fullWidth:a,textColor:w,wrapped:C}),T=cZ(I),k=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(T.iconWrapper,c.props.className)}):c,$=O=>{!g&&m&&m(O,P),v&&v(O)},R=O=>{S&&!g&&m&&m(O,P),b&&b(O)};return _.jsxs(uZ,x({focusRipple:!s,className:he(T.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:$,onFocus:R,ownerState:I,tabIndex:g?0:-1},E,{children:[f==="top"||f==="start"?_.jsxs(u.Fragment,{children:[k,h]}):_.jsxs(u.Fragment,{children:[h,k]}),p]}))}),TR=dZ,fZ=u.createContext(),pZ=fZ,hZ=u.createContext(),mZ=hZ;function gZ(e){return qe("MuiTableCell",e)}const vZ=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yZ=vZ,bZ=["align","className","component","padding","scope","size","sortDirection","variant"],wZ=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${fe(r)}`,o!=="normal"&&`padding${fe(o)}`,`size${fe(i)}`]};return Ie(a,gZ,t)},CZ=re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fe(n.size)}`],n.padding!=="normal"&&t[`padding${fe(n.padding)}`],n.align!=="inherit"&&t[`align${fe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>x({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
232
+ ${e.palette.mode==="light"?xs(ot(e.palette.divider,1),.88):Cs(ot(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",[`&.${yZ.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),xZ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:f,sortDirection:p,variant:h}=r,m=oe(r,bZ),v=u.useContext(pZ),b=u.useContext(mZ),g=b&&b.variant==="head";let S;s?S=s:S=g?"th":"td";let w=c;!w&&g&&(w="col");const P=h||b&&b.variant,C=x({},r,{align:o,component:S,padding:a||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:P==="head"&&v&&v.stickyHeader,variant:P}),E=wZ(C);let I=null;return p&&(I=p==="asc"?"ascending":"descending"),_.jsx(CZ,x({as:S,ref:n,className:he(E.root,i),"aria-sort":I,scope:w,ownerState:C},m))}),ab=xZ;function SZ(e){return qe("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const EZ=["className","component","disableGutters","variant"],PZ=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ie({root:["root",!n&&"gutters",r]},SZ,t)},kZ=re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>x({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),IZ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=oe(r,EZ),f=x({},r,{component:i,disableGutters:s,variant:a}),p=PZ(f);return _.jsx(kZ,x({as:i,className:he(p.root,o),ref:n,ownerState:f},c))}),MR=IZ,cb=Oe(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ub=Oe(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Y2,X2,Q2,J2,Z2,eI,tI,nI;const $Z=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],TZ=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:f,showFirstButton:p,showLastButton:h}=t,m=oe(t,$Z),v=Yr(),b=P=>{a(P,0)},g=P=>{a(P,c-1)},S=P=>{a(P,c+1)},w=P=>{a(P,Math.max(0,Math.ceil(o/f)-1))};return _.jsxs("div",x({ref:n},m,{children:[p&&_.jsx(Jn,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?Y2||(Y2=_.jsx(U2,{})):X2||(X2=_.jsx(V2,{}))}),_.jsx(Jn,x({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?Q2||(Q2=_.jsx(ub,{})):J2||(J2=_.jsx(cb,{}))})),_.jsx(Jn,x({onClick:S,disabled:o!==-1?c>=Math.ceil(o/f)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?Z2||(Z2=_.jsx(cb,{})):eI||(eI=_.jsx(ub,{}))})),h&&_.jsx(Jn,{onClick:w,disabled:c>=Math.ceil(o/f)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?tI||(tI=_.jsx(V2,{})):nI||(nI=_.jsx(U2,{}))})]}))}),MZ=TZ;function _Z(e){return qe("MuiTablePagination",e)}const RZ=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ua=RZ;var rI;const OZ=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],LZ=re(ab,{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}})),AZ=re(MR,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>x({[`& .${ua.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},[`& .${ua.actions}`]:{flexShrink:0,marginLeft:20}})),FZ=re("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),NZ=re("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>x({},e.typography.body2,{flexShrink:0})),DZ=re(CC,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>x({[`& .${ua.selectIcon}`]:t.selectIcon,[`& .${ua.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ua.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),BZ=re(sr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),zZ=re("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>x({},e.typography.body2,{flexShrink:0}));function HZ({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function jZ(e){return`Go to ${e} page`}const VZ=e=>{const{classes:t}=e;return Ie({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},_Z,t)},UZ=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=MZ,backIconButtonProps:i,className:s,colSpan:a,component:c=ab,count:f,getItemAriaLabel:p=jZ,labelDisplayedRows:h=HZ,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:S,rowsPerPage:w,rowsPerPageOptions:P=[10,25,50,100],SelectProps:C={},showFirstButton:E=!1,showLastButton:I=!1}=r,T=oe(r,OZ),k=r,$=VZ(k),R=C.native?"option":BZ;let O;(c===ab||c==="td")&&(O=a||1e3);const N=kn(C.id),U=kn(C.labelId),j=()=>f===-1?(S+1)*w:w===-1?f:Math.min(f,(S+1)*w);return _.jsx(LZ,x({colSpan:O,ref:n,as:c,ownerState:k,className:he($.root,s)},T,{children:_.jsxs(AZ,{className:$.toolbar,children:[_.jsx(FZ,{className:$.spacer}),P.length>1&&_.jsx(NZ,{className:$.selectLabel,id:U,children:m}),P.length>1&&_.jsx(DZ,x({variant:"standard",input:rI||(rI=_.jsx(bu,{})),value:w,onChange:g,id:N,labelId:U},C,{classes:x({},C.classes,{root:he($.input,$.selectRoot,(C.classes||{}).root),select:he($.select,(C.classes||{}).select),icon:he($.selectIcon,(C.classes||{}).icon)}),children:P.map(L=>u.createElement(R,x({},!xl(R)&&{ownerState:k},{className:$.menuItem,key:L.label?L.label:L,value:L.value?L.value:L}),L.label?L.label:L))})),_.jsx(zZ,{className:$.displayedRows,children:h({from:f===0?0:S*w+1,to:j(),count:f===-1?-1:f,page:S})}),_.jsx(o,{className:$.actions,backIconButtonProps:i,count:f,nextIconButtonProps:v,onPageChange:b,page:S,rowsPerPage:w,showFirstButton:E,showLastButton:I,getItemAriaLabel:p})]})}))}),WZ=UZ;function GZ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function KZ(e,t,n,r={},o=()=>{}){const{ease:i=GZ,duration:s=300}=r;let a=null;const c=t[e];let f=!1;const p=()=>{f=!0},h=m=>{if(f){o(new Error("Animation cancelled"));return}a===null&&(a=m);const v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const qZ=["onChange"],YZ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function XZ(e){const{onChange:t}=e,n=oe(e,qZ),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return u.useEffect(()=>{const s=Cl(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=uo(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),_.jsx("div",x({style:YZ,ref:o},n))}function QZ(e){return qe("MuiTabScrollButton",e)}const JZ=Ue("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ZZ=JZ;var oI,iI;const eee=["className","direction","orientation","disabled"],tee=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ie({root:["root",n,r&&"disabled"]},QZ,t)},nee=re(Ui,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>x({width:40,flexShrink:0,opacity:.8,[`&.${ZZ.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ree=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,s=oe(r,eee),c=Yr().direction==="rtl",f=x({isRtl:c},r),p=tee(f);return _.jsx(nee,x({component:"div",className:he(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null},s,{children:i==="left"?oI||(oI=_.jsx(cb,{fontSize:"small"})):iI||(iI=_.jsx(ub,{fontSize:"small"}))}))}),oee=ree;function iee(e){return qe("MuiTabs",e)}const see=Ue("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),M0=see,lee=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],sI=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,lI=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ih=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},aee=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Ie({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},iee,c)},cee=re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${M0.scrollButtons}`]:t.scrollButtons},{[`& .${M0.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>x({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${M0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uee=re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>x({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),dee=re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>x({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),fee=re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>x({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),pee=re(XZ,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),aI={},hee=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTabs"}),o=Yr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:f=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:S="horizontal",ScrollButtonComponent:w=oee,scrollButtons:P="auto",selectionFollowsFocus:C,TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:T="primary",value:k,variant:$="standard",visibleScrollbar:R=!1}=r,O=oe(r,lee),N=$==="scrollable",U=S==="vertical",j=U?"scrollTop":"scrollLeft",L=U?"top":"left",D=U?"bottom":"right",B=U?"clientHeight":"clientWidth",W=U?"height":"width",A=x({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:S,vertical:U,scrollButtons:P,textColor:T,variant:$,visibleScrollbar:R,fixed:!N,hideScrollbar:N&&!R,scrollableX:N&&!U,scrollableY:N&&U,centered:f&&!N,scrollButtonsHideMobile:!v}),z=aee(A),[G,q]=u.useState(!1),[X,ie]=u.useState(aI),[ee,se]=u.useState({start:!1,end:!1}),[ae,we]=u.useState({overflow:"hidden",scrollbarWidth:0}),de=new Map,le=u.useRef(null),te=u.useRef(null),be=()=>{const ne=le.current;let ke;if(ne){const Te=ne.getBoundingClientRect();ke={clientWidth:ne.clientWidth,scrollLeft:ne.scrollLeft,scrollTop:ne.scrollTop,scrollLeftNormalized:$k(ne,o.direction),scrollWidth:ne.scrollWidth,top:Te.top,bottom:Te.bottom,left:Te.left,right:Te.right}}let Ee;if(ne&&k!==!1){const Te=te.current.children;if(Te.length>0){const Ke=Te[de.get(k)];Ee=Ke?Ke.getBoundingClientRect():null}}return{tabsMeta:ke,tabMeta:Ee}},$e=jn(()=>{const{tabsMeta:ne,tabMeta:ke}=be();let Ee=0,Te;if(U)Te="top",ke&&ne&&(Ee=ke.top-ne.top+ne.scrollTop);else if(Te=i?"right":"left",ke&&ne){const bt=i?ne.scrollLeftNormalized+ne.clientWidth-ne.scrollWidth:ne.scrollLeft;Ee=(i?-1:1)*(ke[Te]-ne[Te]+bt)}const Ke={[Te]:Ee,[W]:ke?ke[W]:0};if(isNaN(X[Te])||isNaN(X[W]))ie(Ke);else{const bt=Math.abs(X[Te]-Ke[Te]),Nt=Math.abs(X[W]-Ke[W]);(bt>=1||Nt>=1)&&ie(Ke)}}),Se=(ne,{animation:ke=!0}={})=>{ke?KZ(j,le.current,ne,{duration:o.transitions.duration.standard}):le.current[j]=ne},Ne=ne=>{let ke=le.current[j];U?ke+=ne:(ke+=ne*(i?-1:1),ke*=i&&s_()==="reverse"?-1:1),Se(ke)},Re=()=>{const ne=le.current[B];let ke=0;const Ee=Array.from(te.current.children);for(let Te=0;Te<Ee.length;Te+=1){const Ke=Ee[Te];if(ke+Ke[B]>ne){Te===0&&(ke=ne);break}ke+=Ke[B]}return ke},Fe=()=>{Ne(-1*Re())},Le=()=>{Ne(Re())},et=u.useCallback(ne=>{we({overflow:null,scrollbarWidth:ne})},[]),gt=()=>{const ne={};ne.scrollbarSizeListener=N?_.jsx(pee,{onChange:et,className:he(z.scrollableX,z.hideScrollbar)}):null;const ke=ee.start||ee.end,Ee=N&&(P==="auto"&&ke||P===!0);return ne.scrollButtonStart=Ee?_.jsx(w,x({orientation:S,direction:i?"right":"left",onClick:Fe,disabled:!ee.start},I,{className:he(z.scrollButtons,I.className)})):null,ne.scrollButtonEnd=Ee?_.jsx(w,x({orientation:S,direction:i?"left":"right",onClick:Le,disabled:!ee.end},I,{className:he(z.scrollButtons,I.className)})):null,ne},nt=jn(ne=>{const{tabsMeta:ke,tabMeta:Ee}=be();if(!(!Ee||!ke)){if(Ee[L]<ke[L]){const Te=ke[j]+(Ee[L]-ke[L]);Se(Te,{animation:ne})}else if(Ee[D]>ke[D]){const Te=ke[j]+(Ee[D]-ke[D]);Se(Te,{animation:ne})}}}),tt=jn(()=>{if(N&&P!==!1){const{scrollTop:ne,scrollHeight:ke,clientHeight:Ee,scrollWidth:Te,clientWidth:Ke}=le.current;let bt,Nt;if(U)bt=ne>1,Nt=ne<ke-Ee-1;else{const Dt=$k(le.current,o.direction);bt=i?Dt<Te-Ke-1:Dt>1,Nt=i?Dt>1:Dt<Te-Ke-1}(bt!==ee.start||Nt!==ee.end)&&se({start:bt,end:Nt})}});u.useEffect(()=>{const ne=Cl(()=>{le.current&&($e(),tt())}),ke=uo(le.current);ke.addEventListener("resize",ne);let Ee;return typeof ResizeObserver!="undefined"&&(Ee=new ResizeObserver(ne),Array.from(te.current.children).forEach(Te=>{Ee.observe(Te)})),()=>{ne.clear(),ke.removeEventListener("resize",ne),Ee&&Ee.disconnect()}},[$e,tt]);const St=u.useMemo(()=>Cl(()=>{tt()}),[tt]);u.useEffect(()=>()=>{St.clear()},[St]),u.useEffect(()=>{q(!0)},[]),u.useEffect(()=>{$e(),tt()}),u.useEffect(()=>{nt(aI!==X)},[nt,X]),u.useImperativeHandle(c,()=>({updateIndicator:$e,updateScrollButtons:tt}),[$e,tt]);const dt=_.jsx(fee,x({},E,{className:he(z.indicator,E.className),ownerState:A,style:x({},X,E.style)}));let it=0;const Pt=u.Children.map(p,ne=>{if(!u.isValidElement(ne))return null;const ke=ne.props.value===void 0?it:ne.props.value;de.set(ke,it);const Ee=ke===k;return it+=1,u.cloneElement(ne,x({fullWidth:$==="fullWidth",indicator:Ee&&!G&&dt,selected:Ee,selectionFollowsFocus:C,onChange:g,textColor:T,value:ke},it===1&&k===!1&&!ne.props.tabIndex?{tabIndex:0}:{}))}),Qe=ne=>{const ke=te.current,Ee=Cn(ke).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Ke=S==="horizontal"?"ArrowLeft":"ArrowUp",bt=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&i&&(Ke="ArrowRight",bt="ArrowLeft"),ne.key){case Ke:ne.preventDefault(),Ih(ke,Ee,lI);break;case bt:ne.preventDefault(),Ih(ke,Ee,sI);break;case"Home":ne.preventDefault(),Ih(ke,null,sI);break;case"End":ne.preventDefault(),Ih(ke,null,lI);break}},_e=gt();return _.jsxs(cee,x({className:he(z.root,h),ownerState:A,ref:n,as:m},O,{children:[_e.scrollButtonStart,_e.scrollbarSizeListener,_.jsxs(uee,{className:z.scroller,ownerState:A,style:{overflow:ae.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:R?void 0:-ae.scrollbarWidth},ref:le,onScroll:St,children:[_.jsx(dee,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:z.flexContainer,ownerState:A,onKeyDown:Qe,ref:te,role:"tablist",children:Pt}),G&&dt]}),_e.scrollButtonEnd]}))}),_R=hee;function mee(e){return qe("MuiTextField",e)}Ue("MuiTextField",["root"]);const gee=["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"],vee={standard:gR,filled:aR,outlined:kR},yee=e=>{const{classes:t}=e;return Ie({root:["root"]},mee,t)},bee=re(Ra,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wee=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:f,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:v=!1,helperText:b,id:g,InputLabelProps:S,inputProps:w,InputProps:P,inputRef:C,label:E,maxRows:I,minRows:T,multiline:k=!1,name:$,onBlur:R,onChange:O,onFocus:N,placeholder:U,required:j=!1,rows:L,select:D=!1,SelectProps:B,type:W,value:A,variant:z="outlined"}=r,G=oe(r,gee),q=x({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:k,required:j,select:D,variant:z}),X=yee(q),ie={};z==="outlined"&&(S&&typeof S.shrink!="undefined"&&(ie.notched=S.shrink),ie.label=E),D&&((!B||!B.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const ee=kn(g),se=b&&ee?`${ee}-helper-text`:void 0,ae=E&&ee?`${ee}-label`:void 0,we=vee[z],de=_.jsx(we,x({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:f,fullWidth:v,multiline:k,name:$,rows:L,maxRows:I,minRows:T,type:W,value:A,id:ee,inputRef:C,onBlur:R,onChange:O,onFocus:N,placeholder:U,inputProps:w},ie,P));return _.jsxs(bee,x({className:he(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:j,color:c,variant:z,ownerState:q},G,{children:[E!=null&&E!==""&&_.jsx(sb,x({htmlFor:ee,id:ae},S,{children:E})),D?_.jsx(CC,x({"aria-describedby":se,id:ee,labelId:ae,value:A,input:de},B,{children:s})):de,b&&_.jsx(ev,x({id:se},m,{children:b}))]}))}),Kf=wee,Cee=Oe(_.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree"),xC=Oe(_.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),xee=Oe(_.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),See=Oe(_.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"),Eee=Oe(_.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Pee=Oe(_.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"),kee=Oe(_.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),ov=Oe(_.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"),Ll=Oe(_.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"),Iee=Oe(_.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),$ee=Oe(_.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"),Tee=Oe(_.jsx("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject"),SC=Oe(_.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"),Mee=Oe(_.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),_ee=Oe(_.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"),Ree=Oe(_.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"),Oee=Oe(_.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"),Lee=Oe(_.jsx("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward"),Aee=Oe(_.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),Fee=Oe(_.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"),Nee=Oe(_.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"),Dee=Oe(_.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),wf=Oe(_.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"),Bee=Oe(_.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"),zee=Oe(_.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"),RR=Oe(_.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"),Hee=Oe(_.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"),jee=Oe([_.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),_.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"),Vee=Oe(_.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Uee=Oe(_.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"),Wee=Oe(_.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"),Gee=Oe(_.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"),Kee=Oe(_.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"),qee=Oe(_.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"),EC=Oe(_.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"),Yee=Oe(_.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"),iv=Oe(_.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"),Xee=Oe(_.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"),Qee=Oe(_.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"),Jee=Oe(_.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"),OR=Oe(_.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"),cI=Oe(_.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"),Zee=Oe([_.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"),_.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"),ete=Oe(_.jsx("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade"),tte=Oe(_.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),LR=Oe(_.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),nte=Oe(_.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");var ds={},rte={get exports(){return ds},set exports(e){ds=e}};/**
233
+ * @license
234
+ * Lodash <https://lodash.com/>
235
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
236
+ * Released under MIT license <https://lodash.com/license>
237
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
238
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
239
+ */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,g=2,S=1,w=2,P=4,C=8,E=16,I=32,T=64,k=128,$=256,R=512,O=30,N="...",U=800,j=16,L=1,D=2,B=3,W=1/0,A=9007199254740991,z=17976931348623157e292,G=0/0,q=4294967295,X=q-1,ie=q>>>1,ee=[["ary",k],["bind",S],["bindKey",w],["curry",C],["curryRight",E],["flip",R],["partial",I],["partialRight",T],["rearg",$]],se="[object Arguments]",ae="[object Array]",we="[object AsyncFunction]",de="[object Boolean]",le="[object Date]",te="[object DOMException]",be="[object Error]",$e="[object Function]",Se="[object GeneratorFunction]",Ne="[object Map]",Re="[object Number]",Fe="[object Null]",Le="[object Object]",et="[object Promise]",gt="[object Proxy]",nt="[object RegExp]",tt="[object Set]",St="[object String]",dt="[object Symbol]",it="[object Undefined]",Pt="[object WeakMap]",Qe="[object WeakSet]",_e="[object ArrayBuffer]",ne="[object DataView]",ke="[object Float32Array]",Ee="[object Float64Array]",Te="[object Int8Array]",Ke="[object Int16Array]",bt="[object Int32Array]",Nt="[object Uint8Array]",Dt="[object Uint8ClampedArray]",Yn="[object Uint16Array]",dn="[object Uint32Array]",Un=/\b__p \+= '';/g,xr=/\b(__p \+=) '' \+/g,fn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nn=/&(?:amp|lt|gt|quot|#39);/g,Xt=/[&<>"']/g,yo=RegExp(nn.source),vi=RegExp(Xt.source),Rr=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,bo=/<%=([\s\S]+?)%>/g,Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,me=/[\\^$.*+?()[\]{}|]/g,He=RegExp(me.source),ft=/^\s+/,vt=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ve=/,? & /,ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rt=/[()=,{}\[\]\/\s]/,at=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,Or=/^0b[01]+$/i,Ba=/^\[object .+?Constructor\]$/,yA=/^0o[0-7]+$/i,bA=/^(?:0|[1-9]\d*)$/,wA=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,up=/($^)/,CA=/['\n\r\u2028\u2029\\]/g,dp="\\ud800-\\udfff",xA="\\u0300-\\u036f",SA="\\ufe20-\\ufe2f",EA="\\u20d0-\\u20ff",Px=xA+SA+EA,kx="\\u2700-\\u27bf",Ix="a-z\\xdf-\\xf6\\xf8-\\xff",PA="\\xac\\xb1\\xd7\\xf7",kA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IA="\\u2000-\\u206f",$A=" \\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",$x="A-Z\\xc0-\\xd6\\xd8-\\xde",Tx="\\ufe0e\\ufe0f",Mx=PA+kA+IA+$A,Lv="['’]",TA="["+dp+"]",_x="["+Mx+"]",fp="["+Px+"]",Rx="\\d+",MA="["+kx+"]",Ox="["+Ix+"]",Lx="[^"+dp+Mx+Rx+kx+Ix+$x+"]",Av="\\ud83c[\\udffb-\\udfff]",_A="(?:"+fp+"|"+Av+")",Ax="[^"+dp+"]",Fv="(?:\\ud83c[\\udde6-\\uddff]){2}",Nv="[\\ud800-\\udbff][\\udc00-\\udfff]",za="["+$x+"]",Fx="\\u200d",Nx="(?:"+Ox+"|"+Lx+")",RA="(?:"+za+"|"+Lx+")",Dx="(?:"+Lv+"(?:d|ll|m|re|s|t|ve))?",Bx="(?:"+Lv+"(?:D|LL|M|RE|S|T|VE))?",zx=_A+"?",Hx="["+Tx+"]?",OA="(?:"+Fx+"(?:"+[Ax,Fv,Nv].join("|")+")"+Hx+zx+")*",LA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",AA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jx=Hx+zx+OA,FA="(?:"+[MA,Fv,Nv].join("|")+")"+jx,NA="(?:"+[Ax+fp+"?",fp,Fv,Nv,TA].join("|")+")",DA=RegExp(Lv,"g"),BA=RegExp(fp,"g"),Dv=RegExp(Av+"(?="+Av+")|"+NA+jx,"g"),zA=RegExp([za+"?"+Ox+"+"+Dx+"(?="+[_x,za,"$"].join("|")+")",RA+"+"+Bx+"(?="+[_x,za+Nx,"$"].join("|")+")",za+"?"+Nx+"+"+Dx,za+"+"+Bx,AA,LA,Rx,FA].join("|"),"g"),HA=RegExp("["+Fx+dp+Px+Tx+"]"),jA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VA=["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"],UA=-1,pn={};pn[ke]=pn[Ee]=pn[Te]=pn[Ke]=pn[bt]=pn[Nt]=pn[Dt]=pn[Yn]=pn[dn]=!0,pn[se]=pn[ae]=pn[_e]=pn[de]=pn[ne]=pn[le]=pn[be]=pn[$e]=pn[Ne]=pn[Re]=pn[Le]=pn[nt]=pn[tt]=pn[St]=pn[Pt]=!1;var ln={};ln[se]=ln[ae]=ln[_e]=ln[ne]=ln[de]=ln[le]=ln[ke]=ln[Ee]=ln[Te]=ln[Ke]=ln[bt]=ln[Ne]=ln[Re]=ln[Le]=ln[nt]=ln[tt]=ln[St]=ln[dt]=ln[Nt]=ln[Dt]=ln[Yn]=ln[dn]=!0,ln[be]=ln[$e]=ln[Pt]=!1;var WA={À:"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"},GA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},KA={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},YA=parseFloat,XA=parseInt,Vx=typeof io=="object"&&io&&io.Object===Object&&io,QA=typeof self=="object"&&self&&self.Object===Object&&self,nr=Vx||QA||Function("return this")(),Bv=t&&!t.nodeType&&t,Fl=Bv&&!0&&e&&!e.nodeType&&e,Ux=Fl&&Fl.exports===Bv,zv=Ux&&Vx.process,wo=function(){try{var Q=Fl&&Fl.require&&Fl.require("util").types;return Q||zv&&zv.binding&&zv.binding("util")}catch(ye){}}(),Wx=wo&&wo.isArrayBuffer,Gx=wo&&wo.isDate,Kx=wo&&wo.isMap,qx=wo&&wo.isRegExp,Yx=wo&&wo.isSet,Xx=wo&&wo.isTypedArray;function Xr(Q,ye,pe){switch(pe.length){case 0:return Q.call(ye);case 1:return Q.call(ye,pe[0]);case 2:return Q.call(ye,pe[0],pe[1]);case 3:return Q.call(ye,pe[0],pe[1],pe[2])}return Q.apply(ye,pe)}function JA(Q,ye,pe,je){for(var yt=-1,Wt=Q==null?0:Q.length;++yt<Wt;){var Wn=Q[yt];ye(je,Wn,pe(Wn),Q)}return je}function Co(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je&&ye(Q[pe],pe,Q)!==!1;);return Q}function ZA(Q,ye){for(var pe=Q==null?0:Q.length;pe--&&ye(Q[pe],pe,Q)!==!1;);return Q}function Qx(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(!ye(Q[pe],pe,Q))return!1;return!0}function Ts(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,yt=0,Wt=[];++pe<je;){var Wn=Q[pe];ye(Wn,pe,Q)&&(Wt[yt++]=Wn)}return Wt}function pp(Q,ye){var pe=Q==null?0:Q.length;return!!pe&&Ha(Q,ye,0)>-1}function Hv(Q,ye,pe){for(var je=-1,yt=Q==null?0:Q.length;++je<yt;)if(pe(ye,Q[je]))return!0;return!1}function vn(Q,ye){for(var pe=-1,je=Q==null?0:Q.length,yt=Array(je);++pe<je;)yt[pe]=ye(Q[pe],pe,Q);return yt}function Ms(Q,ye){for(var pe=-1,je=ye.length,yt=Q.length;++pe<je;)Q[yt+pe]=ye[pe];return Q}function jv(Q,ye,pe,je){var yt=-1,Wt=Q==null?0:Q.length;for(je&&Wt&&(pe=Q[++yt]);++yt<Wt;)pe=ye(pe,Q[yt],yt,Q);return pe}function eF(Q,ye,pe,je){var yt=Q==null?0:Q.length;for(je&&yt&&(pe=Q[--yt]);yt--;)pe=ye(pe,Q[yt],yt,Q);return pe}function Vv(Q,ye){for(var pe=-1,je=Q==null?0:Q.length;++pe<je;)if(ye(Q[pe],pe,Q))return!0;return!1}var tF=Uv("length");function nF(Q){return Q.split("")}function rF(Q){return Q.match(ge)||[]}function Jx(Q,ye,pe){var je;return pe(Q,function(yt,Wt,Wn){if(ye(yt,Wt,Wn))return je=Wt,!1}),je}function hp(Q,ye,pe,je){for(var yt=Q.length,Wt=pe+(je?1:-1);je?Wt--:++Wt<yt;)if(ye(Q[Wt],Wt,Q))return Wt;return-1}function Ha(Q,ye,pe){return ye===ye?mF(Q,ye,pe):hp(Q,Zx,pe)}function oF(Q,ye,pe,je){for(var yt=pe-1,Wt=Q.length;++yt<Wt;)if(je(Q[yt],ye))return yt;return-1}function Zx(Q){return Q!==Q}function eS(Q,ye){var pe=Q==null?0:Q.length;return pe?Gv(Q,ye)/pe:G}function Uv(Q){return function(ye){return ye==null?n:ye[Q]}}function Wv(Q){return function(ye){return Q==null?n:Q[ye]}}function tS(Q,ye,pe,je,yt){return yt(Q,function(Wt,Wn,on){pe=je?(je=!1,Wt):ye(pe,Wt,Wn,on)}),pe}function iF(Q,ye){var pe=Q.length;for(Q.sort(ye);pe--;)Q[pe]=Q[pe].value;return Q}function Gv(Q,ye){for(var pe,je=-1,yt=Q.length;++je<yt;){var Wt=ye(Q[je]);Wt!==n&&(pe=pe===n?Wt:pe+Wt)}return pe}function Kv(Q,ye){for(var pe=-1,je=Array(Q);++pe<Q;)je[pe]=ye(pe);return je}function sF(Q,ye){return vn(ye,function(pe){return[pe,Q[pe]]})}function nS(Q){return Q&&Q.slice(0,sS(Q)+1).replace(ft,"")}function Qr(Q){return function(ye){return Q(ye)}}function qv(Q,ye){return vn(ye,function(pe){return Q[pe]})}function Ou(Q,ye){return Q.has(ye)}function rS(Q,ye){for(var pe=-1,je=Q.length;++pe<je&&Ha(ye,Q[pe],0)>-1;);return pe}function oS(Q,ye){for(var pe=Q.length;pe--&&Ha(ye,Q[pe],0)>-1;);return pe}function lF(Q,ye){for(var pe=Q.length,je=0;pe--;)Q[pe]===ye&&++je;return je}var aF=Wv(WA),cF=Wv(GA);function uF(Q){return"\\"+qA[Q]}function dF(Q,ye){return Q==null?n:Q[ye]}function ja(Q){return HA.test(Q)}function fF(Q){return jA.test(Q)}function pF(Q){for(var ye,pe=[];!(ye=Q.next()).done;)pe.push(ye.value);return pe}function Yv(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je,yt){pe[++ye]=[yt,je]}),pe}function iS(Q,ye){return function(pe){return Q(ye(pe))}}function _s(Q,ye){for(var pe=-1,je=Q.length,yt=0,Wt=[];++pe<je;){var Wn=Q[pe];(Wn===ye||Wn===p)&&(Q[pe]=p,Wt[yt++]=pe)}return Wt}function mp(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=je}),pe}function hF(Q){var ye=-1,pe=Array(Q.size);return Q.forEach(function(je){pe[++ye]=[je,je]}),pe}function mF(Q,ye,pe){for(var je=pe-1,yt=Q.length;++je<yt;)if(Q[je]===ye)return je;return-1}function gF(Q,ye,pe){for(var je=pe+1;je--;)if(Q[je]===ye)return je;return je}function Va(Q){return ja(Q)?yF(Q):tF(Q)}function Xo(Q){return ja(Q)?bF(Q):nF(Q)}function sS(Q){for(var ye=Q.length;ye--&&vt.test(Q.charAt(ye)););return ye}var vF=Wv(KA);function yF(Q){for(var ye=Dv.lastIndex=0;Dv.test(Q);)++ye;return ye}function bF(Q){return Q.match(Dv)||[]}function wF(Q){return Q.match(zA)||[]}var CF=function Q(ye){ye=ye==null?nr:Ua.defaults(nr.Object(),ye,Ua.pick(nr,VA));var pe=ye.Array,je=ye.Date,yt=ye.Error,Wt=ye.Function,Wn=ye.Math,on=ye.Object,Xv=ye.RegExp,xF=ye.String,xo=ye.TypeError,gp=pe.prototype,SF=Wt.prototype,Wa=on.prototype,vp=ye["__core-js_shared__"],yp=SF.toString,Qt=Wa.hasOwnProperty,EF=0,lS=function(){var l=/[^.]+$/.exec(vp&&vp.keys&&vp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),bp=Wa.toString,PF=yp.call(on),kF=nr._,IF=Xv("^"+yp.call(Qt).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wp=Ux?ye.Buffer:n,Rs=ye.Symbol,Cp=ye.Uint8Array,aS=wp?wp.allocUnsafe:n,xp=iS(on.getPrototypeOf,on),cS=on.create,uS=Wa.propertyIsEnumerable,Sp=gp.splice,dS=Rs?Rs.isConcatSpreadable:n,Lu=Rs?Rs.iterator:n,Nl=Rs?Rs.toStringTag:n,Ep=function(){try{var l=jl(on,"defineProperty");return l({},"",{}),l}catch(d){}}(),$F=ye.clearTimeout!==nr.clearTimeout&&ye.clearTimeout,TF=je&&je.now!==nr.Date.now&&je.now,MF=ye.setTimeout!==nr.setTimeout&&ye.setTimeout,Pp=Wn.ceil,kp=Wn.floor,Qv=on.getOwnPropertySymbols,_F=wp?wp.isBuffer:n,fS=ye.isFinite,RF=gp.join,OF=iS(on.keys,on),Gn=Wn.max,cr=Wn.min,LF=je.now,AF=ye.parseInt,pS=Wn.random,FF=gp.reverse,Jv=jl(ye,"DataView"),Au=jl(ye,"Map"),Zv=jl(ye,"Promise"),Ga=jl(ye,"Set"),Fu=jl(ye,"WeakMap"),Nu=jl(on,"create"),Ip=Fu&&new Fu,Ka={},NF=Vl(Jv),DF=Vl(Au),BF=Vl(Zv),zF=Vl(Ga),HF=Vl(Fu),$p=Rs?Rs.prototype:n,Du=$p?$p.valueOf:n,hS=$p?$p.toString:n;function H(l){if(Tn(l)&&!wt(l)&&!(l instanceof _t)){if(l instanceof So)return l;if(Qt.call(l,"__wrapped__"))return mE(l)}return new So(l)}var qa=function(){function l(){}return function(d){if(!Sn(d))return{};if(cS)return cS(d);l.prototype=d;var y=new l;return l.prototype=n,y}}();function Tp(){}function So(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}H.templateSettings={escape:Rr,evaluate:Yo,interpolate:bo,variable:"",imports:{_:H}},H.prototype=Tp.prototype,H.prototype.constructor=H,So.prototype=qa(Tp.prototype),So.prototype.constructor=So;function _t(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function jF(){var l=new _t(this.__wrapped__);return l.__actions__=Lr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Lr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Lr(this.__views__),l}function VF(){if(this.__filtered__){var l=new _t(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function UF(){var l=this.__wrapped__.value(),d=this.__dir__,y=wt(l),M=d<0,F=y?l.length:0,V=n4(0,F,this.__views__),K=V.start,Y=V.end,J=Y-K,Ce=M?Y:K-1,xe=this.__iteratees__,Pe=xe.length,Be=0,Ze=cr(J,this.__takeCount__);if(!y||!M&&F==J&&Ze==J)return DS(l,this.__actions__);var ct=[];e:for(;J--&&Be<Ze;){Ce+=d;for(var kt=-1,ut=l[Ce];++kt<Pe;){var $t=xe[kt],At=$t.iteratee,eo=$t.type,Pr=At(ut);if(eo==D)ut=Pr;else if(!Pr){if(eo==L)continue e;break e}}ct[Be++]=ut}return ct}_t.prototype=qa(Tp.prototype),_t.prototype.constructor=_t;function Dl(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function WF(){this.__data__=Nu?Nu(null):{},this.size=0}function GF(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function KF(l){var d=this.__data__;if(Nu){var y=d[l];return y===c?n:y}return Qt.call(d,l)?d[l]:n}function qF(l){var d=this.__data__;return Nu?d[l]!==n:Qt.call(d,l)}function YF(l,d){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=Nu&&d===n?c:d,this}Dl.prototype.clear=WF,Dl.prototype.delete=GF,Dl.prototype.get=KF,Dl.prototype.has=qF,Dl.prototype.set=YF;function Ki(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function XF(){this.__data__=[],this.size=0}function QF(l){var d=this.__data__,y=Mp(d,l);if(y<0)return!1;var M=d.length-1;return y==M?d.pop():Sp.call(d,y,1),--this.size,!0}function JF(l){var d=this.__data__,y=Mp(d,l);return y<0?n:d[y][1]}function ZF(l){return Mp(this.__data__,l)>-1}function eN(l,d){var y=this.__data__,M=Mp(y,l);return M<0?(++this.size,y.push([l,d])):y[M][1]=d,this}Ki.prototype.clear=XF,Ki.prototype.delete=QF,Ki.prototype.get=JF,Ki.prototype.has=ZF,Ki.prototype.set=eN;function qi(l){var d=-1,y=l==null?0:l.length;for(this.clear();++d<y;){var M=l[d];this.set(M[0],M[1])}}function tN(){this.size=0,this.__data__={hash:new Dl,map:new(Au||Ki),string:new Dl}}function nN(l){var d=jp(this,l).delete(l);return this.size-=d?1:0,d}function rN(l){return jp(this,l).get(l)}function oN(l){return jp(this,l).has(l)}function iN(l,d){var y=jp(this,l),M=y.size;return y.set(l,d),this.size+=y.size==M?0:1,this}qi.prototype.clear=tN,qi.prototype.delete=nN,qi.prototype.get=rN,qi.prototype.has=oN,qi.prototype.set=iN;function Bl(l){var d=-1,y=l==null?0:l.length;for(this.__data__=new qi;++d<y;)this.add(l[d])}function sN(l){return this.__data__.set(l,c),this}function lN(l){return this.__data__.has(l)}Bl.prototype.add=Bl.prototype.push=sN,Bl.prototype.has=lN;function Qo(l){var d=this.__data__=new Ki(l);this.size=d.size}function aN(){this.__data__=new Ki,this.size=0}function cN(l){var d=this.__data__,y=d.delete(l);return this.size=d.size,y}function uN(l){return this.__data__.get(l)}function dN(l){return this.__data__.has(l)}function fN(l,d){var y=this.__data__;if(y instanceof Ki){var M=y.__data__;if(!Au||M.length<o-1)return M.push([l,d]),this.size=++y.size,this;y=this.__data__=new qi(M)}return y.set(l,d),this.size=y.size,this}Qo.prototype.clear=aN,Qo.prototype.delete=cN,Qo.prototype.get=uN,Qo.prototype.has=dN,Qo.prototype.set=fN;function mS(l,d){var y=wt(l),M=!y&&Ul(l),F=!y&&!M&&Ns(l),V=!y&&!M&&!F&&Ja(l),K=y||M||F||V,Y=K?Kv(l.length,xF):[],J=Y.length;for(var Ce in l)(d||Qt.call(l,Ce))&&!(K&&(Ce=="length"||F&&(Ce=="offset"||Ce=="parent")||V&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||Ji(Ce,J)))&&Y.push(Ce);return Y}function gS(l){var d=l.length;return d?l[uy(0,d-1)]:n}function pN(l,d){return Vp(Lr(l),zl(d,0,l.length))}function hN(l){return Vp(Lr(l))}function ey(l,d,y){(y!==n&&!Jo(l[d],y)||y===n&&!(d in l))&&Yi(l,d,y)}function Bu(l,d,y){var M=l[d];(!(Qt.call(l,d)&&Jo(M,y))||y===n&&!(d in l))&&Yi(l,d,y)}function Mp(l,d){for(var y=l.length;y--;)if(Jo(l[y][0],d))return y;return-1}function mN(l,d,y,M){return Os(l,function(F,V,K){d(M,F,y(F),K)}),M}function vS(l,d){return l&&bi(d,Xn(d),l)}function gN(l,d){return l&&bi(d,Fr(d),l)}function Yi(l,d,y){d=="__proto__"&&Ep?Ep(l,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[d]=y}function ty(l,d){for(var y=-1,M=d.length,F=pe(M),V=l==null;++y<M;)F[y]=V?n:Ay(l,d[y]);return F}function zl(l,d,y){return l===l&&(y!==n&&(l=l<=y?l:y),d!==n&&(l=l>=d?l:d)),l}function Eo(l,d,y,M,F,V){var K,Y=d&h,J=d&m,Ce=d&v;if(y&&(K=F?y(l,M,F,V):y(l)),K!==n)return K;if(!Sn(l))return l;var xe=wt(l);if(xe){if(K=o4(l),!Y)return Lr(l,K)}else{var Pe=ur(l),Be=Pe==$e||Pe==Se;if(Ns(l))return HS(l,Y);if(Pe==Le||Pe==se||Be&&!F){if(K=J||Be?{}:sE(l),!Y)return J?KN(l,gN(K,l)):GN(l,vS(K,l))}else{if(!ln[Pe])return F?l:{};K=i4(l,Pe,Y)}}V||(V=new Qo);var Ze=V.get(l);if(Ze)return Ze;V.set(l,K),AE(l)?l.forEach(function(ut){K.add(Eo(ut,d,y,ut,l,V))}):OE(l)&&l.forEach(function(ut,$t){K.set($t,Eo(ut,d,y,$t,l,V))});var ct=Ce?J?Cy:wy:J?Fr:Xn,kt=xe?n:ct(l);return Co(kt||l,function(ut,$t){kt&&($t=ut,ut=l[$t]),Bu(K,$t,Eo(ut,d,y,$t,l,V))}),K}function vN(l){var d=Xn(l);return function(y){return yS(y,l,d)}}function yS(l,d,y){var M=y.length;if(l==null)return!M;for(l=on(l);M--;){var F=y[M],V=d[F],K=l[F];if(K===n&&!(F in l)||!V(K))return!1}return!0}function bS(l,d,y){if(typeof l!="function")throw new xo(s);return Gu(function(){l.apply(n,y)},d)}function zu(l,d,y,M){var F=-1,V=pp,K=!0,Y=l.length,J=[],Ce=d.length;if(!Y)return J;y&&(d=vn(d,Qr(y))),M?(V=Hv,K=!1):d.length>=o&&(V=Ou,K=!1,d=new Bl(d));e:for(;++F<Y;){var xe=l[F],Pe=y==null?xe:y(xe);if(xe=M||xe!==0?xe:0,K&&Pe===Pe){for(var Be=Ce;Be--;)if(d[Be]===Pe)continue e;J.push(xe)}else V(d,Pe,M)||J.push(xe)}return J}var Os=GS(yi),wS=GS(ry,!0);function yN(l,d){var y=!0;return Os(l,function(M,F,V){return y=!!d(M,F,V),y}),y}function _p(l,d,y){for(var M=-1,F=l.length;++M<F;){var V=l[M],K=d(V);if(K!=null&&(Y===n?K===K&&!Zr(K):y(K,Y)))var Y=K,J=V}return J}function bN(l,d,y,M){var F=l.length;for(y=Et(y),y<0&&(y=-y>F?0:F+y),M=M===n||M>F?F:Et(M),M<0&&(M+=F),M=y>M?0:NE(M);y<M;)l[y++]=d;return l}function CS(l,d){var y=[];return Os(l,function(M,F,V){d(M,F,V)&&y.push(M)}),y}function rr(l,d,y,M,F){var V=-1,K=l.length;for(y||(y=l4),F||(F=[]);++V<K;){var Y=l[V];d>0&&y(Y)?d>1?rr(Y,d-1,y,M,F):Ms(F,Y):M||(F[F.length]=Y)}return F}var ny=KS(),xS=KS(!0);function yi(l,d){return l&&ny(l,d,Xn)}function ry(l,d){return l&&xS(l,d,Xn)}function Rp(l,d){return Ts(d,function(y){return Zi(l[y])})}function Hl(l,d){d=As(d,l);for(var y=0,M=d.length;l!=null&&y<M;)l=l[wi(d[y++])];return y&&y==M?l:n}function SS(l,d,y){var M=d(l);return wt(l)?M:Ms(M,y(l))}function Sr(l){return l==null?l===n?it:Fe:Nl&&Nl in on(l)?t4(l):h4(l)}function oy(l,d){return l>d}function wN(l,d){return l!=null&&Qt.call(l,d)}function CN(l,d){return l!=null&&d in on(l)}function xN(l,d,y){return l>=cr(d,y)&&l<Gn(d,y)}function iy(l,d,y){for(var M=y?Hv:pp,F=l[0].length,V=l.length,K=V,Y=pe(V),J=1/0,Ce=[];K--;){var xe=l[K];K&&d&&(xe=vn(xe,Qr(d))),J=cr(xe.length,J),Y[K]=!y&&(d||F>=120&&xe.length>=120)?new Bl(K&&xe):n}xe=l[0];var Pe=-1,Be=Y[0];e:for(;++Pe<F&&Ce.length<J;){var Ze=xe[Pe],ct=d?d(Ze):Ze;if(Ze=y||Ze!==0?Ze:0,!(Be?Ou(Be,ct):M(Ce,ct,y))){for(K=V;--K;){var kt=Y[K];if(!(kt?Ou(kt,ct):M(l[K],ct,y)))continue e}Be&&Be.push(ct),Ce.push(Ze)}}return Ce}function SN(l,d,y,M){return yi(l,function(F,V,K){d(M,y(F),V,K)}),M}function Hu(l,d,y){d=As(d,l),l=uE(l,d);var M=l==null?l:l[wi(ko(d))];return M==null?n:Xr(M,l,y)}function ES(l){return Tn(l)&&Sr(l)==se}function EN(l){return Tn(l)&&Sr(l)==_e}function PN(l){return Tn(l)&&Sr(l)==le}function ju(l,d,y,M,F){return l===d?!0:l==null||d==null||!Tn(l)&&!Tn(d)?l!==l&&d!==d:kN(l,d,y,M,ju,F)}function kN(l,d,y,M,F,V){var K=wt(l),Y=wt(d),J=K?ae:ur(l),Ce=Y?ae:ur(d);J=J==se?Le:J,Ce=Ce==se?Le:Ce;var xe=J==Le,Pe=Ce==Le,Be=J==Ce;if(Be&&Ns(l)){if(!Ns(d))return!1;K=!0,xe=!1}if(Be&&!xe)return V||(V=new Qo),K||Ja(l)?rE(l,d,y,M,F,V):ZN(l,d,J,y,M,F,V);if(!(y&b)){var Ze=xe&&Qt.call(l,"__wrapped__"),ct=Pe&&Qt.call(d,"__wrapped__");if(Ze||ct){var kt=Ze?l.value():l,ut=ct?d.value():d;return V||(V=new Qo),F(kt,ut,y,M,V)}}return Be?(V||(V=new Qo),e4(l,d,y,M,F,V)):!1}function IN(l){return Tn(l)&&ur(l)==Ne}function sy(l,d,y,M){var F=y.length,V=F,K=!M;if(l==null)return!V;for(l=on(l);F--;){var Y=y[F];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++F<V;){Y=y[F];var J=Y[0],Ce=l[J],xe=Y[1];if(K&&Y[2]){if(Ce===n&&!(J in l))return!1}else{var Pe=new Qo;if(M)var Be=M(Ce,xe,J,l,d,Pe);if(!(Be===n?ju(xe,Ce,b|g,M,Pe):Be))return!1}}return!0}function PS(l){if(!Sn(l)||c4(l))return!1;var d=Zi(l)?IF:Ba;return d.test(Vl(l))}function $N(l){return Tn(l)&&Sr(l)==nt}function TN(l){return Tn(l)&&ur(l)==tt}function MN(l){return Tn(l)&&Yp(l.length)&&!!pn[Sr(l)]}function kS(l){return typeof l=="function"?l:l==null?Nr:typeof l=="object"?wt(l)?TS(l[0],l[1]):$S(l):qE(l)}function ly(l){if(!Wu(l))return OF(l);var d=[];for(var y in on(l))Qt.call(l,y)&&y!="constructor"&&d.push(y);return d}function _N(l){if(!Sn(l))return p4(l);var d=Wu(l),y=[];for(var M in l)M=="constructor"&&(d||!Qt.call(l,M))||y.push(M);return y}function ay(l,d){return l<d}function IS(l,d){var y=-1,M=Ar(l)?pe(l.length):[];return Os(l,function(F,V,K){M[++y]=d(F,V,K)}),M}function $S(l){var d=Sy(l);return d.length==1&&d[0][2]?aE(d[0][0],d[0][1]):function(y){return y===l||sy(y,l,d)}}function TS(l,d){return Py(l)&&lE(d)?aE(wi(l),d):function(y){var M=Ay(y,l);return M===n&&M===d?Fy(y,l):ju(d,M,b|g)}}function Op(l,d,y,M,F){l!==d&&ny(d,function(V,K){if(F||(F=new Qo),Sn(V))RN(l,d,K,y,Op,M,F);else{var Y=M?M(Iy(l,K),V,K+"",l,d,F):n;Y===n&&(Y=V),ey(l,K,Y)}},Fr)}function RN(l,d,y,M,F,V,K){var Y=Iy(l,y),J=Iy(d,y),Ce=K.get(J);if(Ce){ey(l,y,Ce);return}var xe=V?V(Y,J,y+"",l,d,K):n,Pe=xe===n;if(Pe){var Be=wt(J),Ze=!Be&&Ns(J),ct=!Be&&!Ze&&Ja(J);xe=J,Be||Ze||ct?wt(Y)?xe=Y:Ln(Y)?xe=Lr(Y):Ze?(Pe=!1,xe=HS(J,!0)):ct?(Pe=!1,xe=jS(J,!0)):xe=[]:Ku(J)||Ul(J)?(xe=Y,Ul(Y)?xe=DE(Y):(!Sn(Y)||Zi(Y))&&(xe=sE(J))):Pe=!1}Pe&&(K.set(J,xe),F(xe,J,M,V,K),K.delete(J)),ey(l,y,xe)}function MS(l,d){var y=l.length;if(y)return d+=d<0?y:0,Ji(d,y)?l[d]:n}function _S(l,d,y){d.length?d=vn(d,function(V){return wt(V)?function(K){return Hl(K,V.length===1?V[0]:V)}:V}):d=[Nr];var M=-1;d=vn(d,Qr(lt()));var F=IS(l,function(V,K,Y){var J=vn(d,function(Ce){return Ce(V)});return{criteria:J,index:++M,value:V}});return iF(F,function(V,K){return WN(V,K,y)})}function ON(l,d){return RS(l,d,function(y,M){return Fy(l,M)})}function RS(l,d,y){for(var M=-1,F=d.length,V={};++M<F;){var K=d[M],Y=Hl(l,K);y(Y,K)&&Vu(V,As(K,l),Y)}return V}function LN(l){return function(d){return Hl(d,l)}}function cy(l,d,y,M){var F=M?oF:Ha,V=-1,K=d.length,Y=l;for(l===d&&(d=Lr(d)),y&&(Y=vn(l,Qr(y)));++V<K;)for(var J=0,Ce=d[V],xe=y?y(Ce):Ce;(J=F(Y,xe,J,M))>-1;)Y!==l&&Sp.call(Y,J,1),Sp.call(l,J,1);return l}function OS(l,d){for(var y=l?d.length:0,M=y-1;y--;){var F=d[y];if(y==M||F!==V){var V=F;Ji(F)?Sp.call(l,F,1):py(l,F)}}return l}function uy(l,d){return l+kp(pS()*(d-l+1))}function AN(l,d,y,M){for(var F=-1,V=Gn(Pp((d-l)/(y||1)),0),K=pe(V);V--;)K[M?V:++F]=l,l+=y;return K}function dy(l,d){var y="";if(!l||d<1||d>A)return y;do d%2&&(y+=l),d=kp(d/2),d&&(l+=l);while(d);return y}function It(l,d){return $y(cE(l,d,Nr),l+"")}function FN(l){return gS(Za(l))}function NN(l,d){var y=Za(l);return Vp(y,zl(d,0,y.length))}function Vu(l,d,y,M){if(!Sn(l))return l;d=As(d,l);for(var F=-1,V=d.length,K=V-1,Y=l;Y!=null&&++F<V;){var J=wi(d[F]),Ce=y;if(J==="__proto__"||J==="constructor"||J==="prototype")return l;if(F!=K){var xe=Y[J];Ce=M?M(xe,J,Y):n,Ce===n&&(Ce=Sn(xe)?xe:Ji(d[F+1])?[]:{})}Bu(Y,J,Ce),Y=Y[J]}return l}var LS=Ip?function(l,d){return Ip.set(l,d),l}:Nr,DN=Ep?function(l,d){return Ep(l,"toString",{configurable:!0,enumerable:!1,value:Dy(d),writable:!0})}:Nr;function BN(l){return Vp(Za(l))}function Po(l,d,y){var M=-1,F=l.length;d<0&&(d=-d>F?0:F+d),y=y>F?F:y,y<0&&(y+=F),F=d>y?0:y-d>>>0,d>>>=0;for(var V=pe(F);++M<F;)V[M]=l[M+d];return V}function zN(l,d){var y;return Os(l,function(M,F,V){return y=d(M,F,V),!y}),!!y}function Lp(l,d,y){var M=0,F=l==null?M:l.length;if(typeof d=="number"&&d===d&&F<=ie){for(;M<F;){var V=M+F>>>1,K=l[V];K!==null&&!Zr(K)&&(y?K<=d:K<d)?M=V+1:F=V}return F}return fy(l,d,Nr,y)}function fy(l,d,y,M){var F=0,V=l==null?0:l.length;if(V===0)return 0;d=y(d);for(var K=d!==d,Y=d===null,J=Zr(d),Ce=d===n;F<V;){var xe=kp((F+V)/2),Pe=y(l[xe]),Be=Pe!==n,Ze=Pe===null,ct=Pe===Pe,kt=Zr(Pe);if(K)var ut=M||ct;else Ce?ut=ct&&(M||Be):Y?ut=ct&&Be&&(M||!Ze):J?ut=ct&&Be&&!Ze&&(M||!kt):Ze||kt?ut=!1:ut=M?Pe<=d:Pe<d;ut?F=xe+1:V=xe}return cr(V,X)}function AS(l,d){for(var y=-1,M=l.length,F=0,V=[];++y<M;){var K=l[y],Y=d?d(K):K;if(!y||!Jo(Y,J)){var J=Y;V[F++]=K===0?0:K}}return V}function FS(l){return typeof l=="number"?l:Zr(l)?G:+l}function Jr(l){if(typeof l=="string")return l;if(wt(l))return vn(l,Jr)+"";if(Zr(l))return hS?hS.call(l):"";var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Ls(l,d,y){var M=-1,F=pp,V=l.length,K=!0,Y=[],J=Y;if(y)K=!1,F=Hv;else if(V>=o){var Ce=d?null:QN(l);if(Ce)return mp(Ce);K=!1,F=Ou,J=new Bl}else J=d?[]:Y;e:for(;++M<V;){var xe=l[M],Pe=d?d(xe):xe;if(xe=y||xe!==0?xe:0,K&&Pe===Pe){for(var Be=J.length;Be--;)if(J[Be]===Pe)continue e;d&&J.push(Pe),Y.push(xe)}else F(J,Pe,y)||(J!==Y&&J.push(Pe),Y.push(xe))}return Y}function py(l,d){return d=As(d,l),l=uE(l,d),l==null||delete l[wi(ko(d))]}function NS(l,d,y,M){return Vu(l,d,y(Hl(l,d)),M)}function Ap(l,d,y,M){for(var F=l.length,V=M?F:-1;(M?V--:++V<F)&&d(l[V],V,l););return y?Po(l,M?0:V,M?V+1:F):Po(l,M?V+1:0,M?F:V)}function DS(l,d){var y=l;return y instanceof _t&&(y=y.value()),jv(d,function(M,F){return F.func.apply(F.thisArg,Ms([M],F.args))},y)}function hy(l,d,y){var M=l.length;if(M<2)return M?Ls(l[0]):[];for(var F=-1,V=pe(M);++F<M;)for(var K=l[F],Y=-1;++Y<M;)Y!=F&&(V[F]=zu(V[F]||K,l[Y],d,y));return Ls(rr(V,1),d,y)}function BS(l,d,y){for(var M=-1,F=l.length,V=d.length,K={};++M<F;){var Y=M<V?d[M]:n;y(K,l[M],Y)}return K}function my(l){return Ln(l)?l:[]}function gy(l){return typeof l=="function"?l:Nr}function As(l,d){return wt(l)?l:Py(l,d)?[l]:hE(qt(l))}var HN=It;function Fs(l,d,y){var M=l.length;return y=y===n?M:y,!d&&y>=M?l:Po(l,d,y)}var zS=$F||function(l){return nr.clearTimeout(l)};function HS(l,d){if(d)return l.slice();var y=l.length,M=aS?aS(y):new l.constructor(y);return l.copy(M),M}function vy(l){var d=new l.constructor(l.byteLength);return new Cp(d).set(new Cp(l)),d}function jN(l,d){var y=d?vy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function VN(l){var d=new l.constructor(l.source,sn.exec(l));return d.lastIndex=l.lastIndex,d}function UN(l){return Du?on(Du.call(l)):{}}function jS(l,d){var y=d?vy(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function VS(l,d){if(l!==d){var y=l!==n,M=l===null,F=l===l,V=Zr(l),K=d!==n,Y=d===null,J=d===d,Ce=Zr(d);if(!Y&&!Ce&&!V&&l>d||V&&K&&J&&!Y&&!Ce||M&&K&&J||!y&&J||!F)return 1;if(!M&&!V&&!Ce&&l<d||Ce&&y&&F&&!M&&!V||Y&&y&&F||!K&&F||!J)return-1}return 0}function WN(l,d,y){for(var M=-1,F=l.criteria,V=d.criteria,K=F.length,Y=y.length;++M<K;){var J=VS(F[M],V[M]);if(J){if(M>=Y)return J;var Ce=y[M];return J*(Ce=="desc"?-1:1)}}return l.index-d.index}function US(l,d,y,M){for(var F=-1,V=l.length,K=y.length,Y=-1,J=d.length,Ce=Gn(V-K,0),xe=pe(J+Ce),Pe=!M;++Y<J;)xe[Y]=d[Y];for(;++F<K;)(Pe||F<V)&&(xe[y[F]]=l[F]);for(;Ce--;)xe[Y++]=l[F++];return xe}function WS(l,d,y,M){for(var F=-1,V=l.length,K=-1,Y=y.length,J=-1,Ce=d.length,xe=Gn(V-Y,0),Pe=pe(xe+Ce),Be=!M;++F<xe;)Pe[F]=l[F];for(var Ze=F;++J<Ce;)Pe[Ze+J]=d[J];for(;++K<Y;)(Be||F<V)&&(Pe[Ze+y[K]]=l[F++]);return Pe}function Lr(l,d){var y=-1,M=l.length;for(d||(d=pe(M));++y<M;)d[y]=l[y];return d}function bi(l,d,y,M){var F=!y;y||(y={});for(var V=-1,K=d.length;++V<K;){var Y=d[V],J=M?M(y[Y],l[Y],Y,y,l):n;J===n&&(J=l[Y]),F?Yi(y,Y,J):Bu(y,Y,J)}return y}function GN(l,d){return bi(l,Ey(l),d)}function KN(l,d){return bi(l,oE(l),d)}function Fp(l,d){return function(y,M){var F=wt(y)?JA:mN,V=d?d():{};return F(y,l,lt(M,2),V)}}function Ya(l){return It(function(d,y){var M=-1,F=y.length,V=F>1?y[F-1]:n,K=F>2?y[2]:n;for(V=l.length>3&&typeof V=="function"?(F--,V):n,K&&Er(y[0],y[1],K)&&(V=F<3?n:V,F=1),d=on(d);++M<F;){var Y=y[M];Y&&l(d,Y,M,V)}return d})}function GS(l,d){return function(y,M){if(y==null)return y;if(!Ar(y))return l(y,M);for(var F=y.length,V=d?F:-1,K=on(y);(d?V--:++V<F)&&M(K[V],V,K)!==!1;);return y}}function KS(l){return function(d,y,M){for(var F=-1,V=on(d),K=M(d),Y=K.length;Y--;){var J=K[l?Y:++F];if(y(V[J],J,V)===!1)break}return d}}function qN(l,d,y){var M=d&S,F=Uu(l);function V(){var K=this&&this!==nr&&this instanceof V?F:l;return K.apply(M?y:this,arguments)}return V}function qS(l){return function(d){d=qt(d);var y=ja(d)?Xo(d):n,M=y?y[0]:d.charAt(0),F=y?Fs(y,1).join(""):d.slice(1);return M[l]()+F}}function Xa(l){return function(d){return jv(GE(WE(d).replace(DA,"")),l,"")}}function Uu(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=qa(l.prototype),M=l.apply(y,d);return Sn(M)?M:y}}function YN(l,d,y){var M=Uu(l);function F(){for(var V=arguments.length,K=pe(V),Y=V,J=Qa(F);Y--;)K[Y]=arguments[Y];var Ce=V<3&&K[0]!==J&&K[V-1]!==J?[]:_s(K,J);if(V-=Ce.length,V<y)return ZS(l,d,Np,F.placeholder,n,K,Ce,n,n,y-V);var xe=this&&this!==nr&&this instanceof F?M:l;return Xr(xe,this,K)}return F}function YS(l){return function(d,y,M){var F=on(d);if(!Ar(d)){var V=lt(y,3);d=Xn(d),y=function(Y){return V(F[Y],Y,F)}}var K=l(d,y,M);return K>-1?F[V?d[K]:K]:n}}function XS(l){return Qi(function(d){var y=d.length,M=y,F=So.prototype.thru;for(l&&d.reverse();M--;){var V=d[M];if(typeof V!="function")throw new xo(s);if(F&&!K&&Hp(V)=="wrapper")var K=new So([],!0)}for(M=K?M:y;++M<y;){V=d[M];var Y=Hp(V),J=Y=="wrapper"?xy(V):n;J&&ky(J[0])&&J[1]==(k|C|I|$)&&!J[4].length&&J[9]==1?K=K[Hp(J[0])].apply(K,J[3]):K=V.length==1&&ky(V)?K[Y]():K.thru(V)}return function(){var Ce=arguments,xe=Ce[0];if(K&&Ce.length==1&&wt(xe))return K.plant(xe).value();for(var Pe=0,Be=y?d[Pe].apply(this,Ce):xe;++Pe<y;)Be=d[Pe].call(this,Be);return Be}})}function Np(l,d,y,M,F,V,K,Y,J,Ce){var xe=d&k,Pe=d&S,Be=d&w,Ze=d&(C|E),ct=d&R,kt=Be?n:Uu(l);function ut(){for(var $t=arguments.length,At=pe($t),eo=$t;eo--;)At[eo]=arguments[eo];if(Ze)var Pr=Qa(ut),to=lF(At,Pr);if(M&&(At=US(At,M,F,Ze)),V&&(At=WS(At,V,K,Ze)),$t-=to,Ze&&$t<Ce){var An=_s(At,Pr);return ZS(l,d,Np,ut.placeholder,y,At,An,Y,J,Ce-$t)}var Zo=Pe?y:this,ts=Be?Zo[l]:l;return $t=At.length,Y?At=m4(At,Y):ct&&$t>1&&At.reverse(),xe&&J<$t&&(At.length=J),this&&this!==nr&&this instanceof ut&&(ts=kt||Uu(ts)),ts.apply(Zo,At)}return ut}function QS(l,d){return function(y,M){return SN(y,l,d(M),{})}}function Dp(l,d){return function(y,M){var F;if(y===n&&M===n)return d;if(y!==n&&(F=y),M!==n){if(F===n)return M;typeof y=="string"||typeof M=="string"?(y=Jr(y),M=Jr(M)):(y=FS(y),M=FS(M)),F=l(y,M)}return F}}function yy(l){return Qi(function(d){return d=vn(d,Qr(lt())),It(function(y){var M=this;return l(d,function(F){return Xr(F,M,y)})})})}function Bp(l,d){d=d===n?" ":Jr(d);var y=d.length;if(y<2)return y?dy(d,l):d;var M=dy(d,Pp(l/Va(d)));return ja(d)?Fs(Xo(M),0,l).join(""):M.slice(0,l)}function XN(l,d,y,M){var F=d&S,V=Uu(l);function K(){for(var Y=-1,J=arguments.length,Ce=-1,xe=M.length,Pe=pe(xe+J),Be=this&&this!==nr&&this instanceof K?V:l;++Ce<xe;)Pe[Ce]=M[Ce];for(;J--;)Pe[Ce++]=arguments[++Y];return Xr(Be,F?y:this,Pe)}return K}function JS(l){return function(d,y,M){return M&&typeof M!="number"&&Er(d,y,M)&&(y=M=n),d=es(d),y===n?(y=d,d=0):y=es(y),M=M===n?d<y?1:-1:es(M),AN(d,y,M,l)}}function zp(l){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Io(d),y=Io(y)),l(d,y)}}function ZS(l,d,y,M,F,V,K,Y,J,Ce){var xe=d&C,Pe=xe?K:n,Be=xe?n:K,Ze=xe?V:n,ct=xe?n:V;d|=xe?I:T,d&=~(xe?T:I),d&P||(d&=~(S|w));var kt=[l,d,F,Ze,Pe,ct,Be,Y,J,Ce],ut=y.apply(n,kt);return ky(l)&&dE(ut,kt),ut.placeholder=M,fE(ut,l,d)}function by(l){var d=Wn[l];return function(y,M){if(y=Io(y),M=M==null?0:cr(Et(M),292),M&&fS(y)){var F=(qt(y)+"e").split("e"),V=d(F[0]+"e"+(+F[1]+M));return F=(qt(V)+"e").split("e"),+(F[0]+"e"+(+F[1]-M))}return d(y)}}var QN=Ga&&1/mp(new Ga([,-0]))[1]==W?function(l){return new Ga(l)}:Hy;function eE(l){return function(d){var y=ur(d);return y==Ne?Yv(d):y==tt?hF(d):sF(d,l(d))}}function Xi(l,d,y,M,F,V,K,Y){var J=d&w;if(!J&&typeof l!="function")throw new xo(s);var Ce=M?M.length:0;if(Ce||(d&=~(I|T),M=F=n),K=K===n?K:Gn(Et(K),0),Y=Y===n?Y:Et(Y),Ce-=F?F.length:0,d&T){var xe=M,Pe=F;M=F=n}var Be=J?n:xy(l),Ze=[l,d,y,M,F,xe,Pe,V,K,Y];if(Be&&f4(Ze,Be),l=Ze[0],d=Ze[1],y=Ze[2],M=Ze[3],F=Ze[4],Y=Ze[9]=Ze[9]===n?J?0:l.length:Gn(Ze[9]-Ce,0),!Y&&d&(C|E)&&(d&=~(C|E)),!d||d==S)var ct=qN(l,d,y);else d==C||d==E?ct=YN(l,d,Y):(d==I||d==(S|I))&&!F.length?ct=XN(l,d,y,M):ct=Np.apply(n,Ze);var kt=Be?LS:dE;return fE(kt(ct,Ze),l,d)}function tE(l,d,y,M){return l===n||Jo(l,Wa[y])&&!Qt.call(M,y)?d:l}function nE(l,d,y,M,F,V){return Sn(l)&&Sn(d)&&(V.set(d,l),Op(l,d,n,nE,V),V.delete(d)),l}function JN(l){return Ku(l)?n:l}function rE(l,d,y,M,F,V){var K=y&b,Y=l.length,J=d.length;if(Y!=J&&!(K&&J>Y))return!1;var Ce=V.get(l),xe=V.get(d);if(Ce&&xe)return Ce==d&&xe==l;var Pe=-1,Be=!0,Ze=y&g?new Bl:n;for(V.set(l,d),V.set(d,l);++Pe<Y;){var ct=l[Pe],kt=d[Pe];if(M)var ut=K?M(kt,ct,Pe,d,l,V):M(ct,kt,Pe,l,d,V);if(ut!==n){if(ut)continue;Be=!1;break}if(Ze){if(!Vv(d,function($t,At){if(!Ou(Ze,At)&&(ct===$t||F(ct,$t,y,M,V)))return Ze.push(At)})){Be=!1;break}}else if(!(ct===kt||F(ct,kt,y,M,V))){Be=!1;break}}return V.delete(l),V.delete(d),Be}function ZN(l,d,y,M,F,V,K){switch(y){case ne:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case _e:return!(l.byteLength!=d.byteLength||!V(new Cp(l),new Cp(d)));case de:case le:case Re:return Jo(+l,+d);case be:return l.name==d.name&&l.message==d.message;case nt:case St:return l==d+"";case Ne:var Y=Yv;case tt:var J=M&b;if(Y||(Y=mp),l.size!=d.size&&!J)return!1;var Ce=K.get(l);if(Ce)return Ce==d;M|=g,K.set(l,d);var xe=rE(Y(l),Y(d),M,F,V,K);return K.delete(l),xe;case dt:if(Du)return Du.call(l)==Du.call(d)}return!1}function e4(l,d,y,M,F,V){var K=y&b,Y=wy(l),J=Y.length,Ce=wy(d),xe=Ce.length;if(J!=xe&&!K)return!1;for(var Pe=J;Pe--;){var Be=Y[Pe];if(!(K?Be in d:Qt.call(d,Be)))return!1}var Ze=V.get(l),ct=V.get(d);if(Ze&&ct)return Ze==d&&ct==l;var kt=!0;V.set(l,d),V.set(d,l);for(var ut=K;++Pe<J;){Be=Y[Pe];var $t=l[Be],At=d[Be];if(M)var eo=K?M(At,$t,Be,d,l,V):M($t,At,Be,l,d,V);if(!(eo===n?$t===At||F($t,At,y,M,V):eo)){kt=!1;break}ut||(ut=Be=="constructor")}if(kt&&!ut){var Pr=l.constructor,to=d.constructor;Pr!=to&&"constructor"in l&&"constructor"in d&&!(typeof Pr=="function"&&Pr instanceof Pr&&typeof to=="function"&&to instanceof to)&&(kt=!1)}return V.delete(l),V.delete(d),kt}function Qi(l){return $y(cE(l,n,yE),l+"")}function wy(l){return SS(l,Xn,Ey)}function Cy(l){return SS(l,Fr,oE)}var xy=Ip?function(l){return Ip.get(l)}:Hy;function Hp(l){for(var d=l.name+"",y=Ka[d],M=Qt.call(Ka,d)?y.length:0;M--;){var F=y[M],V=F.func;if(V==null||V==l)return F.name}return d}function Qa(l){var d=Qt.call(H,"placeholder")?H:l;return d.placeholder}function lt(){var l=H.iteratee||By;return l=l===By?kS:l,arguments.length?l(arguments[0],arguments[1]):l}function jp(l,d){var y=l.__data__;return a4(d)?y[typeof d=="string"?"string":"hash"]:y.map}function Sy(l){for(var d=Xn(l),y=d.length;y--;){var M=d[y],F=l[M];d[y]=[M,F,lE(F)]}return d}function jl(l,d){var y=dF(l,d);return PS(y)?y:n}function t4(l){var d=Qt.call(l,Nl),y=l[Nl];try{l[Nl]=n;var M=!0}catch(V){}var F=bp.call(l);return M&&(d?l[Nl]=y:delete l[Nl]),F}var Ey=Qv?function(l){return l==null?[]:(l=on(l),Ts(Qv(l),function(d){return uS.call(l,d)}))}:jy,oE=Qv?function(l){for(var d=[];l;)Ms(d,Ey(l)),l=xp(l);return d}:jy,ur=Sr;(Jv&&ur(new Jv(new ArrayBuffer(1)))!=ne||Au&&ur(new Au)!=Ne||Zv&&ur(Zv.resolve())!=et||Ga&&ur(new Ga)!=tt||Fu&&ur(new Fu)!=Pt)&&(ur=function(l){var d=Sr(l),y=d==Le?l.constructor:n,M=y?Vl(y):"";if(M)switch(M){case NF:return ne;case DF:return Ne;case BF:return et;case zF:return tt;case HF:return Pt}return d});function n4(l,d,y){for(var M=-1,F=y.length;++M<F;){var V=y[M],K=V.size;switch(V.type){case"drop":l+=K;break;case"dropRight":d-=K;break;case"take":d=cr(d,l+K);break;case"takeRight":l=Gn(l,d-K);break}}return{start:l,end:d}}function r4(l){var d=l.match(st);return d?d[1].split(ve):[]}function iE(l,d,y){d=As(d,l);for(var M=-1,F=d.length,V=!1;++M<F;){var K=wi(d[M]);if(!(V=l!=null&&y(l,K)))break;l=l[K]}return V||++M!=F?V:(F=l==null?0:l.length,!!F&&Yp(F)&&Ji(K,F)&&(wt(l)||Ul(l)))}function o4(l){var d=l.length,y=new l.constructor(d);return d&&typeof l[0]=="string"&&Qt.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function sE(l){return typeof l.constructor=="function"&&!Wu(l)?qa(xp(l)):{}}function i4(l,d,y){var M=l.constructor;switch(d){case _e:return vy(l);case de:case le:return new M(+l);case ne:return jN(l,y);case ke:case Ee:case Te:case Ke:case bt:case Nt:case Dt:case Yn:case dn:return jS(l,y);case Ne:return new M;case Re:case St:return new M(l);case nt:return VN(l);case tt:return new M;case dt:return UN(l)}}function s4(l,d){var y=d.length;if(!y)return l;var M=y-1;return d[M]=(y>1?"& ":"")+d[M],d=d.join(y>2?", ":" "),l.replace(ze,`{
240
+ /* [wrapped with `+d+`] */
241
+ `)}function l4(l){return wt(l)||Ul(l)||!!(dS&&l&&l[dS])}function Ji(l,d){var y=typeof l;return d=d==null?A:d,!!d&&(y=="number"||y!="symbol"&&bA.test(l))&&l>-1&&l%1==0&&l<d}function Er(l,d,y){if(!Sn(y))return!1;var M=typeof d;return(M=="number"?Ar(y)&&Ji(d,y.length):M=="string"&&d in y)?Jo(y[d],l):!1}function Py(l,d){if(wt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||Zr(l)?!0:On.test(l)||!Mt.test(l)||d!=null&&l in on(d)}function a4(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function ky(l){var d=Hp(l),y=H[d];if(typeof y!="function"||!(d in _t.prototype))return!1;if(l===y)return!0;var M=xy(y);return!!M&&l===M[0]}function c4(l){return!!lS&&lS in l}var u4=vp?Zi:Vy;function Wu(l){var d=l&&l.constructor,y=typeof d=="function"&&d.prototype||Wa;return l===y}function lE(l){return l===l&&!Sn(l)}function aE(l,d){return function(y){return y==null?!1:y[l]===d&&(d!==n||l in on(y))}}function d4(l){var d=Kp(l,function(M){return y.size===f&&y.clear(),M}),y=d.cache;return d}function f4(l,d){var y=l[1],M=d[1],F=y|M,V=F<(S|w|k),K=M==k&&y==C||M==k&&y==$&&l[7].length<=d[8]||M==(k|$)&&d[7].length<=d[8]&&y==C;if(!(V||K))return l;M&S&&(l[2]=d[2],F|=y&S?0:P);var Y=d[3];if(Y){var J=l[3];l[3]=J?US(J,Y,d[4]):Y,l[4]=J?_s(l[3],p):d[4]}return Y=d[5],Y&&(J=l[5],l[5]=J?WS(J,Y,d[6]):Y,l[6]=J?_s(l[5],p):d[6]),Y=d[7],Y&&(l[7]=Y),M&k&&(l[8]=l[8]==null?d[8]:cr(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=F,l}function p4(l){var d=[];if(l!=null)for(var y in on(l))d.push(y);return d}function h4(l){return bp.call(l)}function cE(l,d,y){return d=Gn(d===n?l.length-1:d,0),function(){for(var M=arguments,F=-1,V=Gn(M.length-d,0),K=pe(V);++F<V;)K[F]=M[d+F];F=-1;for(var Y=pe(d+1);++F<d;)Y[F]=M[F];return Y[d]=y(K),Xr(l,this,Y)}}function uE(l,d){return d.length<2?l:Hl(l,Po(d,0,-1))}function m4(l,d){for(var y=l.length,M=cr(d.length,y),F=Lr(l);M--;){var V=d[M];l[M]=Ji(V,y)?F[V]:n}return l}function Iy(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var dE=pE(LS),Gu=MF||function(l,d){return nr.setTimeout(l,d)},$y=pE(DN);function fE(l,d,y){var M=d+"";return $y(l,s4(M,g4(r4(M),y)))}function pE(l){var d=0,y=0;return function(){var M=LF(),F=j-(M-y);if(y=M,F>0){if(++d>=U)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Vp(l,d){var y=-1,M=l.length,F=M-1;for(d=d===n?M:d;++y<d;){var V=uy(y,F),K=l[V];l[V]=l[y],l[y]=K}return l.length=d,l}var hE=d4(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(ce,function(y,M,F,V){d.push(F?V.replace(at,"$1"):M||y)}),d});function wi(l){if(typeof l=="string"||Zr(l))return l;var d=l+"";return d=="0"&&1/l==-W?"-0":d}function Vl(l){if(l!=null){try{return yp.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function g4(l,d){return Co(ee,function(y){var M="_."+y[0];d&y[1]&&!pp(l,M)&&l.push(M)}),l.sort()}function mE(l){if(l instanceof _t)return l.clone();var d=new So(l.__wrapped__,l.__chain__);return d.__actions__=Lr(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function v4(l,d,y){(y?Er(l,d,y):d===n)?d=1:d=Gn(Et(d),0);var M=l==null?0:l.length;if(!M||d<1)return[];for(var F=0,V=0,K=pe(Pp(M/d));F<M;)K[V++]=Po(l,F,F+=d);return K}function y4(l){for(var d=-1,y=l==null?0:l.length,M=0,F=[];++d<y;){var V=l[d];V&&(F[M++]=V)}return F}function b4(){var l=arguments.length;if(!l)return[];for(var d=pe(l-1),y=arguments[0],M=l;M--;)d[M-1]=arguments[M];return Ms(wt(y)?Lr(y):[y],rr(d,1))}var w4=It(function(l,d){return Ln(l)?zu(l,rr(d,1,Ln,!0)):[]}),C4=It(function(l,d){var y=ko(d);return Ln(y)&&(y=n),Ln(l)?zu(l,rr(d,1,Ln,!0),lt(y,2)):[]}),x4=It(function(l,d){var y=ko(d);return Ln(y)&&(y=n),Ln(l)?zu(l,rr(d,1,Ln,!0),n,y):[]});function S4(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:Et(d),Po(l,d<0?0:d,M)):[]}function E4(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:Et(d),d=M-d,Po(l,0,d<0?0:d)):[]}function P4(l,d){return l&&l.length?Ap(l,lt(d,3),!0,!0):[]}function k4(l,d){return l&&l.length?Ap(l,lt(d,3),!0):[]}function I4(l,d,y,M){var F=l==null?0:l.length;return F?(y&&typeof y!="number"&&Er(l,d,y)&&(y=0,M=F),bN(l,d,y,M)):[]}function gE(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:Et(y);return F<0&&(F=Gn(M+F,0)),hp(l,lt(d,3),F)}function vE(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M-1;return y!==n&&(F=Et(y),F=y<0?Gn(M+F,0):cr(F,M-1)),hp(l,lt(d,3),F,!0)}function yE(l){var d=l==null?0:l.length;return d?rr(l,1):[]}function $4(l){var d=l==null?0:l.length;return d?rr(l,W):[]}function T4(l,d){var y=l==null?0:l.length;return y?(d=d===n?1:Et(d),rr(l,d)):[]}function M4(l){for(var d=-1,y=l==null?0:l.length,M={};++d<y;){var F=l[d];M[F[0]]=F[1]}return M}function bE(l){return l&&l.length?l[0]:n}function _4(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=y==null?0:Et(y);return F<0&&(F=Gn(M+F,0)),Ha(l,d,F)}function R4(l){var d=l==null?0:l.length;return d?Po(l,0,-1):[]}var O4=It(function(l){var d=vn(l,my);return d.length&&d[0]===l[0]?iy(d):[]}),L4=It(function(l){var d=ko(l),y=vn(l,my);return d===ko(y)?d=n:y.pop(),y.length&&y[0]===l[0]?iy(y,lt(d,2)):[]}),A4=It(function(l){var d=ko(l),y=vn(l,my);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===l[0]?iy(y,n,d):[]});function F4(l,d){return l==null?"":RF.call(l,d)}function ko(l){var d=l==null?0:l.length;return d?l[d-1]:n}function N4(l,d,y){var M=l==null?0:l.length;if(!M)return-1;var F=M;return y!==n&&(F=Et(y),F=F<0?Gn(M+F,0):cr(F,M-1)),d===d?gF(l,d,F):hp(l,Zx,F,!0)}function D4(l,d){return l&&l.length?MS(l,Et(d)):n}var B4=It(wE);function wE(l,d){return l&&l.length&&d&&d.length?cy(l,d):l}function z4(l,d,y){return l&&l.length&&d&&d.length?cy(l,d,lt(y,2)):l}function H4(l,d,y){return l&&l.length&&d&&d.length?cy(l,d,n,y):l}var j4=Qi(function(l,d){var y=l==null?0:l.length,M=ty(l,d);return OS(l,vn(d,function(F){return Ji(F,y)?+F:F}).sort(VS)),M});function V4(l,d){var y=[];if(!(l&&l.length))return y;var M=-1,F=[],V=l.length;for(d=lt(d,3);++M<V;){var K=l[M];d(K,M,l)&&(y.push(K),F.push(M))}return OS(l,F),y}function Ty(l){return l==null?l:FF.call(l)}function U4(l,d,y){var M=l==null?0:l.length;return M?(y&&typeof y!="number"&&Er(l,d,y)?(d=0,y=M):(d=d==null?0:Et(d),y=y===n?M:Et(y)),Po(l,d,y)):[]}function W4(l,d){return Lp(l,d)}function G4(l,d,y){return fy(l,d,lt(y,2))}function K4(l,d){var y=l==null?0:l.length;if(y){var M=Lp(l,d);if(M<y&&Jo(l[M],d))return M}return-1}function q4(l,d){return Lp(l,d,!0)}function Y4(l,d,y){return fy(l,d,lt(y,2),!0)}function X4(l,d){var y=l==null?0:l.length;if(y){var M=Lp(l,d,!0)-1;if(Jo(l[M],d))return M}return-1}function Q4(l){return l&&l.length?AS(l):[]}function J4(l,d){return l&&l.length?AS(l,lt(d,2)):[]}function Z4(l){var d=l==null?0:l.length;return d?Po(l,1,d):[]}function eD(l,d,y){return l&&l.length?(d=y||d===n?1:Et(d),Po(l,0,d<0?0:d)):[]}function tD(l,d,y){var M=l==null?0:l.length;return M?(d=y||d===n?1:Et(d),d=M-d,Po(l,d<0?0:d,M)):[]}function nD(l,d){return l&&l.length?Ap(l,lt(d,3),!1,!0):[]}function rD(l,d){return l&&l.length?Ap(l,lt(d,3)):[]}var oD=It(function(l){return Ls(rr(l,1,Ln,!0))}),iD=It(function(l){var d=ko(l);return Ln(d)&&(d=n),Ls(rr(l,1,Ln,!0),lt(d,2))}),sD=It(function(l){var d=ko(l);return d=typeof d=="function"?d:n,Ls(rr(l,1,Ln,!0),n,d)});function lD(l){return l&&l.length?Ls(l):[]}function aD(l,d){return l&&l.length?Ls(l,lt(d,2)):[]}function cD(l,d){return d=typeof d=="function"?d:n,l&&l.length?Ls(l,n,d):[]}function My(l){if(!(l&&l.length))return[];var d=0;return l=Ts(l,function(y){if(Ln(y))return d=Gn(y.length,d),!0}),Kv(d,function(y){return vn(l,Uv(y))})}function CE(l,d){if(!(l&&l.length))return[];var y=My(l);return d==null?y:vn(y,function(M){return Xr(d,n,M)})}var uD=It(function(l,d){return Ln(l)?zu(l,d):[]}),dD=It(function(l){return hy(Ts(l,Ln))}),fD=It(function(l){var d=ko(l);return Ln(d)&&(d=n),hy(Ts(l,Ln),lt(d,2))}),pD=It(function(l){var d=ko(l);return d=typeof d=="function"?d:n,hy(Ts(l,Ln),n,d)}),hD=It(My);function mD(l,d){return BS(l||[],d||[],Bu)}function gD(l,d){return BS(l||[],d||[],Vu)}var vD=It(function(l){var d=l.length,y=d>1?l[d-1]:n;return y=typeof y=="function"?(l.pop(),y):n,CE(l,y)});function xE(l){var d=H(l);return d.__chain__=!0,d}function yD(l,d){return d(l),l}function Up(l,d){return d(l)}var bD=Qi(function(l){var d=l.length,y=d?l[0]:0,M=this.__wrapped__,F=function(V){return ty(V,l)};return d>1||this.__actions__.length||!(M instanceof _t)||!Ji(y)?this.thru(F):(M=M.slice(y,+y+(d?1:0)),M.__actions__.push({func:Up,args:[F],thisArg:n}),new So(M,this.__chain__).thru(function(V){return d&&!V.length&&V.push(n),V}))});function wD(){return xE(this)}function CD(){return new So(this.value(),this.__chain__)}function xD(){this.__values__===n&&(this.__values__=FE(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function SD(){return this}function ED(l){for(var d,y=this;y instanceof Tp;){var M=mE(y);M.__index__=0,M.__values__=n,d?F.__wrapped__=M:d=M;var F=M;y=y.__wrapped__}return F.__wrapped__=l,d}function PD(){var l=this.__wrapped__;if(l instanceof _t){var d=l;return this.__actions__.length&&(d=new _t(this)),d=d.reverse(),d.__actions__.push({func:Up,args:[Ty],thisArg:n}),new So(d,this.__chain__)}return this.thru(Ty)}function kD(){return DS(this.__wrapped__,this.__actions__)}var ID=Fp(function(l,d,y){Qt.call(l,y)?++l[y]:Yi(l,y,1)});function $D(l,d,y){var M=wt(l)?Qx:yN;return y&&Er(l,d,y)&&(d=n),M(l,lt(d,3))}function TD(l,d){var y=wt(l)?Ts:CS;return y(l,lt(d,3))}var MD=YS(gE),_D=YS(vE);function RD(l,d){return rr(Wp(l,d),1)}function OD(l,d){return rr(Wp(l,d),W)}function LD(l,d,y){return y=y===n?1:Et(y),rr(Wp(l,d),y)}function SE(l,d){var y=wt(l)?Co:Os;return y(l,lt(d,3))}function EE(l,d){var y=wt(l)?ZA:wS;return y(l,lt(d,3))}var AD=Fp(function(l,d,y){Qt.call(l,y)?l[y].push(d):Yi(l,y,[d])});function FD(l,d,y,M){l=Ar(l)?l:Za(l),y=y&&!M?Et(y):0;var F=l.length;return y<0&&(y=Gn(F+y,0)),Xp(l)?y<=F&&l.indexOf(d,y)>-1:!!F&&Ha(l,d,y)>-1}var ND=It(function(l,d,y){var M=-1,F=typeof d=="function",V=Ar(l)?pe(l.length):[];return Os(l,function(K){V[++M]=F?Xr(d,K,y):Hu(K,d,y)}),V}),DD=Fp(function(l,d,y){Yi(l,y,d)});function Wp(l,d){var y=wt(l)?vn:IS;return y(l,lt(d,3))}function BD(l,d,y,M){return l==null?[]:(wt(d)||(d=d==null?[]:[d]),y=M?n:y,wt(y)||(y=y==null?[]:[y]),_S(l,d,y))}var zD=Fp(function(l,d,y){l[y?0:1].push(d)},function(){return[[],[]]});function HD(l,d,y){var M=wt(l)?jv:tS,F=arguments.length<3;return M(l,lt(d,4),y,F,Os)}function jD(l,d,y){var M=wt(l)?eF:tS,F=arguments.length<3;return M(l,lt(d,4),y,F,wS)}function VD(l,d){var y=wt(l)?Ts:CS;return y(l,qp(lt(d,3)))}function UD(l){var d=wt(l)?gS:FN;return d(l)}function WD(l,d,y){(y?Er(l,d,y):d===n)?d=1:d=Et(d);var M=wt(l)?pN:NN;return M(l,d)}function GD(l){var d=wt(l)?hN:BN;return d(l)}function KD(l){if(l==null)return 0;if(Ar(l))return Xp(l)?Va(l):l.length;var d=ur(l);return d==Ne||d==tt?l.size:ly(l).length}function qD(l,d,y){var M=wt(l)?Vv:zN;return y&&Er(l,d,y)&&(d=n),M(l,lt(d,3))}var YD=It(function(l,d){if(l==null)return[];var y=d.length;return y>1&&Er(l,d[0],d[1])?d=[]:y>2&&Er(d[0],d[1],d[2])&&(d=[d[0]]),_S(l,rr(d,1),[])}),Gp=TF||function(){return nr.Date.now()};function XD(l,d){if(typeof d!="function")throw new xo(s);return l=Et(l),function(){if(--l<1)return d.apply(this,arguments)}}function PE(l,d,y){return d=y?n:d,d=l&&d==null?l.length:d,Xi(l,k,n,n,n,n,d)}function kE(l,d){var y;if(typeof d!="function")throw new xo(s);return l=Et(l),function(){return--l>0&&(y=d.apply(this,arguments)),l<=1&&(d=n),y}}var _y=It(function(l,d,y){var M=S;if(y.length){var F=_s(y,Qa(_y));M|=I}return Xi(l,M,d,y,F)}),IE=It(function(l,d,y){var M=S|w;if(y.length){var F=_s(y,Qa(IE));M|=I}return Xi(d,M,l,y,F)});function $E(l,d,y){d=y?n:d;var M=Xi(l,C,n,n,n,n,n,d);return M.placeholder=$E.placeholder,M}function TE(l,d,y){d=y?n:d;var M=Xi(l,E,n,n,n,n,n,d);return M.placeholder=TE.placeholder,M}function ME(l,d,y){var M,F,V,K,Y,J,Ce=0,xe=!1,Pe=!1,Be=!0;if(typeof l!="function")throw new xo(s);d=Io(d)||0,Sn(y)&&(xe=!!y.leading,Pe="maxWait"in y,V=Pe?Gn(Io(y.maxWait)||0,d):V,Be="trailing"in y?!!y.trailing:Be);function Ze(An){var Zo=M,ts=F;return M=F=n,Ce=An,K=l.apply(ts,Zo),K}function ct(An){return Ce=An,Y=Gu($t,d),xe?Ze(An):K}function kt(An){var Zo=An-J,ts=An-Ce,YE=d-Zo;return Pe?cr(YE,V-ts):YE}function ut(An){var Zo=An-J,ts=An-Ce;return J===n||Zo>=d||Zo<0||Pe&&ts>=V}function $t(){var An=Gp();if(ut(An))return At(An);Y=Gu($t,kt(An))}function At(An){return Y=n,Be&&M?Ze(An):(M=F=n,K)}function eo(){Y!==n&&zS(Y),Ce=0,M=J=F=Y=n}function Pr(){return Y===n?K:At(Gp())}function to(){var An=Gp(),Zo=ut(An);if(M=arguments,F=this,J=An,Zo){if(Y===n)return ct(J);if(Pe)return zS(Y),Y=Gu($t,d),Ze(J)}return Y===n&&(Y=Gu($t,d)),K}return to.cancel=eo,to.flush=Pr,to}var QD=It(function(l,d){return bS(l,1,d)}),JD=It(function(l,d,y){return bS(l,Io(d)||0,y)});function ZD(l){return Xi(l,R)}function Kp(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new xo(s);var y=function(){var M=arguments,F=d?d.apply(this,M):M[0],V=y.cache;if(V.has(F))return V.get(F);var K=l.apply(this,M);return y.cache=V.set(F,K)||V,K};return y.cache=new(Kp.Cache||qi),y}Kp.Cache=qi;function qp(l){if(typeof l!="function")throw new xo(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function e5(l){return kE(2,l)}var t5=HN(function(l,d){d=d.length==1&&wt(d[0])?vn(d[0],Qr(lt())):vn(rr(d,1),Qr(lt()));var y=d.length;return It(function(M){for(var F=-1,V=cr(M.length,y);++F<V;)M[F]=d[F].call(this,M[F]);return Xr(l,this,M)})}),Ry=It(function(l,d){var y=_s(d,Qa(Ry));return Xi(l,I,n,d,y)}),_E=It(function(l,d){var y=_s(d,Qa(_E));return Xi(l,T,n,d,y)}),n5=Qi(function(l,d){return Xi(l,$,n,n,n,d)});function r5(l,d){if(typeof l!="function")throw new xo(s);return d=d===n?d:Et(d),It(l,d)}function o5(l,d){if(typeof l!="function")throw new xo(s);return d=d==null?0:Gn(Et(d),0),It(function(y){var M=y[d],F=Fs(y,0,d);return M&&Ms(F,M),Xr(l,this,F)})}function i5(l,d,y){var M=!0,F=!0;if(typeof l!="function")throw new xo(s);return Sn(y)&&(M="leading"in y?!!y.leading:M,F="trailing"in y?!!y.trailing:F),ME(l,d,{leading:M,maxWait:d,trailing:F})}function s5(l){return PE(l,1)}function l5(l,d){return Ry(gy(d),l)}function a5(){if(!arguments.length)return[];var l=arguments[0];return wt(l)?l:[l]}function c5(l){return Eo(l,v)}function u5(l,d){return d=typeof d=="function"?d:n,Eo(l,v,d)}function d5(l){return Eo(l,h|v)}function f5(l,d){return d=typeof d=="function"?d:n,Eo(l,h|v,d)}function p5(l,d){return d==null||yS(l,d,Xn(d))}function Jo(l,d){return l===d||l!==l&&d!==d}var h5=zp(oy),m5=zp(function(l,d){return l>=d}),Ul=ES(function(){return arguments}())?ES:function(l){return Tn(l)&&Qt.call(l,"callee")&&!uS.call(l,"callee")},wt=pe.isArray,g5=Wx?Qr(Wx):EN;function Ar(l){return l!=null&&Yp(l.length)&&!Zi(l)}function Ln(l){return Tn(l)&&Ar(l)}function v5(l){return l===!0||l===!1||Tn(l)&&Sr(l)==de}var Ns=_F||Vy,y5=Gx?Qr(Gx):PN;function b5(l){return Tn(l)&&l.nodeType===1&&!Ku(l)}function w5(l){if(l==null)return!0;if(Ar(l)&&(wt(l)||typeof l=="string"||typeof l.splice=="function"||Ns(l)||Ja(l)||Ul(l)))return!l.length;var d=ur(l);if(d==Ne||d==tt)return!l.size;if(Wu(l))return!ly(l).length;for(var y in l)if(Qt.call(l,y))return!1;return!0}function C5(l,d){return ju(l,d)}function x5(l,d,y){y=typeof y=="function"?y:n;var M=y?y(l,d):n;return M===n?ju(l,d,n,y):!!M}function Oy(l){if(!Tn(l))return!1;var d=Sr(l);return d==be||d==te||typeof l.message=="string"&&typeof l.name=="string"&&!Ku(l)}function S5(l){return typeof l=="number"&&fS(l)}function Zi(l){if(!Sn(l))return!1;var d=Sr(l);return d==$e||d==Se||d==we||d==gt}function RE(l){return typeof l=="number"&&l==Et(l)}function Yp(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=A}function Sn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Tn(l){return l!=null&&typeof l=="object"}var OE=Kx?Qr(Kx):IN;function E5(l,d){return l===d||sy(l,d,Sy(d))}function P5(l,d,y){return y=typeof y=="function"?y:n,sy(l,d,Sy(d),y)}function k5(l){return LE(l)&&l!=+l}function I5(l){if(u4(l))throw new yt(i);return PS(l)}function $5(l){return l===null}function T5(l){return l==null}function LE(l){return typeof l=="number"||Tn(l)&&Sr(l)==Re}function Ku(l){if(!Tn(l)||Sr(l)!=Le)return!1;var d=xp(l);if(d===null)return!0;var y=Qt.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&yp.call(y)==PF}var Ly=qx?Qr(qx):$N;function M5(l){return RE(l)&&l>=-A&&l<=A}var AE=Yx?Qr(Yx):TN;function Xp(l){return typeof l=="string"||!wt(l)&&Tn(l)&&Sr(l)==St}function Zr(l){return typeof l=="symbol"||Tn(l)&&Sr(l)==dt}var Ja=Xx?Qr(Xx):MN;function _5(l){return l===n}function R5(l){return Tn(l)&&ur(l)==Pt}function O5(l){return Tn(l)&&Sr(l)==Qe}var L5=zp(ay),A5=zp(function(l,d){return l<=d});function FE(l){if(!l)return[];if(Ar(l))return Xp(l)?Xo(l):Lr(l);if(Lu&&l[Lu])return pF(l[Lu]());var d=ur(l),y=d==Ne?Yv:d==tt?mp:Za;return y(l)}function es(l){if(!l)return l===0?l:0;if(l=Io(l),l===W||l===-W){var d=l<0?-1:1;return d*z}return l===l?l:0}function Et(l){var d=es(l),y=d%1;return d===d?y?d-y:d:0}function NE(l){return l?zl(Et(l),0,q):0}function Io(l){if(typeof l=="number")return l;if(Zr(l))return G;if(Sn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Sn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=nS(l);var y=Or.test(l);return y||yA.test(l)?XA(l.slice(2),y?2:8):gn.test(l)?G:+l}function DE(l){return bi(l,Fr(l))}function F5(l){return l?zl(Et(l),-A,A):l===0?l:0}function qt(l){return l==null?"":Jr(l)}var N5=Ya(function(l,d){if(Wu(d)||Ar(d)){bi(d,Xn(d),l);return}for(var y in d)Qt.call(d,y)&&Bu(l,y,d[y])}),BE=Ya(function(l,d){bi(d,Fr(d),l)}),Qp=Ya(function(l,d,y,M){bi(d,Fr(d),l,M)}),D5=Ya(function(l,d,y,M){bi(d,Xn(d),l,M)}),B5=Qi(ty);function z5(l,d){var y=qa(l);return d==null?y:vS(y,d)}var H5=It(function(l,d){l=on(l);var y=-1,M=d.length,F=M>2?d[2]:n;for(F&&Er(d[0],d[1],F)&&(M=1);++y<M;)for(var V=d[y],K=Fr(V),Y=-1,J=K.length;++Y<J;){var Ce=K[Y],xe=l[Ce];(xe===n||Jo(xe,Wa[Ce])&&!Qt.call(l,Ce))&&(l[Ce]=V[Ce])}return l}),j5=It(function(l){return l.push(n,nE),Xr(zE,n,l)});function V5(l,d){return Jx(l,lt(d,3),yi)}function U5(l,d){return Jx(l,lt(d,3),ry)}function W5(l,d){return l==null?l:ny(l,lt(d,3),Fr)}function G5(l,d){return l==null?l:xS(l,lt(d,3),Fr)}function K5(l,d){return l&&yi(l,lt(d,3))}function q5(l,d){return l&&ry(l,lt(d,3))}function Y5(l){return l==null?[]:Rp(l,Xn(l))}function X5(l){return l==null?[]:Rp(l,Fr(l))}function Ay(l,d,y){var M=l==null?n:Hl(l,d);return M===n?y:M}function Q5(l,d){return l!=null&&iE(l,d,wN)}function Fy(l,d){return l!=null&&iE(l,d,CN)}var J5=QS(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=bp.call(d)),l[d]=y},Dy(Nr)),Z5=QS(function(l,d,y){d!=null&&typeof d.toString!="function"&&(d=bp.call(d)),Qt.call(l,d)?l[d].push(y):l[d]=[y]},lt),e3=It(Hu);function Xn(l){return Ar(l)?mS(l):ly(l)}function Fr(l){return Ar(l)?mS(l,!0):_N(l)}function t3(l,d){var y={};return d=lt(d,3),yi(l,function(M,F,V){Yi(y,d(M,F,V),M)}),y}function n3(l,d){var y={};return d=lt(d,3),yi(l,function(M,F,V){Yi(y,F,d(M,F,V))}),y}var r3=Ya(function(l,d,y){Op(l,d,y)}),zE=Ya(function(l,d,y,M){Op(l,d,y,M)}),o3=Qi(function(l,d){var y={};if(l==null)return y;var M=!1;d=vn(d,function(V){return V=As(V,l),M||(M=V.length>1),V}),bi(l,Cy(l),y),M&&(y=Eo(y,h|m|v,JN));for(var F=d.length;F--;)py(y,d[F]);return y});function i3(l,d){return HE(l,qp(lt(d)))}var s3=Qi(function(l,d){return l==null?{}:ON(l,d)});function HE(l,d){if(l==null)return{};var y=vn(Cy(l),function(M){return[M]});return d=lt(d),RS(l,y,function(M,F){return d(M,F[0])})}function l3(l,d,y){d=As(d,l);var M=-1,F=d.length;for(F||(F=1,l=n);++M<F;){var V=l==null?n:l[wi(d[M])];V===n&&(M=F,V=y),l=Zi(V)?V.call(l):V}return l}function a3(l,d,y){return l==null?l:Vu(l,d,y)}function c3(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:Vu(l,d,y,M)}var jE=eE(Xn),VE=eE(Fr);function u3(l,d,y){var M=wt(l),F=M||Ns(l)||Ja(l);if(d=lt(d,4),y==null){var V=l&&l.constructor;F?y=M?new V:[]:Sn(l)?y=Zi(V)?qa(xp(l)):{}:y={}}return(F?Co:yi)(l,function(K,Y,J){return d(y,K,Y,J)}),y}function d3(l,d){return l==null?!0:py(l,d)}function f3(l,d,y){return l==null?l:NS(l,d,gy(y))}function p3(l,d,y,M){return M=typeof M=="function"?M:n,l==null?l:NS(l,d,gy(y),M)}function Za(l){return l==null?[]:qv(l,Xn(l))}function h3(l){return l==null?[]:qv(l,Fr(l))}function m3(l,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Io(y),y=y===y?y:0),d!==n&&(d=Io(d),d=d===d?d:0),zl(Io(l),d,y)}function g3(l,d,y){return d=es(d),y===n?(y=d,d=0):y=es(y),l=Io(l),xN(l,d,y)}function v3(l,d,y){if(y&&typeof y!="boolean"&&Er(l,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&d===n?(l=0,d=1):(l=es(l),d===n?(d=l,l=0):d=es(d)),l>d){var M=l;l=d,d=M}if(y||l%1||d%1){var F=pS();return cr(l+F*(d-l+YA("1e-"+((F+"").length-1))),d)}return uy(l,d)}var y3=Xa(function(l,d,y){return d=d.toLowerCase(),l+(y?UE(d):d)});function UE(l){return Ny(qt(l).toLowerCase())}function WE(l){return l=qt(l),l&&l.replace(wA,aF).replace(BA,"")}function b3(l,d,y){l=qt(l),d=Jr(d);var M=l.length;y=y===n?M:zl(Et(y),0,M);var F=y;return y-=d.length,y>=0&&l.slice(y,F)==d}function w3(l){return l=qt(l),l&&vi.test(l)?l.replace(Xt,cF):l}function C3(l){return l=qt(l),l&&He.test(l)?l.replace(me,"\\$&"):l}var x3=Xa(function(l,d,y){return l+(y?"-":"")+d.toLowerCase()}),S3=Xa(function(l,d,y){return l+(y?" ":"")+d.toLowerCase()}),E3=qS("toLowerCase");function P3(l,d,y){l=qt(l),d=Et(d);var M=d?Va(l):0;if(!d||M>=d)return l;var F=(d-M)/2;return Bp(kp(F),y)+l+Bp(Pp(F),y)}function k3(l,d,y){l=qt(l),d=Et(d);var M=d?Va(l):0;return d&&M<d?l+Bp(d-M,y):l}function I3(l,d,y){l=qt(l),d=Et(d);var M=d?Va(l):0;return d&&M<d?Bp(d-M,y)+l:l}function $3(l,d,y){return y||d==null?d=0:d&&(d=+d),AF(qt(l).replace(ft,""),d||0)}function T3(l,d,y){return(y?Er(l,d,y):d===n)?d=1:d=Et(d),dy(qt(l),d)}function M3(){var l=arguments,d=qt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var _3=Xa(function(l,d,y){return l+(y?"_":"")+d.toLowerCase()});function R3(l,d,y){return y&&typeof y!="number"&&Er(l,d,y)&&(d=y=n),y=y===n?q:y>>>0,y?(l=qt(l),l&&(typeof d=="string"||d!=null&&!Ly(d))&&(d=Jr(d),!d&&ja(l))?Fs(Xo(l),0,y):l.split(d,y)):[]}var O3=Xa(function(l,d,y){return l+(y?" ":"")+Ny(d)});function L3(l,d,y){return l=qt(l),y=y==null?0:zl(Et(y),0,l.length),d=Jr(d),l.slice(y,y+d.length)==d}function A3(l,d,y){var M=H.templateSettings;y&&Er(l,d,y)&&(d=n),l=qt(l),d=Qp({},d,M,tE);var F=Qp({},d.imports,M.imports,tE),V=Xn(F),K=qv(F,V),Y,J,Ce=0,xe=d.interpolate||up,Pe="__p += '",Be=Xv((d.escape||up).source+"|"+xe.source+"|"+(xe===bo?zt:up).source+"|"+(d.evaluate||up).source+"|$","g"),Ze="//# sourceURL="+(Qt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UA+"]")+`
242
+ `;l.replace(Be,function(ut,$t,At,eo,Pr,to){return At||(At=eo),Pe+=l.slice(Ce,to).replace(CA,uF),$t&&(Y=!0,Pe+=`' +
243
+ __e(`+$t+`) +
244
+ '`),Pr&&(J=!0,Pe+=`';
245
+ `+Pr+`;
246
+ __p += '`),At&&(Pe+=`' +
247
+ ((__t = (`+At+`)) == null ? '' : __t) +
248
+ '`),Ce=to+ut.length,ut}),Pe+=`';
249
+ `;var ct=Qt.call(d,"variable")&&d.variable;if(!ct)Pe=`with (obj) {
250
+ `+Pe+`
251
+ }
252
+ `;else if(rt.test(ct))throw new yt(a);Pe=(J?Pe.replace(Un,""):Pe).replace(xr,"$1").replace(fn,"$1;"),Pe="function("+(ct||"obj")+`) {
253
+ `+(ct?"":`obj || (obj = {});
254
+ `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
255
+ function print() { __p += __j.call(arguments, '') }
256
+ `:`;
257
+ `)+Pe+`return __p
258
+ }`;var kt=KE(function(){return Wt(V,Ze+"return "+Pe).apply(n,K)});if(kt.source=Pe,Oy(kt))throw kt;return kt}function F3(l){return qt(l).toLowerCase()}function N3(l){return qt(l).toUpperCase()}function D3(l,d,y){if(l=qt(l),l&&(y||d===n))return nS(l);if(!l||!(d=Jr(d)))return l;var M=Xo(l),F=Xo(d),V=rS(M,F),K=oS(M,F)+1;return Fs(M,V,K).join("")}function B3(l,d,y){if(l=qt(l),l&&(y||d===n))return l.slice(0,sS(l)+1);if(!l||!(d=Jr(d)))return l;var M=Xo(l),F=oS(M,Xo(d))+1;return Fs(M,0,F).join("")}function z3(l,d,y){if(l=qt(l),l&&(y||d===n))return l.replace(ft,"");if(!l||!(d=Jr(d)))return l;var M=Xo(l),F=rS(M,Xo(d));return Fs(M,F).join("")}function H3(l,d){var y=O,M=N;if(Sn(d)){var F="separator"in d?d.separator:F;y="length"in d?Et(d.length):y,M="omission"in d?Jr(d.omission):M}l=qt(l);var V=l.length;if(ja(l)){var K=Xo(l);V=K.length}if(y>=V)return l;var Y=y-Va(M);if(Y<1)return M;var J=K?Fs(K,0,Y).join(""):l.slice(0,Y);if(F===n)return J+M;if(K&&(Y+=J.length-Y),Ly(F)){if(l.slice(Y).search(F)){var Ce,xe=J;for(F.global||(F=Xv(F.source,qt(sn.exec(F))+"g")),F.lastIndex=0;Ce=F.exec(xe);)var Pe=Ce.index;J=J.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(Jr(F),Y)!=Y){var Be=J.lastIndexOf(F);Be>-1&&(J=J.slice(0,Be))}return J+M}function j3(l){return l=qt(l),l&&yo.test(l)?l.replace(nn,vF):l}var V3=Xa(function(l,d,y){return l+(y?" ":"")+d.toUpperCase()}),Ny=qS("toUpperCase");function GE(l,d,y){return l=qt(l),d=y?n:d,d===n?fF(l)?wF(l):rF(l):l.match(d)||[]}var KE=It(function(l,d){try{return Xr(l,n,d)}catch(y){return Oy(y)?y:new yt(y)}}),U3=Qi(function(l,d){return Co(d,function(y){y=wi(y),Yi(l,y,_y(l[y],l))}),l});function W3(l){var d=l==null?0:l.length,y=lt();return l=d?vn(l,function(M){if(typeof M[1]!="function")throw new xo(s);return[y(M[0]),M[1]]}):[],It(function(M){for(var F=-1;++F<d;){var V=l[F];if(Xr(V[0],this,M))return Xr(V[1],this,M)}})}function G3(l){return vN(Eo(l,h))}function Dy(l){return function(){return l}}function K3(l,d){return l==null||l!==l?d:l}var q3=XS(),Y3=XS(!0);function Nr(l){return l}function By(l){return kS(typeof l=="function"?l:Eo(l,h))}function X3(l){return $S(Eo(l,h))}function Q3(l,d){return TS(l,Eo(d,h))}var J3=It(function(l,d){return function(y){return Hu(y,l,d)}}),Z3=It(function(l,d){return function(y){return Hu(l,y,d)}});function zy(l,d,y){var M=Xn(d),F=Rp(d,M);y==null&&!(Sn(d)&&(F.length||!M.length))&&(y=d,d=l,l=this,F=Rp(d,Xn(d)));var V=!(Sn(y)&&"chain"in y)||!!y.chain,K=Zi(l);return Co(F,function(Y){var J=d[Y];l[Y]=J,K&&(l.prototype[Y]=function(){var Ce=this.__chain__;if(V||Ce){var xe=l(this.__wrapped__),Pe=xe.__actions__=Lr(this.__actions__);return Pe.push({func:J,args:arguments,thisArg:l}),xe.__chain__=Ce,xe}return J.apply(l,Ms([this.value()],arguments))})}),l}function eB(){return nr._===this&&(nr._=kF),this}function Hy(){}function tB(l){return l=Et(l),It(function(d){return MS(d,l)})}var nB=yy(vn),rB=yy(Qx),oB=yy(Vv);function qE(l){return Py(l)?Uv(wi(l)):LN(l)}function iB(l){return function(d){return l==null?n:Hl(l,d)}}var sB=JS(),lB=JS(!0);function jy(){return[]}function Vy(){return!1}function aB(){return{}}function cB(){return""}function uB(){return!0}function dB(l,d){if(l=Et(l),l<1||l>A)return[];var y=q,M=cr(l,q);d=lt(d),l-=q;for(var F=Kv(M,d);++y<l;)d(y);return F}function fB(l){return wt(l)?vn(l,wi):Zr(l)?[l]:Lr(hE(qt(l)))}function pB(l){var d=++EF;return qt(l)+d}var hB=Dp(function(l,d){return l+d},0),mB=by("ceil"),gB=Dp(function(l,d){return l/d},1),vB=by("floor");function yB(l){return l&&l.length?_p(l,Nr,oy):n}function bB(l,d){return l&&l.length?_p(l,lt(d,2),oy):n}function wB(l){return eS(l,Nr)}function CB(l,d){return eS(l,lt(d,2))}function xB(l){return l&&l.length?_p(l,Nr,ay):n}function SB(l,d){return l&&l.length?_p(l,lt(d,2),ay):n}var EB=Dp(function(l,d){return l*d},1),PB=by("round"),kB=Dp(function(l,d){return l-d},0);function IB(l){return l&&l.length?Gv(l,Nr):0}function $B(l,d){return l&&l.length?Gv(l,lt(d,2)):0}return H.after=XD,H.ary=PE,H.assign=N5,H.assignIn=BE,H.assignInWith=Qp,H.assignWith=D5,H.at=B5,H.before=kE,H.bind=_y,H.bindAll=U3,H.bindKey=IE,H.castArray=a5,H.chain=xE,H.chunk=v4,H.compact=y4,H.concat=b4,H.cond=W3,H.conforms=G3,H.constant=Dy,H.countBy=ID,H.create=z5,H.curry=$E,H.curryRight=TE,H.debounce=ME,H.defaults=H5,H.defaultsDeep=j5,H.defer=QD,H.delay=JD,H.difference=w4,H.differenceBy=C4,H.differenceWith=x4,H.drop=S4,H.dropRight=E4,H.dropRightWhile=P4,H.dropWhile=k4,H.fill=I4,H.filter=TD,H.flatMap=RD,H.flatMapDeep=OD,H.flatMapDepth=LD,H.flatten=yE,H.flattenDeep=$4,H.flattenDepth=T4,H.flip=ZD,H.flow=q3,H.flowRight=Y3,H.fromPairs=M4,H.functions=Y5,H.functionsIn=X5,H.groupBy=AD,H.initial=R4,H.intersection=O4,H.intersectionBy=L4,H.intersectionWith=A4,H.invert=J5,H.invertBy=Z5,H.invokeMap=ND,H.iteratee=By,H.keyBy=DD,H.keys=Xn,H.keysIn=Fr,H.map=Wp,H.mapKeys=t3,H.mapValues=n3,H.matches=X3,H.matchesProperty=Q3,H.memoize=Kp,H.merge=r3,H.mergeWith=zE,H.method=J3,H.methodOf=Z3,H.mixin=zy,H.negate=qp,H.nthArg=tB,H.omit=o3,H.omitBy=i3,H.once=e5,H.orderBy=BD,H.over=nB,H.overArgs=t5,H.overEvery=rB,H.overSome=oB,H.partial=Ry,H.partialRight=_E,H.partition=zD,H.pick=s3,H.pickBy=HE,H.property=qE,H.propertyOf=iB,H.pull=B4,H.pullAll=wE,H.pullAllBy=z4,H.pullAllWith=H4,H.pullAt=j4,H.range=sB,H.rangeRight=lB,H.rearg=n5,H.reject=VD,H.remove=V4,H.rest=r5,H.reverse=Ty,H.sampleSize=WD,H.set=a3,H.setWith=c3,H.shuffle=GD,H.slice=U4,H.sortBy=YD,H.sortedUniq=Q4,H.sortedUniqBy=J4,H.split=R3,H.spread=o5,H.tail=Z4,H.take=eD,H.takeRight=tD,H.takeRightWhile=nD,H.takeWhile=rD,H.tap=yD,H.throttle=i5,H.thru=Up,H.toArray=FE,H.toPairs=jE,H.toPairsIn=VE,H.toPath=fB,H.toPlainObject=DE,H.transform=u3,H.unary=s5,H.union=oD,H.unionBy=iD,H.unionWith=sD,H.uniq=lD,H.uniqBy=aD,H.uniqWith=cD,H.unset=d3,H.unzip=My,H.unzipWith=CE,H.update=f3,H.updateWith=p3,H.values=Za,H.valuesIn=h3,H.without=uD,H.words=GE,H.wrap=l5,H.xor=dD,H.xorBy=fD,H.xorWith=pD,H.zip=hD,H.zipObject=mD,H.zipObjectDeep=gD,H.zipWith=vD,H.entries=jE,H.entriesIn=VE,H.extend=BE,H.extendWith=Qp,zy(H,H),H.add=hB,H.attempt=KE,H.camelCase=y3,H.capitalize=UE,H.ceil=mB,H.clamp=m3,H.clone=c5,H.cloneDeep=d5,H.cloneDeepWith=f5,H.cloneWith=u5,H.conformsTo=p5,H.deburr=WE,H.defaultTo=K3,H.divide=gB,H.endsWith=b3,H.eq=Jo,H.escape=w3,H.escapeRegExp=C3,H.every=$D,H.find=MD,H.findIndex=gE,H.findKey=V5,H.findLast=_D,H.findLastIndex=vE,H.findLastKey=U5,H.floor=vB,H.forEach=SE,H.forEachRight=EE,H.forIn=W5,H.forInRight=G5,H.forOwn=K5,H.forOwnRight=q5,H.get=Ay,H.gt=h5,H.gte=m5,H.has=Q5,H.hasIn=Fy,H.head=bE,H.identity=Nr,H.includes=FD,H.indexOf=_4,H.inRange=g3,H.invoke=e3,H.isArguments=Ul,H.isArray=wt,H.isArrayBuffer=g5,H.isArrayLike=Ar,H.isArrayLikeObject=Ln,H.isBoolean=v5,H.isBuffer=Ns,H.isDate=y5,H.isElement=b5,H.isEmpty=w5,H.isEqual=C5,H.isEqualWith=x5,H.isError=Oy,H.isFinite=S5,H.isFunction=Zi,H.isInteger=RE,H.isLength=Yp,H.isMap=OE,H.isMatch=E5,H.isMatchWith=P5,H.isNaN=k5,H.isNative=I5,H.isNil=T5,H.isNull=$5,H.isNumber=LE,H.isObject=Sn,H.isObjectLike=Tn,H.isPlainObject=Ku,H.isRegExp=Ly,H.isSafeInteger=M5,H.isSet=AE,H.isString=Xp,H.isSymbol=Zr,H.isTypedArray=Ja,H.isUndefined=_5,H.isWeakMap=R5,H.isWeakSet=O5,H.join=F4,H.kebabCase=x3,H.last=ko,H.lastIndexOf=N4,H.lowerCase=S3,H.lowerFirst=E3,H.lt=L5,H.lte=A5,H.max=yB,H.maxBy=bB,H.mean=wB,H.meanBy=CB,H.min=xB,H.minBy=SB,H.stubArray=jy,H.stubFalse=Vy,H.stubObject=aB,H.stubString=cB,H.stubTrue=uB,H.multiply=EB,H.nth=D4,H.noConflict=eB,H.noop=Hy,H.now=Gp,H.pad=P3,H.padEnd=k3,H.padStart=I3,H.parseInt=$3,H.random=v3,H.reduce=HD,H.reduceRight=jD,H.repeat=T3,H.replace=M3,H.result=l3,H.round=PB,H.runInContext=Q,H.sample=UD,H.size=KD,H.snakeCase=_3,H.some=qD,H.sortedIndex=W4,H.sortedIndexBy=G4,H.sortedIndexOf=K4,H.sortedLastIndex=q4,H.sortedLastIndexBy=Y4,H.sortedLastIndexOf=X4,H.startCase=O3,H.startsWith=L3,H.subtract=kB,H.sum=IB,H.sumBy=$B,H.template=A3,H.times=dB,H.toFinite=es,H.toInteger=Et,H.toLength=NE,H.toLower=F3,H.toNumber=Io,H.toSafeInteger=F5,H.toString=qt,H.toUpper=N3,H.trim=D3,H.trimEnd=B3,H.trimStart=z3,H.truncate=H3,H.unescape=j3,H.uniqueId=pB,H.upperCase=V3,H.upperFirst=Ny,H.each=SE,H.eachRight=EE,H.first=bE,zy(H,function(){var l={};return yi(H,function(d,y){Qt.call(H.prototype,y)||(l[y]=d)}),l}(),{chain:!1}),H.VERSION=r,Co(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){H[l].placeholder=H}),Co(["drop","take"],function(l,d){_t.prototype[l]=function(y){y=y===n?1:Gn(Et(y),0);var M=this.__filtered__&&!d?new _t(this):this.clone();return M.__filtered__?M.__takeCount__=cr(y,M.__takeCount__):M.__views__.push({size:cr(y,q),type:l+(M.__dir__<0?"Right":"")}),M},_t.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Co(["filter","map","takeWhile"],function(l,d){var y=d+1,M=y==L||y==B;_t.prototype[l]=function(F){var V=this.clone();return V.__iteratees__.push({iteratee:lt(F,3),type:y}),V.__filtered__=V.__filtered__||M,V}}),Co(["head","last"],function(l,d){var y="take"+(d?"Right":"");_t.prototype[l]=function(){return this[y](1).value()[0]}}),Co(["initial","tail"],function(l,d){var y="drop"+(d?"":"Right");_t.prototype[l]=function(){return this.__filtered__?new _t(this):this[y](1)}}),_t.prototype.compact=function(){return this.filter(Nr)},_t.prototype.find=function(l){return this.filter(l).head()},_t.prototype.findLast=function(l){return this.reverse().find(l)},_t.prototype.invokeMap=It(function(l,d){return typeof l=="function"?new _t(this):this.map(function(y){return Hu(y,l,d)})}),_t.prototype.reject=function(l){return this.filter(qp(lt(l)))},_t.prototype.slice=function(l,d){l=Et(l);var y=this;return y.__filtered__&&(l>0||d<0)?new _t(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),d!==n&&(d=Et(d),y=d<0?y.dropRight(-d):y.take(d-l)),y)},_t.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},_t.prototype.toArray=function(){return this.take(q)},yi(_t.prototype,function(l,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),M=/^(?:head|last)$/.test(d),F=H[M?"take"+(d=="last"?"Right":""):d],V=M||/^find/.test(d);F&&(H.prototype[d]=function(){var K=this.__wrapped__,Y=M?[1]:arguments,J=K instanceof _t,Ce=Y[0],xe=J||wt(K),Pe=function($t){var At=F.apply(H,Ms([$t],Y));return M&&Be?At[0]:At};xe&&y&&typeof Ce=="function"&&Ce.length!=1&&(J=xe=!1);var Be=this.__chain__,Ze=!!this.__actions__.length,ct=V&&!Be,kt=J&&!Ze;if(!V&&xe){K=kt?K:new _t(this);var ut=l.apply(K,Y);return ut.__actions__.push({func:Up,args:[Pe],thisArg:n}),new So(ut,Be)}return ct&&kt?l.apply(this,Y):(ut=this.thru(Pe),ct?M?ut.value()[0]:ut.value():ut)})}),Co(["pop","push","shift","sort","splice","unshift"],function(l){var d=gp[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",M=/^(?:pop|shift)$/.test(l);H.prototype[l]=function(){var F=arguments;if(M&&!this.__chain__){var V=this.value();return d.apply(wt(V)?V:[],F)}return this[y](function(K){return d.apply(wt(K)?K:[],F)})}}),yi(_t.prototype,function(l,d){var y=H[d];if(y){var M=y.name+"";Qt.call(Ka,M)||(Ka[M]=[]),Ka[M].push({name:d,func:y})}}),Ka[Np(n,w).name]=[{name:"wrapper",func:n}],_t.prototype.clone=jF,_t.prototype.reverse=VF,_t.prototype.value=UF,H.prototype.at=bD,H.prototype.chain=wD,H.prototype.commit=CD,H.prototype.next=xD,H.prototype.plant=ED,H.prototype.reverse=PD,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=kD,H.prototype.first=H.prototype.head,Lu&&(H.prototype[Lu]=SD),H},Ua=CF();Fl?((Fl.exports=Ua)._=Ua,Bv._=Ua):nr._=Ua}).call(io)})(rte,ds);const Jt=ds;globalThis&&globalThis.__awaiter;function ote(e,t,n,r){const o=u.useRef(t);AR(()=>{o.current=t},[t]),u.useEffect(()=>{var i;const s=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(s&&s.addEventListener))return;const a=c=>o.current(c);return s.addEventListener(e,a,r),()=>{s.removeEventListener(e,a,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function ite(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const AR=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function ste(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return ote("resize",n),AR(()=>{n()},[]),e}function oo(e){const t=ite(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function lte(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function ate(e,t){const n=[];for(const r of lte(t))n.push(r,e);return n.splice(-1,1),Lm(n)}function Lm(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?Lm(t):u.createElement(u.Fragment,{key:n,children:t}))}const db=Symbol(),cte=Symbol(),PC=Symbol();let ute=(e,t)=>new Proxy(e,t);const fb=Object.getPrototypeOf,pb=new WeakMap,FR=e=>e&&(pb.has(e)?pb.get(e):fb(e)===Object.prototype||fb(e)===Array.prototype),Am=e=>typeof e=="object"&&e!==null,uI=new WeakMap,kC=e=>e[PC]||e,NR=(e,t,n)=>{if(!FR(e))return e;const r=kC(e),o=(s=>Object.isFrozen(s)||Object.values(Object.getOwnPropertyDescriptors(s)).some(a=>!a.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((s,a)=>{const c={f:a};let f=!1;const p=(m,v)=>{if(!f){let b=c.a.get(s);b||(b=new Set,c.a.set(s,b)),v&&b.has(db)||b.add(m)}},h={get:(m,v)=>v===PC?s:(p(v),NR(m[v],c.a,c.c)),has:(m,v)=>v===cte?(f=!0,c.a.delete(s),!0):(p(v),v in m),getOwnPropertyDescriptor:(m,v)=>(p(v,!0),Object.getOwnPropertyDescriptor(m,v)),ownKeys:m=>(p(db),Reflect.ownKeys(m))};return a&&(h.set=h.deleteProperty=()=>!1),[h,c]})(r,o),i[1].p=ute(o?(s=>{let a=uI.get(s);if(!a){if(Array.isArray(s))a=Array.from(s);else{const c=Object.getOwnPropertyDescriptors(s);Object.values(c).forEach(f=>{f.configurable=!0}),a=Object.create(fb(s),c)}uI.set(s,a)}return a})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},dte=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((o,i)=>o!==r[i])},DR=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Am(e)||!Am(t))return!0;const o=n.get(kC(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;for(const s of o){const a=s===db?dte(e,t):DR(e[s],t[s],n,r);if(a!==!0&&a!==!1||(i=a),i)break}return i===null&&(i=!0),r&&r.set(e,{n:t,g:i}),i},fte=e=>FR(e)&&e[PC]||null,dI=(e,t=!0)=>{pb.set(e,t)},pte=(e,t)=>{const n=[],r=new WeakSet,o=(i,s)=>{if(r.has(i))return;Am(i)&&r.add(i);const a=Am(i)&&t.get(kC(i));a?a.forEach(c=>{o(i[c],s?[...s,c]:[c])}):s&&n.push(s)};return o(e),n};var hb={},hte={get exports(){return hb},set exports(e){hb=e}},BR={};/**
259
+ * @license React
260
+ * use-sync-external-store-shim.production.min.js
261
+ *
262
+ * Copyright (c) Facebook, Inc. and its affiliates.
263
+ *
264
+ * This source code is licensed under the MIT license found in the
265
+ * LICENSE file in the root directory of this source tree.
266
+ */var ru=u;function mte(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gte=typeof Object.is=="function"?Object.is:mte,vte=ru.useState,yte=ru.useEffect,bte=ru.useLayoutEffect,wte=ru.useDebugValue;function Cte(e,t){var n=t(),r=vte({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return bte(function(){o.value=n,o.getSnapshot=t,_0(o)&&i({inst:o})},[e,n,t]),yte(function(){return _0(o)&&i({inst:o}),e(function(){_0(o)&&i({inst:o})})},[e]),wte(n),n}function _0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gte(e,n)}catch(r){return!0}}function xte(e,t){return t()}var Ste=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?xte:Cte;BR.useSyncExternalStore=ru.useSyncExternalStore!==void 0?ru.useSyncExternalStore:Ste;(function(e){e.exports=BR})(hte);const Ete=Bb(hb),Pte=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Ii=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Fm=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),kte=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),cd=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),fI=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),zR=new WeakSet,mb=e=>typeof e=="object"&&e!==null,Ite=e=>mb(e)&&!zR.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),pI=new WeakMap;let hI=1;const mI=new WeakMap;function qf(e={}){if(!mb(e))throw new Error("object required");const t=pI.get(e);if(t)return t;let n=hI;const r=new Set,o=(m,v=++hI)=>{n!==v&&(n=v,r.forEach(b=>b(m,v)))},i=new Map,s=m=>{let v=i.get(m);return v||(v=(b,g)=>{const S=[...b];S[1]=[m,...S[1]],o(S,g)},i.set(m,v)),v},a=m=>{const v=i.get(m);return i.delete(m),v},c=(m,v)=>{const b=mI.get(v);if((b==null?void 0:b[0])===n)return b[1];const g=Array.isArray(m)?[]:Object.create(Object.getPrototypeOf(m));return dI(g,!0),mI.set(v,[n,g]),Reflect.ownKeys(m).forEach(S=>{const w=Reflect.get(m,S,v);if(zR.has(w))dI(w,!1),g[S]=w;else if(w instanceof Promise)if(cd in w)g[S]=w[cd];else{const P=w[fI]||w;Object.defineProperty(g,S,{get(){if(cd in w)return w[cd];throw P}})}else w!=null&&w[Ii]?g[S]=w[Fm]:g[S]=w}),Object.freeze(g)},f=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),p={get(m,v,b){return v===Pte?n:v===Ii?r:v===Fm?c(m,b):v===kte?p:Reflect.get(m,v,b)},deleteProperty(m,v){const b=Reflect.get(m,v),g=b==null?void 0:b[Ii];g&&g.delete(a(v));const S=Reflect.deleteProperty(m,v);return S&&o(["delete",[v],b]),S},is:Object.is,canProxy:Ite,set(m,v,b,g){var S;const w=Reflect.has(m,v),P=Reflect.get(m,v,g);if(w&&this.is(P,b))return!0;const C=P==null?void 0:P[Ii];C&&C.delete(a(v)),mb(b)&&(b=fte(b)||b);let E;return(S=Object.getOwnPropertyDescriptor(m,v))!=null&&S.set?E=b:b instanceof Promise?E=b.then(I=>(E[cd]=I,o(["resolve",[v],I]),I)).catch(I=>{E[fI]=I,o(["reject",[v],I])}):b!=null&&b[Ii]?(E=b,E[Ii].add(s(v))):this.canProxy(b)?(E=qf(b),E[Ii].add(s(v))):E=b,Reflect.set(m,v,E,g),o(["set",[v],b,P]),!0}},h=new Proxy(f,p);return pI.set(e,h),Reflect.ownKeys(e).forEach(m=>{const v=Object.getOwnPropertyDescriptor(e,m);v.get||v.set?Object.defineProperty(f,m,v):h[m]=e[m]}),h}function HR(e,t,n){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Ii])&&console.warn("Please use proxy object");let r;const o=[],i=s=>{if(o.push(s),n){t(o.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,t(o.splice(0))}))};return e[Ii].add(i),()=>{e[Ii].delete(i)}}function gI(e){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Fm])&&console.warn("Please use proxy object"),e[Fm]}const{useSyncExternalStore:$te}=Ete,Tte=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=pte(e,t)}),u.useDebugValue(n.current)};function sv(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=$te(u.useCallback(f=>{const p=HR(e,f,n);return f(),p},[e,n]),()=>{const f=gI(e);try{if(!i&&r.current&&o.current&&!DR(r.current,f,o.current,new WeakMap))return r.current}catch(p){}return f},()=>gI(e));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Tte(s,a);const c=u.useMemo(()=>new WeakMap,[]);return NR(s,a,c)}const da=qf([]),Xh={closableContent:"x",padding:!0};function Mte(){const e=sv(da);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(_te,Ae({key:n},t))))}function _te(e){const t=u.useRef();return u.useEffect(()=>{var n;(n=t.current)==null||n.focus()},[]),e=Ae(Ae({},Xh),e),e.Container?u.createElement(e.Container,e):u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Rte,onClick:()=>fi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ae({className:"dialog",onClick(n){n.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){fi()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},typeof e.icon=="function"?u.createElement(e.icon):e.icon),u.createElement("div",{className:"dialog-title"},e.title),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))))}function Rte(e){e.key==="Escape"&&fi()}function hi(e){const t=Math.random();return e.$id=t,da.push(e),n=>{var o;const r=da.findIndex(i=>i.$id===t);r<0||(da.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function fi(e){var n;let t=da.length;for(;t--;){const r=da[t];if(!r.reserveClosing)return da.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var fa={},lv={},ou={};const Ote={},Lte=Object.freeze(Object.defineProperty({__proto__:null,default:Ote},Symbol.toStringTag,{value:"Module"})),vI=OB(Lte);Object.defineProperty(ou,"__esModule",{value:!0});var yI=ou.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||vI.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);yI=ou.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=vI,n=r=>o=>t.createHash(r).update(o).digest().buffer;yI=ou.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(lv,"__esModule",{value:!0});lv.SRPParameters=void 0;const $h=ou;class iu{constructor(t=iu.PrimeGroup[2048],n=iu.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}lv.SRPParameters=iu;iu.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)}};iu.H={SHA1:$h.crossEnvCrypto.hashFunctions.SHA1,SHA256:$h.crossEnvCrypto.hashFunctions.SHA256,SHA384:$h.crossEnvCrypto.hashFunctions.SHA384,SHA512:$h.crossEnvCrypto.hashFunctions.SHA512};var av={},cv={};(function(e){var t=io&&io.__awaiter||function(C,E,I,T){function k($){return $ instanceof I?$:new I(function(R){R($)})}return new(I||(I=Promise))(function($,R){function O(j){try{U(T.next(j))}catch(L){R(L)}}function N(j){try{U(T.throw(j))}catch(L){R(L)}}function U(j){j.done?$(j.value):k(j.value).then(O,N)}U((T=T.apply(C,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=ou,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=C=>{const E=C.toString(16),I=new ArrayBuffer(Math.ceil(E.length/2)),T=new Uint8Array(I);let k=0;E.length%2!==0&&(T[0]=parseInt(E[0],16),k=1);for(let $=0;$<I.byteLength;$++)T[$+k]=parseInt(E.slice(2*$+k,2*$+2+k),16);return I};e.bigIntToArrayBuffer=s;const a=C=>{const E=[];return new Uint8Array(C).forEach(I=>{E.push(("0"+I.toString(16)).slice(-2))}),BigInt(`0x${E.join("")}`)};e.arrayBufferToBigInt=a;function c(C){return new TextEncoder().encode(C).buffer}e.stringToArrayBuffer=c;const f=(C,E)=>{const I=new Uint8Array(C);if(I.length<E){const T=new Uint8Array(E);return T.fill(0,0,E-I.length),T.set(I,E-I.length),T}return I};e.padStartArrayBuffer=f;function p(C,...E){const I=E.reduce((k,$)=>k+$.byteLength,0),T=new Uint8Array(I);for(let k=0,$=0;$<E.length;$++)T.set(new Uint8Array(E[$]),k),k+=E[$].byteLength;return C.H(T)}e.hash=p;function h(C,E,...I){const T=I.map(k=>e.padStartArrayBuffer(k,E));return p(C,...T)}e.hashPadded=h;function m(C=10){const E=new Uint8Array(Math.ceil(Math.ceil(C/2)));return n.crossEnvCrypto.randomBytes(E),E.reduce((I,T)=>{const k=T.toString(16).toString();return k.length===1?I+"0"+k:I+k},"").slice(0,C)}e.generateRandomString=m;function v(C=16){return e.arrayBufferToBigInt(P(C))}e.generateRandomBigInt=v;function b(C,E,I,T){return t(this,void 0,void 0,function*(){if(!E||!E.trim())throw new Error("Identity (I) must not be null or empty.");if(!I)throw new Error("Salt (s) must not be null.");if(!T)throw new Error("Password (P) must not be null");const k=yield C.computeX(E,I,T);return C.computeVerifier(k)})}e.createVerifier=b;function g(C,E,I,T){return t(this,void 0,void 0,function*(){const k=yield C.generateRandomSalt(T);return{s:k,v:yield b(C,E,k,I)}})}e.createVerifierAndSalt=g;const S=C=>t(void 0,void 0,void 0,function*(){return(yield p(C,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=S;function w(C,E,I){let T=o;for(;E>r;)E%i==o?(T=C*T%I,E-=o):(C=C*C%I,E/=i);return T}e.modPow=w;const P=C=>{const E=new Uint8Array(C);return n.crossEnvCrypto.randomBytes(E),E.buffer}})(cv);var Hs=io&&io.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(av,"__esModule",{value:!0});av.SRPRoutines=void 0;const rn=cv;class Ate{constructor(t){this.parameters=t}hash(...t){return rn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return rn.hashPadded(this.parameters,n,...t)}computeK(){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(this.parameters.primeGroup.N),rn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Hs(this,void 0,void 0,function*(){const n=yield rn.hashBitCount(this.parameters),r=t||2*n/8;return rn.generateRandomBigInt(r)})}computeX(t,n,r){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Hs(this,void 0,void 0,function*(){return yield this.hash(rn.stringToArrayBuffer(n))})}computeVerifier(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=rn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return rn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hashPadded(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(r),rn.bigIntToArrayBuffer(o),rn.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return Hs(this,void 0,void 0,function*(){return rn.arrayBufferToBigInt(yield this.hash(rn.bigIntToArrayBuffer(t),rn.bigIntToArrayBuffer(n),rn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=rn.modPow(this.parameters.primeGroup.g,n,s)*t%s;return rn.modPow(i+s-c,a,s)}}av.SRPRoutines=Ate;var fl={},IC=io&&io.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(fl,"__esModule",{value:!0});fl.SRPClientSessionStep2=fl.SRPClientSessionStep1=fl.SRPClientSession=void 0;class Fte{constructor(t){this.routines=t}step1(t,n){return IC(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 uv(this.routines,t,r)})}}fl.SRPClientSession=Fte;class uv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return IC(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),f=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new dv(this.routines,i,f,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new uv(t,n.I,new Uint8Array(n.IH).buffer)}}fl.SRPClientSessionStep1=uv;class dv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return IC(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 dv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}fl.SRPClientSessionStep2=dv;var su={},gb=io&&io.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{f(r.next(p))}catch(h){s(h)}}function c(p){try{f(r.throw(p))}catch(h){s(h)}}function f(p){p.done?i(p.value):o(p.value).then(a,c)}f((r=r.apply(e,t||[])).next())})};Object.defineProperty(su,"__esModule",{value:!0});su.SRPServerSessionStep1=su.SRPServerSession=void 0;const vb=cv;class Nte{constructor(t){this.routines=t}step1(t,n,r){return gb(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=Dte(this.routines.parameters,i,r,o);return new fv(this.routines,t,n,r,o,s)})}}su.SRPServerSession=Nte;class fv{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return gb(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 Bte(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return gb(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 fv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}su.SRPServerSessionStep1=fv;const Dte=(e,t,n,r)=>(vb.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,Bte=(e,t,n,r,o)=>vb.modPow(vb.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=lv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=av;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=fl;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=su;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=cv;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(fa);function zte(e,t,n){return pt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new fa.SRPRoutines(new fa.SRPParameters),c=yield(yield new fa.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),f=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(f.proof)).catch(()=>Promise.reject("trust")),f})}function Cu(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=["","K","M","G","T"],i=1,s=n,a=0;for(;a<o.length&&e>s;)i=s,s*=n,++a;return e/=i,(!a||isNaN(r)?Jt.round(e,isNaN(r)?1:r):e.toFixed(r))+" "+(o[a]||"")+t}function Hte(e,t,n=""){return t?e+t+n:""}function jR(e){const t=e+"=";let r=decodeURIComponent(document.cookie).split(";");for(let o of r)if(o=o.trim(),o.startsWith(t))return o.substring(t.length,o.length);return""}function VR(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function jte(e,t){return!t||t.endsWith(e)?t:t+e}function Vte(e){return Boolean(e)}function lu(e){return e.filter(Vte)}function Ute(e,t){return Object.defineProperties(e,VR(t,n=>({enumerable:!1,writable:!0,value:n})))}function Wte(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Gte(e){return qe("MuiLoadingButton",e)}const Kte=Ue("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),rs=Kte,qte=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Yte=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${fe(n)}`],endIcon:[t&&`endIconLoading${fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${fe(n)}`]},i=Ie(o,Gte,r);return x({},r,i)},Xte=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Qte=re(vr,{shouldForwardProp:e=>Xte(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${rs.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${rs.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>x({[`& .${rs.startIconLoadingStart}, & .${rs.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}),[`&.${rs.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${rs.startIconLoadingStart}, & .${rs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${rs.startIconLoadingStart}, & .${rs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Jte=re("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>x({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Zte=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:f="center",variant:p="text"}=r,h=oe(r,qte),m=kn(s),v=c!=null?c:_.jsx(Gf,{"aria-labelledby":m,color:"inherit",size:16}),b=x({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:f,variant:p}),g=Yte(b),S=a?_.jsx(Jte,{className:g.loadingIndicator,ownerState:b,children:v}):null;return _.jsxs(Qte,x({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:S,b.loadingPosition==="end"?S:o]}))}),ene=Zte,tne=u.createContext({}),$C=tne,nne=["element"];function rne(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function one(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 UR=u.createContext({});function ine(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const bI=()=>{};function sne(e){const[,t]=u.useState(),{registerDescendant:n=bI,unregisterDescendant:r=bI,descendants:o=[],parentId:i=null}=u.useContext(UR),s=rne(o,f=>f.element===e.element),a=ine(o),c=o.some((f,p)=>a&&a[p]&&a[p].element!==f.element);return Rn(()=>{if(e.element)return n(x({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function WR(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:f}=c,p=oe(c,nne);o(h=>{let m;if(h.length===0)return[x({},p,{element:f,index:0})];const v=one(h,f);if(h[v]&&h[v].element===f)m=h;else{const b=x({},p,{element:f,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),m})},[]),s=u.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return _.jsx(UR.Provider,{value:a,children:t})}function lne(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:f,toggleExpansion:p}=u.useContext($C),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,b=i?i(e):!1,g=s?s(e):!1;return{disabled:b,expanded:m,selected:g,focused:v,handleExpansion:C=>{if(!b){v||t(C,e);const E=a&&(C.shiftKey||C.ctrlKey||C.metaKey);h&&!(E&&n(e))&&p(C,e)}},handleSelection:C=>{b||(v||t(C,e),a&&(C.shiftKey||C.ctrlKey||C.metaKey)?C.shiftKey?f(C,{end:e}):c(C,e,!0):c(C,e))},preventSelection:C=>{(C.shiftKey||C.ctrlKey||C.metaKey||b)&&C.preventDefault()}}}const ane=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],cne=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:f,onClick:p,onMouseDown:h}=t,m=oe(t,ane),{disabled:v,expanded:b,selected:g,focused:S,handleExpansion:w,handleSelection:P,preventSelection:C}=lne(f),E=a||s||i,I=k=>{C(k),h&&h(k)},T=k=>{w(k),P(k),p&&p(k)};return _.jsxs("div",x({className:he(o,r.root,b&&r.expanded,g&&r.selected,S&&r.focused,v&&r.disabled),onClick:T,onMouseDown:I,ref:n},m,{children:[_.jsx("div",{className:r.iconContainer,children:E}),_.jsx("div",{className:r.label,children:c})]}))}),GR=cne;function une(e){return qe("MuiTreeItem",e)}const dne=Ue("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),js=dne,fne=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],pne=e=>{const{classes:t}=e;return Ie({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},une,t)},hne=re("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),mne=re(GR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${js.iconContainer}`]:t.iconContainer},t.label&&{[`& .${js.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${js.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${js.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(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}))`:ot(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})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${js.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${js.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${js.label}`]:x({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),gne=re(G_,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),vne=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=GR,ContentProps:c,endIcon:f,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:S,onMouseDown:w,TransitionComponent:P=G_,TransitionProps:C}=r,E=oe(r,fne),{icons:I={},focus:T,isExpanded:k,isFocused:$,isSelected:R,isDisabled:O,multiSelect:N,disabledItemsFocusable:U,mapFirstChar:j,unMapFirstChar:L,registerNode:D,unregisterNode:B,treeId:W}=u.useContext($C);let A=null;v!=null?A=v:W&&g&&(A=`${W}-${g}`);const[z,G]=u.useState(null),q=u.useRef(null),X=xt(G,n),ie=u.useMemo(()=>({element:z,id:g}),[g,z]),{index:ee,parentId:se}=sne(ie),ae=Boolean(Array.isArray(o)?o.length:o),we=k?k(g):!1,de=$?$(g):!1,le=R?R(g):!1,te=O?O(g):!1,be=x({},r,{expanded:we,focused:de,selected:le,disabled:te}),$e=pne(be);let Se,Ne;ae&&(we?Ne=s||I.defaultCollapseIcon:Ne=p||I.defaultExpandIcon),ae?Se=I.defaultParentIcon:Se=f||I.defaultEndIcon,u.useEffect(()=>{if(D&&B&&ee!==-1)return D({id:g,idAttribute:A,index:ee,parentId:se,expandable:ae,disabled:h}),()=>{B(g)}},[D,B,se,ee,g,ae,h,A]),u.useEffect(()=>{if(j&&L&&b)return j(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{L(g)}},[j,L,g,b]);let Re;N?Re=le:le&&(Re=!0);function Fe(Le){Le.target===Le.currentTarget&&Cn(Le.target).getElementById(W).focus({preventScroll:!0});const et=!U&&te;!de&&Le.currentTarget===Le.target&&!et&&T(Le,g)}return _.jsxs(hne,x({className:he($e.root,i),role:"treeitem","aria-expanded":ae?we:null,"aria-selected":Re,"aria-disabled":te||null,ref:X,id:A,tabIndex:-1},E,{ownerState:be,onFocus:Fe,children:[_.jsx(mne,x({as:a,ref:q,classes:{root:$e.content,expanded:$e.expanded,selected:$e.selected,focused:$e.focused,disabled:$e.disabled,iconContainer:$e.iconContainer,label:$e.label},label:b,nodeId:g,onClick:S,onMouseDown:w,icon:m,expansionIcon:Ne,displayIcon:Se,ownerState:be},c)),o&&_.jsx(WR,{id:g,children:_.jsx(gne,x({as:P,unmountOnExit:!0,className:$e.group,in:we,component:"ul",role:"group"},C,{children:o}))})]}))}),yb=vne;function yne(e){return qe("MuiTreeView",e)}Ue("MuiTreeView",["root"]);const bne=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],wne=e=>{const{classes:t}=e;return Ie({root:["root"]},yne,t)},Cne=re("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function xne(e){return e&&e.length===1&&e.match(/\S/)}function wI(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function CI(){return!1}const Sne=[],Ene=[],Pne=u.forwardRef(function(t,n){const r=Je({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Sne,defaultExpandIcon:f,defaultParentIcon:p,defaultSelected:h=Ene,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:S=!1,onBlur:w,onFocus:P,onKeyDown:C,onNodeFocus:E,onNodeSelect:I,onNodeToggle:T,selected:k}=r,$=oe(r,bne),O=Yr().direction==="rtl",N=x({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:S}),U=wne(N),j=kn(g),L=u.useRef(null),D=xt(L,n),[B,W]=u.useState(null),A=u.useRef({}),z=u.useRef({}),[G,q]=hs({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,ie]=hs({controlled:k,default:h,name:"TreeView",state:"selected"}),ee=u.useCallback(ce=>Array.isArray(G)?G.indexOf(ce)!==-1:!1,[G]),se=u.useCallback(ce=>A.current[ce]&&A.current[ce].expandable,[]),ae=u.useCallback(ce=>Array.isArray(X)?X.indexOf(ce)!==-1:X===ce,[X]),we=u.useCallback(ce=>{let me=A.current[ce];if(!me)return!1;if(me.disabled)return!0;for(;me.parentId!=null;)if(me=A.current[me.parentId],me.disabled)return!0;return!1},[]),de=ce=>B===ce,le=ce=>Object.keys(A.current).map(me=>A.current[me]).filter(me=>me.parentId===ce).sort((me,He)=>me.index-He.index).map(me=>me.id),te=ce=>{let me=le(ce);return m||(me=me.filter(He=>!we(He))),me},be=ce=>{if(ee(ce)&&te(ce).length>0)return te(ce)[0];let me=A.current[ce];for(;me!=null;){const He=te(me.parentId),ft=He[He.indexOf(me.id)+1];if(ft)return ft;me=A.current[me.parentId]}return null},$e=ce=>{const me=A.current[ce],He=te(me.parentId),ft=He.indexOf(ce);if(ft===0)return me.parentId;let vt=He[ft-1];for(;ee(vt)&&te(vt).length>0;)vt=te(vt).pop();return vt},Se=()=>{let ce=te(null).pop();for(;ee(ce);)ce=te(ce).pop();return ce},Ne=()=>te(null)[0],Re=ce=>A.current[ce].parentId,Fe=(ce,me)=>{if(ce===me)return[ce,me];const He=A.current[ce],ft=A.current[me];if(He.parentId===ft.id||ft.parentId===He.id)return ft.parentId===He.id?[He.id,ft.id]:[ft.id,He.id];const vt=[He.id],ze=[ft.id];let st=He.parentId,ve=ft.parentId,ge=ze.indexOf(st)!==-1,rt=vt.indexOf(ve)!==-1,at=!0,zt=!0;for(;!rt&&!ge;)at&&(vt.push(st),ge=ze.indexOf(st)!==-1,at=st!==null,!ge&&at&&(st=A.current[st].parentId)),zt&&!ge&&(ze.push(ve),rt=vt.indexOf(ve)!==-1,zt=ve!==null,!rt&&zt&&(ve=A.current[ve].parentId));const sn=ge?st:ve,gn=le(sn),Or=vt[vt.indexOf(sn)-1],Ba=ze[ze.indexOf(sn)-1];return gn.indexOf(Or)<gn.indexOf(Ba)?[ce,me]:[me,ce]},Le=(ce,me)=>{const[He,ft]=Fe(ce,me),vt=[He];let ze=He;for(;ze!==ft;)ze=be(ze),vt.push(ze);return vt},et=(ce,me)=>{me&&(W(me),E&&E(ce,me))},gt=(ce,me)=>et(ce,be(me)),nt=(ce,me)=>et(ce,$e(me)),tt=ce=>et(ce,Ne()),St=ce=>et(ce,Se()),dt=(ce,me,He)=>{let ft,vt;const ze=He.toLowerCase(),st=[],ve=[];Object.keys(z.current).forEach(ge=>{const rt=z.current[ge],at=A.current[ge],zt=at.parentId?ee(at.parentId):!0,sn=m?!1:we(ge);zt&&!sn&&(st.push(ge),ve.push(rt))}),ft=st.indexOf(me)+1,ft>=st.length&&(ft=0),vt=wI(ve,ft,ze),vt===-1&&(vt=wI(ve,0,ze)),vt>-1&&et(ce,st[vt])},it=(ce,me=B)=>{let He;G.indexOf(me)!==-1?He=G.filter(ft=>ft!==me):He=[me].concat(G),T&&T(ce,He),q(He)},Pt=(ce,me)=>{const He=A.current[me],vt=le(He.parentId).filter(st=>se(st)&&!ee(st)),ze=G.concat(vt);vt.length>0&&(q(ze),T&&T(ce,ze))},Qe=u.useRef(null),_e=u.useRef(!1),ne=u.useRef([]),ke=(ce,me)=>{let He=X.slice();const{start:ft,next:vt,current:ze}=me;!vt||!ze||(ne.current.indexOf(ze)===-1&&(ne.current=[]),_e.current?ne.current.indexOf(vt)!==-1?(He=He.filter(st=>st===ft||st!==ze),ne.current=ne.current.filter(st=>st===ft||st!==ze)):(He.push(vt),ne.current.push(vt)):(He.push(vt),ne.current.push(ze,vt)),I&&I(ce,He),ie(He))},Ee=(ce,me)=>{let He=X.slice();const{start:ft,end:vt}=me;_e.current&&(He=He.filter(ve=>ne.current.indexOf(ve)===-1));let ze=Le(ft,vt);ze=ze.filter(ve=>!we(ve)),ne.current=ze;let st=He.concat(ze);st=st.filter((ve,ge)=>st.indexOf(ve)===ge),I&&I(ce,st),ie(st)},Te=(ce,me)=>{let He;X.indexOf(me)!==-1?He=X.filter(ft=>ft!==me):He=[me].concat(X),I&&I(ce,He),ie(He)},Ke=(ce,me)=>{const He=S?[me]:me;I&&I(ce,He),ie(He)},bt=(ce,me,He=!1)=>me?(He?Te(ce,me):Ke(ce,me),Qe.current=me,_e.current=!1,ne.current=[],!0):!1,Nt=(ce,me,He=!1)=>{const{start:ft=Qe.current,end:vt,current:ze}=me;He?ke(ce,{start:ft,next:vt,current:ze}):ft!=null&&vt!=null&&Ee(ce,{start:ft,end:vt}),_e.current=!0},Dt=(ce,me)=>{Qe.current||(Qe.current=me);const He=_e.current?Qe.current:me;Nt(ce,{start:He,end:Ne()})},Yn=(ce,me)=>{Qe.current||(Qe.current=me);const He=_e.current?Qe.current:me;Nt(ce,{start:He,end:Se()})},dn=(ce,me)=>{we(be(me))||Nt(ce,{end:be(me),current:me},!0)},Un=(ce,me)=>{we($e(me))||Nt(ce,{end:$e(me),current:me},!0)},xr=ce=>{Nt(ce,{start:Ne(),end:Se()})},fn=u.useCallback(ce=>{const{id:me,index:He,parentId:ft,expandable:vt,idAttribute:ze,disabled:st}=ce;A.current[me]={id:me,index:He,parentId:ft,expandable:vt,idAttribute:ze,disabled:st}},[]),nn=u.useCallback(ce=>{const me=x({},A.current);delete me[ce],A.current=me,W(He=>He===ce&&L.current===Cn(L.current).activeElement?le(null)[0]:He)},[]),Xt=u.useCallback((ce,me)=>{z.current[ce]=me},[]),yo=u.useCallback(ce=>{const me=x({},z.current);delete me[ce],z.current=me},[]),vi=ce=>(se(B)&&(ee(B)?gt(ce,B):we(B)||it(ce)),!0),Rr=ce=>{if(ee(B)&&!we(B))return it(ce,B),!0;const me=Re(B);return me?(et(ce,me),!0):!1},Yo=ce=>{let me=!1;const He=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!B)return;const ft=ce.ctrlKey||ce.metaKey;switch(He){case" ":!v&&!we(B)&&(S&&ce.shiftKey?(Nt(ce,{end:B}),me=!0):S?me=bt(ce,B,!0):me=bt(ce,B)),ce.stopPropagation();break;case"Enter":we(B)||(se(B)?(it(ce),me=!0):S?me=bt(ce,B,!0):me=bt(ce,B)),ce.stopPropagation();break;case"ArrowDown":S&&ce.shiftKey&&!v&&dn(ce,B),gt(ce,B),me=!0;break;case"ArrowUp":S&&ce.shiftKey&&!v&&Un(ce,B),nt(ce,B),me=!0;break;case"ArrowRight":O?me=Rr(ce):me=vi(ce);break;case"ArrowLeft":O?me=vi(ce):me=Rr(ce);break;case"Home":S&&ft&&ce.shiftKey&&!v&&!we(B)&&Dt(ce,B),tt(ce),me=!0;break;case"End":S&&ft&&ce.shiftKey&&!v&&!we(B)&&Yn(ce,B),St(ce),me=!0;break;default:He==="*"?(Pt(ce,B),me=!0):S&&ft&&He.toLowerCase()==="a"&&!v?(xr(ce),me=!0):!ft&&!ce.shiftKey&&xne(He)&&(dt(ce,B,He),me=!0)}me&&(ce.preventDefault(),ce.stopPropagation()),C&&C(ce)},bo=ce=>{if(ce.target===ce.currentTarget){const me=Array.isArray(X)?X[0]:X;et(ce,me||te(null)[0])}P&&P(ce)},Mt=ce=>{W(null),w&&w(ce)},On=A.current[B]?A.current[B].idAttribute:null;return _.jsx($C.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:f,defaultParentIcon:p,defaultEndIcon:a},focus:et,toggleExpansion:it,isExpanded:ee,isExpandable:se,isFocused:de,isSelected:ae,isDisabled:we,selectNode:v?CI:bt,selectRange:v?CI:Nt,multiSelect:S,disabledItemsFocusable:m,mapFirstChar:Xt,unMapFirstChar:yo,registerNode:fn,unregisterNode:nn,treeId:j},children:_.jsx(WR,{children:_.jsx(Cne,x({role:"tree",id:j,"aria-activedescendant":On,"aria-multiselectable":S,className:he(U.root,i),ref:D,tabIndex:0,onKeyDown:Yo,onFocus:bo,onBlur:Mt,ownerState:N},$,{children:o}))})})}),KR=Pne;function Fo(p){var h=p,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c}=h,f=an(h,["value","onChange","min","max","required","getApi","typing","start","end"]);const m=e!=null?e:"";i==null||i({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[v,b]=u.useState(m),g=u.useRef(m);return u.useEffect(()=>{b(m),g.current=m},[m]),u.createElement(Kf,Ht(Ae({fullWidth:!0,InputLabelProps:v||f.placeholder?{shrink:!0}:void 0},f),{sx:f.label?f.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},f.sx),value:v,onChange(w){const P=w.target.value;b(P),(s||document.activeElement!==w.target)&&S(w,P)},onKeyDown(w){var P;(P=f.onKeyDown)==null||P.call(f,w),w.key==="Enter"&&S(w)},onBlur(w){var P;(P=f.onBlur)==null||P.call(f,w),S(w)},InputProps:Ae({startAdornment:a&&u.createElement(Rm,{position:"start"},a),endAdornment:c&&u.createElement(Rm,{position:"end"},c)},f.InputProps)}));function S(w,P=v){const C=P.trim();C!==g.current&&(g.current=C,t(C,{was:e,event:w,cancel(){b(m)}}))}}function xu(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=an(a,["value","onChange","getApi","options","sx"]);return u.createElement(Kf,Ht(Ae(Ae({},qR(e)),s),{onChange(c){try{let f=c.target.value;f=JSON.parse(f),n(f,{was:t,event:c})}catch(f){}}}))}function TC(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=an(a,["value","onChange","getApi","options","sx"]);return u.createElement(Kf,Ht(Ae(Ae({},qR(Ht(Ae({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let f=c.target.value;f=Array.isArray(f)?f.map(p=>JSON.parse(p)):[],n(f,{was:t,event:c})}catch(f){}}}))}function qR(e){const{options:t,disabled:n}=e,r=Array.isArray(t)?t.map(s=>typeof s=="string"||typeof s=="number"?{value:s,label:String(s)}:s):Object.entries(t).map(([s,a])=>({value:a,label:s})),o=JSON.stringify(e.value),i=r.find(s=>JSON.stringify(s.value)===o);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:i?o:"",disabled:!(r!=null&&r.length)||n,children:r.map((s,a)=>u.createElement(sr,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function R0(r){var o=r,{value:e,empty:t="-"}=o,n=an(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Fo,Ht(Ae({},n),{value:e,disabled:!0}))}function Gs(f){var p=f,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=an(p,["value","onChange","getApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(Fo,Ae({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=an(g,["was"]);t(h?Number(h):null,Ht(Ae({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(Rm,{position:"end",sx:{mt:"1.2em",ml:"2px","& p":{fontSize:"80%"}}},a)}},c))}function au(c){var f=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=f,a=an(f,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement($R,Ht(Ae({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(ht,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(cR,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement(ev,{error:i},o))}function kne({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),f={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Bn,{container:!0},u.createElement(Bn,{item:!0,xs:o,sx:f},n),u.createElement(Bn,{item:!0,xs:i,sx:f},r),u.createElement(Bn,{item:!0,xs:s},u.createElement(Jn,{onClick(){a.current.focus()}},u.createElement(xC))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Bn,{key:"k",item:!0,xs:o},u.createElement(Fo,{value:p,onChange(m,g){var S=g,{was:v}=S,b=an(S,["was"]);const w=Ae({},e);m&&(w[m]=v!==void 0?w[v]:""),v!==void 0&&delete w[v],t(w,Ae({was:e},b))}})),u.createElement(Bn,{key:"v",item:!0,xs:i},u.createElement(Fo,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var S=g,{was:v}=S,b=an(S,["was"]);const w=Ae({},e);m?w[p]=m:delete w[p],t(w,Ae({was:e},b))}})),u.createElement(Bn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(Jn,{onClick(m){const v=Ae({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(Ll)))]),u.createElement(Bn,{item:!0,xs:o},u.createElement(Fo,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(Ht(Ae({},e),{[p]:""}),Ht(Ae({},h),{was:e}))}}})),u.createElement(Bn,{item:!0,xs:i},u.createElement(Fo,{value:"",onChange(){},disabled:!0})))}function Yf(b){var g=b,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:f,saveOnEnter:p,gridProps:h,formProps:m}=g,v=an(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const S=u.useRef(!1);u.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const[w,P]=u.useState({}),[C,E]=u.useState({}),I=typeof o=="function"?{onClick:o}:o,[T,k]=u.useState(0),$=u.useRef(!1),R=u.useRef("");u.useEffect(()=>void j(),[T]);const O={};return u.createElement("form",Ht(Ae({ref:c&&(L=>c.current=L||void 0)},m),{onSubmit(L){L.preventDefault()},onKeyDown(L){I&&!I.disabled&&(L.ctrlKey||L.metaKey)&&L.key==="Enter"&&N()}}),u.createElement(ht,Ae({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Bn,Ae({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((L,D)=>{if(!L)return null;if(u.isValidElement(L))return u.createElement(Bn,{key:D,item:!0,xs:12},L);const ie=L,{k:B,fromField:W=ds.identity,toField:A=ds.identity,getError:z,error:G}=ie,q=an(ie,["k","fromField","toField","getError","error"]);let X=w[B]||C[B];if(X===!0&&(X="Not valid"),B){const se=L.hasOwnProperty("value")?L.value:t==null?void 0:t[B],ae=Ae(Ae({},L),q);Object.assign(q,{value:A(se),error:Boolean(X||G)||void 0,getApi(we){O[B]=we},onBlur(){U(B)},onKeyDown(we){p&&we.key==="Enter"&&N()},onChange(we){try{if(we=W(we),E(de=>Ht(Ae({},de),{[B]:!1})),ds.isEqual(we,se))return;n(we,B),U(B)}catch(de){E(le=>Ht(Ae({},le),{[B]:(de==null?void 0:de.message)||String(de)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement("br"),q.helperText):X),q.label===void 0&&(q.label=YR(B)),ds.defaults(q,r==null?void 0:r(ae))}{const ee=q,{xs:se=12,sm:ae,md:we,lg:de,xl:le,comp:te=Fo,before:be,after:$e,fromField:Se,toField:Ne}=ee,Re=an(ee,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return u.createElement(Bn,{key:B||D,item:!0,xs:se,sm:ae,md:we,lg:de,xl:le},be,u.isValidElement(te)?te:u.createElement(te,Re),$e)}})),I&&u.createElement(ht,{display:"flex",alignItems:"center",sx:Object.assign({},i&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1},a)},u.createElement(ene,Ht(Ae({variant:"contained",startIcon:u.createElement(Qee),children:"Save",loading:T!==0},I),{onClick:N})),...s)));function N(){$.current=!0,U()}function U(L=""){T===0&&(R.current=L,setTimeout(()=>k(D=>D===0?1:D)))}function j(){return pt(this,null,function*(){var B,W;if(T===0)return;if(T===1)return k(2);const L="Please review errors",D={};for(const A of e){if(!A||u.isValidElement(A)||!A.k)continue;const{k:z}=A,G=t==null?void 0:t[z],q=(yield(B=O[z])==null?void 0:B.getError())||(yield(W=A.getError)==null?void 0:W.call(A,G,{values:t,fields:e}))||C[z];if(D[z]=q||!1,!$.current&&z===R.current)break;if(!S.current)return}P(D);try{if(!$.current)return;if(Object.values(D).some(Boolean))return yield f==null?void 0:f(L);const A=I&&I.onClick;A&&(yield A())}catch(A){yield f==null?void 0:f(A)}finally{$.current=!1,S.current&&k(0)}})}}function YR(e){return ds.capitalize(e.replace(/_/g," "))}function MC(e,t,n,r){return HR(e,o=>{o.some(i=>i[1][0]===t)&&n(e[t])},r)}const Ine="/~/api/";function $ne(e,t,n={}){const r=n.noModal?void 0:Dne(),o=Mne();return o&&(t=Ae({csrf:o},t)),fetch(Ine+e,{method:"POST",headers:{"content-type":"application/json"},body:t&&JSON.stringify(t)}).then(i=>{if(r==null||r(),i.ok)return i.json();const s=`Failed API ${e}: ${i.statusText}`;throw console.warn(s+(t?" "+JSON.stringify(t):"")),new Tne(i.status,s)},i=>{var s;throw r==null||r(),(s=i==null?void 0:i.message)!=null&&s.includes("fetch")?Error("Network error"):i})}let Tne=class extends Error{constructor(t,n){super(n),this.code=t}};function Mne(){return jR("csrf")}const Su=qf({can_upload:!1,iconsClass:"",username:"",list:[],filteredList:void 0,loading:!1,listReloader:0,patternFilter:"",showFilter:!1,selected:{},remoteSearch:"",sortBy:"name",invertOrder:!1,foldersFirst:!0,theme:""});function _ne(){return sv(Su)}const XR="hfs_settings",_C=["sortBy","invertOrder","foldersFirst","theme"];Rne();for(const e of _C)MC(Su,e,One);setTimeout(()=>$ne("config",{},{noModal:!0}).then(e=>Su.serverConfig=e));function Rne(){const e=localStorage.getItem(XR);if(!e)return;let t;try{t=JSON.parse(e)}catch(n){console.error("invalid settings stored",e);return}for(const n of _C){const r=t[n];r!==void 0&&(Su[n]=r)}}function One(){localStorage.setItem(XR,JSON.stringify(Jt.pick(Su,_C)))}const Lne={login:"user:👤",user:"user:👤",filter:":✂",search:":🔍",search_off:"cancel:❌",stop:":⏹️",settings:"cog:⚙",archive:"file-archive:📦",logout:":🚪",home:":🏠",parent:"level-up mirror:⬆",folder:":📂",file:"doc:📄",spinner:"spin6 spinner:🎲",password:"key:🗝️",download:":📥",invert:"retweet:🙃",admin:"crown:👑",check:":✔️"};document.fonts.ready.then(()=>pt(void 0,null,function*(){const e='9px "fontello"';yield document.fonts.load(e),document.fonts.check(e)&&(Su.iconsClass=" ")}));const Ane=u.memo(o=>{var i=o,{name:e,alt:t,className:n=""}=i,r=an(i,["name","alt","className"]);const[s,a]=(Lne[e]||e).split(":"),{iconsClass:c}=_ne();return n+=" icon "+(c?"fa-"+(s||e):"emoji"),u.createElement("span",Ht(Ae({},r),{"aria-label":t,role:"img",className:n}),c?null:a||"#")});function Fne(e,t){return u.createElement(Ane,Ae({name:e},t))}function Nne(){return window.innerWidth<800}let O0=!1;function Dne(){return O0?()=>{}:(O0=!0,hi({closable:!1,noFrame:!0,Content:zne,reserveClosing:!0,className:"working",onClose(){O0=!1}}))}const Bne=window.HFS={};Bne.onEvent=(e,t)=>{document.addEventListener("hfs."+e,n=>{const{params:r,output:o}=n.detail,i=t(r,o);i!==void 0&&Array.isArray(o)&&o.push(i)})};function zne(){return Fne("spinner",{className:"spinner"})}function RC(i){var s=i,{gap:e="1em",vert:t=!1,children:n=null,props:r={}}=s,o=an(s,["gap","vert","children","props"]);return u.createElement("div",Ae({style:Ae({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function QR(){return hR("(prefers-color-scheme: dark)")}const Hne={};function jne(){const e=QR()?null:Hne;return u.useMemo(()=>uC({palette:e||{mode:"dark",text:{primary:"#bbb"},primary:{main:"#469"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}Xh.Container=function(t){const n=u.useRef(),{width:r,height:o}=ste(),i=Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;if(!h||(h.focus(),i))return;const m=h.querySelector("[autofocus]")||h.querySelector("input,textarea");m&&m instanceof HTMLElement&&m.focus()});return()=>clearTimeout(p)},[n.current]),t=Ae(Ae({},Xh),t);const f=t.dialogProps||{},{sx:s,root:a}=f,c=an(f,["sx","root"]);return Xh.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(Vq,Ht(Ae(Ae({open:!0,maxWidth:"lg",fullScreen:i},c),a),{onClose:()=>fi()}),t.title&&u.createElement(rY,{sx:Ae({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},OC())},u.createElement(ht,{flex:1,minWidth:40},t.title),u.createElement(Nn,{icon:ov,tooltip:"close",onClick:()=>fi()})),u.createElement(Jq,{ref:n,sx:Ae({p:t.padding?2:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},s)},u.createElement(t.Content)))};function OC(){return QR()?{bgcolor:"#2d2d2d"}:{bgcolor:"#aaa",color:"#444"}}const JR={error:SC,warning:LR,info:wf,success:Eee};function yr(e,t){return pt(this,null,function*(){return new Promise(n=>{const r=typeof t=="string"?{type:t}:t!=null?t:{};let a=r,{type:o="info"}=a,i=an(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=hi(Ht(Ae({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(ht,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(Jn,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(ov)),(c=r.icon)!=null?c:u.createElement(JR[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(ht,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function pl(n){return pt(this,arguments,function*(e,{href:t}={}){return new Promise(o=>hi({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(ht,{mb:2},e),u.createElement(RC,{},u.createElement("a",{href:t,onClick:()=>fi(!0)},u.createElement(vr,{variant:"contained"},"Confirm")),u.createElement(vr,{onClick:()=>fi(!1)},"Don't")))}})}function Cf(i){return pt(this,null,function*(){var s=i,{fullScreen:e,title:t,onChange:n,before:r}=s,o=an(s,["fullScreen","title","onChange","before"]);return new Promise(c=>hi({className:"dialog-confirm",icon:"?",onClose:c,title:t,Content:a}));function a(){const[c,f]=u.useState(o.values||{});return u.createElement(u.Fragment,{},r,u.createElement(Yf,Ht(Ae({},o),{values:c,set(p,h){const m=Ht(Ae({},c),{[h]:p});f(m),n==null||n(m,{setValues:f})},save:Ht(Ae({},o.save),{onClick(){fi(c)}})})))}})}function Vne(n){return pt(this,arguments,function*(e,t={}){return Cf(Ht(Ae({},t),{fields:[Ae({k:"text",label:null,autoFocus:!0,before:u.createElement(ht,{mb:2},e)},t.field)],save:Ae({children:"Continue",startIcon:u.createElement(Lee)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(vr,{onClick:fi},"Cancel"),...t.addToBar||[]]})).then(r=>r==null?void 0:r.text)})}function Une(){return hi({Content:Gf,closable:!1})}function ms(e,t="info"){const r=hi({Content:o,dialogProps:{PaperProps:{sx:{transition:`opacity ${3e3}ms ease-in`},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(ht,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(JR[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function ZR(){return u.createElement(Gf)}function eO(e){return e&&/^[a-zA-Z]:$/.test(e)}function LC(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>LC(r,t[n]))}function AC(e){return e?{outline:"2px solid"}:void 0}function Nn(f){var p=f,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=an(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=oo(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(Jn,Ht(Ae({disabled:Boolean(h||o||r)},c),{onClick(){return pt(this,arguments,function*(){if(a&&!(yield pl(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(yr).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(ht,{position:"relative",display:"inline-block"},u.createElement(Gf,Ht(Ae({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(rv,Ht(Ae({title:e},s),{children:u.createElement("span",{},v)}))),v}function is(e,t,n){return u.createElement(rv,{title:t,children:u.createElement(e,{sx:n})})}function FC(e){return u.createElement(bf,Ae({component:NM},e))}function NC(e){return u.createElement(ht,Ae({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function Wne(e,t){return pt(this,null,function*(){const r=(yield Bt("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Bt("set_config",{values:{[e]:o}}))})}function Gne(e){return Object.keys(e)}function Kne(e,t){var n;return(n=t[e])!=null?n:e}function cu(e){return hR(t=>t.breakpoints.up(e),{noSsr:!0})}function tO(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function qne(e){return e==null?[]:Array.isArray(e)?e:[e]}const nO="admin_state",wn=qf(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[nO]||null))),rO=["onlinePluginsColumns"],Yne=Jt.debounce(()=>localStorage[nO]=JSON.stringify(Jt.pick(wn,rO)),500,{maxWait:1e3});for(const e of rO)MC(wn,e,Yne);function Al(){return sv(wn)}function si(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 uu(e){return!!e&&!!e[fo]}function Ca(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===rre}(e)||Array.isArray(e)||!!e[TI]||!!e.constructor[TI]||DC(e)||BC(e))}function xf(e,t,n){n===void 0&&(n=!1),Eu(e)===0?(n?Object.keys:UC)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Eu(e){var t=e[fo];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:DC(e)?2:BC(e)?3:0}function bb(e,t){return Eu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xne(e,t){return Eu(e)===2?e.get(t):e[t]}function oO(e,t,n){var r=Eu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Qne(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function DC(e){return tre&&e instanceof Map}function BC(e){return nre&&e instanceof Set}function Xl(e){return e.o||e.t}function zC(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ore(e);delete t[fo];for(var n=UC(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function HC(e,t){return t===void 0&&(t=!1),jC(e)||uu(e)||!Ca(e)||(Eu(e)>1&&(e.set=e.add=e.clear=e.delete=Jne),Object.freeze(e),t&&xf(e,function(n,r){return HC(r,!0)},!0)),e}function Jne(){si(2)}function jC(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Di(e){var t=ire[e];return t||si(18,e),t}function xI(){return Sf}function L0(e,t){t&&(Di("Patches"),e.u=[],e.s=[],e.v=t)}function Nm(e){wb(e),e.p.forEach(Zne),e.p=null}function wb(e){e===Sf&&(Sf=e.l)}function SI(e){return Sf={p:[],l:Sf,h:e,m:!0,_:0}}function Zne(e){var t=e[fo];t.i===0||t.i===1?t.j():t.O=!0}function A0(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Di("ES5").S(t,e,r),r?(n[fo].P&&(Nm(t),si(4)),Ca(e)&&(e=Dm(t,e),t.l||Bm(t,e)),t.u&&Di("Patches").M(n[fo].t,e,t.u,t.s)):e=Dm(t,n,[]),Nm(t),t.u&&t.v(t.u,t.s),e!==iO?e:void 0}function Dm(e,t,n){if(jC(t))return t;var r=t[fo];if(!r)return xf(t,function(i,s){return EI(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Bm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=zC(r.k):r.o;xf(r.i===3?new Set(o):o,function(i,s){return EI(e,r,o,i,s,n)}),Bm(e,o,!1),n&&e.u&&Di("Patches").R(r,n,e.u,e.s)}return r.o}function EI(e,t,n,r,o,i){if(uu(o)){var s=Dm(e,o,i&&t&&t.i!==3&&!bb(t.D,r)?i.concat(r):void 0);if(oO(n,r,s),!uu(s))return;e.m=!1}if(Ca(o)&&!jC(o)){if(!e.h.F&&e._<1)return;Dm(e,o),t&&t.A.l||Bm(e,o)}}function Bm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&HC(t,n)}function F0(e,t){var n=e[fo];return(n?Xl(n):e)[t]}function PI(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 Cb(e){e.P||(e.P=!0,e.l&&Cb(e.l))}function N0(e){e.o||(e.o=zC(e.t))}function xb(e,t,n){var r=DC(t)?Di("MapSet").N(t,n):BC(t)?Di("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:xI(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,f=Sb;s&&(c=[a],f=wd);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):Di("ES5").J(t,n);return(n?n.A:xI()).p.push(r),r}function ere(e){return uu(e)||si(22,e),function t(n){if(!Ca(n))return n;var r,o=n[fo],i=Eu(n);if(o){if(!o.P&&(o.i<4||!Di("ES5").K(o)))return o.t;o.I=!0,r=kI(n,i),o.I=!1}else r=kI(n,i);return xf(r,function(s,a){o&&Xne(o.t,s)===a||oO(r,s,t(a))}),i===3?new Set(r):r}(e)}function kI(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zC(e)}var II,Sf,VC=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",tre=typeof Map!="undefined",nre=typeof Set!="undefined",$I=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",iO=VC?Symbol.for("immer-nothing"):((II={})["immer-nothing"]=!0,II),TI=VC?Symbol.for("immer-draftable"):"__$immer_draftable",fo=VC?Symbol.for("immer-state"):"__$immer_state",rre=""+Object.prototype.constructor,UC=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ore=Object.getOwnPropertyDescriptors||function(e){var t={};return UC(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ire={},Sb={get:function(e,t){if(t===fo)return e;var n=Xl(e);if(!bb(n,t))return function(o,i,s){var a,c=PI(i,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Ca(r)?r:r===F0(e.t,t)?(N0(e),e.o[t]=xb(e.A.h,r,e)):r},has:function(e,t){return t in Xl(e)},ownKeys:function(e){return Reflect.ownKeys(Xl(e))},set:function(e,t,n){var r=PI(Xl(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=F0(Xl(e),t),i=o==null?void 0:o[fo];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Qne(n,o)&&(n!==void 0||bb(e.t,t)))return!0;N0(e),Cb(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return F0(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,N0(e),Cb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Xl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){si(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){si(12)}},wd={};xf(Sb,function(e,t){wd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),wd.deleteProperty=function(e,t){return wd.set.call(this,e,t,void 0)},wd.set=function(e,t,n){return Sb.set.call(this,e[0],t,n,e[0])};var sre=function(){function e(n){var r=this;this.g=$I,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(g){var S=this;g===void 0&&(g=a);for(var w=arguments.length,P=Array(w>1?w-1:0),C=1;C<w;C++)P[C-1]=arguments[C];return c.produce(g,function(E){var I;return(I=i).call.apply(I,[S,E].concat(P))})}}var f;if(typeof i!="function"&&si(6),s!==void 0&&typeof s!="function"&&si(7),Ca(o)){var p=SI(r),h=xb(r,o,void 0),m=!0;try{f=i(h),m=!1}finally{m?Nm(p):wb(p)}return typeof Promise!="undefined"&&f instanceof Promise?f.then(function(g){return L0(p,s),A0(g,p)},function(g){throw Nm(p),g}):(L0(p,s),A0(f,p))}if(!o||typeof o!="object"){if((f=i(o))===void 0&&(f=o),f===iO&&(f=void 0),r.F&&HC(f,!0),s){var v=[],b=[];Di("Patches").M(o,f,v,b),s(v,b)}return f}si(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(f){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(f,function(v){return o.apply(void 0,[v].concat(h))})};var s,a,c=r.produce(o,i,function(f,p){s=f,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(f){return[f,s,a]}):[c,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Ca(n)||si(8),uu(n)&&(n=ere(n));var r=SI(this),o=xb(this,n,void 0);return o[fo].C=!0,wb(r),o},t.finishDraft=function(n,r){var o=n&&n[fo],i=o.A;return L0(i,r),A0(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!$I&&si(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=Di("Patches").$;return uu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),po=new sre,lre=po.produce;po.produceWithPatches.bind(po);po.setAutoFreeze.bind(po);po.setUseProxies.bind(po);po.applyPatches.bind(po);po.createDraft.bind(po);po.finishDraft.bind(po);const are=lre;function Bi(...e){const[t,n,r]=Xf(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(Wi,{severity:"error"},String(n),u.createElement(Nn,{icon:iv,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?ZR():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}const sO="/~/api/",cre={get_status:20};function Bt(e,t,{timeout:n=void 0}={}){var i,s;const r=aO();r&&(t=Ae({csrf:r},t));const o=new AbortController;return n!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((s=(i=cre[e])!=null?i:n)!=null?s:10)),Object.assign(fetch(sO+e,{method:"POST",headers:{"content-type":"application/json"},signal:o.signal,body:t&&JSON.stringify(t)}).then(a=>pt(this,null,function*(){if(a.ok)return a.json().then(f=>(console.debug("API",e,t,">>",f),f));const c=(yield a.text())||"Failed API "+e;throw console.warn(c+(t?" "+JSON.stringify(t):"")),a.status===401&&(wn.loginRequired=Wte(()=>{var f;return(f=JSON.parse(c))==null?void 0:f.any})!==!1||403),new ure(a.status,c)}),a=>{var c;throw(c=a==null?void 0:a.message)!=null&&c.includes("fetch")?Error("Network error"):a}),{abort(){o.abort("cancel")}})}class ure extends Error{constructor(t,n){super(n),this.code=t}}function Xf(e,t){const[n,r]=oo(void 0),[o,i]=oo(void 0),[s,a]=oo(0),c=u.useRef();u.useEffect(()=>{var v;if((v=c.current)==null||v.abort(),r(void 0),i(void 0),!e)return;let p=!1;const h=Bt(e,t),m=h.then(b=>p||r(b),b=>p||i(b)).finally(()=>c.current=void 0);c.current=Object.assign(m,{abort(){p=!0,h.abort()}})},[e,JSON.stringify(t),s]);const f=u.useCallback(()=>c.current||a(p=>p+1),[a]);return[n,o,f]}function lO(e,t,n){console.debug("API EVENTS",e,t);const r=aO(),o={csrf:r&&JSON.stringify(r)};for(const s in t){const a=t[s];a!==void 0&&(o[s]=JSON.stringify(a))}const i=new EventSource(sO+e+"?"+new URLSearchParams(o));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function aO(){return jR("csrf")}function dre(e,t={}){const[n,r]=oo(void 0),[o,i]=oo(void 0),[s,a]=oo(!1);return u.useEffect(()=>{const c=lO(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),f();case"closed":return f();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?f():r(h)}});return()=>{c.close(),f()};function f(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}function Pu(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=oo([]),[s,a]=oo(void 0),[c,f]=oo(void 0),[p,h]=oo(!0),[m,v]=oo(!1),[b,g]=oo(!0),S=u.useRef(0);return u.useEffect(()=>{if(!e)return;const P=[],C=Jt.debounce(()=>{const T=P.splice(0,1/0);T.length&&i(k=>[...k,...T])},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),g(!0),i([]);const E=lO(e,t,(T,k)=>{switch(T){case"connected":return h(!1),setTimeout(()=>C.flush());case"error":return f("Connection error"),I();case"closed":return I();case"msg":qne(k).forEach($=>{if($==="ready"){C.flush(),g(!1);return}if($.error){$.error===401?wn.loginRequired=$.any!==!1||403:f(tO($.error));return}if($.props)return a($.props);if($.add){const R=r($.add);n&&(R.id=++S.current),P.push(R),C();return}if($.remove){const R=[];for(const O of $.remove){const N=Jt.matches(O);Jt.isEmpty(Jt.remove(P,N))&&R.push(N)}if(Jt.isEmpty(R))return;i(O=>{const N=O.filter(U=>!R.some(j=>j(U)));return N.length<O.length?N:O});return}if($.update){C.flush(),i(R=>{const O=[...R];for(const{search:N,change:U}of $.update){const j=O.findIndex(Jt.matches(N));j>=0&&(O[j]=Ae(Ae({},O[j]),U))}return O});return}console.debug("unknown api event",T,$)}),(E==null?void 0:E.readyState)===(E==null?void 0:E.CLOSED)&&I()}});return()=>E.close();function I(){g(!1),v(!1),C.flush()}},[e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:w};function w(P){i(are(o,C=>{P(C)}))}}const cO=u.createContext(void 0);function mt(){const e=u.useContext(cO);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(`
267
+ `));return e}const uO=u.createContext(void 0),Xe=()=>{const e=u.useContext(uO);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Lt(e){return qe("MuiDataGrid",e)}const Z=Ue("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),fre=e=>{const{classes:t}=e;return Ie({root:["main"]},Lt,t)},pre=re("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function dO(e){const n={classes:Xe().classes},r=fre(n);return _.jsx(pre,{className:r.root,children:e.children})}function hre(e,t){var n=function(E){var I=E.__resizeTriggers__,T=I.firstElementChild,k=I.lastElementChild,$=T.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,$.style.width=T.offsetWidth+1+"px",$.style.height=T.offsetHeight+1+"px",T.scrollLeft=T.scrollWidth,T.scrollTop=T.scrollHeight},r=function(E){return E.offsetWidth!=E.__resizeLast__.width||E.offsetHeight!=E.__resizeLast__.height},o=function(E){if(!(E.target.className.indexOf("contract-trigger")<0&&E.target.className.indexOf("expand-trigger")<0)){var I=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(I)&&(I.__resizeLast__.width=I.offsetWidth,I.__resizeLast__.height=I.offsetHeight,I.__resizeListeners__.forEach(function(T){T.call(I,E)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=f[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",S=function(E){if(!E.getElementById("muiDetectElementResize")){var I=(b||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',T=E.head||E.getElementsByTagName("head")[0],k=E.createElement("style");k.id="muiDetectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(E.createTextNode(I)),T.appendChild(k)}},w=function(E,I){if(!E.__resizeTriggers__){var T=E.ownerDocument,k=t.getComputedStyle(E);k&&k.position=="static"&&(E.style.position="relative"),S(T),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=T.createElement("div")).className="Mui-resizeTriggers",E.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',E.appendChild(E.__resizeTriggers__),n(E),E.addEventListener("scroll",o,!0),a&&(E.__resizeTriggers__.__animationListener__=function(R){R.animationName==v&&n(E)},E.__resizeTriggers__.addEventListener(a,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(I)},P=function(E,I){if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(I),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",o,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(a,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch(T){}}};return{addResizeListener:w,removeResizeListener:P}}const mre=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],gre=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:f,style:p}=t,h=oe(t,mre),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),S=jn(()=>{if(g.current){const E=g.current.offsetHeight||0,I=g.current.offsetWidth||0,k=uo(g.current).getComputedStyle(g.current),$=parseInt(k.paddingLeft,10)||0,R=parseInt(k.paddingRight,10)||0,O=parseInt(k.paddingTop,10)||0,N=parseInt(k.paddingBottom,10)||0,U=E-O-N,j=I-$-R;(!s&&m.height!==U||!a&&m.width!==j)&&(v({height:U,width:j}),f&&f({height:U,width:j}))}});Rn(()=>{var E;if(g.current=b.current.parentElement,!g)return;const I=uo((E=g.current)!=null?E:void 0),T=hre(c,I);return T.addResizeListener(g.current,S),S(),()=>{T.removeResizeListener(g.current,S)}},[c,S]);const w={overflow:"visible"},P={};s||(w.height=0,P.height=m.height),a||(w.width=0,P.width=m.width);const C=xt(b,n);return _.jsx("div",x({ref:C,style:x({},w,p)},h,{children:m.height===null&&m.width===null?null:r(P)}))}),mi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
268
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Oa=(e,t)=>e;function vre(e){return e.acceptsApiRef}mi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const We=(e,t)=>vre(t)?t(e):t(e.current.state);var zm="NOT_FOUND";function yre(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:zm},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function bre(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return zm}function o(a,c){r(a)===zm&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var wre=function(t,n){return t===n};function Cre(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function fO(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?wre:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Cre(o),f=s===1?yre(c):bre(s,c);function p(){var h=f.get(arguments);if(h===zm){if(h=e.apply(null,arguments),a){var m=f.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}f.put(arguments,h)}return h}return p.clearCache=function(){return f.clear()},p}function xre(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 Sre(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var f=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var v=h,b=v.memoizeOptions,g=b===void 0?n:b,S=Array.isArray(g)?g:[g],w=xre(a),P=e.apply(void 0,[function(){return f++,m.apply(null,arguments)}].concat(S)),C=e(function(){for(var I=[],T=w.length,k=0;k<T;k++)I.push(w[k].apply(null,arguments));return p=P.apply(null,I),p});return Object.assign(C,{resultFunc:m,memoizedResultFunc:P,dependencies:w,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),C};return o}var Ere=Sre(fO);const ud={cache:null};mi(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);const Ye=(...e)=>{ud.cache===null&&(ud.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;ud.cache===null&&(ud.cache={});const{cache:c}=ud;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const f=Ere(...e);return c[s]||(c[s]=new Map),c[s].set(e,f),f(a,s)};return t.acceptsApiRef=!0,t},Gi=e=>e.rows,pv=Ye(Gi,e=>e.totalRowCount),Pre=Ye(Gi,e=>e.loading),kre=Ye(Gi,e=>e.totalTopLevelRowCount),Ef=Ye(Gi,e=>e.idRowsLookup),pO=Ye(Gi,e=>e.idToIdLookup),pa=Ye(Gi,e=>e.tree),Ire=Ye(Gi,e=>e.groupingName),WC=Ye(Gi,e=>e.treeDepth),Bc=Ye(Gi,e=>e.ids),$re=Ye(Gi,e=>e==null?void 0:e.additionalRowGroups),Qf=Ye($re,e=>e==null?void 0:e.pinnedRows),Tre=Ye(Qf,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)}),GC=e=>e.sorting,KC=Ye(GC,e=>e.sortedRows),qC=Ye(KC,Ef,(e,t)=>e.map(n=>({id:n,model:t[n]}))),ri=Ye(GC,e=>e.sortModel),Mre=Ye(ri,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),xa=e=>e.columns,Sa=Ye(xa,e=>e.all),ku=Ye(xa,e=>e.lookup),zo=Ye(Sa,ku,(e,t)=>e.map(n=>t[n])),el=Ye(xa,e=>e.columnVisibilityModel),ar=Ye(zo,el,(e,t)=>e.filter(n=>t[n.field]!==!1));Ye(ar,e=>e.map(t=>t.field));const Ea=Ye(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}),hv=Ye(ar,Ea,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),mv=Ye(zo,e=>e.filter(t=>t.filterable)),_re=Ye(zo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));Oa(Sa);Oa(zo);Oa(ar);Oa(mv);Oa(Ye(mv,e=>e.map(t=>t.field)));Oa(Ye(ar,e=>e.length));const Rre=Oa(Ye(Ea,hv,(e,t)=>({totalWidth:t,positions:e}))),Jf=e=>e.filter,Dr=Ye(Jf,e=>e.filterModel);Ye(Dr,e=>e.quickFilterValues);const Ore=Ye(Jf,e=>e.visibleRowsLookup),hO=Ye(Jf,e=>e.filteredRowsLookup);Ye(Jf,e=>e.filteredDescendantCountLookup);const $s=Ye(Ore,qC,(e,t)=>t.filter(n=>e[n.id]!==!1)),Hd=Ye($s,e=>e.map(t=>t.id)),Lre=Ye(hO,qC,(e,t)=>t.filter(n=>e[n.id]!==!1)),Are=Ye(Lre,e=>e.map(t=>t.id)),mO=Ye($s,pa,WC,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),gO=Ye($s,e=>e.length),vO=Ye(mO,e=>e.length),Fre=Ye(Dr,ku,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),Nre=Ye(Fre,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),La=e=>e.density,Dre=Ye(La,e=>e.value),Zf=Ye(La,e=>e.rowHeight),yO=Ye(La,e=>e.headerHeight),YC=Ye(La,e=>e.headerGroupingMaxDepth),Bre=Ye(La,e=>e.factor),ep=Ye(La,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function zre(e){var t,n;const r=mt(),o=Xe(),i=We(r,ep),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);Rn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let f=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&f===0&&(f="auto"),s?_.jsx("div",x({style:{height:f,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:f==="auto"?0:void 0}},e)):null}function Hre(){const e=mt(),t=Xe(),n=We(e,pv),r=We(e,gO),o=We(e,Pre),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=_.jsx(t.components.NoRowsOverlay,x({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var f;a=_.jsx(t.components.NoResultsOverlay,x({},(f=t.componentsProps)==null?void 0:f.noResultsOverlay))}if(o){var p;a=_.jsx(t.components.LoadingOverlay,x({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:_.jsx(zre,{children:a})}function jre(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=mt(),i=Xe(),s=We(o,ep),[a,c]=u.useState(i.disableVirtualization),f=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=f,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),b=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=b;const g=u.useCallback(S=>{o.current.publishEvent("resize",S)},[o]);return _.jsxs(dO,{children:[_.jsx(Hre,{}),_.jsx(r,{ref:m,innerRef:h}),_.jsx(gre,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:S=>{const w={width:S.width,height:S.height?S.height-s:"auto",marginTop:s};return _.jsx(n,{ref:v,style:w,disableVirtualization:a})}}),t]})}function Vn(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class Vre extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}function Ure(e){const{children:t}=e,n=mt(),r=Vn(n,"GridErrorHandler"),o=Xe(),i=n.current.state.error;return _.jsx(Vre,{hasError:i!=null,componentProps:i,api:n,logger:r,render:s=>{var a;return _.jsx(dO,{children:_.jsx(o.components.ErrorOverlay,x({},s,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function Wre(){var e;const t=mt(),n=Xe(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:_.jsx("div",{ref:r,children:_.jsx(n.components.Footer,x({},(e=n.componentsProps)==null?void 0:e.footer))})}function Gre(){var e;const t=mt(),n=Xe(),r=u.useRef(null);return t.current.headerRef=r,_.jsx("div",{ref:r,children:_.jsx(n.components.Header,x({},(e=n.componentsProps)==null?void 0:e.header))})}var br;(function(e){e.Cell="cell",e.Row="row"})(br||(br={}));var Tt;(function(e){e.Edit="edit",e.View="view"})(Tt||(Tt={}));var Kt;(function(e){e.Edit="edit",e.View="view"})(Kt||(Kt={}));const zc={client:"client",server:"server"};var $r;(function(e){e.And="and",e.Or="or"})($r||($r={}));var ss;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ss||(ss={}));var Pi;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Pi||(Pi={}));var ls;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ls||(ls={}));var ki;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(ki||(ki={}));var Pf;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(Pf||(Pf={}));function bO(e){return e.field!==void 0}const wO=e=>e.focus,li=Ye(wO,e=>e.cell),Kre=Ye(wO,e=>e.columnHeader),CO=e=>e.tabIndex,Hm=Ye(CO,e=>e.cell),xO=Ye(CO,e=>e.columnHeader),qre=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let D0;function Yre(){return D0===void 0&&document.createElement("div").focus({get preventScroll(){return D0=!0,!1}}),D0}const Xre=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${fe(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return Ie(i,Lt,o)};function Qre(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:f,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:S,disableDragEvents:w,onClick:P,onDoubleClick:C,onMouseDown:E,onMouseUp:I,onKeyDown:T,onDragEnter:k,onDragOver:$}=e,R=oe(e,qre),O=s==null?m:s,N=u.useRef(null),U=u.useRef(null),j=mt(),L=Xe(),D={align:t,showRightBorder:g,isEditable:f,classes:L.classes},B=Xre(D),W=u.useCallback(se=>ae=>{const we=j.current.getCellParams(p,i||"");j.current.publishEvent(se,we,ae),I&&I(ae)},[j,i,I,p]),A=u.useCallback((se,ae)=>we=>{if(!we.currentTarget.contains(we.target)||!j.current.getRow(p))return;const de=j.current.getCellParams(p,i||"");j.current.publishEvent(se,de,we),ae&&ae(we)},[j,i,p]),z={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useLayoutEffect(()=>{if(!a||o===Tt.Edit)return;const se=Cn(j.current.rootElementRef.current);if(N.current&&!N.current.contains(se.activeElement)){const ae=N.current.querySelector('[tabindex="0"]'),we=U.current||ae||N.current;if(Yre())we.focus({preventScroll:!0});else{const de=j.current.getScrollPosition();we.focus(),j.current.scroll(de)}}},[a,o,j]);let G=R.onFocus;const X=j.current.getColumn(i).type==="actions",ie=()=>n==null?_.jsx("div",{className:B.content,children:O==null?void 0:O.toString()}):u.isValidElement(n)&&X?u.cloneElement(n,{focusElementRef:U}):n,ee=w?null:{onDragEnter:A("cellDragEnter",k),onDragOver:A("cellDragOver",$)};return _.jsx("div",x({ref:N,className:he(b,B.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":S,style:z,tabIndex:(o==="view"||!f)&&!X?h:-1,onClick:A("cellClick",P),onDoubleClick:A("cellDoubleClick",C),onMouseDown:A("cellMouseDown",E),onMouseUp:W("cellMouseUp"),onKeyDown:A("cellKeyDown",T)},ee,R,{onFocus:G,children:ie()}))}const Jre=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],Zre=e=>{const{classes:t}=e;return Ie({root:["booleanCell"]},Lt,t)},eoe=e=>{const{value:t}=e,n=oe(e,Jre),r=mt(),o=Xe(),i={classes:o.classes},s=Zre(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return _.jsx(a,x({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},n))},toe=u.memo(eoe),noe=e=>e.rowNode.isAutoGenerated?"":_.jsx(toe,x({},e)),roe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],ooe=e=>{const{classes:t}=e;return Ie({root:["editBooleanCell"]},Lt,t)};function ioe(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=oe(e,roe),f=mt(),p=u.useRef(null),h=kn(),[m,v]=u.useState(r),b=Xe(),g={classes:b.classes},S=ooe(g),w=u.useCallback(P=>pt(this,null,function*(){const C=P.target.checked;a&&(yield a(P,C)),v(C),yield f.current.setEditCellValue({id:n,field:o,value:C},P)}),[f,o,n,a]);return u.useEffect(()=>{v(r)},[r]),Rn(()=>{s&&p.current.focus()},[s]),_.jsx("label",x({htmlFor:h,className:he(S.root,i)},c,{children:_.jsx(b.components.BaseCheckbox,x({id:h,inputRef:p,checked:Boolean(m),onChange:w,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const soe=e=>_.jsx(ioe,x({},e)),loe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],aoe=re(bu)({fontSize:"inherit"}),coe=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Lt,t)};function uoe(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=oe(e,loe),f=o.type==="dateTime",p=mt(),h=u.useRef(),m=u.useMemo(()=>{let C;n==null?C=null:n instanceof Date?C=n:C=new Date((n!=null?n:"").toString());let E;return C==null||Number.isNaN(C.getTime())?E="":E=new Date(C.getTime()-C.getTimezoneOffset()*60*1e3).toISOString().substr(0,f?16:10),{parsed:C,formatted:E}},[n,f]),[v,b]=u.useState(m),S={classes:Xe().classes},w=coe(S),P=u.useCallback(C=>pt(this,null,function*(){const E=C.target.value;let I;if(E==="")I=null;else{const[T,k]=E.split("T"),[$,R,O]=T.split("-");if(I=new Date,I.setFullYear(Number($),Number(R)-1,Number(O)),I.setHours(0,0,0,0),k){const[N,U]=k.split(":");I.setHours(Number(N),Number(U),0,0)}}a&&(yield a(C,I)),b({parsed:I,formatted:E}),p.current.setEditCellValue({id:t,field:r,value:I},C)}),[p,r,t,a]);return u.useEffect(()=>{b(C=>{var E,I;return m.parsed!==C.parsed&&((E=m.parsed)==null?void 0:E.getTime())!==((I=C.parsed)==null?void 0:I.getTime())?m:C})},[m]),Rn(()=>{i&&h.current.focus()},[i]),_.jsx(aoe,x({inputRef:h,fullWidth:!0,className:w.root,type:f?"datetime-local":"date",inputProps:x({max:f?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:P},c))}const SO=e=>_.jsx(uoe,x({},e)),doe=Oe(_.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),foe=Oe(_.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),MI=Oe(_.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),_I=Oe(_.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),poe=Oe(_.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),hoe=Oe(_.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"),moe=Oe(_.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");Oe(_.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Oe(_.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 goe=Oe(_.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"),voe=Oe(_.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),yoe=Oe(_.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),boe=Oe(_.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),woe=Oe(_.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Coe=Oe(_.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"),B0=Oe(_.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"),EO=Oe(_.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),xoe=Oe(_.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),XC=Oe(_.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"),PO=Oe(_.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"),Soe=Oe(_.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"),Eoe=Oe(_.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Poe=Oe(_.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");function tl(e){return typeof e=="object"&&e!==null?e.value:e}function jm(e,t){if(t===void 0)return;const n=t.find(r=>{const o=tl(r);return String(o)===String(e)});return tl(n)}const koe=["item","applyValue","type","apiRef","focusElementRef"],Ioe=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return _.jsx(o,{value:f,children:h},c)}),kO=500;function _i(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,koe),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,S]=u.useState(!1),w=kn(),P=Xe(),E=(r=(((n=P.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,I=c==="singleSelect"?{select:!0,SelectProps:x({native:E},(o=P.componentsProps)==null?void 0:o.baseSelect),children:Ioe(f.current.getColumn(s.columnField),f.current,E?"option":sr)}:{},T=u.useCallback($=>{let R=$.target.value;if(c==="singleSelect"){const O=f.current.getColumn(s.columnField),N=typeof O.valueOptions=="function"?O.valueOptions({field:O.field}):O.valueOptions;R=jm(R,N)}clearTimeout(m.current),b(String(R)),S(!0),m.current=setTimeout(()=>{a(x({},s,{value:R})),S(!1)},kO)},[f,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var $;const R=($=s.value)!=null?$:"";b(String(R))},[s.value]);const k=g?{endAdornment:_.jsx(XC,{})}:h.InputProps;return _.jsx(P.components.BaseTextField,x({id:w,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:T,variant:"standard",type:c||"text",InputProps:k,InputLabelProps:{shrink:!0},inputRef:p},I,h,(i=P.componentsProps)==null?void 0:i.baseTextField))}const $oe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],Toe=e=>{const{classes:t}=e;return Ie({root:["editInputCell"]},Lt,t)},Moe=re(bu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>x({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),_oe=u.forwardRef((e,t)=>{var n;const r=Xe(),{id:o,value:i,field:s,colDef:a,hasFocus:c,debounceMs:f=(n=r.experimentalFeatures)!=null&&n.newEditingApi?200:kO,isProcessingProps:p,onValueChange:h}=e,m=oe(e,$oe),v=mt(),b=u.useRef(),[g,S]=u.useState(i),w={classes:r.classes},P=Toe(w),C=u.useCallback(E=>pt(void 0,null,function*(){const I=E.target.value;h&&(yield h(E,I)),S(I),v.current.setEditCellValue({id:o,field:s,value:I,debounceMs:f},E)}),[v,f,s,o,h]);return u.useEffect(()=>{S(i)},[i]),Rn(()=>{c&&b.current.focus()},[c]),_.jsx(Moe,x({ref:t,inputRef:b,className:P.root,fullWidth:!0,type:a.type==="number"?a.type:"text",value:g!=null?g:"",onChange:C,endAdornment:p?_.jsx(XC,{}):void 0},m))}),Roe=e=>_.jsx(_oe,x({},e)),QC=e=>e==="Escape",IO=e=>e==="Enter",$O=e=>e==="Tab",TO=e=>e===" ",Ooe=e=>e.indexOf("Arrow")===0,Loe=e=>e==="Home"||e==="End",Aoe=e=>e.indexOf("Page")===0,Eb=e=>e==="Delete"||e==="Backspace";function gv(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const Foe=["Enter","Escape","Tab"],Noe=["Enter","Tab"],Doe=e=>IO(e.key)||Eb(e.key)||gv(e),Boe=e=>Foe.indexOf(e)>-1,RI=e=>Noe.indexOf(e)>-1,tp=e=>Loe(e)||Ooe(e)||Aoe(e)||TO(e),Pb=e=>!!e.key,zoe=e=>$O(e)||QC(e),Hoe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],joe=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return _.jsx(t,{value:o,children:i},r)};function Voe(e){return!!e.key}function Uoe(e){var t,n,r;const o=Xe(),{id:i,value:s,api:a,field:c,row:f,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===br.Cell}=e,g=oe(e,Hoe),S=mt(),w=u.useRef(),P=u.useRef(),[C,E]=u.useState(b),T=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let k;typeof p.valueOptions=="function"?k=p.valueOptions({id:i,row:f,field:c}):k=p.valueOptions,p.valueFormatter&&(k=k.map(N=>{if(typeof N=="object")return N;const U={field:c,api:a,value:N};return{value:N,label:String(p.valueFormatter(U))}}));const $=N=>pt(this,null,function*(){var U;E(!1);const j=N.target,L=jm(j.value,k);v&&(yield v(N,L));const D=yield S.current.setEditCellValue({id:i,field:c,value:L},N);if((U=o.experimentalFeatures)!=null&&U.newEditingApi||o.editMode===br.Row||D===!1)return;if((yield Promise.resolve(S.current.commitCellChange({id:i,field:c},N)))&&(S.current.setCellMode(i,c,"view"),N.key)){const W=S.current.getCellParams(i,c);S.current.publishEvent("cellNavigationKeyDown",W,N)}}),R=(N,U)=>{if(o.editMode===br.Row){E(!1);return}if(U==="backdropClick"||QC(N.key)){var j;(j=o.experimentalFeatures)!=null&&j.newEditingApi?S.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):S.current.setCellMode(i,c,"view")}},O=N=>{Voe(N)&&N.key==="Enter"||E(!0)};return Rn(()=>{h&&P.current.focus()},[h]),_.jsx(o.components.BaseSelect,x({ref:w,inputRef:P,value:s,onChange:$,open:C,onOpen:O,MenuProps:{onClose:R},error:m,native:T,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:k.map(N=>joe(N,T?"option":sr))}))}const Woe=e=>_.jsx(Uoe,x({},e)),Goe=["open","target","onClickAway","children","position","className","onExited"],Koe=e=>{const{classes:t}=e;return Ie({root:["menu"]},Lt,t)},qoe=re(Ma,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Z.menuList}`]:{outline:0}})),Yoe={"bottom-start":"top left","bottom-end":"top right"},MO=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,f=oe(e,Goe),p=mt(),h=u.useRef(r),m=u.useRef(n),v=Xe(),b={classes:v.classes},g=Koe(b);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const w=n?"menuOpen":"menuClose";p.current.publishEvent(w,{target:r}),m.current=n,h.current=r},[p,n,r]);const S=w=>P=>{w&&w(),c&&c(P)};return _.jsx(qoe,x({as:v.components.BasePopper,className:he(a,g.root),open:n,anchorEl:r,transition:!0,placement:s},f,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:w,placement:P})=>_.jsx(__,{onClickAway:o,mouseEvent:"onMouseDown",children:_.jsx(_m,x({},w,{style:{transformOrigin:Yoe[P]},onExited:S(w==null?void 0:w.onExited),children:_.jsx(qo,{children:i})}))})}))},Xoe=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],Qoe=e=>typeof e.getActions=="function",Joe=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=oe(e,Xoe),[c,f]=u.useState(-1),[p,h]=u.useState(!1),m=mt(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),S=u.useRef({}),w=kn(),P=kn(),C=Xe();if(u.useLayoutEffect(()=>{r||Object.entries(S.current).forEach(([L,D])=>{D==null||D.stop({},()=>{delete S.current[L]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus()},[c]),u.useEffect(()=>{r||(f(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||f(0)}}),[]),!Qoe(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(m.current.getRowParams(n)),I=E.filter(L=>!L.props.showInMenu),T=E.filter(L=>L.props.showInMenu),k=I.length+(T.length?1:0);u.useEffect(()=>{c>=k&&f(k-1)},[c,k]);const $=()=>{h(!0),f(k-1),g.current=!0},R=()=>{h(!1)},O=L=>D=>{S.current[L]=D},N=(L,D)=>B=>{f(L),g.current=!0,D&&D(B)},U=L=>{if(k<=1)return;let D=c;L.key==="ArrowRight"?D+=1:L.key==="ArrowLeft"&&(D-=1),!(D<0||D>=k)&&D!==c&&(L.preventDefault(),L.stopPropagation(),f(D))},j=L=>{L.key==="Tab"&&L.preventDefault(),["Tab","Enter","Escape"].includes(L.key)&&R()};return _.jsxs("div",x({role:"menu",ref:v,tabIndex:-1,className:Z.actionsCell,onKeyDown:U},a,{children:[I.map((L,D)=>u.cloneElement(L,{key:D,touchRippleRef:O(D),onClick:N(D,L.props.onClick),tabIndex:c===D?o:-1})),T.length>0&&P&&_.jsx(Jn,{ref:b,id:P,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":w,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:$,touchRippleRef:O(P),tabIndex:c===I.length?o:-1,children:_.jsx(C.components.MoreActionsIcon,{fontSize:"small"})}),T.length>0&&_.jsx(MO,{onClickAway:R,onClick:R,open:p,target:b.current,position:i,children:_.jsx(yC,{id:w,className:Z.menuList,onKeyDown:j,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:T.map((L,D)=>u.cloneElement(L,{key:D}))})})]}))},Zoe=e=>_.jsx(Joe,x({},e)),eie=re("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Z.autoHeight}`]:t.autoHeight},{[`&.${Z.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${Z["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${Z["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${Z["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${Z.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${Z.editBooleanCell}`]:t.editBooleanCell},{[`& .${Z["cell--editing"]}`]:t["cell--editing"]},{[`& .${Z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${Z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${Z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${Z["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${Z.cell}`]:t.cell},{[`& .${Z.cellContent}`]:t.cellContent},{[`& .${Z.cellCheckbox}`]:t.cellCheckbox},{[`& .${Z.checkboxInput}`]:t.checkboxInput},{[`& .${Z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${Z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${Z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${Z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${Z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${Z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${Z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${Z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${Z.columnHeader}`]:t.columnHeader},{[`& .${Z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${Z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${Z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${Z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${Z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${Z.columnSeparator}`]:t.columnSeparator},{[`& .${Z.filterIcon}`]:t.filterIcon},{[`& .${Z.iconSeparator}`]:t.iconSeparator},{[`& .${Z.menuIcon}`]:t.menuIcon},{[`& .${Z.menuIconButton}`]:t.menuIconButton},{[`& .${Z.menuOpen}`]:t.menuOpen},{[`& .${Z.menuList}`]:t.menuList},{[`& .${Z["row--editable"]}`]:t["row--editable"]},{[`& .${Z["row--editing"]}`]:t["row--editing"]},{[`& .${Z["row--dragging"]}`]:t["row--dragging"]},{[`& .${Z.row}`]:t.row},{[`& .${Z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${Z.rowReorderCell}`]:t.rowReorderCell},{[`& .${Z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${Z.sortIcon}`]:t.sortIcon},{[`& .${Z.withBorder}`]:t.withBorder},{[`& .${Z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${Z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${Z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${Z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?xs(ot(e.palette.divider,1),.88):Cs(ot(e.palette.divider,1),.68);return x({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${Z.autoHeight}`]:{height:"auto",[`& .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"}},[`& .${Z["virtualScrollerContent--overflowed"]} .${Z["row--lastVisible"]} .${Z.cell}`]:{borderBottomColor:"transparent"},[`& .${Z.columnHeader}, & .${Z.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${Z.columnHeader}:focus-within, & .${Z.cell}:focus-within`]:{outline:`solid ${ot(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${Z.columnHeader}:focus, & .${Z.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${Z.columnHeaderCheckbox}, & .${Z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${Z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--sorted"]} .${Z.iconButtonContainer}, & .${Z["columnHeader--filtered"]} .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}) .${Z.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${Z.columnHeader}:not(.${Z["columnHeader--sorted"]}):hover .${Z.sortIcon}`]:{opacity:.5},[`& .${Z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${Z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${Z["columnHeader--filledGroup"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]} .${Z.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${Z["columnHeader--filledGroup"]}.${Z["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${Z.sortIcon}, & .${Z.filterIcon}`]:{fontSize:"inherit"},[`& .${Z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${Z["columnHeader--alignCenter"]} .${Z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${Z["columnHeader--alignRight"]} .${Z.columnHeaderDraggableContainer}, & .${Z["columnHeader--alignRight"]} .${Z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${Z["columnHeader--alignCenter"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${Z["columnHeader--alignRight"]} .${Z.menuIcon}, & .${Z["columnHeader--alignRight"]} .${Z.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${Z["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${Z.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${Z["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${Z["columnSeparator--sideRight"]}`]:{right:-12},[`& .${Z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${Z["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${Z.iconSeparator}`]:{color:"inherit"},[`& .${Z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${Z.columnHeader}:hover`]:{[`& .${Z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${Z.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${Z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${Z.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${Z.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${Z.row}:not(.${Z["row--dynamicHeight"]}) > .${Z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${Z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${Z.cell}.${Z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${Z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${Z["row--editing"]} .${Z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${Z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${Z.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${Z.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${Z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${Z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${Z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${Z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${Z.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${Z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${Z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${Z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${Z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${Z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${Z["columnHeader--dragging"]}, & .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${Z["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${Z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${Z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${Z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${Z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),tie=["children","className"],nie=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${fe(n)}`]};return Ie(o,Lt,r)},rie=u.forwardRef(function(t,n){const r=Xe(),{children:o,className:i}=t,s=oe(t,tie),a=mt(),c=We(a,ar),f=We(a,pv),p=We(a,Dre),h=We(a,YC),m=u.useRef(null),v=xt(m,n),b=We(a,Tre),g={density:p,classes:r.classes,autoHeight:r.autoHeight},S=nie(g);a.current.rootElementRef=m;const[w,P]=u.useState(!1);return Rn(()=>{P(!0)},[]),Rn(()=>{w&&a.current.unstable_updateGridDimensionsRef()},[a,w]),w?_.jsx(eie,x({ref:v,className:he(i,S.root),role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+f,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),oie=["className"],iie=e=>{const{classes:t}=e;return Ie({root:["footerContainer"]},Lt,t)},sie=re("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?xs(ot(e.palette.divider,1),.88):Cs(ot(e.palette.divider,1),.68)}`})),lie=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,oie),s={classes:Xe().classes},a=iie(s);return _.jsx(sie,x({ref:n,className:he(a.root,r)},o))}),aie=["className"],cie=e=>{const{classes:t}=e;return Ie({root:["overlay"]},Lt,t)},uie=re("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:ot(e.palette.background.default,e.palette.action.disabledOpacity)})),vv=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,aie),s={classes:Xe().classes},a=cie(s);return _.jsx(uie,x({ref:n,className:he(a.root,r)},o))}),die=["className"],fie=e=>{const{classes:t}=e;return Ie({root:["iconButtonContainer"]},Lt,t)},pie=re("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),_O=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,die),s={classes:Xe().classes},a=fie(s);return _.jsx(pie,x({ref:n,className:he(a.root,r)},o))}),hie=e=>{const{classes:t}=e;return Ie({icon:["sortIcon"]},Lt,t)};function mie(e,t,n,r){let o;const i={};return t==="asc"?o=e.ColumnSortedAscendingIcon:t==="desc"?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?_.jsx(o,x({fontSize:"small",className:n},i)):null}function gie(e){const{direction:t,index:n,sortingOrder:r}=e,o=mt(),i=Xe(),s=x({},e,{classes:i.classes}),a=hie(s),c=mie(i.components,t,a.icon,r);if(!c)return null;const f=_.jsx(Jn,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return _.jsxs(_O,{children:[n!=null&&_.jsx(J_,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const vie=u.memo(gie),yie=e=>{const{classes:t,open:n}=e;return Ie({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Lt,t)},bie=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=mt(),a=Xe(),c=x({},e,{classes:a.classes}),f=yie(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return _.jsx("div",{className:f.root,children:_.jsx(Jn,{ref:i,tabIndex:-1,className:f.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:_.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function wie({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=mt(),f=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?_.jsx(MO,{placement:`bottom-${f.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:_.jsx(n,x({currentColumn:f,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function Cie(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function xie(e,t){return e.closest(`.${t}`)}function JC(e){return e.replace(/["\\]/g,"\\$&")}function Sie(e,t){return e.querySelector(`[role="columnheader"][data-field="${JC(t)}"]`)}function RO(e,t){return e.querySelector(`.${Z.row}[data-id="${JC(String(t))}"]`)}function Eie(e,{id:t,field:n}){const r=RO(e,t);return r?r.querySelector(`.${Z.cell}[data-field="${JC(n)}"]`):null}const Pie=["className"],kie=e=>{const{classes:t}=e;return Ie({root:["columnHeaderTitle"]},Lt,t)},Iie=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),$ie=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Pie),s={classes:Xe().classes},a=kie(s);return _.jsx(Iie,x({ref:n,className:he(a.root,r)},o))});function Tie(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Xe(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const f=Cie(s.current);c(f?n:"")}},[s,o,r,n]),_.jsx(i.components.BaseTooltip,x({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:_.jsx($ie,{ref:s,children:n})}))}const Mie=["resizable","resizing","height","side"];var kb;(function(e){e.Left="left",e.Right="right"})(kb||(kb={}));const _ie=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${fe(o)}`],icon:["iconSeparator"]};return Ie(i,Lt,r)};function Rie(e){const{height:t,side:n=kb.Right}=e,r=oe(e,Mie),o=Xe(),i=x({},e,{side:n,classes:o.classes}),s=_ie(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return _.jsx("div",x({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:_.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const Oie=u.memo(Rie),Lie=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],OO=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:f,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:v,description:b,width:g,columnMenuIconButton:S=null,columnMenu:w=null,columnTitleIconButtons:P=null,headerClassName:C,label:E,resizable:I,draggableContainerProps:T,columnHeaderSeparatorProps:k,disableHeaderSeparator:$}=t,R=oe(t,Lie),O=mt(),N=Xe(),U=u.useRef(null),[j,L]=u.useState(o),D=xt(U,n);let B="none";return c!=null&&(B=c==="asc"?"ascending":"descending"),u.useEffect(()=>{j||L(o)},[j,o]),u.useLayoutEffect(()=>{const W=O.current.state.columnMenu;if(f&&!W.open){const z=U.current.querySelector('[tabindex="0"]')||U.current;z==null||z.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,f]),_.jsxs("div",x({ref:D,className:he(r.root,C),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":B,"aria-label":v==null?E:void 0},R,{children:[_.jsxs("div",x({className:r.draggableContainer,draggable:m},T,{children:[_.jsxs("div",{className:r.titleContainer,children:[_.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:_.jsx(Tie,{label:E,description:b,columnWidth:g})}),P]}),S]})),!$&&_.jsx(Oie,x({resizable:!N.disableColumnResize&&!!I,resizing:a,height:s,side:h},k)),w]}))}),Aie=e=>{const{column:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,f=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",f&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Ie(p,Lt,n)};function Fie(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:f,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:S,extendRowFullWidth:w,disableReorder:P,separatorSide:C}=e,E=mt(),I=Xe(),T=u.useRef(null),k=kn(),$=kn(),R=u.useRef(null),[O,N]=u.useState(a),{hasScrollX:U,hasScrollY:j}=(t=E.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},L=u.useMemo(()=>!I.disableColumnReorder&&!P&&!s.disableReorder,[I.disableColumnReorder,P,s.disableReorder]);let D;s.renderHeader&&(D=s.renderHeader(E.current.getColumnHeaderParams(s.field)));const W=h?!(h&&U&&!j)&&!w:I.showColumnRightBorder,A=x({},e,{classes:I.classes,showRightBorder:W}),z=Aie(A),G=u.useCallback(be=>$e=>{$e.currentTarget.contains($e.target)&&E.current.publishEvent(be,E.current.getColumnHeaderParams(s.field),$e)},[E,s.field]),q=u.useMemo(()=>({onClick:G("columnHeaderClick"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),X=u.useMemo(()=>L?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEnd:G("columnHeaderDragEnd")}:{},[L,G]),ie=u.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown")}),[G]);u.useEffect(()=>{O||N(a)},[O,a]);const ee=u.useCallback(()=>{N(!1)},[]),se=!I.disableColumnMenu&&!s.disableColumnMenu&&_.jsx(bie,{column:s,columnMenuId:k,columnMenuButtonId:$,open:O,iconButtonRef:R}),ae=_.jsx(wie,{columnMenuId:k,columnMenuButtonId:$,field:s.field,open:a,target:R.current,ContentComponent:I.components.ColumnMenu,contentComponentProps:(n=I.componentsProps)==null?void 0:n.columnMenu,onExited:ee}),we=(r=s.sortingOrder)!=null?r:I.sortingOrder,de=_.jsxs(u.Fragment,{children:[!I.disableColumnFilter&&_.jsx(I.components.ColumnHeaderFilterIconButton,x({field:s.field,counter:b},(o=I.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&_.jsx(vie,{direction:m,index:v,sortingOrder:we})]});u.useLayoutEffect(()=>{const be=E.current.state.columnMenu;if(g&&!be.open){const Se=T.current.querySelector('[tabindex="0"]')||T.current;Se==null||Se.focus(),E.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[E,g]);const le=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,te=(i=s.headerName)!=null?i:s.field;return _.jsx(OO,x({ref:T,classes:z,columnMenuOpen:a,colIndex:c,height:f,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:S,separatorSide:C,isDraggable:L,headerComponent:D,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:se,columnTitleIconButtons:de,headerClassName:le,label:te,resizable:!I.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:ae,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const Vm=e=>e.preferencePanel;var El;(function(e){e.filters="filters",e.columns="columns"})(El||(El={}));const Nie=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},Lt,t)};function Die(e){var t;const{counter:n,field:r,onClick:o}=e,i=mt(),s=Xe(),a=x({},e,{classes:s.classes}),c=Nie(a),f=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=Vm(i.current.state);m&&v===El.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=_.jsx(Jn,{onClick:f,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:_.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return _.jsx(s.components.BaseTooltip,x({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:_.jsxs(_O,{children:[n>1&&_.jsx(J_,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const Bie=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],zie=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Lt,t)},Hie=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:f}=t,p=oe(t,Bie),h=mt(),m=Xe(),v={classes:m.classes},b=zie(v),g=u.useRef(null),S=u.useRef(),w=xt(g,n),P=h.current.getCellElement(i,o),C=k=>{const $={value:k.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",$,k)};u.useLayoutEffect(()=>{f===0&&P&&(P.tabIndex=-1)},[P,f]),u.useLayoutEffect(()=>{if(c){var k;const $=(k=g.current)==null?void 0:k.querySelector("input");$==null||$.focus()}else S.current&&S.current.stop({})},[c]);const E=u.useCallback(k=>{TO(k.key)&&k.stopPropagation(),tp(k.key)&&!k.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,k)},[h,t]);if(a.position==="footer")return null;const I=h.current.isRowSelectable(i),T=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:_.jsx(m.components.BaseCheckbox,x({ref:w,tabIndex:f,checked:s,onChange:C,className:b.root,inputProps:{"aria-label":T},onKeyDown:E,disabled:!I,touchRippleRef:S},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),jie=u.memo(Hie),To=e=>e.selection,Vie=Ye(To,e=>e.length),Uie=Ye(To,Ef,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Um=Ye(To,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Iu=e=>e.pagination,Cd=Ye(Iu,e=>e.page),jd=Ye(Iu,e=>e.pageSize);Ye(Iu,e=>e.pageCount);const ZC=Ye(Iu,pa,WC,$s,mO,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],f=a-s+1,p=r.findIndex(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=f;){const v=r[h],b=t[v.id].depth;(m<f||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),Wie=Ye($s,ZC,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),LO=Ye(Hd,ZC,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Gie=["field","colDef"],Kie=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},Lt,t)},qie=u.forwardRef(function(t,n){var r;const o=oe(t,Gie),[,i]=u.useState(!1),s=mt(),a=Xe(),c={classes:a.classes},f=Kie(c),p=We(s,xO),h=We(s,To),m=We(s,Hd),v=We(s,LO),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter($=>s.current.getRow($)?a.isRowSelectable(s.current.getRowParams($)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((R,O)=>(R[O]=!0,R),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),S=u.useMemo(()=>b.filter($=>g[$]).length,[b,g]),w=S>0&&S<Object.keys(g).length,P=S>0,C=$=>{const R={value:$.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",R)},E=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const $=s.current.getColumnHeaderElement(t.field);E===0&&$&&($.tabIndex=-1)},[E,s,t.field]);const I=u.useCallback($=>{$.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!P}),tp($.key)&&!$.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,$)},[s,t,P]),T=u.useCallback(()=>{i($=>!$)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",T),[s,T]);const k=s.current.getLocaleText(P?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return _.jsx(a.components.BaseCheckbox,x({ref:n,indeterminate:w,checked:P,onChange:C,className:f.root,inputProps:{"aria-label":k},tabIndex:E,onKeyDown:I},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),Yie=e=>{const{onClick:t}=e,n=mt(),r=Xe(),o=u.useCallback(i=>{t(i),n.current.showPreferences(El.columns)},[n,t]);return r.disableColumnSelector?null:_.jsx(sr,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},Xie=e=>{const{column:t,onClick:n}=e,r=mt(),o=Xe(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:_.jsx(sr,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},Qie=["hideMenu","currentColumn","open","id","labelledby","className","children"],Jie=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,f=oe(t,Qie),p=u.useCallback(h=>{$O(h.key)&&h.preventDefault(),zoe(h.key)&&r(h)},[r]);return _.jsx(yC,x({id:i,ref:n,className:he(Z.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},f,{children:c}))}),Zie=mi(["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"),AO=(e,t)=>t&&e.length>1?(Zie(),[e[0]]):e,OI=(e,t)=>n=>x({},n,{sorting:x({},n.sorting,{sortModel:AO(e,t)})}),ese=e=>e==="desc",tse=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=ese(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},nse=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),rse=(e,t)=>{const n=e.map(r=>tse(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>nse(n,o,i)).map(o=>o.node.id)},LI=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},ex=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,ose=new Intl.Collator,ise=(e,t)=>{const n=ex(e,t);return n!==null?n:typeof e=="string"?ose.compare(e.toString(),t.toString()):e-t},FO=(e,t)=>{const n=ex(e,t);return n!==null?n:Number(e)-Number(t)},NO=(e,t)=>{const n=ex(e,t);return n!==null?n:e>t?1:e<t?-1:0};function sse(e){return typeof e=="number"}function DO(e){return typeof e=="function"}function lse(){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 Qh(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const kf=(e,t,n)=>Math.max(t,Math.min(n,e));function gs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!gs(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const s=o[i];if(!gs(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!gs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const ase=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function BO(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:f,variant:p}=e,h=oe(e,ase),m={color:s,error:a,helperText:c,size:f,variant:p},[v,b]=u.useState(t.value||[]),g=kn(),S=Xe();u.useEffect(()=>{var P;const C=(P=t.value)!=null?P:[];b(C.map(String))},[t.value]);const w=u.useCallback((P,C)=>{b(C.map(String)),n(x({},t,{value:[...C]}))},[n,t]);return _.jsx(Y_,x({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:(P,C)=>{const{inputValue:E}=C;return E==null||E===""?[]:[E]},id:g,value:v,onChange:w,renderTags:(P,C)=>P.map((E,I)=>_.jsx(Kg,x({variant:"outlined",size:"small",label:E},C({index:I})))),renderInput:P=>{var C;return _.jsx(S.components.BaseTextField,x({},P,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},P.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(C=S.componentsProps)==null?void 0:C.baseTextField))}},h))}const cse=e=>{if(!e)return null;const t=new RegExp(Qh(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},use=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Qh(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:_i},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:_i},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Qh(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:_i},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Qh(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:_i},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return({value:o})=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:BO}],Pl={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:ise,type:"string",align:"left",filterOperators:use(),renderEditCell:Roe,getApplyQuickFilterFn:cse},tx="actions",dse=x({},Pl,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Zoe,getApplyQuickFilterFn:void 0}),fse=["item","applyValue","apiRef","focusElementRef"];function pse(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,f=oe(e,fse),[p,h]=u.useState(i.value||""),m=Xe(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":sr,S=u.useCallback(w=>{const P=w.target.value;h(P),s(x({},i,{value:P}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),_.jsxs(m.components.BaseTextField,x({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:S,select:!0,variant:"standard",SelectProps:x({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},f,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[_.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),_.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),_.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const hse=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>Boolean(n)===t},InputComponent:pse}];function mse({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const zO=x({},Pl,{type:"boolean",align:"center",headerAlign:"center",renderCell:noe,renderEditCell:soe,sortComparator:FO,valueFormatter:mse,filterOperators:hse(),getApplyQuickFilterFn:void 0,aggregable:!1}),Vs="__check__",np=x({},zO,{field:Vs,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>Um(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>_.jsx(qie,x({},e)),renderCell:e=>_.jsx(jie,x({},e))}),gse=["item","applyValue","type","apiRef","focusElementRef","InputProps"],vse=500;function ac(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,f=oe(e,gse),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=kn(),S=Xe(),w=u.useCallback(P=>{const C=P.target.value;clearTimeout(p.current),m(String(C)),b(!0),p.current=setTimeout(()=>{o(x({},r,{value:C})),b(!1)},vse)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var P;const C=(P=r.value)!=null?P:"";m(String(C))},[r.value]),_.jsx(S.components.BaseTextField,x({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:w,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:x({},v?{endAdornment:_.jsx(XC,{})}:{},c,{inputProps:x({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},f,(n=S.componentsProps)==null?void 0:n.baseTextField))}const yse=/(\d+)-(\d+)-(\d+)/,bse=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function cc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?bse:yse).slice(1).map(Number),f=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),f);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,f)}}const HO=e=>[{value:"is",getApplyFilterFn:t=>cc(t,(n,r)=>n===r,e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>cc(t,(n,r)=>n!==r,e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>cc(t,(n,r)=>n>r,e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>cc(t,(n,r)=>n>=r,e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>cc(t,(n,r)=>n<r,e,!e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>cc(t,(n,r)=>n<=r,e),InputComponent:ac,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!=null,requiresFilterValue:!1}];function wse({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function Cse({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const xse=x({},Pl,{type:"date",sortComparator:NO,valueFormatter:wse,filterOperators:HO(),renderEditCell:SO,getApplyQuickFilterFn:void 0}),Sse=x({},Pl,{type:"dateTime",sortComparator:NO,valueFormatter:Cse,filterOperators:HO(!0),renderEditCell:SO,getApplyQuickFilterFn:void 0}),Ks=e=>e==null?null:Number(e),Ese=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>Ks(t)===Ks(e),Pse=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Ks(t)===e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>Ks(t)!==e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Ks(t)>e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Ks(t)>=e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Ks(t)<e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:Ks(t)<=e.value,InputComponent:_i,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:({value:t})=>t!=null&&e.value.includes(Number(t)),InputComponent:BO,InputComponentProps:{type:"number"}}],kse=x({},Pl,{type:"number",align:"right",headerAlign:"right",sortComparator:FO,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>sse(e)?e.toLocaleString():e||"",filterOperators:Pse(),getApplyQuickFilterFn:Ese}),Ise=["item","applyValue","type","apiRef","focusElementRef"],$se=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,f=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return _.jsx(o,{value:f,children:h},c)});function AI(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:f,focusElementRef:p}=e,h=oe(e,Ise),[m,v]=u.useState((t=s.value)!=null?t:""),b=kn(),g=Xe(),w=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,P=s.columnField?f.current.getColumn(s.columnField):null,C=u.useMemo(()=>{if(P!==null)return typeof P.valueOptions=="function"?P.valueOptions({field:P.field}):P.valueOptions},[P]),E=u.useCallback(I=>{let T=I.target.value;T=jm(T,C),v(String(T)),a(x({},s,{value:T}))},[a,s,C]);return u.useEffect(()=>{var I;let T;if(C!==void 0){if(T=jm(s.value,C),T!==s.value){a(x({},s,{value:T}));return}}else T=s.value;T=(I=T)!=null?I:"",v(String(T))},[s,C,a]),_.jsx(g.components.BaseTextField,x({id:b,label:f.current.getLocaleText("filterPanelInputLabel"),placeholder:f.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:E,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:x({native:w},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:$se(f.current.getColumn(s.columnField),f.current,w?"option":sr)}))}const Tse=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],Mse=(e,t)=>tl(e)===tl(t),_se=M_();function Rse(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:f="standard"}=e,p=oe(e,Tse),h={color:i,error:s,helperText:a,size:c,variant:f},m=kn(),v=Xe(),b=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>b!=null&&b.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[],[b]),S=u.useMemo(()=>g==null?void 0:g.map(tl),[g]),{valueFormatter:w,field:P}=r.current.getColumn(t.columnField),C=T=>typeof T=="object"?T.label:w&&T!==""?w({value:T,field:P,api:r.current}):T,E=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(k=>{const $=tl(k);return(S==null?void 0:S.findIndex(O=>O===$))||0}).filter(k=>k>=0).map(k=>g[k]):t.value:[],[t.value,g,S]);u.useEffect(()=>{(!Array.isArray(t.value)||E.length!==t.value.length)&&n(x({},t,{value:E.map(tl)}))},[t,E,n]);const I=u.useCallback((T,k)=>{n(x({},t,{value:[...k.map(tl)]}))},[n,t]);return _.jsx(Y_,x({multiple:!0,limitTags:1,options:g,isOptionEqualToValue:Mse,filterOptions:_se,id:m,value:E,onChange:I,renderTags:(T,k)=>T.map(($,R)=>_.jsx(Kg,x({variant:"outlined",size:"small",label:C($)},k({index:R})))),renderInput:T=>{var k;return _.jsx(v.components.BaseTextField,x({},T,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:x({},T.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(k=v.componentsProps)==null?void 0:k.baseTextField))}},p))}const qs=e=>e==null||typeof e!="object"?e:e.value,Ose=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[qs(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let f,p;typeof c=="object"?(f=c.value,p=c.label):(f=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(f)||s.push(f.toString()))}),({value:c})=>c!=null?s.includes(qs(c).toString()):!1},Lse=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>qs(t)===qs(e.value),InputComponent:AI},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>qs(t)!==qs(e.value),InputComponent:AI},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(qs);return({value:n})=>t.includes(qs(n))},InputComponent:Rse}],Ase=x({},Pl,{type:"singleSelect",renderEditCell:Woe,filterOperators:Lse(),getApplyQuickFilterFn:Ose}),Wm="__default__",Fse=()=>({string:Pl,number:kse,date:xse,dateTime:Sse,boolean:zO,singleSelect:Ase,[tx]:dse,[Wm]:Pl}),jO=["maxWidth","minWidth","width","flex"],VO=(e={})=>{const t=x({},Fse());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=x({},t[n],r):t[n]=x({},t[r.extendType||Wm],r)}),t};function Nse({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(f=>{s-=r.all[f].computedWidth,a-=r.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{r.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{r.freeze(f)}):n.forEach(({field:f})=>{r.freeze(f)}),o()}return o(),r.all}const UO=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=x({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let f;c.flex&&c.flex>0?(r+=c.flex,f=0,i.push(c)):f=kf(c.width,c.minWidth,c.maxWidth),o+=f,c.computedWidth=f}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=Nse({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return x({},e,{lookup:n})},Dse=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.all:[...s,...e.all.filter(p=>!i[p])],c=x({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=x({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,b])=>{m[v]=b===-1?1/0:b}),c[h]=m}return{all:a,lookup:c}},Bse=(e,t)=>!t||!e[t]?e[Wm]:e[t],gc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=el(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,f,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const E=xa(e.current.state);m={all:s?[]:[...E.all],lookup:x({},E.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((E,I)=>x({},E,{[I]:!1}),{}));const b={};t.forEach(E=>{const{field:I}=E;b[I]=!0,v[I]=!0;let T=m.lookup[I];T==null?(T=x({},Bse(r,E.type),{field:I,hasBeenResized:!1}),m.all.push(I)):s&&m.all.push(I);let k=T.hasBeenResized;jO.forEach($=>{E[$]!==void 0&&(k=!0,E[$]===-1&&(E[$]=1/0))}),m.lookup[I]=x({},T,{hide:E.hide==null?!1:E.hide},E,{hasBeenResized:k})}),s&&!h&&Object.keys(m.lookup).forEach(E=>{v[E]||delete m.lookup[E]});const g=x({},m.lookup),S=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let w={};if(i){let E=!1;const I=x({},o);h?S.all.forEach(T=>{I[T]=!m.lookup[T].hide}):s&&Object.keys(I).forEach(T=>{S.lookup[T]||(delete I[T],E=!0)}),S.all.forEach(T=>{if(!b[T]&&g[T]===S.lookup[T])return;let k=o[T];k===void 0&&(h?k=!0:k=!!xa(e.current.state).lookup[T]);const $=!S.lookup[T].hide;$!==k&&(E=!0,I[T]=$)}),E||h?w=I:w=o}else w=o;const P=Dse(S,n),C=x({},P,{columnVisibilityModel:w});return UO(C,(a=(c=(f=e.current).getRootDimensions)==null||(p=c.call(f))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},FI=e=>t=>x({},t,{columns:e});function Ib({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,f=t.current.unstable_getCellColSpanInfo(c,e);f&&f.spannedByColSpan&&(i=f.leftVisibleCellIndex)}return i}function zse({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Ib({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Hse=e=>{const{column:t,onClick:n}=e,r=mt(),o=Xe(),i=u.useRef(),c=ar(r).filter(p=>p.disableColumnMenu!==!0).length===1,f=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:_.jsx(sr,{onClick:f,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})},jse=e=>{const{column:t,onClick:n}=e,r=mt(),o=We(r,ri),i=u.useMemo(()=>{if(!t)return null;const a=o.find(c=>c.field===t.field);return a==null?void 0:a.sort},[t,o]),s=u.useCallback(a=>{n(a);const c=a.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t,c)},[r,t,n]);return!t||!t.sortable?null:_.jsxs(u.Fragment,{children:[_.jsx(sr,{onClick:s,disabled:i==null,children:r.current.getLocaleText("columnMenuUnsort")}),_.jsx(sr,{onClick:s,"data-value":"asc",disabled:i==="asc",children:r.current.getLocaleText("columnMenuSortAsc")}),_.jsx(sr,{onClick:s,"data-value":"desc",disabled:i==="desc",children:r.current.getLocaleText("columnMenuSortDesc")})]})},Vse=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=mt(),s=[_.jsx(jse,{onClick:r,column:o}),_.jsx(Xie,{onClick:r,column:o}),_.jsx(Hse,{onClick:r,column:o}),_.jsx(Yie,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return _.jsx(Jie,x({ref:n},t,{children:a.map((c,f)=>u.cloneElement(c,{key:f,onClick:r,column:o}))}))}),Use=["className"],Wse=e=>{const{classes:t}=e;return Ie({root:["panelContent"]},Lt,t)},Gse=re("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function WO(e){const{className:t}=e,n=oe(e,Use),o={classes:Xe().classes},i=Wse(o);return _.jsx(Gse,x({className:he(t,i.root)},n))}const Kse=["className"],qse=e=>{const{classes:t}=e;return Ie({root:["panelFooter"]},Lt,t)},Yse=re("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function GO(e){const{className:t}=e,n=oe(e,Kse),o={classes:Xe().classes},i=qse(o);return _.jsx(Yse,x({className:he(t,i.root)},n))}const Xse=["className"],Qse=e=>{const{classes:t}=e;return Ie({root:["panelHeader"]},Lt,t)},Jse=re("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Zse(e){const{className:t}=e,n=oe(e,Xse),o={classes:Xe().classes},i=Qse(o);return _.jsx(Jse,x({className:he(t,i.root)},n))}const ele=["className"],tle=e=>{const{classes:t}=e;return Ie({root:["panelWrapper"]},Lt,t)},nle=re("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),rle=()=>!0,KO=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,ele),s={classes:Xe().classes},a=tle(s);return _.jsx(j_,{open:!0,disableEnforceFocus:!0,isEnabled:rle,children:_.jsx(nle,x({ref:n,tabIndex:-1,className:he(r,a.root)},o))})}),ole=!1,ile=e=>{const{classes:t}=e;return Ie({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Lt,t)},sle=re("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})(()=>({padding:"8px 0px 8px 8px"})),lle=re("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${hr.root}`]:{marginRight:e.spacing(.5)}})),ale=re(Jn)({justifyContent:"flex-end"});function cle(e){var t,n,r;const o=mt(),i=u.useRef(null),s=We(o,zo),a=We(o,el),c=Xe(),[f,p]=u.useState(""),h={classes:c.classes},m=ile(h),v=w=>{const{name:P}=w.target;o.current.setColumnVisibility(P,a[P]===!1)},b=u.useCallback(w=>o.current.unstable_caches.columns.isUsingColumnVisibilityModel?w?o.current.setColumnVisibilityModel({}):o.current.setColumnVisibilityModel(Object.fromEntries(s.filter(P=>P.hideable!==!1).map(P=>[P.field,!1]))):o.current.updateColumns(s.map(P=>P.hideable!==!1?{field:P.field,hide:!w}:P)),[o,s]),g=u.useCallback(w=>{p(w.target.value)},[]),S=u.useMemo(()=>{if(!f)return s;const w=f.toLowerCase();return s.filter(P=>(P.headerName||P.field).toLowerCase().indexOf(w)>-1)},[s,f]);return u.useEffect(()=>{i.current.focus()},[]),_.jsxs(KO,x({},e,{children:[_.jsx(Zse,{children:_.jsx(c.components.BaseTextField,x({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:f,onChange:g,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),_.jsx(WO,{children:_.jsx(sle,{className:m.root,children:S.map(w=>{var P;return _.jsxs(lle,{className:m.columnsPanelRow,children:[_.jsx(cR,{control:_.jsx(c.components.BaseSwitch,x({disabled:w.hideable===!1,checked:a[w.field]!==!1,onClick:v,name:w.field,size:"small"},(P=c.componentsProps)==null?void 0:P.baseSwitch)),label:w.headerName||w.field}),!c.disableColumnReorder&&ole&&_.jsx(ale,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:_.jsx(PO,{})})]},w.field)})})}),_.jsxs(GO,{children:[_.jsx(c.components.BaseButton,x({onClick:()=>b(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),_.jsx(c.components.BaseButton,x({onClick:()=>b(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const ule=["children","className","classes"],dle=Ue("MuiDataGrid",["panel","paper"]),fle=re(Ma,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),ple=re(qo,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),hle=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=oe(e,ule),s=mt(),a=dle,[c,f]=u.useState(!1),p=u.useCallback(()=>{s.current.hidePreferences()},[s]),h=u.useCallback(b=>{QC(b.key)&&s.current.hidePreferences()},[s]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{f(!0)},effect:()=>()=>{f(!1)}}],[]),v=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return v?_.jsx(fle,x({ref:t,placement:"bottom-start",className:he(o,a.panel),anchorEl:v,modifiers:m},i,{children:_.jsx(__,{mouseEvent:"onMouseUp",onClickAway:p,children:_.jsx(ple,{className:a.paper,elevation:8,onKeyDown:h,children:c&&r})})})):null}),mle=u.forwardRef(function(t,n){var r,o,i;const s=mt(),a=We(s,zo),c=Xe(),f=We(s,Vm),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=f.openedPanelValue)!=null?r:El.filters);return _.jsx(c.components.Panel,x({ref:n,as:c.components.BasePopper,open:a.length>0&&f.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),gle=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],vle=["InputComponentProps"],yle=e=>{const{classes:t}=e;return Ie({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Lt,t)},ble=re("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),wle=re(Ra,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Cle=re(Ra,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),xle=re(Ra,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Sle=re(Ra,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Ele=re(Ra,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Ple=e=>{switch(e){case $r.And:return"filterPanelOperatorAnd";case $r.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},dd=e=>e.headerName||e.field,NI=new Intl.Collator,kle=u.forwardRef(function(t,n){var r,o,i,s,a,c,f;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:w,focusElementRef:P,linkOperators:C=[$r.And,$r.Or],columnsSort:E,deleteIconProps:I={},linkOperatorInputProps:T={},operatorInputProps:k={},columnInputProps:$={},valueInputProps:R={}}=t,O=oe(t,gle),N=mt(),U=We(N,mv),j=kn(),L=kn(),D=kn(),B=kn(),W=Xe(),A={classes:W.classes},z=yle(A),G=u.useRef(null),q=u.useRef(null),X=h&&C.length>0,ie=((r=W.componentsProps)==null?void 0:r.baseFormControl)||{},se=(i=(((o=W.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,ae=se?"option":sr,{InputComponentProps:we}=R,de=oe(R,vle),le=u.useMemo(()=>{switch(E){case"asc":return U.sort((Fe,Le)=>NI.compare(dd(Fe),dd(Le)));case"desc":return U.sort((Fe,Le)=>-NI.compare(dd(Fe),dd(Le)));default:return U}},[U,E]),te=p.columnField?N.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var Fe;return!p.operatorValue||!te?null:(Fe=te.filterOperators)==null?void 0:Fe.find(Le=>Le.value===p.operatorValue)},[p,te]),$e=u.useCallback(Fe=>{const Le=Fe.target.value,et=N.current.getColumn(Le);if(et.field===te.field)return;const gt=et.filterOperators.find(tt=>tt.value===p.operatorValue)||et.filterOperators[0],nt=!gt.InputComponent||gt.InputComponent!==(be==null?void 0:be.InputComponent);v(x({},p,{columnField:Le,operatorValue:gt.value,value:nt?void 0:p.value}))},[N,v,p,te,be]),Se=u.useCallback(Fe=>{const Le=Fe.target.value,et=te==null?void 0:te.filterOperators.find(nt=>nt.value===Le),gt=!(et!=null&&et.InputComponent)||(et==null?void 0:et.InputComponent)!==(be==null?void 0:be.InputComponent);v(x({},p,{operatorValue:Le,value:gt?void 0:p.value}))},[v,p,te,be]),Ne=u.useCallback(Fe=>{const Le=Fe.target.value===$r.And.toString()?$r.And:$r.Or;w(Le)},[w]),Re=()=>{W.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(x({},p,{value:void 0})):m(p)};return u.useImperativeHandle(P,()=>({focus:()=>{if(be!=null&&be.InputComponent){var Fe;G==null||(Fe=G.current)==null||Fe.focus()}else q.current.focus()}}),[be]),_.jsxs(ble,x({ref:n,className:z.root},O,{children:[_.jsx(wle,x({variant:"standard",as:W.components.BaseFormControl},ie,I,{className:he(z.deleteIcon,ie.className,I.className),children:_.jsx(Jn,{"aria-label":N.current.getLocaleText("filterPanelDeleteIconLabel"),title:N.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Re,size:"small",children:_.jsx(W.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),_.jsx(Cle,x({variant:"standard",as:W.components.BaseFormControl},ie,T,{sx:x({display:X?"flex":"none",visibility:g?"visible":"hidden"},ie.sx||{},T.sx||{}),className:he(z.linkOperatorInput,ie.className,T.className),children:_.jsx(W.components.BaseSelect,x({inputProps:{"aria-label":N.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:Ne,disabled:!!S||C.length===1,native:se},(s=W.componentsProps)==null?void 0:s.baseSelect,{children:C.map(Fe=>_.jsx(ae,{value:Fe.toString(),children:N.current.getLocaleText(Ple(Fe))},Fe.toString()))}))})),_.jsxs(xle,x({variant:"standard",as:W.components.BaseFormControl},ie,$,{className:he(z.columnInput,ie.className,$.className),children:[_.jsx(sb,{htmlFor:j,id:L,children:N.current.getLocaleText("filterPanelColumns")}),_.jsx(W.components.BaseSelect,x({labelId:L,id:j,label:N.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:$e,native:se},(a=W.componentsProps)==null?void 0:a.baseSelect,{children:le.map(Fe=>_.jsx(ae,{value:Fe.field,children:dd(Fe)},Fe.field))}))]})),_.jsxs(Sle,x({variant:"standard",as:W.components.BaseFormControl},ie,k,{className:he(z.operatorInput,ie.className,k.className),children:[_.jsx(sb,{htmlFor:D,id:B,children:N.current.getLocaleText("filterPanelOperators")}),_.jsx(W.components.BaseSelect,x({labelId:B,label:N.current.getLocaleText("filterPanelOperators"),id:D,value:p.operatorValue,onChange:Se,native:se,inputRef:q},(c=W.componentsProps)==null?void 0:c.baseSelect,{children:te==null||(f=te.filterOperators)==null?void 0:f.map(Fe=>_.jsx(ae,{value:Fe.value,children:Fe.label||N.current.getLocaleText(`filterOperator${fe(Fe.value)}`)},Fe.value))}))]})),_.jsx(Ele,x({variant:"standard",as:W.components.BaseFormControl},ie,de,{className:he(z.valueInput,ie.className,de.className),children:be!=null&&be.InputComponent?_.jsx(be.InputComponent,x({apiRef:N,item:p,applyValue:v,focusElementRef:G},be.InputComponentProps,we)):null}))]}))}),Ile=["linkOperators","columnsSort","filterFormProps","children"],$le=u.forwardRef(function(t,n){var r;const o=mt(),i=Xe(),s=We(o,Dr),a=We(o,mv),c=u.useRef(null),{linkOperators:f=[$r.And,$r.Or],columnsSort:p,filterFormProps:h}=t,m=oe(t,Ile),v=u.useCallback(E=>{o.current.upsertFilterItem(E)},[o]),b=u.useCallback(E=>{o.current.setFilterLinkOperator(E)},[o]),g=u.useCallback(()=>{const E=a.find(I=>{var T;return(T=I.filterOperators)==null?void 0:T.length});return E?{columnField:E.field,operatorValue:E.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),S=u.useMemo(()=>{if(s.items.length)return s.items;const E=g();return E?[E]:[]},[s.items,g]),w=S.length>1,P=()=>{const E=g();E&&o.current.upsertFilterItems([...S,E])},C=u.useCallback(E=>{const I=S.length===1;o.current.deleteFilterItem(E),I&&o.current.hideFilterPanel()},[o,S.length]);return u.useEffect(()=>{f.length>0&&s.linkOperator&&!f.includes(s.linkOperator)&&b(f[0])},[f,b,s.linkOperator]),u.useEffect(()=>{S.length>0&&c.current.focus()},[S.length]),_.jsxs(KO,x({ref:n},m,{children:[_.jsx(WO,{children:S.map((E,I)=>_.jsx(kle,x({item:E,applyFilterChanges:v,deleteFilter:C,hasMultipleFilters:w,showMultiFilterOperators:I>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:I!==1,applyMultiFilterOperatorChanges:b,focusElementRef:I===S.length-1?c:null,linkOperators:f,columnsSort:p},h),E.id==null?I:E.id))}),!i.disableMultipleColumnsFiltering&&_.jsx(GO,{children:_.jsx(i.components.BaseButton,x({onClick:P,startIcon:_.jsx(EO,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),Tle=["hideMenu","options"],Mle=["hideMenu","options"],_le=e=>{const t=mt(),{hideMenu:n,options:r}=e,o=oe(e,Tle);return _.jsx(sr,x({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},Rle=e=>{const t=mt(),{hideMenu:n,options:r}=e,o=oe(e,Mle);return _.jsx(sr,x({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},If=()=>({items:[],linkOperator:$r.And,quickFilterValues:[],quickFilterLogicOperator:$r.And}),Ole=["className","rowCount","visibleRowCount"],Lle=e=>{const{classes:t}=e;return Ie({root:["rowCount"]},Lt,t)},Ale=re("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Fle=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=oe(t,Ole),a=mt(),f={classes:Xe().classes},p=Lle(f);if(o===0)return null;const h=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return _.jsxs(Ale,x({ref:n,className:he(p.root,r)},s,{children:[a.current.getLocaleText("footerTotalRows")," ",h]}))}),Nle=["className","selectedRowCount"],Dle=e=>{const{classes:t}=e;return Ie({root:["selectedRowCount"]},Lt,t)},Ble=re("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"}})),zle=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=oe(t,Nle),s=mt(),c={classes:Xe().classes},f=Dle(c),p=s.current.getLocaleText("footerRowSelected")(o);return _.jsx(Ble,x({ref:n,className:he(f.root,r)},i,{children:p}))}),Hle=u.forwardRef(function(t,n){var r;const o=mt(),i=Xe(),s=We(o,kre),a=We(o,Vie),c=We(o,vO),f=!i.hideFooterSelectedRowCount&&a>0?_.jsx(zle,{selectedRowCount:a}):_.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?_.jsx(Fle,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&_.jsx(i.components.Pagination,x({},(r=i.componentsProps)==null?void 0:r.pagination));return _.jsxs(lie,x({ref:n},t,{children:[f,p,h]}))}),jle=u.forwardRef(function(t,n){var r,o;const i=Xe();return _.jsxs("div",x({ref:n},t,{children:[_.jsx(i.components.PreferencesPanel,x({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&_.jsx(i.components.Toolbar,x({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),Vle=u.forwardRef(function(t,n){return _.jsx(vv,x({ref:n},t,{children:_.jsx(Gf,{})}))}),Ule=u.forwardRef(function(t,n){const o=mt().current.getLocaleText("noRowsLabel");return _.jsx(vv,x({ref:n},t,{children:o}))}),Wle=re(WZ)(({theme:e})=>({[`& .${ua.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ua.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Gle=u.forwardRef(function(t,n){var r;const o=mt(),i=Xe(),s=We(o,Iu),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),f=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return _.jsx(Wle,x({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),yv=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=ZC(e),n=Wie(e)):(n=$s(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Aa=(e,t)=>{const n=yv(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},nx="__detail_panel_toggle__",Kle=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],qle=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Ie({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Lt,s)},Yle=({width:e})=>{if(!e)return null;const t={width:e};return _.jsx("div",{className:"MuiDataGrid-cell",style:t})};function Xle(e){var t;const{selected:n,rowId:r,row:o,index:i,style:s,rowHeight:a,className:c,visibleColumns:f,renderedColumns:p,containerWidth:h,firstColumnToRender:m,cellFocus:v,cellTabIndex:b,editRowsState:g,isLastVisible:S=!1,onClick:w,onDoubleClick:P,onMouseEnter:C,onMouseLeave:E}=e,I=oe(e,Kle),T=mt(),k=u.useRef(null),$=Xe(),R=Aa(T,$),O=We(T,hv),N=We(T,ri),U=We(T,WC),j=We(T,YC),L=i+j+2,{hasScrollX:D,hasScrollY:B}=(t=T.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},W={selected:n,isLastVisible:S,classes:$.classes,editing:T.current.getRowMode(r)===Kt.Edit,editable:$.editMode===br.Row,rowHeight:a},A=qle(W);u.useLayoutEffect(()=>{a==="auto"&&k.current&&typeof ResizeObserver=="undefined"&&T.current.unstable_storeRowHeightMeasurement(r,k.current.clientHeight)},[T,a,r]),u.useLayoutEffect(()=>{if(R.range){const $e=T.current.getRowIndexRelativeToVisibleRows(r);$e!=null&&T.current.unstable_setLastMeasuredRowIndex($e)}const le=k.current;if(!le||a!=="auto"||typeof ResizeObserver=="undefined")return;const be=new ResizeObserver($e=>{const[Se]=$e,Ne=Se.borderBoxSize&&Se.borderBoxSize.length>0?Se.borderBoxSize[0].blockSize:Se.contentRect.height;T.current.unstable_storeRowHeightMeasurement(r,Ne)});return be.observe(le),()=>be.disconnect()},[T,R.range,i,a,r]);const z=u.useCallback((le,te)=>be=>{be.target.nodeType===1&&!be.currentTarget.contains(be.target)||T.current.getRow(r)&&(T.current.publishEvent(le,T.current.getRowParams(r),be),te&&te(be))},[T,r]),G=u.useCallback(le=>{const te=xie(le.target,Z.cell),be=te==null?void 0:te.getAttribute("data-field");be&&(be===np.field||be===nx||be==="__reorder__"||T.current.getCellMode(r,be)===Tt.Edit||T.current.getColumn(be).type===tx)||z("rowClick",w)(le)},[T,w,z,r]),q=x({},s,{maxHeight:a==="auto"?"none":a,minHeight:a}),X=T.current.unstable_getRowInternalSizes(r);if(X!=null&&X.spacingTop){const le=$.rowSpacingType==="border"?"borderTopWidth":"marginTop";q[le]=X.spacingTop}if(X!=null&&X.spacingBottom){const le=$.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";q[le]=X.spacingBottom}let ie=null;if(typeof $.getRowClassName=="function"){const le=i-R.range.firstRowIndex,te=x({},T.current.getRowParams(r),{isFirstVisible:le===0,isLastVisible:le===R.rows.length-1,indexRelativeToCurrentPage:le});ie=$.getRowClassName(te)}const ee=[];for(let le=0;le<p.length;le+=1){const te=p[le],be=m+le,$e=be===f.length-1,Ne=$e?!($e&&D&&!B)&&$.disableExtendRowFullWidth:$.showCellRightBorder,Re=T.current.getCellParams(r,te.field),Fe=[],Le=$.disableColumnReorder&&te.disableReorder||!$.rowReordering&&!!N.length&&U>1&&Object.keys(g).length>0;te.cellClassName&&Fe.push(he(typeof te.cellClassName=="function"?te.cellClassName(Re):te.cellClassName));const et=g[r]?g[r][te.field]:null;let gt=null;if(et==null&&te.renderCell){var se;gt=te.renderCell(x({},Re,{api:T.current})),Fe.push(he(Z["cell--withRenderer"],(se=$.classes)==null?void 0:se["cell--withRenderer"]))}if(et!=null&&te.renderEditCell){var ae;let dt=o;T.current.unstable_getRowWithUpdatedValues&&(dt=T.current.unstable_getRowWithUpdatedValues(r,te.field));const it=x({},Re,{row:dt},et,{api:T.current});gt=te.renderEditCell(it),Fe.push(he(Z["cell--editing"],(ae=$.classes)==null?void 0:ae["cell--editing"]))}$.getCellClassName&&Fe.push($.getCellClassName(Re));const nt=v!==null&&v.id===r&&v.field===te.field,tt=b!==null&&b.id===r&&b.field===te.field&&Re.cellMode==="view"?0:-1,St=T.current.unstable_getCellColSpanInfo(r,be);if(St&&!St.spannedByColSpan){var we;const{colSpan:dt,width:it}=St.cellProps;ee.push(_.jsx($.components.Cell,x({value:Re.value,field:te.field,width:it,rowId:r,height:a,showRightBorder:Ne,formattedValue:Re.formattedValue,align:te.align||"left",cellMode:Re.cellMode,colIndex:be,isEditable:Re.isEditable,hasFocus:nt,tabIndex:tt,className:he(Fe),colSpan:dt,disableDragEvents:Le},(we=$.componentsProps)==null?void 0:we.cell,{children:gt}),te.field))}}const de=h-O;return _.jsxs("div",x({ref:k,"data-id":r,"data-rowindex":i,role:"row",className:he(ie,A.root,c),"aria-rowindex":L,"aria-selected":n,style:q,onClick:G,onDoubleClick:z("rowDoubleClick",P),onMouseEnter:z("rowMouseEnter",C),onMouseLeave:z("rowMouseLeave",E)},I,{children:[ee,de>0&&_.jsx(Yle,{width:de})]}))}const DI=1e3;class Qle{constructor(t=DI){this.timeouts=new Map,this.cleanupTimeout=DI,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 Jle{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 Pa;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})(Pa||(Pa={}));class Zle{}function eae(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Jle:new Qle);const[a]=u.useState(new Zle),c=u.useRef(null),f=u.useRef();f.current=i;const p=u.useRef(null);if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!f.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&f.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=f.current)==null||g.call(f,m,v,b)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const tae={registry:null},De=eae(tae),nae={isFirst:!0};function Rt(e,t,n){De(e,t,n,nae)}const BI=1,rae=1.5,oae=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Ie(r,Lt,n)},iae=re("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${Z["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${Z["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${Z["scrollArea--left"]}`]:{left:0},[`&.${Z["scrollArea--right"]}`]:{right:0}}));function sae(e){const{scrollDirection:t}=e,n=u.useRef(null),r=mt(),o=u.useRef(),[i,s]=u.useState(!1),a=We(r,yO),c=u.useRef({left:0,top:0}),f=Xe(),p=x({},e,{classes:f.classes}),h=oae(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let S;if(t==="left")S=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")S=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");S=(S-BI)*rae+BI,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+S,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const b=u.useCallback(()=>{s(g=>!g)},[]);return De(r,"rowsScroll",m),De(r,"columnHeaderDragStart",b),De(r,"columnHeaderDragEnd",b),i?_.jsx(iae,{ref:n,className:he(h.root),onDragOver:v,style:{height:a}}):null}const zI=u.memo(sae),lae=({apiRef:e,props:t,children:n})=>_.jsx(uO.Provider,{value:t,children:_.jsx(cO.Provider,{value:e,children:n})}),aae=lse()&&window.localStorage.getItem("DEBUG")!=null,xd=()=>{},cae={debug:xd,info:xd,warn:xd,error:xd},HI=["debug","info","warn","error"];function jI(e,t,n=console){const r=HI.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return HI.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[f,...p]=c;n[s](`MUI: ${e} - ${f}`,...p)}:i[s]=xd,i),{})}const uae=(e,t)=>{e.current.getLogger=u.useCallback(n=>aae?jI(n,"debug",t.logger):t.logLevel?jI(n,t.logLevel.toString(),t.logger):cae,[t.logLevel,t.logger])};function Ut(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class dae{constructor(){this.maxListeners=10,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const fae=e=>e.isPropagationStopped!==void 0;let VI=0;function pae(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new dae,unstable_caches:{},state:{},instanceId:VI},VI+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,f={}]=s;if(f.defaultMuiPrevented=!1,fae(f)&&f.isPropagationStopped())return;const p=t.signature===Pa.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,f,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const f=n.current;return()=>{f.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Ut(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{s.publishEvent("unmount")}},[n]),n}function hae(e,t){const n=u.useCallback(r=>{e.current.setState(o=>x({},o,{error:r}))},[e]);u.useEffect(()=>{n(t.error)},[n,t.error]),De(e,"componentError",n)}const mae=(e,t)=>{const r={getLocaleText:u.useCallback(o=>{if(t.localeText[o]==null)throw new Error(`Missing translation for key ${o}.`);return t.localeText[o]},[t.localeText])};Ut(e,r)};function $f(e){return $f=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},$f(e)}function gae(e,t){if($f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($f(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tf(e){var t=gae(e,"string");return $f(t)==="symbol"?t:String(t)}const vae=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(f=>{f()})},[]),r=u.useCallback((c,f,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(f)!==p&&(h.processors.set(f,p),n(h)),()=>{t.current[c].processors.set(f,null)}},[n]),o=u.useCallback((c,f,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[f]=p,()=>{const h=t.current[c].appliers,m=oe(h,[f].map(Tf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const f=t.current[c];n(f)},[n]),s=u.useCallback((...c)=>{const[f,p,h]=c;return t.current[f]?Array.from(t.current[f].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);Ut(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},rp=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},er=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);rp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},rx=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);rp(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},ox=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);rp(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},op="none",UI={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},yae=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,f,p)=>{const h=()=>{const b=n.current[f],g=oe(b,[c].map(Tf));n.current[f]=g};n.current[f]||(n.current[f]={});const m=n.current[f],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(UI[f])&&e.current.publishEvent("activeStrategyProcessorChange",f),h},[e]),o=u.useCallback((c,f)=>{const p=e.current.unstable_getActiveStrategy(UI[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(f)},[e]),i=u.useCallback(c=>{var f;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(f=h==null?void 0:h[0])!=null?f:op},[]),s=u.useCallback((c,f,p)=>{t.current.set(f,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Ut(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},bae=(e,t,n,r,o)=>{const i=Vn(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),f=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(DO(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,f,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",m)}},[t,f,n,s,i,o,e])},wae=["stateId"],Cae=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{const{stateId:p}=f,h=oe(f,wae);n.current[p]=x({},h,{stateId:p})},[]),i=u.useCallback((f,p)=>{let h;if(DO(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const g=n.current[b],S=g.stateSelector(e.current.state,e.current.instanceId),w=g.stateSelector(h,e.current.instanceId);w!==S&&(v.push({stateId:g.stateId,hasPropChanged:w!==g.propModel}),g.propModel!==void 0&&w!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:b,hasPropChanged:g}=v[0],S=n.current[b],w=S.stateSelector(h,e.current.instanceId);if(S.propOnChange&&g){const P=t.signature===Pa.DataGridPro?{api:e.current,reason:p}:{reason:p};S.propOnChange(w,P)}m||e.current.publishEvent(S.changeEvent,w,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((f,p,h)=>e.current.setState(m=>x({},m,{[f]:p(m[f])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Ut(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},xae=(e,t)=>{const n=pae(e,t);return uae(n,t),hae(n,t),Cae(n,t),vae(n),yae(n),mae(n,t),n},no=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function WI(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)}}const Sae=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{WI(i)}):WI(i)},[e]),n=u.useCallback(o=>{var i;const s=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!s||((i=window.getSelection())==null?void 0:i.toString())===""&&e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);bae(e,e.current.rootElementRef,"keydown",n),Ut(e,{unstable_copySelectedRowsToClipboard:t})},qO=e=>e.columnMenu,Eae=e=>x({},e,{columnMenu:{open:!1}}),Pae=e=>{const t=Vn(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),x({},f,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),x({},c,{columnMenu:x({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=qO(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Ut(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(Z.menuIconButton)||!c.relatedTarget)return;const f=c.relatedTarget.classList.contains(Z.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(f||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);De(e,"columnResizeStart",r),De(e,"columnHeaderFocus",s),De(e,"virtualScrollerWheel",e.current.hideColumnMenu),De(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},kae=(e,t,n)=>{var r,o,i,s,a,c,f;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=VO(t.columnTypes),m=gc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(f=c.columns)==null?void 0:f.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return x({},e,{columns:m})};function Iae(e,t){var n,r;const o=Vn(e,"useGridColumns"),i=u.useMemo(()=>VO(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:el,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(j=>{o.debug("Updating columns state."),e.current.setState(FI(j)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",j.all)},[o,e]),f=u.useCallback(j=>ku(e)[j],[e]),p=u.useCallback(()=>zo(e),[e]),h=u.useCallback(()=>ar(e),[e]),m=u.useCallback(()=>Rre(e),[e]),v=u.useCallback((j,L=!0)=>(L?ar(e):zo(e)).findIndex(B=>B.field===j),[e]),b=u.useCallback(j=>{const L=v(j);return Ea(e)[L]},[e,v]),g=u.useCallback(j=>{el(e)!==j&&(e.current.setState(D=>x({},D,{columns:gc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),S=u.useCallback(j=>{const L=gc({apiRef:e,columnTypes:i,columnsToUpsert:j,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),w=u.useCallback(j=>e.current.updateColumns([j]),[e]),P=u.useCallback((j,L)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var D;const B=el(e),W=(D=B[j])!=null?D:!0;if(L!==W){const A=x({},B,{[j]:L});e.current.setColumnVisibilityModel(A)}}else{const B=e.current.getColumn(j),W=x({},B,{hide:!L});e.current.updateColumns([W]);const A={field:j,colDef:W,isVisible:L};e.current.publishEvent("columnVisibilityChange",A)}},[e]),C=u.useCallback((j,L)=>{const D=Sa(e),B=D.findIndex(G=>G===j);if(B===L)return;o.debug(`Moving column ${j} to index ${L}`);const W=[...D],A=W.splice(B,1)[0];W.splice(L,0,A),c(x({},xa(e.current.state),{all:W}));const z={field:j,element:e.current.getColumnHeaderElement(j),colDef:e.current.getColumn(j),targetIndex:L,oldIndex:B};e.current.publishEvent("columnOrderChange",z)},[e,o,c]),E=u.useCallback((j,L)=>{o.debug(`Updating column ${j} width to ${L}`);const D=e.current.getColumn(j),B=x({},D,{width:L});e.current.updateColumns([B]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:B,width:L})},[e,o]);Ut(e,{getColumn:f,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:w,updateColumns:S,setColumnVisibilityModel:g,setColumnVisibility:P,setColumnIndex:C,setColumnWidth:E});const T=u.useCallback((j,L)=>{const D={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var B,W,A;const q=el(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(W=t.initialState)==null||(A=W.columns)==null?void 0:A.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(q).length>0)&&(D.columnVisibilityModel=q)}D.orderedFields=Sa(e);const z=zo(e),G={};return z.forEach(q=>{if(q.hasBeenResized){const X={};jO.forEach(ie=>{let ee=q[ie];ee===1/0&&(ee=-1),X[ie]=ee}),G[q.field]=X}}),Object.keys(G).length>0&&(D.dimensions=G),x({},j,{columns:D})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=u.useCallback((j,L)=>{var D;const B=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(D=L.stateToRestore.columns)==null?void 0:D.columnVisibilityModel:void 0,W=L.stateToRestore.columns;if(B==null&&W==null)return j;const A=gc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:W,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:B,keepOnlyColumnsToUpsert:!1});return e.current.setState(FI(A)),W!=null&&e.current.publishEvent("columnsChange",A.all),j},[e,i]),$=u.useCallback((j,L)=>{if(L===El.columns){var D;const B=t.components.ColumnsPanel;return _.jsx(B,x({},(D=t.componentsProps)==null?void 0:D.columnsPanel))}return j},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);er(e,"exportState",T),er(e,"restoreState",k),er(e,"preferencePanel",$);const R=u.useRef(null);De(e,"viewportInnerSizeChange",j=>{R.current!==j.width&&(R.current=j.width,c(UO(xa(e.current.state),j.width)))}),Rt(e,"columnVisibilityChange",t.onColumnVisibilityChange);const N=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const j=gc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(j)},[e,o,c,i]);rx(e,"hydrateColumns",N);const U=u.useRef(!0);u.useEffect(()=>{if(U.current){U.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const j=gc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(j)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const $ae=e=>e.columnGrouping,YO=Ye($ae,e=>e.lookup),Tae=["groupId","children"];function Mae(e){return e.groupPath!==void 0}const XO=(e,t,n)=>{if(bO(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
269
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{XO(i,[...t,r],n)})},QO=e=>{if(!e)return{};const t={};return e.forEach(n=>{XO(n,[],t)}),t},ix=e=>{let t={};return e.forEach(n=>{if(bO(n))return;const{groupId:r,children:o}=n,i=oe(n,Tae);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=x({},i,{groupId:r}),a=ix(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=x({},t,a,{[r]:s})}),x({},t)},_ae=(e,t)=>{var n;const r=ix((n=t.columnGroupingModel)!=null?n:[]);return x({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},Rae=(e,t)=>{var n;const r=u.useCallback(a=>{var c,f;return(c=(f=ku(e)[a])==null?void 0:f.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>YO(e),[e]);Ut(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const f=ix((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>x({},p,{columnGrouping:x({},p.columnGrouping,{lookup:f})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},z0=.7,H0=1.3,JO=(e,t,n,r)=>{switch(e){case Pf.Compact:return{value:e,headerHeight:Math.floor(t*z0),rowHeight:Math.floor(n*z0),headerGroupingMaxDepth:r,factor:z0};case Pf.Comfortable:return{value:e,headerHeight:Math.floor(t*H0),rowHeight:Math.floor(n*H0),headerGroupingMaxDepth:r,factor:H0};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},Oae=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=QO(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return x({},e,{density:JO(t.density,t.headerHeight,t.rowHeight,n)})},Lae=(e,t)=>{const n=We(e,ar),r=n.length>0?Math.max(...n.map(a=>{var c,f;return(c=(f=a.groupPath)==null?void 0:f.length)!=null?c:0})):0,o=Vn(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,f=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=La(h),v=JO(a,c,f,p);return gs(m,v)?h:x({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),Ut(e,{setDensity:i})};function Aae(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const ZO=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
270
+ `,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};mi(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);const Fae=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return ZO(i.formattedValue,r)});function Nae(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,f)=>`${c}${Fae(f,t,r,o).join(o)}\r
271
+ `,"").trim();return i?`${`${t.filter(c=>c.field!==np.field).map(c=>ZO(c.headerName||c.field,o)).join(o)}\r
272
+ `}${s}`.trim():s}const eL=({apiRef:e,options:t})=>{const n=zo(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:ar(e)).filter(o=>!o.disableExport)},Dae=({apiRef:e})=>{var t,n;const r=Are(e),o=pa(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=Qf(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],f=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...f),i.size>0?s.filter(p=>i.has(p)):s},Bae=e=>{const t=Vn(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const f=eL({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:Dae)({apiRef:e});return Nae({columns:f,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});Aae(c,"csv",s==null?void 0:s.fileName)},[t,n]);Ut(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:_.jsx(_le,{options:a.csvOptions}),componentName:"csvExport"}]},[]);er(e,"exportMenu",i)},Mf=e=>e.rowsMeta,zae=(e,t)=>{const n=Vn(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=Cn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,b)=>new Promise(g=>{if(!v&&!b){g();return}const S=eL({apiRef:e,options:{fields:v,allColumns:b}}).map(C=>C.field),w=zo(e),P={};w.forEach(C=>{P[C.field]=S.includes(C.field)}),e.current.setColumnVisibilityModel(P),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return b.id="grid-print-window",b.src=window.location.href,b.style.position="absolute",b.style.width="0px",b.style.height="0px",b.title=v||document.title,b},[]),c=u.useCallback((v,b)=>{var g,S,w;const P=x({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b);v.onload=null;const C=v.contentDocument||((g=v.contentWindow)==null?void 0:g.document);if(!C)return;const E=ep(e),I=Mf(e.current.state),T=e.current.rootElementRef.current,k=T.cloneNode(!0),$=k.querySelector(`.${Z.virtualScroller}`);$.style.height="auto",$.style.width="auto",$.parentElement.style.width="auto",$.parentElement.style.height="auto";const R=k.querySelector(`.${Z.main}`);R.style.overflow="visible";const N=k.querySelector(`.${Z.columnHeaders}`).querySelector(`.${Z.columnHeadersInner}`);N.style.width="100%";let U=((S=T.querySelector(`.${Z.toolbarContainer}`))==null?void 0:S.clientHeight)||0,j=((w=T.querySelector(`.${Z.footerContainer}`))==null?void 0:w.clientHeight)||0;if(P.hideToolbar){var L;(L=k.querySelector(`.${Z.toolbarContainer}`))==null||L.remove(),U=0}if(P.hideFooter){var D;(D=k.querySelector(`.${Z.footerContainer}`))==null||D.remove(),j=0}k.style.height=`${I.currentPageTotalHeight+E+U+j}px`,C.body.innerHTML="",C.body.appendChild(k);const B=typeof P.pageStyle=="function"?P.pageStyle():P.pageStyle;if(typeof B=="string"){const W=C.createElement("style");W.appendChild(C.createTextNode(B)),C.head.appendChild(W)}if(P.bodyClassName&&C.body.classList.add(...P.bodyClassName.split(" ")),P.copyStyles){const W=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let A=0;A<W.length;A+=1){const z=W[A];if(z.tagName==="STYLE"){const G=C.createElement(z.tagName),q=z.sheet;if(q){let X="";for(let ie=0;ie<q.cssRules.length;ie+=1)typeof q.cssRules[ie].cssText=="string"&&(X+=`${q.cssRules[ie].cssText}\r
273
+ `);G.appendChild(C.createTextNode(X)),C.head.appendChild(G)}}else if(z.getAttribute("href")){const G=C.createElement(z.tagName);for(let q=0;q<z.attributes.length;q+=1){const X=z.attributes[q];X&&G.setAttribute(X.nodeName,X.nodeValue||"")}C.head.appendChild(G)}}}v.contentWindow.print()},[e,r]),f=u.useCallback(v=>{var b,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(g=b.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>pt(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=el(e),t.pagination){const g=gO(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization();const b=a(v==null?void 0:v.fileName);r.current.body.appendChild(b),b.onload=()=>c(b,v),b.contentWindow.onafterprint=()=>f(b)}),[t,n,e,a,c,f,s])};Ut(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:_.jsx(Rle,{options:b.printOptions}),componentName:"printExport"}]},[]);er(e,"exportMenu",m)},Hae=["rowsBeforePartialUpdates"];function jae(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(`
274
+ `))}const tL=(e,t,n)=>{const r=t?t(e):e.id;return jae(r,e,n),r},Jh=({rows:e,getRowId:t,loading:n})=>{const r={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let o=0;o<e.length;o+=1){const i=e[o],s=tL(i,t);r.idRowsLookup[s]=i,r.idToIdLookup[s]=s,r.ids.push(s)}return r},nL=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=oe(o,Hae),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",x({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),f=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return x({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,f)})},rL=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(...rL(e,c.id,n))}return i};function oL(e){var t,n;const r=Qf(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}const $b=(e,t)=>{const n=x({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=ku(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Vae=mi(["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"),Uae=mi("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Wae=mi(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),iL=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Vae(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&Uae(),s&&Wae(),s||i?x({},e,{items:o.map(a=>$b(a,n))}):e.items!==o?x({},e,{items:o}):e},GI=(e,t,n)=>r=>x({},r,{filterModel:iL(e,t,n)}),Gae=(e,t)=>{const{items:n}=e,r=i=>{if(!i.columnField||!i.operatorValue)return null;const s=t.current.getColumn(i.columnField);if(!s)return null;let a;if(s.valueParser){var c;const b=s.valueParser;a=Array.isArray(i.value)?(c=i.value)==null?void 0:c.map(g=>b(g)):b(i.value)}else a=i.value;const f=x({},i,{value:a}),p=s.filterOperators;if(!(p!=null&&p.length))throw new Error(`MUI: No filter operators found for column '${s.field}'.`);const h=p.find(b=>b.value===f.operatorValue);if(!h)throw new Error(`MUI: No filter operator found for column '${s.field}' and operator value '${f.operatorValue}'.`);const m=h.getApplyFilterFn(f,s);return typeof m!="function"?null:{fn:b=>{const g=t.current.getCellParams(b,f.columnField);return m(g)},item:f}},o=n.map(r).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};return(s?o.filter(f=>s(f.item.columnField)):o).forEach(f=>{a[f.item.id]=f.fn(i)}),a}},Kae=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=Sa(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(f=>c(f,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},f=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),f.push(h))});const p={};return i.forEach((h,m)=>{const v=f.some(b=>{var g,S;return o[b][m]==null?!1:(g=(S=o[b])[m])==null?void 0:g.call(S,c[b])});p[h]=v}),p}},qae=(e,t)=>{const n=Gae(e,t),r=Kae(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},Yae=(e,t,n)=>{var r,o;const i=e.filter(f=>f!=null),s=t.filter(f=>f!=null),a=(r=n.quickFilterLogicOperator)!=null?r:If().quickFilterLogicOperator,c=(o=n.linkOperator)!=null?o:If().linkOperator;if(i.length>0){const f=p=>i.some(h=>h[p.id]);if(c===$r.And){if(!n.items.every(f))return!1}else if(!n.items.some(f))return!1}if(s.length>0&&n.quickFilterValues!=null){const f=p=>s.some(h=>h[p]);if(a===$r.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},Xae=(e,t,n)=>{var r,o,i,s;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(s=i.filter)==null?void 0:s.filterModel)!=null?r:If();return x({},e,{filter:{filterModel:iL(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},Qae=(e,t)=>{var n,r,o;const i=Vn(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Dr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState($=>{const R=Dr($,e.current.instanceId),O=t.filterMode===zc.client?qae(R,e):null,N=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:O,filterModel:R!=null?R:If()});return x({},$,{filter:x({},$.filter,N)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback($=>{const R=Dr(e),O=[...R.items],N=O.findIndex(U=>U.id===$.id);N===-1?O.push($):O[N]=$,e.current.setFilterModel(x({},R,{items:O}),"upsertFilterItem")},[e]),f=u.useCallback($=>{const R=Dr(e),O=[...R.items];$.forEach(N=>{const U=$.findIndex(j=>j.id===N.id);U===-1?O.push(N):O[U]=N}),e.current.setFilterModel(x({},R,{items:$}),"upsertFilterItems")},[e]),p=u.useCallback($=>{const R=Dr(e),O=R.items.filter(N=>N.id!==$.id);O.length!==R.items.length&&e.current.setFilterModel(x({},R,{items:O}),"deleteFilterItem")},[e]),h=u.useCallback($=>{if(i.debug("Displaying filter panel"),$){const R=Dr(e),O=R.items.filter(j=>{var L;if(j.value!==void 0)return!0;const B=(L=e.current.getColumn(j.columnField).filterOperators)==null?void 0:L.find(A=>A.value===j.operatorValue);return!(typeof(B==null?void 0:B.requiresFilterValue)=="undefined"?!0:B==null?void 0:B.requiresFilterValue)});let N;O.find(j=>j.columnField===$)?N=O:t.disableMultipleColumnsFiltering?N=[$b({columnField:$},e)]:N=[...O,$b({columnField:$},e)],e.current.setFilterModel(x({},R,{items:N}))}e.current.showPreferences(El.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback($=>{const R=Dr(e);R.linkOperator!==$&&e.current.setFilterModel(x({},R,{linkOperator:$}),"changeLogicOperator")},[e]),b=u.useCallback($=>{const R=Dr(e);gs(R.quickFilterValues,$)||e.current.setFilterModel(x({},R,{quickFilterValues:[...$]}))},[e]),g=u.useCallback(($,R)=>{Dr(e)!==$&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",GI($,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),S=u.useCallback(()=>{const $=$s(e);return new Map($.map(R=>[R.id,R.model]))},[e]);Ut(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:f,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:S,setQuickFilterValues:b});const P=u.useCallback(($,R)=>{var O,N;const U=Dr(e);return!R.exportOnlyDirtyModels||t.filterModel!=null||((O=t.initialState)==null||(N=O.filter)==null?void 0:N.filterModel)!=null||!gs(U,If())?x({},$,{filter:{filterModel:U}}):$},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),C=u.useCallback(($,R)=>{var O;const N=(O=R.stateToRestore.filter)==null?void 0:O.filterModel;return N==null?$:(e.current.unstable_updateControlState("filter",GI(N,t.disableMultipleColumnsFiltering,e),"restoreState"),x({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),E=u.useCallback(($,R)=>{if(R===El.filters){var O;const N=t.components.FilterPanel;return _.jsx(N,x({},(O=t.componentsProps)==null?void 0:O.filterPanel))}return $},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),I=u.useCallback($=>{if(t.filterMode===zc.client&&$.isRowMatchingFilters){const R=Bc(e),O={};for(let N=0;N<R.length;N+=1){const U=R[N];let j;if(typeof U=="string"&&U.startsWith("auto-generated-group-footer"))j=!0;else{const{passingFilterItems:L,passingQuickFilterValues:D}=$.isRowMatchingFilters(U);j=Yae([L],[D],$.filterModel)}O[U]=j}return{filteredRowsLookup:O,visibleRowsLookup:O,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);er(e,"exportState",P),er(e,"restoreState",C),er(e,"preferencePanel",E),ox(e,op,"filtering",I);const T=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const $=Dr(e),R=_re(e),O=$.items.filter(N=>N.columnField&&R[N.columnField]);O.length<$.items.length&&e.current.setFilterModel(x({},$,{items:O}))},[e,i]),k=u.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]);De(e,"rowsSet",s),De(e,"rowExpansionChange",e.current.unstable_applyFilters),De(e,"columnsChange",T),De(e,"activeStrategyProcessorChange",k),rp(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Jae=e=>x({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),Zae=(e,t)=>{const n=Vn(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((g,S)=>{const w=li(e);(w==null?void 0:w.id)===g&&(w==null?void 0:w.field)===S||(e.current.setState(P=>(n.debug(`Focusing on cell with id=${g} and field=${S}`),x({},P,{tabIndex:{cell:{id:g,field:S},columnHeader:null},focus:{cell:{id:g,field:S},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(g)&&(w&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(w.id,w.field)),e.current.publishEvent("cellFocusIn",e.current.getCellParams(g,S))))},[e,n]),i=u.useCallback((g,S={})=>{const w=li(e);w&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(w.id,w.field),S),e.current.setState(P=>(n.debug(`Focusing on column header with colIndex=${g}`),x({},P,{tabIndex:{columnHeader:{field:g},cell:null},focus:{columnHeader:{field:g},cell:null}}))),e.current.forceUpdate()},[e,n]),s=u.useCallback((g,S,w)=>{let P=e.current.getColumnIndex(S),C=e.current.getRowIndexRelativeToVisibleRows(g);const E=ar(e);w==="right"?P+=1:w==="left"?P-=1:C+=1;const I=yv(e,{pagination:t.pagination,paginationMode:t.paginationMode});P>=E.length?(C+=1,C<I.rows.length&&(P=0)):P<0&&(C-=1,C>=0&&(P=E.length-1)),C=kf(C,0,I.rows.length-1),P=kf(P,0,E.length-1);const T=I.rows[C],k=E[P];e.current.setCellFocus(T.id,k.field)},[e,t.pagination,t.paginationMode]),a=u.useCallback(({id:g,field:S})=>{e.current.setCellFocus(g,S)},[e]),c=u.useCallback((g,S)=>{S.key==="Enter"||S.key==="Tab"||tp(S.key)||e.current.setCellFocus(g.id,g.field)},[e]),f=u.useCallback(({field:g},S)=>{S.target===S.currentTarget&&e.current.setColumnHeaderFocus(g,S)},[e]),p=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(g=>x({},g,{focus:{cell:null,columnHeader:null}}))},[n,e]),h=u.useCallback(g=>{r.current=g},[]),m=u.useCallback(g=>{const S=r.current;r.current=null;const w=li(e);if(!w){S&&e.current.setCellFocus(S.id,S.field);return}if((S==null?void 0:S.id)===w.id&&(S==null?void 0:S.field)===w.field)return;const P=e.current.getCellElement(w.id,w.field);P!=null&&P.contains(g.target)||e.current.getRow(w.id)&&(S?e.current.setCellFocus(S.id,S.field):(e.current.setState(C=>x({},C,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),e.current.publishEvent("cellFocusOut",e.current.getCellParams(w.id,w.field),g)))},[e]),v=u.useCallback(g=>{if(g.cellMode==="view")return;const S=li(e);((S==null?void 0:S.id)!==g.id||(S==null?void 0:S.field)!==g.field)&&e.current.setCellFocus(g.id,g.field)},[e]),b=u.useCallback(()=>{const g=li(e);g&&!e.current.getRow(g.id)&&e.current.setState(S=>x({},S,{focus:{cell:null,columnHeader:null}}))},[e]);Ut(e,{setCellFocus:o,setColumnHeaderFocus:i,unstable_moveFocusToRelativeCell:s}),u.useEffect(()=>{const g=Cn(e.current.rootElementRef.current);return g.addEventListener("click",m),()=>{g.removeEventListener("click",m)}},[e,m]),De(e,"columnHeaderBlur",p),De(e,"cellDoubleClick",a),De(e,"cellMouseUp",h),De(e,"cellKeyDown",c),De(e,"cellModeChange",v),De(e,"columnHeaderFocus",f),De(e,"rowsSet",b)};function ece(e,t){const n=Qf(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const tce=(e,t)=>{const n=Vn(e,"useGridKeyboardNavigation"),r=Aa(e,t).rows,o=u.useMemo(()=>ece(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=$s(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const S=b.findIndex(P=>P.id===m);n.debug(`Navigating to cell row ${S}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:S});const w=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,w)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const b=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,S=o.findIndex(T=>T.id===h.id),w=0,P=o.length-1,C=0,E=ar(e).length-1;let I=!0;switch(m.key){case"ArrowDown":case"Enter":{S<P&&i(g,a(S+1));break}case"ArrowUp":{S>w?i(g,a(S-1)):s(g,m);break}case"ArrowRight":{g<E&&i(g+1,a(S),"right");break}case"ArrowLeft":{g>C&&i(g-1,a(S));break}case"Tab":{m.shiftKey&&g>C?i(g-1,a(S),"left"):!m.shiftKey&&g<E&&i(g+1,a(S),"right");break}case" ":{if(h.field===nx)break;const k=h.colDef;if(k&&k.type==="treeDataGroup")break;!m.shiftKey&&S<P&&i(g,a(Math.min(S+b,P)));break}case"PageDown":{S<P&&i(g,a(Math.min(S+b,P)));break}case"PageUp":{const T=Math.max(S-b,w);T!==S&&T>=w?i(g,a(T)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(C,a(w)):i(C,a(S));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(E,a(P)):i(E,a(S));break}default:I=!1}I&&m.preventDefault()},[e,o,i,s,a]),f=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${Z.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==np.field||!e.current.getRootDimensions())return;const S=e.current.unstable_getViewportPageSize(),w=h.field?e.current.getColumnIndex(h.field):0,P=0,C=o.length-1,E=0,I=ar(e).length-1;let T=!0;switch(m.key){case"ArrowDown":{i(w,a(P));break}case"ArrowRight":{w<I&&s(w+1,m);break}case"ArrowLeft":{w>E&&s(w-1,m);break}case"PageDown":{C!==null&&i(w,a(Math.min(P+S,C)));break}case"Home":{s(E,m);break}case"End":{s(I,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:T=!1}T&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==Tt.Edit&&tp(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);De(e,"cellNavigationKeyDown",c),De(e,"columnHeaderKeyDown",f),De(e,"cellKeyDown",p)},sL=e=>e?0:100,KI=e=>t=>x({},t,{pagination:x({},t.pagination,{pageSize:e})}),nce=(e,t)=>{var n,r;const o=Vn(e,"useGridPageSize"),i=We(e,Zf);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:jd,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==jd(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(KI(h)),e.current.forceUpdate())},[e,o])};Ut(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=jd(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==sL(t.autoPageSize)?x({},h,{pagination:x({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),f=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(KI(b)),h},[e]);er(e,"exportState",c),er(e,"restoreState",f);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=oL(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);De(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},Tb=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,Mb=e=>e.pageCount?x({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,qI=e=>t=>x({},t,{pagination:Mb(x({},t.pagination,{page:e}))});mi(["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 rce=(e,t)=>{var n,r;const o=Vn(e,"useGridPage"),i=We(e,vO);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Cd,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(qI(m)),e.current.forceUpdate()},[e,o])};Ut(e,a);const c=u.useCallback((m,v)=>{var b,g;const S=Cd(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||S!==0?x({},m,{pagination:x({},m.pagination,{page:S})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),f=u.useCallback((m,v)=>{var b,g;const S=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:Cd(e);return e.current.setState(qI(S)),m},[e]);er(e,"exportState",c),er(e,"restoreState",f);const p=m=>{e.current.setState(v=>{const b=Tb(v.pagination.rowCount,m);return x({},v,{pagination:Mb(x({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:Cd(e)*jd(e)});De(e,"pageSizeChange",p),De(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,b=Tb(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return x({},m,{pagination:Mb(x({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},oce=(e,t)=>{var n,r,o,i,s,a,c,f;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=sL(t.autoPageSize),x({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:Tb((c=t.rowCount)!=null?c:0,p),rowCount:(f=t.rowCount)!=null?f:0}})},ice=(e,t)=>{nce(e,t),rce(e,t)},sce=(e,t)=>{var n,r;return x({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},lce=(e,t)=>{var n;const r=Vn(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=Vm(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>x({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),f=u.useCallback(m=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>x({},v,{preferencePanel:x({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Ut(e,{showPreferences:f,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=Vm(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?x({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const b=v.stateToRestore.preferencePanel;return b!=null&&e.current.setState(g=>x({},g,{preferencePanel:b})),m},[e]);er(e,"exportState",p),er(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},_n=e=>e.editRows;function YI(e){return typeof e.then=="function"}const ace=(e,t)=>{var n;const r=Vn(e,"useGridEditRows"),o=C=>(...E)=>{t.editMode===br.Cell&&C(...E)},i=u.useCallback((C,E,I)=>{e.current.getCellMode(C,E)!==I&&(r.debug(`Switching cell id: ${C} field: ${E} to mode: ${I}`),e.current.setState(T=>{const k=x({},T.editRows);return k[C]=x({},k[C]),I===Tt.Edit?k[C][E]={value:e.current.getCellValue(C,E)}:(delete k[C][E],Object.keys(k[C]).length||delete k[C]),x({},T,{editRows:k})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(C,E)))},[e,r]),s=u.useCallback((C,E)=>{const I=_n(e.current.state);return I[C]&&I[C][E]?Tt.Edit:Tt.View},[e]),a=u.useCallback((C,E={})=>{var I;const{id:T,field:k}=C;e.current.unstable_runPendingEditCellValueMutation(T,k);const $=e.current.getEditRowsModel();if(!$[T]||!$[T][k])throw new Error(`MUI: Cell at id: ${T} and field: ${k} is not in edit mode.`);const R=$[T][k],O=e.current.getColumn(k),N=e.current.getRow(T);if((I=t.experimentalFeatures)!=null&&I.preventCommitWhileValidating){const L=$[T][k];if(L.isValidating||L.error)return!1}const U=x({},C,{value:R.value});let j=!!R.error;if(!j&&typeof O.preProcessEditCellProps=="function"){const L=O.preProcessEditCellProps({id:T,row:N,props:R});if(YI(L))return L.then(D=>(e.current.unstable_setEditCellProps({id:T,field:k,props:D}),D.error?!1:(e.current.publishEvent("cellEditCommit",U,E),!0)));e.current.unstable_setEditCellProps({id:T,field:k,props:L}),j=!!L.error}return j?!1:(e.current.publishEvent("cellEditCommit",U,E),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(C=>{const E=e.current.getColumn(C.field),I=e.current.getRow(C.id);return new Promise(T=>{let k={value:C.value};const R=e.current.getEditRowsModel()[C.id][C.field];if(typeof E.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(x({},C,{props:k})),T(!0);return}k=e.current.unstable_setEditCellProps(x({},C,{props:x({},R,{isValidating:!0})})),Promise.resolve(E.preProcessEditCellProps({id:C.id,row:I,props:x({},k,{value:e.current.unstable_parseValue(C.id,C.field,C.value)})})).then(O=>{e.current.unstable_setEditCellProps(x({},C,{props:x({},O,{isValidating:!1})})),T(!O.error)})})},[e]);Ut(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((C,E)=>pt(void 0,null,function*(){if(E.which===229)return;const{id:I,field:T,cellMode:k,isEditable:$}=C;if(!$)return;const R=k===Tt.Edit,O=E.ctrlKey||E.metaKey||E.altKey;if(!R&&Doe(E)&&!O&&!(E.key===" "&&E.shiftKey)&&e.current.publishEvent("cellEditStart",C,E),!R&&Eb(E.key)&&(e.current.setEditCellValue({id:I,field:T,value:""}),e.current.commitCellChange({id:I,field:T},E),e.current.publishEvent("cellEditStop",C,E)),R&&RI(E.key)){const N={id:I,field:T};if(!(yield e.current.commitCellChange(N,E)))return}R&&Boe(E.key)&&e.current.publishEvent("cellEditStop",C,E)}),[e]),h=u.useCallback((C,E)=>{C.isEditable&&e.current.publishEvent("cellEditStart",C,E)},[e]),m=(C,E)=>pt(void 0,null,function*(){C.cellMode!==Tt.View&&(yield e.current.commitCellChange(C,E),e.current.publishEvent("cellEditStop",C,E))}),v=jn((C,E)=>{m(C,E)}),b=jn(()=>{const C=li(e);if(!C)return;const E=e.current.getCellParams(C.id,C.field);m(E,{})}),g=u.useCallback((C,E)=>{C.isEditable&&(e.current.setCellMode(C.id,C.field,Tt.Edit),Pb(E)&&gv(E)&&e.current.unstable_setEditCellProps({id:C.id,field:C.field,props:{value:""}}))},[e]),S=u.useCallback((C,E)=>{if(e.current.setCellMode(C.id,C.field,Tt.View),!!Pb(E)){if(RI(E.key)){e.current.publishEvent("cellNavigationKeyDown",C,E);return}(E.key==="Escape"||Eb(E.key))&&e.current.setCellFocus(C.id,C.field)}},[e]),w=u.useCallback(C=>{const{id:E,field:I}=C,T=e.current.getEditRowsModel(),{value:k}=T[E][I];r.debug(`Setting cell id: ${E} field: ${I} to value: ${k==null?void 0:k.toString()}`);const $=e.current.getRow(E);if($){const R=e.current.getColumn(C.field);let O=x({},$,{[I]:k});R.valueSetter&&(O=R.valueSetter({row:$,value:k})),e.current.updateRows([O])}},[e,r]),P=u.useCallback(C=>{const E=e.current.getRow(C.id),I=e.current.getColumn(C.field),T=I.preProcessEditCellProps?I.preProcessEditCellProps({id:C.id,row:E,props:C.props}):C.props;YI(T)?T.then(k=>{e.current.unstable_setEditCellProps(x({},C,{props:k}))}):e.current.unstable_setEditCellProps(x({},C,{props:T}))},[e]);De(e,"cellKeyDown",o(p)),De(e,"cellDoubleClick",o(h)),De(e,"cellFocusOut",o(v)),De(e,"columnHeaderDragStart",o(b)),De(e,"cellEditStart",o(g)),De(e,"cellEditStop",o(S)),De(e,"cellEditCommit",o(w)),De(e,"editCellPropsChange",o(P)),Rt(e,"cellEditCommit",t.onCellEditCommit),Rt(e,"cellEditStart",t.onCellEditStart),Rt(e,"cellEditStop",t.onCellEditStop)},cce=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=We(e,zo),a=k=>(...$)=>{t.editMode===br.Row&&k(...$)},c=u.useCallback((k,$)=>{$!==e.current.getRowMode(k)&&(e.current.setState(R=>{const O=x({},R.editRows);return $===Kt.Edit?(O[k]={},s.forEach(N=>{const U=e.current.getCellParams(k,N.field);U.isEditable&&(O[k][N.field]={value:U.value})})):delete O[k],x({},R,{editRows:O})}),e.current.forceUpdate())},[e,s]),f=u.useCallback(k=>t.editMode===br.Cell?Kt.View:_n(e.current.state)[k]?Kt.Edit:Kt.View,[e,t.editMode]),p=u.useCallback((k,$={})=>{var R;if(t.editMode===br.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(k);const N=e.current.getEditRowsModel()[k];if(!N)throw new Error(`MUI: Row at id: ${k} is not being edited.`);if((R=t.experimentalFeatures)!=null&&R.preventCommitWhileValidating&&!Object.keys(N).reduce((D,B)=>D&&!N[B].isValidating&&!N[B].error,!0)||Object.values(N).some(L=>!!L.error))return!1;const j=Object.keys(N).filter(L=>typeof e.current.getColumn(L).preProcessEditCellProps=="function");if(j.length>0){const L=e.current.getRow(k),D=j.map(B=>pt(void 0,null,function*(){const W=e.current.getColumn(B),A=yield Promise.resolve(W.preProcessEditCellProps({id:k,row:L,props:N[B]}));return e.current.unstable_setEditCellProps({id:k,field:B,props:A}),A.error}));return Promise.all(D).then(B=>B.some(W=>!!W)?!1:(e.current.publishEvent("rowEditCommit",k,$),!0))}return e.current.publishEvent("rowEditCommit",k,$),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(k=>{const R=e.current.getEditRowsModel()[k.id],O=e.current.getRow(k.id);let N=!0;return new Promise(U=>{Object.keys(R).forEach(j=>pt(void 0,null,function*(){const L=e.current.getColumn(j);let D=j===k.field?{value:k.value}:R[j];D=e.current.unstable_setEditCellProps({id:k.id,field:j,props:x({},D,{isValidating:!0})}),L.preProcessEditCellProps&&(D=yield Promise.resolve(L.preProcessEditCellProps({id:k.id,row:O,props:x({},D,{value:j===k.field?e.current.unstable_parseValue(k.id,j,k.value):D.value})}))),D.error&&(N=!1),e.current.unstable_setEditCellProps({id:k.id,field:j,props:x({},D,{isValidating:!1})})})),U(N)})},[e]);Ut(e,{setRowMode:c,getRowMode:f,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((k,$)=>pt(void 0,null,function*(){if($.which===229)return;const{cellMode:R,isEditable:O}=k;if(!O)return;const N=R===Tt.Edit,U=e.current.getRowParams(k.id);if(N)if($.key==="Enter"){var j;if(!(yield e.current.commitRowChange(k.id))&&(j=t.experimentalFeatures)!=null&&j.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",U,$)}else $.key==="Escape"&&e.current.publishEvent("rowEditStop",U,$);else $.key==="Enter"&&e.current.publishEvent("rowEditStart",U,$)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((k,$)=>{if(!k.isEditable)return;const R=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStart",R,$)},[e]),g=u.useCallback(k=>{const $=e.current.getRow(k.id),O=e.current.getEditRowsModel()[k.id];Object.keys(O).forEach(N=>pt(void 0,null,function*(){const U=e.current.getColumn(N);if(U.preProcessEditCellProps){const j=N===k.field?k.props:O[N],L=yield Promise.resolve(U.preProcessEditCellProps({id:k.id,row:$,props:j}));e.current.unstable_setEditCellProps({id:k.id,field:N,props:L})}else N===k.field&&e.current.unstable_setEditCellProps(k)}))},[e]),S=u.useCallback(k=>{e.current.setRowMode(k.id,Kt.Edit)},[e]),w=u.useCallback((k,$)=>{e.current.setRowMode(k.id,Kt.View),$.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",k,$)},[e]),P=u.useCallback(k=>{const R=e.current.getEditRowsModel()[k];if(!R)throw new Error(`MUI: Row at id: ${k} is not being edited.`);const O=e.current.getRow(k);if(O){let N=x({},O);Object.keys(R).forEach(U=>{const j=e.current.getColumn(U),L=R[U].value;j.valueSetter?N=j.valueSetter({row:N,value:L}):N[U]=L}),e.current.updateRows([N])}},[e]),C=u.useCallback(k=>{i.current=k},[]),E=(k,$)=>pt(void 0,null,function*(){k.cellMode!==Tt.View&&(i.current=null,o.current=setTimeout(()=>pt(void 0,null,function*(){var R;if(((R=i.current)==null?void 0:R.id)!==k.id){yield e.current.commitRowChange(k.id,$);const O=e.current.getRowParams(k.id);e.current.publishEvent("rowEditStop",O,$)}})))}),I=jn((k,$)=>{E(k,$)}),T=jn(()=>{const k=li(e);if(!k)return;const $=e.current.getCellParams(k.id,k.field);E($,{})});De(e,"cellKeyDown",a(v)),De(e,"cellDoubleClick",a(b)),De(e,"editCellPropsChange",a(g)),De(e,"rowEditStart",a(S)),De(e,"rowEditStop",a(w)),De(e,"rowEditCommit",a(P)),De(e,"cellFocusIn",a(C)),De(e,"cellFocusOut",a(I)),De(e,"columnHeaderDragStart",a(T)),Rt(e,"rowEditCommit",t.onRowEditCommit),Rt(e,"rowEditStart",t.onRowEditStart),Rt(e,"rowEditStop",t.onRowEditStop)},uce=e=>x({},e,{editRows:{}});function dce(e,t){var n;const r=Vn(e,"useGridEditRows");ace(e,t),cce(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:_n,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,S,w,P)=>{if(!w){P();return}if(o.current[g]||(o.current[g]={}),o.current[g][S]){const[I]=o.current[g][S];clearTimeout(I)}const C=()=>{P();const[I]=o.current[g][S];clearTimeout(I),delete o.current[g][S]},E=setTimeout(()=>{P(),delete o.current[g][S]},w);o.current[g][S]=[E,C]},a=u.useCallback((g,S)=>{if(o.current[g]){if(!S)Object.keys(o.current[g]).forEach(w=>{const[,P]=o.current[g][w];P()});else if(o.current[g][S]){const[,w]=o.current[g][S];w()}}},[]),c=u.useCallback((g,S={})=>{s(g.id,g.field,g.debounceMs,()=>{var w;if((w=t.experimentalFeatures)!=null&&w.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const P={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",P,S)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),f=u.useCallback((g,S,w)=>{const P=e.current.getColumn(S);return P.valueParser?P.valueParser(w,e.current.getCellParams(g,S)):w},[e]),p=u.useCallback(g=>{const{id:S,field:w,props:P}=g;return r.debug(`Setting cell props on id: ${S} field: ${w}`),e.current.setState(E=>{const I=x({},E.editRows);return I[S]=x({},E.editRows[S]),I[S][w]=x({},P,{value:f(S,w,P.value)}),x({},E,{editRows:I})}),e.current.forceUpdate(),_n(e.current.state)[S][w]},[e,r,f]),h=u.useCallback(g=>{_n(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(w=>x({},w,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>_n(e.current.state),[e]),v=u.useCallback((g,S)=>{const w=S.detail>1;g.isEditable&&g.cellMode===Tt.View&&w&&S.preventDefault()},[]);De(e,"cellMouseDown",v),Rt(e,"editCellPropsChange",t.onEditCellPropsChange),Ut(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:f,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const fce=["id","field"],pce=["id","field"],hce=mi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),mce=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:f,signature:p}=t,h=L=>(...D)=>{t.editMode===br.Cell&&L(...D)},m=u.useCallback((L,D)=>{const B=e.current.getCellParams(L,D);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${L} and field=${D} is not editable.`)},[e]),v=u.useCallback((L,D,B)=>{if(e.current.getCellMode(L,D)!==B)throw new Error(`MUI: The cell with id=${L} and field=${D} is not in ${B} mode.`)},[e]),b=u.useCallback((L,D)=>{if(!L.isEditable||L.cellMode===Tt.Edit)return;const B=x({},L,{reason:ss.cellDoubleClick});e.current.publishEvent("cellEditStart",B,D)},[e]),g=u.useCallback((L,D)=>{if(L.cellMode===Tt.View||e.current.getCellMode(L.id,L.field)===Tt.View)return;const B=x({},L,{reason:Pi.cellFocusOut});e.current.publishEvent("cellEditStop",B,D)},[e]),S=u.useCallback((L,D)=>{if(L.cellMode===Tt.Edit){if(D.which===229)return;let B;if(D.key==="Escape"?B=Pi.escapeKeyDown:D.key==="Enter"?B=Pi.enterKeyDown:D.key==="Tab"&&(B=D.shiftKey?Pi.shiftTabKeyDown:Pi.tabKeyDown,D.preventDefault()),B){const W=x({},L,{reason:B});e.current.publishEvent("cellEditStop",W,D)}}else if(L.isEditable){let B;if(gv(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?B=ss.printableKeyDown:D.key==="Enter"?B=ss.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(B=ss.deleteKeyDown),B){const W=x({},L,{reason:B});e.current.publishEvent("cellEditStart",W,D)}}},[e]),w=u.useCallback(L=>{const{id:D,field:B,reason:W}=L,A={id:D,field:B};(W===ss.deleteKeyDown||W===ss.printableKeyDown)&&(A.deleteValue=!0),e.current.startCellEditMode(A)},[e]),P=u.useCallback(L=>{const{id:D,field:B,reason:W}=L;e.current.unstable_runPendingEditCellValueMutation(D,B);let A;W===Pi.enterKeyDown?A="below":W===Pi.tabKeyDown?A="right":W===Pi.shiftTabKeyDown&&(A="left");let z=W==="escapeKeyDown";_n(e.current.state)[D][B].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(z=!0),e.current.stopCellEditMode({id:D,field:B,ignoreModifications:z,cellToFocusAfter:A})},[e,t.disableIgnoreModificationsIfProcessingProps]);De(e,"cellDoubleClick",h(b)),De(e,"cellFocusOut",h(g)),De(e,"cellKeyDown",h(S)),De(e,"cellEditStart",h(w)),De(e,"cellEditStop",h(P)),Rt(e,"cellEditStart",t.onCellEditStart),Rt(e,"cellEditStop",t.onCellEditStop);const C=u.useCallback((L,D)=>{const B=_n(e.current.state);return B[L]&&B[L][D]?Tt.Edit:Tt.View},[e]),E=u.useCallback(L=>{const D=L!==t.cellModesModel;if(f&&D){const B=p===Pa.DataGridPro?{api:e.current}:{};f(L,B)}t.cellModesModel&&D||(r(L),o.current=L,e.current.publishEvent("cellModesModelChange",L))},[e,f,t.cellModesModel,p]),I=u.useCallback((L,D,B)=>{const W=x({},o.current);if(B!==null)W[L]=x({},W[L],{[D]:x({},B)});else{const A=W[L],z=oe(A,[D].map(Tf));W[L]=z,Object.keys(W[L]).length===0&&delete W[L]}E(W)},[E]),T=u.useCallback((L,D,B)=>{e.current.setState(W=>{const A=x({},W.editRows);return B!==null?A[L]=x({},A[L],{[D]:x({},B)}):(delete A[L][D],Object.keys(A[L]).length===0&&delete A[L]),x({},W,{editRows:A})}),e.current.forceUpdate()},[e]),k=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,fce);m(D,B),v(D,B,Tt.View),I(D,B,x({mode:Tt.Edit},W))},[m,v,I]),$=u.useCallback(L=>{const{id:D,field:B,deleteValue:W}=L,A={value:W?"":e.current.getCellValue(D,B),error:!1,isProcessingProps:!1};T(D,B,A),e.current.setCellFocus(D,B)},[e,T]),R=u.useCallback(L=>{const{id:D,field:B}=L,W=oe(L,pce);v(D,B,Tt.Edit),I(D,B,x({mode:Tt.View},W))},[v,I]),O=u.useCallback(L=>pt(void 0,null,function*(){const{id:D,field:B,ignoreModifications:W,cellToFocusAfter:A="none"}=L;v(D,B,Tt.Edit),e.current.unstable_runPendingEditCellValueMutation(D,B);const z=()=>{T(D,B,null),I(D,B,null),A!=="none"&&e.current.unstable_moveFocusToRelativeCell(D,B,A)};if(W){z();return}const G=_n(e.current.state),{error:q,isProcessingProps:X}=G[D][B];if(q||X){i.current[D][B].mode=Tt.Edit;return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(D,B);if(s){const ee=se=>{i.current[D][B].mode=Tt.Edit,a?a(se):hce()};try{const se=e.current.getRow(D);Promise.resolve(s(ie,se)).then(ae=>{e.current.updateRows([ae]),z()}).catch(ee)}catch(se){ee(se)}}else e.current.updateRows([ie]),z()}),[e,a,s,v,I,T]),N=u.useCallback(L=>pt(void 0,null,function*(){var D,B;const{id:W,field:A,value:z}=L;m(W,A),v(W,A,Tt.Edit);const G=e.current.getColumn(A),q=e.current.getRow(W);let X=z;G.valueParser&&(X=G.valueParser(z,e.current.getCellParams(W,A)));let ie=_n(e.current.state),ee=x({},ie[W][A],{value:X});if(G.preProcessEditCellProps){const se=z!==ie[W][A].value;ee=x({},ee,{isProcessingProps:!0}),T(W,A,ee),ee=yield Promise.resolve(G.preProcessEditCellProps({id:W,row:q,props:ee,hasChanged:se}))}return e.current.getCellMode(W,A)===Tt.View?!1:(ie=_n(e.current.state),ee=x({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ie[W][A].value:X,T(W,A,ee),ie=_n(e.current.state),!((D=ie[W])!=null&&(B=D[A])!=null&&B.error))}),[e,m,v,T]),U=u.useCallback((L,D)=>{const B=e.current.getColumn(D),W=_n(e.current.state),{value:A}=W[L][D],z=e.current.getRow(L);return B.valueSetter?B.valueSetter({value:A,row:z}):x({},z,{[D]:A})},[e]);Ut(e,{getCellMode:C,startCellEditMode:k,stopCellEditMode:R,unstable_setCellEditingEditCellValue:N,unstable_getRowWithUpdatedValuesFromCellEditing:U}),u.useEffect(()=>{c&&E(c)},[c,E]),u.useEffect(()=>{const L=pO(e),D=i.current;i.current=n,Object.entries(n).forEach(([B,W])=>{Object.entries(W).forEach(([A,z])=>{var G,q,X;const ie=((G=D[B])==null||(q=G[A])==null?void 0:q.mode)||Tt.View,ee=(X=L[B])!=null?X:B;z.mode===Tt.Edit&&ie===Tt.View?$(x({id:ee,field:A},z)):z.mode===Tt.View&&ie===Tt.Edit&&O(x({id:ee,field:A},z))})})},[e,n,$,O])},gce=["id"],vce=["id"],yce=mi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),bce=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:f,rowModesModel:p,onRowModesModelChange:h,signature:m}=t,v=A=>(...z)=>{t.editMode===br.Row&&A(...z)},b=u.useCallback((A,z)=>{const G=e.current.getCellParams(A,z);if(!e.current.isCellEditable(G))throw new Error(`MUI: The cell with id=${A} and field=${z} is not editable.`)},[e]),g=u.useCallback((A,z)=>{if(e.current.getRowMode(A)!==z)throw new Error(`MUI: The row with id=${A} is not in ${z} mode.`)},[e]),S=u.useCallback((A,z)=>{if(!A.isEditable||e.current.getRowMode(A.id)===Kt.Edit)return;const G=e.current.getRowParams(A.id),q=x({},G,{field:A.field,reason:ls.cellDoubleClick});e.current.publishEvent("rowEditStart",q,z)},[e]),w=u.useCallback(A=>{a.current=A},[]),P=u.useCallback((A,z)=>{A.isEditable&&e.current.getRowMode(A.id)!==Kt.View&&(a.current=null,s.current=setTimeout(()=>{var G;if(s.current=null,((G=a.current)==null?void 0:G.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===Kt.View)return;const q=e.current.getRowParams(A.id),X=x({},q,{field:A.field,reason:ki.rowFocusOut});e.current.publishEvent("rowEditStop",X,z)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const C=u.useCallback((A,z)=>{if(A.cellMode===Kt.Edit){if(z.which===229)return;let G;if(z.key==="Escape")G=ki.escapeKeyDown;else if(z.key==="Enter")G=ki.enterKeyDown;else if(z.key==="Tab"){const q=Sa(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(A.id,X)));z.shiftKey?A.field===q[0]&&(G=ki.shiftTabKeyDown):A.field===q[q.length-1]&&(G=ki.tabKeyDown),G&&z.preventDefault()}if(G){const q=e.current.getRowParams(A.id),X=x({},q,{reason:G,field:A.field});e.current.publishEvent("rowEditStop",X,z)}}else if(A.isEditable){let G;if(gv(z)||(z.ctrlKey||z.metaKey)&&z.key==="v"?G=ls.printableKeyDown:z.key==="Enter"?G=ls.enterKeyDown:(z.key==="Delete"||z.key==="Backspace")&&(G=ls.deleteKeyDown),G){const q=e.current.getRowParams(A.id),X=x({},q,{field:A.field,reason:G});e.current.publishEvent("rowEditStart",X,z)}}},[e]),E=u.useCallback(A=>{const{id:z,field:G,reason:q}=A,X={id:z,fieldToFocus:G};(q===ls.deleteKeyDown||q===ls.printableKeyDown)&&(X.deleteValue=!!G),e.current.startRowEditMode(X)},[e]),I=u.useCallback(A=>{const{id:z,reason:G,field:q}=A;e.current.unstable_runPendingEditCellValueMutation(z);let X;G===ki.enterKeyDown?X="below":G===ki.tabKeyDown?X="right":G===ki.shiftTabKeyDown&&(X="left");let ie=G==="escapeKeyDown";const ee=_n(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(ee[z]).some(se=>se.isProcessingProps)),e.current.stopRowEditMode({id:z,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);De(e,"cellDoubleClick",v(S)),De(e,"cellFocusIn",v(w)),De(e,"cellFocusOut",v(P)),De(e,"cellKeyDown",v(C)),De(e,"rowEditStart",v(E)),De(e,"rowEditStop",v(I)),Rt(e,"rowEditStart",t.onRowEditStart),Rt(e,"rowEditStop",t.onRowEditStop);const T=u.useCallback(A=>{if(t.editMode===br.Cell)return Kt.View;const z=_n(e.current.state);return z[A]&&Object.keys(z[A]).length>0?Kt.Edit:Kt.View},[e,t.editMode]),k=u.useCallback(A=>{const z=A!==t.rowModesModel;if(h&&z){const G=m===Pa.DataGridPro?{api:e.current}:{};h(A,G)}t.rowModesModel&&z||(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))},[e,h,t.rowModesModel,m]),$=u.useCallback((A,z)=>{const G=x({},o.current);z!==null?G[A]=x({},z):delete G[A],k(G)},[k]),R=u.useCallback((A,z)=>{e.current.setState(G=>{const q=x({},G.editRows);return z!==null?q[A]=z:delete q[A],x({},G,{editRows:q})}),e.current.forceUpdate()},[e]),O=u.useCallback((A,z,G)=>{e.current.setState(q=>{const X=x({},q.editRows);return G!==null?X[A]=x({},X[A],{[z]:x({},G)}):(delete X[A][z],Object.keys(X[A]).length===0&&delete X[A]),x({},q,{editRows:X})}),e.current.forceUpdate()},[e]),N=u.useCallback(A=>{const{id:z}=A,G=oe(A,gce);g(z,Kt.View),$(z,x({mode:Kt.Edit},G))},[g,$]),U=u.useCallback(A=>{const{id:z,fieldToFocus:G,deleteValue:q}=A,ie=Sa(e).reduce((ee,se)=>{if(!e.current.getCellParams(z,se).isEditable)return ee;const we=q&&G===se;return ee[se]={value:we?"":e.current.getCellValue(z,se),error:!1,isProcessingProps:!1},ee},{});R(z,ie),G&&e.current.setCellFocus(z,G)},[e,R]),j=u.useCallback(A=>{const{id:z}=A,G=oe(A,vce);g(z,Kt.Edit),$(z,x({mode:Kt.View},G))},[g,$]),L=u.useCallback(A=>{const{id:z,ignoreModifications:G,field:q,cellToFocusAfter:X="none"}=A;e.current.unstable_runPendingEditCellValueMutation(z);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(z,q,X),R(z,null),$(z,null)};if(G){ie();return}const ee=_n(e.current.state),se=e.current.getRow(z);if(Object.values(ee[z]).some(le=>le.isProcessingProps)){i.current[z].mode=Kt.Edit;return}if(Object.values(ee[z]).some(le=>le.error)){i.current[z].mode=Kt.Edit;return}const de=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(z);if(c){const le=te=>{i.current[z].mode=Kt.Edit,f?f(te):yce()};try{Promise.resolve(c(de,se)).then(te=>{e.current.updateRows([te]),ie()}).catch(le)}catch(te){le(te)}}else e.current.updateRows([de]),ie()},[e,f,c,R,$]),D=u.useCallback(A=>{const{id:z,field:G,value:q}=A;b(z,G);const X=e.current.getColumn(G),ie=e.current.getRow(z);let ee=q;X.valueParser&&(ee=X.valueParser(q,e.current.getCellParams(z,G)));let se=_n(e.current.state),ae=x({},se[z][G],{value:ee});return X.preProcessEditCellProps||O(z,G,ae),new Promise(we=>{const de=[];if(X.preProcessEditCellProps){const le=ae.value!==se[z][G].value;ae=x({},ae,{isProcessingProps:!0}),O(z,G,ae);const te=se[z],be=oe(te,[G].map(Tf)),$e=Promise.resolve(X.preProcessEditCellProps({id:z,row:ie,props:ae,hasChanged:le,otherFieldsProps:be})).then(Se=>{if(e.current.getRowMode(z)===Kt.View){we(!1);return}se=_n(e.current.state),Se=x({},Se,{isProcessingProps:!1}),Se.value=X.preProcessEditCellProps?se[z][G].value:ee,O(z,G,Se)});de.push($e)}Object.entries(se[z]).forEach(([le,te])=>{if(le===G)return;const be=e.current.getColumn(le);if(!be.preProcessEditCellProps)return;te=x({},te,{isProcessingProps:!0}),O(z,le,te),se=_n(e.current.state);const $e=se[z],Se=oe($e,[le].map(Tf)),Ne=Promise.resolve(be.preProcessEditCellProps({id:z,row:ie,props:te,hasChanged:!1,otherFieldsProps:Se})).then(Re=>{if(e.current.getRowMode(z)===Kt.View){we(!1);return}Re=x({},Re,{isProcessingProps:!1}),O(z,le,Re)});de.push(Ne)}),Promise.all(de).then(()=>{e.current.getRowMode(z)===Kt.Edit?(se=_n(e.current.state),we(!se[z][G].error)):we(!1)})})},[e,b,O]),B=u.useCallback(A=>{const z=_n(e.current.state),G=e.current.getRow(A);let q=x({},G);return Object.entries(z[A]).forEach(([X,ie])=>{const ee=e.current.getColumn(X);ee.valueSetter?q=ee.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);Ut(e,{getRowMode:T,startRowEditMode:N,stopRowEditMode:j,unstable_setRowEditingEditCellValue:D,unstable_getRowWithUpdatedValuesFromRowEditing:B}),u.useEffect(()=>{p&&k(p)},[p,k]),u.useEffect(()=>{const A=pO(e),z=i.current;i.current=n,Object.entries(n).forEach(([G,q])=>{var X,ie;const ee=((X=z[G])==null?void 0:X.mode)||Kt.View,se=(ie=A[G])!=null?ie:G;q.mode===Kt.Edit&&ee===Kt.View?U(x({id:se},q)):q.mode===Kt.View&&ee===Kt.Edit&&L(x({id:se},q))})},[e,n,U,L])},wce=e=>x({},e,{editRows:{}}),Cce=(e,t)=>{mce(e,t),bce(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(p=>p.rowNode.isAutoGenerated||!p.colDef.editable||!p.colDef.renderEditCell?!1:r?r(p):!p.rowNode.isPinned,[r]),i=(p,h,m,v)=>{if(!m){v();return}if(n.current[p]||(n.current[p]={}),n.current[p][h]){const[S]=n.current[p][h];clearTimeout(S)}const b=()=>{const[S]=n.current[p][h];clearTimeout(S),v(),delete n.current[p][h]},g=setTimeout(()=>{v(),delete n.current[p][h]},m);n.current[p][h]=[g,b]};u.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([h,m])=>{Object.keys(m).forEach(v=>{const[b]=p[h][v];clearTimeout(b),delete p[h][v]})})}},[]);const s=u.useCallback((p,h)=>{if(n.current[p]){if(!h)Object.keys(n.current[p]).forEach(m=>{const[,v]=n.current[p][m];v()});else if(n.current[p][h]){const[,m]=n.current[p][h];m()}}},[]),a=u.useCallback(p=>{const{id:h,field:m,debounceMs:v}=p;return new Promise(b=>{i(h,m,v,()=>pt(void 0,null,function*(){const g=t.editMode===br.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(h,m)===Tt.Edit){const S=yield g(p);b(S)}}))})},[e,t.editMode]),c=u.useCallback((p,h)=>t.editMode===br.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(p,h):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]);Ut(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c})},xce=(e,t,n)=>(n.current.unstable_caches.rows=Jh({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),x({},e,{rows:nL({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),Sce=(e,t)=>{const n=Vn(e,"useGridRows"),r=Aa(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(R=>{var O;return(O=Ef(e)[R])!=null?O:null},[e]),a=u.useMemo(()=>r.rows.reduce((R,{id:O},N)=>(R[O]=N,R),{}),[r.rows]),c=u.useCallback((R,O)=>{const N=()=>{i.current=null,o.current=Date.now(),e.current.setState(j=>x({},j,{rows:nL({apiRef:e,previousTree:pa(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=R,!O){N();return}const U=t.throttleRowsMs-(Date.now()-o.current);if(U>0){i.current=setTimeout(N,U);return}N()},[t.throttleRowsMs,t.rowCount,t.loading,e]),f=u.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`),c(Jh({rows:R,getRowId:t.getRowId,loading:t.loading}),!0)},[n,t.getRowId,t.loading,c]),p=u.useCallback(R=>{if(t.signature===Pa.DataGrid&&R.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(`
275
+ `));const O=new Map;R.forEach(L=>{const D=tL(L,t.getRowId,"A row was provided without id when calling updateRows():");O.has(D)?O.set(D,x({},O.get(D),L)):O.set(D,L)});const N=[],U=e.current.unstable_caches.rows,j={rowsBeforePartialUpdates:U.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:U.loadingPropBeforePartialUpdates,idRowsLookup:x({},U.idRowsLookup),idToIdLookup:x({},U.idToIdLookup),ids:[...U.ids]};O.forEach((L,D)=>{if(L._action==="delete"){delete j.idRowsLookup[D],delete j.idToIdLookup[D],N.push(D);return}if(!e.current.getRow(D)){j.idRowsLookup[D]=L,j.idToIdLookup[D]=D,j.ids.push(D);return}j.idRowsLookup[D]=x({},e.current.getRow(D),L)}),N.length>0&&(j.ids=j.ids.filter(L=>!N.includes(L))),c(j,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const R=Bc(e),O=Ef(e);return new Map(R.map(N=>[N,O[N]]))},[e]),m=u.useCallback(()=>pv(e),[e]),v=u.useCallback(()=>Bc(e),[e]),b=u.useCallback(R=>a[R],[a]),g=u.useCallback((R,O)=>{const N=e.current.getRowNode(R);if(!N)throw new Error(`MUI: No row with id #${R} found`);const U=x({},N,{childrenExpanded:O});e.current.setState(j=>x({},j,{rows:x({},j.rows,{tree:x({},j.rows.tree,{[R]:U})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",U)},[e]),S=u.useCallback(R=>{var O;return(O=pa(e)[R])!=null?O:null},[e]),w=u.useCallback(({skipAutoGeneratedRows:R=!0,groupId:O,applySorting:N,applyFiltering:U})=>{const j=pa(e);let L;if(N){const D=j[O];if(!D)return[];const B=KC(e);L=[];const W=B.findIndex(A=>A===O)+1;for(let A=W;A<B.length&&j[B[A]].depth>D.depth;A+=1){const z=B[A],G=j[z];(!R||!G.isAutoGenerated)&&L.push(z)}}else L=rL(j,O,R);if(U){const D=hO(e);L=L.filter(B=>D[B]!==!1)}return L},[e]),P=u.useCallback((R,O)=>{const N=Bc(e),U=N.findIndex(L=>L===R);if(U===-1||U===O)return;n.debug(`Moving row ${R} to index ${O}`);const j=[...N];j.splice(O,0,j.splice(U,1)[0]),e.current.setState(L=>x({},L,{rows:x({},L.rows,{ids:j})})),e.current.applySorting()},[e,n]),C={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:f,setRowIndex:P,updateRows:p,setRowChildrenExpansion:g,getRowNode:S,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:w},E=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?R=e.current.unstable_caches.rows:R=Jh({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),c(R,!1)},[n,e,t.rows,t.getRowId,t.loading,c]),I=u.useCallback(R=>{R==="rowTreeCreation"&&E()},[E]),T=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==Ire(e)&&E()},[e,E]);De(e,"activeStrategyProcessorChange",I),De(e,"strategyAvailabilityChange",T);const k=u.useCallback(()=>{e.current.setState(R=>x({},R,{rows:x({},R.rows,e.current.unstable_applyPipeProcessors("hydrateRows",R.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);rx(e,"hydrateRows",k),Ut(e,C),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const $=u.useRef(!0);u.useEffect(()=>{if($.current){$.current=!1;return}const R=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading;if(R){O||(e.current.setState(N=>x({},N,{rows:x({},N.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(Jh({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Ece=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:op,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},Pce=e=>{ox(e,op,"rowTreeCreation",Ece)};mi(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function kce(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),b=e.current.getRowNode(h);if(!v||!b)throw new Error(`No row with id #${h} found`);const g=li(e),S=Hm(e);return{id:h,field:m,row:v,rowNode:b,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:S&&S.field===m&&S.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),b=e.current.getCellValue(h,m),g=e.current.getRow(h),S=e.current.getRowNode(h);if(!g||!S)throw new Error(`No row with id #${h} found`);const w=li(e),P=Hm(e),C={id:h,field:m,row:g,rowNode:S,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:w!==null&&w.field===m&&w.id===h,tabIndex:P&&P.field===m&&P.id===h?0:-1,value:b,formattedValue:b};return v.valueFormatter&&(C.formattedValue=v.valueFormatter({id:h,field:C.field,value:C.value,api:e.current})),C.isEditable=v&&e.current.isCellEditable(C),C},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const b=e.current.getRow(h);if(!b)throw new Error(`No row with id #${h} found`);return b[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?Sie(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?RO(e.current.rootElementRef.current,h):null,[e]),f=u.useCallback((h,m)=>e.current.rootElementRef.current?Eie(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Ut(e,{getCellValue:s,getCellParams:i,getCellElement:f,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const lL=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Ice=(e,t)=>{var n;return x({},e,{selection:(n=lL(t.selectionModel))!=null?n:[]})},$ce=(e,t)=>{const n=Vn(e,"useGridSelection"),r=u.useMemo(()=>lL(t.selectionModel,To(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:To,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:f,isRowSelectable:p}=t,h=!s||i,m=Aa(e,t),v=u.useCallback(L=>{var D;let B=L;const W=(D=o.current)!=null?D:L,A=e.current.isRowSelected(L);if(A){const z=Hd(e),G=z.findIndex(X=>X===W),q=z.findIndex(X=>X===B);if(G===q)return;G>q?B=z[q+1]:B=z[q-1]}o.current=L,e.current.selectRowRange({startId:W,endId:B},!A)},[e]),b=u.useCallback(L=>{To(e.current.state)!==L&&(n.debug("Setting selection model"),e.current.setState(B=>x({},B,{selection:L})),e.current.forceUpdate())},[e,n]),g=u.useCallback(L=>To(e.current.state).includes(L),[e]),S=u.useCallback(L=>{if(p&&!p(e.current.getRowParams(L)))return!1;const D=e.current.getRowNode(L);return!((D==null?void 0:D.position)==="footer"||D!=null&&D.isPinned)},[e,p]),w=u.useCallback(()=>Uie(e),[e]),P=u.useCallback((L,D=!0,B=!1)=>{if(e.current.isRowSelectable(L))if(o.current=L,B)n.debug(`Setting selection for row ${L}`),e.current.setSelectionModel(D?[L]:[]);else{n.debug(`Toggling selection for row ${L}`);const A=To(e.current.state).filter(G=>G!==L);D&&A.push(L),(A.length<2||h)&&e.current.setSelectionModel(A)}},[e,n,h]),C=u.useCallback((L,D=!0,B=!1)=>{n.debug("Setting selection for several rows");const W=L.filter(G=>e.current.isRowSelectable(G));let A;if(B)A=D?W:[];else{const G=x({},Um(e));W.forEach(q=>{D?G[q]=q:delete G[q]}),A=Object.values(G)}(A.length<2||h)&&e.current.setSelectionModel(A)},[e,n,h]),E=u.useCallback(({startId:L,endId:D},B=!0,W)=>{if(!e.current.getRow(L)||!e.current.getRow(D))return;n.debug(`Expanding selection from row ${L} to row ${D}`);const A=Hd(e),z=A.indexOf(L),G=A.indexOf(D),[q,X]=z>G?[G,z]:[z,G],ie=A.slice(q,X+1);e.current.selectRows(ie,B,W)},[e,n]);Ut(e,{selectRow:P,selectRows:C,selectRowRange:E,setSelectionModel:b,getSelectedRows:w,isRowSelected:g,isRowSelectable:S});const T=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const L=To(e.current.state),D=Ef(e),B=x({},Um(e));let W=!1;L.forEach(A=>{D[A]||(delete B[A],W=!0)}),W&&e.current.setSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),k=u.useCallback((L,D)=>{const B=D.metaKey||D.ctrlKey,W=!i&&!B&&!Pb(D),A=!h||W,z=e.current.isRowSelected(L);A?e.current.selectRow(L,W?!0:!z,!0):e.current.selectRow(L,!z,!1)},[e,h,i]),$=u.useCallback((L,D)=>{a||L.field!==np.field&&L.field!==nx&&(L.field&&e.current.getColumn(L.field).type===tx||L.rowNode.isPinned||(D.shiftKey&&(h||i)?v(L.id):k(L.id,D)))},[a,h,i,e,v,k]),R=u.useCallback((L,D)=>{if(h&&D.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[h]),O=u.useCallback((L,D)=>{D.nativeEvent.shiftKey?v(L.id):e.current.selectRow(L.id,L.value)},[e,v]),N=u.useCallback(L=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?LO(e):Hd(e);e.current.selectRows(B,L.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),U=u.useCallback((L,D)=>{if(e.current.getCellMode(L.id,L.field)!==Tt.Edit&&D.currentTarget.contains(D.target)){if(tp(D.key)&&D.shiftKey){const B=li(e);if(B&&B.id!==L.id){D.preventDefault();const W=e.current.isRowSelected(B.id);if(!h){e.current.selectRow(B.id,!W,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(B.id),z=e.current.getRowIndexRelativeToVisibleRows(L.id);let G,q;A>z?W?(G=z,q=A-1):(G=z,q=A):W?(G=A+1,q=z):(G=A,q=z);const X=m.rows.slice(G,q+1).map(ie=>ie.id);e.current.selectRows(X,!W);return}}if(D.key===" "&&D.shiftKey){D.preventDefault(),k(L.id,D);return}D.key.toLowerCase()==="a"&&(D.ctrlKey||D.metaKey)&&(D.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,k,C,m.rows,h]);De(e,"sortedRowsSet",T),De(e,"cellClick",$),De(e,"rowSelectionCheckboxChange",O),De(e,"headerSelectionCheckboxChange",N),De(e,"cellMouseDown",R),De(e,"cellKeyDown",U),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const j=r!=null;u.useEffect(()=>{if(j)return;const L=To(e.current.state);if(S){const D=L.filter(B=>S(B));D.length<L.length&&e.current.setSelectionModel(D)}},[e,S,j]),u.useEffect(()=>{const L=To(e.current.state);if(!h&&L.length>1){const{rows:D}=yv(e,{pagination:c,paginationMode:f}),B=D.reduce((A,{id:z})=>(A[z]=!0,A),{}),W=L.find(A=>{let z=!0;return S&&(z=S(A)),z&&B[A]});e.current.setSelectionModel(W!==void 0?[W]:[])}},[e,h,i,s,S,c,f])},Tce={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},Mce=["sortingOrder"],_ce=u.memo(function(t){const{sortingOrder:n}=t,r=oe(t,Mce),o=Xe(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?_.jsx(s,x({},r)):null}),Rce=["message","hasError","errorInfo"],Oce=u.forwardRef(function(t,n){const{message:r}=t,o=oe(t,Rce),i=mt(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=We(i,Zf);return _.jsx(vv,x({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:r||s}))}),Lce=u.forwardRef(function(t,n){const o=mt().current.getLocaleText("noResultsOverlayLabel");return _.jsx(vv,x({ref:n},t,{children:o}))}),Ace={BooleanCellTrueIcon:Eoe,BooleanCellFalseIcon:B0,ColumnMenuIcon:Coe,OpenFilterButtonIcon:poe,FilterPanelDeleteIcon:B0,ColumnFilteredIcon:hoe,ColumnSelectorIcon:goe,ColumnUnsortedIcon:_ce,ColumnSortedAscendingIcon:doe,ColumnSortedDescendingIcon:foe,ColumnResizeIcon:voe,DensityCompactIcon:yoe,DensityStandardIcon:boe,DensityComfortableIcon:woe,ExportIcon:Soe,MoreActionsIcon:Poe,TreeDataCollapseIcon:_I,TreeDataExpandIcon:MI,GroupingCriteriaCollapseIcon:_I,GroupingCriteriaExpandIcon:MI,DetailPanelExpandIcon:EO,DetailPanelCollapseIcon:xoe,RowReorderIcon:PO,QuickFilterIcon:moe,QuickFilterClearIcon:B0},XI=x({},Ace,{BaseCheckbox:rR,BaseTextField:Kf,BaseFormControl:Ra,BaseSelect:CC,BaseSwitch:$R,BaseButton:vr,BaseTooltip:rv,BasePopper:Ma,Cell:Qre,ColumnHeaderFilterIconButton:Die,ColumnMenu:Vse,ErrorOverlay:Oce,Footer:Hle,Header:jle,Toolbar:null,PreferencesPanel:mle,LoadingOverlay:Vle,NoResultsOverlay:Lce,NoRowsOverlay:Ule,Pagination:Gle,FilterPanel:$le,ColumnsPanel:cle,Panel:hle,Row:Xle}),Fce=e=>{const{classes:t}=e;return u.useMemo(()=>Ie({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Lt,t),[t])},Nce=(e,t)=>{const n={classes:t.classes},r=Fce(n),o=u.useCallback(i=>{const s=x({},np,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[Vs]!=null;return a&&!c?(i.lookup[Vs]=s,i.all=[Vs,...i.all]):!a&&c?(delete i.lookup[Vs],i.all=i.all.filter(f=>f!==Vs)):a&&c&&(i.lookup[Vs]=x({},s,i.lookup[Vs])),i},[e,r,t.checkboxSelection]);er(e,"hydrateColumns",o)},Dce=(e,t)=>{var n,r,o,i;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(i=o.sorting)==null?void 0:i.sortModel)!=null?n:[];return x({},e,{sorting:{sortModel:AO(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},Bce=(e,t)=>{var n,r;const o=Vn(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ri,changeEvent:"sortModelChange"});const i=u.useCallback((k,$)=>{const R=ri(e),O=R.findIndex(U=>U.field===k);let N=[...R];return O>-1?$?N.splice(O,1,$):N.splice(O,1):N=[...R,$],N},[e]),s=u.useCallback((k,$)=>{var R;const N=ri(e).find(j=>j.field===k.field);if(N){var U;const j=$===void 0?LI((U=k.sortingOrder)!=null?U:t.sortingOrder,N.sort):$;return j==null?void 0:x({},N,{sort:j})}return{field:k.field,sort:$===void 0?LI((R=k.sortingOrder)!=null?R:t.sortingOrder):$}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode===zc.server)return o.debug("Skipping sorting rows as sortingMode = server"),x({},k,{sorting:x({},k.sorting,{sortedRows:Bc(k,e.current.instanceId)})});const $=ri(k,e.current.instanceId),R=rse($,e),O=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:R});return x({},k,{sorting:x({},k.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(k=>{ri(e)!==k&&(o.debug("Setting sort model"),e.current.setState(OI(k,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),f=u.useCallback((k,$,R)=>{if(!k.sortable)return;const O=s(k,$);let N;!R||t.disableMultipleColumnsSorting?N=O?[O]:[]:N=i(k.field,O),e.current.setSortModel(N)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>ri(e),[e]),h=u.useCallback(()=>qC(e).map($=>$.model),[e]),m=u.useCallback(()=>KC(e),[e]),v=u.useCallback(k=>e.current.getSortedRowIds().indexOf(k),[e]),b=u.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Ut(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:f,applySorting:a});const S=u.useCallback((k,$)=>{var R,O;const N=ri(e);return!$.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(O=R.sorting)==null?void 0:O.sortModel)!=null||N.length>0?x({},k,{sorting:{sortModel:N}}):k},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),w=u.useCallback((k,$)=>{var R;const O=(R=$.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?k:(e.current.setState(OI(O,t.disableMultipleColumnsSorting)),x({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),P=u.useCallback(k=>{const $=pa(e);if(!k.sortRowList){const N=[],U=[];return Bc(e).forEach(j=>{$[j].isPinned||($[j].position==="footer"?U.push(j):N.push(j))}),[...N,...U]}const R=[],O=[];return Object.values($).forEach(N=>{N.isPinned||(N.position==="footer"?O.push(N.id):R.push(N))}),[...k.sortRowList(R),...O]},[e]);er(e,"exportState",S),er(e,"restoreState",w),ox(e,op,"sorting",P);const C=u.useCallback(({colDef:k},$)=>{const R=$.shiftKey||$.metaKey||$.ctrlKey;f(k,void 0,R)},[f]),E=u.useCallback(({colDef:k},$)=>{IO($.key)&&!$.ctrlKey&&!$.metaKey&&f(k,void 0,$.shiftKey)},[f]),I=u.useCallback(()=>{const k=ri(e),$=ku(e);if(k.length>0){const R=k.filter(O=>$[O.field]);R.length<k.length&&e.current.setSortModel(R)}},[e]),T=u.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);De(e,"columnHeaderClick",C),De(e,"columnHeaderKeyDown",E),De(e,"rowsSet",e.current.applySorting),De(e,"columnsChange",I),De(e,"activeStrategyProcessorChange",T),rp(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function QI(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const zce=(e,t)=>{const n=Vn(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=We(e,$s),s=u.useCallback(p=>{const h=pv(e),m=ar(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const P=Ea(e);let C;if(typeof p.rowIndex!="undefined"){var g;const E=(g=i[p.rowIndex])==null?void 0:g.id,I=e.current.unstable_getCellColSpanInfo(E,p.colIndex);I&&!I.spannedByColSpan&&(C=I.cellProps.width)}typeof C=="undefined"&&(C=m[p.colIndex].computedWidth),b.left=QI({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:C,offsetTop:P[p.colIndex]})}if(p.rowIndex!=null){var S,w;const P=Mf(e.current.state),C=Cd(e),E=jd(e),I=t.pagination?p.rowIndex-C*E:p.rowIndex,T=P.positions[I+1]?P.positions[I+1]-P.positions[I]:P.currentPageTotalHeight-P.positions[I],k=((S=o.current.querySelector(`.${Z["pinnedRows--top"]}`))==null?void 0:S.clientHeight)||0,$=((w=o.current.querySelector(`.${Z["pinnedRows--bottom"]}`))==null?void 0:w.clientHeight)||0;b.top=QI({clientHeight:o.current.clientHeight-k-$,scrollTop:o.current.scrollTop,offsetHeight:T,offsetTop:P.positions[I]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Ut(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function Hce(e,t){Rt(e,"columnHeaderClick",t.onColumnHeaderClick),Rt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Rt(e,"columnHeaderOver",t.onColumnHeaderOver),Rt(e,"columnHeaderOut",t.onColumnHeaderOut),Rt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Rt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Rt(e,"columnOrderChange",t.onColumnOrderChange),Rt(e,"cellClick",t.onCellClick),Rt(e,"cellDoubleClick",t.onCellDoubleClick),Rt(e,"cellKeyDown",t.onCellKeyDown),Rt(e,"cellFocusOut",t.onCellFocusOut),Rt(e,"preferencePanelClose",t.onPreferencePanelClose),Rt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Rt(e,"menuOpen",t.onMenuOpen),Rt(e,"menuClose",t.onMenuClose),Rt(e,"rowDoubleClick",t.onRowDoubleClick),Rt(e,"rowClick",t.onRowClick),Rt(e,"componentError",t.onError),Rt(e,"stateChange",t.onStateChange)}const jce=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,s=!1;return(r||o)&&(i=r,s=e.height+(i?n:0)>t.height,s&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:s}};function Vce(e,t){const n=Vn(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=We(e,Mf),a=We(e,ep),c=u.useCallback(()=>{var S;const w=(S=e.current.rootElementRef)==null?void 0:S.current,P=hv(e),C=oL(e);if(!o.current)return;let E;if(t.scrollbarSize!=null)E=t.scrollbarSize;else if(!P||!w)E=0;else{const U=Cn(w).createElement("div");U.style.width="99px",U.style.height="99px",U.style.position="absolute",U.style.overflow="scroll",U.className="scrollDiv",w.appendChild(U),E=U.offsetWidth-U.clientWidth,w.removeChild(U)}let I,T,k;if(t.autoHeight)k=!1,T=Math.round(P)>o.current.width,I={width:o.current.width,height:s.currentPageTotalHeight+(T?E:0)};else{I={width:o.current.width,height:o.current.height-a};const N=jce({content:{width:Math.round(P),height:s.currentPageTotalHeight},container:{width:I.width,height:I.height-C.top-C.bottom},scrollBarSize:E});k=N.hasScrollY,T=N.hasScrollX}const $={width:I.width-(k?E:0),height:I.height-(T?E:0)},R={viewportOuterSize:I,viewportInnerSize:$,hasScrollX:T,hasScrollY:k,scrollBarSize:E},O=i.current;i.current=R,(R.viewportInnerSize.width!==(O==null?void 0:O.viewportInnerSize.width)||R.viewportInnerSize.height!==(O==null?void 0:O.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",R.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),f=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const S=e.current.getRootDimensions();if(!S)return 0;const w=yv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const C=e.current.unstable_getRenderContext(),E=C.lastRowIndex-C.firstRowIndex;return Math.min(E-1,w.rows.length)}const P=Math.floor(S.viewportInnerSize.height/Zf(e));return Math.min(P,w.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Ut(e,{resize:f,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>Cl(f,60),[f]),b=u.useRef(!0),g=u.useCallback(S=>{o.current=S;const w=/jsdom/.test(window.navigator.userAgent);if(S.height===0&&!r.current&&!t.autoHeight&&!w&&(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(`
276
+ `)),r.current=!0),S.width===0&&!r.current&&!w&&(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(`
277
+ `)),r.current=!0),b.current){f(),b.current=!1;return}v()},[t.autoHeight,v,n,f]);Rn(()=>c(),[c]),Rt(e,"sortedRowsSet",c),Rt(e,"pageChange",c),Rt(e,"pageSizeChange",c),Rt(e,"columnsChange",c),De(e,"resize",g),Rt(e,"debouncedResize",t.onResize)}const Uce=e=>x({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Wce=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=We(e,Zf),f=We(e,Jf),p=We(e,Iu),h=We(e,GC),m=Aa(e,t),v=We(e,Qf),b=u.useCallback(()=>{var $,R;a.current=!1;const O=Bre(e.current.state,e.current.instanceId),N=L=>{i.current[L.id]||(i.current[L.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:B,sizes:W}=i.current[L.id];let A=c;const z=W.base;if(D)A=z;else if(n){const ee=n(x({},L,{densityFactor:O}));if(ee==="auto"){if(B){const se=o?o(x({},L,{densityFactor:O})):c;A=se!=null?se:c}else A=z;a.current=!0,i.current[L.id].autoHeight=!0}else A=ee!=null?ee:c,i.current[L.id].needsFirstMeasurement=!1,i.current[L.id].autoHeight=!1}else i.current[L.id].needsFirstMeasurement=!1;const G={base:A};if(r){var q,X;const ee=e.current.getRowIndexRelativeToVisibleRows(L.id),se=r(x({},L,{isFirstVisible:ee===0,isLastVisible:ee===m.rows.length-1,indexRelativeToCurrentPage:ee}));G.spacingTop=(q=se.top)!=null?q:0,G.spacingBottom=(X=se.bottom)!=null?X:0}const ie=e.current.unstable_applyPipeProcessors("rowHeight",G,L);return i.current[L.id].sizes=ie,ie},U=[],j=m.rows.reduce((L,D)=>{U.push(L);const B=N(D),W=Object.values(B).reduce((A,z)=>A+z,0);return L+W},0);v==null||($=v.top)==null||$.forEach(L=>{N(L)}),v==null||(R=v.bottom)==null||R.forEach(L=>{N(L)}),e.current.setState(L=>x({},L,{rowsMeta:{currentPageTotalHeight:j,positions:U}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback($=>{const R=i.current[$];return R?R.sizes.base:c},[c]),S=$=>{var R;return(R=i.current[$])==null?void 0:R.sizes},w=u.useCallback(($,R)=>{i.current[$].sizes.base=R,i.current[$].isResized=!0,i.current[$].needsFirstMeasurement=!1,b()},[b]),P=u.useMemo(()=>Cl(b),[b]),C=u.useCallback(($,R)=>{if(!i.current[$]||!i.current[$].autoHeight)return;const O=i.current[$].sizes.base!==R;i.current[$].needsFirstMeasurement=!1,i.current[$].sizes.base=R,O&&P()},[P]),E=u.useCallback($=>{var R;return((R=i.current[$])==null?void 0:R.autoHeight)||!1},[]),I=u.useCallback(()=>s.current,[]),T=u.useCallback($=>{a.current&&$>s.current&&(s.current=$)},[]);u.useEffect(()=>{b()},[c,f,p,h,b]),rx(e,"rowHeight",b),Ut(e,{unstable_getLastMeasuredRowIndex:I,unstable_setLastMeasuredRowIndex:T,unstable_rowHasAutoHeight:E,unstable_getRowHeight:g,unstable_getRowInternalSizes:S,unstable_setRowHeight:w,unstable_storeRowHeightMeasurement:C})},Gce=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Ut(e,{exportState:t,restoreState:n})},Kce=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[f],S=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!S||S===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let w=g.computedWidth;for(let P=1;P<S;P+=1){const C=f+P;if(C>=h&&C<m){const E=v[C];w+=E.computedWidth,n(p,f+P,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+S,b-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:S,width:w}})}return{colSpan:S}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let m=f;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Ut(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);De(e,"columnOrderChange",a)},qce=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=QO(t.columnGroupingModel);return o.all.forEach(a=>{var c,f;const p=(c=s[a])!=null?c:[],h=o.lookup[a];Mae(h)&&gs(p,h==null?void 0:h.groupPath)||(o.lookup[a]=x({},o.lookup[a],{groupPath:(f=s[a])!=null?f:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);er(e,"hydrateColumns",r)},Yce=e=>{var t,n;const r=xae(void 0,e);return qce(r,e),Nce(r,e),Pce(r),no(Ice,r,e),no(kae,r,e),no(_ae,r,e),no(xce,r,e),no((t=e.experimentalFeatures)!=null&&t.newEditingApi?wce:uce,r,e),no(Jae,r,e),no(Dce,r,e),no(sce,r,e),no(Xae,r,e),no(Oae,r,e),no(oce,r,e),no(Uce,r,e),no(Eae,r,e),tce(r,e),$ce(r,e),Iae(r,e),Sce(r,e),kce(r),Kce(r),Rae(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?Cce:dce)(r,e),Zae(r,e),lce(r,e),Qae(r,e),Bce(r,e),Lae(r,e),ice(r,e),Wce(r,e),zce(r,e),Pae(r),Bae(r),zae(r,e),Sae(r),Vce(r,e),Hce(r,e),Gce(r),r},Xce={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},Qce=100,Jce={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:Pf.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:br.Cell,filterMode:zc.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:zc.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:zc.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},Zce=e=>{if(e.pageSize>Qce)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=Je({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>x({},Tce,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return x({},XI);const i={};return Object.entries(XI).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>x({},Jce,t,{localeText:n,components:r},Xce),[t,n,r])},eue=["className"],tue=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},Lt,t)},nue=re("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),rue=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,eue),s={classes:Xe().classes},a=tue(s);return _.jsx(nue,x({ref:n,className:he(a.root,r)},o))}),oue=["className","style"],iue=e=>{const{classes:t,overflowedContent:n}=e;return Ie({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Lt,t)},sue=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),lue=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=oe(t,oue),s=Xe(),a={classes:s.classes,overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"},c=iue(a);return _.jsx(sue,x({ref:n,className:he(c.root,r),style:o},i))}),aue=["className"],cue=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},Lt,t)},uue=re("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),due=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,aue),s={classes:Xe().classes},a=cue(s);return _.jsx(uue,x({ref:n,className:he(a.root,r)},o))}),fue=["style"];function Hc(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Hc(e,t,n,o):Hc(e,t,o+1,r)}function pue(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return Hc(e,t,Math.floor(n/2),Math.min(n,t.length))}const Ql=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[kf(e-n,r,o),kf(t+n,r,o)],hue=e=>{var t,n;const r=mt(),o=Xe(),i=We(r,ar),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=We(r,Ea),v=We(r,hv),b=We(r,Zf),g=We(r,li),S=We(r,Hm),w=We(r,Mf),P=We(r,_n),C=We(r,Um),E=Aa(r,o),I=u.useRef(null),T=u.useRef(null),k=xt(s,T),[$,R]=u.useState(null),O=u.useRef($),N=u.useRef({top:0,left:0}),[U,j]=u.useState(null),L=u.useRef(v),D=u.useCallback(de=>{var le,te;const $e=r.current.unstable_getLastMeasuredRowIndex()-(((le=E.range)==null?void 0:le.firstRowIndex)||0),Se=Math.max(0,$e);let Ne=Se===1/0;return(te=E.range)!=null&&te.lastRowIndex&&!Ne&&(Ne=Se>=E.range.lastRowIndex),Ne||w.positions[Se]>=de?Hc(de,w.positions):pue(de,w.positions,Se)},[r,(t=E.range)==null?void 0:t.firstRowIndex,(n=E.range)==null?void 0:n.lastRowIndex,w.positions]),B=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:E.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:de,left:le}=N.current,te=Math.min(D(de),w.positions.length-1),be=o.autoHeight?te+E.rows.length:D(de+T.current.clientHeight);let $e=!1,Se=0,Ne=m.length;const[Re,Fe]=Ql({firstIndex:te,lastIndex:be,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer});for(let Le=Re;Le<Fe&&!$e;Le+=1){const et=E.rows[Le];$e=r.current.unstable_rowHasAutoHeight(et.id)}return $e||(Se=Hc(le,m),Ne=Hc(le+U,m)),{firstRowIndex:te,lastRowIndex:be,firstColumnIndex:Se,lastColumnIndex:Ne}},[a,D,w.positions.length,o.autoHeight,o.rowBuffer,E.rows,m,i.length,r,U]);u.useEffect(()=>{a?I.current.style.transform="translate3d(0px, 0px, 0px)":(T.current.scrollLeft=0,T.current.scrollTop=0)},[a]),u.useEffect(()=>{j(T.current.clientWidth)},[w.currentPageTotalHeight]);const W=u.useCallback(de=>{j(de.width)},[]);De(r,"resize",W);const A=u.useCallback(de=>{const[le,te]=Ql({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:o.rowBuffer}),[be]=Ql({firstIndex:de.firstColumnIndex,lastIndex:de.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),$e=Ib({firstColumnToRender:be,apiRef:r,firstRowToRender:le,lastRowToRender:te,visibleRows:E.rows}),Se=Mf(r.current.state).positions[le],Ne=Ea(r)[$e];I.current.style.transform=`translate3d(${Ne}px, ${Se}px, 0px)`,typeof c=="function"&&c({top:Se,left:Ne})},[r,E.rows,c,f,p,o.columnBuffer,o.rowBuffer]);u.useLayoutEffect(()=>{$&&A($)},[$,A]);const z=u.useCallback(de=>{R(de),O.current=de},[R,O]);u.useEffect(()=>{if(U==null)return;const de=B();z(de);const{top:le,left:te}=N.current,be={top:le,left:te,renderContext:de};r.current.publishEvent("rowsScroll",be)},[r,B,U,z]);const G=de=>{const{scrollTop:le,scrollLeft:te}=de.currentTarget;if(N.current.top=le,N.current.left=te,te<0||le<0||!O.current)return;const be=a?O.current:B(),$e=Math.abs(be.firstRowIndex-O.current.firstRowIndex),Se=Math.abs(be.lastRowIndex-O.current.lastRowIndex),Ne=Math.abs(be.firstColumnIndex-O.current.firstColumnIndex),Re=Math.abs(be.lastColumnIndex-O.current.lastColumnIndex),Fe=$e>=o.rowThreshold||Se>=o.rowThreshold||Ne>=o.columnThreshold||Re>=o.columnThreshold||L.current!==v;r.current.publishEvent("rowsScroll",{top:le,left:te,renderContext:Fe?be:O.current},de),Fe&&(gl.flushSync(()=>{z(be)}),L.current=v)},q=de=>{r.current.publishEvent("virtualScrollerWheel",{},de)},X=de=>{r.current.publishEvent("virtualScrollerTouchMove",{},de)},ie=(de={renderContext:$})=>{const{renderContext:le,minFirstColumn:te=f,maxLastColumn:be=p,availableSpace:$e=U,ignoreAutoHeight:Se,rowIndexOffset:Ne=0}=de;if(!le||$e==null)return null;const Re=a?0:o.rowBuffer,Fe=a?0:o.columnBuffer,[Le,et]=Ql({firstIndex:le.firstRowIndex,lastIndex:le.lastRowIndex,minFirstIndex:0,maxLastIndex:E.rows.length,buffer:Re}),gt=[];if(de.rows)de.rows.forEach(_e=>{gt.push(_e),r.current.unstable_calculateColSpan({rowId:_e.id,minFirstColumn:te,maxLastColumn:be,columns:i})});else{if(!E.range)return null;for(let _e=Le;_e<et;_e+=1){const ne=E.rows[_e];gt.push(ne),r.current.unstable_calculateColSpan({rowId:ne.id,minFirstColumn:te,maxLastColumn:be,columns:i})}}const[nt,tt]=Ql({firstIndex:le.firstColumnIndex,lastIndex:le.lastColumnIndex,minFirstIndex:te,maxLastIndex:be,buffer:Fe}),St=Ib({firstColumnToRender:nt,apiRef:r,firstRowToRender:Le,lastRowToRender:et,visibleRows:E.rows}),dt=i.slice(St,tt),it=[];for(let _e=0;_e<gt.length;_e+=1){var Pt,Qe;const{id:ne,model:ke}=gt[_e],Ee=Le+_e===E.rows.length-1,Te=!r.current.unstable_rowHasAutoHeight(ne)||Se?r.current.unstable_getRowHeight(ne):"auto";let Ke;C[ne]==null?Ke=!1:Ke=r.current.isRowSelectable(ne),it.push(_.jsx(o.components.Row,x({row:ke,rowId:ne,rowHeight:Te,cellFocus:g,cellTabIndex:S,editRowsState:P,renderedColumns:dt,visibleColumns:i,firstColumnToRender:St,lastColumnToRender:tt,selected:Ke,index:Ne+((E==null||(Pt=E.range)==null?void 0:Pt.firstRowIndex)||0)+Le+_e,containerWidth:$e,isLastVisible:Ee},typeof h=="function"?h(ne,ke):{},(Qe=o.componentsProps)==null?void 0:Qe.row),ne))}return it},ee=U&&v>U,se=u.useMemo(()=>{const de=Math.max(w.currentPageTotalHeight,1);let le=!1;T!=null&&T.current&&de<=(T==null?void 0:T.current.clientHeight)&&(le=!0);const te={width:ee?v:"auto",height:de,minHeight:le?"100%":"auto"};return o.autoHeight&&E.rows.length===0&&(te.height=2*b),te},[T,v,w.currentPageTotalHeight,E.rows.length,ee,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,se]),o.autoHeight&&E.rows.length===0&&(se.height=2*b);const ae={};ee||(ae.overflowX="hidden"),o.autoHeight&&(ae.overflowY="hidden");const we=u.useCallback(()=>O.current,[]);return r.current.unstable_getRenderContext=we,{renderContext:$,updateRenderZonePosition:A,getRows:ie,getRootProps:(de={})=>{let{style:le={}}=de,te=oe(de,fue);return x({ref:k,onScroll:G,onWheel:q,onTouchMove:X,style:x({},le,ae)},te)},getContentProps:({style:de={}}={})=>({style:x({},de,se)}),getRenderZoneProps:()=>({ref:I})}},mue=["className","disableVirtualization"],gue=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=oe(t,mue),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:f}=hue({ref:n,disableVirtualization:o});return _.jsx(rue,x({className:r},s(i),{children:_.jsx(lue,x({},a(),{children:_.jsx(due,x({},c(),{children:f()}))}))}))}),vue=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return Ie({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Lt,t)};function yue(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:f,isLastColumn:p,extendRowFullWidth:h}=e,m=Xe(),v=mt(),b=We(v,YO),{hasScrollX:g,hasScrollY:S}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},w=r?b[r]:{},{headerName:P=r!=null?r:"",description:C="",headerAlign:E=void 0}=w;let I;const T=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),k={groupId:r,headerName:P,description:C,depth:i,maxDepth:s,fields:a,colIndex:f,isLastColumn:p};r&&T&&(I=T(k));const R=p?!(p&&g&&!S)&&!h:m.showColumnRightBorder,O=m.showColumnRightBorder,N=x({},e,{classes:m.classes,showRightBorder:R,showColumnBorder:O,headerAlign:E,depth:i,isDragging:!1}),U=P!=null?P:r,j=kn(),L=r===null?`empty-group-cell-${j}`:r,D=vue(N),B=typeof w.headerClassName=="function"?w.headerClassName(k):w.headerClassName;return _.jsx(OO,{classes:D,columnMenuOpen:!1,colIndex:f,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:I,headerClassName:B,description:C,elementId:L,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:U,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const JI=re("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function bue(e){return!!e.target}const wue=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=mt(),c=We(a,ar),f=We(a,Ea),p=We(a,xO),h=We(a,Hm),m=We(a,Kre),v=We(a,yO),b=We(a,YC),g=We(a,ep),S=We(a,Nre),w=We(a,Mre),P=We(a,qO),C=Xe(),E=u.useRef(null),I=xt(t,E),[T,k]=u.useState(null),$=u.useRef(T),R=u.useRef(0),O=Aa(a,C);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const N=u.useRef(fO(zse,{equalityCheck:(ie,ee)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(se=>ie[se]===ee[se])})),U=u.useCallback(ie=>{const[ee,se]=Ql({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:C.rowBuffer}),ae=N.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:C.columnBuffer,firstRowToRender:ee,lastRowToRender:se,apiRef:a,visibleRows:O.rows}),we=ae>0?R.current-f[ae]:R.current;E.current.style.transform=`translate3d(${-we}px, 0px, 0px)`},[f,n,C.columnBuffer,a,O.rows,C.rowBuffer]);u.useLayoutEffect(()=>{T&&U(T)},[T,U]);const j=u.useCallback(({left:ie,renderContext:ee=null},se)=>{var ae,we;if(!E.current||R.current===ie&&((ae=$.current)==null?void 0:ae.firstColumnIndex)===(ee==null?void 0:ee.firstColumnIndex)&&((we=$.current)==null?void 0:we.lastColumnIndex)===(ee==null?void 0:ee.lastColumnIndex))return;R.current=ie;let de=!1;ee!==$.current||!$.current?(bue(se)?(gl.flushSync(()=>{k(ee)}),de=!0):k(ee),$.current=ee):de=!0,ee&&de&&U(ee)},[U]),L=u.useCallback(ie=>s(ie.field),[]),D=u.useCallback(()=>s(""),[]),B=u.useCallback(ie=>o(ie.field),[]),W=u.useCallback(()=>o(""),[]);De(a,"columnResizeStart",L),De(a,"columnResizeStop",D),De(a,"columnHeaderDragStart",B),De(a,"columnHeaderDragEnd",W),De(a,"rowsScroll",j);const A=ie=>{const{renderContext:ee=T,minFirstColumn:se=n,maxLastColumn:ae=c.length}=ie||{};if(!ee)return null;const[we,de]=Ql({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:O.rows.length,buffer:C.rowBuffer}),le=N.current({firstColumnIndex:ee.firstColumnIndex,minColumnIndex:se,columnBuffer:C.columnBuffer,apiRef:a,firstRowToRender:we,lastRowToRender:de,visibleRows:O.rows}),te=Math.min(ee.lastColumnIndex+C.columnBuffer,ae);return{renderedColumns:c.slice(le,te),firstColumnToRender:le,lastColumnToRender:te,minFirstColumn:se,maxLastColumn:ae}},z=(ie,ee={})=>{const se=A(ie);if(se==null)return null;const{renderedColumns:ae,firstColumnToRender:we}=se,de=[];for(let le=0;le<ae.length;le+=1){const te=ae[le],be=we+le,$e=be===0,Se=!(p===null&&h===null),Ne=p!==null&&p.field===te.field||$e&&!Se?0:-1,Re=m!==null&&m.field===te.field,Fe=P.open&&P.field===te.field;de.push(_.jsx(Fie,x({},w[te.field],{columnMenuOpen:Fe,filterItemsCounter:S[te.field]&&S[te.field].length,headerHeight:v,isDragging:te.field===r,column:te,colIndex:be,isResizing:i===te.field,isLastColumn:be===c.length-1,extendRowFullWidth:!C.disableExtendRowFullWidth,hasFocus:Re,tabIndex:Ne},ee),te.field))}return _.jsx(JI,{role:"row","aria-rowindex":b+1,children:de})},G=(ie=[],ee)=>ie.slice(0,ee+1),q=ie=>{if(b===0)return null;const ee=A(ie);if(ee==null)return null;const{renderedColumns:se,firstColumnToRender:ae,lastColumnToRender:we,maxLastColumn:de}=ee,le=[],te=[];for(let dt=0;dt<b;dt+=1){var be,$e,Se;const it=[];let Pt=0,Qe=ae-1;const _e=(be=c[ae])==null||($e=be.groupPath)==null?void 0:$e[dt],ne=G((Se=c[ae])==null?void 0:Se.groupPath,dt);for(;_e!==null&&Qe>=n&&(Ne=c[Qe])!=null&&Ne.groupPath&&gs(G((Re=c[Qe])==null?void 0:Re.groupPath,dt),ne);){var Ne,Re,Fe;const Te=c[Qe];if(Pt+=(Fe=Te.computedWidth)!=null?Fe:0,it.length===0){var Le;it.push({width:(Le=Te.computedWidth)!=null?Le:0,fields:[Te.field],groupId:_e,groupParents:ne,colIndex:Qe})}else{var et;it[0].width+=(et=Te.computedWidth)!=null?et:0,it[0].fields.push(Te.field),it[0].colIndex=Qe}Qe-=1}const ke=se.reduce((Te,Ke,bt)=>{var Nt;const Dt=Te[Te.length-1];if(Ke.groupPath&&Ke.groupPath.length>dt){var Yn;if(Dt&&Dt.groupId===Ke.groupPath[dt]){var dn;return[...Te.slice(0,Te.length-1),x({},Dt,{width:Dt.width+((dn=Ke.computedWidth)!=null?dn:0),fields:[...Dt.fields,Ke.field]})]}return[...Te,{groupId:Ke.groupPath[dt],groupParents:G(Ke.groupPath,dt),width:(Yn=Ke.computedWidth)!=null?Yn:0,fields:[Ke.field],colIndex:ae+bt}]}if(Dt&&Dt.groupId===null&&gs(G(Ke.groupPath,dt),Dt.groupParents)){var Un;return[...Te.slice(0,Te.length-1),x({},Dt,{width:Dt.width+((Un=Ke.computedWidth)!=null?Un:0),fields:[...Dt.fields,Ke.field]})]}return[...Te,{groupId:null,groupParents:G(Ke.groupPath,dt),width:(Nt=Ke.computedWidth)!=null?Nt:0,fields:[Ke.field],colIndex:ae+bt}]},it);Qe=we;const Ee=ke[ke.length-1].groupId;for(;Ee!==null&&Qe<de&&(gt=c[Qe])!=null&&gt.groupPath&&((nt=c[Qe])==null||(tt=nt.groupPath)==null?void 0:tt[dt])===Ee;){var gt,nt,tt,St;const Te=c[Qe];ke[ke.length-1].width+=(St=Te.computedWidth)!=null?St:0,ke[ke.length-1].fields.push(Te.field),Qe+=1}te.push({leftOverflow:Pt,elements:[...ke]})}return te.forEach((dt,it)=>{le.push(_.jsx(JI,{style:{height:`${v}px`,transform:`translateX(-${dt.leftOverflow}px)`},role:"row","aria-rowindex":it+1,children:dt.elements.map(({groupId:Pt,width:Qe,fields:_e,colIndex:ne},ke)=>_.jsx(yue,{groupId:Pt,width:Qe,fields:_e,colIndex:ne,depth:it,isLastColumn:ne===c.length-_e.length,extendRowFullWidth:!C.disableExtendRowFullWidth,maxDepth:te.length,height:v},ke))},it))}),le},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:T,getColumnHeaders:z,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>x({style:X},ie),getInnerProps:()=>({ref:I,role:"rowgroup"})}},Cue=["className"],xue=e=>{const{classes:t}=e;return Ie({root:["columnHeaders"]},Lt,t)},Sue=re("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:`1px solid ${e.palette.mode==="light"?xs(ot(e.palette.divider,1),.88):Cs(ot(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),Eue=u.forwardRef(function(t,n){const{className:r}=t,o=oe(t,Cue),s={classes:Xe().classes},a=xue(s);return _.jsx(Sue,x({ref:n,className:he(r,a.root)},o))}),Pue=["isDragging","className"],kue=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Ie({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Lt,r)},Iue=re("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${Z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${Z.columnHeaderDropZone} .${Z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${Z["columnHeadersInner--scrollable"]} .${Z.columnHeader}:last-child`]:{borderRight:"none"}})),$ue=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=oe(t,Pue),c=mt(),f=Xe(),p={isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1,classes:f.classes},h=kue(p);return _.jsx(Iue,x({ref:n,className:he(s,h.root)},a))}),Tue=["innerRef","className"],Mue=u.forwardRef(function(t,n){const{innerRef:r}=t,o=oe(t,Tue),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:f}=wue({innerRef:r});return _.jsxs(Eue,x({ref:n},s(o),{children:[_.jsx(zI,{scrollDirection:"left"}),_.jsxs($ue,x({isDragging:i},a(),{children:[f(),c()]})),_.jsx(zI,{scrollDirection:"right"})]}))}),aL=u.forwardRef(function(t,n){const r=Zce(t),o=Yce(r);return _.jsx(lae,{apiRef:o,props:r,children:_.jsx(rie,{className:r.className,style:r.style,sx:r.sx,ref:n,children:_.jsxs(Ure,{children:[_.jsx(Gre,{}),_.jsx(jre,{ColumnHeadersComponent:Mue,VirtualScrollerComponent:gue}),_.jsx(Wre,{})]})})})}),ip=u.memo(aL);aL.propTypes={"aria-label":ue.string,"aria-labelledby":ue.string,autoHeight:ue.bool,autoPageSize:ue.bool,cellModesModel:ue.object,checkboxSelection:ue.bool,classes:ue.object,columnBuffer:ue.number,columnGroupingModel:ue.arrayOf(ue.object),columns:v0(ue.array.isRequired),columnThreshold:ue.number,columnTypes:ue.object,columnVisibilityModel:ue.object,components:ue.object,componentsProps:ue.object,density:ue.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ue.bool,disableColumnMenu:ue.bool,disableColumnSelector:ue.bool,disableDensitySelector:ue.bool,disableExtendRowFullWidth:ue.bool,disableIgnoreModificationsIfProcessingProps:ue.bool,disableSelectionOnClick:ue.bool,disableVirtualization:ue.bool,editMode:ue.oneOf(["cell","row"]),editRowsModel:ue.object,error:ue.any,experimentalFeatures:ue.shape({columnGrouping:ue.bool,newEditingApi:ue.bool,preventCommitWhileValidating:ue.bool,warnIfFocusStateIsNotSynced:ue.bool}),filterMode:ue.oneOf(["client","server"]),filterModel:ue.shape({items:ue.arrayOf(ue.shape({columnField:ue.string.isRequired,id:ue.oneOfType([ue.number,ue.string]),operatorValue:ue.string,value:ue.any})).isRequired,linkOperator:ue.oneOf(["and","or"]),quickFilterLogicOperator:ue.oneOf(["and","or"]),quickFilterValues:ue.array}),getCellClassName:ue.func,getDetailPanelContent:ue.func,getEstimatedRowHeight:ue.func,getRowClassName:ue.func,getRowHeight:ue.func,getRowId:ue.func,getRowSpacing:ue.func,headerHeight:ue.number,hideFooter:ue.bool,hideFooterPagination:ue.bool,hideFooterSelectedRowCount:ue.bool,initialState:ue.object,isCellEditable:ue.func,isRowSelectable:ue.func,keepNonExistentRowsSelected:ue.bool,loading:ue.bool,localeText:ue.object,logger:ue.shape({debug:ue.func.isRequired,error:ue.func.isRequired,info:ue.func.isRequired,warn:ue.func.isRequired}),logLevel:ue.oneOf(["debug","error","info","warn",!1]),nonce:ue.string,onCellClick:ue.func,onCellDoubleClick:ue.func,onCellEditCommit:ue.func,onCellEditStart:ue.func,onCellEditStop:ue.func,onCellFocusOut:ue.func,onCellKeyDown:ue.func,onCellModesModelChange:ue.func,onColumnHeaderClick:ue.func,onColumnHeaderDoubleClick:ue.func,onColumnHeaderEnter:ue.func,onColumnHeaderLeave:ue.func,onColumnHeaderOut:ue.func,onColumnHeaderOver:ue.func,onColumnOrderChange:ue.func,onColumnVisibilityChange:ue.func,onColumnVisibilityModelChange:ue.func,onEditCellPropsChange:ue.func,onEditRowsModelChange:ue.func,onError:ue.func,onFilterModelChange:ue.func,onMenuClose:ue.func,onMenuOpen:ue.func,onPageChange:ue.func,onPageSizeChange:ue.func,onPreferencePanelClose:ue.func,onPreferencePanelOpen:ue.func,onProcessRowUpdateError:ue.func,onResize:ue.func,onRowClick:ue.func,onRowDoubleClick:ue.func,onRowEditCommit:ue.func,onRowEditStart:ue.func,onRowEditStop:ue.func,onRowModesModelChange:ue.func,onSelectionModelChange:ue.func,onSortModelChange:ue.func,onStateChange:ue.func,page:ue.number,pageSize:v0(ue.number),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
278
+ `)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.array.isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:v0(ue.oneOfType([ue.number,ue.string,ue.array])),showCellRightBorder:ue.bool,showColumnRightBorder:ue.bool,sortingMode:ue.oneOf(["client","server"]),sortingOrder:ue.arrayOf(ue.oneOf(["asc","desc"])),sortModel:ue.arrayOf(ue.shape({field:ue.string.isRequired,sort:ue.oneOf(["asc","desc"])})),sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};function _ue(){return u.createElement(u.Fragment,{},u.createElement(Oue),u.createElement(Lue))}const Rue=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Oue(){const{data:e,element:t}=Bi("get_status"),{data:n}=dre("get_connection_stats");e&&n&&Object.assign(e,n);const r=cu("md"),o=cu("sm");return t||u.createElement(ht,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:s}),r&&i("https",{label:"HTTPS",render:s}),o&&i("connections"),i("sent",{render:Cu,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:cL}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Jt.get(e,a);if(h===void 0)return null;typeof h=="string"&&Rue.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Jt.capitalize(a.replaceAll("_"," "))),u.createElement(Kg,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Lue(){const{list:e,error:t,props:n}=Pu("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(f=>!r||f.path).map((f,p)=>Ae({id:p},f)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:f,value:p})=>(f.v===6?`[${p}]`:p)+" :"+f.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:f})=>new Date(f).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:f,row:p}){if(!f)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(Oee,{sx:{mr:1}}),p.archive,u.createElement(ht,{ml:2,color:"text.secondary"},f));const h=f==null?void 0:f.lastIndexOf("/");return u.createElement(u.Fragment,{},f.slice(h+1),h>0&&u.createElement(ht,{ml:2,color:"text.secondary"},f.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:f,row:p})=>u.createElement(u.Fragment,{},"IPv"+f,p.secure&&is(RR,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",valueFormatter:({value:f})=>cL(f)},{field:"sent",headerName:"Total",type:"number",valueFormatter:({value:f})=>Cu(f)},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:f}){return u.createElement("div",{},u.createElement(Nn,{icon:Ll,title:"Disconnect",onClick:()=>Bt("disconnect",Jt.pick(f,["ip","port"]))}),u.createElement(Nn,{icon:See,title:"Block IP",disabled:f.ip===(n==null?void 0:n.you),onClick:()=>Aue(f.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(ht,{display:"flex",alignItems:"center"},u.createElement(xu,{fullWidth:!1,value:r,onChange:o,options:{"Show only downloads":!0,"Show all connections":!1}}),u.createElement(ht,{flex:1}),u.createElement(Nn,{title:i?"Resume":"Pause",icon:i?EC:Gee,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Wi,{severity:"error"},t):u.createElement(ip,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function Aue(e){return Wne("block",t=>[...t,{ip:e}])}function cL(e){return e?Cu(e*1e3,{post:"B/s",k:1e3,digits:1}):""}const uL=Ree,dL=Bee;function Fue({id2node:e}){const{vfs:t,selectedFiles:n}=Al(),[r,o]=u.useState(n.map(p=>p.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef();if(!t)return null;return u.createElement(KR,{ref:a,expanded:i,selected:r,multiSelect:!0,sx:{overflowX:"auto",maxWidth:a.current&&`calc(100vw - ${16+a.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(p,h){o(h),wn.selectedFiles=lu(h.map(m=>e.get(m)))}},f(t));function c(p){return p!==void 0&&p!==!0}function f(p){var S,w;let{id:h,name:m,source:v,isRoot:b}=p;if(!h)debugger;const g=p.type==="folder";return g&&!eO(v)&&v===m&&(v="./"+v),u.createElement(yb,{label:u.createElement(ht,{sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},b?is(Dee,"home, or root if you like"):g?is(uL,"Folder"):is(dL,"File"),c(p.can_see)&&is(Xee,"Restrictions on who can see"),c(p.can_read)&&is(RR,"Restrictions on who can download"),p.default&&is(nte,"Act as website"),p.masks&&is(Zee,"Masks"),b?"Home":(v==null?void 0:v.length)<45&&(v!=null&&v.endsWith(m))?u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},v.slice(0,-m.length)),u.createElement("span",{},v.slice(-m.length))):u.createElement(ht,{lineHeight:"1.1em"},m)),key:m,collapseIcon:u.createElement(Mee,{onClick(P){s(i.filter(C=>C!==h)),P.preventDefault(),P.stopPropagation()}}),expandIcon:u.createElement(kee,{onClick(P){s([...i,h]),P.preventDefault(),P.stopPropagation()}}),nodeId:h},b&&!((S=p.children)!=null&&S.length)?u.createElement(yb,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(w=p.children)==null?void 0:w.map(f))}}var ZI=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Nue(e,t){return!!(e===t||ZI(e)&&ZI(t))}function Due(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Nue(e[n],t[n]))return!1;return!0}function j0(e,t){t===void 0&&(t=Due);var n,r=[],o,i=!1;function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}return s}var Bue=typeof performance=="object"&&typeof performance.now=="function",e$=Bue?function(){return performance.now()}:function(){return Date.now()};function t$(e){cancelAnimationFrame(e.id)}function zue(e,t){var n=e$();function r(){e$()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var uc=null;function n$(e){if(e===void 0&&(e=!1),uc===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?uc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?uc="negative":uc="positive-ascending"),document.body.removeChild(t),uc}return uc}var Hue=150,jue=function(t,n){return t};function Vue(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){dC(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,rb(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:rb(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=j0(function(S,w,P,C){return g.props.onItemsRendered({overscanStartIndex:S,overscanStopIndex:w,visibleStartIndex:P,visibleStopIndex:C})}),g._callOnScroll=void 0,g._callOnScroll=j0(function(S,w,P){return g.props.onScroll({scrollDirection:S,scrollOffset:w,scrollUpdateWasRequested:P})}),g._getItemStyle=void 0,g._getItemStyle=function(S){var w=g.props,P=w.direction,C=w.itemSize,E=w.layout,I=g._getItemStyleCache(f&&C,f&&E,f&&P),T;if(I.hasOwnProperty(S))T=I[S];else{var k=n(g.props,S,g._instanceProps),$=o(g.props,S,g._instanceProps),R=P==="horizontal"||E==="horizontal",O=P==="rtl",N=R?k:0;I[S]=T={position:"absolute",left:O?void 0:N,right:O?N:void 0,top:R?0:k,height:R?"100%":$,width:R?$:"100%"}}return T},g._getItemStyleCache=void 0,g._getItemStyleCache=j0(function(S,w,P){return{}}),g._onScrollHorizontal=function(S){var w=S.currentTarget,P=w.clientWidth,C=w.scrollLeft,E=w.scrollWidth;g.setState(function(I){if(I.scrollOffset===C)return null;var T=g.props.direction,k=C;if(T==="rtl")switch(n$()){case"negative":k=-C;break;case"positive-descending":k=E-P-C;break}return k=Math.max(0,Math.min(k,E-P)),{isScrolling:!0,scrollDirection:I.scrollOffset<C?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(S){var w=S.currentTarget,P=w.clientHeight,C=w.scrollHeight,E=w.scrollTop;g.setState(function(I){if(I.scrollOffset===E)return null;var T=Math.max(0,Math.min(E,C-P));return{isScrolling:!0,scrollDirection:I.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(S){var w=g.props.outerRef;g._outerRef=S,typeof w=="function"?w(S):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=S)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&t$(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=zue(g._resetIsScrolling,Hue)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,S){return Uue(g,S),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(S){return S.scrollOffset===g?null:{scrollDirection:S.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,S){S===void 0&&(S="auto");var w=this.props.itemCount,P=this.state.scrollOffset;g=Math.max(0,Math.min(g,w-1)),this.scrollTo(i(this.props,g,S,P,this._instanceProps))},v.componentDidMount=function(){var g=this.props,S=g.direction,w=g.initialScrollOffset,P=g.layout;if(typeof w=="number"&&this._outerRef!=null){var C=this._outerRef;S==="horizontal"||P==="horizontal"?C.scrollLeft=w:C.scrollTop=w}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,S=g.direction,w=g.layout,P=this.state,C=P.scrollOffset,E=P.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var I=this._outerRef;if(S==="horizontal"||w==="horizontal")if(S==="rtl")switch(n$()){case"negative":I.scrollLeft=-C;break;case"positive-ascending":I.scrollLeft=C;break;default:var T=I.clientWidth,k=I.scrollWidth;I.scrollLeft=k-T-C;break}else I.scrollLeft=C;else I.scrollTop=C}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&t$(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,S=g.children,w=g.className,P=g.direction,C=g.height,E=g.innerRef,I=g.innerElementType,T=g.innerTagName,k=g.itemCount,$=g.itemData,R=g.itemKey,O=R===void 0?jue:R,N=g.layout,U=g.outerElementType,j=g.outerTagName,L=g.style,D=g.useIsScrolling,B=g.width,W=this.state.isScrolling,A=P==="horizontal"||N==="horizontal",z=A?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),q=G[0],X=G[1],ie=[];if(k>0)for(var ee=q;ee<=X;ee++)ie.push(u.createElement(S,{data:$,key:O(ee,$),index:ee,isScrolling:D?W:void 0,style:this._getItemStyle(ee)}));var se=r(this.props,this._instanceProps);return u.createElement(U||j||"div",{className:w,onScroll:z,ref:this._outerRefSetter,style:x({position:"relative",height:C,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},L)},u.createElement(I||T||"div",{children:ie,ref:E,style:{height:A?"100%":se,pointerEvents:W?"none":void 0,width:A?se:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var S=this._getRangeToRender(),w=S[0],P=S[1],C=S[2],E=S[3];this._callOnItemsRendered(w,P,C,E)}}if(typeof this.props.onScroll=="function"){var I=this.state,T=I.scrollDirection,k=I.scrollOffset,$=I.scrollUpdateWasRequested;this._callOnScroll(T,k,$)}},v._getRangeToRender=function(){var g=this.props,S=g.itemCount,w=g.overscanCount,P=this.state,C=P.isScrolling,E=P.scrollDirection,I=P.scrollOffset;if(S===0)return[0,0,0,0];var T=s(this.props,I,this._instanceProps),k=a(this.props,T,I,this._instanceProps),$=!C||E==="backward"?Math.max(1,w):1,R=!C||E==="forward"?Math.max(1,w):1;return[Math.max(0,T-$),Math.max(0,Math.min(S-1,k+R)),T,k]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Uue=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},Wue=Vue({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){var i=t.direction,s=t.height,a=t.itemCount,c=t.itemSize,f=t.layout,p=t.width,h=i==="horizontal"||f==="horizontal",m=h?p:s,v=Math.max(0,a*c-m),b=Math.min(v,n*c),g=Math.max(0,n*c-m+c);switch(r==="smart"&&(o>=g-m&&o<=b+m?r="auto":r="center"),r){case"start":return b;case"end":return g;case"center":{var S=Math.round(g+(b-g)/2);return S<Math.ceil(m/2)?0:S>v+Math.floor(m/2)?v:S}case"auto":default:return o>=g&&o<=b?o:o<g?g:b}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,f=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?f:i,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function fL({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,f]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Bt("resolve_path",{path:i,closestFolder:!0}).then(U=>{typeof U.path=="string"&&(a(U.path),p.current=U.path[1]===":")}).finally(()=>f(!0))},[i]);const{list:h,error:m,loading:v}=Pu(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),w("")},[s]);const[b,g]=u.useState([]),[S,w]=u.useState(""),P=u.useMemo(()=>Jt.debounce(U=>w(U)),[]),C=u.useMemo(()=>{const U=new RegExp(Jt.escapeRegExp(S),"i");return j=>U.test(j)},[S]),[E,I]=u.useState(0),T=u.useMemo(()=>h.filter(U=>C(U.n)),[h,C]);if(v)return ZR();const k=p.current?"":"/",$=p.current?"\\":"/",R=jte($,s),O=s.length<2;return u.createElement(u.Fragment,{},u.createElement(ht,{display:"flex",gap:1},u.createElement(vr,{title:"root",disabled:O,onClick(){a(k)}},u.createElement(tte)),u.createElement(vr,{disabled:O,title:"parent folder",onClick(){const U=/[\\/]$/.test(s)?s.slice(0,-1):s,j=eO(U)?k:U.slice(0,U.lastIndexOf($)||1);a(j)}},u.createElement(xee)),u.createElement(Fo,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(U){return pt(this,null,function*(){if(!U)return a(k);const j=yield Bt("resolve_path",{path:U});a(j.path)})}})),m?u.createElement(Wi,{severity:"error"},tO(m)):u.createElement(u.Fragment,{},u.createElement(ht,{ref(U){if(!U)return;const j=(U==null?void 0:U.clientHeight)-1;j-E>1&&I(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(Wue,{width:"100%",height:E,itemSize:46,itemCount:T.length,overscanCount:5,children({index:U,style:j}){const L=T[U],D=L.k==="d";return u.createElement(sr,{style:Ht(Ae({},j),{padding:0}),key:L.n,onClick(){D?a(R+L.n):e([R+L.n])}},t&&u.createElement(rR,{checked:b.includes(L.n),disabled:!r&&D,onClick(B){const W=L.n,A=b.filter(z=>z!==W);g(A.length<b.length?A:[...b,W]),B.stopPropagation()}}),u.createElement(wR,{},u.createElement(L.k?uL:dL)),u.createElement(nv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},L.n),!D&&L.s!==void 0&&u.createElement(gr,{variant:"body2",color:"text.secondary",ml:4,mr:1},Cu(L.s)))}}):u.createElement(NC,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(ht,{display:"flex",gap:1},(t||r||!n)&&u.createElement(vr,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(U=>R+U):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(Kf,{value:S,label:`Filter results (${T.length}${T.length<h.length?"/"+h.length:""})`,onChange(U){P(U.target.value)},sx:{flex:1}}))))}function Gm(c){var f=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=f,a=an(f,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=cu("md");return u.createElement(Fo,Ht(Ae({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(Rm,{position:"end"},u.createElement(Nn,{icon:Tee,title:"Browse files...",edge:"end",onClick(){const h=hi({title:s!=null?s:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!p,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(fL,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return pt(this,null,function*(){var S;let b=v==null?void 0:v[0];if(!b)return;const g=(S=yield Bt("get_cwd"))==null?void 0:S.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}function oa(e){typeof e!="string"&&(e=e[0]);const t=/([`*/_])(.+)\1|(\n)/g,n=[];let r=0,o;for(;o=t.exec(e);){if(n.push(e.slice(r,o.index)),o[3])n.push(u.createElement("br"));else{const i={"`":"code","*":"b","/":"i",_:"u"}[o[1]];if(!i)throw Error("should never happen");n.push(u.createElement(i,{},o[2]))}r=o.index+o[0].length}return u.createElement(u.Fragment,{},...n,e.slice(r,1/0))}function Gue(){var w,P,C;const e=" — ",{username:t}=Al(),{data:n,reload:r,element:o}=Bi("get_status"),{data:i}=Bi("get_vfs"),[s]=Xf(t&&"get_account"),{data:a,reload:c}=Bi("get_config",{only:["https_port","cert","private_key","proxies","ignore_proxies"]}),{list:f}=Pu("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,b=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=VR(n,I=>I.busy?[`port ${I.port} already used by ${I.busy}${e}choose a `,Th("different port"),` or stop ${I.busy}`]:I.error),S=g&&lu(Object.entries(g).map(([I,T])=>T&&[oa(`Protocol _${I}_ cannot work: `),T,(sx(T)||lx(T))&&[e,u.createElement(bf,{sx:{cursor:"pointer"},onClick(){ax().then(c).then(r)}},"make one")," or ",e,Th("provide adequate files")]]));return u.createElement(ht,{display:"flex",gap:2,flexDirection:"column"},t&&xi("","Welcome "+t),S.length?Lm(S.map(I=>xi("error",Lm(I)))):xi("success","Server is working"),i?!((P=(w=i.root)==null?void 0:w.children)!=null&&P.length)&&!((C=i.root)!=null&&C.source)?xi("warning","You have no files shared",e,Kue("add some")):xi("",oa("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(bf,{target:"frontend",href:"/"},"Frontend",u.createElement(zee,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(zX),!b&&xi("warning","Frontend unreachable: ",["http","https"].map(I=>I+" "+(g[I]?"is in error":"is off")).join(", "),!S.length&&[e,Th("switch http or https on")]),f.find(I=>I.badApi)&&xi("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&xi("",oa("On _localhost_ you don't need to login"),e,u.createElement(FC,{to:"accounts"},"to access from another computer create an account with /admin/ permission")),pL(a,n)&&xi("warning","A proxy was detected but none is configured",e,Th("set the number of proxies"),e,"unless you are sure you can ",u.createElement(vr,{onClick(){return pt(this,null,function*(){(yield pl("Go on only if you know what you are doing"))&&(yield Bt("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning")),n.frpDetected&&xi("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',u.createElement("ol",{},u.createElement("li",{},"configure FRP with type=http (best solution)"),u.createElement("li",{},oa("configure FRP to connect to HFS _not_ with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))))}function xi(e,...t){return u.createElement(ht,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:Pee,info:wf,"":wf,warning:LR,error:SC}[e],{sx:{mb:"-3px",mr:1}}),...t)}function Kue(e="File System page"){return u.createElement(FC,{to:"fs"},e)}function Th(e="Configuration page"){return u.createElement(FC,{to:"configuration"},e)}function pL(e,t){return e&&!e.proxies&&!e.ignore_proxies&&(t==null?void 0:t.proxyDetected)}let hl,_b;const hL=qf({changes:{}});MC(wn,"config",mL);const Km={log:"Access log file",error_log:"Access error log file"};function que(){var m;const{data:e,reload:t,element:n}=Bi("get_config",{omit:["vfs"]});let r=Al();const{changes:o}=sv(hL),i=Bi(e&&"get_status"),s=i.data,a=_b=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>_b=void 0,[]);const c=(m=Xf("get_admins")[0])==null?void 0:m.list;if(n)return n;if(i.error)return i.element;const f=hl!==e?wn.config=hl=e:r.config,p={comp:Gs,min:1,placeholder:"no limit"};return u.createElement(Yf,{sx:{maxWidth:"60em"},values:f,set(v,b){wn.config[b]=v},stickyBar:!0,onError:yr,save:{onClick:h,sx:AC(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(vr,{onClick(){t(),a()},startIcon:u.createElement(iv)},"Reload")],defaults({comp:v}){return v===V0?{sm:6,md:3}:v===Gs?{sm:3}:{sm:6}},fields:[{k:"port",comp:V0,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:V0,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(v){return v>=0&&f.https_port<0&&!f.cert&&Xue(),v}},Ht(Ae({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Ht(Ae({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),f.https_port>=0&&Ae({k:"cert",comp:Gm,label:"HTTPS certificate file"},r$(s==null?void 0:s.https.error,v=>sx(v)?{error:!0,helperText:[v," - ",u.createElement(bf,{key:"fix",sx:{cursor:"pointer"},onClick:ax},"make one")]}:null)),f.https_port>=0&&Ae({k:"private_key",comp:Gm,label:"HTTPS private key file"},r$(s==null?void 0:s.https.error,v=>lx(v)?{error:!0,helperText:v}:null)),{k:"open_browser_at_start",comp:au},{k:"localhost_admin",comp:au,label:"Admin access for localhost connections",getError:v=>!v&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"To access Admin without entering credentials"},{k:"log",label:Km.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Km.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:xu,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To avoid an endlessly-growing single log file, you can opt for rotation"},{k:"proxies",comp:Gs,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:pL(f,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:Yue},{k:"delete_unfinished_uploads_after",comp:Gs,sm:6,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Gs,sm:6,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"zip_calculate_size_for_seconds",comp:Gs,sm:12,md:6,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"custom_header",multiline:!0,sm:12,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Any HTML code here will be displayed on top of the Frontend"},{k:"mime",comp:kne,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:v=>v.split(`
279
+ `).map(b=>b.trim()).filter(Boolean).map(b=>({ip:b})),toField:v=>Array.isArray(v)?v.map(b=>b==null?void 0:b.ip).filter(Boolean).join(`
280
+ `):""}]});function h(){return pt(this,null,function*(){if(Jt.isEmpty(o))return ms("Nothing to save");const v=window.location,b=v.protocol==="http:"?o.port:o.https_port;if(!(b<=0&&!(yield pl("You are switching off the server port and you will be disconnected")))&&!(b>0&&!(yield pl("You are changing the port and you may be disconnected")))&&!(v.protocol==="https:"&&("cert"in o||"private_key"in o)&&!(yield pl("You may disrupt https service, kicking you out")))){if(yield Bt("set_config",{values:o}),b>0)return yield yr("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=v.protocol+"//"+v.hostname+":"+b+v.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(hl,o),mL(),ms("Changes applied","success")}})}}function mL(){const e={};if(wn.config)for(const[t,n]of Object.entries(wn.config))JSON.stringify(n)!==JSON.stringify(hl==null?void 0:hl[t])&&(e[t]=n);hL.changes=e}function sx(e){return/certificate/.test(e)}function lx(e){return/private key/.test(e)}function V0({label:e,value:t,onChange:n,getApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const f=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(sx(p)||lx(p)?p=void 0:s=!0),u.createElement(ht,{},u.createElement(ht,{display:"flex"},u.createElement(xu,{sx:{flexGrow:1},label:e,error:s,value:f,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Gs,{label:"Number",fullWidth:!1,value:t,onChange:n,getApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(ev,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function Yue({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(ht,{display:"flex"},u.createElement(xu,{label:e,value:o?t:i,options:{"allow all":"","forbid all":"-","allow some":i},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(Fo,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:"Masks supported"}))}function Xue(){hi({Content:()=>u.createElement(ht,{},u.createElement(ht,{display:"flex",gap:1},u.createElement(wf),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(ht,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(vr,{variant:"contained",onClick(){fi(),ax().then()}},"Help me!"),u.createElement(vr,{onClick:fi},"I will handle the matter myself")))})}function ax(){return pt(this,null,function*(){if(!window.crypto.subtle)return yr("Retry this procedure on localhost","warning");const e=yield Cf({fields:[u.createElement(ht,{display:"flex",gap:1},u.createElement(wf),"We'll generate a basic certificate for you"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"}});if(!e)return;const t=Une();try{const n=yield Bt("save_pem",yield Que(e));yield Bt("set_config",{values:n}),hl&&Object.assign(hl,n),setTimeout(_b,1e3),Object.assign(wn.config,n),yield yr("Certificate saved","success")}finally{t()}})}function Que(e){return pt(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}function r$(e,t){return t(e)}function Jue(){const e=hi({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=gL();return u.createElement(u.Fragment,{},u.createElement(ht,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added to virtual path "+(t||"(home)")),u.createElement(fL,{onSelect(r){return pt(this,null,function*(){const o=lu(yield Promise.all(r.map(i=>Bt("add_vfs",{under:t,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield yr(u.createElement(ht,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),fu(),e()})}}))}})}function Zue(){return pt(this,null,function*(){try{const e=yield Vne("Enter folder name");if(!e)return;const t=gL();yield Bt("add_vfs",{under:t,name:e}),fu([(t||"")+"/"+e]),yield yr(`Folder "${e}" created`,"success")}catch(e){yield yr(e)}})}function gL(){let e=wn.selectedFiles[0];if(!e)return"";e.type!=="folder"&&(e=e.parent);const{id:t}=e;return t==="/"?"":t}function vL(n){var r=n,{items:e}=r,t=an(r,["items"]);const[o,i]=Lo.useState(),s=Boolean(o),a=u.useCallback(()=>i(void 0),[]);return u.createElement(Lo.Fragment,{},u.createElement(vr,Ae({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(xR,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,f)=>u.createElement(sr,Ht(Ae({key:f},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function ede(){return u.createElement(ht,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(vL,{variant:"contained",startIcon:u.createElement(xC),items:[{children:"from disk",onClick:Jue},{children:"virtual folder",onClick:Zue}]},"Add"),u.createElement(Nn,{icon:iv,title:"Reload",onClick(){fu()}}))}const cx=Symbol.for("yaml.alias"),Rb=Symbol.for("yaml.document"),ml=Symbol.for("yaml.map"),yL=Symbol.for("yaml.pair"),Es=Symbol.for("yaml.scalar"),$u=Symbol.for("yaml.seq"),Wo=Symbol.for("yaml.node.type"),Fa=e=>!!e&&typeof e=="object"&&e[Wo]===cx,sp=e=>!!e&&typeof e=="object"&&e[Wo]===Rb,Na=e=>!!e&&typeof e=="object"&&e[Wo]===ml,xn=e=>!!e&&typeof e=="object"&&e[Wo]===yL,un=e=>!!e&&typeof e=="object"&&e[Wo]===Es,Tu=e=>!!e&&typeof e=="object"&&e[Wo]===$u;function Pn(e){if(e&&typeof e=="object")switch(e[Wo]){case ml:case $u:return!0}return!1}function Dn(e){if(e&&typeof e=="object")switch(e[Wo]){case cx:case ml:case Es:case $u:return!0}return!1}const tde=e=>(un(e)||Pn(e))&&!!e.anchor;class ux{constructor(t){Object.defineProperty(this,Wo,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Hr=Symbol("break visit"),bL=Symbol("skip children"),zi=Symbol("remove node");function kl(e,t){const n=wL(t);sp(e)?Tc(null,e.contents,n,Object.freeze([e]))===zi&&(e.contents=null):Tc(null,e,n,Object.freeze([]))}kl.BREAK=Hr;kl.SKIP=bL;kl.REMOVE=zi;function Tc(e,t,n,r){const o=CL(e,t,n,r);if(Dn(o)||xn(o))return xL(e,r,o),Tc(e,o,n,r);if(typeof o!="symbol"){if(Pn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Tc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Hr)return Hr;s===zi&&(t.items.splice(i,1),i-=1)}}}else if(xn(t)){r=Object.freeze(r.concat(t));const i=Tc("key",t.key,n,r);if(i===Hr)return Hr;i===zi&&(t.key=null);const s=Tc("value",t.value,n,r);if(s===Hr)return Hr;s===zi&&(t.value=null)}}return o}function bv(e,t){return pt(this,null,function*(){const n=wL(t);sp(e)?(yield Mc(null,e.contents,n,Object.freeze([e])))===zi&&(e.contents=null):yield Mc(null,e,n,Object.freeze([]))})}bv.BREAK=Hr;bv.SKIP=bL;bv.REMOVE=zi;function Mc(e,t,n,r){return pt(this,null,function*(){const o=yield CL(e,t,n,r);if(Dn(o)||xn(o))return xL(e,r,o),Mc(e,o,n,r);if(typeof o!="symbol"){if(Pn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Mc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Hr)return Hr;s===zi&&(t.items.splice(i,1),i-=1)}}}else if(xn(t)){r=Object.freeze(r.concat(t));const i=yield Mc("key",t.key,n,r);if(i===Hr)return Hr;i===zi&&(t.key=null);const s=yield Mc("value",t.value,n,r);if(s===Hr)return Hr;s===zi&&(t.value=null)}}return o})}function wL(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 CL(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(Na(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Tu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(xn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(un(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(Fa(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function xL(e,t,n){const r=t[t.length-1];if(Pn(r))r.items[e]=n;else if(xn(r))e==="key"?r.key=n:r.value=n;else if(sp(r))r.contents=n;else{const o=Fa(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const nde={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},rde=e=>e.replace(/[!,[\]{}]/g,t=>nde[t]);class Ir{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ir.defaultYaml,t),this.tags=Object.assign({},Ir.defaultTags,n)}clone(){const t=new Ir(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Ir(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ir.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ir.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Ir.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ir.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+rde(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&Dn(t.contents)){const i={};kl(t.contents,(s,a)=>{Dn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
281
+ `)}}Ir.defaultYaml={explicit:!1,version:"1.2"};Ir.defaultTags={"!!":"tag:yaml.org,2002:"};function SL(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 EL(e){const t=new Set;return kl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function PL(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function ode(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=EL(e));const s=PL(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(un(s.node)||Pn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}class wv extends ux{constructor(t){super(cx),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return kl(t,{Node:(r,o)=>{if(o===this)return kl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}const a=r.get(s);if(!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Zh(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(SL(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function Zh(e,t,n){if(Fa(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Pn(t)){let r=0;for(const o of t.items){const i=Zh(e,o,n);i>r&&(r=i)}return r}else if(xn(t)){const r=Zh(e,t.key,n),o=Zh(e,t.value,n);return Math.max(r,o)}return 1}function Hi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Hi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!tde(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}const kL=e=>!e||typeof e!="function"&&typeof e!="object";class Ct extends ux{constructor(t){super(Es),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Hi(this.value,t,n)}toString(){return String(this.value)}}Ct.BLOCK_FOLDED="BLOCK_FOLDED";Ct.BLOCK_LITERAL="BLOCK_LITERAL";Ct.PLAIN="PLAIN";Ct.QUOTE_DOUBLE="QUOTE_DOUBLE";Ct.QUOTE_SINGLE="QUOTE_SINGLE";const ide="tag:yaml.org,2002:";function sde(e,t,n){var r;if(t){const o=n.filter(s=>s.tag===t),i=(r=o.find(s=>!s.format))!=null?r:o[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(o=>{var i;return((i=o.identify)==null?void 0:i.call(o,e))&&!o.format})}function _f(e,t,n){var h,m;if(sp(e)&&(e=e.contents),Dn(e))return e;if(xn(e)){const v=(m=(h=n.schema[ml]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt=="function"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new wv(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=ide+t.slice(2));let f=sde(e,t,s.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Ct(e);return c&&(c.node=v),v}f=e instanceof Map?s[ml]:Symbol.iterator in Object(e)?s[$u]:s[ml]}i&&(i(f),delete n.onTagObj);const p=f!=null&&f.createNode?f.createNode(n.schema,e,n):new Ct(e);return t&&(p.tag=t),c&&(c.node=p),p}function qm(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return _f(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 Sd=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Cv extends ux{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=>Dn(r)||xn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Sd(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Pn(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,qm(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(Pn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&un(i)?i.value:i:Pn(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!xn(n))return!1;const r=n.value;return r==null||t&&un(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return Pn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if(Pn(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,qm(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Cv.maxFlowStringSingleLineLength=60;const lde=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function fs(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const nl=(e,t,n)=>e.endsWith(`
282
+ `)?fs(n,t):n.includes(`
283
+ `)?`
284
+ `+fs(n,t):(e.endsWith(" ")?"":" ")+n,IL="flow",Ob="block",em="quoted";function xv(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const f=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?f.push(0):h=o-r);let m,v,b=!1,g=-1,S=-1,w=-1;n===Ob&&(g=o$(e,g),g!==-1&&(h=g+c));for(let C;C=e[g+=1];){if(n===em&&C==="\\"){switch(S=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}w=g}if(C===`
285
+ `)n===Ob&&(g=o$(e,g)),h=g+c,m=void 0;else{if(C===" "&&v&&v!==" "&&v!==`
286
+ `&&v!==" "){const E=e[g+1];E&&E!==" "&&E!==`
287
+ `&&E!==" "&&(m=g)}if(g>=h)if(m)f.push(m),h=m+c,m=void 0;else if(n===em){for(;v===" "||v===" ";)v=C,C=e[g+=1],b=!0;const E=g>w+1?g-2:S-1;if(p[E])return e;f.push(E),p[E]=!0,h=E+c,m=void 0}else b=!0}v=C}if(b&&a&&a(),f.length===0)return e;s&&s();let P=e.slice(0,f[0]);for(let C=0;C<f.length;++C){const E=f[C],I=f[C+1]||e.length;E===0?P=`
288
+ ${t}${e.slice(0,I)}`:(n===em&&p[E]&&(P+=`${e[E]}\\`),P+=`
289
+ ${t}${e.slice(E+1,I)}`)}return P}function o$(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
290
+ `);n=e[t+1]}return t}const Sv=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Ev=e=>/^(%|---|\.\.\.)/m.test(e);function ade(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,s=0;i<o;++i)if(e[i]===`
291
+ `){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function Vd(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Ev(e)?" ":"");let s="",a=0;for(let c=0,f=n[c];f;f=n[++c])if(f===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,f="\\"),f==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
292
+
293
+ `;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
294
+ `,c+=2;s+=i,n[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+n.slice(a):n,r?s:xv(s,i,em,Sv(t))}function Lb(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
295
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Vd(e,t);const n=t.indent||(Ev(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
296
+ ${n}`)+"'";return t.implicitKey?r:xv(r,n,IL,Sv(t))}function Ud(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Vd;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=Lb:i&&!o?r=Vd:r=n?Lb:Vd}return r(e,t)}function tm({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Ud(n,r);const f=r.indent||(r.forceBlockIndent||Ev(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Ct.BLOCK_FOLDED?!1:t===Ct.BLOCK_LITERAL?!0:!ade(n,c,f.length);if(!n)return p?`|
297
+ `:`>
298
+ `;let h,m;for(m=n.length;m>0;--m){const T=n[m-1];if(T!==`
299
+ `&&T!==" "&&T!==" ")break}let v=n.substring(m);const b=v.indexOf(`
300
+ `);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
301
+ `&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${f}`));let g=!1,S,w=-1;for(S=0;S<n.length;++S){const T=n[S];if(T===" ")g=!0;else if(T===`
302
+ `)w=S;else break}let P=n.substring(0,w<S?w+1:S);P&&(n=n.substring(P.length),P=P.replace(/\n+/g,`$&${f}`));let E=(p?"|":">")+(g?f?"2":"1":"")+h;if(e&&(E+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${f}`),`${E}
303
+ ${f}${P}${n}${v}`;n=n.replace(/\n+/g,`
304
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);const I=xv(`${P}${n}${v}`,f,Ob,Sv(r));return`${E}
305
+ ${f}${I}`}function cde(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,inFlow:f}=t;if(a&&/[\n[\]{},]/.test(i)||f&&/[[\]{},]/.test(i))return Ud(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||f||!i.includes(`
306
+ `)?Ud(i,t):tm(e,t,n,r);if(!a&&!f&&o!==Ct.PLAIN&&i.includes(`
307
+ `))return tm(e,t,n,r);if(c===""&&Ev(i))return t.forceBlockIndent=!0,tm(e,t,n,r);const p=i.replace(/\n+/g,`$&
308
+ ${c}`);if(s){const h=b=>{var g;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((g=b.test)==null?void 0:g.test(p))},{compat:m,tags:v}=t.doc.schema;if(v.some(h)||m!=null&&m.some(h))return Ud(i,t)}return a?p:xv(p,c,IL,Sv(t))}function lp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Ct.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Ct.QUOTE_DOUBLE);const c=p=>{switch(p){case Ct.BLOCK_FOLDED:case Ct.BLOCK_LITERAL:return o||i?Ud(s.value,t):tm(s,t,n,r);case Ct.QUOTE_DOUBLE:return Vd(s.value,t);case Ct.QUOTE_SINGLE:return Lb(s.value,t);case Ct.PLAIN:return cde(s,t,n,r);default:return null}};let f=c(a);if(f===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(f=c(m),f===null)throw new Error(`Unsupported default string type ${m}`)}return f}function $L(e,t){const n=Object.assign({blockQuote:!0,commentString:lde,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",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,indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function ude(e,t){var o,i,s,a;if(t.tag){const c=e.filter(f=>f.tag===t.tag);if(c.length>0)return(o=c.find(f=>f.format===t.format))!=null?o:c[0]}let n,r;if(un(t)){r=t.value;const c=e.filter(f=>{var p;return(p=f.identify)==null?void 0:p.call(f,r)});n=(i=c.find(f=>f.format===t.format))!=null?i:c.find(f=>!f.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function dde(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(un(e)||Pn(e))&&e.anchor;i&&SL(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}function ka(e,t,n,r){var c,f;if(xn(e))return e.toString(t,n,r);if(Fa(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=Dn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=ude(t.doc.schema.tags,i));const s=dde(i,o,t);s.length>0&&(t.indentAtStart=((f=t.indentAtStart)!=null?f:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):un(i)?lp(i,t,n,r):i.toString(t,n,r);return s?un(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
309
+ ${t.indent}${a}`:a}function fde({key:e,value:t},n,r,o){const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:f,indentSeq:p,simpleKeys:h}}=n;let m=Dn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Pn(e)){const T="With simple keys, collection cannot be used as a key value";throw new Error(T)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||Pn(e)||(un(e)?e.type===Ct.BLOCK_FOLDED||e.type===Ct.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,S=ka(e,n,()=>b=!0,()=>g=!0);if(!v&&!n.inFlow&&S.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),S===""?"?":v?`? ${S}`:S}else if(i&&!h||t==null&&v)return S=`? ${S}`,m&&!b?S+=nl(S,n.indent,f(m)):g&&o&&o(),S;b&&(m=null),v?(m&&(S+=nl(S,n.indent,f(m))),S=`? ${S}
310
+ ${a}:`):(S=`${S}:`,m&&(S+=nl(S,n.indent,f(m))));let w="",P=null;if(Dn(t)){if(t.spaceBefore&&(w=`
311
+ `),t.commentBefore){const T=f(t.commentBefore);w+=`
312
+ ${fs(T,n.indent)}`}P=t.comment}else t&&typeof t=="object"&&(t=s.createNode(t));n.implicitKey=!1,!v&&!m&&un(t)&&(n.indentAtStart=S.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Tu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substr(2));let C=!1;const E=ka(t,n,()=>C=!0,()=>g=!0);let I=" ";return w||m?E===""&&!n.inFlow?I=w===`
313
+ `?`
314
+
315
+ `:w:I=`${w}
316
+ ${n.indent}`:!v&&Pn(t)?(!(E[0]==="["||E[0]==="{")||E.includes(`
317
+ `))&&(I=`
318
+ ${n.indent}`):(E===""||E[0]===`
319
+ `)&&(I=""),S+=I+E,n.inFlow?C&&r&&r():P&&!C?S+=nl(S,n.indent,f(P)):g&&o&&o(),S}function TL(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const i$="<<";function ML(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&pde(n))if(r=Fa(r)?r.resolve(e.doc):r,Tu(r))for(const o of r.items)U0(e,t,o);else if(Array.isArray(r))for(const o of r)U0(e,t,o);else U0(e,t,r);else{const o=Hi(n,"",e);if(t instanceof Map)t.set(o,Hi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=hde(n,o,e),s=Hi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const pde=e=>e===i$||un(e)&&e.value===i$&&(!e.type||e.type===Ct.PLAIN);function U0(e,t,n){const r=e&&Fa(n)?n.resolve(e.doc):n;if(!Na(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function hde(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Dn(e)&&n&&n.doc){const r=$L(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),TL(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function dx(e,t,n){const r=_f(e,void 0,n),o=_f(t,void 0,n);return new wr(r,o)}class wr{constructor(t,n=null){Object.defineProperty(this,Wo,{value:yL}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Dn(n)&&(n=n.clone(t)),Dn(r)&&(r=r.clone(t)),new wr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return ML(n,r,this)}toString(t,n,r){return t!=null&&t.doc?fde(this,t,n,r):JSON.stringify(this)}}function _L(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?gde:mde)(e,t,n)}function mde({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:f}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let b=0;b<t.length;++b){const g=t[b];let S=null;if(Dn(g))!h&&g.spaceBefore&&m.push(""),Ym(n,m,g.commentBefore,h),g.comment&&(S=g.comment);else if(xn(g)){const P=Dn(g.key)?g.key:null;P&&(!h&&P.spaceBefore&&m.push(""),Ym(n,m,P.commentBefore,h))}h=!1;let w=ka(g,p,()=>S=null,()=>h=!0);S&&(w+=nl(w,i,f(S))),h&&S&&(h=!1),m.push(r+w)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let b=1;b<m.length;++b){const g=m[b];v+=g?`
320
+ ${c}${g}`:`
321
+ `}}return e?(v+=`
322
+ `+fs(f(e),c),a&&a()):h&&s&&s(),v}function gde({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,options:{commentString:c}}=n;o+=a;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const m=[];for(let S=0;S<t.length;++S){const w=t[S];let P=null;if(Dn(w))w.spaceBefore&&m.push(""),Ym(n,m,w.commentBefore,!1),w.comment&&(P=w.comment);else if(xn(w)){const E=Dn(w.key)?w.key:null;E&&(E.spaceBefore&&m.push(""),Ym(n,m,E.commentBefore,!1),E.comment&&(p=!0));const I=Dn(w.value)?w.value:null;I?(I.comment&&(P=I.comment),I.commentBefore&&(p=!0)):w.value==null&&E&&E.comment&&(P=E.comment)}P&&(p=!0);let C=ka(w,f,()=>P=null);S<t.length-1&&(C+=","),P&&(C+=nl(C,o,c(P))),!p&&(m.length>h||C.includes(`
323
+ `))&&(p=!0),m.push(C),h=m.length}let v;const{start:b,end:g}=r;if(m.length===0)v=b+g;else if(p||(p=m.reduce((w,P)=>w+P.length+2,2)>Cv.maxFlowStringSingleLineLength),p){v=b;for(const S of m)v+=S?`
324
+ ${a}${s}${S}`:`
325
+ `;v+=`
326
+ ${s}${g}`}else v=`${b} ${m.join(" ")} ${g}`;return e&&(v+=nl(v,c(e),s),i&&i()),v}function Ym({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=fs(t(r),e);n.push(i.trimStart())}}function ia(e,t){const n=un(t)?t.value:t;for(const r of e)if(xn(r)&&(r.key===t||r.key===n||un(r.key)&&r.key.value===n))return r}class Oo extends Cv{constructor(t){super(ml,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(t,n){var s;let r;xn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new wr(t,t==null?void 0:t.value):r=new wr(t.key,t.value);const o=ia(this.items,r.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);un(o.value)&&kL(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(c=>i(r,c)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=ia(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=ia(this.items,t),o=r==null?void 0:r.value;return(i=!n&&un(o)?o.value:o)!=null?i:void 0}has(t){return!!ia(this.items,t)}set(t,n){this.add(new wr(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const i of this.items)ML(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!xn(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})),_L(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function vde(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Oo(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(dx(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Mu={collection:"map",createNode:vde,default:!0,nodeClass:Oo,tag:"tag:yaml.org,2002:map",resolve(e,t){return Na(e)||t("Expected a mapping for this tag"),e}};class Da extends Cv{constructor(t){super($u,t),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(t){this.items.push(t)}delete(t){const n=Mh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Mh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&un(o)?o.value:o}has(t){const n=Mh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Mh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];un(o)&&kL(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const i of this.items)r.push(Hi(i,String(o++),n));return r}toString(t,n,r){return t?_L(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Mh(e){let t=un(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function yde(e,t,n){const{replacer:r}=n,o=new Da(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(_f(s,void 0,n))}}return o}const _u={collection:"seq",createNode:yde,default:!0,nodeClass:Da,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Tu(e)||t("Expected a sequence for this tag"),e}},Pv={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),lp(e,t,n,r)}},kv={identify:e=>e==null,createNode:()=>new Ct(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ct(null),stringify:({source:e},t)=>typeof e=="string"&&kv.test.test(e)?e:t.options.nullStr},fx={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ct(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&fx.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 gi({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const RL={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:gi},OL={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():gi(e)}},LL={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 Ct(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:gi},Iv=e=>typeof e=="bigint"||Number.isInteger(e),px=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function AL(e,t,n){const{value:r}=e;return Iv(r)&&r>=0?n+r.toString(t):gi(e)}const FL={identify:e=>Iv(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>px(e,2,8,n),stringify:e=>AL(e,8,"0o")},NL={identify:Iv,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>px(e,0,10,n),stringify:gi},DL={identify:e=>Iv(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>px(e,2,16,n),stringify:e=>AL(e,16,"0x")},bde=[Mu,_u,Pv,kv,fx,FL,NL,DL,RL,OL,LL];function s$(e){return typeof e=="bigint"||Number.isInteger(e)}const _h=({value:e})=>JSON.stringify(e),wde=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:_h},{identify:e=>e==null,createNode:()=>new Ct(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_h},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:_h},{identify:s$,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})=>s$(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:_h}],Cde={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},xde=[Mu,_u].concat(wde,Cde),hx={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let f=0;f<s.length;++f)c+=String.fromCharCode(s[f]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ct.BLOCK_LITERAL),t!==Ct.QUOTE_DOUBLE){const c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),f=Math.ceil(a.length/c),p=new Array(f);for(let h=0,m=0;h<f;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Ct.BLOCK_LITERAL?`
327
+ `:" ")}return lp({comment:e,type:t,value:a},r,o,i)}};function BL(e,t){var n;if(Tu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!xn(o)){if(Na(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new wr(new Ct(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
328
+ ${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
329
+ ${s.comment}`:o.comment}o=i}e.items[r]=xn(o)?o:new wr(o)}}else t("Expected a sequence for this tag");return e}function zL(e,t,n){const{replacer:r}=n,o=new Da(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const f=Object.keys(s);if(f.length===1)a=f[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(dx(a,c,n))}return o}const mx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:BL,createNode:zL};class jc extends Da{constructor(){super(),this.add=Oo.prototype.add.bind(this),this.delete=Oo.prototype.delete.bind(this),this.get=Oo.prototype.get.bind(this),this.has=Oo.prototype.has.bind(this),this.set=Oo.prototype.set.bind(this),this.tag=jc.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let i,s;if(xn(o)?(i=Hi(o.key,"",n),s=Hi(o.value,i,n)):i=Hi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}jc.tag="tag:yaml.org,2002:omap";const gx={collection:"seq",identify:e=>e instanceof Map,nodeClass:jc,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=BL(e,t),r=[];for(const{key:o}of n.items)un(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new jc,n)},createNode(e,t,n){const r=zL(e,t,n),o=new jc;return o.items=r.items,o}};function HL({value:e,source:t},n){return t&&(e?jL:VL).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const jL={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 Ct(!0),stringify:HL},VL={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 Ct(!1),stringify:HL},Sde={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:gi},Ede={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():gi(e)}},Pde={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 Ct(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:gi},ap=e=>typeof e=="bigint"||Number.isInteger(e);function $v(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,n);return o==="-"?-1*i:i}function vx(e,t,n){const{value:r}=e;if(ap(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return gi(e)}const kde={identify:ap,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>$v(e,2,2,n),stringify:e=>vx(e,2,"0b")},Ide={identify:ap,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>$v(e,1,8,n),stringify:e=>vx(e,8,"0")},$de={identify:ap,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>$v(e,0,10,n),stringify:gi},Tde={identify:ap,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>$v(e,2,16,n),stringify:e=>vx(e,16,"0x")};class Vc extends Oo{constructor(t){super(t),this.tag=Vc.tag}add(t){let n;xn(t)?n=t:typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new wr(t.key,null):n=new wr(t,null),ia(this.items,n.key)||this.items.push(n)}get(t,n){const r=ia(this.items,t);return!n&&xn(r)?un(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=ia(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new wr(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")}}Vc.tag="tag:yaml.org,2002:set";const yx={collection:"map",identify:e=>e instanceof Set,nodeClass:Vc,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(Na(e)){if(e.hasAllNullValues(!0))return Object.assign(new Vc,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new Vc(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(dx(i,null,n));return o}};function bx(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=r.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return n==="-"?o(-1)*i:i}function UL(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return gi(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const WL={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})=>bx(e,n),stringify:UL},GL={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=>bx(e,!1),stringify:UL},Tv={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(Tv.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=bx(p,!1);Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},l$=[Mu,_u,Pv,kv,jL,VL,kde,Ide,$de,Tde,Sde,Ede,Pde,hx,gx,mx,yx,WL,GL,Tv],a$=new Map([["core",bde],["failsafe",[Mu,_u,Pv]],["json",xde],["yaml11",l$],["yaml-1.1",l$]]),c$={binary:hx,bool:fx,float:LL,floatExp:OL,floatNaN:RL,floatTime:GL,int:NL,intHex:DL,intOct:FL,intTime:WL,map:Mu,null:kv,omap:gx,pairs:mx,seq:_u,set:yx,timestamp:Tv},Mde={"tag:yaml.org,2002:binary":hx,"tag:yaml.org,2002:omap":gx,"tag:yaml.org,2002:pairs":mx,"tag:yaml.org,2002:set":yx,"tag:yaml.org,2002:timestamp":Tv};function W0(e,t){let n=a$.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(a$.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=c$[r];if(o)return o;const i=Object.keys(c$).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const _de=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Mv{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?W0(t,"compat"):t?W0(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Mde:{},this.tags=W0(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,ml,{value:Mu}),Object.defineProperty(this,Es,{value:Pv}),Object.defineProperty(this,$u,{value:_u}),this.sortMapEntries=typeof s=="function"?s:s===!0?_de:null}clone(){const t=Object.create(Mv.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Rde(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=$L(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=i(e.commentBefore);n.unshift(fs(f,""))}let s=!1,a=null;if(e.contents){if(Dn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(fs(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const f=a?void 0:()=>s=!0;let p=ka(e.contents,o,()=>a=null,f);a&&(p+=nl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(ka(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const f=i(e.comment);f.includes(`
330
+ `)?(n.push("..."),n.push(fs(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&s&&(f=f.replace(/^\n+/,"")),f&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(fs(i(f),"")))}return n.join(`
331
+ `)+`
332
+ `}function Ed(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const s=r[o],a=Ed(e,r,String(o),s);a===void 0?delete r[o]:a!==s&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),s=Ed(e,r,o,i);s===void 0?r.delete(o):s!==i&&r.set(o,s)}else if(r instanceof Set)for(const o of Array.from(r)){const i=Ed(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const s=Ed(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class Ru{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Wo,{value:Rb});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Ir({version:s}),this.setSchema(s,r),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(Ru.prototype,{[Wo]:{value:Rb}});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=Dn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){dc(this.contents)&&this.contents.add(t)}addIn(t,n){dc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=EL(this);t.anchor=!n||r.has(n)?PL(n||"a",r):n}return new wv(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 S=P=>typeof P=="number"||P instanceof String||P instanceof Number,w=n.filter(S).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:f,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:v}=ode(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:f,replacer:o,schema:this.schema,sourceObjects:v},g=_f(t,p,b);return a&&Pn(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new wr(o,i)}delete(t){return dc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Sd(t)?this.contents==null?!1:(this.contents=null,!0):dc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Pn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Sd(t)?!n&&un(this.contents)?this.contents.value:this.contents:Pn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Pn(this.contents)?this.contents.has(t):!1}hasIn(t){return Sd(t)?this.contents!==void 0:Pn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=qm(this.schema,[t],n):dc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Sd(t)?this.contents=n:this.contents==null?this.contents=qm(this.schema,Array.from(t),n):dc(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 Ir({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 Ir({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 Mv(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100,stringify:ka},c=Hi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:f,res:p}of a.anchors.values())i(p,f);return typeof s=="function"?Ed(s,{"":c},"",c):c}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Rde(this,t)}}function dc(e){if(Pn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class wx extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class sa extends wx{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class KL extends wx{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Xm=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
333
+ `),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const f=" ".repeat(i)+"^".repeat(a);n.message+=`:
334
+
335
+ ${s}
336
+ ${f}
337
+ `}};function du(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,f=s,p="",h="",m=!1,v=!1,b=!1,g=null,S=null,w=null,P=null,C=null;for(const T of e)switch(b&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&i(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),T.type){case"space":!t&&c&&n!=="doc-start"&&T.source[0]===" "&&i(T,"TAB_AS_INDENT","Tabs are not allowed as indentation"),f=!0;break;case"comment":{f||i(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=T.source.substring(1)||" ";p?p+=h+k:p=k,h="",c=!1;break}case"newline":c?p?p+=T.source:a=!0:h+=T.source,c=!0,m=!0,(g||S)&&(v=!0),f=!0;break;case"anchor":g&&i(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&i(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=T,C===null&&(C=T.offset),c=!1,f=!1,b=!0;break;case"tag":{S&&i(T,"MULTIPLE_TAGS","A node can have at most one tag"),S=T,C===null&&(C=T.offset),c=!1,f=!1,b=!0;break}case n:(g||S)&&i(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),P&&i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${t!=null?t:"collection"}`),P=T,c=!1,f=!1;break;case"comma":if(t){w&&i(T,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=T,c=!1,f=!1;break}default:i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),c=!1,f=!1}const E=e[e.length-1],I=E?E.offset+E.source.length:o;return b&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:w,found:P,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:S,end:I,start:C!=null?C:I}}function Rf(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
338
+ `))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(Rf(t.key)||Rf(t.value))return!0}return!1;default:return!0}}function Ab(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Rf(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function qL(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||un(i)&&un(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const u$="All mapping items must start at the same column";function Ode({composeNode:e,composeEmptyNode:t},n,r,o){var a;const i=new Oo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const c of r.items){const{start:f,key:p,sep:h,value:m}=c,v=du(f,{indicator:"explicit-key-ind",next:p!=null?p:h==null?void 0:h[0],offset:s,onError:o,startOnNewline:!0}),b=!v.found;if(b){if(p&&(p.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&o(s,"BAD_INDENT",u$)),!v.anchor&&!v.tag&&!h){v.comment&&(i.comment?i.comment+=`
339
+ `+v.comment:i.comment=v.comment);continue}(v.hasNewlineAfterProp||Rf(p))&&o(p!=null?p:f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=v.found)==null?void 0:a.indent)!==r.indent&&o(s,"BAD_INDENT",u$);const g=v.end,S=p?e(n,p,v,o):t(n,g,f,null,v,o);n.schema.compat&&Ab(r.indent,p,o),qL(n,i.items,S)&&o(g,"DUPLICATE_KEY","Map keys must be unique");const w=du(h!=null?h:[],{indicator:"map-value-ind",next:m,offset:S.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(s=w.end,w.found){b&&((m==null?void 0:m.type)==="block-map"&&!w.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&v.start<w.found.offset-1024&&o(S.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const P=m?e(n,m,w,o):t(n,s,h,null,w,o);n.schema.compat&&Ab(r.indent,m,o),s=P.range[2];const C=new wr(S,P);n.options.keepSourceTokens&&(C.srcToken=c),i.items.push(C)}else{b&&o(S.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),w.comment&&(S.comment?S.comment+=`
340
+ `+w.comment:S.comment=w.comment);const P=new wr(S);n.options.keepSourceTokens&&(P.srcToken=c),i.items.push(P)}}return i.range=[r.offset,s,s],i}function Lde({composeNode:e,composeEmptyNode:t},n,r,o){const i=new Da(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset;for(const{start:a,value:c}of r.items){const f=du(a,{indicator:"seq-item-ind",next:c,offset:s,onError:o,startOnNewline:!0});if(s=f.end,!f.found)if(f.anchor||f.tag||c)c&&c.type==="block-seq"?o(s,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{f.comment&&(i.comment=f.comment);continue}const p=c?e(n,c,f,o):t(n,s,a,null,f,o);n.schema.compat&&Ab(r.indent,c,o),s=p.range[2],i.items.push(p)}return i.range=[r.offset,s,s],i}function cp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:f}=a;switch(f){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}t+=c.length}}return{comment:o,offset:t}}const G0="Block collections are not allowed within flow collections",K0=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Ade({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Oo(n.schema):new Da(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let f=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const S=r.items[g],{start:w,key:P,sep:C,value:E}=S,I=du(w,{flow:s,indicator:"explicit-key-ind",next:P!=null?P:C==null?void 0:C[0],offset:f,onError:o,startOnNewline:!1});if(!I.found){if(!I.anchor&&!I.tag&&!C&&!E){g===0&&I.comma?o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(I.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),I.comment&&(a.comment?a.comment+=`
341
+ `+I.comment:a.comment=I.comment),f=I.end;continue}!i&&n.options.strict&&Rf(P)&&o(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)I.comma&&o(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(I.comma||o(I.start,"MISSING_CHAR",`Missing , between ${s} items`),I.comment){let T="";e:for(const k of w)switch(k.type){case"comma":case"space":break;case"comment":T=k.source.substring(1);break e;default:break e}if(T){let k=a.items[a.items.length-1];xn(k)&&(k=(b=k.value)!=null?b:k.key),k.comment?k.comment+=`
342
+ `+T:k.comment=T,I.comment=I.comment.substring(T.length+1)}}if(!i&&!C&&!I.found){const T=E?e(n,E,I,o):t(n,I.end,C,null,I,o);a.items.push(T),f=T.range[2],K0(E)&&o(T.range,"BLOCK_IN_FLOW",G0)}else{const T=I.end,k=P?e(n,P,I,o):t(n,T,w,null,I,o);K0(P)&&o(k.range,"BLOCK_IN_FLOW",G0);const $=du(C!=null?C:[],{flow:s,indicator:"map-value-ind",next:E,offset:k.range[2],onError:o,startOnNewline:!1});if($.found){if(!i&&!I.found&&n.options.strict){if(C)for(const N of C){if(N===$.found)break;if(N.type==="newline"){o(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}I.start<$.found.offset-1024&&o($.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?o(E,"MISSING_CHAR",`Missing space after : in ${s}`):o($.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const R=E?e(n,E,$,o):$.found?t(n,$.end,C,null,$,o):null;R?K0(E)&&o(R.range,"BLOCK_IN_FLOW",G0):$.comment&&(k.comment?k.comment+=`
343
+ `+$.comment:k.comment=$.comment);const O=new wr(k,R);if(n.options.keepSourceTokens&&(O.srcToken=S),i){const N=a;qL(n,N.items,k)&&o(T,"DUPLICATE_KEY","Map keys must be unique"),N.items.push(O)}else{const N=new Oo(n.schema);N.flow=!0,N.items.push(O),a.items.push(N)}f=R?R.range[2]:$.end}}const p=i?"}":"]",[h,...m]=r.end;let v=f;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),S=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(f,c?"MISSING_CHAR":"BAD_INDENT",S),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=cp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
344
+ `+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function Fde(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=Ode(e,t,n,o);break}case"block-seq":{i=Lde(e,t,n,o);break}case"flow-collection":{i=Ade(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=Na(i)?"map":"seq";let f=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!f){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),f=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=f.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Dn(p)?p:new Ct(p);return h.range=i.range,h.tag=s,f!=null&&f.format&&(h.format=f.format),h}function YL(e,t,n){const r=e.offset,o=Nde(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Ct.BLOCK_FOLDED:Ct.BLOCK_LITERAL,s=e.source?Dde(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const S=s[g][1];if(S===""||S==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
345
+ `.repeat(Math.max(1,s.length-1)):"";let S=r+o.length;return e.source&&(S+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,S,S]}}let c=e.indent+o.indent,f=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[S,w]=s[g];if(w===""||w==="\r")o.indent===0&&S.length>c&&(c=S.length);else{if(S.length<c){const P="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(f+S.length,"MISSING_CHAR",P)}o.indent===0&&(c=S.length),p=g;break}f+=S.length+w.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
346
+ `;for(let g=p;g<a;++g){let[S,w]=s[g];f+=S.length+w.length+1;const P=w[w.length-1]==="\r";if(P&&(w=w.slice(0,-1)),w&&S.length<c){const E=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(f-w.length-(P?2:1),"BAD_INDENT",E),S=""}i===Ct.BLOCK_LITERAL?(h+=m+S.slice(c)+w,m=`
347
+ `):S.length>c||w[0]===" "?(m===" "?m=`
348
+ `:!v&&m===`
349
+ `&&(m=`
350
+
351
+ `),h+=m+S.slice(c)+w,m=`
352
+ `,v=!0):w===""?m===`
353
+ `?h+=`
354
+ `:m=`
355
+ `:(h+=m+w,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
356
+ `+s[g][0].slice(c);h[h.length-1]!==`
357
+ `&&(h+=`
358
+ `);break;default:h+=`
359
+ `}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function Nde({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const b=Number(v);!s&&b?s=b:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let f=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const v=t[m];switch(v.type){case"space":f=!0;case"newline":h+=v.source.length;break;case"comment":n&&!f&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const b=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",b);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function Dde(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function XL(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const f=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=Ct.PLAIN,c=Bde(i,f);break;case"single-quoted-scalar":a=Ct.QUOTE_SINGLE,c=zde(i,f);break;case"double-quoted-scalar":a=Ct.QUOTE_DOUBLE,c=Hde(i,f);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=cp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function Bde(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}`),QL(e)}function zde(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),QL(e.slice(1,-1)).replace(/''/g,"'")}function QL(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
360
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
361
+ `,"sy")}catch(f){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
362
+ `?o+=i:i=`
363
+ `:(o+=i+r[1],i=" "),s=n.lastIndex;const a=new RegExp("[ \\t]*(.*)","sy");return a.lastIndex=s,r=a.exec(e),o+i+((c=r==null?void 0:r[1])!=null?c:"")}function Hde(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
364
+ `))if(o===`
365
+ `){const{fold:i,offset:s}=jde(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Vde[i];if(s)n+=s;else if(i===`
366
+ `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
367
+ `)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=Ude(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(o===" "||o===" "){const i=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
368
+ `&&!(s==="\r"&&e[r+2]===`
369
+ `)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function jde(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
370
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
371
+ `);)r===`
372
+ `&&(n+=`
373
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Vde={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
374
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Ude(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function JL(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?YL(t,e.options.strict,r):XL(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,f=n&&c?Wde(e.schema,o,c,n,r):t.type==="scalar"?Gde(e,o,t,r):e.schema[Es];let p;try{const h=f.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=un(h)?h:new Ct(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Ct(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),f.format&&(p.format=f.format),s&&(p.comment=s),p}function Wde(e,t,n,r,o){var a;if(n==="!")return e[Es];const i=[];for(const c of e.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(t))return c;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Es])}function Gde({directives:e,schema:t},n,r,o){var s;const i=t.tags.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))})||t[Es];if(t.compat){const a=(s=t.compat.find(c=>{var f;return c.default&&((f=c.test)==null?void 0:f.test(n))}))!=null?s:t[Es];if(i.tag!==a.tag){const c=e.tagString(i.tag),f=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${f}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function Kde(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 qde={composeNode:ZL,composeEmptyNode:Cx};function ZL(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,f=!0;switch(t.type){case"alias":c=Yde(e,t,r),(s||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=JL(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Fde(qde,e,t,a,r),s&&(c.anchor=s.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),c=Cx(e,t.offset,void 0,null,n,r),f=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&f&&(c.srcToken=t),c}function Cx(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a},c){const f={type:"scalar",offset:Kde(t,n,r),indent:-1,source:""},p=JL(e,f,a,c);return s&&(p.anchor=s.source.substring(1),p.anchor===""&&c(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),i&&(p.comment=i),p}function Yde({options:e},{offset:t,source:n,end:r},o){const i=new wv(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=cp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Xde(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new Ru(void 0,a),f={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=du(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?ZL(f,o,p,s):Cx(f,p.end,r,null,p,s);const h=c.contents.range[2],m=cp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function fd(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 d$(e){var o;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(t===""?"":r?`
375
+
376
+ `:`
377
+ `)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class xx{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=fd(n);i?this.warnings.push(new KL(s,r,o)):this.errors.push(new sa(s,r,o))},this.directives=new Ir({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=d$(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
378
+ ${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Pn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];xn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
379
+ ${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
380
+ ${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:d$(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=fd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Xde(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 sa(fd(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 sa(fd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=cp(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}
381
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new sa(fd(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 Ru(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 Qde(e,t=!0,n){if(e){const r=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(a,i,s);else throw new sa([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return XL(e,t,r);case"block-scalar":return YL(e,t,r)}}return null}function Jde(e,t){var f;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=lp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(f=t.end)!=null?f:[{type:"newline",offset:-1,indent:r,source:`
382
+ `}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
383
+ `),h=a.substring(0,p),m=a.substring(p+1)+`
384
+ `,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return eA(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
385
+ `}),{type:"block-scalar",offset:i,indent:r,props:v,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function Zde(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const f=e.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=f.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=lp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":efe(e,c);break;case'"':q0(e,c,"double-quoted-scalar");break;case"'":q0(e,c,"single-quoted-scalar");break;default:q0(e,c,"scalar")}}function efe(e,t){const n=t.indexOf(`
386
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
387
+ `;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:r}];eA(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
388
+ `});for(const c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function eA(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 q0(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of r)i.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
389
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const tfe=e=>"type"in e?Qm(e):nm(e);function Qm(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Qm(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=nm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=nm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=nm(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 nm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=Qm(t)),n)for(const i of n)o+=i.source;return r&&(o+=Qm(r)),o}const Fb=Symbol("break visit"),nfe=Symbol("skip children"),tA=Symbol("remove item");function Ia(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),nA(Object.freeze([]),e,t)}Ia.BREAK=Fb;Ia.SKIP=nfe;Ia.REMOVE=tA;Ia.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const i=n==null?void 0:n[r];if(i&&"items"in i)n=i.items[o];else return}return n};Ia.parentCollection=(e,t)=>{const n=Ia.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 nA(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s<i.items.length;++s){const a=nA(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===Fb)return Fb;a===tA&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const _v="\uFEFF",Rv="",Ov="",Of="",rfe=e=>!!e&&"items"in e,ofe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function ife(e){switch(e){case _v:return"<BOM>";case Rv:return"<DOC>";case Ov:return"<FLOW_END>";case Of:return"<SCALAR>";default:return JSON.stringify(e)}}function rA(e){switch(e){case _v:return"byte-order-mark";case Rv:return"doc-mode";case Ov:return"flow-error-end";case Of:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
390
+ `:case`\r
391
+ `: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 sfe=Object.freeze(Object.defineProperty({__proto__:null,BOM:_v,DOCUMENT:Rv,FLOW_END:Ov,SCALAR:Of,createScalarToken:Jde,isCollection:rfe,isScalar:ofe,prettyToken:ife,resolveAsScalar:Qde,setScalarValue:Zde,stringify:tfe,tokenType:rA,visit:Ia},Symbol.toStringTag,{value:"Module"}));function $o(e){switch(e){case void 0:case" ":case`
392
+ `:case"\r":case" ":return!0;default:return!1}}const f$="0123456789ABCDEFabcdef".split(""),lfe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Y0=",[]{}".split(""),afe=` ,[]{}
393
+ \r `.split(""),X0=e=>!e||afe.includes(e);class oA{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
394
+ `?!0:n==="\r"?this.buffer[t+1]===`
395
+ `:!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===`
396
+ `||!o&&!this.atEnd)return t+r+1}return n===`
397
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&$o(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(`
398
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===_v&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const i=t[r-1];(i===" "||i===" ")&&(n=r-1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Rv,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&$o(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&$o(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!$o(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&$o(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(X0),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&$o(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Ov,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(X0),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||$o(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
399
+ `,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
400
+ `,i)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>$o(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`
401
+ `:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
402
+ `)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(`
403
+ `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===`
404
+ `&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield Of,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const i=this.buffer[r+1];if($o(i)||t&&i===",")break;n=r}else if($o(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
405
+ `?(r+=1,o=`
406
+ `,i=this.buffer[r+1]):n=r),i==="#"||t&&Y0.includes(i))break;if(o===`
407
+ `){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&Y0.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Of,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(X0))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if($o(n)||t&&Y0.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!$o(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(lfe.includes(n))n=this.buffer[++t];else if(n==="%"&&f$.includes(this.buffer[t+1])&&f$.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
408
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
409
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class iA{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function ti(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function p$(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 sA(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 Rh(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 fc(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 h$(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!ti(t.start,"explicit-key-ind")&&!ti(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,sA(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)}class Sx{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 oA,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=rA(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&h$(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=!ti(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&p$(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{p$(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Rh(this.peek(2)),r=fc(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
410
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
411
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let i=[];if(o&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!ti(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(ti(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ti(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(sA(n.key)&&!ti(n.sep,"newline")){const s=fc(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(ti(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=fc(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):ti(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&ti(n.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||ti(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=Rh(r),i=fc(o);h$(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
412
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
413
+ `,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=Rh(t),r=fc(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=Rh(t),r=fc(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function lA(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new iA||null,prettyErrors:t}}function cfe(e,t={}){const{lineCounter:n,prettyErrors:r}=lA(t),o=new Sx(n==null?void 0:n.addNewLine),i=new xx(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Xm(e,n)),a.warnings.forEach(Xm(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function aA(e,t={}){const{lineCounter:n,prettyErrors:r}=lA(t),o=new Sx(n==null?void 0:n.addNewLine),i=new xx(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new sa(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Xm(e,n)),s.warnings.forEach(Xm(e,n))),s}function ufe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=aA(e,n);if(!o)return null;if(o.warnings.forEach(i=>TL(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function dfe(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=(o=n!=null?n:t)!=null?o:{};if(!i)return}return new Ru(e,r,n).toString(n)}const m$=Object.freeze(Object.defineProperty({__proto__:null,Alias:wv,CST:sfe,Composer:xx,Document:Ru,Lexer:oA,LineCounter:iA,Pair:wr,Parser:Sx,Scalar:Ct,Schema:Mv,YAMLError:wx,YAMLMap:Oo,YAMLParseError:sa,YAMLSeq:Da,YAMLWarning:KL,isAlias:Fa,isCollection:Pn,isDocument:sp,isMap:Na,isNode:Dn,isPair:xn,isScalar:un,isSeq:Tu,parse:ufe,parseAllDocuments:cfe,parseDocument:aA,stringify:dfe,visit:kl,visitAsync:bv},Symbol.toStringTag,{value:"Module"}));function ffe({file:e,defaultPerms:t,addToBar:n}){var T;const I=e,{parent:r,children:o,isRoot:i}=I,s=an(I,["parent","children","isRoot"]),[a,c]=u.useState(s);u.useEffect(()=>{c(Object.assign({can_see:null,can_read:null,can_upload:null},s))},[e]);const{source:f}=e,p=e.type==="folder",h=f!==void 0,m=h&&p,v=u.useMemo(()=>{const $={};let R=r;for(;R;)Jt.defaults($,R),R=R.parent;return Jt.defaults($,t)},[r]),b=((T=a.can_read)!=null?T:v.can_read)===!0,g=h&&Boolean(a.ctime),S=OC(),{data:w,element:P}=Bi("get_accounts");if(P||!w)return P;const C=w.list;return u.createElement(Yf,{values:a,set($,R){c(Ht(Ae({},a),{[R]:$}))},barSx:Ae({gap:2,width:"100%"},S),stickyBar:!0,addToBar:[!i&&u.createElement(Nn,{icon:Ll,title:"Delete",confirm:"Delete?",onClick:()=>Bt("del_vfs",{uris:[e.id]}).then(()=>fu())}),n],onError:yr,save:{sx:AC(!LC(a,e)),onClick(){return pt(this,null,function*(){const $=Ae({},a);$.masks||($.masks=null),yield Bt("set_vfs",{uri:a.id,props:$}),$.name!==e.name&&(wn.selectedFiles[0].id=e.id.slice(0,-e.name.length)+$.name),fu()})}},fields:[i?u.createElement(Wi,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:f&&"You can decide a name that's different from the one on your disk"},{k:"source",label:"Source on disk",comp:Gm,files:!p,folders:p,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},E("can_read","Who can download","Note: who can't download won't see it in the list"),b&&E("can_see","Who can see","You can hide and keep it downloadable if you have a direct link"),p&&E("can_upload","Who can upload",h?"":"Works only on folders with source"),h&&!m&&{k:"size",comp:R0,lg:4,toField:Cu},g&&{k:"ctime",comp:R0,md:6,lg:4,label:"Created",toField:g$},g&&{k:"mtime",comp:R0,md:6,lg:4,label:"Modified",toField:g$},e.website&&{k:"default",comp:au,label:"Serve index.html",toField:Boolean,fromField:$=>$?"index.html":null,helperText:oa("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},p&&{k:"masks",multiline:!0,xl:!0,lg:6,toField:m$.stringify,fromField:$=>$?m$.parse($):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function E($,R,O="",N={}){return Ae({k:$,lg:6,comp:pfe,parent:r,accounts:C,label:R,inherit:v[$],helperText:O},N)}}function g$(e){return e?new Date(e).toLocaleString():"-"}function pfe(a){var c=a,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i}=c,s=an(c,["value","onChange","parent","inherit","accounts","helperText"]);const f=u.useMemo(()=>lu([{value:null,label:(n?"Same as parent: ":"Default: ")+v$(r)},{value:!0},{value:!1},{value:"*"},{value:[],label:"Select accounts"}].map(h=>(h.value===e||h.value!==r)&&Ae({label:Jt.capitalize(v$(h.value))},h))),[r,n,e]),p=Array.isArray(e);return u.createElement("div",{},u.createElement(xu,Ht(Ae({},s),{helperText:!p&&i,value:p?[]:e,onChange(h,{was:m,event:v}){t(h,{was:m,event:v})},options:f})),p&&u.createElement(TC,{label:o!=null&&o.length?"Choose accounts for "+s.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(h=>({value:h.username,label:h.username})))||[]}))}function v$(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):"*UNKNOWN*"+JSON.stringify(e)}let Nb;function hfe(){var b,g,S;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=Al(),{data:r,reload:o,element:i}=Bi("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s="md",a=cu(s);function c(){wn.selectedFiles=[]}const f=n.length?n.length===1?u.createElement(ffe,{addToBar:a&&u.createElement(Nn,{icon:ov,title:"Close",onClick:c}),defaultPerms:r==null?void 0:r.defaultPerms,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(RC,{alignItems:"center"},u.createElement(gr,{variant:"h6"},n.length+" selected"),u.createElement(vr,{onClick:mfe,startIcon:u.createElement(Ll)},"Remove")),u.createElement(tv,{dense:!0,disablePadding:!0},n.map(w=>u.createElement(bR,{key:w.id},u.createElement(nv,{primary:w.name,secondary:w.source}))))):null;u.useEffect(()=>{if(!(a||!f))return hi({title:n.length>1?"Multiple selection":n[0].name,Content:()=>f,onClose:c})},[a,n]),u.useEffect(()=>{if(wn.vfs=void 0,!r)return;e.clear();const{root:w}=r;if(!w)return;C(w),w.isRoot=!0,wn.vfs=w;const P=Nb||wn.selectedFiles.map(E=>E.id);Nb=void 0,wn.selectedFiles=lu(P.map(E=>e.get(E)));function C(E,I="",T=void 0){if(E.parent=T,E.id=Hte(I,E.name)||"/",e.set(E.id,E),!!E.children)for(const k of E.children)C(k,(I&&E.id)+"/",E)}},[r,e]);const[p]=Xf(window.location.host==="localhost"&&"get_status"),h=u.useMemo(()=>{var w,P;return typeof p=="object"&&Jt.sortBy(lu(Object.values(((w=p.urls)==null?void 0:w.https)||((P=p.urls)==null?void 0:P.http)||{}).map(C=>typeof C=="string"&&C)),C=>C.includes("["))},[p]);if(i)return e.clear(),i;const v=!((g=(b=r==null?void 0:r.root)==null?void 0:b.children)!=null&&g.length)&&!((S=r==null?void 0:r.root)!=null&&S.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:h&&{severity:"info",children:["Your shared files can be browsed from ",ate(" or ",h.slice(0,3).map(w=>u.createElement(bf,{href:w},w)))]};return u.createElement(Bn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},v&&u.createElement(Bn,{item:!0,mb:2,xs:12},u.createElement(Wi,v)),u.createElement(Bn,{item:!0,[s]:6,lg:5},u.createElement(gr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(ede),t&&u.createElement(Fue,{id2node:e})),a&&f&&u.createElement(Bn,{item:!0,[s]:6,lg:7,maxWidth:"100%"},u.createElement(eR,{},u.createElement(tR,{},f))))}function fu(e){Nb=e,wn.vfs=void 0}function mfe(){return pt(this,null,function*(){const e=wn.selectedFiles;if(e.length&&(yield pl(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Jt.pull(t,"/");const{errors:n}=yield Bt("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return yr("Following elements couldn't be deleted: "+r.join(", "),"error");fu()}catch(t){yield yr(t)}})}function gfe({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,b;s(e),c(n.filter(g=>g!==e.username)),Nne()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(Yf,{formRef:h,values:i,set(v,b){s(Ht(Ae({},i),{[b]:v}))},barSx:Ae({gap:2,width:"100%"},OC()),stickyBar:!0,addToBar:[!f&&u.createElement(Nn,{icon:Ll,title:"Delete",confirm:"Delete?",onClick:()=>Bt("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(ht,{flex:1}),cA(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&Bt("get_account",{username:v}).then(b=>b.username===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:au,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ae({k:"admin",comp:au,xl:6,fromField:v=>v||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"belongs",comp:TC,label:"Inherits from",options:a,helperText:"Specify groups to inherit permissions from."+(a.length?"":" There are no groups available, create one first.")},{k:"redirect",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:yr,save:{sx:AC(!LC(i,e)),onClick(){return pt(this,null,function*(){const C=i,{password:v="",password2:b,adminActualAccess:g}=C,S=an(C,["password","password2","adminActualAccess"]),{username:w}=i;if(f){const E=yield Bt("add_account",S);if(v)try{yield y$(w,v)}catch(I){throw Bt("del_account",{username:w}).then(),I}t(E.username),ms("Account created","success");return}const P=yield Bt("set_account",{username:e.username,changes:S});v&&(yield y$(w,v)),setTimeout(()=>ms("Account modified","success"),1),t(P.username)})}}})}function y$(e,t){return pt(this,null,function*(){const n=new fa.SRPRoutines(new fa.SRPParameters),r=yield fa.createVerifierAndSalt(n,e,t);return Bt("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Bt("change_password_others",{username:e,newPassword:t})})})}function vfe(){const{username:e}=Al(),{data:t,reload:n,element:r}=Bi("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(b=>t.list.find(g=>(g==null?void 0:g.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&Jt.find(a,{username:o[0]});function f(){i([])}const h=cu("md"),m=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(RC,{alignItems:"center"},u.createElement(gr,{variant:"h6"},o.length+" selected"),u.createElement(vr,{onClick:v,startIcon:u.createElement(Ll)},"Remove")),u.createElement(tv,{},o.map(b=>u.createElement(bR,{key:b},u.createElement(nv,{},b))))):u.createElement(gfe,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:h&&u.createElement(Nn,{icon:ov,title:"Close",onClick:f}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(h||!m||!o.length))return hi({title:Jt.isString(o)?Jt.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>m,onClose:f})},[h,o,c]),r||u.createElement(Bn,{container:!0,maxWidth:"80em"},u.createElement(Bn,{item:!0,xs:12},u.createElement(ht,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(vL,{variant:"contained",startIcon:u.createElement(qee),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")}]},"Add"),u.createElement(Nn,{icon:iv,title:"Reload",onClick:n}),(a==null?void 0:a.length)>0&&u.createElement(gr,{p:1},`${a.length} account(s)`))),u.createElement(Bn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Wi,{severity:"info"},oa`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(KR,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,g){i(g)}},a==null?void 0:a.map(b=>{var g,S;return u.createElement(yb,{key:b.username,nodeId:b.username,label:u.createElement(ht,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},cA(b),b.adminActualAccess&&is(Uee,"Can login into Admin"),b.username,Boolean((g=b.belongs)==null?void 0:g.length)&&u.createElement(ht,{sx:{color:"text.secondary",fontSize:"small"}},"(",(S=b.belongs)==null?void 0:S.join(", "),")"))})}))),h&&m&&u.createElement(Bn,{item:!0,md:7},u.createElement(eR,{},u.createElement(tR,{},m))));function v(){return pt(this,null,function*(){if(o.length>Jt.pull(o,e).length&&(yield yr("Won't delete current account","warning")),!!o.length&&(yield pl(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield Bt("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return yr("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield yr(b)}})}}function cA(e,t={}){return u.createElement(e.hasPassword?Kee:Fee,t)}function yfe(){const{element:e}=Bi("get_config",{only:[]}),{username:t}=Al();return e||(t?u.createElement(ht,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(ht,{},u.createElement(vr,{size:"large",variant:"contained",onClick(){Bt("logout").catch(n=>n.code!==401&&yr(n))}},"Yes, I want to logout"))):u.createElement(Wi,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function bfe(){const[e,t]=u.useState(0),n=Gne(Km);return u.createElement(u.Fragment,{},u.createElement(_R,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(TR,{label:Km[r],key:r}))),u.createElement(wfe,{key:e,file:n[e]}))}function wfe({file:e}){const{list:t,error:n,connecting:r}=Pu("get_log",{file:e},{addId:!0});return n||u.createElement(ip,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230},{field:"user",headerName:"Username",flex:.4,maxWidth:200},{field:"ts",headerName:"Timestamp",type:"dateTime",width:170,valueFormatter:({value:o})=>new Date(o).toLocaleString()},{field:"method",headerName:"Method",width:80},{field:"status",headerName:"Code",type:"number",width:70},{field:"length",headerName:"Size",type:"number",valueFormatter:({value:o})=>Cu(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}function uA(c){var f=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=f,a=an(f,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>Ute(Ae({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Ae(Ae({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:YR(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(Nn,{icon:xC,title:"Add",onClick:m=>Cf({fields:n}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(Nn,{icon:$ee,title:"Modify",onClick:b=>Cf({fields:n,values:m}).then(g=>{if(!g)return;const S=r.map((w,P)=>P===v?g:w);o(S,{was:r,event:b})})}),u.createElement(Nn,{icon:Ll,title:"Delete",confirm:"Delete?",onClick(b){const g=r.filter((S,w)=>w!==v);o(g,{was:r,event:b})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(uR,{sx:{ml:1}},e),t&&u.createElement(ev,{},t),u.createElement(ht,Ae({height:"20em"},a),u.createElement(ip,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function b$({updates:e}){const{list:t,setList:n,error:r,initializing:o}=Pu(e?"get_plugin_updates":"get_plugins");return r?pA(r):u.createElement(ip,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:"No updates available. Only online plugins are checked."},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell({row:i,value:s}){return u.createElement(u.Fragment,{},s,typeof i.badApi=="string"&&u.createElement(rv,{title:i.badApi,children:u.createElement(SC,{color:"warning",sx:{ml:1}})}),fA(i.repo))}},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(hA,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(Nn,i.started?{icon:cI,title:u.createElement(ht,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>Bt("set_plugin",{id:a,enabled:!1}).then(()=>ms("Plugin is stopping",u.createElement(cI,{color:"warning"})))}:{icon:EC,title:`Start ${a}`,onClick:()=>mA(a)}),u.createElement(Nn,{icon:OR,title:"Configuration",disabled:!s&&"No configuration available for this plugin",onClick(){return pt(this,null,function*(){const p=yield Bt("get_plugin",{id:a}),h=yield Cf(Ae({title:`${a} configuration`,fields:[u.createElement(ht,{},i.description),...dA(s)],values:p.config},i.configDialog));!h||Jt.isEqual(p.config,h)||(yield Bt("set_plugin",{id:a,config:h}),ms("Configuration saved"))})}}),u.createElement(Nn,{icon:Ll,title:"Uninstall",confirm:"Remove?",onClick(){return pt(this,null,function*(){yield Bt("uninstall_plugin",{id:a}),ms("Plugin uninstalled")})}}))}}]})}function dA(e){return Object.entries(e).map(([t,n])=>{if(!Jt.isPlainObject(n))return n;let p=n,{type:r,defaultValue:o,fields:i,$column:s,$width:a}=p,c=an(p,["type","defaultValue","fields","$column","$width"]);const f=Cfe[r];return f===uA&&(i=dA(i)),o!==void 0&&r==="boolean"&&(c.placeholder=`Default value is ${JSON.stringify(o)}`),Ae({k:t,comp:f,fields:i},c)})}const Cfe={string:Fo,number:Gs,boolean:au,select:xu,multiselect:TC,array:uA,real_path:Gm};function fA(e){return e&&u.createElement(Nn,{icon:Aee,title:"Open web page",link:"https://github.com/"+e})}function pA(e){return u.createElement(Wi,{severity:"error"},Kne(e,{ENOTFOUND:"Couldn't reach github.com"}))}function hA({id:e,then:t}){return u.createElement(Nn,{icon:ete,title:"Update",onClick(){return pt(this,null,function*(){yield Bt("update_plugin",{id:e}),t==null||t(e),ms("Plugin updated")})}})}function mA(e){return Bt("set_plugin",{id:e,enabled:!0}).then(()=>ms("Plugin is starting",u.createElement(EC,{color:"success"})))}function xfe(e,t,n){var r=this,o=u.useRef(null),i=u.useRef(0),s=u.useRef(null),a=u.useRef([]),c=u.useRef(),f=u.useRef(),p=u.useRef(e),h=u.useRef(!0);p.current=e;var m=!t&&t!==0&&typeof window!="undefined";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0,n=n||{};var v=!!n.leading,b="trailing"in n?!!n.trailing:!0,g="maxWait"in n,S=g?Math.max(+n.maxWait||0,t):null;u.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var w=u.useMemo(function(){var P=function($){var R=a.current,O=c.current;return a.current=c.current=null,i.current=$,f.current=p.current.apply(O,R)},C=function($,R){m&&cancelAnimationFrame(s.current),s.current=m?requestAnimationFrame($):setTimeout($,R)},E=function($){if(!h.current)return!1;var R=$-o.current,O=$-i.current;return!o.current||R>=t||R<0||g&&O>=S},I=function($){return s.current=null,b&&a.current?P($):(a.current=c.current=null,f.current)},T=function(){var $=Date.now();if(E($))return I($);if(h.current){var R=$-o.current,O=$-i.current,N=t-R,U=g?Math.min(N,S-O):N;C(T,U)}},k=function(){for(var $=[],R=0;R<arguments.length;R++)$[R]=arguments[R];var O=Date.now(),N=E(O);if(a.current=$,c.current=r,o.current=O,N){if(!s.current&&h.current)return i.current=o.current,C(T,t),v?P(o.current):f.current;if(g)return C(T,t),P(o.current)}return s.current||C(T,t),f.current};return k.cancel=function(){s.current&&(m?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=c.current=s.current=null},k.isPending=function(){return!!s.current},k.flush=function(){return s.current?I(Date.now()):f.current},k},[v,g,t,S,b,m]);return w}function Sfe(e,t){return e===t}function w$(e){return typeof e=="function"?function(){return e}:e}function Efe(e){var t=u.useState(w$(e)),n=t[0],r=t[1],o=u.useCallback(function(i){return r(w$(i))},[]);return[n,o]}function Pfe(e,t,n){var r=n&&n.equalityFn||Sfe,o=Efe(e),i=o[0],s=o[1],a=xfe(u.useCallback(function(f){return s(f)},[s]),t,n),c=u.useRef(e);return r(c.current,e)||(a(e),c.current=e),[i,a]}function kfe(){const[e,t]=u.useState(""),[n]=Pfe(e,1e3),{list:r,error:o,initializing:i,updateList:s}=Pu("search_online_plugins",{text:n}),a=Al();return o?pA(o):u.createElement(u.Fragment,{},u.createElement(Fo,{value:e,onChange:t,start:u.createElement(Jee),typing:!0,label:"Search text"}),u.createElement(ip,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(wn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:f,branch:p}=c;return u.createElement("div",{},fA(f),c.update?u.createElement(hA,{id:f,then(){s(m=>Jt.find(m,{id:f}).update=!1)}}):u.createElement(Nn,{icon:Iee,title:"Install",progress:c.downloading,disabled:c.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return pt(this,null,function*(){const{id:m}=yield Bt("download_plugin",{id:f,branch:p});(yield pl(oa(`Plugin /${f}/ installed.
414
+ Do you want to start it now?`)))&&(yield mA(m))})}}))}}]}))}const gA={Installed:b$,"Search online":kfe,"Check updates":()=>u.createElement(b$,{updates:!0})},Ife=Object.keys(gA),$fe=Object.values(gA);function Tfe(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(_R,{value:e,onChange(n,r){t(r)}},Ife.map(n=>u.createElement(TR,{label:n,key:n}))),u.createElement($fe[e]))}const Db=[{path:"",icon:Yee,label:"Home",title:"Admin panel",comp:Gue},{path:"fs",icon:Cee,label:"Shared files",comp:hfe},{path:"accounts",icon:jee,comp:vfe},{path:"configuration",icon:OR,comp:que},{path:"monitoring",icon:Wee,comp:_ue},{path:"logs",icon:Nee,comp:bfe},{path:"plugins",icon:_ee,comp:Tfe},{path:"logout",icon:Hee,comp:yfe}];let Q0;function C$({onSelect:e}){var n;const[t]=Xf(!Q0&&"get_status");return Q0||(Q0=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(tv,{sx:{pr:1,bgcolor:"primary.main",color:"primary.contrastText",minHeight:"100%",boxSizing:"border-box",maxHeight:"100vh",display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(ht,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(gr,{variant:"h3"},"HFS"),u.createElement(ht,{pb:1,fontSize:"small"},Q0)),Db.map(r=>u.createElement(fQ,{key:r.path,to:r.path,component:F9,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(wR,{sx:{color:"primary.contrastText"}},u.createElement(r.icon)),u.createElement(nv,{primary:vA(r)}))),u.createElement("img",{src:"hfs-logo.svg",style:{opacity:.7,bottom:0,width:"80%",marginLeft:"auto",marginRight:"auto",flex:1,height:0}}))}function vA(e){var t;return e&&((t=e.label)!=null?t:Jt.capitalize(e.path))}function Mfe({children:e}){const{loginRequired:t}=Al();return t===403?u.createElement(NC,{},u.createElement(Wi,{severity:"error"},"Admin-panel only for localhost"),u.createElement(ht,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(_fe):u.createElement(u.Fragment,{},e)}function _fe(){const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState("");return u.createElement(NC,{},u.createElement(Yf,{values:e,set(i,s){t(Ht(Ae({},e),{[s]:i}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Wi,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return pt(this,null,function*(){try{r(""),yield Rfe(e.username,e.password)}catch(i){r(String(i))}})}}}))}function Rfe(e,t){return pt(this,null,function*(){const n=yield zte(e,t,Bt).catch(r=>{throw(r==null?void 0:r.code)===401?"Wrong username or password":r==="trust"?"Login aborted: server identity cannot be trusted":(r==null?void 0:r.name)==="AbortError"?"Server didn't respond":(r==null?void 0:r.message)||"Unknown error"});if(!n.adminUrl)throw"This account has no Admin access";wn.loginRequired=!1,Ex(n)})}Ex(window.SESSION);function Ex(e){if(!e)return;const{exp:t,username:n}=e;if(wn.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>Bt("refresh_session").then(Ex),o)}function Ofe(){return u.createElement(OV,{theme:jne()},u.createElement(Lfe,{},u.createElement(Mfe,{},u.createElement(L9,{},u.createElement(Afe)))))}function Lfe(e){return u.createElement(ht,Ae({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Afe(){const e=gu().pathname.slice(1),t=Db.find(s=>s.path===e),n=t&&(t.title||vA(t)),[r,o]=u.useState(!1),i=cu("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Ffe,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(bY,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(C$,{onSelect:()=>o(!1)})),u.createElement(ht,{display:"flex",flex:1},i&&u.createElement(C$),u.createElement(ht,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(gr,{variant:"h2",mb:2},n),u.createElement(_9,{},Db.map((s,a)=>u.createElement(AM,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(Mte)))}function Ffe({title:e,openMenu:t}){return u.createElement(xG,{position:"sticky",sx:{mb:2}},u.createElement(MR,{},u.createElement(Jn,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(Vee)),e))}MM(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Ofe)));export{io as c};