@colyseus/monitor 0.18.3 → 0.18.4

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.
@@ -6,7 +6,7 @@ function _k(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Xa=Symbol.for("react.element"),Lk=Symbol.for("react.portal"),Nk=Symbol.for("react.fragment"),Ak=Symbol.for("react.strict_mode"),zk=Symbol.for("react.profiler"),Hk=Symbol.for("react.provider"),Bk=Symbol.for("react.context"),Vk=Symbol.for("react.forward_ref"),Gk=Symbol.for("react.suspense"),Wk=Symbol.for("react.memo"),Uk=Symbol.for("react.lazy"),qv=Symbol.iterator;function Kk(e){return e===null||typeof e!="object"?null:(e=qv&&e[qv]||e["@@iterator"],typeof e=="function"?e:null)}var HC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BC=Object.assign,VC={};function ai(e,t,n){this.props=e,this.context=t,this.refs=VC,this.updater=n||HC}ai.prototype.isReactComponent={};ai.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")};ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GC(){}GC.prototype=ai.prototype;function ch(e,t,n){this.props=e,this.context=t,this.refs=VC,this.updater=n||HC}var uh=ch.prototype=new GC;uh.constructor=ch;BC(uh,ai.prototype);uh.isPureReactComponent=!0;var Yv=Array.isArray,WC=Object.prototype.hasOwnProperty,dh={current:null},UC={key:!0,ref:!0,__self:!0,__source:!0};function KC(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)WC.call(t,r)&&!UC.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Xa,type:e,key:l,ref:s,props:o,_owner:dh.current}}function qk(e,t){return{$$typeof:Xa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ph(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xa}function Yk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qv=/\/+/g;function jp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yk(""+e.key):t.toString(36)}function qc(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xa:case Lk:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+jp(s,0):r,Yv(o)?(n="",e!=null&&(n=e.replace(Qv,"$&/")+"/"),qc(o,t,n,"",function(c){return c})):o!=null&&(ph(o)&&(o=qk(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Qv,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Yv(e))for(var i=0;i<e.length;i++){l=e[i];var a=r+jp(l,i);s+=qc(l,t,n,a,o)}else if(a=Kk(e),typeof a=="function")for(e=a.call(e),i=0;!(l=e.next()).done;)l=l.value,a=r+jp(l,i++),s+=qc(l,t,n,a,o);else if(l==="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 yc(e,t,n){if(e==null)return e;var r=[],o=0;return qc(e,r,"","",function(l){return t.call(n,l,o++)}),r}function Qk(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 In={current:null},Yc={transition:null},Xk={ReactCurrentDispatcher:In,ReactCurrentBatchConfig:Yc,ReactCurrentOwner:dh};function qC(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:yc,forEach:function(e,t,n){yc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yc(e,function(){t++}),t},toArray:function(e){return yc(e,function(t){return t})||[]},only:function(e){if(!ph(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=ai;it.Fragment=Nk;it.Profiler=zk;it.PureComponent=ch;it.StrictMode=Ak;it.Suspense=Gk;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xk;it.act=qC;it.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=BC({},e.props),o=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=dh.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in t)WC.call(t,a)&&!UC.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&i!==void 0?i[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){i=Array(a);for(var c=0;c<a;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:Xa,type:e.type,key:o,ref:l,props:r,_owner:s}};it.createContext=function(e){return e={$$typeof:Bk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hk,_context:e},e.Consumer=e};it.createElement=KC;it.createFactory=function(e){var t=KC.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:Vk,render:e}};it.isValidElement=ph;it.lazy=function(e){return{$$typeof:Uk,_payload:{_status:-1,_result:e},_init:Qk}};it.memo=function(e,t){return{$$typeof:Wk,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Yc.transition;Yc.transition={};try{e()}finally{Yc.transition=t}};it.unstable_act=qC;it.useCallback=function(e,t){return In.current.useCallback(e,t)};it.useContext=function(e){return In.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return In.current.useDeferredValue(e)};it.useEffect=function(e,t){return In.current.useEffect(e,t)};it.useId=function(){return In.current.useId()};it.useImperativeHandle=function(e,t,n){return In.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return In.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return In.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return In.current.useMemo(e,t)};it.useReducer=function(e,t,n){return In.current.useReducer(e,t,n)};it.useRef=function(e){return In.current.useRef(e)};it.useState=function(e){return In.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return In.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return In.current.useTransition()};it.version="18.3.1";zC.exports=it;var d=zC.exports;const tn=ii(d),jf=_k({__proto__:null,default:tn},[d]);/**
9
+ */var Xa=Symbol.for("react.element"),Lk=Symbol.for("react.portal"),Nk=Symbol.for("react.fragment"),Ak=Symbol.for("react.strict_mode"),zk=Symbol.for("react.profiler"),Hk=Symbol.for("react.provider"),Bk=Symbol.for("react.context"),Vk=Symbol.for("react.forward_ref"),Gk=Symbol.for("react.suspense"),Wk=Symbol.for("react.memo"),Uk=Symbol.for("react.lazy"),qv=Symbol.iterator;function Kk(e){return e===null||typeof e!="object"?null:(e=qv&&e[qv]||e["@@iterator"],typeof e=="function"?e:null)}var HC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},BC=Object.assign,VC={};function ai(e,t,n){this.props=e,this.context=t,this.refs=VC,this.updater=n||HC}ai.prototype.isReactComponent={};ai.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")};ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GC(){}GC.prototype=ai.prototype;function uh(e,t,n){this.props=e,this.context=t,this.refs=VC,this.updater=n||HC}var dh=uh.prototype=new GC;dh.constructor=uh;BC(dh,ai.prototype);dh.isPureReactComponent=!0;var Yv=Array.isArray,WC=Object.prototype.hasOwnProperty,ph={current:null},UC={key:!0,ref:!0,__self:!0,__source:!0};function KC(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)WC.call(t,r)&&!UC.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:Xa,type:e,key:l,ref:s,props:o,_owner:ph.current}}function qk(e,t){return{$$typeof:Xa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xa}function Yk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qv=/\/+/g;function _p(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yk(""+e.key):t.toString(36)}function qc(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Xa:case Lk:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+_p(s,0):r,Yv(o)?(n="",e!=null&&(n=e.replace(Qv,"$&/")+"/"),qc(o,t,n,"",function(c){return c})):o!=null&&(fh(o)&&(o=qk(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Qv,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Yv(e))for(var i=0;i<e.length;i++){l=e[i];var a=r+_p(l,i);s+=qc(l,t,n,a,o)}else if(a=Kk(e),typeof a=="function")for(e=a.call(e),i=0;!(l=e.next()).done;)l=l.value,a=r+_p(l,i++),s+=qc(l,t,n,a,o);else if(l==="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 yc(e,t,n){if(e==null)return e;var r=[],o=0;return qc(e,r,"","",function(l){return t.call(n,l,o++)}),r}function Qk(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 In={current:null},Yc={transition:null},Xk={ReactCurrentDispatcher:In,ReactCurrentBatchConfig:Yc,ReactCurrentOwner:ph};function qC(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:yc,forEach:function(e,t,n){yc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yc(e,function(){t++}),t},toArray:function(e){return yc(e,function(t){return t})||[]},only:function(e){if(!fh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=ai;it.Fragment=Nk;it.Profiler=zk;it.PureComponent=uh;it.StrictMode=Ak;it.Suspense=Gk;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xk;it.act=qC;it.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=BC({},e.props),o=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=ph.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in t)WC.call(t,a)&&!UC.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&i!==void 0?i[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){i=Array(a);for(var c=0;c<a;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:Xa,type:e.type,key:o,ref:l,props:r,_owner:s}};it.createContext=function(e){return e={$$typeof:Bk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hk,_context:e},e.Consumer=e};it.createElement=KC;it.createFactory=function(e){var t=KC.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:Vk,render:e}};it.isValidElement=fh;it.lazy=function(e){return{$$typeof:Uk,_payload:{_status:-1,_result:e},_init:Qk}};it.memo=function(e,t){return{$$typeof:Wk,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Yc.transition;Yc.transition={};try{e()}finally{Yc.transition=t}};it.unstable_act=qC;it.useCallback=function(e,t){return In.current.useCallback(e,t)};it.useContext=function(e){return In.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return In.current.useDeferredValue(e)};it.useEffect=function(e,t){return In.current.useEffect(e,t)};it.useId=function(){return In.current.useId()};it.useImperativeHandle=function(e,t,n){return In.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return In.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return In.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return In.current.useMemo(e,t)};it.useReducer=function(e,t,n){return In.current.useReducer(e,t,n)};it.useRef=function(e){return In.current.useRef(e)};it.useState=function(e){return In.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return In.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return In.current.useTransition()};it.version="18.3.1";zC.exports=it;var d=zC.exports;const nn=ii(d),_f=_k({__proto__:null,default:nn},[d]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ function _k(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Zk=d,Jk=Symbol.for("react.element"),eE=Symbol.for("react.fragment"),tE=Object.prototype.hasOwnProperty,nE=Zk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rE={key:!0,ref:!0,__self:!0,__source:!0};function YC(e,t,n){var r,o={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tE.call(t,r)&&!rE.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:Jk,type:e,key:l,ref:s,props:o,_owner:nE.current}}fd.Fragment=eE;fd.jsx=YC;fd.jsxs=YC;AC.exports=fd;var v=AC.exports,QC={exports:{}},er={},XC={exports:{}},ZC={};/**
17
+ */var Zk=d,Jk=Symbol.for("react.element"),eE=Symbol.for("react.fragment"),tE=Object.prototype.hasOwnProperty,nE=Zk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rE={key:!0,ref:!0,__self:!0,__source:!0};function YC(e,t,n){var r,o={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)tE.call(t,r)&&!rE.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:Jk,type:e,key:l,ref:s,props:o,_owner:nE.current}}fd.Fragment=eE;fd.jsx=YC;fd.jsxs=YC;AC.exports=fd;var v=AC.exports,QC={exports:{}},tr={},XC={exports:{}},ZC={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -30,21 +30,21 @@ function _k(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var lE=d,Xn=oE;function ve(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 JC=new Set,ha={};function Ul(e,t){Bs(e,t),Bs(e+"Capture",t)}function Bs(e,t){for(ha[e]=t,e=0;e<t.length;e++)JC.add(t[e])}var wo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_f=Object.prototype.hasOwnProperty,sE=/^[: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]*$/,Xv={},Zv={};function iE(e){return _f.call(Zv,e)?!0:_f.call(Xv,e)?!1:sE.test(e)?Zv[e]=!0:(Xv[e]=!0,!1)}function aE(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 cE(e,t,n,r){if(t===null||typeof t>"u"||aE(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 Mn(e,t,n,r,o,l,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=l,this.removeEmptyString=s}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Mn(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){un[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var fh=/[\-:]([a-z])/g;function mh(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(fh,mh);un[t]=new Mn(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(fh,mh);un[t]=new Mn(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(fh,mh);un[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function hh(e,t,n,r){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cE(t,n,o,r)&&(n=null),r||o===null?iE(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 $o=lE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bc=Symbol.for("react.element"),hs=Symbol.for("react.portal"),gs=Symbol.for("react.fragment"),gh=Symbol.for("react.strict_mode"),Lf=Symbol.for("react.profiler"),ex=Symbol.for("react.provider"),tx=Symbol.for("react.context"),vh=Symbol.for("react.forward_ref"),Nf=Symbol.for("react.suspense"),Af=Symbol.for("react.suspense_list"),yh=Symbol.for("react.memo"),Lo=Symbol.for("react.lazy"),nx=Symbol.for("react.offscreen"),Jv=Symbol.iterator;function Pi(e){return e===null||typeof e!="object"?null:(e=Jv&&e[Jv]||e["@@iterator"],typeof e=="function"?e:null)}var At=Object.assign,_p;function Gi(e){if(_p===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_p=t&&t[1]||""}return`
34
- `+_p+e}var Lp=!1;function Np(e,t){if(!e||Lp)return"";Lp=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
33
+ */var lE=d,Zn=oE;function ve(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 JC=new Set,ha={};function Wl(e,t){Bs(e,t),Bs(e+"Capture",t)}function Bs(e,t){for(ha[e]=t,e=0;e<t.length;e++)JC.add(t[e])}var wo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lf=Object.prototype.hasOwnProperty,sE=/^[: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]*$/,Xv={},Zv={};function iE(e){return Lf.call(Zv,e)?!0:Lf.call(Xv,e)?!1:sE.test(e)?Zv[e]=!0:(Xv[e]=!0,!1)}function aE(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 cE(e,t,n,r){if(t===null||typeof t>"u"||aE(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 Mn(e,t,n,r,o,l,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=l,this.removeEmptyString=s}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Mn(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){un[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var mh=/[\-:]([a-z])/g;function hh(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(mh,hh);un[t]=new Mn(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(mh,hh);un[t]=new Mn(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(mh,hh);un[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function gh(e,t,n,r){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(cE(t,n,o,r)&&(n=null),r||o===null?iE(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 $o=lE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bc=Symbol.for("react.element"),ms=Symbol.for("react.portal"),hs=Symbol.for("react.fragment"),vh=Symbol.for("react.strict_mode"),Nf=Symbol.for("react.profiler"),ex=Symbol.for("react.provider"),tx=Symbol.for("react.context"),yh=Symbol.for("react.forward_ref"),Af=Symbol.for("react.suspense"),zf=Symbol.for("react.suspense_list"),bh=Symbol.for("react.memo"),Lo=Symbol.for("react.lazy"),nx=Symbol.for("react.offscreen"),Jv=Symbol.iterator;function Pi(e){return e===null||typeof e!="object"?null:(e=Jv&&e[Jv]||e["@@iterator"],typeof e=="function"?e:null)}var At=Object.assign,Lp;function Gi(e){if(Lp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Lp=t&&t[1]||""}return`
34
+ `+Lp+e}var Np=!1;function Ap(e,t){if(!e||Np)return"";Np=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
35
35
  `),l=r.stack.split(`
36
36
  `),s=o.length-1,i=l.length-1;1<=s&&0<=i&&o[s]!==l[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==l[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==l[i]){var a=`
37
- `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{Lp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gi(e):""}function uE(e){switch(e.tag){case 5:return Gi(e.type);case 16:return Gi("Lazy");case 13:return Gi("Suspense");case 19:return Gi("SuspenseList");case 0:case 2:case 15:return e=Np(e.type,!1),e;case 11:return e=Np(e.type.render,!1),e;case 1:return e=Np(e.type,!0),e;default:return""}}function zf(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 gs:return"Fragment";case hs:return"Portal";case Lf:return"Profiler";case gh:return"StrictMode";case Nf:return"Suspense";case Af:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tx:return(e.displayName||"Context")+".Consumer";case ex:return(e._context.displayName||"Context")+".Provider";case vh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yh:return t=e.displayName||null,t!==null?t:zf(e.type)||"Memo";case Lo:t=e._payload,e=e._init;try{return zf(e(t))}catch{}}return null}function dE(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 zf(t);case 8:return t===gh?"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 ol(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pE(e){var t=rx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.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 Cc(e){e._valueTracker||(e._valueTracker=pE(e))}function ox(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hf(e,t){var n=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ey(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ol(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 lx(e,t){t=t.checked,t!=null&&hh(e,"checked",t,!1)}function Bf(e,t){lx(e,t);var n=ol(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")?Vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vf(e,t.type,ol(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ty(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 Vf(e,t,n){(t!=="number"||yu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wi=Array.isArray;function Ts(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=""+ol(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 Gf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ve(91));return At({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ny(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ve(92));if(Wi(n)){if(1<n.length)throw Error(ve(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ol(n)}}function sx(e,t){var n=ol(t.value),r=ol(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 ry(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ix(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 Wf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ix(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xc,ax=function(e){return typeof MSApp<"u"&&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(xc=xc||document.createElement("div"),xc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ea={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},fE=["Webkit","ms","Moz","O"];Object.keys(ea).forEach(function(e){fE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ea[t]=ea[e]})});function cx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ea.hasOwnProperty(e)&&ea[e]?(""+t).trim():t+"px"}function ux(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mE=At({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 Uf(e,t){if(t){if(mE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function Kf(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 qf=null;function bh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yf=null,Os=null,Fs=null;function oy(e){if(e=ec(e)){if(typeof Yf!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=yd(t),Yf(e.stateNode,e.type,t))}}function dx(e){Os?Fs?Fs.push(e):Fs=[e]:Os=e}function px(){if(Os){var e=Os,t=Fs;if(Fs=Os=null,oy(e),t)for(e=0;e<t.length;e++)oy(t[e])}}function fx(e,t){return e(t)}function mx(){}var Ap=!1;function hx(e,t,n){if(Ap)return e(t,n);Ap=!0;try{return fx(e,t,n)}finally{Ap=!1,(Os!==null||Fs!==null)&&(mx(),px())}}function va(e,t){var n=e.stateNode;if(n===null)return null;var r=yd(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(ve(231,t,typeof n));return n}var Qf=!1;if(wo)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){Qf=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{Qf=!1}function hE(e,t,n,r,o,l,s,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ta=!1,bu=null,Cu=!1,Xf=null,gE={onError:function(e){ta=!0,bu=e}};function vE(e,t,n,r,o,l,s,i,a){ta=!1,bu=null,hE.apply(gE,arguments)}function yE(e,t,n,r,o,l,s,i,a){if(vE.apply(this,arguments),ta){if(ta){var c=bu;ta=!1,bu=null}else throw Error(ve(198));Cu||(Cu=!0,Xf=c)}}function Kl(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 gx(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 ly(e){if(Kl(e)!==e)throw Error(ve(188))}function bE(e){var t=e.alternate;if(!t){if(t=Kl(e),t===null)throw Error(ve(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return ly(o),e;if(l===r)return ly(o),t;l=l.sibling}throw Error(ve(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s){for(i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s)throw Error(ve(189))}}if(n.alternate!==r)throw Error(ve(190))}if(n.tag!==3)throw Error(ve(188));return n.stateNode.current===n?e:t}function vx(e){return e=bE(e),e!==null?yx(e):null}function yx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yx(e);if(t!==null)return t;e=e.sibling}return null}var bx=Xn.unstable_scheduleCallback,sy=Xn.unstable_cancelCallback,CE=Xn.unstable_shouldYield,xE=Xn.unstable_requestPaint,Vt=Xn.unstable_now,wE=Xn.unstable_getCurrentPriorityLevel,Ch=Xn.unstable_ImmediatePriority,Cx=Xn.unstable_UserBlockingPriority,xu=Xn.unstable_NormalPriority,SE=Xn.unstable_LowPriority,xx=Xn.unstable_IdlePriority,md=null,Zr=null;function PE(e){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(md,e,void 0,(e.current.flags&128)===128)}catch{}}var _r=Math.clz32?Math.clz32:IE,kE=Math.log,EE=Math.LN2;function IE(e){return e>>>=0,e===0?32:31-(kE(e)/EE|0)|0}var wc=64,Sc=4194304;function Ui(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 wu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=Ui(i):(l&=s,l!==0&&(r=Ui(l)))}else s=n&~o,s!==0?r=Ui(s):l!==0&&(r=Ui(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-_r(t),o=1<<n,r|=e[n],t&=~o;return r}function ME(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 $E(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-_r(l),i=1<<s,a=o[s];a===-1?(!(i&n)||i&r)&&(o[s]=ME(i,t)):a<=t&&(e.expiredLanes|=i),l&=~i}}function Zf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wx(){var e=wc;return wc<<=1,!(wc&4194240)&&(wc=64),e}function zp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_r(t),e[t]=n}function RE(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-_r(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function xh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_r(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xt=0;function Sx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Px,wh,kx,Ex,Ix,Jf=!1,Pc=[],Yo=null,Qo=null,Xo=null,ya=new Map,ba=new Map,Ho=[],TE="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 iy(e,t){switch(e){case"focusin":case"focusout":Yo=null;break;case"dragenter":case"dragleave":Qo=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Ei(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=ec(t),t!==null&&wh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function OE(e,t,n,r,o){switch(t){case"focusin":return Yo=Ei(Yo,e,t,n,r,o),!0;case"dragenter":return Qo=Ei(Qo,e,t,n,r,o),!0;case"mouseover":return Xo=Ei(Xo,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return ya.set(l,Ei(ya.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ba.set(l,Ei(ba.get(l)||null,e,t,n,r,o)),!0}return!1}function Mx(e){var t=Cl(e.target);if(t!==null){var n=Kl(t);if(n!==null){if(t=n.tag,t===13){if(t=gx(n),t!==null){e.blockedOn=t,Ix(e.priority,function(){kx(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 Qc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=em(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qf=r,n.target.dispatchEvent(r),qf=null}else return t=ec(n),t!==null&&wh(t),e.blockedOn=n,!1;t.shift()}return!0}function ay(e,t,n){Qc(e)&&n.delete(t)}function FE(){Jf=!1,Yo!==null&&Qc(Yo)&&(Yo=null),Qo!==null&&Qc(Qo)&&(Qo=null),Xo!==null&&Qc(Xo)&&(Xo=null),ya.forEach(ay),ba.forEach(ay)}function Ii(e,t){e.blockedOn===t&&(e.blockedOn=null,Jf||(Jf=!0,Xn.unstable_scheduleCallback(Xn.unstable_NormalPriority,FE)))}function Ca(e){function t(o){return Ii(o,e)}if(0<Pc.length){Ii(Pc[0],e);for(var n=1;n<Pc.length;n++){var r=Pc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yo!==null&&Ii(Yo,e),Qo!==null&&Ii(Qo,e),Xo!==null&&Ii(Xo,e),ya.forEach(t),ba.forEach(t),n=0;n<Ho.length;n++)r=Ho[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ho.length&&(n=Ho[0],n.blockedOn===null);)Mx(n),n.blockedOn===null&&Ho.shift()}var Ds=$o.ReactCurrentBatchConfig,Su=!0;function DE(e,t,n,r){var o=xt,l=Ds.transition;Ds.transition=null;try{xt=1,Sh(e,t,n,r)}finally{xt=o,Ds.transition=l}}function jE(e,t,n,r){var o=xt,l=Ds.transition;Ds.transition=null;try{xt=4,Sh(e,t,n,r)}finally{xt=o,Ds.transition=l}}function Sh(e,t,n,r){if(Su){var o=em(e,t,n,r);if(o===null)Qp(e,t,r,Pu,n),iy(e,r);else if(OE(o,e,t,n,r))r.stopPropagation();else if(iy(e,r),t&4&&-1<TE.indexOf(e)){for(;o!==null;){var l=ec(o);if(l!==null&&Px(l),l=em(e,t,n,r),l===null&&Qp(e,t,r,Pu,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Qp(e,t,r,null,n)}}var Pu=null;function em(e,t,n,r){if(Pu=null,e=bh(r),e=Cl(e),e!==null)if(t=Kl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gx(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 Pu=e,null}function $x(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(wE()){case Ch:return 1;case Cx:return 4;case xu:case SE:return 16;case xx:return 536870912;default:return 16}default:return 16}}var Wo=null,Ph=null,Xc=null;function Rx(){if(Xc)return Xc;var e,t=Ph,n=t.length,r,o="value"in Wo?Wo.value:Wo.textContent,l=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[l-r];r++);return Xc=o.slice(e,1<r?1-r:void 0)}function Zc(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 kc(){return!0}function cy(){return!1}function tr(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?kc:cy,this.isPropagationStopped=cy,this}return At(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=kc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kc)},persist:function(){},isPersistent:kc}),t}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kh=tr(ci),Ja=At({},ci,{view:0,detail:0}),_E=tr(Ja),Hp,Bp,Mi,hd=At({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eh,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!==Mi&&(Mi&&e.type==="mousemove"?(Hp=e.screenX-Mi.screenX,Bp=e.screenY-Mi.screenY):Bp=Hp=0,Mi=e),Hp)},movementY:function(e){return"movementY"in e?e.movementY:Bp}}),uy=tr(hd),LE=At({},hd,{dataTransfer:0}),NE=tr(LE),AE=At({},Ja,{relatedTarget:0}),Vp=tr(AE),zE=At({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),HE=tr(zE),BE=At({},ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),VE=tr(BE),GE=At({},ci,{data:0}),dy=tr(GE),WE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KE[e])?!!t[e]:!1}function Eh(){return qE}var YE=At({},Ja,{key:function(e){if(e.key){var t=WE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eh,charCode:function(e){return e.type==="keypress"?Zc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QE=tr(YE),XE=At({},hd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),py=tr(XE),ZE=At({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eh}),JE=tr(ZE),eI=At({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),tI=tr(eI),nI=At({},hd,{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}),rI=tr(nI),oI=[9,13,27,32],Ih=wo&&"CompositionEvent"in window,na=null;wo&&"documentMode"in document&&(na=document.documentMode);var lI=wo&&"TextEvent"in window&&!na,Tx=wo&&(!Ih||na&&8<na&&11>=na),fy=" ",my=!1;function Ox(e,t){switch(e){case"keyup":return oI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vs=!1;function sI(e,t){switch(e){case"compositionend":return Fx(t);case"keypress":return t.which!==32?null:(my=!0,fy);case"textInput":return e=t.data,e===fy&&my?null:e;default:return null}}function iI(e,t){if(vs)return e==="compositionend"||!Ih&&Ox(e,t)?(e=Rx(),Xc=Ph=Wo=null,vs=!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 Tx&&t.locale!=="ko"?null:t.data;default:return null}}var aI={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 hy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aI[e.type]:t==="textarea"}function Dx(e,t,n,r){dx(r),t=ku(t,"onChange"),0<t.length&&(n=new kh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ra=null,xa=null;function cI(e){Wx(e,0)}function gd(e){var t=Cs(e);if(ox(t))return e}function uI(e,t){if(e==="change")return t}var jx=!1;if(wo){var Gp;if(wo){var Wp="oninput"in document;if(!Wp){var gy=document.createElement("div");gy.setAttribute("oninput","return;"),Wp=typeof gy.oninput=="function"}Gp=Wp}else Gp=!1;jx=Gp&&(!document.documentMode||9<document.documentMode)}function vy(){ra&&(ra.detachEvent("onpropertychange",_x),xa=ra=null)}function _x(e){if(e.propertyName==="value"&&gd(xa)){var t=[];Dx(t,xa,e,bh(e)),hx(cI,t)}}function dI(e,t,n){e==="focusin"?(vy(),ra=t,xa=n,ra.attachEvent("onpropertychange",_x)):e==="focusout"&&vy()}function pI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gd(xa)}function fI(e,t){if(e==="click")return gd(t)}function mI(e,t){if(e==="input"||e==="change")return gd(t)}function hI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ar=typeof Object.is=="function"?Object.is:hI;function wa(e,t){if(Ar(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(!_f.call(t,o)||!Ar(e[o],t[o]))return!1}return!0}function yy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function by(e,t){var n=yy(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=yy(n)}}function Lx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nx(){for(var e=window,t=yu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yu(e.document)}return t}function Mh(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 gI(e){var t=Nx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lx(n.ownerDocument.documentElement,n)){if(r!==null&&Mh(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=by(n,l);var s=by(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(),l>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 vI=wo&&"documentMode"in document&&11>=document.documentMode,ys=null,tm=null,oa=null,nm=!1;function Cy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nm||ys==null||ys!==yu(r)||(r=ys,"selectionStart"in r&&Mh(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}),oa&&wa(oa,r)||(oa=r,r=ku(tm,"onSelect"),0<r.length&&(t=new kh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ys)))}function Ec(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bs={animationend:Ec("Animation","AnimationEnd"),animationiteration:Ec("Animation","AnimationIteration"),animationstart:Ec("Animation","AnimationStart"),transitionend:Ec("Transition","TransitionEnd")},Up={},Ax={};wo&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);function vd(e){if(Up[e])return Up[e];if(!bs[e])return e;var t=bs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ax)return Up[e]=t[n];return e}var zx=vd("animationend"),Hx=vd("animationiteration"),Bx=vd("animationstart"),Vx=vd("transitionend"),Gx=new Map,xy="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){Gx.set(e,t),Ul(t,[e])}for(var Kp=0;Kp<xy.length;Kp++){var qp=xy[Kp],yI=qp.toLowerCase(),bI=qp[0].toUpperCase()+qp.slice(1);il(yI,"on"+bI)}il(zx,"onAnimationEnd");il(Hx,"onAnimationIteration");il(Bx,"onAnimationStart");il("dblclick","onDoubleClick");il("focusin","onFocus");il("focusout","onBlur");il(Vx,"onTransitionEnd");Bs("onMouseEnter",["mouseout","mouseover"]);Bs("onMouseLeave",["mouseout","mouseover"]);Bs("onPointerEnter",["pointerout","pointerover"]);Bs("onPointerLeave",["pointerout","pointerover"]);Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),CI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function wy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yE(r,t,void 0,e),e.currentTarget=null}function Wx(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 l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==l&&o.isPropagationStopped())break e;wy(o,i,c),l=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,c=i.currentTarget,i=i.listener,a!==l&&o.isPropagationStopped())break e;wy(o,i,c),l=a}}}if(Cu)throw e=Xf,Cu=!1,Xf=null,e}function $t(e,t){var n=t[im];n===void 0&&(n=t[im]=new Set);var r=e+"__bubble";n.has(r)||(Ux(t,e,2,!1),n.add(r))}function Yp(e,t,n){var r=0;t&&(r|=4),Ux(n,e,r,t)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[Ic]){e[Ic]=!0,JC.forEach(function(n){n!=="selectionchange"&&(CI.has(n)||Yp(n,!1,e),Yp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ic]||(t[Ic]=!0,Yp("selectionchange",!1,t))}}function Ux(e,t,n,r){switch($x(t)){case 1:var o=DE;break;case 4:o=jE;break;default:o=Sh}n=o.bind(null,t,n,e),o=void 0,!Qf||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 Qp(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Cl(i),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}i=i.parentNode}}r=r.return}hx(function(){var c=l,u=bh(n),p=[];e:{var f=Gx.get(e);if(f!==void 0){var g=kh,h=e;switch(e){case"keypress":if(Zc(n)===0)break e;case"keydown":case"keyup":g=QE;break;case"focusin":h="focus",g=Vp;break;case"focusout":h="blur",g=Vp;break;case"beforeblur":case"afterblur":g=Vp;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":g=uy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=NE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=JE;break;case zx:case Hx:case Bx:g=HE;break;case Vx:g=tI;break;case"scroll":g=_E;break;case"wheel":g=rI;break;case"copy":case"cut":case"paste":g=VE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=py}var b=(t&4)!==0,w=!b&&e==="scroll",C=b?f!==null?f+"Capture":null:f;b=[];for(var y=c,x;y!==null;){x=y;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,C!==null&&(S=va(y,C),S!=null&&b.push(Pa(y,S,x)))),w)break;y=y.return}0<b.length&&(f=new g(f,h,null,n,u),p.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==qf&&(h=n.relatedTarget||n.fromElement)&&(Cl(h)||h[So]))break e;if((g||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,g?(h=n.relatedTarget||n.toElement,g=c,h=h?Cl(h):null,h!==null&&(w=Kl(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(g=null,h=c),g!==h)){if(b=uy,S="onMouseLeave",C="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=py,S="onPointerLeave",C="onPointerEnter",y="pointer"),w=g==null?f:Cs(g),x=h==null?f:Cs(h),f=new b(S,y+"leave",g,n,u),f.target=w,f.relatedTarget=x,S=null,Cl(u)===c&&(b=new b(C,y+"enter",h,n,u),b.target=x,b.relatedTarget=w,S=b),w=S,g&&h)t:{for(b=g,C=h,y=0,x=b;x;x=es(x))y++;for(x=0,S=C;S;S=es(S))x++;for(;0<y-x;)b=es(b),y--;for(;0<x-y;)C=es(C),x--;for(;y--;){if(b===C||C!==null&&b===C.alternate)break t;b=es(b),C=es(C)}b=null}else b=null;g!==null&&Sy(p,f,g,b,!1),h!==null&&w!==null&&Sy(p,w,h,b,!0)}}e:{if(f=c?Cs(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var T=uI;else if(hy(f))if(jx)T=mI;else{T=pI;var P=dI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=fI);if(T&&(T=T(e,c))){Dx(p,T,n,u);break e}P&&P(e,f,c),e==="focusout"&&(P=f._wrapperState)&&P.controlled&&f.type==="number"&&Vf(f,"number",f.value)}switch(P=c?Cs(c):window,e){case"focusin":(hy(P)||P.contentEditable==="true")&&(ys=P,tm=c,oa=null);break;case"focusout":oa=tm=ys=null;break;case"mousedown":nm=!0;break;case"contextmenu":case"mouseup":case"dragend":nm=!1,Cy(p,n,u);break;case"selectionchange":if(vI)break;case"keydown":case"keyup":Cy(p,n,u)}var k;if(Ih)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else vs?Ox(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Tx&&n.locale!=="ko"&&(vs||E!=="onCompositionStart"?E==="onCompositionEnd"&&vs&&(k=Rx()):(Wo=u,Ph="value"in Wo?Wo.value:Wo.textContent,vs=!0)),P=ku(c,E),0<P.length&&(E=new dy(E,e,null,n,u),p.push({event:E,listeners:P}),k?E.data=k:(k=Fx(n),k!==null&&(E.data=k)))),(k=lI?sI(e,n):iI(e,n))&&(c=ku(c,"onBeforeInput"),0<c.length&&(u=new dy("onBeforeInput","beforeinput",null,n,u),p.push({event:u,listeners:c}),u.data=k))}Wx(p,t)})}function Pa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ku(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=va(e,n),l!=null&&r.unshift(Pa(e,l,o)),l=va(e,t),l!=null&&r.push(Pa(e,l,o))),e=e.return}return r}function es(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sy(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,o?(a=va(n,l),a!=null&&s.unshift(Pa(n,a,i))):o||(a=va(n,l),a!=null&&s.push(Pa(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var xI=/\r\n?/g,wI=/\u0000|\uFFFD/g;function Py(e){return(typeof e=="string"?e:""+e).replace(xI,`
38
- `).replace(wI,"")}function Mc(e,t,n){if(t=Py(t),Py(e)!==t&&n)throw Error(ve(425))}function Eu(){}var rm=null,om=null;function lm(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 sm=typeof setTimeout=="function"?setTimeout:void 0,SI=typeof clearTimeout=="function"?clearTimeout:void 0,ky=typeof Promise=="function"?Promise:void 0,PI=typeof queueMicrotask=="function"?queueMicrotask:typeof ky<"u"?function(e){return ky.resolve(null).then(e).catch(kI)}:sm;function kI(e){setTimeout(function(){throw e})}function Xp(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),Ca(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ca(t)}function Zo(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 Ey(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 ui=Math.random().toString(36).slice(2),Xr="__reactFiber$"+ui,ka="__reactProps$"+ui,So="__reactContainer$"+ui,im="__reactEvents$"+ui,EI="__reactListeners$"+ui,II="__reactHandles$"+ui;function Cl(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[So]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ey(e);e!==null;){if(n=e[Xr])return n;e=Ey(e)}return t}e=n,n=e.parentNode}return null}function ec(e){return e=e[Xr]||e[So],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ve(33))}function yd(e){return e[ka]||null}var am=[],xs=-1;function al(e){return{current:e}}function Tt(e){0>xs||(e.current=am[xs],am[xs]=null,xs--)}function Mt(e,t){xs++,am[xs]=e.current,e.current=t}var ll={},Cn=al(ll),Dn=al(!1),jl=ll;function Vs(e,t){var n=e.type.contextTypes;if(!n)return ll;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function jn(e){return e=e.childContextTypes,e!=null}function Iu(){Tt(Dn),Tt(Cn)}function Iy(e,t,n){if(Cn.current!==ll)throw Error(ve(168));Mt(Cn,t),Mt(Dn,n)}function Kx(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(ve(108,dE(e)||"Unknown",o));return At({},n,r)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ll,jl=Cn.current,Mt(Cn,e),Mt(Dn,Dn.current),!0}function My(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=Kx(e,t,jl),r.__reactInternalMemoizedMergedChildContext=e,Tt(Dn),Tt(Cn),Mt(Cn,e)):Tt(Dn),Mt(Dn,n)}var mo=null,bd=!1,Zp=!1;function qx(e){mo===null?mo=[e]:mo.push(e)}function MI(e){bd=!0,qx(e)}function cl(){if(!Zp&&mo!==null){Zp=!0;var e=0,t=xt;try{var n=mo;for(xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mo=null,bd=!1}catch(o){throw mo!==null&&(mo=mo.slice(e+1)),bx(Ch,cl),o}finally{xt=t,Zp=!1}}return null}var ws=[],Ss=0,$u=null,Ru=0,cr=[],ur=0,_l=null,vo=1,yo="";function hl(e,t){ws[Ss++]=Ru,ws[Ss++]=$u,$u=e,Ru=t}function Yx(e,t,n){cr[ur++]=vo,cr[ur++]=yo,cr[ur++]=_l,_l=e;var r=vo;e=yo;var o=32-_r(r)-1;r&=~(1<<o),n+=1;var l=32-_r(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,vo=1<<32-_r(t)+o|n<<o|r,yo=l+e}else vo=1<<l|n<<o|r,yo=e}function $h(e){e.return!==null&&(hl(e,1),Yx(e,1,0))}function Rh(e){for(;e===$u;)$u=ws[--Ss],ws[Ss]=null,Ru=ws[--Ss],ws[Ss]=null;for(;e===_l;)_l=cr[--ur],cr[ur]=null,yo=cr[--ur],cr[ur]=null,vo=cr[--ur],cr[ur]=null}var Yn=null,qn=null,Dt=!1,Or=null;function Qx(e,t){var n=pr(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 $y(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,Yn=e,qn=Zo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yn=e,qn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_l!==null?{id:vo,overflow:yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yn=e,qn=null,!0):!1;default:return!1}}function cm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function um(e){if(Dt){var t=qn;if(t){var n=t;if(!$y(e,t)){if(cm(e))throw Error(ve(418));t=Zo(n.nextSibling);var r=Yn;t&&$y(e,t)?Qx(r,n):(e.flags=e.flags&-4097|2,Dt=!1,Yn=e)}}else{if(cm(e))throw Error(ve(418));e.flags=e.flags&-4097|2,Dt=!1,Yn=e}}}function Ry(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yn=e}function $c(e){if(e!==Yn)return!1;if(!Dt)return Ry(e),Dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lm(e.type,e.memoizedProps)),t&&(t=qn)){if(cm(e))throw Xx(),Error(ve(418));for(;t;)Qx(e,t),t=Zo(t.nextSibling)}if(Ry(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ve(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qn=Zo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qn=null}}else qn=Yn?Zo(e.stateNode.nextSibling):null;return!0}function Xx(){for(var e=qn;e;)e=Zo(e.nextSibling)}function Gs(){qn=Yn=null,Dt=!1}function Th(e){Or===null?Or=[e]:Or.push(e)}var $I=$o.ReactCurrentBatchConfig;function $i(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(ve(309));var r=n.stateNode}if(!r)throw Error(ve(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var i=o.refs;s===null?delete i[l]:i[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(ve(284));if(!n._owner)throw Error(ve(290,e))}return e}function Rc(e,t){throw e=Object.prototype.toString.call(t),Error(ve(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ty(e){var t=e._init;return t(e._payload)}function Zx(e){function t(C,y){if(e){var x=C.deletions;x===null?(C.deletions=[y],C.flags|=16):x.push(y)}}function n(C,y){if(!e)return null;for(;y!==null;)t(C,y),y=y.sibling;return null}function r(C,y){for(C=new Map;y!==null;)y.key!==null?C.set(y.key,y):C.set(y.index,y),y=y.sibling;return C}function o(C,y){return C=nl(C,y),C.index=0,C.sibling=null,C}function l(C,y,x){return C.index=x,e?(x=C.alternate,x!==null?(x=x.index,x<y?(C.flags|=2,y):x):(C.flags|=2,y)):(C.flags|=1048576,y)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function i(C,y,x,S){return y===null||y.tag!==6?(y=lf(x,C.mode,S),y.return=C,y):(y=o(y,x),y.return=C,y)}function a(C,y,x,S){var T=x.type;return T===gs?u(C,y,x.props.children,S,x.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Lo&&Ty(T)===y.type)?(S=o(y,x.props),S.ref=$i(C,y,x),S.return=C,S):(S=lu(x.type,x.key,x.props,null,C.mode,S),S.ref=$i(C,y,x),S.return=C,S)}function c(C,y,x,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=sf(x,C.mode,S),y.return=C,y):(y=o(y,x.children||[]),y.return=C,y)}function u(C,y,x,S,T){return y===null||y.tag!==7?(y=$l(x,C.mode,S,T),y.return=C,y):(y=o(y,x),y.return=C,y)}function p(C,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=lf(""+y,C.mode,x),y.return=C,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case bc:return x=lu(y.type,y.key,y.props,null,C.mode,x),x.ref=$i(C,null,y),x.return=C,x;case hs:return y=sf(y,C.mode,x),y.return=C,y;case Lo:var S=y._init;return p(C,S(y._payload),x)}if(Wi(y)||Pi(y))return y=$l(y,C.mode,x,null),y.return=C,y;Rc(C,y)}return null}function f(C,y,x,S){var T=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return T!==null?null:i(C,y,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case bc:return x.key===T?a(C,y,x,S):null;case hs:return x.key===T?c(C,y,x,S):null;case Lo:return T=x._init,f(C,y,T(x._payload),S)}if(Wi(x)||Pi(x))return T!==null?null:u(C,y,x,S,null);Rc(C,x)}return null}function g(C,y,x,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return C=C.get(x)||null,i(y,C,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case bc:return C=C.get(S.key===null?x:S.key)||null,a(y,C,S,T);case hs:return C=C.get(S.key===null?x:S.key)||null,c(y,C,S,T);case Lo:var P=S._init;return g(C,y,x,P(S._payload),T)}if(Wi(S)||Pi(S))return C=C.get(x)||null,u(y,C,S,T,null);Rc(y,S)}return null}function h(C,y,x,S){for(var T=null,P=null,k=y,E=y=0,_=null;k!==null&&E<x.length;E++){k.index>E?(_=k,k=null):_=k.sibling;var R=f(C,k,x[E],S);if(R===null){k===null&&(k=_);break}e&&k&&R.alternate===null&&t(C,k),y=l(R,y,E),P===null?T=R:P.sibling=R,P=R,k=_}if(E===x.length)return n(C,k),Dt&&hl(C,E),T;if(k===null){for(;E<x.length;E++)k=p(C,x[E],S),k!==null&&(y=l(k,y,E),P===null?T=k:P.sibling=k,P=k);return Dt&&hl(C,E),T}for(k=r(C,k);E<x.length;E++)_=g(k,C,E,x[E],S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?E:_.key),y=l(_,y,E),P===null?T=_:P.sibling=_,P=_);return e&&k.forEach(function(F){return t(C,F)}),Dt&&hl(C,E),T}function b(C,y,x,S){var T=Pi(x);if(typeof T!="function")throw Error(ve(150));if(x=T.call(x),x==null)throw Error(ve(151));for(var P=T=null,k=y,E=y=0,_=null,R=x.next();k!==null&&!R.done;E++,R=x.next()){k.index>E?(_=k,k=null):_=k.sibling;var F=f(C,k,R.value,S);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(C,k),y=l(F,y,E),P===null?T=F:P.sibling=F,P=F,k=_}if(R.done)return n(C,k),Dt&&hl(C,E),T;if(k===null){for(;!R.done;E++,R=x.next())R=p(C,R.value,S),R!==null&&(y=l(R,y,E),P===null?T=R:P.sibling=R,P=R);return Dt&&hl(C,E),T}for(k=r(C,k);!R.done;E++,R=x.next())R=g(k,C,E,R.value,S),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?E:R.key),y=l(R,y,E),P===null?T=R:P.sibling=R,P=R);return e&&k.forEach(function(L){return t(C,L)}),Dt&&hl(C,E),T}function w(C,y,x,S){if(typeof x=="object"&&x!==null&&x.type===gs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case bc:e:{for(var T=x.key,P=y;P!==null;){if(P.key===T){if(T=x.type,T===gs){if(P.tag===7){n(C,P.sibling),y=o(P,x.props.children),y.return=C,C=y;break e}}else if(P.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Lo&&Ty(T)===P.type){n(C,P.sibling),y=o(P,x.props),y.ref=$i(C,P,x),y.return=C,C=y;break e}n(C,P);break}else t(C,P);P=P.sibling}x.type===gs?(y=$l(x.props.children,C.mode,S,x.key),y.return=C,C=y):(S=lu(x.type,x.key,x.props,null,C.mode,S),S.ref=$i(C,y,x),S.return=C,C=S)}return s(C);case hs:e:{for(P=x.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(C,y.sibling),y=o(y,x.children||[]),y.return=C,C=y;break e}else{n(C,y);break}else t(C,y);y=y.sibling}y=sf(x,C.mode,S),y.return=C,C=y}return s(C);case Lo:return P=x._init,w(C,y,P(x._payload),S)}if(Wi(x))return h(C,y,x,S);if(Pi(x))return b(C,y,x,S);Rc(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(C,y.sibling),y=o(y,x),y.return=C,C=y):(n(C,y),y=lf(x,C.mode,S),y.return=C,C=y),s(C)):n(C,y)}return w}var Ws=Zx(!0),Jx=Zx(!1),Tu=al(null),Ou=null,Ps=null,Oh=null;function Fh(){Oh=Ps=Ou=null}function Dh(e){var t=Tu.current;Tt(Tu),e._currentValue=t}function dm(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 js(e,t){Ou=e,Oh=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fn=!0),e.firstContext=null)}function hr(e){var t=e._currentValue;if(Oh!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(Ou===null)throw Error(ve(308));Ps=e,Ou.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var xl=null;function jh(e){xl===null?xl=[e]:xl.push(e)}function ew(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,jh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Po(e,r)}function Po(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 No=!1;function _h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tw(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 Co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ft&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Po(e,n)}return o=r.interleaved,o===null?(t.next=t,jh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Po(e,n)}function Jc(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,xh(e,n)}}function Oy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 Fu(e,t,n,r){var o=e.updateQueue;No=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var a=i,c=a.next;a.next=null,s===null?l=c:s.next=c,s=a;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=a))}if(l!==null){var p=o.baseState;s=0,u=c=a=null,i=l;do{var f=i.lane,g=i.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,b=i;switch(f=t,g=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){p=h.call(g,p,f);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,f=typeof h=="function"?h.call(g,p,f):h,f==null)break e;p=At({},p,f);break e;case 2:No=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else g={eventTime:g,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=g,a=p):u=u.next=g,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Nl|=s,e.lanes=s,e.memoizedState=p}}function Fy(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(ve(191,o));o.call(r)}}}var tc={},Jr=al(tc),Ea=al(tc),Ia=al(tc);function wl(e){if(e===tc)throw Error(ve(174));return e}function Lh(e,t){switch(Mt(Ia,t),Mt(Ea,e),Mt(Jr,tc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wf(t,e)}Tt(Jr),Mt(Jr,t)}function Us(){Tt(Jr),Tt(Ea),Tt(Ia)}function nw(e){wl(Ia.current);var t=wl(Jr.current),n=Wf(t,e.type);t!==n&&(Mt(Ea,e),Mt(Jr,n))}function Nh(e){Ea.current===e&&(Tt(Jr),Tt(Ea))}var Lt=al(0);function Du(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 Jp=[];function Ah(){for(var e=0;e<Jp.length;e++)Jp[e]._workInProgressVersionPrimary=null;Jp.length=0}var eu=$o.ReactCurrentDispatcher,ef=$o.ReactCurrentBatchConfig,Ll=0,Nt=null,Qt=null,en=null,ju=!1,la=!1,Ma=0,RI=0;function hn(){throw Error(ve(321))}function zh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function Hh(e,t,n,r,o,l){if(Ll=l,Nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eu.current=e===null||e.memoizedState===null?DI:jI,e=n(r,o),la){l=0;do{if(la=!1,Ma=0,25<=l)throw Error(ve(301));l+=1,en=Qt=null,t.updateQueue=null,eu.current=_I,e=n(r,o)}while(la)}if(eu.current=_u,t=Qt!==null&&Qt.next!==null,Ll=0,en=Qt=Nt=null,ju=!1,t)throw Error(ve(300));return e}function Bh(){var e=Ma!==0;return Ma=0,e}function Ur(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return en===null?Nt.memoizedState=en=e:en=en.next=e,en}function gr(){if(Qt===null){var e=Nt.alternate;e=e!==null?e.memoizedState:null}else e=Qt.next;var t=en===null?Nt.memoizedState:en.next;if(t!==null)en=t,Qt=e;else{if(e===null)throw Error(ve(310));Qt=e,e={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},en===null?Nt.memoizedState=en=e:en=en.next=e}return en}function $a(e,t){return typeof t=="function"?t(e):t}function tf(e){var t=gr(),n=t.queue;if(n===null)throw Error(ve(311));n.lastRenderedReducer=e;var r=Qt,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var i=s=null,a=null,c=l;do{var u=c.lane;if((Ll&u)===u)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=p,s=r):a=a.next=p,Nt.lanes|=u,Nl|=u}c=c.next}while(c!==null&&c!==l);a===null?s=r:a.next=i,Ar(r,t.memoizedState)||(Fn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,Nt.lanes|=l,Nl|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nf(e){var t=gr(),n=t.queue;if(n===null)throw Error(ve(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);Ar(l,t.memoizedState)||(Fn=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function rw(){}function ow(e,t){var n=Nt,r=gr(),o=t(),l=!Ar(r.memoizedState,o);if(l&&(r.memoizedState=o,Fn=!0),r=r.queue,Vh(iw.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||en!==null&&en.memoizedState.tag&1){if(n.flags|=2048,Ra(9,sw.bind(null,n,r,o,t),void 0,null),nn===null)throw Error(ve(349));Ll&30||lw(n,t,o)}return o}function lw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sw(e,t,n,r){t.value=n,t.getSnapshot=r,aw(t)&&cw(e)}function iw(e,t,n){return n(function(){aw(t)&&cw(e)})}function aw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function cw(e){var t=Po(e,1);t!==null&&Lr(t,e,1,-1)}function Dy(e){var t=Ur();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:e},t.queue=e,e=e.dispatch=FI.bind(null,Nt,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.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 uw(){return gr().memoizedState}function tu(e,t,n,r){var o=Ur();Nt.flags|=e,o.memoizedState=Ra(1|t,n,void 0,r===void 0?null:r)}function Cd(e,t,n,r){var o=gr();r=r===void 0?null:r;var l=void 0;if(Qt!==null){var s=Qt.memoizedState;if(l=s.destroy,r!==null&&zh(r,s.deps)){o.memoizedState=Ra(t,n,l,r);return}}Nt.flags|=e,o.memoizedState=Ra(1|t,n,l,r)}function jy(e,t){return tu(8390656,8,e,t)}function Vh(e,t){return Cd(2048,8,e,t)}function dw(e,t){return Cd(4,2,e,t)}function pw(e,t){return Cd(4,4,e,t)}function fw(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 mw(e,t,n){return n=n!=null?n.concat([e]):null,Cd(4,4,fw.bind(null,t,e),n)}function Gh(){}function hw(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gw(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vw(e,t,n){return Ll&21?(Ar(n,t)||(n=wx(),Nt.lanes|=n,Nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fn=!0),e.memoizedState=n)}function TI(e,t){var n=xt;xt=n!==0&&4>n?n:4,e(!0);var r=ef.transition;ef.transition={};try{e(!1),t()}finally{xt=n,ef.transition=r}}function yw(){return gr().memoizedState}function OI(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bw(e))Cw(t,n);else if(n=ew(e,t,n,r),n!==null){var o=kn();Lr(n,e,r,o),xw(n,t,r)}}function FI(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bw(e))Cw(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,i=l(s,n);if(o.hasEagerState=!0,o.eagerState=i,Ar(i,s)){var a=t.interleaved;a===null?(o.next=o,jh(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=ew(e,t,o,r),n!==null&&(o=kn(),Lr(n,e,r,o),xw(n,t,r))}}function bw(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function Cw(e,t){la=ju=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xh(e,n)}}var _u={readContext:hr,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useInsertionEffect:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useSyncExternalStore:hn,useId:hn,unstable_isNewReconciler:!1},DI={readContext:hr,useCallback:function(e,t){return Ur().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:jy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tu(4194308,4,fw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){return tu(4,2,e,t)},useMemo:function(e,t){var n=Ur();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ur();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=OI.bind(null,Nt,e),[r.memoizedState,e]},useRef:function(e){var t=Ur();return e={current:e},t.memoizedState=e},useState:Dy,useDebugValue:Gh,useDeferredValue:function(e){return Ur().memoizedState=e},useTransition:function(){var e=Dy(!1),t=e[0];return e=TI.bind(null,e[1]),Ur().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Nt,o=Ur();if(Dt){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=t(),nn===null)throw Error(ve(349));Ll&30||lw(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,jy(iw.bind(null,r,l,e),[e]),r.flags|=2048,Ra(9,sw.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ur(),t=nn.identifierPrefix;if(Dt){var n=yo,r=vo;n=(r&~(1<<32-_r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ma++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=RI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jI={readContext:hr,useCallback:hw,useContext:hr,useEffect:Vh,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:pw,useMemo:gw,useReducer:tf,useRef:uw,useState:function(){return tf($a)},useDebugValue:Gh,useDeferredValue:function(e){var t=gr();return vw(t,Qt.memoizedState,e)},useTransition:function(){var e=tf($a)[0],t=gr().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:ow,useId:yw,unstable_isNewReconciler:!1},_I={readContext:hr,useCallback:hw,useContext:hr,useEffect:Vh,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:pw,useMemo:gw,useReducer:nf,useRef:uw,useState:function(){return nf($a)},useDebugValue:Gh,useDeferredValue:function(e){var t=gr();return Qt===null?t.memoizedState=e:vw(t,Qt.memoizedState,e)},useTransition:function(){var e=nf($a)[0],t=gr().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:ow,useId:yw,unstable_isNewReconciler:!1};function Mr(e,t){if(e&&e.defaultProps){t=At({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function pm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:At({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xd={isMounted:function(e){return(e=e._reactInternals)?Kl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kn(),o=tl(e),l=Co(r,o);l.payload=t,n!=null&&(l.callback=n),t=Jo(e,l,o),t!==null&&(Lr(t,e,o,r),Jc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kn(),o=tl(e),l=Co(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Jo(e,l,o),t!==null&&(Lr(t,e,o,r),Jc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kn(),r=tl(e),o=Co(n,r);o.tag=2,t!=null&&(o.callback=t),t=Jo(e,o,r),t!==null&&(Lr(t,e,r,n),Jc(t,e,r))}};function _y(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!wa(n,r)||!wa(o,l):!0}function ww(e,t,n){var r=!1,o=ll,l=t.contextType;return typeof l=="object"&&l!==null?l=hr(l):(o=jn(t)?jl:Cn.current,r=t.contextTypes,l=(r=r!=null)?Vs(e,o):ll),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Ly(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&&xd.enqueueReplaceState(t,t.state,null)}function fm(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},_h(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=hr(l):(l=jn(t)?jl:Cn.current,o.context=Vs(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(pm(e,t,l,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&&xd.enqueueReplaceState(o,o.state,null),Fu(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ks(e,t){try{var n="",r=t;do n+=uE(r),r=r.return;while(r);var o=n}catch(l){o=`
37
+ `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{Np=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gi(e):""}function uE(e){switch(e.tag){case 5:return Gi(e.type);case 16:return Gi("Lazy");case 13:return Gi("Suspense");case 19:return Gi("SuspenseList");case 0:case 2:case 15:return e=Ap(e.type,!1),e;case 11:return e=Ap(e.type.render,!1),e;case 1:return e=Ap(e.type,!0),e;default:return""}}function Hf(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 hs:return"Fragment";case ms:return"Portal";case Nf:return"Profiler";case vh:return"StrictMode";case Af:return"Suspense";case zf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tx:return(e.displayName||"Context")+".Consumer";case ex:return(e._context.displayName||"Context")+".Provider";case yh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bh:return t=e.displayName||null,t!==null?t:Hf(e.type)||"Memo";case Lo:t=e._payload,e=e._init;try{return Hf(e(t))}catch{}}return null}function dE(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 Hf(t);case 8:return t===vh?"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 rl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pE(e){var t=rx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.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 Cc(e){e._valueTracker||(e._valueTracker=pE(e))}function ox(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bf(e,t){var n=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ey(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rl(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 lx(e,t){t=t.checked,t!=null&&gh(e,"checked",t,!1)}function Vf(e,t){lx(e,t);var n=rl(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")?Gf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gf(e,t.type,rl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ty(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 Gf(e,t,n){(t!=="number"||yu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wi=Array.isArray;function Ts(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=""+rl(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 Wf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ve(91));return At({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ny(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ve(92));if(Wi(n)){if(1<n.length)throw Error(ve(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rl(n)}}function sx(e,t){var n=rl(t.value),r=rl(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 ry(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ix(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 Uf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ix(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xc,ax=function(e){return typeof MSApp<"u"&&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(xc=xc||document.createElement("div"),xc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ea={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},fE=["Webkit","ms","Moz","O"];Object.keys(ea).forEach(function(e){fE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ea[t]=ea[e]})});function cx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ea.hasOwnProperty(e)&&ea[e]?(""+t).trim():t+"px"}function ux(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mE=At({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 Kf(e,t){if(t){if(mE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ve(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ve(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ve(62))}}function qf(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 Yf=null;function Ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qf=null,Os=null,Fs=null;function oy(e){if(e=ec(e)){if(typeof Qf!="function")throw Error(ve(280));var t=e.stateNode;t&&(t=yd(t),Qf(e.stateNode,e.type,t))}}function dx(e){Os?Fs?Fs.push(e):Fs=[e]:Os=e}function px(){if(Os){var e=Os,t=Fs;if(Fs=Os=null,oy(e),t)for(e=0;e<t.length;e++)oy(t[e])}}function fx(e,t){return e(t)}function mx(){}var zp=!1;function hx(e,t,n){if(zp)return e(t,n);zp=!0;try{return fx(e,t,n)}finally{zp=!1,(Os!==null||Fs!==null)&&(mx(),px())}}function va(e,t){var n=e.stateNode;if(n===null)return null;var r=yd(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(ve(231,t,typeof n));return n}var Xf=!1;if(wo)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){Xf=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{Xf=!1}function hE(e,t,n,r,o,l,s,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ta=!1,bu=null,Cu=!1,Zf=null,gE={onError:function(e){ta=!0,bu=e}};function vE(e,t,n,r,o,l,s,i,a){ta=!1,bu=null,hE.apply(gE,arguments)}function yE(e,t,n,r,o,l,s,i,a){if(vE.apply(this,arguments),ta){if(ta){var c=bu;ta=!1,bu=null}else throw Error(ve(198));Cu||(Cu=!0,Zf=c)}}function Ul(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 gx(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 ly(e){if(Ul(e)!==e)throw Error(ve(188))}function bE(e){var t=e.alternate;if(!t){if(t=Ul(e),t===null)throw Error(ve(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return ly(o),e;if(l===r)return ly(o),t;l=l.sibling}throw Error(ve(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s){for(i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s)throw Error(ve(189))}}if(n.alternate!==r)throw Error(ve(190))}if(n.tag!==3)throw Error(ve(188));return n.stateNode.current===n?e:t}function vx(e){return e=bE(e),e!==null?yx(e):null}function yx(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yx(e);if(t!==null)return t;e=e.sibling}return null}var bx=Zn.unstable_scheduleCallback,sy=Zn.unstable_cancelCallback,CE=Zn.unstable_shouldYield,xE=Zn.unstable_requestPaint,Vt=Zn.unstable_now,wE=Zn.unstable_getCurrentPriorityLevel,xh=Zn.unstable_ImmediatePriority,Cx=Zn.unstable_UserBlockingPriority,xu=Zn.unstable_NormalPriority,SE=Zn.unstable_LowPriority,xx=Zn.unstable_IdlePriority,md=null,Jr=null;function PE(e){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(md,e,void 0,(e.current.flags&128)===128)}catch{}}var Lr=Math.clz32?Math.clz32:IE,kE=Math.log,EE=Math.LN2;function IE(e){return e>>>=0,e===0?32:31-(kE(e)/EE|0)|0}var wc=64,Sc=4194304;function Ui(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 wu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=Ui(i):(l&=s,l!==0&&(r=Ui(l)))}else s=n&~o,s!==0?r=Ui(s):l!==0&&(r=Ui(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-Lr(t),o=1<<n,r|=e[n],t&=~o;return r}function ME(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 $E(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Lr(l),i=1<<s,a=o[s];a===-1?(!(i&n)||i&r)&&(o[s]=ME(i,t)):a<=t&&(e.expiredLanes|=i),l&=~i}}function Jf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wx(){var e=wc;return wc<<=1,!(wc&4194240)&&(wc=64),e}function Hp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lr(t),e[t]=n}function RE(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-Lr(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function wh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Lr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var xt=0;function Sx(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Px,Sh,kx,Ex,Ix,em=!1,Pc=[],qo=null,Yo=null,Qo=null,ya=new Map,ba=new Map,Ho=[],TE="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 iy(e,t){switch(e){case"focusin":case"focusout":qo=null;break;case"dragenter":case"dragleave":Yo=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ba.delete(t.pointerId)}}function Ei(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=ec(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function OE(e,t,n,r,o){switch(t){case"focusin":return qo=Ei(qo,e,t,n,r,o),!0;case"dragenter":return Yo=Ei(Yo,e,t,n,r,o),!0;case"mouseover":return Qo=Ei(Qo,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return ya.set(l,Ei(ya.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ba.set(l,Ei(ba.get(l)||null,e,t,n,r,o)),!0}return!1}function Mx(e){var t=bl(e.target);if(t!==null){var n=Ul(t);if(n!==null){if(t=n.tag,t===13){if(t=gx(n),t!==null){e.blockedOn=t,Ix(e.priority,function(){kx(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 Qc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yf=r,n.target.dispatchEvent(r),Yf=null}else return t=ec(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function ay(e,t,n){Qc(e)&&n.delete(t)}function FE(){em=!1,qo!==null&&Qc(qo)&&(qo=null),Yo!==null&&Qc(Yo)&&(Yo=null),Qo!==null&&Qc(Qo)&&(Qo=null),ya.forEach(ay),ba.forEach(ay)}function Ii(e,t){e.blockedOn===t&&(e.blockedOn=null,em||(em=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,FE)))}function Ca(e){function t(o){return Ii(o,e)}if(0<Pc.length){Ii(Pc[0],e);for(var n=1;n<Pc.length;n++){var r=Pc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qo!==null&&Ii(qo,e),Yo!==null&&Ii(Yo,e),Qo!==null&&Ii(Qo,e),ya.forEach(t),ba.forEach(t),n=0;n<Ho.length;n++)r=Ho[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ho.length&&(n=Ho[0],n.blockedOn===null);)Mx(n),n.blockedOn===null&&Ho.shift()}var Ds=$o.ReactCurrentBatchConfig,Su=!0;function DE(e,t,n,r){var o=xt,l=Ds.transition;Ds.transition=null;try{xt=1,Ph(e,t,n,r)}finally{xt=o,Ds.transition=l}}function jE(e,t,n,r){var o=xt,l=Ds.transition;Ds.transition=null;try{xt=4,Ph(e,t,n,r)}finally{xt=o,Ds.transition=l}}function Ph(e,t,n,r){if(Su){var o=tm(e,t,n,r);if(o===null)Xp(e,t,r,Pu,n),iy(e,r);else if(OE(o,e,t,n,r))r.stopPropagation();else if(iy(e,r),t&4&&-1<TE.indexOf(e)){for(;o!==null;){var l=ec(o);if(l!==null&&Px(l),l=tm(e,t,n,r),l===null&&Xp(e,t,r,Pu,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Xp(e,t,r,null,n)}}var Pu=null;function tm(e,t,n,r){if(Pu=null,e=Ch(r),e=bl(e),e!==null)if(t=Ul(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gx(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 Pu=e,null}function $x(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(wE()){case xh:return 1;case Cx:return 4;case xu:case SE:return 16;case xx:return 536870912;default:return 16}default:return 16}}var Go=null,kh=null,Xc=null;function Rx(){if(Xc)return Xc;var e,t=kh,n=t.length,r,o="value"in Go?Go.value:Go.textContent,l=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[l-r];r++);return Xc=o.slice(e,1<r?1-r:void 0)}function Zc(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 kc(){return!0}function cy(){return!1}function nr(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?kc:cy,this.isPropagationStopped=cy,this}return At(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=kc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kc)},persist:function(){},isPersistent:kc}),t}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eh=nr(ci),Ja=At({},ci,{view:0,detail:0}),_E=nr(Ja),Bp,Vp,Mi,hd=At({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ih,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!==Mi&&(Mi&&e.type==="mousemove"?(Bp=e.screenX-Mi.screenX,Vp=e.screenY-Mi.screenY):Vp=Bp=0,Mi=e),Bp)},movementY:function(e){return"movementY"in e?e.movementY:Vp}}),uy=nr(hd),LE=At({},hd,{dataTransfer:0}),NE=nr(LE),AE=At({},Ja,{relatedTarget:0}),Gp=nr(AE),zE=At({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),HE=nr(zE),BE=At({},ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),VE=nr(BE),GE=At({},ci,{data:0}),dy=nr(GE),WE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KE[e])?!!t[e]:!1}function Ih(){return qE}var YE=At({},Ja,{key:function(e){if(e.key){var t=WE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ih,charCode:function(e){return e.type==="keypress"?Zc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QE=nr(YE),XE=At({},hd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),py=nr(XE),ZE=At({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ih}),JE=nr(ZE),eI=At({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),tI=nr(eI),nI=At({},hd,{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}),rI=nr(nI),oI=[9,13,27,32],Mh=wo&&"CompositionEvent"in window,na=null;wo&&"documentMode"in document&&(na=document.documentMode);var lI=wo&&"TextEvent"in window&&!na,Tx=wo&&(!Mh||na&&8<na&&11>=na),fy=" ",my=!1;function Ox(e,t){switch(e){case"keyup":return oI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gs=!1;function sI(e,t){switch(e){case"compositionend":return Fx(t);case"keypress":return t.which!==32?null:(my=!0,fy);case"textInput":return e=t.data,e===fy&&my?null:e;default:return null}}function iI(e,t){if(gs)return e==="compositionend"||!Mh&&Ox(e,t)?(e=Rx(),Xc=kh=Go=null,gs=!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 Tx&&t.locale!=="ko"?null:t.data;default:return null}}var aI={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 hy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aI[e.type]:t==="textarea"}function Dx(e,t,n,r){dx(r),t=ku(t,"onChange"),0<t.length&&(n=new Eh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ra=null,xa=null;function cI(e){Wx(e,0)}function gd(e){var t=bs(e);if(ox(t))return e}function uI(e,t){if(e==="change")return t}var jx=!1;if(wo){var Wp;if(wo){var Up="oninput"in document;if(!Up){var gy=document.createElement("div");gy.setAttribute("oninput","return;"),Up=typeof gy.oninput=="function"}Wp=Up}else Wp=!1;jx=Wp&&(!document.documentMode||9<document.documentMode)}function vy(){ra&&(ra.detachEvent("onpropertychange",_x),xa=ra=null)}function _x(e){if(e.propertyName==="value"&&gd(xa)){var t=[];Dx(t,xa,e,Ch(e)),hx(cI,t)}}function dI(e,t,n){e==="focusin"?(vy(),ra=t,xa=n,ra.attachEvent("onpropertychange",_x)):e==="focusout"&&vy()}function pI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gd(xa)}function fI(e,t){if(e==="click")return gd(t)}function mI(e,t){if(e==="input"||e==="change")return gd(t)}function hI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zr=typeof Object.is=="function"?Object.is:hI;function wa(e,t){if(zr(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(!Lf.call(t,o)||!zr(e[o],t[o]))return!1}return!0}function yy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function by(e,t){var n=yy(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=yy(n)}}function Lx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nx(){for(var e=window,t=yu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yu(e.document)}return t}function $h(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 gI(e){var t=Nx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lx(n.ownerDocument.documentElement,n)){if(r!==null&&$h(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=by(n,l);var s=by(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(),l>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 vI=wo&&"documentMode"in document&&11>=document.documentMode,vs=null,nm=null,oa=null,rm=!1;function Cy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rm||vs==null||vs!==yu(r)||(r=vs,"selectionStart"in r&&$h(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}),oa&&wa(oa,r)||(oa=r,r=ku(nm,"onSelect"),0<r.length&&(t=new Eh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vs)))}function Ec(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ys={animationend:Ec("Animation","AnimationEnd"),animationiteration:Ec("Animation","AnimationIteration"),animationstart:Ec("Animation","AnimationStart"),transitionend:Ec("Transition","TransitionEnd")},Kp={},Ax={};wo&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function vd(e){if(Kp[e])return Kp[e];if(!ys[e])return e;var t=ys[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ax)return Kp[e]=t[n];return e}var zx=vd("animationend"),Hx=vd("animationiteration"),Bx=vd("animationstart"),Vx=vd("transitionend"),Gx=new Map,xy="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 sl(e,t){Gx.set(e,t),Wl(t,[e])}for(var qp=0;qp<xy.length;qp++){var Yp=xy[qp],yI=Yp.toLowerCase(),bI=Yp[0].toUpperCase()+Yp.slice(1);sl(yI,"on"+bI)}sl(zx,"onAnimationEnd");sl(Hx,"onAnimationIteration");sl(Bx,"onAnimationStart");sl("dblclick","onDoubleClick");sl("focusin","onFocus");sl("focusout","onBlur");sl(Vx,"onTransitionEnd");Bs("onMouseEnter",["mouseout","mouseover"]);Bs("onMouseLeave",["mouseout","mouseover"]);Bs("onPointerEnter",["pointerout","pointerover"]);Bs("onPointerLeave",["pointerout","pointerover"]);Wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),CI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ki));function wy(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yE(r,t,void 0,e),e.currentTarget=null}function Wx(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 l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==l&&o.isPropagationStopped())break e;wy(o,i,c),l=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,c=i.currentTarget,i=i.listener,a!==l&&o.isPropagationStopped())break e;wy(o,i,c),l=a}}}if(Cu)throw e=Zf,Cu=!1,Zf=null,e}function $t(e,t){var n=t[am];n===void 0&&(n=t[am]=new Set);var r=e+"__bubble";n.has(r)||(Ux(t,e,2,!1),n.add(r))}function Qp(e,t,n){var r=0;t&&(r|=4),Ux(n,e,r,t)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[Ic]){e[Ic]=!0,JC.forEach(function(n){n!=="selectionchange"&&(CI.has(n)||Qp(n,!1,e),Qp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ic]||(t[Ic]=!0,Qp("selectionchange",!1,t))}}function Ux(e,t,n,r){switch($x(t)){case 1:var o=DE;break;case 4:o=jE;break;default:o=Ph}n=o.bind(null,t,n,e),o=void 0,!Xf||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 Xp(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;i!==null;){if(s=bl(i),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}i=i.parentNode}}r=r.return}hx(function(){var c=l,u=Ch(n),p=[];e:{var f=Gx.get(e);if(f!==void 0){var g=Eh,h=e;switch(e){case"keypress":if(Zc(n)===0)break e;case"keydown":case"keyup":g=QE;break;case"focusin":h="focus",g=Gp;break;case"focusout":h="blur",g=Gp;break;case"beforeblur":case"afterblur":g=Gp;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":g=uy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=NE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=JE;break;case zx:case Hx:case Bx:g=HE;break;case Vx:g=tI;break;case"scroll":g=_E;break;case"wheel":g=rI;break;case"copy":case"cut":case"paste":g=VE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=py}var b=(t&4)!==0,w=!b&&e==="scroll",C=b?f!==null?f+"Capture":null:f;b=[];for(var y=c,x;y!==null;){x=y;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,C!==null&&(S=va(y,C),S!=null&&b.push(Pa(y,S,x)))),w)break;y=y.return}0<b.length&&(f=new g(f,h,null,n,u),p.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==Yf&&(h=n.relatedTarget||n.fromElement)&&(bl(h)||h[So]))break e;if((g||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,g?(h=n.relatedTarget||n.toElement,g=c,h=h?bl(h):null,h!==null&&(w=Ul(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(g=null,h=c),g!==h)){if(b=uy,S="onMouseLeave",C="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=py,S="onPointerLeave",C="onPointerEnter",y="pointer"),w=g==null?f:bs(g),x=h==null?f:bs(h),f=new b(S,y+"leave",g,n,u),f.target=w,f.relatedTarget=x,S=null,bl(u)===c&&(b=new b(C,y+"enter",h,n,u),b.target=x,b.relatedTarget=w,S=b),w=S,g&&h)t:{for(b=g,C=h,y=0,x=b;x;x=Jl(x))y++;for(x=0,S=C;S;S=Jl(S))x++;for(;0<y-x;)b=Jl(b),y--;for(;0<x-y;)C=Jl(C),x--;for(;y--;){if(b===C||C!==null&&b===C.alternate)break t;b=Jl(b),C=Jl(C)}b=null}else b=null;g!==null&&Sy(p,f,g,b,!1),h!==null&&w!==null&&Sy(p,w,h,b,!0)}}e:{if(f=c?bs(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var T=uI;else if(hy(f))if(jx)T=mI;else{T=pI;var P=dI}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=fI);if(T&&(T=T(e,c))){Dx(p,T,n,u);break e}P&&P(e,f,c),e==="focusout"&&(P=f._wrapperState)&&P.controlled&&f.type==="number"&&Gf(f,"number",f.value)}switch(P=c?bs(c):window,e){case"focusin":(hy(P)||P.contentEditable==="true")&&(vs=P,nm=c,oa=null);break;case"focusout":oa=nm=vs=null;break;case"mousedown":rm=!0;break;case"contextmenu":case"mouseup":case"dragend":rm=!1,Cy(p,n,u);break;case"selectionchange":if(vI)break;case"keydown":case"keyup":Cy(p,n,u)}var k;if(Mh)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else gs?Ox(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Tx&&n.locale!=="ko"&&(gs||E!=="onCompositionStart"?E==="onCompositionEnd"&&gs&&(k=Rx()):(Go=u,kh="value"in Go?Go.value:Go.textContent,gs=!0)),P=ku(c,E),0<P.length&&(E=new dy(E,e,null,n,u),p.push({event:E,listeners:P}),k?E.data=k:(k=Fx(n),k!==null&&(E.data=k)))),(k=lI?sI(e,n):iI(e,n))&&(c=ku(c,"onBeforeInput"),0<c.length&&(u=new dy("onBeforeInput","beforeinput",null,n,u),p.push({event:u,listeners:c}),u.data=k))}Wx(p,t)})}function Pa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ku(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=va(e,n),l!=null&&r.unshift(Pa(e,l,o)),l=va(e,t),l!=null&&r.push(Pa(e,l,o))),e=e.return}return r}function Jl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Sy(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,o?(a=va(n,l),a!=null&&s.unshift(Pa(n,a,i))):o||(a=va(n,l),a!=null&&s.push(Pa(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var xI=/\r\n?/g,wI=/\u0000|\uFFFD/g;function Py(e){return(typeof e=="string"?e:""+e).replace(xI,`
38
+ `).replace(wI,"")}function Mc(e,t,n){if(t=Py(t),Py(e)!==t&&n)throw Error(ve(425))}function Eu(){}var om=null,lm=null;function sm(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 im=typeof setTimeout=="function"?setTimeout:void 0,SI=typeof clearTimeout=="function"?clearTimeout:void 0,ky=typeof Promise=="function"?Promise:void 0,PI=typeof queueMicrotask=="function"?queueMicrotask:typeof ky<"u"?function(e){return ky.resolve(null).then(e).catch(kI)}:im;function kI(e){setTimeout(function(){throw e})}function Zp(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),Ca(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ca(t)}function Xo(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 Ey(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 ui=Math.random().toString(36).slice(2),Zr="__reactFiber$"+ui,ka="__reactProps$"+ui,So="__reactContainer$"+ui,am="__reactEvents$"+ui,EI="__reactListeners$"+ui,II="__reactHandles$"+ui;function bl(e){var t=e[Zr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[So]||n[Zr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ey(e);e!==null;){if(n=e[Zr])return n;e=Ey(e)}return t}e=n,n=e.parentNode}return null}function ec(e){return e=e[Zr]||e[So],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ve(33))}function yd(e){return e[ka]||null}var cm=[],Cs=-1;function il(e){return{current:e}}function Tt(e){0>Cs||(e.current=cm[Cs],cm[Cs]=null,Cs--)}function Mt(e,t){Cs++,cm[Cs]=e.current,e.current=t}var ol={},Cn=il(ol),Dn=il(!1),Dl=ol;function Vs(e,t){var n=e.type.contextTypes;if(!n)return ol;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function jn(e){return e=e.childContextTypes,e!=null}function Iu(){Tt(Dn),Tt(Cn)}function Iy(e,t,n){if(Cn.current!==ol)throw Error(ve(168));Mt(Cn,t),Mt(Dn,n)}function Kx(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(ve(108,dE(e)||"Unknown",o));return At({},n,r)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ol,Dl=Cn.current,Mt(Cn,e),Mt(Dn,Dn.current),!0}function My(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=Kx(e,t,Dl),r.__reactInternalMemoizedMergedChildContext=e,Tt(Dn),Tt(Cn),Mt(Cn,e)):Tt(Dn),Mt(Dn,n)}var ho=null,bd=!1,Jp=!1;function qx(e){ho===null?ho=[e]:ho.push(e)}function MI(e){bd=!0,qx(e)}function al(){if(!Jp&&ho!==null){Jp=!0;var e=0,t=xt;try{var n=ho;for(xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ho=null,bd=!1}catch(o){throw ho!==null&&(ho=ho.slice(e+1)),bx(xh,al),o}finally{xt=t,Jp=!1}}return null}var xs=[],ws=0,$u=null,Ru=0,ur=[],dr=0,jl=null,vo=1,yo="";function ml(e,t){xs[ws++]=Ru,xs[ws++]=$u,$u=e,Ru=t}function Yx(e,t,n){ur[dr++]=vo,ur[dr++]=yo,ur[dr++]=jl,jl=e;var r=vo;e=yo;var o=32-Lr(r)-1;r&=~(1<<o),n+=1;var l=32-Lr(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,vo=1<<32-Lr(t)+o|n<<o|r,yo=l+e}else vo=1<<l|n<<o|r,yo=e}function Rh(e){e.return!==null&&(ml(e,1),Yx(e,1,0))}function Th(e){for(;e===$u;)$u=xs[--ws],xs[ws]=null,Ru=xs[--ws],xs[ws]=null;for(;e===jl;)jl=ur[--dr],ur[dr]=null,yo=ur[--dr],ur[dr]=null,vo=ur[--dr],ur[dr]=null}var Qn=null,Yn=null,Dt=!1,Fr=null;function Qx(e,t){var n=fr(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 $y(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,Qn=e,Yn=Xo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qn=e,Yn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=jl!==null?{id:vo,overflow:yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=fr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qn=e,Yn=null,!0):!1;default:return!1}}function um(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dm(e){if(Dt){var t=Yn;if(t){var n=t;if(!$y(e,t)){if(um(e))throw Error(ve(418));t=Xo(n.nextSibling);var r=Qn;t&&$y(e,t)?Qx(r,n):(e.flags=e.flags&-4097|2,Dt=!1,Qn=e)}}else{if(um(e))throw Error(ve(418));e.flags=e.flags&-4097|2,Dt=!1,Qn=e}}}function Ry(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qn=e}function $c(e){if(e!==Qn)return!1;if(!Dt)return Ry(e),Dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!sm(e.type,e.memoizedProps)),t&&(t=Yn)){if(um(e))throw Xx(),Error(ve(418));for(;t;)Qx(e,t),t=Xo(t.nextSibling)}if(Ry(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ve(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Yn=Xo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Yn=null}}else Yn=Qn?Xo(e.stateNode.nextSibling):null;return!0}function Xx(){for(var e=Yn;e;)e=Xo(e.nextSibling)}function Gs(){Yn=Qn=null,Dt=!1}function Oh(e){Fr===null?Fr=[e]:Fr.push(e)}var $I=$o.ReactCurrentBatchConfig;function $i(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(ve(309));var r=n.stateNode}if(!r)throw Error(ve(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var i=o.refs;s===null?delete i[l]:i[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(ve(284));if(!n._owner)throw Error(ve(290,e))}return e}function Rc(e,t){throw e=Object.prototype.toString.call(t),Error(ve(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ty(e){var t=e._init;return t(e._payload)}function Zx(e){function t(C,y){if(e){var x=C.deletions;x===null?(C.deletions=[y],C.flags|=16):x.push(y)}}function n(C,y){if(!e)return null;for(;y!==null;)t(C,y),y=y.sibling;return null}function r(C,y){for(C=new Map;y!==null;)y.key!==null?C.set(y.key,y):C.set(y.index,y),y=y.sibling;return C}function o(C,y){return C=tl(C,y),C.index=0,C.sibling=null,C}function l(C,y,x){return C.index=x,e?(x=C.alternate,x!==null?(x=x.index,x<y?(C.flags|=2,y):x):(C.flags|=2,y)):(C.flags|=1048576,y)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function i(C,y,x,S){return y===null||y.tag!==6?(y=sf(x,C.mode,S),y.return=C,y):(y=o(y,x),y.return=C,y)}function a(C,y,x,S){var T=x.type;return T===hs?u(C,y,x.props.children,S,x.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Lo&&Ty(T)===y.type)?(S=o(y,x.props),S.ref=$i(C,y,x),S.return=C,S):(S=lu(x.type,x.key,x.props,null,C.mode,S),S.ref=$i(C,y,x),S.return=C,S)}function c(C,y,x,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=af(x,C.mode,S),y.return=C,y):(y=o(y,x.children||[]),y.return=C,y)}function u(C,y,x,S,T){return y===null||y.tag!==7?(y=Ml(x,C.mode,S,T),y.return=C,y):(y=o(y,x),y.return=C,y)}function p(C,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=sf(""+y,C.mode,x),y.return=C,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case bc:return x=lu(y.type,y.key,y.props,null,C.mode,x),x.ref=$i(C,null,y),x.return=C,x;case ms:return y=af(y,C.mode,x),y.return=C,y;case Lo:var S=y._init;return p(C,S(y._payload),x)}if(Wi(y)||Pi(y))return y=Ml(y,C.mode,x,null),y.return=C,y;Rc(C,y)}return null}function f(C,y,x,S){var T=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return T!==null?null:i(C,y,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case bc:return x.key===T?a(C,y,x,S):null;case ms:return x.key===T?c(C,y,x,S):null;case Lo:return T=x._init,f(C,y,T(x._payload),S)}if(Wi(x)||Pi(x))return T!==null?null:u(C,y,x,S,null);Rc(C,x)}return null}function g(C,y,x,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return C=C.get(x)||null,i(y,C,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case bc:return C=C.get(S.key===null?x:S.key)||null,a(y,C,S,T);case ms:return C=C.get(S.key===null?x:S.key)||null,c(y,C,S,T);case Lo:var P=S._init;return g(C,y,x,P(S._payload),T)}if(Wi(S)||Pi(S))return C=C.get(x)||null,u(y,C,S,T,null);Rc(y,S)}return null}function h(C,y,x,S){for(var T=null,P=null,k=y,E=y=0,_=null;k!==null&&E<x.length;E++){k.index>E?(_=k,k=null):_=k.sibling;var R=f(C,k,x[E],S);if(R===null){k===null&&(k=_);break}e&&k&&R.alternate===null&&t(C,k),y=l(R,y,E),P===null?T=R:P.sibling=R,P=R,k=_}if(E===x.length)return n(C,k),Dt&&ml(C,E),T;if(k===null){for(;E<x.length;E++)k=p(C,x[E],S),k!==null&&(y=l(k,y,E),P===null?T=k:P.sibling=k,P=k);return Dt&&ml(C,E),T}for(k=r(C,k);E<x.length;E++)_=g(k,C,E,x[E],S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?E:_.key),y=l(_,y,E),P===null?T=_:P.sibling=_,P=_);return e&&k.forEach(function(F){return t(C,F)}),Dt&&ml(C,E),T}function b(C,y,x,S){var T=Pi(x);if(typeof T!="function")throw Error(ve(150));if(x=T.call(x),x==null)throw Error(ve(151));for(var P=T=null,k=y,E=y=0,_=null,R=x.next();k!==null&&!R.done;E++,R=x.next()){k.index>E?(_=k,k=null):_=k.sibling;var F=f(C,k,R.value,S);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(C,k),y=l(F,y,E),P===null?T=F:P.sibling=F,P=F,k=_}if(R.done)return n(C,k),Dt&&ml(C,E),T;if(k===null){for(;!R.done;E++,R=x.next())R=p(C,R.value,S),R!==null&&(y=l(R,y,E),P===null?T=R:P.sibling=R,P=R);return Dt&&ml(C,E),T}for(k=r(C,k);!R.done;E++,R=x.next())R=g(k,C,E,R.value,S),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?E:R.key),y=l(R,y,E),P===null?T=R:P.sibling=R,P=R);return e&&k.forEach(function(L){return t(C,L)}),Dt&&ml(C,E),T}function w(C,y,x,S){if(typeof x=="object"&&x!==null&&x.type===hs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case bc:e:{for(var T=x.key,P=y;P!==null;){if(P.key===T){if(T=x.type,T===hs){if(P.tag===7){n(C,P.sibling),y=o(P,x.props.children),y.return=C,C=y;break e}}else if(P.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Lo&&Ty(T)===P.type){n(C,P.sibling),y=o(P,x.props),y.ref=$i(C,P,x),y.return=C,C=y;break e}n(C,P);break}else t(C,P);P=P.sibling}x.type===hs?(y=Ml(x.props.children,C.mode,S,x.key),y.return=C,C=y):(S=lu(x.type,x.key,x.props,null,C.mode,S),S.ref=$i(C,y,x),S.return=C,C=S)}return s(C);case ms:e:{for(P=x.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(C,y.sibling),y=o(y,x.children||[]),y.return=C,C=y;break e}else{n(C,y);break}else t(C,y);y=y.sibling}y=af(x,C.mode,S),y.return=C,C=y}return s(C);case Lo:return P=x._init,w(C,y,P(x._payload),S)}if(Wi(x))return h(C,y,x,S);if(Pi(x))return b(C,y,x,S);Rc(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(C,y.sibling),y=o(y,x),y.return=C,C=y):(n(C,y),y=sf(x,C.mode,S),y.return=C,C=y),s(C)):n(C,y)}return w}var Ws=Zx(!0),Jx=Zx(!1),Tu=il(null),Ou=null,Ss=null,Fh=null;function Dh(){Fh=Ss=Ou=null}function jh(e){var t=Tu.current;Tt(Tu),e._currentValue=t}function pm(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 js(e,t){Ou=e,Fh=Ss=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fn=!0),e.firstContext=null)}function gr(e){var t=e._currentValue;if(Fh!==e)if(e={context:e,memoizedValue:t,next:null},Ss===null){if(Ou===null)throw Error(ve(308));Ss=e,Ou.dependencies={lanes:0,firstContext:e}}else Ss=Ss.next=e;return t}var Cl=null;function _h(e){Cl===null?Cl=[e]:Cl.push(e)}function ew(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,_h(t)):(n.next=o.next,o.next=n),t.interleaved=n,Po(e,r)}function Po(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 No=!1;function Lh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tw(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 Co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ft&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Po(e,n)}return o=r.interleaved,o===null?(t.next=t,_h(r)):(t.next=o.next,o.next=t),r.interleaved=t,Po(e,n)}function Jc(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,wh(e,n)}}function Oy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 Fu(e,t,n,r){var o=e.updateQueue;No=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var a=i,c=a.next;a.next=null,s===null?l=c:s.next=c,s=a;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=a))}if(l!==null){var p=o.baseState;s=0,u=c=a=null,i=l;do{var f=i.lane,g=i.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,b=i;switch(f=t,g=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){p=h.call(g,p,f);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,f=typeof h=="function"?h.call(g,p,f):h,f==null)break e;p=At({},p,f);break e;case 2:No=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[i]:f.push(i))}else g={eventTime:g,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=g,a=p):u=u.next=g,s|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;f=i,i=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function Fy(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(ve(191,o));o.call(r)}}}var tc={},eo=il(tc),Ea=il(tc),Ia=il(tc);function xl(e){if(e===tc)throw Error(ve(174));return e}function Nh(e,t){switch(Mt(Ia,t),Mt(Ea,e),Mt(eo,tc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uf(t,e)}Tt(eo),Mt(eo,t)}function Us(){Tt(eo),Tt(Ea),Tt(Ia)}function nw(e){xl(Ia.current);var t=xl(eo.current),n=Uf(t,e.type);t!==n&&(Mt(Ea,e),Mt(eo,n))}function Ah(e){Ea.current===e&&(Tt(eo),Tt(Ea))}var Lt=il(0);function Du(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 ef=[];function zh(){for(var e=0;e<ef.length;e++)ef[e]._workInProgressVersionPrimary=null;ef.length=0}var eu=$o.ReactCurrentDispatcher,tf=$o.ReactCurrentBatchConfig,_l=0,Nt=null,Qt=null,tn=null,ju=!1,la=!1,Ma=0,RI=0;function hn(){throw Error(ve(321))}function Hh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Bh(e,t,n,r,o,l){if(_l=l,Nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eu.current=e===null||e.memoizedState===null?DI:jI,e=n(r,o),la){l=0;do{if(la=!1,Ma=0,25<=l)throw Error(ve(301));l+=1,tn=Qt=null,t.updateQueue=null,eu.current=_I,e=n(r,o)}while(la)}if(eu.current=_u,t=Qt!==null&&Qt.next!==null,_l=0,tn=Qt=Nt=null,ju=!1,t)throw Error(ve(300));return e}function Vh(){var e=Ma!==0;return Ma=0,e}function Kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Nt.memoizedState=tn=e:tn=tn.next=e,tn}function vr(){if(Qt===null){var e=Nt.alternate;e=e!==null?e.memoizedState:null}else e=Qt.next;var t=tn===null?Nt.memoizedState:tn.next;if(t!==null)tn=t,Qt=e;else{if(e===null)throw Error(ve(310));Qt=e,e={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},tn===null?Nt.memoizedState=tn=e:tn=tn.next=e}return tn}function $a(e,t){return typeof t=="function"?t(e):t}function nf(e){var t=vr(),n=t.queue;if(n===null)throw Error(ve(311));n.lastRenderedReducer=e;var r=Qt,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var i=s=null,a=null,c=l;do{var u=c.lane;if((_l&u)===u)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=p,s=r):a=a.next=p,Nt.lanes|=u,Ll|=u}c=c.next}while(c!==null&&c!==l);a===null?s=r:a.next=i,zr(r,t.memoizedState)||(Fn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,Nt.lanes|=l,Ll|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rf(e){var t=vr(),n=t.queue;if(n===null)throw Error(ve(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);zr(l,t.memoizedState)||(Fn=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function rw(){}function ow(e,t){var n=Nt,r=vr(),o=t(),l=!zr(r.memoizedState,o);if(l&&(r.memoizedState=o,Fn=!0),r=r.queue,Gh(iw.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||tn!==null&&tn.memoizedState.tag&1){if(n.flags|=2048,Ra(9,sw.bind(null,n,r,o,t),void 0,null),rn===null)throw Error(ve(349));_l&30||lw(n,t,o)}return o}function lw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sw(e,t,n,r){t.value=n,t.getSnapshot=r,aw(t)&&cw(e)}function iw(e,t,n){return n(function(){aw(t)&&cw(e)})}function aw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function cw(e){var t=Po(e,1);t!==null&&Nr(t,e,1,-1)}function Dy(e){var t=Kr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:e},t.queue=e,e=e.dispatch=FI.bind(null,Nt,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.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 uw(){return vr().memoizedState}function tu(e,t,n,r){var o=Kr();Nt.flags|=e,o.memoizedState=Ra(1|t,n,void 0,r===void 0?null:r)}function Cd(e,t,n,r){var o=vr();r=r===void 0?null:r;var l=void 0;if(Qt!==null){var s=Qt.memoizedState;if(l=s.destroy,r!==null&&Hh(r,s.deps)){o.memoizedState=Ra(t,n,l,r);return}}Nt.flags|=e,o.memoizedState=Ra(1|t,n,l,r)}function jy(e,t){return tu(8390656,8,e,t)}function Gh(e,t){return Cd(2048,8,e,t)}function dw(e,t){return Cd(4,2,e,t)}function pw(e,t){return Cd(4,4,e,t)}function fw(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 mw(e,t,n){return n=n!=null?n.concat([e]):null,Cd(4,4,fw.bind(null,t,e),n)}function Wh(){}function hw(e,t){var n=vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gw(e,t){var n=vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vw(e,t,n){return _l&21?(zr(n,t)||(n=wx(),Nt.lanes|=n,Ll|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fn=!0),e.memoizedState=n)}function TI(e,t){var n=xt;xt=n!==0&&4>n?n:4,e(!0);var r=tf.transition;tf.transition={};try{e(!1),t()}finally{xt=n,tf.transition=r}}function yw(){return vr().memoizedState}function OI(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bw(e))Cw(t,n);else if(n=ew(e,t,n,r),n!==null){var o=kn();Nr(n,e,r,o),xw(n,t,r)}}function FI(e,t,n){var r=el(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bw(e))Cw(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,i=l(s,n);if(o.hasEagerState=!0,o.eagerState=i,zr(i,s)){var a=t.interleaved;a===null?(o.next=o,_h(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=ew(e,t,o,r),n!==null&&(o=kn(),Nr(n,e,r,o),xw(n,t,r))}}function bw(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function Cw(e,t){la=ju=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wh(e,n)}}var _u={readContext:gr,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useInsertionEffect:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useSyncExternalStore:hn,useId:hn,unstable_isNewReconciler:!1},DI={readContext:gr,useCallback:function(e,t){return Kr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:jy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tu(4194308,4,fw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){return tu(4,2,e,t)},useMemo:function(e,t){var n=Kr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kr();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=OI.bind(null,Nt,e),[r.memoizedState,e]},useRef:function(e){var t=Kr();return e={current:e},t.memoizedState=e},useState:Dy,useDebugValue:Wh,useDeferredValue:function(e){return Kr().memoizedState=e},useTransition:function(){var e=Dy(!1),t=e[0];return e=TI.bind(null,e[1]),Kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Nt,o=Kr();if(Dt){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=t(),rn===null)throw Error(ve(349));_l&30||lw(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,jy(iw.bind(null,r,l,e),[e]),r.flags|=2048,Ra(9,sw.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Kr(),t=rn.identifierPrefix;if(Dt){var n=yo,r=vo;n=(r&~(1<<32-Lr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ma++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=RI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jI={readContext:gr,useCallback:hw,useContext:gr,useEffect:Gh,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:pw,useMemo:gw,useReducer:nf,useRef:uw,useState:function(){return nf($a)},useDebugValue:Wh,useDeferredValue:function(e){var t=vr();return vw(t,Qt.memoizedState,e)},useTransition:function(){var e=nf($a)[0],t=vr().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:ow,useId:yw,unstable_isNewReconciler:!1},_I={readContext:gr,useCallback:hw,useContext:gr,useEffect:Gh,useImperativeHandle:mw,useInsertionEffect:dw,useLayoutEffect:pw,useMemo:gw,useReducer:rf,useRef:uw,useState:function(){return rf($a)},useDebugValue:Wh,useDeferredValue:function(e){var t=vr();return Qt===null?t.memoizedState=e:vw(t,Qt.memoizedState,e)},useTransition:function(){var e=rf($a)[0],t=vr().memoizedState;return[e,t]},useMutableSource:rw,useSyncExternalStore:ow,useId:yw,unstable_isNewReconciler:!1};function $r(e,t){if(e&&e.defaultProps){t=At({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:At({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xd={isMounted:function(e){return(e=e._reactInternals)?Ul(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kn(),o=el(e),l=Co(r,o);l.payload=t,n!=null&&(l.callback=n),t=Zo(e,l,o),t!==null&&(Nr(t,e,o,r),Jc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kn(),o=el(e),l=Co(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Zo(e,l,o),t!==null&&(Nr(t,e,o,r),Jc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kn(),r=el(e),o=Co(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zo(e,o,r),t!==null&&(Nr(t,e,r,n),Jc(t,e,r))}};function _y(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!wa(n,r)||!wa(o,l):!0}function ww(e,t,n){var r=!1,o=ol,l=t.contextType;return typeof l=="object"&&l!==null?l=gr(l):(o=jn(t)?Dl:Cn.current,r=t.contextTypes,l=(r=r!=null)?Vs(e,o):ol),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Ly(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&&xd.enqueueReplaceState(t,t.state,null)}function mm(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Lh(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=gr(l):(l=jn(t)?Dl:Cn.current,o.context=Vs(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(fm(e,t,l,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&&xd.enqueueReplaceState(o,o.state,null),Fu(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ks(e,t){try{var n="",r=t;do n+=uE(r),r=r.return;while(r);var o=n}catch(l){o=`
39
39
  Error generating stack: `+l.message+`
40
- `+l.stack}return{value:e,source:t,stack:o,digest:null}}function rf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function mm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var LI=typeof WeakMap=="function"?WeakMap:Map;function Sw(e,t,n){n=Co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nu||(Nu=!0,Pm=r),mm(e,t)},n}function Pw(e,t,n){n=Co(-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(){mm(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){mm(e,t),typeof r!="function"&&(el===null?el=new Set([this]):el.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ny(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new LI;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=XI.bind(null,e,t,n),t.then(e,e))}function Ay(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 zy(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=Co(-1,1),t.tag=2,Jo(n,t,1))),n.lanes|=1),e)}var NI=$o.ReactCurrentOwner,Fn=!1;function wn(e,t,n,r){t.child=e===null?Jx(t,null,n,r):Ws(t,e.child,n,r)}function Hy(e,t,n,r,o){n=n.render;var l=t.ref;return js(t,o),r=Hh(e,t,n,r,l,o),n=Bh(),e!==null&&!Fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ko(e,t,o)):(Dt&&n&&$h(t),t.flags|=1,wn(e,t,r,o),t.child)}function By(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Zh(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,kw(e,t,l,r,o)):(e=lu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:wa,n(s,r)&&e.ref===t.ref)return ko(e,t,o)}return t.flags|=1,e=nl(l,r),e.ref=t.ref,e.return=t,t.child=e}function kw(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(wa(l,r)&&e.ref===t.ref)if(Fn=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Fn=!0);else return t.lanes=e.lanes,ko(e,t,o)}return hm(e,t,n,r,o)}function Ew(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(Es,Vn),Vn|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mt(Es,Vn),Vn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Mt(Es,Vn),Vn|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Mt(Es,Vn),Vn|=r;return wn(e,t,o,n),t.child}function Iw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hm(e,t,n,r,o){var l=jn(n)?jl:Cn.current;return l=Vs(t,l),js(t,o),n=Hh(e,t,n,r,l,o),r=Bh(),e!==null&&!Fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ko(e,t,o)):(Dt&&r&&$h(t),t.flags|=1,wn(e,t,n,o),t.child)}function Vy(e,t,n,r,o){if(jn(n)){var l=!0;Mu(t)}else l=!1;if(js(t,o),t.stateNode===null)nu(e,t),ww(t,n,r),fm(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=hr(c):(c=jn(n)?jl:Cn.current,c=Vs(t,c));var u=n.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==c)&&Ly(t,s,r,c),No=!1;var f=t.memoizedState;s.state=f,Fu(t,r,s,o),a=t.memoizedState,i!==r||f!==a||Dn.current||No?(typeof u=="function"&&(pm(t,n,u,r),a=t.memoizedState),(i=No||_y(t,n,i,r,f,a,c))?(p||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=a),s.props=r,s.state=a,s.context=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,tw(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Mr(t.type,i),s.props=c,p=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=hr(a):(a=jn(n)?jl:Cn.current,a=Vs(t,a));var g=n.getDerivedStateFromProps;(u=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||f!==a)&&Ly(t,s,r,a),No=!1,f=t.memoizedState,s.state=f,Fu(t,r,s,o);var h=t.memoizedState;i!==p||f!==h||Dn.current||No?(typeof g=="function"&&(pm(t,n,g,r),h=t.memoizedState),(c=No||_y(t,n,c,r,f,h,a)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return gm(e,t,n,r,l,o)}function gm(e,t,n,r,o,l){Iw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&My(t,n,!1),ko(e,t,l);r=t.stateNode,NI.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ws(t,e.child,null,l),t.child=Ws(t,null,i,l)):wn(e,t,i,l),t.memoizedState=r.state,o&&My(t,n,!0),t.child}function Mw(e){var t=e.stateNode;t.pendingContext?Iy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Iy(e,t.context,!1),Lh(e,t.containerInfo)}function Gy(e,t,n,r,o){return Gs(),Th(o),t.flags|=256,wn(e,t,n,r),t.child}var vm={dehydrated:null,treeContext:null,retryLane:0};function ym(e){return{baseLanes:e,cachePool:null,transitions:null}}function $w(e,t,n){var r=t.pendingProps,o=Lt.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Mt(Lt,o&1),e===null)return um(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,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Pd(s,r,0,null),e=$l(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ym(n),t.memoizedState=vm,e):Wh(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return AI(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=nl(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=nl(i,l):(l=$l(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?ym(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=vm,r}return l=e.child,e=l.sibling,r=nl(l,{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 Wh(e,t){return t=Pd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tc(e,t,n,r){return r!==null&&Th(r),Ws(t,e.child,null,n),e=Wh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AI(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=rf(Error(ve(422))),Tc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Pd({mode:"visible",children:r.children},o,0,null),l=$l(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Ws(t,e.child,null,s),t.child.memoizedState=ym(s),t.memoizedState=vm,l);if(!(t.mode&1))return Tc(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(ve(419)),r=rf(l,r,void 0),Tc(e,t,s,r)}if(i=(s&e.childLanes)!==0,Fn||i){if(r=nn,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!==l.retryLane&&(l.retryLane=o,Po(e,o),Lr(r,e,o,-1))}return Xh(),r=rf(Error(ve(421))),Tc(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ZI.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,qn=Zo(o.nextSibling),Yn=t,Dt=!0,Or=null,e!==null&&(cr[ur++]=vo,cr[ur++]=yo,cr[ur++]=_l,vo=e.id,yo=e.overflow,_l=t),t=Wh(t,r.children),t.flags|=4096,t)}function Wy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dm(e.return,t,n)}function of(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Rw(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(wn(e,t,r.children,n),r=Lt.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&&Wy(e,n,t);else if(e.tag===19)Wy(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(Mt(Lt,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&&Du(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),of(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Du(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}of(t,!0,n,null,l);break;case"together":of(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ko(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ve(153));if(t.child!==null){for(e=t.child,n=nl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zI(e,t,n){switch(t.tag){case 3:Mw(t),Gs();break;case 5:nw(t);break;case 1:jn(t.type)&&Mu(t);break;case 4:Lh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Mt(Tu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mt(Lt,Lt.current&1),t.flags|=128,null):n&t.child.childLanes?$w(e,t,n):(Mt(Lt,Lt.current&1),e=ko(e,t,n),e!==null?e.sibling:null);Mt(Lt,Lt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rw(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Mt(Lt,Lt.current),r)break;return null;case 22:case 23:return t.lanes=0,Ew(e,t,n)}return ko(e,t,n)}var Tw,bm,Ow,Fw;Tw=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}};bm=function(){};Ow=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,wl(Jr.current);var l=null;switch(n){case"input":o=Hf(e,o),r=Hf(e,r),l=[];break;case"select":o=At({},o,{value:void 0}),r=At({},r,{value:void 0}),l=[];break;case"textarea":o=Gf(e,o),r=Gf(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Eu)}Uf(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var i=o[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ha.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var a=r[c];if(i=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ha.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&$t("scroll",e),l||i===a||(l=[])):(l=l||[]).push(c,a))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Fw=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!Dt)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 gn(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 HI(e,t,n){var r=t.pendingProps;switch(Rh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gn(t),null;case 1:return jn(t.type)&&Iu(),gn(t),null;case 3:return r=t.stateNode,Us(),Tt(Dn),Tt(Cn),Ah(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($c(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Or!==null&&(Im(Or),Or=null))),bm(e,t),gn(t),null;case 5:Nh(t);var o=wl(Ia.current);if(n=t.type,e!==null&&t.stateNode!=null)Ow(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ve(166));return gn(t),null}if(e=wl(Jr.current),$c(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Xr]=t,r[ka]=l,e=(t.mode&1)!==0,n){case"dialog":$t("cancel",r),$t("close",r);break;case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(o=0;o<Ki.length;o++)$t(Ki[o],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"details":$t("toggle",r);break;case"input":ey(r,l),$t("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$t("invalid",r);break;case"textarea":ny(r,l),$t("invalid",r)}Uf(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&Mc(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&Mc(r.textContent,i,e),o=["children",""+i]):ha.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&$t("scroll",r)}switch(n){case"input":Cc(r),ty(r,l,!0);break;case"textarea":Cc(r),ry(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Eu)}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=ix(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[Xr]=t,e[ka]=r,Tw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Kf(n,r),n){case"dialog":$t("cancel",e),$t("close",e),o=r;break;case"iframe":case"object":case"embed":$t("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ki.length;o++)$t(Ki[o],e);o=r;break;case"source":$t("error",e),o=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),o=r;break;case"details":$t("toggle",e),o=r;break;case"input":ey(e,r),o=Hf(e,r),$t("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=At({},r,{value:void 0}),$t("invalid",e);break;case"textarea":ny(e,r),o=Gf(e,r),$t("invalid",e);break;default:o=r}Uf(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?ux(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ax(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ga(e,a):typeof a=="number"&&ga(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ha.hasOwnProperty(l)?a!=null&&l==="onScroll"&&$t("scroll",e):a!=null&&hh(e,l,a,s))}switch(n){case"input":Cc(e),ty(e,r,!1);break;case"textarea":Cc(e),ry(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ol(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Ts(e,!!r.multiple,l,!1):r.defaultValue!=null&&Ts(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Eu)}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 gn(t),null;case 6:if(e&&t.stateNode!=null)Fw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ve(166));if(n=wl(Ia.current),wl(Jr.current),$c(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,(l=r.nodeValue!==n)&&(e=Yn,e!==null))switch(e.tag){case 3:Mc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mc(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=t,t.stateNode=r}return gn(t),null;case 13:if(Tt(Lt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&qn!==null&&t.mode&1&&!(t.flags&128))Xx(),Gs(),t.flags|=98560,l=!1;else if(l=$c(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(ve(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(ve(317));l[Xr]=t}else Gs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gn(t),l=!1}else Or!==null&&(Im(Or),Or=null),l=!0;if(!l)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||Lt.current&1?Xt===0&&(Xt=3):Xh())),t.updateQueue!==null&&(t.flags|=4),gn(t),null);case 4:return Us(),bm(e,t),e===null&&Sa(t.stateNode.containerInfo),gn(t),null;case 10:return Dh(t.type._context),gn(t),null;case 17:return jn(t.type)&&Iu(),gn(t),null;case 19:if(Tt(Lt),l=t.memoizedState,l===null)return gn(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Ri(l,!1);else{if(Xt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Du(e),s!==null){for(t.flags|=128,Ri(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mt(Lt,Lt.current&1|2),t.child}e=e.sibling}l.tail!==null&&Vt()>qs&&(t.flags|=128,r=!0,Ri(l,!1),t.lanes=4194304)}else{if(!r)if(e=Du(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Dt)return gn(t),null}else 2*Vt()-l.renderingStartTime>qs&&n!==1073741824&&(t.flags|=128,r=!0,Ri(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Vt(),t.sibling=null,n=Lt.current,Mt(Lt,r?n&1|2:n&1),t):(gn(t),null);case 22:case 23:return Qh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vn&1073741824&&(gn(t),t.subtreeFlags&6&&(t.flags|=8192)):gn(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function BI(e,t){switch(Rh(t),t.tag){case 1:return jn(t.type)&&Iu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Us(),Tt(Dn),Tt(Cn),Ah(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nh(t),null;case 13:if(Tt(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));Gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(Lt),null;case 4:return Us(),null;case 10:return Dh(t.type._context),null;case 22:case 23:return Qh(),null;case 24:return null;default:return null}}var Oc=!1,bn=!1,VI=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function ks(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bt(e,t,r)}else n.current=null}function Cm(e,t,n){try{n()}catch(r){Bt(e,t,r)}}var Uy=!1;function GI(e,t){if(rm=Su,e=Nx(),Mh(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,c=0,u=0,p=e,f=null;t:for(;;){for(var g;p!==n||o!==0&&p.nodeType!==3||(i=s+o),p!==l||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===n&&++c===o&&(i=s),f===l&&++u===r&&(a=s),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(om={focusedElem:e,selectionRange:n},Su=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){t=Fe;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,w=h.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?b:Mr(t.type,b),w);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ve(163))}}catch(S){Bt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}return h=Uy,Uy=!1,h}function sa(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 l=o.destroy;o.destroy=void 0,l!==void 0&&Cm(t,n,l)}o=o.next}while(o!==r)}}function wd(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 xm(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 Dw(e){var t=e.alternate;t!==null&&(e.alternate=null,Dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[ka],delete t[im],delete t[EI],delete t[II])),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 jw(e){return e.tag===5||e.tag===3||e.tag===4}function Ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jw(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 wm(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=Eu));else if(r!==4&&(e=e.child,e!==null))for(wm(e,t,n),e=e.sibling;e!==null;)wm(e,t,n),e=e.sibling}function Sm(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(Sm(e,t,n),e=e.sibling;e!==null;)Sm(e,t,n),e=e.sibling}var on=null,Tr=!1;function To(e,t,n){for(n=n.child;n!==null;)_w(e,t,n),n=n.sibling}function _w(e,t,n){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(md,n)}catch{}switch(n.tag){case 5:bn||ks(n,t);case 6:var r=on,o=Tr;on=null,To(e,t,n),on=r,Tr=o,on!==null&&(Tr?(e=on,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):on.removeChild(n.stateNode));break;case 18:on!==null&&(Tr?(e=on,n=n.stateNode,e.nodeType===8?Xp(e.parentNode,n):e.nodeType===1&&Xp(e,n),Ca(e)):Xp(on,n.stateNode));break;case 4:r=on,o=Tr,on=n.stateNode.containerInfo,Tr=!0,To(e,t,n),on=r,Tr=o;break;case 0:case 11:case 14:case 15:if(!bn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Cm(n,t,s),o=o.next}while(o!==r)}To(e,t,n);break;case 1:if(!bn&&(ks(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Bt(n,t,i)}To(e,t,n);break;case 21:To(e,t,n);break;case 22:n.mode&1?(bn=(r=bn)||n.memoizedState!==null,To(e,t,n),bn=r):To(e,t,n);break;default:To(e,t,n)}}function qy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VI),t.forEach(function(r){var o=JI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ir(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:on=i.stateNode,Tr=!1;break e;case 3:on=i.stateNode.containerInfo,Tr=!0;break e;case 4:on=i.stateNode.containerInfo,Tr=!0;break e}i=i.return}if(on===null)throw Error(ve(160));_w(l,s,o),on=null,Tr=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Bt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lw(t,e),t=t.sibling}function Lw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ir(t,e),Wr(e),r&4){try{sa(3,e,e.return),wd(3,e)}catch(b){Bt(e,e.return,b)}try{sa(5,e,e.return)}catch(b){Bt(e,e.return,b)}}break;case 1:Ir(t,e),Wr(e),r&512&&n!==null&&ks(n,n.return);break;case 5:if(Ir(t,e),Wr(e),r&512&&n!==null&&ks(n,n.return),e.flags&32){var o=e.stateNode;try{ga(o,"")}catch(b){Bt(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&lx(o,l),Kf(i,s);var c=Kf(i,l);for(s=0;s<a.length;s+=2){var u=a[s],p=a[s+1];u==="style"?ux(o,p):u==="dangerouslySetInnerHTML"?ax(o,p):u==="children"?ga(o,p):hh(o,u,p,c)}switch(i){case"input":Bf(o,l);break;case"textarea":sx(o,l);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var g=l.value;g!=null?Ts(o,!!l.multiple,g,!1):f!==!!l.multiple&&(l.defaultValue!=null?Ts(o,!!l.multiple,l.defaultValue,!0):Ts(o,!!l.multiple,l.multiple?[]:"",!1))}o[ka]=l}catch(b){Bt(e,e.return,b)}}break;case 6:if(Ir(t,e),Wr(e),r&4){if(e.stateNode===null)throw Error(ve(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(b){Bt(e,e.return,b)}}break;case 3:if(Ir(t,e),Wr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ca(t.containerInfo)}catch(b){Bt(e,e.return,b)}break;case 4:Ir(t,e),Wr(e);break;case 13:Ir(t,e),Wr(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(qh=Vt())),r&4&&qy(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(bn=(c=bn)||u,Ir(t,e),bn=c):Ir(t,e),Wr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Fe=e,u=e.child;u!==null;){for(p=Fe=u;Fe!==null;){switch(f=Fe,g=f.child,f.tag){case 0:case 11:case 14:case 15:sa(4,f,f.return);break;case 1:ks(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(b){Bt(r,n,b)}}break;case 5:ks(f,f.return);break;case 22:if(f.memoizedState!==null){Qy(p);continue}}g!==null?(g.return=f,Fe=g):Qy(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{o=p.stateNode,c?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=p.stateNode,a=p.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=cx("display",s))}catch(b){Bt(e,e.return,b)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Bt(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ir(t,e),Wr(e),r&4&&qy(e);break;case 21:break;default:Ir(t,e),Wr(e)}}function Wr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jw(n)){var r=n;break e}n=n.return}throw Error(ve(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ga(o,""),r.flags&=-33);var l=Ky(e);Sm(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Ky(e);wm(e,i,s);break;default:throw Error(ve(161))}}catch(a){Bt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WI(e,t,n){Fe=e,Nw(e)}function Nw(e,t,n){for(var r=(e.mode&1)!==0;Fe!==null;){var o=Fe,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Oc;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||bn;i=Oc;var c=bn;if(Oc=s,(bn=a)&&!c)for(Fe=o;Fe!==null;)s=Fe,a=s.child,s.tag===22&&s.memoizedState!==null?Xy(o):a!==null?(a.return=s,Fe=a):Xy(o);for(;l!==null;)Fe=l,Nw(l),l=l.sibling;Fe=o,Oc=i,bn=c}Yy(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,Fe=l):Yy(e)}}function Yy(e){for(;Fe!==null;){var t=Fe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bn||wd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!bn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Mr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Fy(t,l,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}Fy(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&Ca(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ve(163))}bn||t.flags&512&&xm(t)}catch(f){Bt(t,t.return,f)}}if(t===e){Fe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function Qy(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function Xy(e){for(;Fe!==null;){var t=Fe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wd(4,t)}catch(a){Bt(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Bt(t,o,a)}}var l=t.return;try{xm(t)}catch(a){Bt(t,l,a)}break;case 5:var s=t.return;try{xm(t)}catch(a){Bt(t,s,a)}}}catch(a){Bt(t,t.return,a)}if(t===e){Fe=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;break}Fe=t.return}}var UI=Math.ceil,Lu=$o.ReactCurrentDispatcher,Uh=$o.ReactCurrentOwner,fr=$o.ReactCurrentBatchConfig,ft=0,nn=null,Yt=null,cn=0,Vn=0,Es=al(0),Xt=0,Ta=null,Nl=0,Sd=0,Kh=0,ia=null,Tn=null,qh=0,qs=1/0,fo=null,Nu=!1,Pm=null,el=null,Fc=!1,Uo=null,Au=0,aa=0,km=null,ru=-1,ou=0;function kn(){return ft&6?Vt():ru!==-1?ru:ru=Vt()}function tl(e){return e.mode&1?ft&2&&cn!==0?cn&-cn:$I.transition!==null?(ou===0&&(ou=wx()),ou):(e=xt,e!==0||(e=window.event,e=e===void 0?16:$x(e.type)),e):1}function Lr(e,t,n,r){if(50<aa)throw aa=0,km=null,Error(ve(185));Za(e,n,r),(!(ft&2)||e!==nn)&&(e===nn&&(!(ft&2)&&(Sd|=n),Xt===4&&Bo(e,cn)),_n(e,r),n===1&&ft===0&&!(t.mode&1)&&(qs=Vt()+500,bd&&cl()))}function _n(e,t){var n=e.callbackNode;$E(e,t);var r=wu(e,e===nn?cn:0);if(r===0)n!==null&&sy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&sy(n),t===1)e.tag===0?MI(Zy.bind(null,e)):qx(Zy.bind(null,e)),PI(function(){!(ft&6)&&cl()}),n=null;else{switch(Sx(r)){case 1:n=Ch;break;case 4:n=Cx;break;case 16:n=xu;break;case 536870912:n=xx;break;default:n=xu}n=Uw(n,Aw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Aw(e,t){if(ru=-1,ou=0,ft&6)throw Error(ve(327));var n=e.callbackNode;if(_s()&&e.callbackNode!==n)return null;var r=wu(e,e===nn?cn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zu(e,r);else{t=r;var o=ft;ft|=2;var l=Hw();(nn!==e||cn!==t)&&(fo=null,qs=Vt()+500,Ml(e,t));do try{YI();break}catch(i){zw(e,i)}while(!0);Fh(),Lu.current=l,ft=o,Yt!==null?t=0:(nn=null,cn=0,t=Xt)}if(t!==0){if(t===2&&(o=Zf(e),o!==0&&(r=o,t=Em(e,o))),t===1)throw n=Ta,Ml(e,0),Bo(e,r),_n(e,Vt()),n;if(t===6)Bo(e,r);else{if(o=e.current.alternate,!(r&30)&&!KI(o)&&(t=zu(e,r),t===2&&(l=Zf(e),l!==0&&(r=l,t=Em(e,l))),t===1))throw n=Ta,Ml(e,0),Bo(e,r),_n(e,Vt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ve(345));case 2:gl(e,Tn,fo);break;case 3:if(Bo(e,r),(r&130023424)===r&&(t=qh+500-Vt(),10<t)){if(wu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){kn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=sm(gl.bind(null,e,Tn,fo),t);break}gl(e,Tn,fo);break;case 4:if(Bo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_r(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=Vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UI(r/1960))-r,10<r){e.timeoutHandle=sm(gl.bind(null,e,Tn,fo),r);break}gl(e,Tn,fo);break;case 5:gl(e,Tn,fo);break;default:throw Error(ve(329))}}}return _n(e,Vt()),e.callbackNode===n?Aw.bind(null,e):null}function Em(e,t){var n=ia;return e.current.memoizedState.isDehydrated&&(Ml(e,t).flags|=256),e=zu(e,t),e!==2&&(t=Tn,Tn=n,t!==null&&Im(t)),e}function Im(e){Tn===null?Tn=e:Tn.push.apply(Tn,e)}function KI(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],l=o.getSnapshot;o=o.value;try{if(!Ar(l(),o))return!1}catch{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 Bo(e,t){for(t&=~Kh,t&=~Sd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_r(t),r=1<<n;e[n]=-1,t&=~r}}function Zy(e){if(ft&6)throw Error(ve(327));_s();var t=wu(e,0);if(!(t&1))return _n(e,Vt()),null;var n=zu(e,t);if(e.tag!==0&&n===2){var r=Zf(e);r!==0&&(t=r,n=Em(e,r))}if(n===1)throw n=Ta,Ml(e,0),Bo(e,t),_n(e,Vt()),n;if(n===6)throw Error(ve(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gl(e,Tn,fo),_n(e,Vt()),null}function Yh(e,t){var n=ft;ft|=1;try{return e(t)}finally{ft=n,ft===0&&(qs=Vt()+500,bd&&cl())}}function Al(e){Uo!==null&&Uo.tag===0&&!(ft&6)&&_s();var t=ft;ft|=1;var n=fr.transition,r=xt;try{if(fr.transition=null,xt=1,e)return e()}finally{xt=r,fr.transition=n,ft=t,!(ft&6)&&cl()}}function Qh(){Vn=Es.current,Tt(Es)}function Ml(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,SI(n)),Yt!==null)for(n=Yt.return;n!==null;){var r=n;switch(Rh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Iu();break;case 3:Us(),Tt(Dn),Tt(Cn),Ah();break;case 5:Nh(r);break;case 4:Us();break;case 13:Tt(Lt);break;case 19:Tt(Lt);break;case 10:Dh(r.type._context);break;case 22:case 23:Qh()}n=n.return}if(nn=e,Yt=e=nl(e.current,null),cn=Vn=t,Xt=0,Ta=null,Kh=Sd=Nl=0,Tn=ia=null,xl!==null){for(t=0;t<xl.length;t++)if(n=xl[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}xl=null}return e}function zw(e,t){do{var n=Yt;try{if(Fh(),eu.current=_u,ju){for(var r=Nt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ju=!1}if(Ll=0,en=Qt=Nt=null,la=!1,Ma=0,Uh.current=null,n===null||n.return===null){Xt=1,Ta=t,Yt=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=cn,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,u=i,p=u.tag;if(!(u.mode&1)&&(p===0||p===11||p===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=Ay(s);if(g!==null){g.flags&=-257,zy(g,s,i,l,t),g.mode&1&&Ny(l,c,t),t=g,a=c;var h=t.updateQueue;if(h===null){var b=new Set;b.add(a),t.updateQueue=b}else h.add(a);break e}else{if(!(t&1)){Ny(l,c,t),Xh();break e}a=Error(ve(426))}}else if(Dt&&i.mode&1){var w=Ay(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),zy(w,s,i,l,t),Th(Ks(a,i));break e}}l=a=Ks(a,i),Xt!==4&&(Xt=2),ia===null?ia=[l]:ia.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var C=Sw(l,a,t);Oy(l,C);break e;case 1:i=a;var y=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(el===null||!el.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Pw(l,i,t);Oy(l,S);break e}}l=l.return}while(l!==null)}Vw(n)}catch(T){t=T,Yt===n&&n!==null&&(Yt=n=n.return);continue}break}while(!0)}function Hw(){var e=Lu.current;return Lu.current=_u,e===null?_u:e}function Xh(){(Xt===0||Xt===3||Xt===2)&&(Xt=4),nn===null||!(Nl&268435455)&&!(Sd&268435455)||Bo(nn,cn)}function zu(e,t){var n=ft;ft|=2;var r=Hw();(nn!==e||cn!==t)&&(fo=null,Ml(e,t));do try{qI();break}catch(o){zw(e,o)}while(!0);if(Fh(),ft=n,Lu.current=r,Yt!==null)throw Error(ve(261));return nn=null,cn=0,Xt}function qI(){for(;Yt!==null;)Bw(Yt)}function YI(){for(;Yt!==null&&!CE();)Bw(Yt)}function Bw(e){var t=Ww(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?Vw(e):Yt=t,Uh.current=null}function Vw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=BI(n,t),n!==null){n.flags&=32767,Yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xt=6,Yt=null;return}}else if(n=HI(n,t,Vn),n!==null){Yt=n;return}if(t=t.sibling,t!==null){Yt=t;return}Yt=t=e}while(t!==null);Xt===0&&(Xt=5)}function gl(e,t,n){var r=xt,o=fr.transition;try{fr.transition=null,xt=1,QI(e,t,n,r)}finally{fr.transition=o,xt=r}return null}function QI(e,t,n,r){do _s();while(Uo!==null);if(ft&6)throw Error(ve(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(ve(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(RE(e,l),e===nn&&(Yt=nn=null,cn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Fc||(Fc=!0,Uw(xu,function(){return _s(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=fr.transition,fr.transition=null;var s=xt;xt=1;var i=ft;ft|=4,Uh.current=null,GI(e,n),Lw(n,e),gI(om),Su=!!rm,om=rm=null,e.current=n,WI(n),xE(),ft=i,xt=s,fr.transition=l}else e.current=n;if(Fc&&(Fc=!1,Uo=e,Au=o),l=e.pendingLanes,l===0&&(el=null),PE(n.stateNode),_n(e,Vt()),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(Nu)throw Nu=!1,e=Pm,Pm=null,e;return Au&1&&e.tag!==0&&_s(),l=e.pendingLanes,l&1?e===km?aa++:(aa=0,km=e):aa=0,cl(),null}function _s(){if(Uo!==null){var e=Sx(Au),t=fr.transition,n=xt;try{if(fr.transition=null,xt=16>e?16:e,Uo===null)var r=!1;else{if(e=Uo,Uo=null,Au=0,ft&6)throw Error(ve(331));var o=ft;for(ft|=4,Fe=e.current;Fe!==null;){var l=Fe,s=l.child;if(Fe.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(Fe=c;Fe!==null;){var u=Fe;switch(u.tag){case 0:case 11:case 15:sa(8,u,l)}var p=u.child;if(p!==null)p.return=u,Fe=p;else for(;Fe!==null;){u=Fe;var f=u.sibling,g=u.return;if(Dw(u),u===c){Fe=null;break}if(f!==null){f.return=g,Fe=f;break}Fe=g}}}var h=l.alternate;if(h!==null){var b=h.child;if(b!==null){h.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}Fe=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,Fe=s;else e:for(;Fe!==null;){if(l=Fe,l.flags&2048)switch(l.tag){case 0:case 11:case 15:sa(9,l,l.return)}var C=l.sibling;if(C!==null){C.return=l.return,Fe=C;break e}Fe=l.return}}var y=e.current;for(Fe=y;Fe!==null;){s=Fe;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Fe=x;else e:for(s=y;Fe!==null;){if(i=Fe,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:wd(9,i)}}catch(T){Bt(i,i.return,T)}if(i===s){Fe=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,Fe=S;break e}Fe=i.return}}if(ft=o,cl(),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(md,e)}catch{}r=!0}return r}finally{xt=n,fr.transition=t}}return!1}function Jy(e,t,n){t=Ks(n,t),t=Sw(e,t,1),e=Jo(e,t,1),t=kn(),e!==null&&(Za(e,1,t),_n(e,t))}function Bt(e,t,n){if(e.tag===3)Jy(e,e,n);else for(;t!==null;){if(t.tag===3){Jy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(el===null||!el.has(r))){e=Ks(n,e),e=Pw(t,e,1),t=Jo(t,e,1),e=kn(),t!==null&&(Za(t,1,e),_n(t,e));break}}t=t.return}}function XI(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=kn(),e.pingedLanes|=e.suspendedLanes&n,nn===e&&(cn&n)===n&&(Xt===4||Xt===3&&(cn&130023424)===cn&&500>Vt()-qh?Ml(e,0):Kh|=n),_n(e,t)}function Gw(e,t){t===0&&(e.mode&1?(t=Sc,Sc<<=1,!(Sc&130023424)&&(Sc=4194304)):t=1);var n=kn();e=Po(e,t),e!==null&&(Za(e,t,n),_n(e,n))}function ZI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gw(e,n)}function JI(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(ve(314))}r!==null&&r.delete(t),Gw(e,n)}var Ww;Ww=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dn.current)Fn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fn=!1,zI(e,t,n);Fn=!!(e.flags&131072)}else Fn=!1,Dt&&t.flags&1048576&&Yx(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nu(e,t),e=t.pendingProps;var o=Vs(t,Cn.current);js(t,n),o=Hh(null,t,r,e,o,n);var l=Bh();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,jn(r)?(l=!0,Mu(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_h(t),o.updater=xd,t.stateNode=o,o._reactInternals=t,fm(t,r,e,n),t=gm(null,t,r,!0,l,n)):(t.tag=0,Dt&&l&&$h(t),wn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=tM(r),e=Mr(r,e),o){case 0:t=hm(null,t,r,e,n);break e;case 1:t=Vy(null,t,r,e,n);break e;case 11:t=Hy(null,t,r,e,n);break e;case 14:t=By(null,t,r,Mr(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),hm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Vy(e,t,r,o,n);case 3:e:{if(Mw(t),e===null)throw Error(ve(387));r=t.pendingProps,l=t.memoizedState,o=l.element,tw(e,t),Fu(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Ks(Error(ve(423)),t),t=Gy(e,t,r,n,o);break e}else if(r!==o){o=Ks(Error(ve(424)),t),t=Gy(e,t,r,n,o);break e}else for(qn=Zo(t.stateNode.containerInfo.firstChild),Yn=t,Dt=!0,Or=null,n=Jx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gs(),r===o){t=ko(e,t,n);break e}wn(e,t,r,n)}t=t.child}return t;case 5:return nw(t),e===null&&um(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,lm(r,o)?s=null:l!==null&&lm(r,l)&&(t.flags|=32),Iw(e,t),wn(e,t,s,n),t.child;case 6:return e===null&&um(t),null;case 13:return $w(e,t,n);case 4:return Lh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ws(t,null,r,n):wn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),Hy(e,t,r,o,n);case 7:return wn(e,t,t.pendingProps,n),t.child;case 8:return wn(e,t,t.pendingProps.children,n),t.child;case 12:return wn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,Mt(Tu,r._currentValue),r._currentValue=s,l!==null)if(Ar(l.value,s)){if(l.children===o.children&&!Dn.current){t=ko(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Co(-1,n&-n),a.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),dm(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(ve(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),dm(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}wn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,js(t,n),o=hr(o),r=r(o),t.flags|=1,wn(e,t,r,n),t.child;case 14:return r=t.type,o=Mr(r,t.pendingProps),o=Mr(r.type,o),By(e,t,r,o,n);case 15:return kw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Mr(r,o),nu(e,t),t.tag=1,jn(r)?(e=!0,Mu(t)):e=!1,js(t,n),ww(t,r,o),fm(t,r,o,n),gm(null,t,r,!0,e,n);case 19:return Rw(e,t,n);case 22:return Ew(e,t,n)}throw Error(ve(156,t.tag))};function Uw(e,t){return bx(e,t)}function eM(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 pr(e,t,n,r){return new eM(e,t,n,r)}function Zh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tM(e){if(typeof e=="function")return Zh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vh)return 11;if(e===yh)return 14}return 2}function nl(e,t){var n=e.alternate;return n===null?(n=pr(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 lu(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Zh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case gs:return $l(n.children,o,l,t);case gh:s=8,o|=8;break;case Lf:return e=pr(12,n,t,o|2),e.elementType=Lf,e.lanes=l,e;case Nf:return e=pr(13,n,t,o),e.elementType=Nf,e.lanes=l,e;case Af:return e=pr(19,n,t,o),e.elementType=Af,e.lanes=l,e;case nx:return Pd(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ex:s=10;break e;case tx:s=9;break e;case vh:s=11;break e;case yh:s=14;break e;case Lo:s=16,r=null;break e}throw Error(ve(130,e==null?e:typeof e,""))}return t=pr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function $l(e,t,n,r){return e=pr(7,e,r,t),e.lanes=n,e}function Pd(e,t,n,r){return e=pr(22,e,r,t),e.elementType=nx,e.lanes=n,e.stateNode={isHidden:!1},e}function lf(e,t,n){return e=pr(6,e,null,t),e.lanes=n,e}function sf(e,t,n){return t=pr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nM(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=zp(0),this.expirationTimes=zp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jh(e,t,n,r,o,l,s,i,a){return e=new nM(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_h(l),e}function rM(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kw(e){if(!e)return ll;e=e._reactInternals;e:{if(Kl(e)!==e||e.tag!==1)throw Error(ve(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ve(171))}if(e.tag===1){var n=e.type;if(jn(n))return Kx(e,n,t)}return t}function qw(e,t,n,r,o,l,s,i,a){return e=Jh(n,r,!0,e,o,l,s,i,a),e.context=Kw(null),n=e.current,r=kn(),o=tl(n),l=Co(r,o),l.callback=t??null,Jo(n,l,o),e.current.lanes=o,Za(e,o,r),_n(e,r),e}function kd(e,t,n,r){var o=t.current,l=kn(),s=tl(o);return n=Kw(n),t.context===null?t.context=n:t.pendingContext=n,t=Co(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jo(o,t,s),e!==null&&(Lr(e,o,s,l),Jc(e,o,s)),s}function Hu(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 eb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function eg(e,t){eb(e,t),(e=e.alternate)&&eb(e,t)}function oM(){return null}var Yw=typeof reportError=="function"?reportError:function(e){console.error(e)};function tg(e){this._internalRoot=e}Ed.prototype.render=tg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ve(409));kd(e,t,null,null)};Ed.prototype.unmount=tg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Al(function(){kd(null,e,null,null)}),t[So]=null}};function Ed(e){this._internalRoot=e}Ed.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ex();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ho.length&&t!==0&&t<Ho[n].priority;n++);Ho.splice(n,0,e),n===0&&Mx(e)}};function ng(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tb(){}function lM(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var c=Hu(s);l.call(c)}}var s=qw(t,r,e,0,null,!1,!1,"",tb);return e._reactRootContainer=s,e[So]=s.current,Sa(e.nodeType===8?e.parentNode:e),Al(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var c=Hu(a);i.call(c)}}var a=Jh(e,0,!1,null,null,!1,!1,"",tb);return e._reactRootContainer=a,e[So]=a.current,Sa(e.nodeType===8?e.parentNode:e),Al(function(){kd(t,a,n,r)}),a}function Md(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=Hu(s);i.call(a)}}kd(t,s,e,o)}else s=lM(n,t,e,o,r);return Hu(s)}Px=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ui(t.pendingLanes);n!==0&&(xh(t,n|1),_n(t,Vt()),!(ft&6)&&(qs=Vt()+500,cl()))}break;case 13:Al(function(){var r=Po(e,1);if(r!==null){var o=kn();Lr(r,e,1,o)}}),eg(e,1)}};wh=function(e){if(e.tag===13){var t=Po(e,134217728);if(t!==null){var n=kn();Lr(t,e,134217728,n)}eg(e,134217728)}};kx=function(e){if(e.tag===13){var t=tl(e),n=Po(e,t);if(n!==null){var r=kn();Lr(n,e,t,r)}eg(e,t)}};Ex=function(){return xt};Ix=function(e,t){var n=xt;try{return xt=e,t()}finally{xt=n}};Yf=function(e,t,n){switch(t){case"input":if(Bf(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=yd(r);if(!o)throw Error(ve(90));ox(r),Bf(r,o)}}}break;case"textarea":sx(e,n);break;case"select":t=n.value,t!=null&&Ts(e,!!n.multiple,t,!1)}};fx=Yh;mx=Al;var sM={usingClientEntryPoint:!1,Events:[ec,Cs,yd,dx,px,Yh]},Ti={findFiberByHostInstance:Cl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iM={bundleType:Ti.bundleType,version:Ti.version,rendererPackageName:Ti.rendererPackageName,rendererConfig:Ti.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vx(e),e===null?null:e.stateNode},findFiberByHostInstance:Ti.findFiberByHostInstance||oM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{md=Dc.inject(iM),Zr=Dc}catch{}}er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sM;er.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ng(t))throw Error(ve(200));return rM(e,t,null,n)};er.createRoot=function(e,t){if(!ng(e))throw Error(ve(299));var n=!1,r="",o=Yw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jh(e,1,!1,null,null,n,!1,r,o),e[So]=t.current,Sa(e.nodeType===8?e.parentNode:e),new tg(t)};er.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(ve(188)):(e=Object.keys(e).join(","),Error(ve(268,e)));return e=vx(t),e=e===null?null:e.stateNode,e};er.flushSync=function(e){return Al(e)};er.hydrate=function(e,t,n){if(!Id(t))throw Error(ve(200));return Md(null,e,t,!0,n)};er.hydrateRoot=function(e,t,n){if(!ng(e))throw Error(ve(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=Yw;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=qw(t,null,e,1,n??null,o,!1,l,s),e[So]=t.current,Sa(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 Ed(t)};er.render=function(e,t,n){if(!Id(t))throw Error(ve(200));return Md(null,e,t,!1,n)};er.unmountComponentAtNode=function(e){if(!Id(e))throw Error(ve(40));return e._reactRootContainer?(Al(function(){Md(null,null,e,!1,function(){e._reactRootContainer=null,e[So]=null})}),!0):!1};er.unstable_batchedUpdates=Yh;er.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(ve(200));if(e==null||e._reactInternals===void 0)throw Error(ve(38));return Md(e,t,n,!1,r)};er.version="18.3.1-next-f1338f8080-20240426";function Qw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qw)}catch(e){console.error(e)}}Qw(),QC.exports=er;var nc=QC.exports;const jc=ii(nc);var Xw,nb=nc;Xw=nb.createRoot,nb.hydrateRoot;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var Is;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Is||(Is={}));var rb=function(e){return e},ob="beforeunload",aM="hashchange",cM="popstate";function uM(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function l(){var E=ib(r.location.hash.substr(1)),_=E.pathname,R=_===void 0?"/":_,F=E.search,L=F===void 0?"":F,O=E.hash,I=O===void 0?"":O,$=o.state||{};return[$.idx,rb({pathname:R,search:L,hash:I,state:$.usr||null,key:$.key||"default"})]}var s=null;function i(){if(s)g.call(s),s=null;else{var E=Is.Pop,_=l(),R=_[0],F=_[1];if(g.length){if(R!=null){var L=u-R;L&&(s={action:E,location:F,retry:function(){P(L*-1)}},P(L))}}else x(E)}}r.addEventListener(cM,i),r.addEventListener(aM,function(){var E=l(),_=E[1];af(_)!==af(p)&&i()});var a=Is.Pop,c=l(),u=c[0],p=c[1],f=sb(),g=sb();u==null&&(u=0,o.replaceState(m({},o.state,{idx:u}),""));function h(){var E=document.querySelector("base"),_="";if(E&&E.getAttribute("href")){var R=r.location.href,F=R.indexOf("#");_=F===-1?R:R.slice(0,F)}return _}function b(E){return h()+"#"+(typeof E=="string"?E:af(E))}function w(E,_){return _===void 0&&(_=null),rb(m({pathname:p.pathname,hash:"",search:""},typeof E=="string"?ib(E):E,{state:_,key:dM()}))}function C(E,_){return[{usr:E.state,key:E.key,idx:_},b(E)]}function y(E,_,R){return!g.length||(g.call({action:E,location:_,retry:R}),!1)}function x(E){a=E;var _=l();u=_[0],p=_[1],f.call({action:a,location:p})}function S(E,_){var R=Is.Push,F=w(E,_);function L(){S(E,_)}if(y(R,F,L)){var O=C(F,u+1),I=O[0],$=O[1];try{o.pushState(I,"",$)}catch{r.location.assign($)}x(R)}}function T(E,_){var R=Is.Replace,F=w(E,_);function L(){T(E,_)}if(y(R,F,L)){var O=C(F,u),I=O[0],$=O[1];o.replaceState(I,"",$),x(R)}}function P(E){o.go(E)}var k={get action(){return a},get location(){return p},createHref:b,push:S,replace:T,go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(_){return f.push(_)},block:function(_){var R=g.push(_);return g.length===1&&r.addEventListener(ob,lb),function(){R(),g.length||r.removeEventListener(ob,lb)}}};return k}function lb(e){e.preventDefault(),e.returnValue=""}function sb(){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 dM(){return Math.random().toString(36).substr(2,8)}function af(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,l=e.hash,s=l===void 0?"":l;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function ib(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}var pM=function(){},fM=pM;const ds=ii(fM);var Zw={exports:{}},mM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hM=mM,gM=hM;function Jw(){}function e1(){}e1.resetWarningCache=Jw;var vM=function(){function e(r,o,l,s,i,a){if(a!==gM){var c=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 c.name="Invariant Violation",c}}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:e1,resetWarningCache:Jw};return n.PropTypes=n,n};Zw.exports=vM();var yM=Zw.exports;const V=ii(yM);var bM=function(e,t,n,r,o,l,s,i){if(!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,l,s,i],u=0;a=new Error(t.replace(/%s/g,function(){return c[u++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}},CM=bM;const t1=ii(CM);var xM=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};function wM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $d=function(e){SM(t,e);function t(){var n,r,o;wM(this,t);for(var l=arguments.length,s=Array(l),i=0;i<l;i++)s[i]=arguments[i];return o=(n=(r=ab(this,e.call.apply(e,[this].concat(s))),r),r.state={match:r.computeMatch(r.props.history.location.pathname)},n),ab(r,o)}return t.prototype.getChildContext=function(){return{router:xM({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(r){return{path:"/",url:"/",params:{},isExact:r==="/"}},t.prototype.componentWillMount=function(){var r=this,o=this.props,l=o.children,s=o.history;t1(l==null||tn.Children.count(l)===1,"A <Router> may have only one child element"),this.unlisten=s.listen(function(){r.setState({match:r.computeMatch(s.location.pathname)})})},t.prototype.componentWillReceiveProps=function(r){ds(this.props.history===r.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var r=this.props.children;return r?tn.Children.only(r):null},t}(tn.Component);$d.propTypes={history:V.object.isRequired,children:V.node};$d.contextTypes={router:V.object};$d.childContextTypes={router:V.object.isRequired};var di={exports:{}},PM=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Bu=PM;di.exports=o1;di.exports.parse=rg;di.exports.compile=IM;di.exports.tokensToFunction=n1;di.exports.tokensToRegExp=r1;var kM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function rg(e,t){for(var n=[],r=0,o=0,l="",s=t&&t.delimiter||"/",i;(i=kM.exec(e))!=null;){var a=i[0],c=i[1],u=i.index;if(l+=e.slice(o,u),o=u+a.length,c){l+=c[1];continue}var p=e[o],f=i[2],g=i[3],h=i[4],b=i[5],w=i[6],C=i[7];l&&(n.push(l),l="");var y=f!=null&&p!=null&&p!==f,x=w==="+"||w==="*",S=w==="?"||w==="*",T=f||s,P=h||b,k=f||(typeof n[n.length-1]=="string"?n[n.length-1]:"");n.push({name:g||r++,prefix:f||"",delimiter:T,optional:S,repeat:x,partial:y,asterisk:!!C,pattern:P?RM(P):C?".*":EM(T,k)})}return o<e.length&&(l+=e.substr(o)),l&&n.push(l),n}function EM(e,t){return!t||t.indexOf(e)>-1?"[^"+Sl(e)+"]+?":Sl(t)+"|(?:(?!"+Sl(t)+")[^"+Sl(e)+"])+?"}function IM(e,t){return n1(rg(e,t),t)}function MM(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function $M(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function n1(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",lg(t)));return function(o,l){for(var s="",i=o||{},a=l||{},c=a.pretty?MM:encodeURIComponent,u=0;u<e.length;u++){var p=e[u];if(typeof p=="string"){s+=p;continue}var f=i[p.name],g;if(f==null)if(p.optional){p.partial&&(s+=p.prefix);continue}else throw new TypeError('Expected "'+p.name+'" to be defined');if(Bu(f)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(g=c(f[h]),!n[u].test(g))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(g)+"`");s+=(h===0?p.prefix:p.delimiter)+g}continue}if(g=p.asterisk?$M(f):c(f),!n[u].test(g))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+g+'"');s+=p.prefix+g}return s}}function Sl(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function RM(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function og(e,t){return e.keys=t,e}function lg(e){return e&&e.sensitive?"":"i"}function TM(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return og(e,t)}function OM(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(o1(e[o],t,n).source);var l=new RegExp("(?:"+r.join("|")+")",lg(n));return og(l,t)}function FM(e,t,n){return r1(rg(e,n),t,n)}function r1(e,t,n){Bu(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,l="",s=0;s<e.length;s++){var i=e[s];if(typeof i=="string")l+=Sl(i);else{var a=Sl(i.prefix),c="(?:"+i.pattern+")";t.push(i),i.repeat&&(c+="(?:"+a+c+")*"),i.optional?i.partial?c=a+"("+c+")?":c="(?:"+a+"("+c+"))?":c=a+"("+c+")",l+=c}}var u=Sl(n.delimiter||"/"),p=l.slice(-u.length)===u;return r||(l=(p?l.slice(0,-u.length):l)+"(?:"+u+"(?=$))?"),o?l+="$":l+=r&&p?"":"(?="+u+"|$)",og(new RegExp("^"+l,lg(n)),t)}function o1(e,t,n){return Bu(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?TM(e,t):Bu(e)?OM(e,t,n):FM(e,t,n)}var DM=di.exports;const jM=ii(DM);var cb={},_M=1e4,ub=0,LM=function(t,n){var r=""+n.end+n.strict+n.sensitive,o=cb[r]||(cb[r]={});if(o[t])return o[t];var l=[],s=jM(t,l,n),i={re:s,keys:l};return ub<_M&&(o[t]=i,ub++),i},NM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments[2];typeof n=="string"&&(n={path:n});var o=n,l=o.path,s=o.exact,i=s===void 0?!1:s,a=o.strict,c=a===void 0?!1:a,u=o.sensitive,p=u===void 0?!1:u;if(l==null)return r;var f=LM(l,{end:i,strict:c,sensitive:p}),g=f.re,h=f.keys,b=g.exec(t);if(!b)return null;var w=b[0],C=b.slice(1),y=t===w;return i&&!y?null:{path:l,url:l==="/"&&w===""?"/":w,isExact:y,params:h.reduce(function(x,S,T){return x[S.name]=C[T],x},{})}},AM=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};function zM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function HM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cf=function(t){return tn.Children.count(t)===0},Oa=function(e){HM(t,e);function t(){var n,r,o;zM(this,t);for(var l=arguments.length,s=Array(l),i=0;i<l;i++)s[i]=arguments[i];return o=(n=(r=db(this,e.call.apply(e,[this].concat(s))),r),r.state={match:r.computeMatch(r.props,r.context.router)},n),db(r,o)}return t.prototype.getChildContext=function(){return{router:AM({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(r,o){var l=r.computedMatch,s=r.location,i=r.path,a=r.strict,c=r.exact,u=r.sensitive;if(l)return l;t1(o,"You should not use <Route> or withRouter() outside a <Router>");var p=o.route,f=(s||p.location).pathname;return NM(f,{path:i,strict:a,exact:c,sensitive:u},p.match)},t.prototype.componentWillMount=function(){ds(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),ds(!(this.props.component&&this.props.children&&!cf(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),ds(!(this.props.render&&this.props.children&&!cf(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(r,o){ds(!(r.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),ds(!(!r.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(r,o.router)})},t.prototype.render=function(){var r=this.state.match,o=this.props,l=o.children,s=o.component,i=o.render,a=this.context.router,c=a.history,u=a.route,p=a.staticContext,f=this.props.location||u.location,g={match:r,location:f,history:c,staticContext:p};return s?r?tn.createElement(s,g):null:i?r?i(g):null:typeof l=="function"?l(g):l&&!cf(l)?tn.Children.only(l):null},t}(tn.Component);Oa.propTypes={computedMatch:V.object,path:V.string,exact:V.bool,strict:V.bool,sensitive:V.bool,component:V.func,render:V.func,children:V.oneOfType([V.func,V.node]),location:V.object};Oa.contextTypes={router:V.shape({history:V.object.isRequired,route:V.object.isRequired,staticContext:V.object})};Oa.childContextTypes={router:V.object.isRequired};const Fa={black:"#000",white:"#fff"},ts={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ns={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},rs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},os={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ls={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Oi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},BM={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"};function Eo(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."}const VM=Object.freeze(Object.defineProperty({__proto__:null,default:Eo},Symbol.toStringTag,{value:"Module"})),zl="$$material";function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GM(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 WM(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 UM=function(){function e(n){var r=this;this._insertTag=function(o){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,l),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(WM(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=GM(o);try{l.insertRule(r,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),vn="-ms-",Vu="-moz-",ht="-webkit-",l1="comm",sg="rule",ig="decl",KM="@import",s1="@keyframes",qM="@layer",YM=Math.abs,Rd=String.fromCharCode,QM=Object.assign;function XM(e,t){return ln(e,0)^45?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}function i1(e){return e.trim()}function ZM(e,t){return(e=t.exec(e))?e[0]:e}function gt(e,t,n){return e.replace(t,n)}function Mm(e,t){return e.indexOf(t)}function ln(e,t){return e.charCodeAt(t)|0}function Da(e,t,n){return e.slice(t,n)}function qr(e){return e.length}function ag(e){return e.length}function _c(e,t){return t.push(e),e}function JM(e,t){return e.map(t).join("")}var Td=1,Ys=1,a1=0,An=0,qt=0,pi="";function Od(e,t,n,r,o,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:Td,column:Ys,length:s,return:""}}function Fi(e,t){return QM(Od("",null,null,"",null,null,0),e,{length:-e.length},t)}function e2(){return qt}function t2(){return qt=An>0?ln(pi,--An):0,Ys--,qt===10&&(Ys=1,Td--),qt}function Qn(){return qt=An<a1?ln(pi,An++):0,Ys++,qt===10&&(Ys=1,Td++),qt}function eo(){return ln(pi,An)}function su(){return An}function rc(e,t){return Da(pi,e,t)}function ja(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 c1(e){return Td=Ys=1,a1=qr(pi=e),An=0,[]}function u1(e){return pi="",e}function iu(e){return i1(rc(An-1,$m(e===91?e+2:e===40?e+1:e)))}function n2(e){for(;(qt=eo())&&qt<33;)Qn();return ja(e)>2||ja(qt)>3?"":" "}function r2(e,t){for(;--t&&Qn()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return rc(e,su()+(t<6&&eo()==32&&Qn()==32))}function $m(e){for(;Qn();)switch(qt){case e:return An;case 34:case 39:e!==34&&e!==39&&$m(qt);break;case 40:e===41&&$m(e);break;case 92:Qn();break}return An}function o2(e,t){for(;Qn()&&e+qt!==57;)if(e+qt===84&&eo()===47)break;return"/*"+rc(t,An-1)+"*"+Rd(e===47?e:Qn())}function l2(e){for(;!ja(eo());)Qn();return rc(e,An)}function s2(e){return u1(au("",null,null,null,[""],e=c1(e),0,[0],e))}function au(e,t,n,r,o,l,s,i,a){for(var c=0,u=0,p=s,f=0,g=0,h=0,b=1,w=1,C=1,y=0,x="",S=o,T=l,P=r,k=x;w;)switch(h=y,y=Qn()){case 40:if(h!=108&&ln(k,p-1)==58){Mm(k+=gt(iu(y),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:k+=iu(y);break;case 9:case 10:case 13:case 32:k+=n2(h);break;case 92:k+=r2(su()-1,7);continue;case 47:switch(eo()){case 42:case 47:_c(i2(o2(Qn(),su()),t,n),a);break;default:k+="/"}break;case 123*b:i[c++]=qr(k)*C;case 125*b:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:C==-1&&(k=gt(k,/\f/g,"")),g>0&&qr(k)-p&&_c(g>32?fb(k+";",r,n,p-1):fb(gt(k," ","")+";",r,n,p-2),a);break;case 59:k+=";";default:if(_c(P=pb(k,t,n,c,u,o,i,x,S=[],T=[],p),l),y===123)if(u===0)au(k,t,P,P,S,l,p,i,T);else switch(f===99&&ln(k,3)===110?100:f){case 100:case 108:case 109:case 115:au(e,P,P,r&&_c(pb(e,P,P,0,0,o,i,x,o,S=[],p),T),o,T,p,i,r?S:T);break;default:au(k,P,P,P,[""],T,0,i,T)}}c=u=g=0,b=C=1,x=k="",p=s;break;case 58:p=1+qr(k),g=h;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&t2()==125)continue}switch(k+=Rd(y),y*b){case 38:C=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(qr(k)-1)*C,C=1;break;case 64:eo()===45&&(k+=iu(Qn())),f=eo(),u=p=qr(x=k+=l2(su())),y++;break;case 45:h===45&&qr(k)==2&&(b=0)}}return l}function pb(e,t,n,r,o,l,s,i,a,c,u){for(var p=o-1,f=o===0?l:[""],g=ag(f),h=0,b=0,w=0;h<r;++h)for(var C=0,y=Da(e,p+1,p=YM(b=s[h])),x=e;C<g;++C)(x=i1(b>0?f[C]+" "+y:gt(y,/&\f/g,f[C])))&&(a[w++]=x);return Od(e,t,n,o===0?sg:i,a,c,u)}function i2(e,t,n){return Od(e,t,n,l1,Rd(e2()),Da(e,2,-2),0)}function fb(e,t,n,r){return Od(e,t,n,ig,Da(e,0,r),Da(e,r+1,-1),r)}function Ls(e,t){for(var n="",r=ag(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a2(e,t,n,r){switch(e.type){case qM:if(e.children.length)break;case KM:case ig:return e.return=e.return||e.value;case l1:return"";case s1:return e.return=e.value+"{"+Ls(e.children,r)+"}";case sg:e.value=e.props.join(",")}return qr(n=Ls(e.children,r))?e.return=e.value+"{"+n+"}":""}function c2(e){var t=ag(e);return function(n,r,o,l){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,l)||"";return s}}function u2(e){return function(t){t.root||(t=t.return)&&e(t)}}function d1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var d2=function(t,n,r){for(var o=0,l=0;o=l,l=eo(),o===38&&l===12&&(n[r]=1),!ja(l);)Qn();return rc(t,An)},p2=function(t,n){var r=-1,o=44;do switch(ja(o)){case 0:o===38&&eo()===12&&(n[r]=1),t[r]+=d2(An-1,n,r);break;case 2:t[r]+=iu(o);break;case 4:if(o===44){t[++r]=eo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Rd(o)}while(o=Qn());return t},f2=function(t,n){return u1(p2(c1(t),n))},mb=new WeakMap,m2=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&&!mb.get(r))&&!o){mb.set(t,!0);for(var l=[],s=f2(n,l),i=r.props,a=0,c=0;a<s.length;a++)for(var u=0;u<i.length;u++,c++)t.props[c]=l[a]?s[a].replace(/&\f/g,i[u]):i[u]+" "+s[a]}}},h2=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function p1(e,t){switch(XM(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+Vu+e+vn+e+e;case 6828:case 4268:return ht+e+vn+e+e;case 6165:return ht+e+vn+"flex-"+e+e;case 5187:return ht+e+gt(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return ht+e+vn+"flex-item-"+gt(e,/flex-|-self/,"")+e;case 4675:return ht+e+vn+"flex-line-pack"+gt(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+vn+gt(e,"shrink","negative")+e;case 5292:return ht+e+vn+gt(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+gt(e,"-grow","")+ht+e+vn+gt(e,"grow","positive")+e;case 4554:return ht+gt(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return gt(gt(gt(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return gt(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return gt(gt(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return gt(e,/(.+)-inline(.+)/,ht+"$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(qr(e)-1-t>6)switch(ln(e,t+1)){case 109:if(ln(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+Vu+(ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mm(e,"stretch")?p1(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ln(e,t+1)!==115)break;case 6444:switch(ln(e,qr(e)-3-(~Mm(e,"!important")&&10))){case 107:return gt(e,":",":"+ht)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(ln(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+vn+"$2box$3")+e}break;case 5936:switch(ln(e,t+11)){case 114:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+vn+e+e}return e}var g2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ig:t.return=p1(t.value,t.length);break;case s1:return Ls([Fi(t,{value:gt(t.value,"@","@"+ht)})],o);case sg:if(t.length)return JM(t.props,function(l){switch(ZM(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ls([Fi(t,{props:[gt(l,/:(read-\w+)/,":"+Vu+"$1")]})],o);case"::placeholder":return Ls([Fi(t,{props:[gt(l,/:(plac\w+)/,":"+ht+"input-$1")]}),Fi(t,{props:[gt(l,/:(plac\w+)/,":"+Vu+"$1")]}),Fi(t,{props:[gt(l,/:(plac\w+)/,vn+"input-$1")]})],o)}return""})}},v2=[g2],f1=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(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||v2,l={},s,i=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),C=1;C<w.length;C++)l[w[C]]=!0;i.push(b)});var a,c=[m2,h2];{var u,p=[a2,u2(function(b){u.insert(b)})],f=c2(c.concat(o,p)),g=function(w){return Ls(s2(w),f)};a=function(w,C,y,x){u=y,g(w?w+"{"+C.styles+"}":C.styles),x&&(h.inserted[C.name]=!0)}}var h={key:n,sheet:new UM({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:a};return h.sheet.hydrate(i),h},m1={exports:{}},St={};/** @license React v16.13.1
40
+ `+l.stack}return{value:e,source:t,stack:o,digest:null}}function of(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var LI=typeof WeakMap=="function"?WeakMap:Map;function Sw(e,t,n){n=Co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nu||(Nu=!0,km=r),hm(e,t)},n}function Pw(e,t,n){n=Co(-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(){hm(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){hm(e,t),typeof r!="function"&&(Jo===null?Jo=new Set([this]):Jo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ny(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new LI;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=XI.bind(null,e,t,n),t.then(e,e))}function Ay(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 zy(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=Co(-1,1),t.tag=2,Zo(n,t,1))),n.lanes|=1),e)}var NI=$o.ReactCurrentOwner,Fn=!1;function wn(e,t,n,r){t.child=e===null?Jx(t,null,n,r):Ws(t,e.child,n,r)}function Hy(e,t,n,r,o){n=n.render;var l=t.ref;return js(t,o),r=Bh(e,t,n,r,l,o),n=Vh(),e!==null&&!Fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ko(e,t,o)):(Dt&&n&&Rh(t),t.flags|=1,wn(e,t,r,o),t.child)}function By(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Jh(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,kw(e,t,l,r,o)):(e=lu(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:wa,n(s,r)&&e.ref===t.ref)return ko(e,t,o)}return t.flags|=1,e=tl(l,r),e.ref=t.ref,e.return=t,t.child=e}function kw(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(wa(l,r)&&e.ref===t.ref)if(Fn=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(Fn=!0);else return t.lanes=e.lanes,ko(e,t,o)}return gm(e,t,n,r,o)}function Ew(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(ks,Vn),Vn|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mt(ks,Vn),Vn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Mt(ks,Vn),Vn|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Mt(ks,Vn),Vn|=r;return wn(e,t,o,n),t.child}function Iw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gm(e,t,n,r,o){var l=jn(n)?Dl:Cn.current;return l=Vs(t,l),js(t,o),n=Bh(e,t,n,r,l,o),r=Vh(),e!==null&&!Fn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ko(e,t,o)):(Dt&&r&&Rh(t),t.flags|=1,wn(e,t,n,o),t.child)}function Vy(e,t,n,r,o){if(jn(n)){var l=!0;Mu(t)}else l=!1;if(js(t,o),t.stateNode===null)nu(e,t),ww(t,n,r),mm(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=gr(c):(c=jn(n)?Dl:Cn.current,c=Vs(t,c));var u=n.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==c)&&Ly(t,s,r,c),No=!1;var f=t.memoizedState;s.state=f,Fu(t,r,s,o),a=t.memoizedState,i!==r||f!==a||Dn.current||No?(typeof u=="function"&&(fm(t,n,u,r),a=t.memoizedState),(i=No||_y(t,n,i,r,f,a,c))?(p||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=a),s.props=r,s.state=a,s.context=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,tw(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:$r(t.type,i),s.props=c,p=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=gr(a):(a=jn(n)?Dl:Cn.current,a=Vs(t,a));var g=n.getDerivedStateFromProps;(u=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||f!==a)&&Ly(t,s,r,a),No=!1,f=t.memoizedState,s.state=f,Fu(t,r,s,o);var h=t.memoizedState;i!==p||f!==h||Dn.current||No?(typeof g=="function"&&(fm(t,n,g,r),h=t.memoizedState),(c=No||_y(t,n,c,r,f,h,a)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return vm(e,t,n,r,l,o)}function vm(e,t,n,r,o,l){Iw(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&My(t,n,!1),ko(e,t,l);r=t.stateNode,NI.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ws(t,e.child,null,l),t.child=Ws(t,null,i,l)):wn(e,t,i,l),t.memoizedState=r.state,o&&My(t,n,!0),t.child}function Mw(e){var t=e.stateNode;t.pendingContext?Iy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Iy(e,t.context,!1),Nh(e,t.containerInfo)}function Gy(e,t,n,r,o){return Gs(),Oh(o),t.flags|=256,wn(e,t,n,r),t.child}var ym={dehydrated:null,treeContext:null,retryLane:0};function bm(e){return{baseLanes:e,cachePool:null,transitions:null}}function $w(e,t,n){var r=t.pendingProps,o=Lt.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Mt(Lt,o&1),e===null)return dm(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,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Pd(s,r,0,null),e=Ml(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=bm(n),t.memoizedState=ym,e):Uh(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return AI(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=tl(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=tl(i,l):(l=Ml(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?bm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=ym,r}return l=e.child,e=l.sibling,r=tl(l,{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 Uh(e,t){return t=Pd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tc(e,t,n,r){return r!==null&&Oh(r),Ws(t,e.child,null,n),e=Uh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function AI(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=of(Error(ve(422))),Tc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Pd({mode:"visible",children:r.children},o,0,null),l=Ml(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Ws(t,e.child,null,s),t.child.memoizedState=bm(s),t.memoizedState=ym,l);if(!(t.mode&1))return Tc(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(ve(419)),r=of(l,r,void 0),Tc(e,t,s,r)}if(i=(s&e.childLanes)!==0,Fn||i){if(r=rn,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!==l.retryLane&&(l.retryLane=o,Po(e,o),Nr(r,e,o,-1))}return Zh(),r=of(Error(ve(421))),Tc(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ZI.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,Yn=Xo(o.nextSibling),Qn=t,Dt=!0,Fr=null,e!==null&&(ur[dr++]=vo,ur[dr++]=yo,ur[dr++]=jl,vo=e.id,yo=e.overflow,jl=t),t=Uh(t,r.children),t.flags|=4096,t)}function Wy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pm(e.return,t,n)}function lf(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Rw(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(wn(e,t,r.children,n),r=Lt.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&&Wy(e,n,t);else if(e.tag===19)Wy(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(Mt(Lt,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&&Du(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lf(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Du(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lf(t,!0,n,null,l);break;case"together":lf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ko(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ve(153));if(t.child!==null){for(e=t.child,n=tl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zI(e,t,n){switch(t.tag){case 3:Mw(t),Gs();break;case 5:nw(t);break;case 1:jn(t.type)&&Mu(t);break;case 4:Nh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Mt(Tu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mt(Lt,Lt.current&1),t.flags|=128,null):n&t.child.childLanes?$w(e,t,n):(Mt(Lt,Lt.current&1),e=ko(e,t,n),e!==null?e.sibling:null);Mt(Lt,Lt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rw(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Mt(Lt,Lt.current),r)break;return null;case 22:case 23:return t.lanes=0,Ew(e,t,n)}return ko(e,t,n)}var Tw,Cm,Ow,Fw;Tw=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}};Cm=function(){};Ow=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xl(eo.current);var l=null;switch(n){case"input":o=Bf(e,o),r=Bf(e,r),l=[];break;case"select":o=At({},o,{value:void 0}),r=At({},r,{value:void 0}),l=[];break;case"textarea":o=Wf(e,o),r=Wf(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Eu)}Kf(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var i=o[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ha.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var a=r[c];if(i=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ha.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&$t("scroll",e),l||i===a||(l=[])):(l=l||[]).push(c,a))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Fw=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!Dt)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 gn(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 HI(e,t,n){var r=t.pendingProps;switch(Th(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gn(t),null;case 1:return jn(t.type)&&Iu(),gn(t),null;case 3:return r=t.stateNode,Us(),Tt(Dn),Tt(Cn),zh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($c(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fr!==null&&(Mm(Fr),Fr=null))),Cm(e,t),gn(t),null;case 5:Ah(t);var o=xl(Ia.current);if(n=t.type,e!==null&&t.stateNode!=null)Ow(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ve(166));return gn(t),null}if(e=xl(eo.current),$c(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Zr]=t,r[ka]=l,e=(t.mode&1)!==0,n){case"dialog":$t("cancel",r),$t("close",r);break;case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(o=0;o<Ki.length;o++)$t(Ki[o],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"details":$t("toggle",r);break;case"input":ey(r,l),$t("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$t("invalid",r);break;case"textarea":ny(r,l),$t("invalid",r)}Kf(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&Mc(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&Mc(r.textContent,i,e),o=["children",""+i]):ha.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&$t("scroll",r)}switch(n){case"input":Cc(r),ty(r,l,!0);break;case"textarea":Cc(r),ry(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Eu)}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=ix(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[Zr]=t,e[ka]=r,Tw(e,t,!1,!1),t.stateNode=e;e:{switch(s=qf(n,r),n){case"dialog":$t("cancel",e),$t("close",e),o=r;break;case"iframe":case"object":case"embed":$t("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ki.length;o++)$t(Ki[o],e);o=r;break;case"source":$t("error",e),o=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),o=r;break;case"details":$t("toggle",e),o=r;break;case"input":ey(e,r),o=Bf(e,r),$t("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=At({},r,{value:void 0}),$t("invalid",e);break;case"textarea":ny(e,r),o=Wf(e,r),$t("invalid",e);break;default:o=r}Kf(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?ux(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ax(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ga(e,a):typeof a=="number"&&ga(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ha.hasOwnProperty(l)?a!=null&&l==="onScroll"&&$t("scroll",e):a!=null&&gh(e,l,a,s))}switch(n){case"input":Cc(e),ty(e,r,!1);break;case"textarea":Cc(e),ry(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rl(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Ts(e,!!r.multiple,l,!1):r.defaultValue!=null&&Ts(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Eu)}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 gn(t),null;case 6:if(e&&t.stateNode!=null)Fw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ve(166));if(n=xl(Ia.current),xl(eo.current),$c(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zr]=t,(l=r.nodeValue!==n)&&(e=Qn,e!==null))switch(e.tag){case 3:Mc(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mc(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zr]=t,t.stateNode=r}return gn(t),null;case 13:if(Tt(Lt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&Yn!==null&&t.mode&1&&!(t.flags&128))Xx(),Gs(),t.flags|=98560,l=!1;else if(l=$c(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(ve(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(ve(317));l[Zr]=t}else Gs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gn(t),l=!1}else Fr!==null&&(Mm(Fr),Fr=null),l=!0;if(!l)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||Lt.current&1?Xt===0&&(Xt=3):Zh())),t.updateQueue!==null&&(t.flags|=4),gn(t),null);case 4:return Us(),Cm(e,t),e===null&&Sa(t.stateNode.containerInfo),gn(t),null;case 10:return jh(t.type._context),gn(t),null;case 17:return jn(t.type)&&Iu(),gn(t),null;case 19:if(Tt(Lt),l=t.memoizedState,l===null)return gn(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Ri(l,!1);else{if(Xt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Du(e),s!==null){for(t.flags|=128,Ri(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mt(Lt,Lt.current&1|2),t.child}e=e.sibling}l.tail!==null&&Vt()>qs&&(t.flags|=128,r=!0,Ri(l,!1),t.lanes=4194304)}else{if(!r)if(e=Du(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Dt)return gn(t),null}else 2*Vt()-l.renderingStartTime>qs&&n!==1073741824&&(t.flags|=128,r=!0,Ri(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Vt(),t.sibling=null,n=Lt.current,Mt(Lt,r?n&1|2:n&1),t):(gn(t),null);case 22:case 23:return Xh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vn&1073741824&&(gn(t),t.subtreeFlags&6&&(t.flags|=8192)):gn(t),null;case 24:return null;case 25:return null}throw Error(ve(156,t.tag))}function BI(e,t){switch(Th(t),t.tag){case 1:return jn(t.type)&&Iu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Us(),Tt(Dn),Tt(Cn),zh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ah(t),null;case 13:if(Tt(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ve(340));Gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(Lt),null;case 4:return Us(),null;case 10:return jh(t.type._context),null;case 22:case 23:return Xh(),null;case 24:return null;default:return null}}var Oc=!1,bn=!1,VI=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function Ps(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Bt(e,t,r)}else n.current=null}function xm(e,t,n){try{n()}catch(r){Bt(e,t,r)}}var Uy=!1;function GI(e,t){if(om=Su,e=Nx(),$h(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,c=0,u=0,p=e,f=null;t:for(;;){for(var g;p!==n||o!==0&&p.nodeType!==3||(i=s+o),p!==l||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===n&&++c===o&&(i=s),f===l&&++u===r&&(a=s),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(lm={focusedElem:e,selectionRange:n},Su=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){t=Fe;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,w=h.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?b:$r(t.type,b),w);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ve(163))}}catch(S){Bt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}return h=Uy,Uy=!1,h}function sa(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 l=o.destroy;o.destroy=void 0,l!==void 0&&xm(t,n,l)}o=o.next}while(o!==r)}}function wd(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 wm(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 Dw(e){var t=e.alternate;t!==null&&(e.alternate=null,Dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zr],delete t[ka],delete t[am],delete t[EI],delete t[II])),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 jw(e){return e.tag===5||e.tag===3||e.tag===4}function Ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jw(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 Sm(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=Eu));else if(r!==4&&(e=e.child,e!==null))for(Sm(e,t,n),e=e.sibling;e!==null;)Sm(e,t,n),e=e.sibling}function Pm(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(Pm(e,t,n),e=e.sibling;e!==null;)Pm(e,t,n),e=e.sibling}var ln=null,Or=!1;function To(e,t,n){for(n=n.child;n!==null;)_w(e,t,n),n=n.sibling}function _w(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(md,n)}catch{}switch(n.tag){case 5:bn||Ps(n,t);case 6:var r=ln,o=Or;ln=null,To(e,t,n),ln=r,Or=o,ln!==null&&(Or?(e=ln,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ln.removeChild(n.stateNode));break;case 18:ln!==null&&(Or?(e=ln,n=n.stateNode,e.nodeType===8?Zp(e.parentNode,n):e.nodeType===1&&Zp(e,n),Ca(e)):Zp(ln,n.stateNode));break;case 4:r=ln,o=Or,ln=n.stateNode.containerInfo,Or=!0,To(e,t,n),ln=r,Or=o;break;case 0:case 11:case 14:case 15:if(!bn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&xm(n,t,s),o=o.next}while(o!==r)}To(e,t,n);break;case 1:if(!bn&&(Ps(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Bt(n,t,i)}To(e,t,n);break;case 21:To(e,t,n);break;case 22:n.mode&1?(bn=(r=bn)||n.memoizedState!==null,To(e,t,n),bn=r):To(e,t,n);break;default:To(e,t,n)}}function qy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new VI),t.forEach(function(r){var o=JI.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:ln=i.stateNode,Or=!1;break e;case 3:ln=i.stateNode.containerInfo,Or=!0;break e;case 4:ln=i.stateNode.containerInfo,Or=!0;break e}i=i.return}if(ln===null)throw Error(ve(160));_w(l,s,o),ln=null,Or=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Bt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lw(t,e),t=t.sibling}function Lw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mr(t,e),Ur(e),r&4){try{sa(3,e,e.return),wd(3,e)}catch(b){Bt(e,e.return,b)}try{sa(5,e,e.return)}catch(b){Bt(e,e.return,b)}}break;case 1:Mr(t,e),Ur(e),r&512&&n!==null&&Ps(n,n.return);break;case 5:if(Mr(t,e),Ur(e),r&512&&n!==null&&Ps(n,n.return),e.flags&32){var o=e.stateNode;try{ga(o,"")}catch(b){Bt(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&lx(o,l),qf(i,s);var c=qf(i,l);for(s=0;s<a.length;s+=2){var u=a[s],p=a[s+1];u==="style"?ux(o,p):u==="dangerouslySetInnerHTML"?ax(o,p):u==="children"?ga(o,p):gh(o,u,p,c)}switch(i){case"input":Vf(o,l);break;case"textarea":sx(o,l);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var g=l.value;g!=null?Ts(o,!!l.multiple,g,!1):f!==!!l.multiple&&(l.defaultValue!=null?Ts(o,!!l.multiple,l.defaultValue,!0):Ts(o,!!l.multiple,l.multiple?[]:"",!1))}o[ka]=l}catch(b){Bt(e,e.return,b)}}break;case 6:if(Mr(t,e),Ur(e),r&4){if(e.stateNode===null)throw Error(ve(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(b){Bt(e,e.return,b)}}break;case 3:if(Mr(t,e),Ur(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ca(t.containerInfo)}catch(b){Bt(e,e.return,b)}break;case 4:Mr(t,e),Ur(e);break;case 13:Mr(t,e),Ur(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Yh=Vt())),r&4&&qy(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(bn=(c=bn)||u,Mr(t,e),bn=c):Mr(t,e),Ur(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(Fe=e,u=e.child;u!==null;){for(p=Fe=u;Fe!==null;){switch(f=Fe,g=f.child,f.tag){case 0:case 11:case 14:case 15:sa(4,f,f.return);break;case 1:Ps(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(b){Bt(r,n,b)}}break;case 5:Ps(f,f.return);break;case 22:if(f.memoizedState!==null){Qy(p);continue}}g!==null?(g.return=f,Fe=g):Qy(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{o=p.stateNode,c?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=p.stateNode,a=p.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=cx("display",s))}catch(b){Bt(e,e.return,b)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Bt(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Mr(t,e),Ur(e),r&4&&qy(e);break;case 21:break;default:Mr(t,e),Ur(e)}}function Ur(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jw(n)){var r=n;break e}n=n.return}throw Error(ve(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ga(o,""),r.flags&=-33);var l=Ky(e);Pm(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Ky(e);Sm(e,i,s);break;default:throw Error(ve(161))}}catch(a){Bt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WI(e,t,n){Fe=e,Nw(e)}function Nw(e,t,n){for(var r=(e.mode&1)!==0;Fe!==null;){var o=Fe,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Oc;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||bn;i=Oc;var c=bn;if(Oc=s,(bn=a)&&!c)for(Fe=o;Fe!==null;)s=Fe,a=s.child,s.tag===22&&s.memoizedState!==null?Xy(o):a!==null?(a.return=s,Fe=a):Xy(o);for(;l!==null;)Fe=l,Nw(l),l=l.sibling;Fe=o,Oc=i,bn=c}Yy(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,Fe=l):Yy(e)}}function Yy(e){for(;Fe!==null;){var t=Fe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bn||wd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!bn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:$r(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Fy(t,l,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}Fy(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&Ca(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ve(163))}bn||t.flags&512&&wm(t)}catch(f){Bt(t,t.return,f)}}if(t===e){Fe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function Qy(e){for(;Fe!==null;){var t=Fe;if(t===e){Fe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Fe=n;break}Fe=t.return}}function Xy(e){for(;Fe!==null;){var t=Fe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wd(4,t)}catch(a){Bt(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Bt(t,o,a)}}var l=t.return;try{wm(t)}catch(a){Bt(t,l,a)}break;case 5:var s=t.return;try{wm(t)}catch(a){Bt(t,s,a)}}}catch(a){Bt(t,t.return,a)}if(t===e){Fe=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Fe=i;break}Fe=t.return}}var UI=Math.ceil,Lu=$o.ReactCurrentDispatcher,Kh=$o.ReactCurrentOwner,mr=$o.ReactCurrentBatchConfig,ft=0,rn=null,Yt=null,cn=0,Vn=0,ks=il(0),Xt=0,Ta=null,Ll=0,Sd=0,qh=0,ia=null,Tn=null,Yh=0,qs=1/0,mo=null,Nu=!1,km=null,Jo=null,Fc=!1,Wo=null,Au=0,aa=0,Em=null,ru=-1,ou=0;function kn(){return ft&6?Vt():ru!==-1?ru:ru=Vt()}function el(e){return e.mode&1?ft&2&&cn!==0?cn&-cn:$I.transition!==null?(ou===0&&(ou=wx()),ou):(e=xt,e!==0||(e=window.event,e=e===void 0?16:$x(e.type)),e):1}function Nr(e,t,n,r){if(50<aa)throw aa=0,Em=null,Error(ve(185));Za(e,n,r),(!(ft&2)||e!==rn)&&(e===rn&&(!(ft&2)&&(Sd|=n),Xt===4&&Bo(e,cn)),_n(e,r),n===1&&ft===0&&!(t.mode&1)&&(qs=Vt()+500,bd&&al()))}function _n(e,t){var n=e.callbackNode;$E(e,t);var r=wu(e,e===rn?cn:0);if(r===0)n!==null&&sy(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&sy(n),t===1)e.tag===0?MI(Zy.bind(null,e)):qx(Zy.bind(null,e)),PI(function(){!(ft&6)&&al()}),n=null;else{switch(Sx(r)){case 1:n=xh;break;case 4:n=Cx;break;case 16:n=xu;break;case 536870912:n=xx;break;default:n=xu}n=Uw(n,Aw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Aw(e,t){if(ru=-1,ou=0,ft&6)throw Error(ve(327));var n=e.callbackNode;if(_s()&&e.callbackNode!==n)return null;var r=wu(e,e===rn?cn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zu(e,r);else{t=r;var o=ft;ft|=2;var l=Hw();(rn!==e||cn!==t)&&(mo=null,qs=Vt()+500,Il(e,t));do try{YI();break}catch(i){zw(e,i)}while(!0);Dh(),Lu.current=l,ft=o,Yt!==null?t=0:(rn=null,cn=0,t=Xt)}if(t!==0){if(t===2&&(o=Jf(e),o!==0&&(r=o,t=Im(e,o))),t===1)throw n=Ta,Il(e,0),Bo(e,r),_n(e,Vt()),n;if(t===6)Bo(e,r);else{if(o=e.current.alternate,!(r&30)&&!KI(o)&&(t=zu(e,r),t===2&&(l=Jf(e),l!==0&&(r=l,t=Im(e,l))),t===1))throw n=Ta,Il(e,0),Bo(e,r),_n(e,Vt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ve(345));case 2:hl(e,Tn,mo);break;case 3:if(Bo(e,r),(r&130023424)===r&&(t=Yh+500-Vt(),10<t)){if(wu(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){kn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=im(hl.bind(null,e,Tn,mo),t);break}hl(e,Tn,mo);break;case 4:if(Bo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Lr(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=Vt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UI(r/1960))-r,10<r){e.timeoutHandle=im(hl.bind(null,e,Tn,mo),r);break}hl(e,Tn,mo);break;case 5:hl(e,Tn,mo);break;default:throw Error(ve(329))}}}return _n(e,Vt()),e.callbackNode===n?Aw.bind(null,e):null}function Im(e,t){var n=ia;return e.current.memoizedState.isDehydrated&&(Il(e,t).flags|=256),e=zu(e,t),e!==2&&(t=Tn,Tn=n,t!==null&&Mm(t)),e}function Mm(e){Tn===null?Tn=e:Tn.push.apply(Tn,e)}function KI(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],l=o.getSnapshot;o=o.value;try{if(!zr(l(),o))return!1}catch{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 Bo(e,t){for(t&=~qh,t&=~Sd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lr(t),r=1<<n;e[n]=-1,t&=~r}}function Zy(e){if(ft&6)throw Error(ve(327));_s();var t=wu(e,0);if(!(t&1))return _n(e,Vt()),null;var n=zu(e,t);if(e.tag!==0&&n===2){var r=Jf(e);r!==0&&(t=r,n=Im(e,r))}if(n===1)throw n=Ta,Il(e,0),Bo(e,t),_n(e,Vt()),n;if(n===6)throw Error(ve(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hl(e,Tn,mo),_n(e,Vt()),null}function Qh(e,t){var n=ft;ft|=1;try{return e(t)}finally{ft=n,ft===0&&(qs=Vt()+500,bd&&al())}}function Nl(e){Wo!==null&&Wo.tag===0&&!(ft&6)&&_s();var t=ft;ft|=1;var n=mr.transition,r=xt;try{if(mr.transition=null,xt=1,e)return e()}finally{xt=r,mr.transition=n,ft=t,!(ft&6)&&al()}}function Xh(){Vn=ks.current,Tt(ks)}function Il(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,SI(n)),Yt!==null)for(n=Yt.return;n!==null;){var r=n;switch(Th(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Iu();break;case 3:Us(),Tt(Dn),Tt(Cn),zh();break;case 5:Ah(r);break;case 4:Us();break;case 13:Tt(Lt);break;case 19:Tt(Lt);break;case 10:jh(r.type._context);break;case 22:case 23:Xh()}n=n.return}if(rn=e,Yt=e=tl(e.current,null),cn=Vn=t,Xt=0,Ta=null,qh=Sd=Ll=0,Tn=ia=null,Cl!==null){for(t=0;t<Cl.length;t++)if(n=Cl[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}Cl=null}return e}function zw(e,t){do{var n=Yt;try{if(Dh(),eu.current=_u,ju){for(var r=Nt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ju=!1}if(_l=0,tn=Qt=Nt=null,la=!1,Ma=0,Kh.current=null,n===null||n.return===null){Xt=1,Ta=t,Yt=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=cn,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,u=i,p=u.tag;if(!(u.mode&1)&&(p===0||p===11||p===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=Ay(s);if(g!==null){g.flags&=-257,zy(g,s,i,l,t),g.mode&1&&Ny(l,c,t),t=g,a=c;var h=t.updateQueue;if(h===null){var b=new Set;b.add(a),t.updateQueue=b}else h.add(a);break e}else{if(!(t&1)){Ny(l,c,t),Zh();break e}a=Error(ve(426))}}else if(Dt&&i.mode&1){var w=Ay(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),zy(w,s,i,l,t),Oh(Ks(a,i));break e}}l=a=Ks(a,i),Xt!==4&&(Xt=2),ia===null?ia=[l]:ia.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var C=Sw(l,a,t);Oy(l,C);break e;case 1:i=a;var y=l.type,x=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Jo===null||!Jo.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Pw(l,i,t);Oy(l,S);break e}}l=l.return}while(l!==null)}Vw(n)}catch(T){t=T,Yt===n&&n!==null&&(Yt=n=n.return);continue}break}while(!0)}function Hw(){var e=Lu.current;return Lu.current=_u,e===null?_u:e}function Zh(){(Xt===0||Xt===3||Xt===2)&&(Xt=4),rn===null||!(Ll&268435455)&&!(Sd&268435455)||Bo(rn,cn)}function zu(e,t){var n=ft;ft|=2;var r=Hw();(rn!==e||cn!==t)&&(mo=null,Il(e,t));do try{qI();break}catch(o){zw(e,o)}while(!0);if(Dh(),ft=n,Lu.current=r,Yt!==null)throw Error(ve(261));return rn=null,cn=0,Xt}function qI(){for(;Yt!==null;)Bw(Yt)}function YI(){for(;Yt!==null&&!CE();)Bw(Yt)}function Bw(e){var t=Ww(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,t===null?Vw(e):Yt=t,Kh.current=null}function Vw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=BI(n,t),n!==null){n.flags&=32767,Yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xt=6,Yt=null;return}}else if(n=HI(n,t,Vn),n!==null){Yt=n;return}if(t=t.sibling,t!==null){Yt=t;return}Yt=t=e}while(t!==null);Xt===0&&(Xt=5)}function hl(e,t,n){var r=xt,o=mr.transition;try{mr.transition=null,xt=1,QI(e,t,n,r)}finally{mr.transition=o,xt=r}return null}function QI(e,t,n,r){do _s();while(Wo!==null);if(ft&6)throw Error(ve(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(ve(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(RE(e,l),e===rn&&(Yt=rn=null,cn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Fc||(Fc=!0,Uw(xu,function(){return _s(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=mr.transition,mr.transition=null;var s=xt;xt=1;var i=ft;ft|=4,Kh.current=null,GI(e,n),Lw(n,e),gI(lm),Su=!!om,lm=om=null,e.current=n,WI(n),xE(),ft=i,xt=s,mr.transition=l}else e.current=n;if(Fc&&(Fc=!1,Wo=e,Au=o),l=e.pendingLanes,l===0&&(Jo=null),PE(n.stateNode),_n(e,Vt()),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(Nu)throw Nu=!1,e=km,km=null,e;return Au&1&&e.tag!==0&&_s(),l=e.pendingLanes,l&1?e===Em?aa++:(aa=0,Em=e):aa=0,al(),null}function _s(){if(Wo!==null){var e=Sx(Au),t=mr.transition,n=xt;try{if(mr.transition=null,xt=16>e?16:e,Wo===null)var r=!1;else{if(e=Wo,Wo=null,Au=0,ft&6)throw Error(ve(331));var o=ft;for(ft|=4,Fe=e.current;Fe!==null;){var l=Fe,s=l.child;if(Fe.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(Fe=c;Fe!==null;){var u=Fe;switch(u.tag){case 0:case 11:case 15:sa(8,u,l)}var p=u.child;if(p!==null)p.return=u,Fe=p;else for(;Fe!==null;){u=Fe;var f=u.sibling,g=u.return;if(Dw(u),u===c){Fe=null;break}if(f!==null){f.return=g,Fe=f;break}Fe=g}}}var h=l.alternate;if(h!==null){var b=h.child;if(b!==null){h.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}Fe=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,Fe=s;else e:for(;Fe!==null;){if(l=Fe,l.flags&2048)switch(l.tag){case 0:case 11:case 15:sa(9,l,l.return)}var C=l.sibling;if(C!==null){C.return=l.return,Fe=C;break e}Fe=l.return}}var y=e.current;for(Fe=y;Fe!==null;){s=Fe;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Fe=x;else e:for(s=y;Fe!==null;){if(i=Fe,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:wd(9,i)}}catch(T){Bt(i,i.return,T)}if(i===s){Fe=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,Fe=S;break e}Fe=i.return}}if(ft=o,al(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(md,e)}catch{}r=!0}return r}finally{xt=n,mr.transition=t}}return!1}function Jy(e,t,n){t=Ks(n,t),t=Sw(e,t,1),e=Zo(e,t,1),t=kn(),e!==null&&(Za(e,1,t),_n(e,t))}function Bt(e,t,n){if(e.tag===3)Jy(e,e,n);else for(;t!==null;){if(t.tag===3){Jy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jo===null||!Jo.has(r))){e=Ks(n,e),e=Pw(t,e,1),t=Zo(t,e,1),e=kn(),t!==null&&(Za(t,1,e),_n(t,e));break}}t=t.return}}function XI(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=kn(),e.pingedLanes|=e.suspendedLanes&n,rn===e&&(cn&n)===n&&(Xt===4||Xt===3&&(cn&130023424)===cn&&500>Vt()-Yh?Il(e,0):qh|=n),_n(e,t)}function Gw(e,t){t===0&&(e.mode&1?(t=Sc,Sc<<=1,!(Sc&130023424)&&(Sc=4194304)):t=1);var n=kn();e=Po(e,t),e!==null&&(Za(e,t,n),_n(e,n))}function ZI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gw(e,n)}function JI(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(ve(314))}r!==null&&r.delete(t),Gw(e,n)}var Ww;Ww=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dn.current)Fn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fn=!1,zI(e,t,n);Fn=!!(e.flags&131072)}else Fn=!1,Dt&&t.flags&1048576&&Yx(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nu(e,t),e=t.pendingProps;var o=Vs(t,Cn.current);js(t,n),o=Bh(null,t,r,e,o,n);var l=Vh();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,jn(r)?(l=!0,Mu(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lh(t),o.updater=xd,t.stateNode=o,o._reactInternals=t,mm(t,r,e,n),t=vm(null,t,r,!0,l,n)):(t.tag=0,Dt&&l&&Rh(t),wn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=tM(r),e=$r(r,e),o){case 0:t=gm(null,t,r,e,n);break e;case 1:t=Vy(null,t,r,e,n);break e;case 11:t=Hy(null,t,r,e,n);break e;case 14:t=By(null,t,r,$r(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$r(r,o),gm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$r(r,o),Vy(e,t,r,o,n);case 3:e:{if(Mw(t),e===null)throw Error(ve(387));r=t.pendingProps,l=t.memoizedState,o=l.element,tw(e,t),Fu(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Ks(Error(ve(423)),t),t=Gy(e,t,r,n,o);break e}else if(r!==o){o=Ks(Error(ve(424)),t),t=Gy(e,t,r,n,o);break e}else for(Yn=Xo(t.stateNode.containerInfo.firstChild),Qn=t,Dt=!0,Fr=null,n=Jx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gs(),r===o){t=ko(e,t,n);break e}wn(e,t,r,n)}t=t.child}return t;case 5:return nw(t),e===null&&dm(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,sm(r,o)?s=null:l!==null&&sm(r,l)&&(t.flags|=32),Iw(e,t),wn(e,t,s,n),t.child;case 6:return e===null&&dm(t),null;case 13:return $w(e,t,n);case 4:return Nh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ws(t,null,r,n):wn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$r(r,o),Hy(e,t,r,o,n);case 7:return wn(e,t,t.pendingProps,n),t.child;case 8:return wn(e,t,t.pendingProps.children,n),t.child;case 12:return wn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,Mt(Tu,r._currentValue),r._currentValue=s,l!==null)if(zr(l.value,s)){if(l.children===o.children&&!Dn.current){t=ko(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Co(-1,n&-n),a.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),pm(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(ve(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),pm(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}wn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,js(t,n),o=gr(o),r=r(o),t.flags|=1,wn(e,t,r,n),t.child;case 14:return r=t.type,o=$r(r,t.pendingProps),o=$r(r.type,o),By(e,t,r,o,n);case 15:return kw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$r(r,o),nu(e,t),t.tag=1,jn(r)?(e=!0,Mu(t)):e=!1,js(t,n),ww(t,r,o),mm(t,r,o,n),vm(null,t,r,!0,e,n);case 19:return Rw(e,t,n);case 22:return Ew(e,t,n)}throw Error(ve(156,t.tag))};function Uw(e,t){return bx(e,t)}function eM(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 fr(e,t,n,r){return new eM(e,t,n,r)}function Jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tM(e){if(typeof e=="function")return Jh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yh)return 11;if(e===bh)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=fr(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 lu(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Jh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case hs:return Ml(n.children,o,l,t);case vh:s=8,o|=8;break;case Nf:return e=fr(12,n,t,o|2),e.elementType=Nf,e.lanes=l,e;case Af:return e=fr(13,n,t,o),e.elementType=Af,e.lanes=l,e;case zf:return e=fr(19,n,t,o),e.elementType=zf,e.lanes=l,e;case nx:return Pd(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ex:s=10;break e;case tx:s=9;break e;case yh:s=11;break e;case bh:s=14;break e;case Lo:s=16,r=null;break e}throw Error(ve(130,e==null?e:typeof e,""))}return t=fr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Ml(e,t,n,r){return e=fr(7,e,r,t),e.lanes=n,e}function Pd(e,t,n,r){return e=fr(22,e,r,t),e.elementType=nx,e.lanes=n,e.stateNode={isHidden:!1},e}function sf(e,t,n){return e=fr(6,e,null,t),e.lanes=n,e}function af(e,t,n){return t=fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nM(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=Hp(0),this.expirationTimes=Hp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function eg(e,t,n,r,o,l,s,i,a){return e=new nM(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=fr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lh(l),e}function rM(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ms,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kw(e){if(!e)return ol;e=e._reactInternals;e:{if(Ul(e)!==e||e.tag!==1)throw Error(ve(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ve(171))}if(e.tag===1){var n=e.type;if(jn(n))return Kx(e,n,t)}return t}function qw(e,t,n,r,o,l,s,i,a){return e=eg(n,r,!0,e,o,l,s,i,a),e.context=Kw(null),n=e.current,r=kn(),o=el(n),l=Co(r,o),l.callback=t??null,Zo(n,l,o),e.current.lanes=o,Za(e,o,r),_n(e,r),e}function kd(e,t,n,r){var o=t.current,l=kn(),s=el(o);return n=Kw(n),t.context===null?t.context=n:t.pendingContext=n,t=Co(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zo(o,t,s),e!==null&&(Nr(e,o,s,l),Jc(e,o,s)),s}function Hu(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 eb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tg(e,t){eb(e,t),(e=e.alternate)&&eb(e,t)}function oM(){return null}var Yw=typeof reportError=="function"?reportError:function(e){console.error(e)};function ng(e){this._internalRoot=e}Ed.prototype.render=ng.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ve(409));kd(e,t,null,null)};Ed.prototype.unmount=ng.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){kd(null,e,null,null)}),t[So]=null}};function Ed(e){this._internalRoot=e}Ed.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ex();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ho.length&&t!==0&&t<Ho[n].priority;n++);Ho.splice(n,0,e),n===0&&Mx(e)}};function rg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Id(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tb(){}function lM(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var c=Hu(s);l.call(c)}}var s=qw(t,r,e,0,null,!1,!1,"",tb);return e._reactRootContainer=s,e[So]=s.current,Sa(e.nodeType===8?e.parentNode:e),Nl(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var c=Hu(a);i.call(c)}}var a=eg(e,0,!1,null,null,!1,!1,"",tb);return e._reactRootContainer=a,e[So]=a.current,Sa(e.nodeType===8?e.parentNode:e),Nl(function(){kd(t,a,n,r)}),a}function Md(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=Hu(s);i.call(a)}}kd(t,s,e,o)}else s=lM(n,t,e,o,r);return Hu(s)}Px=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ui(t.pendingLanes);n!==0&&(wh(t,n|1),_n(t,Vt()),!(ft&6)&&(qs=Vt()+500,al()))}break;case 13:Nl(function(){var r=Po(e,1);if(r!==null){var o=kn();Nr(r,e,1,o)}}),tg(e,1)}};Sh=function(e){if(e.tag===13){var t=Po(e,134217728);if(t!==null){var n=kn();Nr(t,e,134217728,n)}tg(e,134217728)}};kx=function(e){if(e.tag===13){var t=el(e),n=Po(e,t);if(n!==null){var r=kn();Nr(n,e,t,r)}tg(e,t)}};Ex=function(){return xt};Ix=function(e,t){var n=xt;try{return xt=e,t()}finally{xt=n}};Qf=function(e,t,n){switch(t){case"input":if(Vf(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=yd(r);if(!o)throw Error(ve(90));ox(r),Vf(r,o)}}}break;case"textarea":sx(e,n);break;case"select":t=n.value,t!=null&&Ts(e,!!n.multiple,t,!1)}};fx=Qh;mx=Nl;var sM={usingClientEntryPoint:!1,Events:[ec,bs,yd,dx,px,Qh]},Ti={findFiberByHostInstance:bl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},iM={bundleType:Ti.bundleType,version:Ti.version,rendererPackageName:Ti.rendererPackageName,rendererConfig:Ti.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$o.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vx(e),e===null?null:e.stateNode},findFiberByHostInstance:Ti.findFiberByHostInstance||oM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{md=Dc.inject(iM),Jr=Dc}catch{}}tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sM;tr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rg(t))throw Error(ve(200));return rM(e,t,null,n)};tr.createRoot=function(e,t){if(!rg(e))throw Error(ve(299));var n=!1,r="",o=Yw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=eg(e,1,!1,null,null,n,!1,r,o),e[So]=t.current,Sa(e.nodeType===8?e.parentNode:e),new ng(t)};tr.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(ve(188)):(e=Object.keys(e).join(","),Error(ve(268,e)));return e=vx(t),e=e===null?null:e.stateNode,e};tr.flushSync=function(e){return Nl(e)};tr.hydrate=function(e,t,n){if(!Id(t))throw Error(ve(200));return Md(null,e,t,!0,n)};tr.hydrateRoot=function(e,t,n){if(!rg(e))throw Error(ve(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=Yw;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=qw(t,null,e,1,n??null,o,!1,l,s),e[So]=t.current,Sa(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 Ed(t)};tr.render=function(e,t,n){if(!Id(t))throw Error(ve(200));return Md(null,e,t,!1,n)};tr.unmountComponentAtNode=function(e){if(!Id(e))throw Error(ve(40));return e._reactRootContainer?(Nl(function(){Md(null,null,e,!1,function(){e._reactRootContainer=null,e[So]=null})}),!0):!1};tr.unstable_batchedUpdates=Qh;tr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Id(n))throw Error(ve(200));if(e==null||e._reactInternals===void 0)throw Error(ve(38));return Md(e,t,n,!1,r)};tr.version="18.3.1-next-f1338f8080-20240426";function Qw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qw)}catch(e){console.error(e)}}Qw(),QC.exports=tr;var nc=QC.exports;const jc=ii(nc);var Xw,nb=nc;Xw=nb.createRoot,nb.hydrateRoot;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}var Es;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Es||(Es={}));var rb=function(e){return e},ob="beforeunload",aM="hashchange",cM="popstate";function uM(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function l(){var E=ib(r.location.hash.substr(1)),_=E.pathname,R=_===void 0?"/":_,F=E.search,L=F===void 0?"":F,O=E.hash,I=O===void 0?"":O,$=o.state||{};return[$.idx,rb({pathname:R,search:L,hash:I,state:$.usr||null,key:$.key||"default"})]}var s=null;function i(){if(s)g.call(s),s=null;else{var E=Es.Pop,_=l(),R=_[0],F=_[1];if(g.length){if(R!=null){var L=u-R;L&&(s={action:E,location:F,retry:function(){P(L*-1)}},P(L))}}else x(E)}}r.addEventListener(cM,i),r.addEventListener(aM,function(){var E=l(),_=E[1];cf(_)!==cf(p)&&i()});var a=Es.Pop,c=l(),u=c[0],p=c[1],f=sb(),g=sb();u==null&&(u=0,o.replaceState(m({},o.state,{idx:u}),""));function h(){var E=document.querySelector("base"),_="";if(E&&E.getAttribute("href")){var R=r.location.href,F=R.indexOf("#");_=F===-1?R:R.slice(0,F)}return _}function b(E){return h()+"#"+(typeof E=="string"?E:cf(E))}function w(E,_){return _===void 0&&(_=null),rb(m({pathname:p.pathname,hash:"",search:""},typeof E=="string"?ib(E):E,{state:_,key:dM()}))}function C(E,_){return[{usr:E.state,key:E.key,idx:_},b(E)]}function y(E,_,R){return!g.length||(g.call({action:E,location:_,retry:R}),!1)}function x(E){a=E;var _=l();u=_[0],p=_[1],f.call({action:a,location:p})}function S(E,_){var R=Es.Push,F=w(E,_);function L(){S(E,_)}if(y(R,F,L)){var O=C(F,u+1),I=O[0],$=O[1];try{o.pushState(I,"",$)}catch{r.location.assign($)}x(R)}}function T(E,_){var R=Es.Replace,F=w(E,_);function L(){T(E,_)}if(y(R,F,L)){var O=C(F,u),I=O[0],$=O[1];o.replaceState(I,"",$),x(R)}}function P(E){o.go(E)}var k={get action(){return a},get location(){return p},createHref:b,push:S,replace:T,go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(_){return f.push(_)},block:function(_){var R=g.push(_);return g.length===1&&r.addEventListener(ob,lb),function(){R(),g.length||r.removeEventListener(ob,lb)}}};return k}function lb(e){e.preventDefault(),e.returnValue=""}function sb(){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 dM(){return Math.random().toString(36).substr(2,8)}function cf(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,l=e.hash,s=l===void 0?"":l;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function ib(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}var pM=function(){},fM=pM;const us=ii(fM);var Zw={exports:{}},mM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hM=mM,gM=hM;function Jw(){}function e1(){}e1.resetWarningCache=Jw;var vM=function(){function e(r,o,l,s,i,a){if(a!==gM){var c=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 c.name="Invariant Violation",c}}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:e1,resetWarningCache:Jw};return n.PropTypes=n,n};Zw.exports=vM();var yM=Zw.exports;const V=ii(yM);var bM=function(e,t,n,r,o,l,s,i){if(!e){var a;if(t===void 0)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,l,s,i],u=0;a=new Error(t.replace(/%s/g,function(){return c[u++]})),a.name="Invariant Violation"}throw a.framesToPop=1,a}},CM=bM;const t1=ii(CM);var xM=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};function wM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function SM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $d=function(e){SM(t,e);function t(){var n,r,o;wM(this,t);for(var l=arguments.length,s=Array(l),i=0;i<l;i++)s[i]=arguments[i];return o=(n=(r=ab(this,e.call.apply(e,[this].concat(s))),r),r.state={match:r.computeMatch(r.props.history.location.pathname)},n),ab(r,o)}return t.prototype.getChildContext=function(){return{router:xM({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(r){return{path:"/",url:"/",params:{},isExact:r==="/"}},t.prototype.componentWillMount=function(){var r=this,o=this.props,l=o.children,s=o.history;t1(l==null||nn.Children.count(l)===1,"A <Router> may have only one child element"),this.unlisten=s.listen(function(){r.setState({match:r.computeMatch(s.location.pathname)})})},t.prototype.componentWillReceiveProps=function(r){us(this.props.history===r.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var r=this.props.children;return r?nn.Children.only(r):null},t}(nn.Component);$d.propTypes={history:V.object.isRequired,children:V.node};$d.contextTypes={router:V.object};$d.childContextTypes={router:V.object.isRequired};var di={exports:{}},PM=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Bu=PM;di.exports=o1;di.exports.parse=og;di.exports.compile=IM;di.exports.tokensToFunction=n1;di.exports.tokensToRegExp=r1;var kM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function og(e,t){for(var n=[],r=0,o=0,l="",s=t&&t.delimiter||"/",i;(i=kM.exec(e))!=null;){var a=i[0],c=i[1],u=i.index;if(l+=e.slice(o,u),o=u+a.length,c){l+=c[1];continue}var p=e[o],f=i[2],g=i[3],h=i[4],b=i[5],w=i[6],C=i[7];l&&(n.push(l),l="");var y=f!=null&&p!=null&&p!==f,x=w==="+"||w==="*",S=w==="?"||w==="*",T=f||s,P=h||b,k=f||(typeof n[n.length-1]=="string"?n[n.length-1]:"");n.push({name:g||r++,prefix:f||"",delimiter:T,optional:S,repeat:x,partial:y,asterisk:!!C,pattern:P?RM(P):C?".*":EM(T,k)})}return o<e.length&&(l+=e.substr(o)),l&&n.push(l),n}function EM(e,t){return!t||t.indexOf(e)>-1?"[^"+wl(e)+"]+?":wl(t)+"|(?:(?!"+wl(t)+")[^"+wl(e)+"])+?"}function IM(e,t){return n1(og(e,t),t)}function MM(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function $M(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function n1(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",sg(t)));return function(o,l){for(var s="",i=o||{},a=l||{},c=a.pretty?MM:encodeURIComponent,u=0;u<e.length;u++){var p=e[u];if(typeof p=="string"){s+=p;continue}var f=i[p.name],g;if(f==null)if(p.optional){p.partial&&(s+=p.prefix);continue}else throw new TypeError('Expected "'+p.name+'" to be defined');if(Bu(f)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(g=c(f[h]),!n[u].test(g))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(g)+"`");s+=(h===0?p.prefix:p.delimiter)+g}continue}if(g=p.asterisk?$M(f):c(f),!n[u].test(g))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+g+'"');s+=p.prefix+g}return s}}function wl(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function RM(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function lg(e,t){return e.keys=t,e}function sg(e){return e&&e.sensitive?"":"i"}function TM(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return lg(e,t)}function OM(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(o1(e[o],t,n).source);var l=new RegExp("(?:"+r.join("|")+")",sg(n));return lg(l,t)}function FM(e,t,n){return r1(og(e,n),t,n)}function r1(e,t,n){Bu(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,l="",s=0;s<e.length;s++){var i=e[s];if(typeof i=="string")l+=wl(i);else{var a=wl(i.prefix),c="(?:"+i.pattern+")";t.push(i),i.repeat&&(c+="(?:"+a+c+")*"),i.optional?i.partial?c=a+"("+c+")?":c="(?:"+a+"("+c+"))?":c=a+"("+c+")",l+=c}}var u=wl(n.delimiter||"/"),p=l.slice(-u.length)===u;return r||(l=(p?l.slice(0,-u.length):l)+"(?:"+u+"(?=$))?"),o?l+="$":l+=r&&p?"":"(?="+u+"|$)",lg(new RegExp("^"+l,sg(n)),t)}function o1(e,t,n){return Bu(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?TM(e,t):Bu(e)?OM(e,t,n):FM(e,t,n)}var DM=di.exports;const jM=ii(DM);var cb={},_M=1e4,ub=0,LM=function(t,n){var r=""+n.end+n.strict+n.sensitive,o=cb[r]||(cb[r]={});if(o[t])return o[t];var l=[],s=jM(t,l,n),i={re:s,keys:l};return ub<_M&&(o[t]=i,ub++),i},NM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments[2];typeof n=="string"&&(n={path:n});var o=n,l=o.path,s=o.exact,i=s===void 0?!1:s,a=o.strict,c=a===void 0?!1:a,u=o.sensitive,p=u===void 0?!1:u;if(l==null)return r;var f=LM(l,{end:i,strict:c,sensitive:p}),g=f.re,h=f.keys,b=g.exec(t);if(!b)return null;var w=b[0],C=b.slice(1),y=t===w;return i&&!y?null:{path:l,url:l==="/"&&w===""?"/":w,isExact:y,params:h.reduce(function(x,S,T){return x[S.name]=C[T],x},{})}},AM=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};function zM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function HM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var uf=function(t){return nn.Children.count(t)===0},Oa=function(e){HM(t,e);function t(){var n,r,o;zM(this,t);for(var l=arguments.length,s=Array(l),i=0;i<l;i++)s[i]=arguments[i];return o=(n=(r=db(this,e.call.apply(e,[this].concat(s))),r),r.state={match:r.computeMatch(r.props,r.context.router)},n),db(r,o)}return t.prototype.getChildContext=function(){return{router:AM({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(r,o){var l=r.computedMatch,s=r.location,i=r.path,a=r.strict,c=r.exact,u=r.sensitive;if(l)return l;t1(o,"You should not use <Route> or withRouter() outside a <Router>");var p=o.route,f=(s||p.location).pathname;return NM(f,{path:i,strict:a,exact:c,sensitive:u},p.match)},t.prototype.componentWillMount=function(){us(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),us(!(this.props.component&&this.props.children&&!uf(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),us(!(this.props.render&&this.props.children&&!uf(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(r,o){us(!(r.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),us(!(!r.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(r,o.router)})},t.prototype.render=function(){var r=this.state.match,o=this.props,l=o.children,s=o.component,i=o.render,a=this.context.router,c=a.history,u=a.route,p=a.staticContext,f=this.props.location||u.location,g={match:r,location:f,history:c,staticContext:p};return s?r?nn.createElement(s,g):null:i?r?i(g):null:typeof l=="function"?l(g):l&&!uf(l)?nn.Children.only(l):null},t}(nn.Component);Oa.propTypes={computedMatch:V.object,path:V.string,exact:V.bool,strict:V.bool,sensitive:V.bool,component:V.func,render:V.func,children:V.oneOfType([V.func,V.node]),location:V.object};Oa.contextTypes={router:V.shape({history:V.object.isRequired,route:V.object.isRequired,staticContext:V.object})};Oa.childContextTypes={router:V.object.isRequired};const Fa={black:"#000",white:"#fff"},es={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ts={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ns={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},os={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Oi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},BM={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"};function Eo(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."}const VM=Object.freeze(Object.defineProperty({__proto__:null,default:Eo},Symbol.toStringTag,{value:"Module"})),Al="$$material";function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GM(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 WM(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 UM=function(){function e(n){var r=this;this._insertTag=function(o){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,l),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(WM(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=GM(o);try{l.insertRule(r,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),vn="-ms-",Vu="-moz-",ht="-webkit-",l1="comm",ig="rule",ag="decl",KM="@import",s1="@keyframes",qM="@layer",YM=Math.abs,Rd=String.fromCharCode,QM=Object.assign;function XM(e,t){return sn(e,0)^45?(((t<<2^sn(e,0))<<2^sn(e,1))<<2^sn(e,2))<<2^sn(e,3):0}function i1(e){return e.trim()}function ZM(e,t){return(e=t.exec(e))?e[0]:e}function gt(e,t,n){return e.replace(t,n)}function $m(e,t){return e.indexOf(t)}function sn(e,t){return e.charCodeAt(t)|0}function Da(e,t,n){return e.slice(t,n)}function Yr(e){return e.length}function cg(e){return e.length}function _c(e,t){return t.push(e),e}function JM(e,t){return e.map(t).join("")}var Td=1,Ys=1,a1=0,An=0,qt=0,pi="";function Od(e,t,n,r,o,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:Td,column:Ys,length:s,return:""}}function Fi(e,t){return QM(Od("",null,null,"",null,null,0),e,{length:-e.length},t)}function e2(){return qt}function t2(){return qt=An>0?sn(pi,--An):0,Ys--,qt===10&&(Ys=1,Td--),qt}function Xn(){return qt=An<a1?sn(pi,An++):0,Ys++,qt===10&&(Ys=1,Td++),qt}function to(){return sn(pi,An)}function su(){return An}function rc(e,t){return Da(pi,e,t)}function ja(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 c1(e){return Td=Ys=1,a1=Yr(pi=e),An=0,[]}function u1(e){return pi="",e}function iu(e){return i1(rc(An-1,Rm(e===91?e+2:e===40?e+1:e)))}function n2(e){for(;(qt=to())&&qt<33;)Xn();return ja(e)>2||ja(qt)>3?"":" "}function r2(e,t){for(;--t&&Xn()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return rc(e,su()+(t<6&&to()==32&&Xn()==32))}function Rm(e){for(;Xn();)switch(qt){case e:return An;case 34:case 39:e!==34&&e!==39&&Rm(qt);break;case 40:e===41&&Rm(e);break;case 92:Xn();break}return An}function o2(e,t){for(;Xn()&&e+qt!==57;)if(e+qt===84&&to()===47)break;return"/*"+rc(t,An-1)+"*"+Rd(e===47?e:Xn())}function l2(e){for(;!ja(to());)Xn();return rc(e,An)}function s2(e){return u1(au("",null,null,null,[""],e=c1(e),0,[0],e))}function au(e,t,n,r,o,l,s,i,a){for(var c=0,u=0,p=s,f=0,g=0,h=0,b=1,w=1,C=1,y=0,x="",S=o,T=l,P=r,k=x;w;)switch(h=y,y=Xn()){case 40:if(h!=108&&sn(k,p-1)==58){$m(k+=gt(iu(y),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:k+=iu(y);break;case 9:case 10:case 13:case 32:k+=n2(h);break;case 92:k+=r2(su()-1,7);continue;case 47:switch(to()){case 42:case 47:_c(i2(o2(Xn(),su()),t,n),a);break;default:k+="/"}break;case 123*b:i[c++]=Yr(k)*C;case 125*b:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:C==-1&&(k=gt(k,/\f/g,"")),g>0&&Yr(k)-p&&_c(g>32?fb(k+";",r,n,p-1):fb(gt(k," ","")+";",r,n,p-2),a);break;case 59:k+=";";default:if(_c(P=pb(k,t,n,c,u,o,i,x,S=[],T=[],p),l),y===123)if(u===0)au(k,t,P,P,S,l,p,i,T);else switch(f===99&&sn(k,3)===110?100:f){case 100:case 108:case 109:case 115:au(e,P,P,r&&_c(pb(e,P,P,0,0,o,i,x,o,S=[],p),T),o,T,p,i,r?S:T);break;default:au(k,P,P,P,[""],T,0,i,T)}}c=u=g=0,b=C=1,x=k="",p=s;break;case 58:p=1+Yr(k),g=h;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&t2()==125)continue}switch(k+=Rd(y),y*b){case 38:C=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(Yr(k)-1)*C,C=1;break;case 64:to()===45&&(k+=iu(Xn())),f=to(),u=p=Yr(x=k+=l2(su())),y++;break;case 45:h===45&&Yr(k)==2&&(b=0)}}return l}function pb(e,t,n,r,o,l,s,i,a,c,u){for(var p=o-1,f=o===0?l:[""],g=cg(f),h=0,b=0,w=0;h<r;++h)for(var C=0,y=Da(e,p+1,p=YM(b=s[h])),x=e;C<g;++C)(x=i1(b>0?f[C]+" "+y:gt(y,/&\f/g,f[C])))&&(a[w++]=x);return Od(e,t,n,o===0?ig:i,a,c,u)}function i2(e,t,n){return Od(e,t,n,l1,Rd(e2()),Da(e,2,-2),0)}function fb(e,t,n,r){return Od(e,t,n,ag,Da(e,0,r),Da(e,r+1,-1),r)}function Ls(e,t){for(var n="",r=cg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a2(e,t,n,r){switch(e.type){case qM:if(e.children.length)break;case KM:case ag:return e.return=e.return||e.value;case l1:return"";case s1:return e.return=e.value+"{"+Ls(e.children,r)+"}";case ig:e.value=e.props.join(",")}return Yr(n=Ls(e.children,r))?e.return=e.value+"{"+n+"}":""}function c2(e){var t=cg(e);return function(n,r,o,l){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,l)||"";return s}}function u2(e){return function(t){t.root||(t=t.return)&&e(t)}}function d1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var d2=function(t,n,r){for(var o=0,l=0;o=l,l=to(),o===38&&l===12&&(n[r]=1),!ja(l);)Xn();return rc(t,An)},p2=function(t,n){var r=-1,o=44;do switch(ja(o)){case 0:o===38&&to()===12&&(n[r]=1),t[r]+=d2(An-1,n,r);break;case 2:t[r]+=iu(o);break;case 4:if(o===44){t[++r]=to()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Rd(o)}while(o=Xn());return t},f2=function(t,n){return u1(p2(c1(t),n))},mb=new WeakMap,m2=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&&!mb.get(r))&&!o){mb.set(t,!0);for(var l=[],s=f2(n,l),i=r.props,a=0,c=0;a<s.length;a++)for(var u=0;u<i.length;u++,c++)t.props[c]=l[a]?s[a].replace(/&\f/g,i[u]):i[u]+" "+s[a]}}},h2=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function p1(e,t){switch(XM(e,t)){case 5103:return ht+"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 ht+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+Vu+e+vn+e+e;case 6828:case 4268:return ht+e+vn+e+e;case 6165:return ht+e+vn+"flex-"+e+e;case 5187:return ht+e+gt(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+vn+"flex-$1$2")+e;case 5443:return ht+e+vn+"flex-item-"+gt(e,/flex-|-self/,"")+e;case 4675:return ht+e+vn+"flex-line-pack"+gt(e,/align-content|flex-|-self/,"")+e;case 5548:return ht+e+vn+gt(e,"shrink","negative")+e;case 5292:return ht+e+vn+gt(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+gt(e,"-grow","")+ht+e+vn+gt(e,"grow","positive")+e;case 4554:return ht+gt(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return gt(gt(gt(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return gt(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return gt(gt(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4095:case 3583:case 4068:case 2532:return gt(e,/(.+)-inline(.+)/,ht+"$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(Yr(e)-1-t>6)switch(sn(e,t+1)){case 109:if(sn(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+Vu+(sn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$m(e,"stretch")?p1(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(sn(e,t+1)!==115)break;case 6444:switch(sn(e,Yr(e)-3-(~$m(e,"!important")&&10))){case 107:return gt(e,":",":"+ht)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(sn(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+vn+"$2box$3")+e}break;case 5936:switch(sn(e,t+11)){case 114:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+vn+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+vn+e+e}return e}var g2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ag:t.return=p1(t.value,t.length);break;case s1:return Ls([Fi(t,{value:gt(t.value,"@","@"+ht)})],o);case ig:if(t.length)return JM(t.props,function(l){switch(ZM(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ls([Fi(t,{props:[gt(l,/:(read-\w+)/,":"+Vu+"$1")]})],o);case"::placeholder":return Ls([Fi(t,{props:[gt(l,/:(plac\w+)/,":"+ht+"input-$1")]}),Fi(t,{props:[gt(l,/:(plac\w+)/,":"+Vu+"$1")]}),Fi(t,{props:[gt(l,/:(plac\w+)/,vn+"input-$1")]})],o)}return""})}},v2=[g2],f1=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(b){var w=b.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||v2,l={},s,i=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var w=b.getAttribute("data-emotion").split(" "),C=1;C<w.length;C++)l[w[C]]=!0;i.push(b)});var a,c=[m2,h2];{var u,p=[a2,u2(function(b){u.insert(b)})],f=c2(c.concat(o,p)),g=function(w){return Ls(s2(w),f)};a=function(w,C,y,x){u=y,g(w?w+"{"+C.styles+"}":C.styles),x&&(h.inserted[C.name]=!0)}}var h={key:n,sheet:new UM({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:a};return h.sheet.hydrate(i),h},m1={exports:{}},St={};/** @license React v16.13.1
41
41
  * react-is.production.min.js
42
42
  *
43
43
  * Copyright (c) Facebook, Inc. and its affiliates.
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var rn=typeof Symbol=="function"&&Symbol.for,cg=rn?Symbol.for("react.element"):60103,ug=rn?Symbol.for("react.portal"):60106,Fd=rn?Symbol.for("react.fragment"):60107,Dd=rn?Symbol.for("react.strict_mode"):60108,jd=rn?Symbol.for("react.profiler"):60114,_d=rn?Symbol.for("react.provider"):60109,Ld=rn?Symbol.for("react.context"):60110,dg=rn?Symbol.for("react.async_mode"):60111,Nd=rn?Symbol.for("react.concurrent_mode"):60111,Ad=rn?Symbol.for("react.forward_ref"):60112,zd=rn?Symbol.for("react.suspense"):60113,y2=rn?Symbol.for("react.suspense_list"):60120,Hd=rn?Symbol.for("react.memo"):60115,Bd=rn?Symbol.for("react.lazy"):60116,b2=rn?Symbol.for("react.block"):60121,C2=rn?Symbol.for("react.fundamental"):60117,x2=rn?Symbol.for("react.responder"):60118,w2=rn?Symbol.for("react.scope"):60119;function nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cg:switch(e=e.type,e){case dg:case Nd:case Fd:case jd:case Dd:case zd:return e;default:switch(e=e&&e.$$typeof,e){case Ld:case Ad:case Bd:case Hd:case _d:return e;default:return t}}case ug:return t}}}function h1(e){return nr(e)===Nd}St.AsyncMode=dg;St.ConcurrentMode=Nd;St.ContextConsumer=Ld;St.ContextProvider=_d;St.Element=cg;St.ForwardRef=Ad;St.Fragment=Fd;St.Lazy=Bd;St.Memo=Hd;St.Portal=ug;St.Profiler=jd;St.StrictMode=Dd;St.Suspense=zd;St.isAsyncMode=function(e){return h1(e)||nr(e)===dg};St.isConcurrentMode=h1;St.isContextConsumer=function(e){return nr(e)===Ld};St.isContextProvider=function(e){return nr(e)===_d};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cg};St.isForwardRef=function(e){return nr(e)===Ad};St.isFragment=function(e){return nr(e)===Fd};St.isLazy=function(e){return nr(e)===Bd};St.isMemo=function(e){return nr(e)===Hd};St.isPortal=function(e){return nr(e)===ug};St.isProfiler=function(e){return nr(e)===jd};St.isStrictMode=function(e){return nr(e)===Dd};St.isSuspense=function(e){return nr(e)===zd};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fd||e===Nd||e===jd||e===Dd||e===zd||e===y2||typeof e=="object"&&e!==null&&(e.$$typeof===Bd||e.$$typeof===Hd||e.$$typeof===_d||e.$$typeof===Ld||e.$$typeof===Ad||e.$$typeof===C2||e.$$typeof===x2||e.$$typeof===w2||e.$$typeof===b2)};St.typeOf=nr;m1.exports=St;var S2=m1.exports,g1=S2,P2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v1={};v1[g1.ForwardRef]=P2;v1[g1.Memo]=k2;var E2=!0;function y1(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var pg=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||E2===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},fg=function(t,n,r){pg(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function I2(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 M2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},$2=/[A-Z]|^ms/g,R2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b1=function(t){return t.charCodeAt(1)===45},hb=function(t){return t!=null&&typeof t!="boolean"},uf=d1(function(e){return b1(e)?e:e.replace($2,"-$&").toLowerCase()}),gb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(R2,function(r,o,l){return Yr={name:o,styles:l,next:Yr},o})}return M2[t]!==1&&!b1(t)&&typeof n=="number"&&n!==0?n+"px":n};function _a(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Yr={name:o.name,styles:o.styles,next:Yr},o.name;var l=n;if(l.styles!==void 0){var s=l.next;if(s!==void 0)for(;s!==void 0;)Yr={name:s.name,styles:s.styles,next:Yr},s=s.next;var i=l.styles+";";return i}return T2(e,t,n)}case"function":{if(e!==void 0){var a=Yr,c=n(e);return Yr=a,_a(e,t,c)}break}}var u=n;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function T2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_a(e,t,n[o])+";";else for(var l in n){var s=n[l];if(typeof s!="object"){var i=s;t!=null&&t[i]!==void 0?r+=l+"{"+t[i]+"}":hb(i)&&(r+=uf(l)+":"+gb(l,i)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)hb(s[a])&&(r+=uf(l)+":"+gb(l,s[a])+";");else{var c=_a(e,t,s);switch(l){case"animation":case"animationName":{r+=uf(l)+":"+c+";";break}default:r+=l+"{"+c+"}"}}}return r}var vb=/label:\s*([^\s;{]+)\s*(;|$)/g,Yr;function oc(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Yr=void 0;var l=e[0];if(l==null||l.raw===void 0)r=!1,o+=_a(n,t,l);else{var s=l;o+=s[0]}for(var i=1;i<e.length;i++)if(o+=_a(n,t,e[i]),r){var a=l;o+=a[i]}vb.lastIndex=0;for(var c="",u;(u=vb.exec(o))!==null;)c+="-"+u[1];var p=I2(o)+c;return{name:p,styles:o,next:Yr}}var O2=function(t){return t()},C1=jf.useInsertionEffect?jf.useInsertionEffect:!1,x1=C1||O2,yb=C1||d.useLayoutEffect,w1=d.createContext(typeof HTMLElement<"u"?f1({key:"css"}):null),F2=w1.Provider,mg=function(t){return d.forwardRef(function(n,r){var o=d.useContext(w1);return t(n,o,r)})},fi=d.createContext({}),hg={}.hasOwnProperty,Rm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",D2=function(t,n){var r={};for(var o in n)hg.call(n,o)&&(r[o]=n[o]);return r[Rm]=t,r},j2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return pg(n,r,o),x1(function(){return fg(n,r,o)}),null},_2=mg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Rm],l=[r],s="";typeof e.className=="string"?s=y1(t.registered,l,e.className):e.className!=null&&(s=e.className+" ");var i=oc(l,void 0,d.useContext(fi));s+=t.key+"-"+i.name;var a={};for(var c in e)hg.call(e,c)&&c!=="css"&&c!==Rm&&(a[c]=e[c]);return a.className=s,n&&(a.ref=n),d.createElement(d.Fragment,null,d.createElement(j2,{cache:t,serialized:i,isStringTag:typeof o=="string"}),d.createElement(o,a))}),L2=_2,bb=function(t,n){var r=arguments;if(n==null||!hg.call(n,"css"))return d.createElement.apply(void 0,r);var o=r.length,l=new Array(o);l[0]=L2,l[1]=D2(t,n);for(var s=2;s<o;s++)l[s]=r[s];return d.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bb||(bb={}));var N2=mg(function(e,t){var n=e.styles,r=oc([n],void 0,d.useContext(fi)),o=d.useRef();return yb(function(){var l=t.key+"-global",s=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+l+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(i=!0,a.setAttribute("data-emotion",l),s.hydrate([a])),o.current=[s,i],function(){s.flush()}},[t]),yb(function(){var l=o.current,s=l[0],i=l[1];if(i){l[1]=!1;return}if(r.next!==void 0&&fg(t,r.next,!0),s.tags.length){var a=s.tags[s.tags.length-1].nextElementSibling;s.before=a,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Qs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oc(t)}function ul(){var e=Qs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var A2=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,z2=d1(function(e){return A2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),H2=z2,B2=function(t){return t!=="theme"},Cb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?H2:B2},xb=function(t,n,r){var o;if(n){var l=n.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(s){return t.__emotion_forwardProp(s)&&l(s)}:l}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},V2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return pg(n,r,o),x1(function(){return fg(n,r,o)}),null},G2=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,l,s;n!==void 0&&(l=n.label,s=n.target);var i=xb(t,n,r),a=i||Cb(o),c=!a("as");return function(){var u=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&p.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var g=u.length,h=1;h<g;h++)p.push(u[h],f[h])}var b=mg(function(w,C,y){var x=c&&w.as||o,S="",T=[],P=w;if(w.theme==null){P={};for(var k in w)P[k]=w[k];P.theme=d.useContext(fi)}typeof w.className=="string"?S=y1(C.registered,T,w.className):w.className!=null&&(S=w.className+" ");var E=oc(p.concat(T),C.registered,P);S+=C.key+"-"+E.name,s!==void 0&&(S+=" "+s);var _=c&&i===void 0?Cb(x):a,R={};for(var F in w)c&&F==="as"||_(F)&&(R[F]=w[F]);return R.className=S,y&&(R.ref=y),d.createElement(d.Fragment,null,d.createElement(V2,{cache:C,serialized:E,isStringTag:typeof x=="string"}),d.createElement(x,R))});return b.displayName=l!==void 0?l:"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=p,b.__emotion_forwardProp=i,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(w,C){var y=e(w,m({},n,C,{shouldForwardProp:xb(b,C,!0)}));return y.apply(void 0,p)},b}},W2=["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"],Tm=G2.bind(null);W2.forEach(function(e){Tm[e]=Tm(e)});function U2(e,t){const n=f1({key:"css",prepend:e});if(t){const r=n.insert;n.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),r(...o))}return n}const df=new Map;function K2(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=d.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&df.has(l))return df.get(l);const s=U2(t,n);return df.set(l,s),s},[t,n]);return t||n?v.jsx(F2,{value:o,children:r}):r}function q2(e){return e==null||Object.keys(e).length===0}function S1(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(q2(o)?n:o):t;return v.jsx(N2,{styles:r})}function gg(e,t){return Tm(e,t)}const P1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},wb=[];function Gu(e){return wb[0]=e,oc(wb)}const Y2=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:S1,StyledEngineProvider:K2,ThemeContext:fi,css:Qs,default:gg,internal_processStyles:P1,internal_serializeStyles:Gu,keyframes:ul},Symbol.toStringTag,{value:"Module"}));function ho(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function k1(e){if(d.isValidElement(e)||!ho(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=k1(e[n])}),t}function En(e,t,n={clone:!0}){const r=n.clone?m({},e):e;return ho(e)&&ho(t)&&Object.keys(t).forEach(o=>{d.isValidElement(t[o])?r[o]=t[o]:ho(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ho(e[o])?r[o]=En(e[o],t[o],n):n.clone?r[o]=ho(t[o])?k1(t[o]):t[o]:r[o]=t[o]}),r}const Q2=Object.freeze(Object.defineProperty({__proto__:null,default:En,isPlainObject:ho},Symbol.toStringTag,{value:"Module"})),X2=["values","unit","step"],Z2=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)=>m({},n,{[r.key]:r.val}),{})};function E1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=K(e,X2),l=Z2(t),s=Object.keys(l);function i(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,g){const h=s.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:g)-r/100}${n})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):i(f)}function p(f){const g=s.indexOf(f);return g===0?i(s[1]):g===s.length-1?a(s[g]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return m({keys:s,values:l,up:i,down:a,between:c,only:u,not:p,unit:n},o)}const J2={borderRadius:4};function ca(e,t){return t?En(e,t,{clone:!1}):e}const vg={xs:0,sm:600,md:900,lg:1200,xl:1536},Sb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vg[e]}px)`};function zr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const l=r.breakpoints||Sb;return t.reduce((s,i,a)=>(s[l.up(l.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const l=r.breakpoints||Sb;return Object.keys(t).reduce((s,i)=>{if(Object.keys(l.values||vg).indexOf(i)!==-1){const a=l.up(i);s[a]=n(t[i],i)}else{const a=i;s[a]=t[a]}return s},{})}return n(t)}function I1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const l=e.up(o);return r[l]={},r},{}))||{}}function Om(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function e$(e,...t){const n=I1(e),r=[n,...t].reduce((o,l)=>En(o,l),{});return Om(Object.keys(n),r)}function t$(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,l)=>{l<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function pf({values:e,breakpoints:t,base:n}){const r=n||t$(e,t),o=Object.keys(r);if(o.length===0)return e;let l;return o.reduce((s,i,a)=>(Array.isArray(e)?(s[i]=e[a]!=null?e[a]:e[l],l=a):typeof e=="object"?(s[i]=e[i]!=null?e[i]:e[l],l=i):s[i]=e,s),{})}function Q(e){if(typeof e!="string")throw new Error(Eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const n$=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));function Vd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vd(e,n)||r,t&&(o=t(o,r,e)),o}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,l=s=>{if(s[t]==null)return null;const i=s[t],a=s.theme,c=Vd(a,r)||{};return zr(s,i,p=>{let f=Wu(c,o,p);return p===f&&typeof p=="string"&&(f=Wu(c,o,`${t}${p==="default"?"":Q(p)}`,p)),n===!1?f:{[n]:f}})};return l.propTypes={},l.filterProps=[t],l}function r$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const o$={m:"margin",p:"padding"},l$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s$=r$(e=>{if(e.length>2)if(Pb[e])e=Pb[e];else return[e];const[t,n]=e.split(""),r=o$[t],o=l$[n]||"";return Array.isArray(o)?o.map(l=>r+l):[r+o]}),yg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...yg,...bg];function lc(e,t,n,r){var o;const l=(o=Vd(e,t,!1))!=null?o:n;return typeof l=="number"?s=>typeof s=="string"?s:l*s:Array.isArray(l)?s=>typeof s=="string"?s:l[s]:typeof l=="function"?l:()=>{}}function Cg(e){return lc(e,"spacing",8)}function Hl(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 i$(e,t){return n=>e.reduce((r,o)=>(r[o]=Hl(t,n),r),{})}function a$(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=s$(n),l=i$(o,r),s=e[n];return zr(e,s,l)}function M1(e,t){const n=Cg(e.theme);return Object.keys(e).map(r=>a$(e,t,r,n)).reduce(ca,{})}function zt(e){return M1(e,yg)}zt.propTypes={};zt.filterProps=yg;function Ht(e){return M1(e,bg)}Ht.propTypes={};Ht.filterProps=bg;function c$(e=8){if(e.mui)return e;const t=Cg({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(l=>{const s=t(l);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Gd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(l=>{r[l]=o}),r),{}),n=r=>Object.keys(r).reduce((o,l)=>t[l]?ca(o,t[l](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function dr(e){return typeof e!="number"?e:`${e}px solid`}function Cr(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const u$=Cr("border",dr),d$=Cr("borderTop",dr),p$=Cr("borderRight",dr),f$=Cr("borderBottom",dr),m$=Cr("borderLeft",dr),h$=Cr("borderColor"),g$=Cr("borderTopColor"),v$=Cr("borderRightColor"),y$=Cr("borderBottomColor"),b$=Cr("borderLeftColor"),C$=Cr("outline",dr),x$=Cr("outlineColor"),Wd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Hl(t,r)});return zr(e,e.borderRadius,n)}return null};Wd.propTypes={};Wd.filterProps=["borderRadius"];Gd(u$,d$,p$,f$,m$,h$,g$,v$,y$,b$,Wd,C$,x$);const Ud=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),n=r=>({gap:Hl(t,r)});return zr(e,e.gap,n)}return null};Ud.propTypes={};Ud.filterProps=["gap"];const Kd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({columnGap:Hl(t,r)});return zr(e,e.columnGap,n)}return null};Kd.propTypes={};Kd.filterProps=["columnGap"];const qd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({rowGap:Hl(t,r)});return zr(e,e.rowGap,n)}return null};qd.propTypes={};qd.filterProps=["rowGap"];const w$=Wt({prop:"gridColumn"}),S$=Wt({prop:"gridRow"}),P$=Wt({prop:"gridAutoFlow"}),k$=Wt({prop:"gridAutoColumns"}),E$=Wt({prop:"gridAutoRows"}),I$=Wt({prop:"gridTemplateColumns"}),M$=Wt({prop:"gridTemplateRows"}),$$=Wt({prop:"gridTemplateAreas"}),R$=Wt({prop:"gridArea"});Gd(Ud,Kd,qd,w$,S$,P$,k$,E$,I$,M$,$$,R$);function Ns(e,t){return t==="grey"?t:e}const T$=Wt({prop:"color",themeKey:"palette",transform:Ns}),O$=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ns}),F$=Wt({prop:"backgroundColor",themeKey:"palette",transform:Ns});Gd(T$,O$,F$);function Kn(e){return e<=1&&e!==0?`${e*100}%`:e}const D$=Wt({prop:"width",transform:Kn}),xg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const l=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||vg[n];return l?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Kn(n)}};return zr(e,e.maxWidth,t)}return null};xg.filterProps=["maxWidth"];const j$=Wt({prop:"minWidth",transform:Kn}),_$=Wt({prop:"height",transform:Kn}),L$=Wt({prop:"maxHeight",transform:Kn}),N$=Wt({prop:"minHeight",transform:Kn});Wt({prop:"size",cssProperty:"width",transform:Kn});Wt({prop:"size",cssProperty:"height",transform:Kn});const A$=Wt({prop:"boxSizing"});Gd(D$,xg,j$,_$,L$,N$,A$);const sc={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wd},color:{themeKey:"palette",transform:Ns},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ns},backgroundColor:{themeKey:"palette",transform:Ns},p:{style:Ht},pt:{style:Ht},pr:{style:Ht},pb:{style:Ht},pl:{style:Ht},px:{style:Ht},py:{style:Ht},padding:{style:Ht},paddingTop:{style:Ht},paddingRight:{style:Ht},paddingBottom:{style:Ht},paddingLeft:{style:Ht},paddingX:{style:Ht},paddingY:{style:Ht},paddingInline:{style:Ht},paddingInlineStart:{style:Ht},paddingInlineEnd:{style:Ht},paddingBlock:{style:Ht},paddingBlockStart:{style:Ht},paddingBlockEnd:{style:Ht},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ud},rowGap:{style:qd},columnGap:{style:Kd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kn},maxWidth:{style:xg},minWidth:{transform:Kn},height:{transform:Kn},maxHeight:{transform:Kn},minHeight:{transform:Kn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function z$(...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 H$(e,t){return typeof e=="function"?e(t):e}function $1(){function e(n,r,o,l){const s={[n]:r,theme:o},i=l[n];if(!i)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:u,style:p}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Vd(o,c)||{};return p?p(s):zr(s,r,h=>{let b=Wu(f,u,h);return h===b&&typeof h=="string"&&(b=Wu(f,u,`${n}${h==="default"?"":Q(h)}`,h)),a===!1?b:{[a]:b}})}function t(n){var r;const{sx:o,theme:l={},nested:s}=n||{};if(!o)return null;const i=(r=l.unstable_sxConfig)!=null?r:sc;function a(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;const p=I1(l.breakpoints),f=Object.keys(p);let g=p;return Object.keys(u).forEach(h=>{const b=H$(u[h],l);if(b!=null)if(typeof b=="object")if(i[h])g=ca(g,e(h,b,l,i));else{const w=zr({theme:l},b,C=>({[h]:C}));z$(w,b)?g[h]=t({sx:b,theme:l,nested:!0}):g=ca(g,w)}else g=ca(g,e(h,b,l,i))}),!s&&l.modularCssLayers?{"@layer sx":Om(f,g)}:Om(f,g)}return Array.isArray(o)?o.map(a):a(o)}return t}const mi=$1();mi.filterProps=["sx"];function R1(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const B$=["breakpoints","palette","spacing","shape"];function hi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:l={}}=e,s=K(e,B$),i=E1(n),a=c$(o);let c=En({breakpoints:i,direction:"ltr",components:{},palette:m({mode:"light"},r),spacing:a,shape:m({},J2,l)},s);return c.applyStyles=R1,c=t.reduce((u,p)=>En(u,p),c),c.unstable_sxConfig=m({},sc,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(p){return mi({sx:p,theme:this})},c}const V$=Object.freeze(Object.defineProperty({__proto__:null,default:hi,private_createBreakpoints:E1,unstable_applyStyles:R1},Symbol.toStringTag,{value:"Module"}));function G$(e){return Object.keys(e).length===0}function Yd(e=null){const t=d.useContext(fi);return!t||G$(t)?e:t}const W$=hi();function Qd(e=W$){return Yd(e)}function ff(e){const t=Gu(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function T1({styles:e,themeId:t,defaultTheme:n={}}){const r=Qd(n),o=t&&r[t]||r;let l=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(l)?l=l.map(s=>ff(typeof s=="function"?s(o):s)):l=ff(l)),v.jsx(S1,{styles:l})}const U$=["sx"],K$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:sc;return Object.keys(e).forEach(l=>{o[l]?r.systemProps[l]=e[l]:r.otherProps[l]=e[l]}),r};function Xd(e){const{sx:t}=e,n=K(e,U$),{systemProps:r,otherProps:o}=K$(n);let l;return Array.isArray(t)?l=[r,...t]:typeof t=="function"?l=(...s)=>{const i=t(...s);return ho(i)?m({},r,i):r}:l=m({},r,t),m({},o,{sx:l})}const q$=Object.freeze(Object.defineProperty({__proto__:null,default:mi,extendSxProp:Xd,unstable_createStyleFunctionSx:$1,unstable_defaultSxConfig:sc},Symbol.toStringTag,{value:"Module"})),kb=e=>e,Y$=()=>{let e=kb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kb}}},wg=Y$();function O1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=O1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ne(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=O1(e))&&(r&&(r+=" "),r+=t);return r}const Q$=["className","component"];function X$(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,l=gg("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(mi);return d.forwardRef(function(a,c){const u=Qd(n),p=Xd(a),{className:f,component:g="div"}=p,h=K(p,Q$);return v.jsx(l,m({as:g,ref:c,className:ne(f,o?o(r):r),theme:t&&u[t]||u},h))})}const Z$={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function He(e,t,n="Mui"){const r=Z$[t];return r?`${n}-${r}`:`${wg.generate(e)}-${t}`}function Be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}var F1={exports:{}},kt={};/**
47
+ */var on=typeof Symbol=="function"&&Symbol.for,ug=on?Symbol.for("react.element"):60103,dg=on?Symbol.for("react.portal"):60106,Fd=on?Symbol.for("react.fragment"):60107,Dd=on?Symbol.for("react.strict_mode"):60108,jd=on?Symbol.for("react.profiler"):60114,_d=on?Symbol.for("react.provider"):60109,Ld=on?Symbol.for("react.context"):60110,pg=on?Symbol.for("react.async_mode"):60111,Nd=on?Symbol.for("react.concurrent_mode"):60111,Ad=on?Symbol.for("react.forward_ref"):60112,zd=on?Symbol.for("react.suspense"):60113,y2=on?Symbol.for("react.suspense_list"):60120,Hd=on?Symbol.for("react.memo"):60115,Bd=on?Symbol.for("react.lazy"):60116,b2=on?Symbol.for("react.block"):60121,C2=on?Symbol.for("react.fundamental"):60117,x2=on?Symbol.for("react.responder"):60118,w2=on?Symbol.for("react.scope"):60119;function rr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ug:switch(e=e.type,e){case pg:case Nd:case Fd:case jd:case Dd:case zd:return e;default:switch(e=e&&e.$$typeof,e){case Ld:case Ad:case Bd:case Hd:case _d:return e;default:return t}}case dg:return t}}}function h1(e){return rr(e)===Nd}St.AsyncMode=pg;St.ConcurrentMode=Nd;St.ContextConsumer=Ld;St.ContextProvider=_d;St.Element=ug;St.ForwardRef=Ad;St.Fragment=Fd;St.Lazy=Bd;St.Memo=Hd;St.Portal=dg;St.Profiler=jd;St.StrictMode=Dd;St.Suspense=zd;St.isAsyncMode=function(e){return h1(e)||rr(e)===pg};St.isConcurrentMode=h1;St.isContextConsumer=function(e){return rr(e)===Ld};St.isContextProvider=function(e){return rr(e)===_d};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ug};St.isForwardRef=function(e){return rr(e)===Ad};St.isFragment=function(e){return rr(e)===Fd};St.isLazy=function(e){return rr(e)===Bd};St.isMemo=function(e){return rr(e)===Hd};St.isPortal=function(e){return rr(e)===dg};St.isProfiler=function(e){return rr(e)===jd};St.isStrictMode=function(e){return rr(e)===Dd};St.isSuspense=function(e){return rr(e)===zd};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fd||e===Nd||e===jd||e===Dd||e===zd||e===y2||typeof e=="object"&&e!==null&&(e.$$typeof===Bd||e.$$typeof===Hd||e.$$typeof===_d||e.$$typeof===Ld||e.$$typeof===Ad||e.$$typeof===C2||e.$$typeof===x2||e.$$typeof===w2||e.$$typeof===b2)};St.typeOf=rr;m1.exports=St;var S2=m1.exports,g1=S2,P2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v1={};v1[g1.ForwardRef]=P2;v1[g1.Memo]=k2;var E2=!0;function y1(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var fg=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||E2===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},mg=function(t,n,r){fg(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function I2(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 M2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},$2=/[A-Z]|^ms/g,R2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b1=function(t){return t.charCodeAt(1)===45},hb=function(t){return t!=null&&typeof t!="boolean"},df=d1(function(e){return b1(e)?e:e.replace($2,"-$&").toLowerCase()}),gb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(R2,function(r,o,l){return Qr={name:o,styles:l,next:Qr},o})}return M2[t]!==1&&!b1(t)&&typeof n=="number"&&n!==0?n+"px":n};function _a(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Qr={name:o.name,styles:o.styles,next:Qr},o.name;var l=n;if(l.styles!==void 0){var s=l.next;if(s!==void 0)for(;s!==void 0;)Qr={name:s.name,styles:s.styles,next:Qr},s=s.next;var i=l.styles+";";return i}return T2(e,t,n)}case"function":{if(e!==void 0){var a=Qr,c=n(e);return Qr=a,_a(e,t,c)}break}}var u=n;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function T2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=_a(e,t,n[o])+";";else for(var l in n){var s=n[l];if(typeof s!="object"){var i=s;t!=null&&t[i]!==void 0?r+=l+"{"+t[i]+"}":hb(i)&&(r+=df(l)+":"+gb(l,i)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)hb(s[a])&&(r+=df(l)+":"+gb(l,s[a])+";");else{var c=_a(e,t,s);switch(l){case"animation":case"animationName":{r+=df(l)+":"+c+";";break}default:r+=l+"{"+c+"}"}}}return r}var vb=/label:\s*([^\s;{]+)\s*(;|$)/g,Qr;function oc(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Qr=void 0;var l=e[0];if(l==null||l.raw===void 0)r=!1,o+=_a(n,t,l);else{var s=l;o+=s[0]}for(var i=1;i<e.length;i++)if(o+=_a(n,t,e[i]),r){var a=l;o+=a[i]}vb.lastIndex=0;for(var c="",u;(u=vb.exec(o))!==null;)c+="-"+u[1];var p=I2(o)+c;return{name:p,styles:o,next:Qr}}var O2=function(t){return t()},C1=_f.useInsertionEffect?_f.useInsertionEffect:!1,x1=C1||O2,yb=C1||d.useLayoutEffect,w1=d.createContext(typeof HTMLElement<"u"?f1({key:"css"}):null),F2=w1.Provider,hg=function(t){return d.forwardRef(function(n,r){var o=d.useContext(w1);return t(n,o,r)})},fi=d.createContext({}),gg={}.hasOwnProperty,Tm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",D2=function(t,n){var r={};for(var o in n)gg.call(n,o)&&(r[o]=n[o]);return r[Tm]=t,r},j2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return fg(n,r,o),x1(function(){return mg(n,r,o)}),null},_2=hg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Tm],l=[r],s="";typeof e.className=="string"?s=y1(t.registered,l,e.className):e.className!=null&&(s=e.className+" ");var i=oc(l,void 0,d.useContext(fi));s+=t.key+"-"+i.name;var a={};for(var c in e)gg.call(e,c)&&c!=="css"&&c!==Tm&&(a[c]=e[c]);return a.className=s,n&&(a.ref=n),d.createElement(d.Fragment,null,d.createElement(j2,{cache:t,serialized:i,isStringTag:typeof o=="string"}),d.createElement(o,a))}),L2=_2,bb=function(t,n){var r=arguments;if(n==null||!gg.call(n,"css"))return d.createElement.apply(void 0,r);var o=r.length,l=new Array(o);l[0]=L2,l[1]=D2(t,n);for(var s=2;s<o;s++)l[s]=r[s];return d.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bb||(bb={}));var N2=hg(function(e,t){var n=e.styles,r=oc([n],void 0,d.useContext(fi)),o=d.useRef();return yb(function(){var l=t.key+"-global",s=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+l+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(i=!0,a.setAttribute("data-emotion",l),s.hydrate([a])),o.current=[s,i],function(){s.flush()}},[t]),yb(function(){var l=o.current,s=l[0],i=l[1];if(i){l[1]=!1;return}if(r.next!==void 0&&mg(t,r.next,!0),s.tags.length){var a=s.tags[s.tags.length-1].nextElementSibling;s.before=a,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Qs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oc(t)}function cl(){var e=Qs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var A2=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,z2=d1(function(e){return A2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),H2=z2,B2=function(t){return t!=="theme"},Cb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?H2:B2},xb=function(t,n,r){var o;if(n){var l=n.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(s){return t.__emotion_forwardProp(s)&&l(s)}:l}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},V2=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return fg(n,r,o),x1(function(){return mg(n,r,o)}),null},G2=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,l,s;n!==void 0&&(l=n.label,s=n.target);var i=xb(t,n,r),a=i||Cb(o),c=!a("as");return function(){var u=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&p.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var g=u.length,h=1;h<g;h++)p.push(u[h],f[h])}var b=hg(function(w,C,y){var x=c&&w.as||o,S="",T=[],P=w;if(w.theme==null){P={};for(var k in w)P[k]=w[k];P.theme=d.useContext(fi)}typeof w.className=="string"?S=y1(C.registered,T,w.className):w.className!=null&&(S=w.className+" ");var E=oc(p.concat(T),C.registered,P);S+=C.key+"-"+E.name,s!==void 0&&(S+=" "+s);var _=c&&i===void 0?Cb(x):a,R={};for(var F in w)c&&F==="as"||_(F)&&(R[F]=w[F]);return R.className=S,y&&(R.ref=y),d.createElement(d.Fragment,null,d.createElement(V2,{cache:C,serialized:E,isStringTag:typeof x=="string"}),d.createElement(x,R))});return b.displayName=l!==void 0?l:"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=p,b.__emotion_forwardProp=i,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(w,C){var y=e(w,m({},n,C,{shouldForwardProp:xb(b,C,!0)}));return y.apply(void 0,p)},b}},W2=["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"],Om=G2.bind(null);W2.forEach(function(e){Om[e]=Om(e)});function U2(e,t){const n=f1({key:"css",prepend:e});if(t){const r=n.insert;n.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),r(...o))}return n}const pf=new Map;function K2(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=d.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&pf.has(l))return pf.get(l);const s=U2(t,n);return pf.set(l,s),s},[t,n]);return t||n?v.jsx(F2,{value:o,children:r}):r}function q2(e){return e==null||Object.keys(e).length===0}function S1(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(q2(o)?n:o):t;return v.jsx(N2,{styles:r})}function vg(e,t){return Om(e,t)}const P1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},wb=[];function Gu(e){return wb[0]=e,oc(wb)}const Y2=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:S1,StyledEngineProvider:K2,ThemeContext:fi,css:Qs,default:vg,internal_processStyles:P1,internal_serializeStyles:Gu,keyframes:cl},Symbol.toStringTag,{value:"Module"}));function go(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function k1(e){if(d.isValidElement(e)||!go(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=k1(e[n])}),t}function En(e,t,n={clone:!0}){const r=n.clone?m({},e):e;return go(e)&&go(t)&&Object.keys(t).forEach(o=>{d.isValidElement(t[o])?r[o]=t[o]:go(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&go(e[o])?r[o]=En(e[o],t[o],n):n.clone?r[o]=go(t[o])?k1(t[o]):t[o]:r[o]=t[o]}),r}const Q2=Object.freeze(Object.defineProperty({__proto__:null,default:En,isPlainObject:go},Symbol.toStringTag,{value:"Module"})),X2=["values","unit","step"],Z2=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)=>m({},n,{[r.key]:r.val}),{})};function E1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=K(e,X2),l=Z2(t),s=Object.keys(l);function i(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,g){const h=s.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:g)-r/100}${n})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):i(f)}function p(f){const g=s.indexOf(f);return g===0?i(s[1]):g===s.length-1?a(s[g]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return m({keys:s,values:l,up:i,down:a,between:c,only:u,not:p,unit:n},o)}const J2={borderRadius:4};function ca(e,t){return t?En(e,t,{clone:!1}):e}const yg={xs:0,sm:600,md:900,lg:1200,xl:1536},Sb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yg[e]}px)`};function Hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const l=r.breakpoints||Sb;return t.reduce((s,i,a)=>(s[l.up(l.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const l=r.breakpoints||Sb;return Object.keys(t).reduce((s,i)=>{if(Object.keys(l.values||yg).indexOf(i)!==-1){const a=l.up(i);s[a]=n(t[i],i)}else{const a=i;s[a]=t[a]}return s},{})}return n(t)}function I1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const l=e.up(o);return r[l]={},r},{}))||{}}function Fm(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function e$(e,...t){const n=I1(e),r=[n,...t].reduce((o,l)=>En(o,l),{});return Fm(Object.keys(n),r)}function t$(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,l)=>{l<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function ff({values:e,breakpoints:t,base:n}){const r=n||t$(e,t),o=Object.keys(r);if(o.length===0)return e;let l;return o.reduce((s,i,a)=>(Array.isArray(e)?(s[i]=e[a]!=null?e[a]:e[l],l=a):typeof e=="object"?(s[i]=e[i]!=null?e[i]:e[l],l=i):s[i]=e,s),{})}function Q(e){if(typeof e!="string")throw new Error(Eo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const n$=Object.freeze(Object.defineProperty({__proto__:null,default:Q},Symbol.toStringTag,{value:"Module"}));function Vd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vd(e,n)||r,t&&(o=t(o,r,e)),o}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,l=s=>{if(s[t]==null)return null;const i=s[t],a=s.theme,c=Vd(a,r)||{};return Hr(s,i,p=>{let f=Wu(c,o,p);return p===f&&typeof p=="string"&&(f=Wu(c,o,`${t}${p==="default"?"":Q(p)}`,p)),n===!1?f:{[n]:f}})};return l.propTypes={},l.filterProps=[t],l}function r$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const o$={m:"margin",p:"padding"},l$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s$=r$(e=>{if(e.length>2)if(Pb[e])e=Pb[e];else return[e];const[t,n]=e.split(""),r=o$[t],o=l$[n]||"";return Array.isArray(o)?o.map(l=>r+l):[r+o]}),bg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bg,...Cg];function lc(e,t,n,r){var o;const l=(o=Vd(e,t,!1))!=null?o:n;return typeof l=="number"?s=>typeof s=="string"?s:l*s:Array.isArray(l)?s=>typeof s=="string"?s:l[s]:typeof l=="function"?l:()=>{}}function xg(e){return lc(e,"spacing",8)}function zl(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 i$(e,t){return n=>e.reduce((r,o)=>(r[o]=zl(t,n),r),{})}function a$(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=s$(n),l=i$(o,r),s=e[n];return Hr(e,s,l)}function M1(e,t){const n=xg(e.theme);return Object.keys(e).map(r=>a$(e,t,r,n)).reduce(ca,{})}function zt(e){return M1(e,bg)}zt.propTypes={};zt.filterProps=bg;function Ht(e){return M1(e,Cg)}Ht.propTypes={};Ht.filterProps=Cg;function c$(e=8){if(e.mui)return e;const t=xg({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(l=>{const s=t(l);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Gd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(l=>{r[l]=o}),r),{}),n=r=>Object.keys(r).reduce((o,l)=>t[l]?ca(o,t[l](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pr(e){return typeof e!="number"?e:`${e}px solid`}function xr(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const u$=xr("border",pr),d$=xr("borderTop",pr),p$=xr("borderRight",pr),f$=xr("borderBottom",pr),m$=xr("borderLeft",pr),h$=xr("borderColor"),g$=xr("borderTopColor"),v$=xr("borderRightColor"),y$=xr("borderBottomColor"),b$=xr("borderLeftColor"),C$=xr("outline",pr),x$=xr("outlineColor"),Wd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:zl(t,r)});return Hr(e,e.borderRadius,n)}return null};Wd.propTypes={};Wd.filterProps=["borderRadius"];Gd(u$,d$,p$,f$,m$,h$,g$,v$,y$,b$,Wd,C$,x$);const Ud=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),n=r=>({gap:zl(t,r)});return Hr(e,e.gap,n)}return null};Ud.propTypes={};Ud.filterProps=["gap"];const Kd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({columnGap:zl(t,r)});return Hr(e,e.columnGap,n)}return null};Kd.propTypes={};Kd.filterProps=["columnGap"];const qd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({rowGap:zl(t,r)});return Hr(e,e.rowGap,n)}return null};qd.propTypes={};qd.filterProps=["rowGap"];const w$=Wt({prop:"gridColumn"}),S$=Wt({prop:"gridRow"}),P$=Wt({prop:"gridAutoFlow"}),k$=Wt({prop:"gridAutoColumns"}),E$=Wt({prop:"gridAutoRows"}),I$=Wt({prop:"gridTemplateColumns"}),M$=Wt({prop:"gridTemplateRows"}),$$=Wt({prop:"gridTemplateAreas"}),R$=Wt({prop:"gridArea"});Gd(Ud,Kd,qd,w$,S$,P$,k$,E$,I$,M$,$$,R$);function Ns(e,t){return t==="grey"?t:e}const T$=Wt({prop:"color",themeKey:"palette",transform:Ns}),O$=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ns}),F$=Wt({prop:"backgroundColor",themeKey:"palette",transform:Ns});Gd(T$,O$,F$);function qn(e){return e<=1&&e!==0?`${e*100}%`:e}const D$=Wt({prop:"width",transform:qn}),wg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const l=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||yg[n];return l?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:qn(n)}};return Hr(e,e.maxWidth,t)}return null};wg.filterProps=["maxWidth"];const j$=Wt({prop:"minWidth",transform:qn}),_$=Wt({prop:"height",transform:qn}),L$=Wt({prop:"maxHeight",transform:qn}),N$=Wt({prop:"minHeight",transform:qn});Wt({prop:"size",cssProperty:"width",transform:qn});Wt({prop:"size",cssProperty:"height",transform:qn});const A$=Wt({prop:"boxSizing"});Gd(D$,wg,j$,_$,L$,N$,A$);const sc={border:{themeKey:"borders",transform:pr},borderTop:{themeKey:"borders",transform:pr},borderRight:{themeKey:"borders",transform:pr},borderBottom:{themeKey:"borders",transform:pr},borderLeft:{themeKey:"borders",transform:pr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wd},color:{themeKey:"palette",transform:Ns},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ns},backgroundColor:{themeKey:"palette",transform:Ns},p:{style:Ht},pt:{style:Ht},pr:{style:Ht},pb:{style:Ht},pl:{style:Ht},px:{style:Ht},py:{style:Ht},padding:{style:Ht},paddingTop:{style:Ht},paddingRight:{style:Ht},paddingBottom:{style:Ht},paddingLeft:{style:Ht},paddingX:{style:Ht},paddingY:{style:Ht},paddingInline:{style:Ht},paddingInlineStart:{style:Ht},paddingInlineEnd:{style:Ht},paddingBlock:{style:Ht},paddingBlockStart:{style:Ht},paddingBlockEnd:{style:Ht},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ud},rowGap:{style:qd},columnGap:{style:Kd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qn},maxWidth:{style:wg},minWidth:{transform:qn},height:{transform:qn},maxHeight:{transform:qn},minHeight:{transform:qn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function z$(...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 H$(e,t){return typeof e=="function"?e(t):e}function $1(){function e(n,r,o,l){const s={[n]:r,theme:o},i=l[n];if(!i)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:u,style:p}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Vd(o,c)||{};return p?p(s):Hr(s,r,h=>{let b=Wu(f,u,h);return h===b&&typeof h=="string"&&(b=Wu(f,u,`${n}${h==="default"?"":Q(h)}`,h)),a===!1?b:{[a]:b}})}function t(n){var r;const{sx:o,theme:l={},nested:s}=n||{};if(!o)return null;const i=(r=l.unstable_sxConfig)!=null?r:sc;function a(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;const p=I1(l.breakpoints),f=Object.keys(p);let g=p;return Object.keys(u).forEach(h=>{const b=H$(u[h],l);if(b!=null)if(typeof b=="object")if(i[h])g=ca(g,e(h,b,l,i));else{const w=Hr({theme:l},b,C=>({[h]:C}));z$(w,b)?g[h]=t({sx:b,theme:l,nested:!0}):g=ca(g,w)}else g=ca(g,e(h,b,l,i))}),!s&&l.modularCssLayers?{"@layer sx":Fm(f,g)}:Fm(f,g)}return Array.isArray(o)?o.map(a):a(o)}return t}const mi=$1();mi.filterProps=["sx"];function R1(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const B$=["breakpoints","palette","spacing","shape"];function hi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:l={}}=e,s=K(e,B$),i=E1(n),a=c$(o);let c=En({breakpoints:i,direction:"ltr",components:{},palette:m({mode:"light"},r),spacing:a,shape:m({},J2,l)},s);return c.applyStyles=R1,c=t.reduce((u,p)=>En(u,p),c),c.unstable_sxConfig=m({},sc,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(p){return mi({sx:p,theme:this})},c}const V$=Object.freeze(Object.defineProperty({__proto__:null,default:hi,private_createBreakpoints:E1,unstable_applyStyles:R1},Symbol.toStringTag,{value:"Module"}));function G$(e){return Object.keys(e).length===0}function Yd(e=null){const t=d.useContext(fi);return!t||G$(t)?e:t}const W$=hi();function Qd(e=W$){return Yd(e)}function mf(e){const t=Gu(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function T1({styles:e,themeId:t,defaultTheme:n={}}){const r=Qd(n),o=t&&r[t]||r;let l=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(l)?l=l.map(s=>mf(typeof s=="function"?s(o):s)):l=mf(l)),v.jsx(S1,{styles:l})}const U$=["sx"],K$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:sc;return Object.keys(e).forEach(l=>{o[l]?r.systemProps[l]=e[l]:r.otherProps[l]=e[l]}),r};function Xd(e){const{sx:t}=e,n=K(e,U$),{systemProps:r,otherProps:o}=K$(n);let l;return Array.isArray(t)?l=[r,...t]:typeof t=="function"?l=(...s)=>{const i=t(...s);return go(i)?m({},r,i):r}:l=m({},r,t),m({},o,{sx:l})}const q$=Object.freeze(Object.defineProperty({__proto__:null,default:mi,extendSxProp:Xd,unstable_createStyleFunctionSx:$1,unstable_defaultSxConfig:sc},Symbol.toStringTag,{value:"Module"})),kb=e=>e,Y$=()=>{let e=kb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=kb}}},Sg=Y$();function O1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=O1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ne(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=O1(e))&&(r&&(r+=" "),r+=t);return r}const Q$=["className","component"];function X$(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,l=vg("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(mi);return d.forwardRef(function(a,c){const u=Qd(n),p=Xd(a),{className:f,component:g="div"}=p,h=K(p,Q$);return v.jsx(l,m({as:g,ref:c,className:ne(f,o?o(r):r),theme:t&&u[t]||u},h))})}const Z$={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function He(e,t,n="Mui"){const r=Z$[t];return r?`${n}-${r}`:`${Sg.generate(e)}-${t}`}function Be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}var F1={exports:{}},kt={};/**
48
48
  * @license React
49
49
  * react-is.production.js
50
50
  *
@@ -52,7 +52,7 @@ Error generating stack: `+l.message+`
52
52
  *
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
- */var Sg=Symbol.for("react.transitional.element"),Pg=Symbol.for("react.portal"),Zd=Symbol.for("react.fragment"),Jd=Symbol.for("react.strict_mode"),ep=Symbol.for("react.profiler"),tp=Symbol.for("react.consumer"),np=Symbol.for("react.context"),rp=Symbol.for("react.forward_ref"),op=Symbol.for("react.suspense"),lp=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),ip=Symbol.for("react.lazy"),J$=Symbol.for("react.view_transition"),eR=Symbol.for("react.client.reference");function xr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Sg:switch(e=e.type,e){case Zd:case ep:case Jd:case op:case lp:case J$:return e;default:switch(e=e&&e.$$typeof,e){case np:case rp:case ip:case sp:return e;case tp:return e;default:return t}}case Pg:return t}}}kt.ContextConsumer=tp;kt.ContextProvider=np;kt.Element=Sg;kt.ForwardRef=rp;kt.Fragment=Zd;kt.Lazy=ip;kt.Memo=sp;kt.Portal=Pg;kt.Profiler=ep;kt.StrictMode=Jd;kt.Suspense=op;kt.SuspenseList=lp;kt.isContextConsumer=function(e){return xr(e)===tp};kt.isContextProvider=function(e){return xr(e)===np};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sg};kt.isForwardRef=function(e){return xr(e)===rp};kt.isFragment=function(e){return xr(e)===Zd};kt.isLazy=function(e){return xr(e)===ip};kt.isMemo=function(e){return xr(e)===sp};kt.isPortal=function(e){return xr(e)===Pg};kt.isProfiler=function(e){return xr(e)===ep};kt.isStrictMode=function(e){return xr(e)===Jd};kt.isSuspense=function(e){return xr(e)===op};kt.isSuspenseList=function(e){return xr(e)===lp};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===ep||e===Jd||e===op||e===lp||typeof e=="object"&&e!==null&&(e.$$typeof===ip||e.$$typeof===sp||e.$$typeof===np||e.$$typeof===tp||e.$$typeof===rp||e.$$typeof===eR||e.getModuleId!==void 0)};kt.typeOf=xr;F1.exports=kt;var Eb=F1.exports;const tR=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function D1(e){const t=`${e}`.match(tR);return t&&t[1]||""}function j1(e,t=""){return e.displayName||e.name||D1(e)||t}function Ib(e,t,n){const r=j1(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function nR(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return j1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Eb.ForwardRef:return Ib(e,e.render,"ForwardRef");case Eb.Memo:return Ib(e,e.type,"memo");default:return}}}const rR=Object.freeze(Object.defineProperty({__proto__:null,default:nR,getFunctionName:D1},Symbol.toStringTag,{value:"Module"})),oR=["ownerState"],lR=["variants"],sR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iR(e){return Object.keys(e).length===0}function aR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mb(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const cR=hi(),uR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lc({defaultTheme:e,theme:t,themeId:n}){return iR(t)?e:t[n]||t}function dR(e){return e?(t,n)=>n[e]:null}function cu(e,t,n){let{ownerState:r}=t,o=K(t,oR);const l=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(l))return l.flatMap(s=>cu(s,m({ownerState:r},o),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:s=[]}=l;let a=K(l,lR);return s.forEach(c=>{let u=!0;if(typeof c.props=="function"?u=c.props(m({ownerState:r},o,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&o[p]!==c.props[p]&&(u=!1)}),u){Array.isArray(a)||(a=[a]);const p=typeof c.style=="function"?c.style(m({ownerState:r},o,r)):c.style;a.push(n?Mb(Gu(p),n):p)}}),a}return n?Mb(Gu(l),n):l}function pR(e={}){const{themeId:t,defaultTheme:n=cR,rootShouldForwardProp:r=mf,slotShouldForwardProp:o=mf}=e,l=s=>mi(m({},s,{theme:Lc(m({},s,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(s,i={})=>{P1(s,P=>P.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:f=dR(uR(c))}=i,g=K(i,sR),h=a&&a.startsWith("Mui")||c?"components":"custom",b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,w=p||!1;let C,y=mf;c==="Root"||c==="root"?y=r:c?y=o:aR(s)&&(y=void 0);const x=gg(s,m({shouldForwardProp:y,label:C},g)),S=P=>typeof P=="function"&&P.__emotion_real!==P||ho(P)?k=>{const E=Lc({theme:k.theme,defaultTheme:n,themeId:t});return cu(P,m({},k,{theme:E}),E.modularCssLayers?h:void 0)}:P,T=(P,...k)=>{let E=S(P);const _=k?k.map(S):[];a&&f&&_.push(L=>{const O=Lc(m({},L,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const I=O.components[a].styleOverrides,$={};return Object.entries(I).forEach(([j,N])=>{$[j]=cu(N,m({},L,{theme:O}),O.modularCssLayers?"theme":void 0)}),f(L,$)}),a&&!b&&_.push(L=>{var O;const I=Lc(m({},L,{defaultTheme:n,themeId:t})),$=I==null||(O=I.components)==null||(O=O[a])==null?void 0:O.variants;return cu({variants:$},m({},L,{theme:I}),I.modularCssLayers?"theme":void 0)}),w||_.push(l);const R=_.length-k.length;if(Array.isArray(P)&&R>0){const L=new Array(R).fill("");E=[...P,...L],E.raw=[...P.raw,...L]}const F=x(E,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(T.withConfig=x.withConfig),T}}const Zt=pR();function La(e,t){const n=m({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=m({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},l=t[r];n[r]={},!l||!Object.keys(l)?n[r]=o:!o||!Object.keys(o)?n[r]=l:(n[r]=m({},l),Object.keys(o).forEach(s=>{n[r][s]=La(o[s],l[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function _1(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:La(t.components[n].defaultProps,r)}function kg({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qd(n);return r&&(o=o[r]||o),_1({theme:o,name:t,props:e})}const vt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function fR(e,t,n,r,o){const[l,s]=d.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return vt(()=>{let i=!0;if(!n)return;const a=n(e),c=()=>{i&&s(a.matches)};return c(),a.addListener(c),()=>{i=!1,a.removeListener(c)}},[e,n]),l}const L1=d.useSyncExternalStore;function mR(e,t,n,r,o){const l=d.useCallback(()=>t,[t]),s=d.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return l},[l,e,r,o,n]),[i,a]=d.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,p=>(u.addListener(p),()=>{u.removeListener(p)})]},[l,n,e]);return L1(a,i,s)}function hR(e,t={}){const n=Yd(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:l=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:i=!1}=_1({name:"MuiUseMediaQuery",props:t,theme:n});let a=e;return a=a.replace(/^@media( ?)/m,""),(L1!==void 0?mR:fR)(a,o,l,s,i)}function N1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const gR=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));function Eg(e,t=0,n=1){return N1(e,t,n)}function vR(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 ap(e){if(e.type)return e;if(e.charAt(0)==="#")return ap(vR(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Eo(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(Eo(10,o))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:o}}function Ig(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,l)=>l<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 $r(e,t){return e=ap(e),t=Eg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ig(e)}function yR(e,t){if(e=ap(e),t=Eg(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 Ig(e)}function bR(e,t){if(e=ap(e),t=Eg(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 Ig(e)}function CR(e,t){return()=>null}function Fm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ql(e,t=166){let n;function r(...o){const l=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=()=>{clearTimeout(n)},r}function xR(e,t){return()=>null}function uu(e,t){var n,r;return d.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function jt(e){return e&&e.ownerDocument||document}function Hr(e){return jt(e).defaultView||window}function wR(e,t){return()=>null}function Na(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $b=0;function SR(e){const[t,n]=d.useState(e),r=e||t;return d.useEffect(()=>{t==null&&($b+=1,n(`mui-${$b}`))},[t]),r}const Rb=jf.useId;function bt(e){if(Rb!==void 0){const t=Rb();return e??t}return SR(e)}function PR(e,t,n,r,o){return null}function rl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=d.useRef(e!==void 0),[l,s]=d.useState(t),i=o?e:l,a=d.useCallback(c=>{o||s(c)},[]);return[i,a]}function Ct(e){const t=d.useRef(e);return vt(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function wt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Na(n,t)})},e)}const Tb={};function kR(e,t){const n=d.useRef(Tb);return n.current===Tb&&(n.current=e(t)),n}const ER=[];function IR(e){d.useEffect(e,ER)}let Mg=class A1{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A1}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Ms(){const e=kR(Mg.create).current;return IR(e.disposeEffect),e}let cp=!0,Dm=!1;const MR=new Mg,$R={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 RR(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$R[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function TR(e){e.metaKey||e.altKey||e.ctrlKey||(cp=!0)}function hf(){cp=!1}function OR(){this.visibilityState==="hidden"&&Dm&&(cp=!0)}function FR(e){e.addEventListener("keydown",TR,!0),e.addEventListener("mousedown",hf,!0),e.addEventListener("pointerdown",hf,!0),e.addEventListener("touchstart",hf,!0),e.addEventListener("visibilitychange",OR,!0)}function DR(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return cp||RR(t)}function $g(){const e=d.useCallback(o=>{o!=null&&FR(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(Dm=!0,MR.start(100,()=>{Dm=!1}),t.current=!1,!0):!1}function r(o){return DR(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ss;function H1(){if(ss)return ss;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),ss="reverse",e.scrollLeft>0?ss="default":(e.scrollLeft=1,e.scrollLeft===0&&(ss="negative")),document.body.removeChild(e),ss}function jR(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(H1()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Rg=e=>{const t=d.useRef({});return d.useEffect(()=>{t.current=e}),t.current};function we(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((l,s)=>{if(s){const i=t(s);i!==""&&l.push(i),n&&n[s]&&l.push(n[s])}return l},[]).join(" ")}),r}function Aa(e){return typeof e=="string"}function qi(e,t,n){return e===void 0||Aa(e)?t:m({},t,{ownerState:m({},t.ownerState,n)})}function B1(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 Ob(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 _R(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:l}=e;if(!t){const g=ne(n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),h=m({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=m({},n,o,r);return g.length>0&&(b.className=g),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:void 0}}const s=B1(m({},o,r)),i=Ob(r),a=Ob(o),c=t(s),u=ne(c==null?void 0:c.className,n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),p=m({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=m({},c,n,a,i);return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}function LR(e,t,n){return typeof e=="function"?e(t,n):e}const NR=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Zn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:l=!1}=e,s=K(e,NR),i=l?{}:LR(r,o),{props:a,internalRef:c}=_R(m({},s,{externalSlotProps:i})),u=wt(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return qi(n,m({},a,{ref:u}),o)}function Yl(e){if(parseInt(d.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const V1=d.createContext(null);function G1(){return d.useContext(V1)}const AR=typeof Symbol=="function"&&Symbol.for,zR=AR?Symbol.for("mui.nested"):"__THEME_NESTED__";function HR(e,t){return typeof t=="function"?t(e):m({},e,t)}function BR(e){const{children:t,theme:n}=e,r=G1(),o=d.useMemo(()=>{const l=r===null?n:HR(r,n);return l!=null&&(l[zR]=r!==null),l},[n,r]);return v.jsx(V1.Provider,{value:o,children:t})}const VR=["value"],W1=d.createContext();function GR(e){let{value:t}=e,n=K(e,VR);return v.jsx(W1.Provider,m({value:t??!0},n))}const ic=()=>{const e=d.useContext(W1);return e??!1},U1=d.createContext(void 0);function WR({value:e,children:t}){return v.jsx(U1.Provider,{value:e,children:t})}function UR(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?La(o.defaultProps,r):!o.styleOverrides&&!o.variants?La(o,r):r}function KR({props:e,name:t}){const n=d.useContext(U1);return UR({props:e,name:t,theme:{components:n}})}function qR(e){const t=Yd(),n=bt()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,vt(()=>{const l=document.querySelector("head");if(!l)return;const s=l.firstChild;if(o){var i;if(s&&(i=s.hasAttribute)!=null&&i.call(s,"data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=o,l.prepend(c)}else{var a;(a=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||a.remove()}},[o,n]),o?v.jsx(T1,{styles:o}):null}const Fb={};function Db(e,t,n,r=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const l=n(o),s=e?m({},t,{[e]:l}):l;return r?()=>s:s}return e?m({},t,{[e]:n}):m({},t,n)},[e,t,n,r])}function YR(e){const{children:t,theme:n,themeId:r}=e,o=Yd(Fb),l=G1()||Fb,s=Db(r,o,n),i=Db(r,l,n,!0),a=s.direction==="rtl",c=qR(s);return v.jsx(BR,{theme:i,children:v.jsx(fi.Provider,{value:s,children:v.jsx(GR,{value:a,children:v.jsxs(WR,{value:s==null?void 0:s.components,children:[c,t]})})})})}function za(e){"@babel/helpers - typeof";return za=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},za(e)}function QR(e,t){if(za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ha(e){var t=QR(e,"string");return za(t)=="symbol"?t:t+""}const XR=["className","component","disableGutters","fixed","maxWidth","classes"],ZR=hi(),JR=Zt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),eT=e=>kg({props:e,name:"MuiContainer",defaultTheme:ZR}),tT=(e,t)=>{const n=a=>He(t,a),{classes:r,fixed:o,disableGutters:l,maxWidth:s}=e,i={root:["root",s&&`maxWidth${Q(String(s))}`,o&&"fixed",l&&"disableGutters"]};return we(i,n,r)};function nT(e={}){const{createStyledComponent:t=JR,useThemeProps:n=eT,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:i})=>m({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((a,c)=>{const u=c,p=s.breakpoints.values[u];return p!==0&&(a[s.breakpoints.up(u)]={maxWidth:`${p}${s.breakpoints.unit}`}),a},{}),({theme:s,ownerState:i})=>m({},i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}));return d.forwardRef(function(i,a){const c=n(i),{className:u,component:p="div",disableGutters:f=!1,fixed:g=!1,maxWidth:h="lg"}=c,b=K(c,XR),w=m({},c,{component:p,disableGutters:f,fixed:g,maxWidth:h}),C=tT(w,r);return v.jsx(o,m({as:p,ownerState:w,className:ne(C.root,u),ref:a},b))})}const rT=["component","direction","spacing","divider","children","className","useFlexGap"],oT=hi(),lT=Zt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sT(e){return kg({props:e,name:"MuiStack",defaultTheme:oT})}function iT(e,t){const n=d.Children.toArray(e).filter(Boolean);return n.reduce((r,o,l)=>(r.push(o),l<n.length-1&&r.push(d.cloneElement(t,{key:`separator-${l}`})),r),[])}const aT=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cT=({ownerState:e,theme:t})=>{let n=m({display:"flex",flexDirection:"column"},zr({theme:t},pf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Cg(t),o=Object.keys(t.breakpoints.values).reduce((a,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),l=pf({values:e.direction,base:o}),s=pf({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((a,c,u)=>{if(!l[a]){const f=c>0?l[u[c-1]]:"column";l[a]=f}}),n=En(n,zr({theme:t},s,(a,c)=>e.useFlexGap?{gap:Hl(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${aT(c?l[c]:e.direction)}`]:Hl(r,a)}}))}return n=e$(t.breakpoints,n),n};function uT(e={}){const{createStyledComponent:t=lT,useThemeProps:n=sT,componentName:r="MuiStack"}=e,o=()=>we({root:["root"]},a=>He(r,a),{}),l=t(cT);return d.forwardRef(function(a,c){const u=n(a),p=Xd(u),{component:f="div",direction:g="column",spacing:h=0,divider:b,children:w,className:C,useFlexGap:y=!1}=p,x=K(p,rT),S={direction:g,spacing:h,useFlexGap:y},T=o();return v.jsx(l,m({as:f,ownerState:S,ref:c,className:ne(T.root,C)},x,{children:b?iT(w,b):w}))})}function dT(e,t){return m({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ut={},K1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(K1);var zn=K1.exports;const pT=Mo(VM),fT=Mo(gR);var q1=zn;Object.defineProperty(Ut,"__esModule",{value:!0});var pt=Ut.alpha=Z1;Ut.blend=PT;Ut.colorChannel=void 0;var Tg=Ut.darken=Dg;Ut.decomposeColor=vr;Ut.emphasize=J1;var mT=Ut.getContrastRatio=bT;Ut.getLuminance=Uu;Ut.hexToRgb=Y1;Ut.hslToRgb=X1;var Og=Ut.lighten=jg;Ut.private_safeAlpha=CT;Ut.private_safeColorChannel=void 0;Ut.private_safeDarken=xT;Ut.private_safeEmphasize=ST;Ut.private_safeLighten=wT;Ut.recomposeColor=gi;Ut.rgbToHex=yT;var jb=q1(pT),hT=q1(fT);function Fg(e,t=0,n=1){return(0,hT.default)(e,t,n)}function Y1(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 gT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function vr(e){if(e.type)return e;if(e.charAt(0)==="#")return vr(Y1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,jb.default)(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((0,jb.default)(10,o))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:o}}const Q1=e=>{const t=vr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ut.colorChannel=Q1;const vT=(e,t)=>{try{return Q1(e)}catch{return e}};Ut.private_safeColorChannel=vT;function gi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,l)=>l<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 yT(e){if(e.indexOf("#")===0)return e;const{values:t}=vr(e);return`#${t.map((n,r)=>gT(r===3?Math.round(255*n):n)).join("")}`}function X1(e){e=vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-l*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",a.push(t[3])),gi({type:i,values:a})}function Uu(e){e=vr(e);let t=e.type==="hsl"||e.type==="hsla"?vr(X1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bT(e,t){const n=Uu(e),r=Uu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Z1(e,t){return e=vr(e),t=Fg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gi(e)}function CT(e,t,n){try{return Z1(e,t)}catch{return e}}function Dg(e,t){if(e=vr(e),t=Fg(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 gi(e)}function xT(e,t,n){try{return Dg(e,t)}catch{return e}}function jg(e,t){if(e=vr(e),t=Fg(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 gi(e)}function wT(e,t,n){try{return jg(e,t)}catch{return e}}function J1(e,t=.15){return Uu(e)>.5?Dg(e,t):jg(e,t)}function ST(e,t,n){try{return J1(e,t)}catch{return e}}function PT(e,t,n,r=1){const o=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),l=vr(e),s=vr(t),i=[o(l.values[0],s.values[0]),o(l.values[1],s.values[1]),o(l.values[2],s.values[2])];return gi({type:"rgb",values:i})}const kT=["mode","contrastThreshold","tonalOffset"],_b={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:Fa.white,default:Fa.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}},gf={text:{primary:Fa.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:Fa.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 Lb(e,t,n,r){const o=r.light||r,l=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Og(e.main,o):t==="dark"&&(e.dark=Tg(e.main,l)))}function ET(e="light"){return e==="dark"?{main:rs[200],light:rs[50],dark:rs[400]}:{main:rs[700],light:rs[400],dark:rs[800]}}function IT(e="light"){return e==="dark"?{main:ns[200],light:ns[50],dark:ns[400]}:{main:ns[500],light:ns[300],dark:ns[700]}}function MT(e="light"){return e==="dark"?{main:ts[500],light:ts[300],dark:ts[700]}:{main:ts[700],light:ts[400],dark:ts[800]}}function $T(e="light"){return e==="dark"?{main:os[400],light:os[300],dark:os[700]}:{main:os[700],light:os[500],dark:os[900]}}function RT(e="light"){return e==="dark"?{main:ls[400],light:ls[300],dark:ls[700]}:{main:ls[800],light:ls[500],dark:ls[900]}}function TT(e="light"){return e==="dark"?{main:Oi[400],light:Oi[300],dark:Oi[700]}:{main:"#ed6c02",light:Oi[500],dark:Oi[900]}}function OT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=K(e,kT),l=e.primary||ET(t),s=e.secondary||IT(t),i=e.error||MT(t),a=e.info||$T(t),c=e.success||RT(t),u=e.warning||TT(t);function p(b){return mT(b,gf.text.primary)>=n?gf.text.primary:_b.text.primary}const f=({color:b,name:w,mainShade:C=500,lightShade:y=300,darkShade:x=700})=>{if(b=m({},b),!b.main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Eo(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Eo(12,w?` (${w})`:"",JSON.stringify(b.main)));return Lb(b,"light",y,r),Lb(b,"dark",x,r),b.contrastText||(b.contrastText=p(b.main)),b},g={dark:gf,light:_b};return En(m({common:m({},Fa),mode:t,primary:f({color:l,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:i,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:BM,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},g[t]),o)}const FT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DT(e){return Math.round(e*1e5)/1e5}const Nb={textTransform:"uppercase"},Ab='"Roboto", "Helvetica", "Arial", sans-serif';function jT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ab,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,f=K(n,FT),g=o/14,h=p||(C=>`${C/c*g}rem`),b=(C,y,x,S,T)=>m({fontFamily:r,fontWeight:C,fontSize:h(y),lineHeight:x},r===Ab?{letterSpacing:`${DT(S/y)}em`}:{},T,u),w={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(i,14,1.75,.4,Nb),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,Nb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return En(m({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a},w),f,{clone:!1})}const _T=.2,LT=.14,NT=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_T})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NT})`].join(",")}const AT=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],zT=["duration","easing","delay"],HT={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)"},BT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zb(e){return`${Math.round(e)}ms`}function VT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function GT(e){const t=m({},HT,e.easing),n=m({},BT,e.duration);return m({getAutoHeightDuration:VT,create:(o=["all"],l={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:a=0}=l;return K(l,zT),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:zb(s)} ${i} ${typeof a=="string"?a:zb(a)}`).join(",")}},e,{easing:t,duration:n})}const WT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},UT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _g(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:l={}}=e,s=K(e,UT);if(e.vars&&e.generateCssVars===void 0)throw new Error(Eo(18));const i=OT(r),a=hi(e);let c=En(a,{mixins:dT(a.breakpoints,n),palette:i,shadows:AT.slice(),typography:jT(i,l),transitions:GT(o),zIndex:m({},WT)});return c=En(c,s),c=t.reduce((u,p)=>En(u,p),c),c.unstable_sxConfig=m({},sc,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(p){return mi({sx:p,theme:this})},c}function KT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function qT(e){return parseFloat(e)}const up=_g();function Br(){const e=Qd(up);return e[zl]||e}function eS({props:e,name:t}){return kg({props:e,name:t,defaultTheme:up,themeId:zl})}var ac={},vf={exports:{}},Hb;function YT(){return Hb||(Hb=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)({}).hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vf)),vf.exports}var yf={exports:{}},Bb;function QT(){return Bb||(Bb=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)!==-1)continue;o[l]=n[l]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yf)),yf.exports}const tS=Mo(Y2),XT=Mo(Q2),ZT=Mo(n$),JT=Mo(rR),eO=Mo(V$),tO=Mo(q$);var vi=zn;Object.defineProperty(ac,"__esModule",{value:!0});var nO=ac.default=hO;ac.shouldForwardProp=du;ac.systemDefaultTheme=void 0;var or=vi(YT()),jm=vi(QT()),Ku=cO(tS),rO=XT;vi(ZT);vi(JT);var oO=vi(eO),lO=vi(tO);const sO=["ownerState"],iO=["variants"],aO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nS=function(r){return r?n:t})(e)}function cO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}function uO(e){return Object.keys(e).length===0}function dO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function du(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vb(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const pO=ac.systemDefaultTheme=(0,oO.default)(),fO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Nc({defaultTheme:e,theme:t,themeId:n}){return uO(t)?e:t[n]||t}function mO(e){return e?(t,n)=>n[e]:null}function pu(e,t,n){let{ownerState:r}=t,o=(0,jm.default)(t,sO);const l=typeof e=="function"?e((0,or.default)({ownerState:r},o)):e;if(Array.isArray(l))return l.flatMap(s=>pu(s,(0,or.default)({ownerState:r},o),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:s=[]}=l;let a=(0,jm.default)(l,iO);return s.forEach(c=>{let u=!0;if(typeof c.props=="function"?u=c.props((0,or.default)({ownerState:r},o,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&o[p]!==c.props[p]&&(u=!1)}),u){Array.isArray(a)||(a=[a]);const p=typeof c.style=="function"?c.style((0,or.default)({ownerState:r},o,r)):c.style;a.push(n?Vb((0,Ku.internal_serializeStyles)(p),n):p)}}),a}return n?Vb((0,Ku.internal_serializeStyles)(l),n):l}function hO(e={}){const{themeId:t,defaultTheme:n=pO,rootShouldForwardProp:r=du,slotShouldForwardProp:o=du}=e,l=s=>(0,lO.default)((0,or.default)({},s,{theme:Nc((0,or.default)({},s,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(s,i={})=>{(0,Ku.internal_processStyles)(s,P=>P.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:f=mO(fO(c))}=i,g=(0,jm.default)(i,aO),h=a&&a.startsWith("Mui")||c?"components":"custom",b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,w=p||!1;let C,y=du;c==="Root"||c==="root"?y=r:c?y=o:dO(s)&&(y=void 0);const x=(0,Ku.default)(s,(0,or.default)({shouldForwardProp:y,label:C},g)),S=P=>typeof P=="function"&&P.__emotion_real!==P||(0,rO.isPlainObject)(P)?k=>{const E=Nc({theme:k.theme,defaultTheme:n,themeId:t});return pu(P,(0,or.default)({},k,{theme:E}),E.modularCssLayers?h:void 0)}:P,T=(P,...k)=>{let E=S(P);const _=k?k.map(S):[];a&&f&&_.push(L=>{const O=Nc((0,or.default)({},L,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const I=O.components[a].styleOverrides,$={};return Object.entries(I).forEach(([j,N])=>{$[j]=pu(N,(0,or.default)({},L,{theme:O}),O.modularCssLayers?"theme":void 0)}),f(L,$)}),a&&!b&&_.push(L=>{var O;const I=Nc((0,or.default)({},L,{defaultTheme:n,themeId:t})),$=I==null||(O=I.components)==null||(O=O[a])==null?void 0:O.variants;return pu({variants:$},(0,or.default)({},L,{theme:I}),I.modularCssLayers?"theme":void 0)}),w||_.push(l);const R=_.length-k.length;if(Array.isArray(P)&&R>0){const L=new Array(R).fill("");E=[...P,...L],E.raw=[...P.raw,...L]}const F=x(E,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(T.withConfig=x.withConfig),T}}function rS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hn=e=>rS(e)&&e!=="classes",X=nO({themeId:zl,defaultTheme:up,rootShouldForwardProp:Hn}),gO=["theme"];function vO(e){let{theme:t}=e,n=K(e,gO);const r=t[zl];let o=r||t;return typeof t!="function"&&(r&&!r.vars?o=m({},r,{vars:null}):t&&!t.vars&&(o=m({},t,{vars:null}))),v.jsx(YR,m({},n,{themeId:r?zl:void 0,theme:o}))}const Gb=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ke(e){return KR(e)}function yO(e){return He("MuiSvgIcon",e)}Be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],CO=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return we(o,yO,r)},xO=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,l,s,i,a,c,u,p,f,g,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,20))||"1.25rem",medium:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?p:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),_m=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:s="inherit",component:i="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24"}=r,g=K(r,bO),h=d.isValidElement(o)&&o.type==="svg",b=m({},r,{color:s,component:i,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h}),w={};u||(w.viewBox=f);const C=CO(b);return v.jsxs(xO,m({as:i,className:ne(C.root,l),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},w,g,h&&o.props,{ownerState:b,children:[h?o.props.children:o,p?v.jsx("title",{children:p}):null]}))});_m.muiName="SvgIcon";function ot(e,t){function n(r,o){return v.jsx(_m,m({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=_m.muiName,d.memo(d.forwardRef(n))}const wO={configure:e=>{wg.configure(e)}},SO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Q,createChainedFunction:Fm,createSvgIcon:ot,debounce:ql,deprecatedPropType:xR,isMuiElement:uu,ownerDocument:jt,ownerWindow:Hr,requirePropFactory:wR,setRef:Na,unstable_ClassNameGenerator:wO,unstable_useEnhancedEffect:vt,unstable_useId:bt,unsupportedProp:PR,useControlled:rl,useEventCallback:Ct,useForkRef:wt,useIsFocusVisible:$g},Symbol.toStringTag,{value:"Module"}));function Lm(e,t){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Lm(e,t)}function oS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lm(e,t)}const Wb={disabled:!1},qu=tn.createContext(null);var PO=function(t){return t.scrollTop},Yi="unmounted",vl="exited",yl="entering",ps="entered",Nm="exiting",io=function(e){oS(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,a;return l.appearStatus=null,r.in?i?(a=vl,l.appearStatus=yl):a=ps:r.unmountOnExit||r.mountOnEnter?a=Yi:a=vl,l.state={status:a},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var s=o.in;return s&&l.status===Yi?{status:vl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var l=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==yl&&s!==ps&&(l=yl):(s===yl||s===ps)&&(l=Nm)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,l,s,i;return l=s=i=o,o!=null&&typeof o!="number"&&(l=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:l,enter:s,appear:i}},n.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===yl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:jc.findDOMNode(this);s&&PO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vl&&this.setState({status:Yi})},n.performEnter=function(o){var l=this,s=this.props.enter,i=this.context?this.context.isMounting:o,a=this.props.nodeRef?[i]:[jc.findDOMNode(this),i],c=a[0],u=a[1],p=this.getTimeouts(),f=i?p.appear:p.enter;if(!o&&!s||Wb.disabled){this.safeSetState({status:ps},function(){l.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:yl},function(){l.props.onEntering(c,u),l.onTransitionEnd(f,function(){l.safeSetState({status:ps},function(){l.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,l=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:jc.findDOMNode(this);if(!l||Wb.disabled){this.safeSetState({status:vl},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Nm},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:vl},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},n.setNextCallback=function(o){var l=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,l.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,l){this.setNextCallback(l);var s=this.props.nodeRef?this.props.nodeRef.current:jc.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],u=a[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yi)return null;var l=this.props,s=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var i=K(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return tn.createElement(qu.Provider,{value:null},typeof s=="function"?s(o,i):tn.cloneElement(tn.Children.only(s),i))},t}(tn.Component);io.contextType=qu;io.propTypes={};function is(){}io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:is,onEntering:is,onEntered:is,onExit:is,onExiting:is,onExited:is};io.UNMOUNTED=Yi;io.EXITED=vl;io.ENTERING=yl;io.ENTERED=ps;io.EXITING=Nm;function kO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lg(e,t){var n=function(l){return t&&d.isValidElement(l)?t(l):l},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function EO(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var l in e)l in t?o.length&&(r[l]=o,o=[]):o.push(l);var s,i={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var c=r[a][s];i[r[a][s]]=n(c)}i[a]=n(a)}for(s=0;s<o.length;s++)i[o[s]]=n(o[s]);return i}function Pl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IO(e,t){return Lg(e.children,function(n){return d.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pl(n,"appear",e),enter:Pl(n,"enter",e),exit:Pl(n,"exit",e)})})}function MO(e,t,n){var r=Lg(e.children),o=EO(t,r);return Object.keys(o).forEach(function(l){var s=o[l];if(d.isValidElement(s)){var i=l in t,a=l in r,c=t[l],u=d.isValidElement(c)&&!c.props.in;a&&(!i||u)?o[l]=d.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Pl(s,"exit",e),enter:Pl(s,"enter",e)}):!a&&i&&!u?o[l]=d.cloneElement(s,{in:!1}):a&&i&&d.isValidElement(c)&&(o[l]=d.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:Pl(s,"exit",e),enter:Pl(s,"enter",e)}))}}),o}var $O=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},RO={component:"div",childFactory:function(t){return t}},Ng=function(e){oS(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=l.handleExited.bind(kO(l));return l.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},l}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,l){var s=l.children,i=l.handleExited,a=l.firstRender;return{children:a?IO(o,i):MO(o,s,i),firstRender:!1}},n.handleExited=function(o,l){var s=Lg(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(i){var a=m({},i.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,l=o.component,s=o.childFactory,i=K(o,["component","childFactory"]),a=this.state.contextValue,c=$O(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,l===null?tn.createElement(qu.Provider,{value:a},c):tn.createElement(qu.Provider,{value:a},tn.createElement(l,i,c))},t}(tn.Component);Ng.propTypes={};Ng.defaultProps=RO;const lS=e=>e.scrollTop;function Yu(e,t){var n,r;const{timeout:o,easing:l,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 l=="object"?l[t.mode]:l,delay:s.transitionDelay}}function TO(e){return He("MuiPaper",e)}Be("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 OO=["className","component","elevation","square","variant"],FO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,l={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return we(l,TO,o)},DO=X("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 m({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"&&m({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${pt("#fff",Gb(t.elevation))}, ${pt("#fff",Gb(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),wr=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:l="div",elevation:s=1,square:i=!1,variant:a="elevation"}=r,c=K(r,OO),u=m({},r,{component:l,elevation:s,square:i,variant:a}),p=FO(u);return v.jsx(DO,m({as:l,ownerState:u,className:ne(p.root,o),ref:n},c))});function jO(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:l,rippleSize:s,in:i,onExited:a,timeout:c}=e,[u,p]=d.useState(!1),f=ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+l,left:-(s/2)+o},h=ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!i&&!u&&p(!0),d.useEffect(()=>{if(!i&&a!=null){const b=setTimeout(a,c);return()=>{clearTimeout(b)}}},[a,i,c]),v.jsx("span",{className:f,style:g,children:v.jsx("span",{className:h})})}const ar=Be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_O=["center","classes","className"];let dp=e=>e,Ub,Kb,qb,Yb;const Am=550,LO=80,NO=ul(Ub||(Ub=dp`
55
+ */var Pg=Symbol.for("react.transitional.element"),kg=Symbol.for("react.portal"),Zd=Symbol.for("react.fragment"),Jd=Symbol.for("react.strict_mode"),ep=Symbol.for("react.profiler"),tp=Symbol.for("react.consumer"),np=Symbol.for("react.context"),rp=Symbol.for("react.forward_ref"),op=Symbol.for("react.suspense"),lp=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),ip=Symbol.for("react.lazy"),J$=Symbol.for("react.view_transition"),eR=Symbol.for("react.client.reference");function wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pg:switch(e=e.type,e){case Zd:case ep:case Jd:case op:case lp:case J$:return e;default:switch(e=e&&e.$$typeof,e){case np:case rp:case ip:case sp:return e;case tp:return e;default:return t}}case kg:return t}}}kt.ContextConsumer=tp;kt.ContextProvider=np;kt.Element=Pg;kt.ForwardRef=rp;kt.Fragment=Zd;kt.Lazy=ip;kt.Memo=sp;kt.Portal=kg;kt.Profiler=ep;kt.StrictMode=Jd;kt.Suspense=op;kt.SuspenseList=lp;kt.isContextConsumer=function(e){return wr(e)===tp};kt.isContextProvider=function(e){return wr(e)===np};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pg};kt.isForwardRef=function(e){return wr(e)===rp};kt.isFragment=function(e){return wr(e)===Zd};kt.isLazy=function(e){return wr(e)===ip};kt.isMemo=function(e){return wr(e)===sp};kt.isPortal=function(e){return wr(e)===kg};kt.isProfiler=function(e){return wr(e)===ep};kt.isStrictMode=function(e){return wr(e)===Jd};kt.isSuspense=function(e){return wr(e)===op};kt.isSuspenseList=function(e){return wr(e)===lp};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===ep||e===Jd||e===op||e===lp||typeof e=="object"&&e!==null&&(e.$$typeof===ip||e.$$typeof===sp||e.$$typeof===np||e.$$typeof===tp||e.$$typeof===rp||e.$$typeof===eR||e.getModuleId!==void 0)};kt.typeOf=wr;F1.exports=kt;var Eb=F1.exports;const tR=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function D1(e){const t=`${e}`.match(tR);return t&&t[1]||""}function j1(e,t=""){return e.displayName||e.name||D1(e)||t}function Ib(e,t,n){const r=j1(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function nR(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return j1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Eb.ForwardRef:return Ib(e,e.render,"ForwardRef");case Eb.Memo:return Ib(e,e.type,"memo");default:return}}}const rR=Object.freeze(Object.defineProperty({__proto__:null,default:nR,getFunctionName:D1},Symbol.toStringTag,{value:"Module"})),oR=["ownerState"],lR=["variants"],sR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iR(e){return Object.keys(e).length===0}function aR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mb(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const cR=hi(),uR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lc({defaultTheme:e,theme:t,themeId:n}){return iR(t)?e:t[n]||t}function dR(e){return e?(t,n)=>n[e]:null}function cu(e,t,n){let{ownerState:r}=t,o=K(t,oR);const l=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(l))return l.flatMap(s=>cu(s,m({ownerState:r},o),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:s=[]}=l;let a=K(l,lR);return s.forEach(c=>{let u=!0;if(typeof c.props=="function"?u=c.props(m({ownerState:r},o,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&o[p]!==c.props[p]&&(u=!1)}),u){Array.isArray(a)||(a=[a]);const p=typeof c.style=="function"?c.style(m({ownerState:r},o,r)):c.style;a.push(n?Mb(Gu(p),n):p)}}),a}return n?Mb(Gu(l),n):l}function pR(e={}){const{themeId:t,defaultTheme:n=cR,rootShouldForwardProp:r=hf,slotShouldForwardProp:o=hf}=e,l=s=>mi(m({},s,{theme:Lc(m({},s,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(s,i={})=>{P1(s,P=>P.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:f=dR(uR(c))}=i,g=K(i,sR),h=a&&a.startsWith("Mui")||c?"components":"custom",b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,w=p||!1;let C,y=hf;c==="Root"||c==="root"?y=r:c?y=o:aR(s)&&(y=void 0);const x=vg(s,m({shouldForwardProp:y,label:C},g)),S=P=>typeof P=="function"&&P.__emotion_real!==P||go(P)?k=>{const E=Lc({theme:k.theme,defaultTheme:n,themeId:t});return cu(P,m({},k,{theme:E}),E.modularCssLayers?h:void 0)}:P,T=(P,...k)=>{let E=S(P);const _=k?k.map(S):[];a&&f&&_.push(L=>{const O=Lc(m({},L,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const I=O.components[a].styleOverrides,$={};return Object.entries(I).forEach(([j,N])=>{$[j]=cu(N,m({},L,{theme:O}),O.modularCssLayers?"theme":void 0)}),f(L,$)}),a&&!b&&_.push(L=>{var O;const I=Lc(m({},L,{defaultTheme:n,themeId:t})),$=I==null||(O=I.components)==null||(O=O[a])==null?void 0:O.variants;return cu({variants:$},m({},L,{theme:I}),I.modularCssLayers?"theme":void 0)}),w||_.push(l);const R=_.length-k.length;if(Array.isArray(P)&&R>0){const L=new Array(R).fill("");E=[...P,...L],E.raw=[...P.raw,...L]}const F=x(E,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(T.withConfig=x.withConfig),T}}const Jt=pR();function La(e,t){const n=m({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=m({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},l=t[r];n[r]={},!l||!Object.keys(l)?n[r]=o:!o||!Object.keys(o)?n[r]=l:(n[r]=m({},l),Object.keys(o).forEach(s=>{n[r][s]=La(o[s],l[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function _1(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:La(t.components[n].defaultProps,r)}function Eg({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qd(n);return r&&(o=o[r]||o),_1({theme:o,name:t,props:e})}const vt=typeof window<"u"?d.useLayoutEffect:d.useEffect;function fR(e,t,n,r,o){const[l,s]=d.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return vt(()=>{let i=!0;if(!n)return;const a=n(e),c=()=>{i&&s(a.matches)};return c(),a.addListener(c),()=>{i=!1,a.removeListener(c)}},[e,n]),l}const L1=d.useSyncExternalStore;function mR(e,t,n,r,o){const l=d.useCallback(()=>t,[t]),s=d.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return l},[l,e,r,o,n]),[i,a]=d.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,p=>(u.addListener(p),()=>{u.removeListener(p)})]},[l,n,e]);return L1(a,i,s)}function hR(e,t={}){const n=Yd(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:l=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:i=!1}=_1({name:"MuiUseMediaQuery",props:t,theme:n});let a=e;return a=a.replace(/^@media( ?)/m,""),(L1!==void 0?mR:fR)(a,o,l,s,i)}function N1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const gR=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"}));function Ig(e,t=0,n=1){return N1(e,t,n)}function vR(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 ap(e){if(e.type)return e;if(e.charAt(0)==="#")return ap(vR(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Eo(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(Eo(10,o))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:o}}function Mg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,l)=>l<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 Rr(e,t){return e=ap(e),t=Ig(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Mg(e)}function yR(e,t){if(e=ap(e),t=Ig(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 Mg(e)}function bR(e,t){if(e=ap(e),t=Ig(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 Mg(e)}function CR(e,t){return()=>null}function Dm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Kl(e,t=166){let n;function r(...o){const l=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=()=>{clearTimeout(n)},r}function xR(e,t){return()=>null}function uu(e,t){var n,r;return d.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function jt(e){return e&&e.ownerDocument||document}function Br(e){return jt(e).defaultView||window}function wR(e,t){return()=>null}function Na(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $b=0;function SR(e){const[t,n]=d.useState(e),r=e||t;return d.useEffect(()=>{t==null&&($b+=1,n(`mui-${$b}`))},[t]),r}const Rb=_f.useId;function bt(e){if(Rb!==void 0){const t=Rb();return e??t}return SR(e)}function PR(e,t,n,r,o){return null}function nl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=d.useRef(e!==void 0),[l,s]=d.useState(t),i=o?e:l,a=d.useCallback(c=>{o||s(c)},[]);return[i,a]}function Ct(e){const t=d.useRef(e);return vt(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function wt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Na(n,t)})},e)}const Tb={};function kR(e,t){const n=d.useRef(Tb);return n.current===Tb&&(n.current=e(t)),n}const ER=[];function IR(e){d.useEffect(e,ER)}let $g=class A1{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A1}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Is(){const e=kR($g.create).current;return IR(e.disposeEffect),e}let cp=!0,jm=!1;const MR=new $g,$R={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 RR(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$R[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function TR(e){e.metaKey||e.altKey||e.ctrlKey||(cp=!0)}function gf(){cp=!1}function OR(){this.visibilityState==="hidden"&&jm&&(cp=!0)}function FR(e){e.addEventListener("keydown",TR,!0),e.addEventListener("mousedown",gf,!0),e.addEventListener("pointerdown",gf,!0),e.addEventListener("touchstart",gf,!0),e.addEventListener("visibilitychange",OR,!0)}function DR(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return cp||RR(t)}function Rg(){const e=d.useCallback(o=>{o!=null&&FR(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(jm=!0,MR.start(100,()=>{jm=!1}),t.current=!1,!0):!1}function r(o){return DR(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ls;function H1(){if(ls)return ls;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),ls="reverse",e.scrollLeft>0?ls="default":(e.scrollLeft=1,e.scrollLeft===0&&(ls="negative")),document.body.removeChild(e),ls}function jR(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(H1()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Tg=e=>{const t=d.useRef({});return d.useEffect(()=>{t.current=e}),t.current};function we(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((l,s)=>{if(s){const i=t(s);i!==""&&l.push(i),n&&n[s]&&l.push(n[s])}return l},[]).join(" ")}),r}function Aa(e){return typeof e=="string"}function qi(e,t,n){return e===void 0||Aa(e)?t:m({},t,{ownerState:m({},t.ownerState,n)})}function B1(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 Ob(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 _R(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:l}=e;if(!t){const g=ne(n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),h=m({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=m({},n,o,r);return g.length>0&&(b.className=g),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:void 0}}const s=B1(m({},o,r)),i=Ob(r),a=Ob(o),c=t(s),u=ne(c==null?void 0:c.className,n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),p=m({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=m({},c,n,a,i);return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}function LR(e,t,n){return typeof e=="function"?e(t,n):e}const NR=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Jn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:l=!1}=e,s=K(e,NR),i=l?{}:LR(r,o),{props:a,internalRef:c}=_R(m({},s,{externalSlotProps:i})),u=wt(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return qi(n,m({},a,{ref:u}),o)}function ql(e){if(parseInt(d.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const V1=d.createContext(null);function G1(){return d.useContext(V1)}const AR=typeof Symbol=="function"&&Symbol.for,zR=AR?Symbol.for("mui.nested"):"__THEME_NESTED__";function HR(e,t){return typeof t=="function"?t(e):m({},e,t)}function BR(e){const{children:t,theme:n}=e,r=G1(),o=d.useMemo(()=>{const l=r===null?n:HR(r,n);return l!=null&&(l[zR]=r!==null),l},[n,r]);return v.jsx(V1.Provider,{value:o,children:t})}const VR=["value"],W1=d.createContext();function GR(e){let{value:t}=e,n=K(e,VR);return v.jsx(W1.Provider,m({value:t??!0},n))}const ic=()=>{const e=d.useContext(W1);return e??!1},U1=d.createContext(void 0);function WR({value:e,children:t}){return v.jsx(U1.Provider,{value:e,children:t})}function UR(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?La(o.defaultProps,r):!o.styleOverrides&&!o.variants?La(o,r):r}function KR({props:e,name:t}){const n=d.useContext(U1);return UR({props:e,name:t,theme:{components:n}})}function qR(e){const t=Yd(),n=bt()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,vt(()=>{const l=document.querySelector("head");if(!l)return;const s=l.firstChild;if(o){var i;if(s&&(i=s.hasAttribute)!=null&&i.call(s,"data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=o,l.prepend(c)}else{var a;(a=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||a.remove()}},[o,n]),o?v.jsx(T1,{styles:o}):null}const Fb={};function Db(e,t,n,r=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const l=n(o),s=e?m({},t,{[e]:l}):l;return r?()=>s:s}return e?m({},t,{[e]:n}):m({},t,n)},[e,t,n,r])}function YR(e){const{children:t,theme:n,themeId:r}=e,o=Yd(Fb),l=G1()||Fb,s=Db(r,o,n),i=Db(r,l,n,!0),a=s.direction==="rtl",c=qR(s);return v.jsx(BR,{theme:i,children:v.jsx(fi.Provider,{value:s,children:v.jsx(GR,{value:a,children:v.jsxs(WR,{value:s==null?void 0:s.components,children:[c,t]})})})})}function za(e){"@babel/helpers - typeof";return za=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},za(e)}function QR(e,t){if(za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ha(e){var t=QR(e,"string");return za(t)=="symbol"?t:t+""}const XR=["className","component","disableGutters","fixed","maxWidth","classes"],ZR=hi(),JR=Jt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),eT=e=>Eg({props:e,name:"MuiContainer",defaultTheme:ZR}),tT=(e,t)=>{const n=a=>He(t,a),{classes:r,fixed:o,disableGutters:l,maxWidth:s}=e,i={root:["root",s&&`maxWidth${Q(String(s))}`,o&&"fixed",l&&"disableGutters"]};return we(i,n,r)};function nT(e={}){const{createStyledComponent:t=JR,useThemeProps:n=eT,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:i})=>m({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((a,c)=>{const u=c,p=s.breakpoints.values[u];return p!==0&&(a[s.breakpoints.up(u)]={maxWidth:`${p}${s.breakpoints.unit}`}),a},{}),({theme:s,ownerState:i})=>m({},i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}));return d.forwardRef(function(i,a){const c=n(i),{className:u,component:p="div",disableGutters:f=!1,fixed:g=!1,maxWidth:h="lg"}=c,b=K(c,XR),w=m({},c,{component:p,disableGutters:f,fixed:g,maxWidth:h}),C=tT(w,r);return v.jsx(o,m({as:p,ownerState:w,className:ne(C.root,u),ref:a},b))})}const rT=["component","direction","spacing","divider","children","className","useFlexGap"],oT=hi(),lT=Jt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sT(e){return Eg({props:e,name:"MuiStack",defaultTheme:oT})}function iT(e,t){const n=d.Children.toArray(e).filter(Boolean);return n.reduce((r,o,l)=>(r.push(o),l<n.length-1&&r.push(d.cloneElement(t,{key:`separator-${l}`})),r),[])}const aT=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cT=({ownerState:e,theme:t})=>{let n=m({display:"flex",flexDirection:"column"},Hr({theme:t},ff({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=xg(t),o=Object.keys(t.breakpoints.values).reduce((a,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),l=ff({values:e.direction,base:o}),s=ff({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((a,c,u)=>{if(!l[a]){const f=c>0?l[u[c-1]]:"column";l[a]=f}}),n=En(n,Hr({theme:t},s,(a,c)=>e.useFlexGap?{gap:zl(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${aT(c?l[c]:e.direction)}`]:zl(r,a)}}))}return n=e$(t.breakpoints,n),n};function uT(e={}){const{createStyledComponent:t=lT,useThemeProps:n=sT,componentName:r="MuiStack"}=e,o=()=>we({root:["root"]},a=>He(r,a),{}),l=t(cT);return d.forwardRef(function(a,c){const u=n(a),p=Xd(u),{component:f="div",direction:g="column",spacing:h=0,divider:b,children:w,className:C,useFlexGap:y=!1}=p,x=K(p,rT),S={direction:g,spacing:h,useFlexGap:y},T=o();return v.jsx(l,m({as:f,ownerState:S,ref:c,className:ne(T.root,C)},x,{children:b?iT(w,b):w}))})}function dT(e,t){return m({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ut={},K1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(K1);var zn=K1.exports;const pT=Mo(VM),fT=Mo(gR);var q1=zn;Object.defineProperty(Ut,"__esModule",{value:!0});var pt=Ut.alpha=Z1;Ut.blend=PT;Ut.colorChannel=void 0;var Og=Ut.darken=jg;Ut.decomposeColor=yr;Ut.emphasize=J1;var mT=Ut.getContrastRatio=bT;Ut.getLuminance=Uu;Ut.hexToRgb=Y1;Ut.hslToRgb=X1;var Fg=Ut.lighten=_g;Ut.private_safeAlpha=CT;Ut.private_safeColorChannel=void 0;Ut.private_safeDarken=xT;Ut.private_safeEmphasize=ST;Ut.private_safeLighten=wT;Ut.recomposeColor=gi;Ut.rgbToHex=yT;var jb=q1(pT),hT=q1(fT);function Dg(e,t=0,n=1){return(0,hT.default)(e,t,n)}function Y1(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 gT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function yr(e){if(e.type)return e;if(e.charAt(0)==="#")return yr(Y1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,jb.default)(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((0,jb.default)(10,o))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:o}}const Q1=e=>{const t=yr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ut.colorChannel=Q1;const vT=(e,t)=>{try{return Q1(e)}catch{return e}};Ut.private_safeColorChannel=vT;function gi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,l)=>l<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 yT(e){if(e.indexOf("#")===0)return e;const{values:t}=yr(e);return`#${t.map((n,r)=>gT(r===3?Math.round(255*n):n)).join("")}`}function X1(e){e=yr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-l*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",a.push(t[3])),gi({type:i,values:a})}function Uu(e){e=yr(e);let t=e.type==="hsl"||e.type==="hsla"?yr(X1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bT(e,t){const n=Uu(e),r=Uu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Z1(e,t){return e=yr(e),t=Dg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gi(e)}function CT(e,t,n){try{return Z1(e,t)}catch{return e}}function jg(e,t){if(e=yr(e),t=Dg(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 gi(e)}function xT(e,t,n){try{return jg(e,t)}catch{return e}}function _g(e,t){if(e=yr(e),t=Dg(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 gi(e)}function wT(e,t,n){try{return _g(e,t)}catch{return e}}function J1(e,t=.15){return Uu(e)>.5?jg(e,t):_g(e,t)}function ST(e,t,n){try{return J1(e,t)}catch{return e}}function PT(e,t,n,r=1){const o=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),l=yr(e),s=yr(t),i=[o(l.values[0],s.values[0]),o(l.values[1],s.values[1]),o(l.values[2],s.values[2])];return gi({type:"rgb",values:i})}const kT=["mode","contrastThreshold","tonalOffset"],_b={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:Fa.white,default:Fa.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}},vf={text:{primary:Fa.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:Fa.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 Lb(e,t,n,r){const o=r.light||r,l=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Fg(e.main,o):t==="dark"&&(e.dark=Og(e.main,l)))}function ET(e="light"){return e==="dark"?{main:ns[200],light:ns[50],dark:ns[400]}:{main:ns[700],light:ns[400],dark:ns[800]}}function IT(e="light"){return e==="dark"?{main:ts[200],light:ts[50],dark:ts[400]}:{main:ts[500],light:ts[300],dark:ts[700]}}function MT(e="light"){return e==="dark"?{main:es[500],light:es[300],dark:es[700]}:{main:es[700],light:es[400],dark:es[800]}}function $T(e="light"){return e==="dark"?{main:rs[400],light:rs[300],dark:rs[700]}:{main:rs[700],light:rs[500],dark:rs[900]}}function RT(e="light"){return e==="dark"?{main:os[400],light:os[300],dark:os[700]}:{main:os[800],light:os[500],dark:os[900]}}function TT(e="light"){return e==="dark"?{main:Oi[400],light:Oi[300],dark:Oi[700]}:{main:"#ed6c02",light:Oi[500],dark:Oi[900]}}function OT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=K(e,kT),l=e.primary||ET(t),s=e.secondary||IT(t),i=e.error||MT(t),a=e.info||$T(t),c=e.success||RT(t),u=e.warning||TT(t);function p(b){return mT(b,vf.text.primary)>=n?vf.text.primary:_b.text.primary}const f=({color:b,name:w,mainShade:C=500,lightShade:y=300,darkShade:x=700})=>{if(b=m({},b),!b.main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Eo(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Eo(12,w?` (${w})`:"",JSON.stringify(b.main)));return Lb(b,"light",y,r),Lb(b,"dark",x,r),b.contrastText||(b.contrastText=p(b.main)),b},g={dark:vf,light:_b};return En(m({common:m({},Fa),mode:t,primary:f({color:l,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:i,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:BM,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},g[t]),o)}const FT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DT(e){return Math.round(e*1e5)/1e5}const Nb={textTransform:"uppercase"},Ab='"Roboto", "Helvetica", "Arial", sans-serif';function jT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ab,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,f=K(n,FT),g=o/14,h=p||(C=>`${C/c*g}rem`),b=(C,y,x,S,T)=>m({fontFamily:r,fontWeight:C,fontSize:h(y),lineHeight:x},r===Ab?{letterSpacing:`${DT(S/y)}em`}:{},T,u),w={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(i,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(i,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(i,14,1.75,.4,Nb),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,Nb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return En(m({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a},w),f,{clone:!1})}const _T=.2,LT=.14,NT=.12;function Ft(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_T})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${LT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${NT})`].join(",")}const AT=["none",Ft(0,2,1,-1,0,1,1,0,0,1,3,0),Ft(0,3,1,-2,0,2,2,0,0,1,5,0),Ft(0,3,3,-2,0,3,4,0,0,1,8,0),Ft(0,2,4,-1,0,4,5,0,0,1,10,0),Ft(0,3,5,-1,0,5,8,0,0,1,14,0),Ft(0,3,5,-1,0,6,10,0,0,1,18,0),Ft(0,4,5,-2,0,7,10,1,0,2,16,1),Ft(0,5,5,-3,0,8,10,1,0,3,14,2),Ft(0,5,6,-3,0,9,12,1,0,3,16,2),Ft(0,6,6,-3,0,10,14,1,0,4,18,3),Ft(0,6,7,-4,0,11,15,1,0,4,20,3),Ft(0,7,8,-4,0,12,17,2,0,5,22,4),Ft(0,7,8,-4,0,13,19,2,0,5,24,4),Ft(0,7,9,-4,0,14,21,2,0,5,26,4),Ft(0,8,9,-5,0,15,22,2,0,6,28,5),Ft(0,8,10,-5,0,16,24,2,0,6,30,5),Ft(0,8,11,-5,0,17,26,2,0,6,32,5),Ft(0,9,11,-5,0,18,28,2,0,7,34,6),Ft(0,9,12,-6,0,19,29,2,0,7,36,6),Ft(0,10,13,-6,0,20,31,3,0,8,38,7),Ft(0,10,13,-6,0,21,33,3,0,8,40,7),Ft(0,10,14,-6,0,22,35,3,0,8,42,7),Ft(0,11,14,-7,0,23,36,3,0,9,44,8),Ft(0,11,15,-7,0,24,38,3,0,9,46,8)],zT=["duration","easing","delay"],HT={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)"},BT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zb(e){return`${Math.round(e)}ms`}function VT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function GT(e){const t=m({},HT,e.easing),n=m({},BT,e.duration);return m({getAutoHeightDuration:VT,create:(o=["all"],l={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:a=0}=l;return K(l,zT),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:zb(s)} ${i} ${typeof a=="string"?a:zb(a)}`).join(",")}},e,{easing:t,duration:n})}const WT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},UT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Lg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:l={}}=e,s=K(e,UT);if(e.vars&&e.generateCssVars===void 0)throw new Error(Eo(18));const i=OT(r),a=hi(e);let c=En(a,{mixins:dT(a.breakpoints,n),palette:i,shadows:AT.slice(),typography:jT(i,l),transitions:GT(o),zIndex:m({},WT)});return c=En(c,s),c=t.reduce((u,p)=>En(u,p),c),c.unstable_sxConfig=m({},sc,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(p){return mi({sx:p,theme:this})},c}function KT(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function qT(e){return parseFloat(e)}const up=Lg();function Vr(){const e=Qd(up);return e[Al]||e}function eS({props:e,name:t}){return Eg({props:e,name:t,defaultTheme:up,themeId:Al})}var ac={},yf={exports:{}},Hb;function YT(){return Hb||(Hb=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)({}).hasOwnProperty.call(o,l)&&(n[l]=o[l])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yf)),yf.exports}var bf={exports:{}},Bb;function QT(){return Bb||(Bb=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)!==-1)continue;o[l]=n[l]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(bf)),bf.exports}const tS=Mo(Y2),XT=Mo(Q2),ZT=Mo(n$),JT=Mo(rR),eO=Mo(V$),tO=Mo(q$);var vi=zn;Object.defineProperty(ac,"__esModule",{value:!0});var nO=ac.default=hO;ac.shouldForwardProp=du;ac.systemDefaultTheme=void 0;var lr=vi(YT()),_m=vi(QT()),Ku=cO(tS),rO=XT;vi(ZT);vi(JT);var oO=vi(eO),lO=vi(tO);const sO=["ownerState"],iO=["variants"],aO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nS=function(r){return r?n:t})(e)}function cO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}function uO(e){return Object.keys(e).length===0}function dO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function du(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vb(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const pO=ac.systemDefaultTheme=(0,oO.default)(),fO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Nc({defaultTheme:e,theme:t,themeId:n}){return uO(t)?e:t[n]||t}function mO(e){return e?(t,n)=>n[e]:null}function pu(e,t,n){let{ownerState:r}=t,o=(0,_m.default)(t,sO);const l=typeof e=="function"?e((0,lr.default)({ownerState:r},o)):e;if(Array.isArray(l))return l.flatMap(s=>pu(s,(0,lr.default)({ownerState:r},o),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:s=[]}=l;let a=(0,_m.default)(l,iO);return s.forEach(c=>{let u=!0;if(typeof c.props=="function"?u=c.props((0,lr.default)({ownerState:r},o,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&o[p]!==c.props[p]&&(u=!1)}),u){Array.isArray(a)||(a=[a]);const p=typeof c.style=="function"?c.style((0,lr.default)({ownerState:r},o,r)):c.style;a.push(n?Vb((0,Ku.internal_serializeStyles)(p),n):p)}}),a}return n?Vb((0,Ku.internal_serializeStyles)(l),n):l}function hO(e={}){const{themeId:t,defaultTheme:n=pO,rootShouldForwardProp:r=du,slotShouldForwardProp:o=du}=e,l=s=>(0,lO.default)((0,lr.default)({},s,{theme:Nc((0,lr.default)({},s,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(s,i={})=>{(0,Ku.internal_processStyles)(s,P=>P.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:p,overridesResolver:f=mO(fO(c))}=i,g=(0,_m.default)(i,aO),h=a&&a.startsWith("Mui")||c?"components":"custom",b=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,w=p||!1;let C,y=du;c==="Root"||c==="root"?y=r:c?y=o:dO(s)&&(y=void 0);const x=(0,Ku.default)(s,(0,lr.default)({shouldForwardProp:y,label:C},g)),S=P=>typeof P=="function"&&P.__emotion_real!==P||(0,rO.isPlainObject)(P)?k=>{const E=Nc({theme:k.theme,defaultTheme:n,themeId:t});return pu(P,(0,lr.default)({},k,{theme:E}),E.modularCssLayers?h:void 0)}:P,T=(P,...k)=>{let E=S(P);const _=k?k.map(S):[];a&&f&&_.push(L=>{const O=Nc((0,lr.default)({},L,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const I=O.components[a].styleOverrides,$={};return Object.entries(I).forEach(([j,N])=>{$[j]=pu(N,(0,lr.default)({},L,{theme:O}),O.modularCssLayers?"theme":void 0)}),f(L,$)}),a&&!b&&_.push(L=>{var O;const I=Nc((0,lr.default)({},L,{defaultTheme:n,themeId:t})),$=I==null||(O=I.components)==null||(O=O[a])==null?void 0:O.variants;return pu({variants:$},(0,lr.default)({},L,{theme:I}),I.modularCssLayers?"theme":void 0)}),w||_.push(l);const R=_.length-k.length;if(Array.isArray(P)&&R>0){const L=new Array(R).fill("");E=[...P,...L],E.raw=[...P.raw,...L]}const F=x(E,..._);return s.muiName&&(F.muiName=s.muiName),F};return x.withConfig&&(T.withConfig=x.withConfig),T}}function rS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hn=e=>rS(e)&&e!=="classes",X=nO({themeId:Al,defaultTheme:up,rootShouldForwardProp:Hn}),gO=["theme"];function vO(e){let{theme:t}=e,n=K(e,gO);const r=t[Al];let o=r||t;return typeof t!="function"&&(r&&!r.vars?o=m({},r,{vars:null}):t&&!t.vars&&(o=m({},t,{vars:null}))),v.jsx(YR,m({},n,{themeId:r?Al:void 0,theme:o}))}const Gb=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ke(e){return KR(e)}function yO(e){return He("MuiSvgIcon",e)}Be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],CO=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return we(o,yO,r)},xO=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,l,s,i,a,c,u,p,f,g,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,20))||"1.25rem",medium:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?p:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),Lm=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:s="inherit",component:i="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24"}=r,g=K(r,bO),h=d.isValidElement(o)&&o.type==="svg",b=m({},r,{color:s,component:i,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h}),w={};u||(w.viewBox=f);const C=CO(b);return v.jsxs(xO,m({as:i,className:ne(C.root,l),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},w,g,h&&o.props,{ownerState:b,children:[h?o.props.children:o,p?v.jsx("title",{children:p}):null]}))});Lm.muiName="SvgIcon";function ot(e,t){function n(r,o){return v.jsx(Lm,m({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Lm.muiName,d.memo(d.forwardRef(n))}const wO={configure:e=>{Sg.configure(e)}},SO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Q,createChainedFunction:Dm,createSvgIcon:ot,debounce:Kl,deprecatedPropType:xR,isMuiElement:uu,ownerDocument:jt,ownerWindow:Br,requirePropFactory:wR,setRef:Na,unstable_ClassNameGenerator:wO,unstable_useEnhancedEffect:vt,unstable_useId:bt,unsupportedProp:PR,useControlled:nl,useEventCallback:Ct,useForkRef:wt,useIsFocusVisible:Rg},Symbol.toStringTag,{value:"Module"}));function Nm(e,t){return Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Nm(e,t)}function oS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nm(e,t)}const Wb={disabled:!1},qu=nn.createContext(null);var PO=function(t){return t.scrollTop},Yi="unmounted",gl="exited",vl="entering",ds="entered",Am="exiting",ao=function(e){oS(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,a;return l.appearStatus=null,r.in?i?(a=gl,l.appearStatus=vl):a=ds:r.unmountOnExit||r.mountOnEnter?a=Yi:a=gl,l.state={status:a},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var s=o.in;return s&&l.status===Yi?{status:gl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var l=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==vl&&s!==ds&&(l=vl):(s===vl||s===ds)&&(l=Am)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,l,s,i;return l=s=i=o,o!=null&&typeof o!="number"&&(l=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:l,enter:s,appear:i}},n.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===vl){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:jc.findDOMNode(this);s&&PO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gl&&this.setState({status:Yi})},n.performEnter=function(o){var l=this,s=this.props.enter,i=this.context?this.context.isMounting:o,a=this.props.nodeRef?[i]:[jc.findDOMNode(this),i],c=a[0],u=a[1],p=this.getTimeouts(),f=i?p.appear:p.enter;if(!o&&!s||Wb.disabled){this.safeSetState({status:ds},function(){l.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:vl},function(){l.props.onEntering(c,u),l.onTransitionEnd(f,function(){l.safeSetState({status:ds},function(){l.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,l=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:jc.findDOMNode(this);if(!l||Wb.disabled){this.safeSetState({status:gl},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Am},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:gl},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},n.setNextCallback=function(o){var l=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,l.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,l){this.setNextCallback(l);var s=this.props.nodeRef?this.props.nodeRef.current:jc.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],u=a[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yi)return null;var l=this.props,s=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var i=K(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nn.createElement(qu.Provider,{value:null},typeof s=="function"?s(o,i):nn.cloneElement(nn.Children.only(s),i))},t}(nn.Component);ao.contextType=qu;ao.propTypes={};function ss(){}ao.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ss,onEntering:ss,onEntered:ss,onExit:ss,onExiting:ss,onExited:ss};ao.UNMOUNTED=Yi;ao.EXITED=gl;ao.ENTERING=vl;ao.ENTERED=ds;ao.EXITING=Am;function kO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ng(e,t){var n=function(l){return t&&d.isValidElement(l)?t(l):l},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function EO(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var l in e)l in t?o.length&&(r[l]=o,o=[]):o.push(l);var s,i={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var c=r[a][s];i[r[a][s]]=n(c)}i[a]=n(a)}for(s=0;s<o.length;s++)i[o[s]]=n(o[s]);return i}function Sl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function IO(e,t){return Ng(e.children,function(n){return d.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Sl(n,"appear",e),enter:Sl(n,"enter",e),exit:Sl(n,"exit",e)})})}function MO(e,t,n){var r=Ng(e.children),o=EO(t,r);return Object.keys(o).forEach(function(l){var s=o[l];if(d.isValidElement(s)){var i=l in t,a=l in r,c=t[l],u=d.isValidElement(c)&&!c.props.in;a&&(!i||u)?o[l]=d.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Sl(s,"exit",e),enter:Sl(s,"enter",e)}):!a&&i&&!u?o[l]=d.cloneElement(s,{in:!1}):a&&i&&d.isValidElement(c)&&(o[l]=d.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:Sl(s,"exit",e),enter:Sl(s,"enter",e)}))}}),o}var $O=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},RO={component:"div",childFactory:function(t){return t}},Ag=function(e){oS(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=l.handleExited.bind(kO(l));return l.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},l}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,l){var s=l.children,i=l.handleExited,a=l.firstRender;return{children:a?IO(o,i):MO(o,s,i),firstRender:!1}},n.handleExited=function(o,l){var s=Ng(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(i){var a=m({},i.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,l=o.component,s=o.childFactory,i=K(o,["component","childFactory"]),a=this.state.contextValue,c=$O(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,l===null?nn.createElement(qu.Provider,{value:a},c):nn.createElement(qu.Provider,{value:a},nn.createElement(l,i,c))},t}(nn.Component);Ag.propTypes={};Ag.defaultProps=RO;const lS=e=>e.scrollTop;function Yu(e,t){var n,r;const{timeout:o,easing:l,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 l=="object"?l[t.mode]:l,delay:s.transitionDelay}}function TO(e){return He("MuiPaper",e)}Be("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 OO=["className","component","elevation","square","variant"],FO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,l={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return we(l,TO,o)},DO=X("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 m({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"&&m({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${pt("#fff",Gb(t.elevation))}, ${pt("#fff",Gb(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Sr=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPaper"}),{className:o,component:l="div",elevation:s=1,square:i=!1,variant:a="elevation"}=r,c=K(r,OO),u=m({},r,{component:l,elevation:s,square:i,variant:a}),p=FO(u);return v.jsx(DO,m({as:l,ownerState:u,className:ne(p.root,o),ref:n},c))});function jO(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:l,rippleSize:s,in:i,onExited:a,timeout:c}=e,[u,p]=d.useState(!1),f=ne(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+l,left:-(s/2)+o},h=ne(n.child,u&&n.childLeaving,r&&n.childPulsate);return!i&&!u&&p(!0),d.useEffect(()=>{if(!i&&a!=null){const b=setTimeout(a,c);return()=>{clearTimeout(b)}}},[a,i,c]),v.jsx("span",{className:f,style:g,children:v.jsx("span",{className:h})})}const cr=Be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_O=["center","classes","className"];let dp=e=>e,Ub,Kb,qb,Yb;const zm=550,LO=80,NO=cl(Ub||(Ub=dp`
56
56
  0% {
57
57
  transform: scale(0);
58
58
  opacity: 0.1;
@@ -62,7 +62,7 @@ Error generating stack: `+l.message+`
62
62
  transform: scale(1);
63
63
  opacity: 0.3;
64
64
  }
65
- `)),AO=ul(Kb||(Kb=dp`
65
+ `)),AO=cl(Kb||(Kb=dp`
66
66
  0% {
67
67
  opacity: 1;
68
68
  }
@@ -70,7 +70,7 @@ Error generating stack: `+l.message+`
70
70
  100% {
71
71
  opacity: 0;
72
72
  }
73
- `)),zO=ul(qb||(qb=dp`
73
+ `)),zO=cl(qb||(qb=dp`
74
74
  0% {
75
75
  transform: scale(1);
76
76
  }
@@ -125,8 +125,8 @@ Error generating stack: `+l.message+`
125
125
  animation-iteration-count: infinite;
126
126
  animation-delay: 200ms;
127
127
  }
128
- `),ar.rippleVisible,NO,Am,({theme:e})=>e.transitions.easing.easeInOut,ar.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ar.child,ar.childLeaving,AO,Am,({theme:e})=>e.transitions.easing.easeInOut,ar.childPulsate,zO,({theme:e})=>e.transitions.easing.easeInOut),VO=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:s}=r,i=K(r,_O),[a,c]=d.useState([]),u=d.useRef(0),p=d.useRef(null);d.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const f=d.useRef(!1),g=Ms(),h=d.useRef(null),b=d.useRef(null),w=d.useCallback(S=>{const{pulsate:T,rippleX:P,rippleY:k,rippleSize:E,cb:_}=S;c(R=>[...R,v.jsx(BO,{classes:{ripple:ne(l.ripple,ar.ripple),rippleVisible:ne(l.rippleVisible,ar.rippleVisible),ripplePulsate:ne(l.ripplePulsate,ar.ripplePulsate),child:ne(l.child,ar.child),childLeaving:ne(l.childLeaving,ar.childLeaving),childPulsate:ne(l.childPulsate,ar.childPulsate)},timeout:Am,pulsate:T,rippleX:P,rippleY:k,rippleSize:E},u.current)]),u.current+=1,p.current=_},[l]),C=d.useCallback((S={},T={},P=()=>{})=>{const{pulsate:k=!1,center:E=o||T.pulsate,fakeElement:_=!1}=T;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const R=_?null:b.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,O,I;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)L=Math.round(F.width/2),O=Math.round(F.height/2);else{const{clientX:$,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;L=Math.round($-F.left),O=Math.round(j-F.top)}if(E)I=Math.sqrt((2*F.width**2+F.height**2)/3),I%2===0&&(I+=1);else{const $=Math.max(Math.abs((R?R.clientWidth:0)-L),L)*2+2,j=Math.max(Math.abs((R?R.clientHeight:0)-O),O)*2+2;I=Math.sqrt($**2+j**2)}S!=null&&S.touches?h.current===null&&(h.current=()=>{w({pulsate:k,rippleX:L,rippleY:O,rippleSize:I,cb:P})},g.start(LO,()=>{h.current&&(h.current(),h.current=null)})):w({pulsate:k,rippleX:L,rippleY:O,rippleSize:I,cb:P})},[o,w,g]),y=d.useCallback(()=>{C({},{pulsate:!0})},[C]),x=d.useCallback((S,T)=>{if(g.clear(),(S==null?void 0:S.type)==="touchend"&&h.current){h.current(),h.current=null,g.start(0,()=>{x(S,T)});return}h.current=null,c(P=>P.length>0?P.slice(1):P),p.current=T},[g]);return d.useImperativeHandle(n,()=>({pulsate:y,start:C,stop:x}),[y,C,x]),v.jsx(HO,m({className:ne(ar.root,l.root,s),ref:b},i,{children:v.jsx(Ng,{component:null,exit:!0,children:a})}))});function GO(e){return He("MuiButtonBase",e)}const WO=Be("MuiButtonBase",["root","disabled","focusVisible"]),UO=["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"],KO=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=we({root:["root",t&&"disabled",n&&"focusVisible"]},GO,o);return n&&r&&(s.root+=` ${r}`),s},qO=X("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"},[`&.${WO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sl=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:s,className:i,component:a="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:g="a",onBlur:h,onClick:b,onContextMenu:w,onDragLeave:C,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:T,onMouseDown:P,onMouseLeave:k,onMouseUp:E,onTouchEnd:_,onTouchMove:R,onTouchStart:F,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:$}=r,j=K(r,UO),N=d.useRef(null),M=d.useRef(null),D=wt(M,I),{isFocusVisibleRef:A,onFocus:H,onBlur:z,ref:W}=$g(),[G,q]=d.useState(!1);c&&G&&q(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),N.current.focus()}}),[]);const[re,ae]=d.useState(!1);d.useEffect(()=>{ae(!0)},[]);const ce=re&&!u&&!c;d.useEffect(()=>{G&&f&&!u&&re&&M.current.pulsate()},[u,f,G,re]);function ue(se,qe,tt=p){return Ct(Xe=>(qe&&qe(Xe),!tt&&M.current&&M.current[se](Xe),!0))}const ye=ue("start",P),de=ue("stop",w),he=ue("stop",C),Y=ue("stop",E),pe=ue("stop",se=>{G&&se.preventDefault(),k&&k(se)}),ee=ue("start",F),Z=ue("stop",_),fe=ue("stop",R),le=ue("stop",se=>{z(se),A.current===!1&&q(!1),h&&h(se)},!1),ge=Ct(se=>{N.current||(N.current=se.currentTarget),H(se),A.current===!0&&(q(!0),x&&x(se)),y&&y(se)}),me=()=>{const se=N.current;return a&&a!=="button"&&!(se.tagName==="A"&&se.href)},Ie=d.useRef(!1),Se=Ct(se=>{f&&!Ie.current&&G&&M.current&&se.key===" "&&(Ie.current=!0,M.current.stop(se,()=>{M.current.start(se)})),se.target===se.currentTarget&&me()&&se.key===" "&&se.preventDefault(),S&&S(se),se.target===se.currentTarget&&me()&&se.key==="Enter"&&!c&&(se.preventDefault(),b&&b(se))}),te=Ct(se=>{f&&se.key===" "&&M.current&&G&&!se.defaultPrevented&&(Ie.current=!1,M.current.stop(se,()=>{M.current.pulsate(se)})),T&&T(se),b&&se.target===se.currentTarget&&me()&&se.key===" "&&!se.defaultPrevented&&b(se)});let oe=a;oe==="button"&&(j.href||j.to)&&(oe=g);const xe={};oe==="button"?(xe.type=$===void 0?"button":$,xe.disabled=c):(!j.href&&!j.to&&(xe.role="button"),c&&(xe["aria-disabled"]=c));const Oe=wt(n,W,N),Ve=m({},r,{centerRipple:l,component:a,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:f,tabIndex:L,focusVisible:G}),Te=KO(Ve);return v.jsxs(qO,m({as:oe,className:ne(Te.root,i),ownerState:Ve,onBlur:le,onClick:b,onContextMenu:de,onFocus:ge,onKeyDown:Se,onKeyUp:te,onMouseDown:ye,onMouseLeave:pe,onMouseUp:Y,onDragLeave:he,onTouchEnd:Z,onTouchMove:fe,onTouchStart:ee,ref:Oe,tabIndex:c?-1:L,type:$},xe,j,{children:[s,ce?v.jsx(VO,m({ref:D,center:l},O)):null]}))});function YO(e){return He("MuiIconButton",e)}const QO=Be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),XO=["edge","children","className","color","disabled","disableFocusRipple","size"],ZO=e=>{const{classes:t,disabled:n,color:r,edge:o,size:l}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Q(r)}`,o&&`edge${Q(o)}`,`size${Q(l)}`]};return we(s,YO,t)},JO=X(sl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(({theme:e,ownerState:t})=>m({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})`:pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return m({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&m({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":m({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dr=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:s,color:i="default",disabled:a=!1,disableFocusRipple:c=!1,size:u="medium"}=r,p=K(r,XO),f=m({},r,{edge:o,color:i,disabled:a,disableFocusRipple:c,size:u}),g=ZO(f);return v.jsx(JO,m({className:ne(g.root,s),centerRipple:!0,focusRipple:!c,disabled:a,ref:n},p,{ownerState:f,children:l}))}),eF=ot(v.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");function tF(e){return He("MuiTypography",e)}Be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:l,classes:s}=e,i={root:["root",l,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return we(i,tF,s)},oF=X("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${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>m({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Qb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sF=e=>lF[e]||e,sn=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=sF(r.color),l=Xd(m({},r,{color:o})),{align:s="inherit",className:i,component:a,gutterBottom:c=!1,noWrap:u=!1,paragraph:p=!1,variant:f="body1",variantMapping:g=Qb}=l,h=K(l,nF),b=m({},l,{align:s,color:o,className:i,component:a,gutterBottom:c,noWrap:u,paragraph:p,variant:f,variantMapping:g}),w=a||(p?"p":g[f]||Qb[f])||"span",C=rF(b);return v.jsx(oF,m({as:w,ref:n,ownerState:b,className:ne(C.root,i)},h))});function iF(e){return He("MuiAppBar",e)}Be("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const aF=["className","color","enableColorOnDark","position"],cF=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Q(t)}`,`position${Q(n)}`]};return we(o,iF,r)},Ac=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,uF=X(wr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`],t[`color${Q(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return m({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&&m({},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"&&m({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&m({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ac(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ac(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:Ac(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ac(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),sS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:l="primary",enableColorOnDark:s=!1,position:i="fixed"}=r,a=K(r,aF),c=m({},r,{color:l,position:i,enableColorOnDark:s}),u=cF(c);return v.jsx(uF,m({square:!0,component:"header",ownerState:c,elevation:4,className:ne(u.root,o,i==="fixed"&&"mui-fixed"),ref:n},a))});function Xb(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function iS(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:l,trim:s=!1}=e;return(i,{inputValue:a,getOptionLabel:c})=>{let u=s?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=Xb(u));const p=u?i.filter(f=>{let g=(l||c)(f);return n&&(g=g.toLowerCase()),t&&(g=Xb(g)),o==="start"?g.indexOf(u)===0:g.indexOf(u)>-1}):i;return typeof r=="number"?p.slice(0,r):p}}function zc(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const dF=iS(),Zb=5,pF=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},fF=[];function mF(e){const{unstable_isActiveElementInListbox:t=pF,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:l=!1,blurOnSelect:s=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?fF:null,disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:h=!1,disableListWrap:b=!1,filterOptions:w=dF,filterSelectedOptions:C=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:T=J=>{var U;return(U=J.label)!=null?U:J},groupBy:P,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:_=!1,inputValue:R,isOptionEqualToValue:F=(J,U)=>J===U,multiple:L=!1,onChange:O,onClose:I,onHighlightChange:$,onInputChange:j,onOpen:N,open:M,openOnFocus:D=!1,options:A,readOnly:H=!1,selectOnFocus:z=!e.freeSolo,value:W}=e,G=bt(E);let q=T;q=J=>{const U=T(J);return typeof U!="string"?String(U):U};const re=d.useRef(!1),ae=d.useRef(!0),ce=d.useRef(null),ue=d.useRef(null),[ye,de]=d.useState(null),[he,Y]=d.useState(-1),pe=o?0:-1,ee=d.useRef(pe),[Z,fe]=rl({controlled:W,default:u,name:c}),[le,ge]=rl({controlled:R,default:"",name:c,state:"inputValue"}),[me,Ie]=d.useState(!1),Se=d.useCallback((J,U)=>{if(!(L?Z.length<U.length:U!==null)&&!i)return;let ze;if(L)ze="";else if(U==null)ze="";else{const Je=q(U);ze=typeof Je=="string"?Je:""}le!==ze&&(ge(ze),j&&j(J,ze,"reset"))},[q,le,L,j,ge,i,Z]),[te,oe]=rl({controlled:M,default:!1,name:c,state:"open"}),[xe,Oe]=d.useState(!0),Ve=!L&&Z!=null&&le===q(Z),Te=te&&!H,se=Te?w(A.filter(J=>!(C&&(L?Z:[Z]).some(U=>U!==null&&F(J,U)))),{inputValue:Ve&&xe?"":le,getOptionLabel:q}):[],qe=Rg({filteredOptions:se,value:Z,inputValue:le});d.useEffect(()=>{const J=Z!==qe.value;me&&!J||y&&!J||Se(null,Z)},[Z,Se,me,qe.value,y]);const tt=te&&se.length>0&&!H,Xe=Ct(J=>{J===-1?ce.current.focus():ye.querySelector(`[data-tag-index="${J}"]`).focus()});d.useEffect(()=>{L&&he>Z.length-1&&(Y(-1),Xe(-1))},[Z,L,he,Xe]);function be(J,U){if(!ue.current||J<0||J>=se.length)return-1;let ke=J;for(;;){const ze=ue.current.querySelector(`[data-option-index="${ke}"]`),Je=h?!1:!ze||ze.disabled||ze.getAttribute("aria-disabled")==="true";if(ze&&ze.hasAttribute("tabindex")&&!Je)return ke;if(U==="next"?ke=(ke+1)%se.length:ke=(ke-1+se.length)%se.length,ke===J)return-1}}const je=Ct(({event:J,index:U,reason:ke="auto"})=>{if(ee.current=U,U===-1?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant",`${G}-option-${U}`),$&&$(J,U===-1?null:se[U],ke),!ue.current)return;const ze=ue.current.querySelector(`[role="option"].${n}-focused`);ze&&(ze.classList.remove(`${n}-focused`),ze.classList.remove(`${n}-focusVisible`));let Je=ue.current;if(ue.current.getAttribute("role")!=="listbox"&&(Je=ue.current.parentElement.querySelector('[role="listbox"]')),!Je)return;if(U===-1){Je.scrollTop=0;return}const _e=ue.current.querySelector(`[data-option-index="${U}"]`);if(_e&&(_e.classList.add(`${n}-focused`),ke==="keyboard"&&_e.classList.add(`${n}-focusVisible`),Je.scrollHeight>Je.clientHeight&&ke!=="mouse"&&ke!=="touch")){const lt=_e,$n=Je.clientHeight+Je.scrollTop,Si=lt.offsetTop+lt.offsetHeight;Si>$n?Je.scrollTop=Si-Je.clientHeight:lt.offsetTop-lt.offsetHeight*(P?1.3:0)<Je.scrollTop&&(Je.scrollTop=lt.offsetTop-lt.offsetHeight*(P?1.3:0))}}),ie=Ct(({event:J,diff:U,direction:ke="next",reason:ze="auto"})=>{if(!Te)return;const _e=be((()=>{const lt=se.length-1;if(U==="reset")return pe;if(U==="start")return 0;if(U==="end")return lt;const $n=ee.current+U;return $n<0?$n===-1&&_?-1:b&&ee.current!==-1||Math.abs(U)>1?0:lt:$n>lt?$n===lt+1&&_?-1:b||Math.abs(U)>1?lt:0:$n})(),ke);if(je({index:_e,reason:ze,event:J}),r&&U!=="reset")if(_e===-1)ce.current.value=le;else{const lt=q(se[_e]);ce.current.value=lt,lt.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&ce.current.setSelectionRange(le.length,lt.length)}}),Ee=()=>{const J=(U,ke)=>{const ze=U?q(U):"",Je=ke?q(ke):"";return ze===Je};if(ee.current!==-1&&qe.filteredOptions&&qe.filteredOptions.length!==se.length&&qe.inputValue===le&&(L?Z.length===qe.value.length&&qe.value.every((U,ke)=>q(Z[ke])===q(U)):J(qe.value,Z))){const U=qe.filteredOptions[ee.current];if(U)return zc(se,ke=>q(ke)===q(U))}return-1},Ae=d.useCallback(()=>{if(!Te)return;const J=Ee();if(J!==-1){ee.current=J;return}const U=L?Z[0]:Z;if(se.length===0||U==null){ie({diff:"reset"});return}if(ue.current){if(U!=null){const ke=se[ee.current];if(L&&ke&&zc(Z,Je=>F(ke,Je))!==-1)return;const ze=zc(se,Je=>F(Je,U));ze===-1?ie({diff:"reset"}):je({index:ze});return}if(ee.current>=se.length-1){je({index:se.length-1});return}je({index:ee.current})}},[se.length,L?!1:Z,C,ie,je,Te,le,L]),Ne=Ct(J=>{Na(ue,J),J&&Ae()});d.useEffect(()=>{Ae()},[Ae]);const Ye=J=>{te||(oe(!0),Oe(!0),N&&N(J))},$e=(J,U)=>{te&&(oe(!1),I&&I(J,U))},Ce=(J,U,ke,ze)=>{if(L){if(Z.length===U.length&&Z.every((Je,_e)=>Je===U[_e]))return}else if(Z===U)return;O&&O(J,U,ke,ze),fe(U)},Me=d.useRef(!1),We=(J,U,ke="selectOption",ze="options")=>{let Je=ke,_e=U;if(L){_e=Array.isArray(Z)?Z.slice():[];const lt=zc(_e,$n=>F(U,$n));lt===-1?_e.push(U):ze!=="freeSolo"&&(_e.splice(lt,1),Je="removeOption")}Se(J,_e),Ce(J,_e,Je,{option:U}),!f&&(!J||!J.ctrlKey&&!J.metaKey)&&$e(J,Je),(s===!0||s==="touch"&&Me.current||s==="mouse"&&!Me.current)&&ce.current.blur()};function Qe(J,U){if(J===-1)return-1;let ke=J;for(;;){if(U==="next"&&ke===Z.length||U==="previous"&&ke===-1)return-1;const ze=ye.querySelector(`[data-tag-index="${ke}"]`);if(!ze||!ze.hasAttribute("tabindex")||ze.disabled||ze.getAttribute("aria-disabled")==="true")ke+=U==="next"?1:-1;else return ke}}const Pe=(J,U)=>{if(!L)return;le===""&&$e(J,"toggleInput");let ke=he;he===-1?le===""&&U==="previous"&&(ke=Z.length-1):(ke+=U==="next"?1:-1,ke<0&&(ke=0),ke===Z.length&&(ke=-1)),ke=Qe(ke,U),Y(ke),Xe(ke)},Ge=J=>{re.current=!0,ge(""),j&&j(J,"","clear"),Ce(J,L?[]:null,"clear")},rt=J=>U=>{if(J.onKeyDown&&J.onKeyDown(U),!U.defaultMuiPrevented&&(he!==-1&&["ArrowLeft","ArrowRight"].indexOf(U.key)===-1&&(Y(-1),Xe(-1)),U.which!==229))switch(U.key){case"Home":Te&&k&&(U.preventDefault(),ie({diff:"start",direction:"next",reason:"keyboard",event:U}));break;case"End":Te&&k&&(U.preventDefault(),ie({diff:"end",direction:"previous",reason:"keyboard",event:U}));break;case"PageUp":U.preventDefault(),ie({diff:-Zb,direction:"previous",reason:"keyboard",event:U}),Ye(U);break;case"PageDown":U.preventDefault(),ie({diff:Zb,direction:"next",reason:"keyboard",event:U}),Ye(U);break;case"ArrowDown":U.preventDefault(),ie({diff:1,direction:"next",reason:"keyboard",event:U}),Ye(U);break;case"ArrowUp":U.preventDefault(),ie({diff:-1,direction:"previous",reason:"keyboard",event:U}),Ye(U);break;case"ArrowLeft":Pe(U,"previous");break;case"ArrowRight":Pe(U,"next");break;case"Enter":if(ee.current!==-1&&Te){const ke=se[ee.current],ze=x?x(ke):!1;if(U.preventDefault(),ze)return;We(U,ke,"selectOption"),r&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else y&&le!==""&&Ve===!1&&(L&&U.preventDefault(),We(U,le,"createOption","freeSolo"));break;case"Escape":Te?(U.preventDefault(),U.stopPropagation(),$e(U,"escape")):a&&(le!==""||L&&Z.length>0)&&(U.preventDefault(),U.stopPropagation(),Ge(U));break;case"Backspace":if(L&&!H&&le===""&&Z.length>0){const ke=he===-1?Z.length-1:he,ze=Z.slice();ze.splice(ke,1),Ce(U,ze,"removeOption",{option:Z[ke]})}break;case"Delete":if(L&&!H&&le===""&&Z.length>0&&he!==-1){const ke=he,ze=Z.slice();ze.splice(ke,1),Ce(U,ze,"removeOption",{option:Z[ke]})}break}},_t=J=>{Ie(!0),D&&!re.current&&Ye(J)},dt=J=>{if(t(ue)){ce.current.focus();return}Ie(!1),ae.current=!0,re.current=!1,l&&ee.current!==-1&&Te?We(J,se[ee.current],"blur"):l&&y&&le!==""?We(J,le,"blur","freeSolo"):i&&Se(J,Z),$e(J,"blur")},st=J=>{const U=J.target.value;le!==U&&(ge(U),Oe(!1),j&&j(J,U,"input")),U===""?!p&&!L&&Ce(J,null,"clear"):Ye(J)},ut=J=>{const U=Number(J.currentTarget.getAttribute("data-option-index"));ee.current!==U&&je({event:J,index:U,reason:"mouse"})},Et=J=>{je({event:J,index:Number(J.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Kt=J=>{const U=Number(J.currentTarget.getAttribute("data-option-index"));We(J,se[U],"selectOption"),Me.current=!1},pn=J=>U=>{const ke=Z.slice();ke.splice(J,1),Ce(U,ke,"removeOption",{option:Z[J]})},fn=J=>{te?$e(J,"toggleInput"):Ye(J)},mn=J=>{J.currentTarget.contains(J.target)&&J.target.getAttribute("id")!==G&&J.preventDefault()},Pr=J=>{J.currentTarget.contains(J.target)&&(ce.current.focus(),z&&ae.current&&ce.current.selectionEnd-ce.current.selectionStart===0&&ce.current.select(),ae.current=!1)},Bn=J=>{!g&&(le===""||!te)&&fn(J)};let xn=y&&le.length>0;xn=xn||(L?Z.length>0:Z!==null);let kr=se;return P&&(kr=se.reduce((J,U,ke)=>{const ze=P(U);return J.length>0&&J[J.length-1].group===ze?J[J.length-1].options.push(U):J.push({key:ke,index:ke,group:ze,options:[U]}),J},[])),g&&me&&dt(),{getRootProps:(J={})=>m({"aria-owns":tt?`${G}-listbox`:null},J,{onKeyDown:rt(J),onMouseDown:mn,onClick:Pr}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:le,onBlur:dt,onFocus:_t,onChange:st,onMouseDown:Bn,"aria-activedescendant":Te?"":null,"aria-autocomplete":r?"both":"list","aria-controls":tt?`${G}-listbox`:void 0,"aria-expanded":tt,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ge}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fn}),getTagProps:({index:J})=>m({key:J,"data-tag-index":J,tabIndex:-1},!H&&{onDelete:pn(J)}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:Ne,onMouseDown:J=>{J.preventDefault()}}),getOptionProps:({index:J,option:U})=>{var ke;const ze=(L?Z:[Z]).some(_e=>_e!=null&&F(U,_e)),Je=x?x(U):!1;return{key:(ke=S==null?void 0:S(U))!=null?ke:q(U),tabIndex:-1,role:"option",id:`${G}-option-${J}`,onMouseMove:ut,onClick:Kt,onTouchStart:Et,"data-option-index":J,"aria-disabled":Je,"aria-selected":ze}},id:G,inputValue:le,value:Z,dirty:xn,expanded:Te&&ye,popupOpen:Te,focused:me||he!==-1,anchorEl:ye,setAnchorEl:de,focusedTag:he,groupedOptions:kr}}var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0});var aS=Ag.default=void 0,hF=vF(d),gF=tS;function cS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cS=function(r){return r?n:t})(e)}function vF(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}function yF(e){return Object.keys(e).length===0}function bF(e=null){const t=hF.useContext(gF.ThemeContext);return!t||yF(t)?e:t}aS=Ag.default=bF;var Ln="top",yr="bottom",br="right",Nn="left",zg="auto",cc=[Ln,yr,br,Nn],Xs="start",Ba="end",CF="clippingParents",uS="viewport",Di="popper",xF="reference",Jb=cc.reduce(function(e,t){return e.concat([t+"-"+Xs,t+"-"+Ba])},[]),dS=[].concat(cc,[zg]).reduce(function(e,t){return e.concat([t,t+"-"+Xs,t+"-"+Ba])},[]),wF="beforeRead",SF="read",PF="afterRead",kF="beforeMain",EF="main",IF="afterMain",MF="beforeWrite",$F="write",RF="afterWrite",TF=[wF,SF,PF,kF,EF,IF,MF,$F,RF];function lo(e){return e?(e.nodeName||"").toLowerCase():null}function Jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bl(e){var t=Jn(e).Element;return e instanceof t||e instanceof Element}function mr(e){var t=Jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Hg(e){if(typeof ShadowRoot>"u")return!1;var t=Jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!mr(l)||!lo(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?l.removeAttribute(s):l.setAttribute(s,i===!0?"":i)}))})}function FF(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],l=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(a,c){return a[c]="",a},{});!mr(o)||!lo(o)||(Object.assign(o.style,i),Object.keys(l).forEach(function(a){o.removeAttribute(a)}))})}}const DF={name:"applyStyles",enabled:!0,phase:"write",fn:OF,effect:FF,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Rl=Math.max,Qu=Math.min,Zs=Math.round;function zm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pS(){return!/^((?!chrome|android).)*safari/i.test(zm())}function Js(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,l=1;t&&mr(e)&&(o=e.offsetWidth>0&&Zs(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Zs(r.height)/e.offsetHeight||1);var s=Bl(e)?Jn(e):window,i=s.visualViewport,a=!pS()&&n,c=(r.left+(a&&i?i.offsetLeft:0))/o,u=(r.top+(a&&i?i.offsetTop:0))/l,p=r.width/o,f=r.height/l;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function Bg(e){var t=Js(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 fS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Io(e){return Jn(e).getComputedStyle(e)}function jF(e){return["table","td","th"].indexOf(lo(e))>=0}function dl(e){return((Bl(e)?e.ownerDocument:e.document)||window.document).documentElement}function pp(e){return lo(e)==="html"?e:e.assignedSlot||e.parentNode||(Hg(e)?e.host:null)||dl(e)}function e0(e){return!mr(e)||Io(e).position==="fixed"?null:e.offsetParent}function _F(e){var t=/firefox/i.test(zm()),n=/Trident/i.test(zm());if(n&&mr(e)){var r=Io(e);if(r.position==="fixed")return null}var o=pp(e);for(Hg(o)&&(o=o.host);mr(o)&&["html","body"].indexOf(lo(o))<0;){var l=Io(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function uc(e){for(var t=Jn(e),n=e0(e);n&&jF(n)&&Io(n).position==="static";)n=e0(n);return n&&(lo(n)==="html"||lo(n)==="body"&&Io(n).position==="static")?t:n||_F(e)||t}function Vg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return Rl(e,Qu(t,n))}function LF(e,t,n){var r=ua(e,t,n);return r>n?n:r}function mS(){return{top:0,right:0,bottom:0,left:0}}function hS(e){return Object.assign({},mS(),e)}function gS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var NF=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hS(typeof t!="number"?t:gS(t,cc))};function AF(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,s=n.modifiersData.popperOffsets,i=to(n.placement),a=Vg(i),c=[Nn,br].indexOf(i)>=0,u=c?"height":"width";if(!(!l||!s)){var p=NF(o.padding,n),f=Bg(l),g=a==="y"?Ln:Nn,h=a==="y"?yr:br,b=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],w=s[a]-n.rects.reference[a],C=uc(l),y=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,x=b/2-w/2,S=p[g],T=y-f[u]-p[h],P=y/2-f[u]/2+x,k=ua(S,P,T),E=a;n.modifiersData[r]=(t={},t[E]=k,t.centerOffset=k-P,t)}}function zF(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)||fS(t.elements.popper,o)&&(t.elements.arrow=o))}const HF={name:"arrow",enabled:!0,phase:"main",fn:AF,effect:zF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var BF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VF(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Zs(n*o)/o||0,y:Zs(r*o)/o||0}}function t0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,s=e.offsets,i=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=s.x,g=f===void 0?0:f,h=s.y,b=h===void 0?0:h,w=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var C=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Nn,S=Ln,T=window;if(c){var P=uc(n),k="clientHeight",E="clientWidth";if(P===Jn(n)&&(P=dl(n),Io(P).position!=="static"&&i==="absolute"&&(k="scrollHeight",E="scrollWidth")),P=P,o===Ln||(o===Nn||o===br)&&l===Ba){S=yr;var _=p&&P===T&&T.visualViewport?T.visualViewport.height:P[k];b-=_-r.height,b*=a?1:-1}if(o===Nn||(o===Ln||o===yr)&&l===Ba){x=br;var R=p&&P===T&&T.visualViewport?T.visualViewport.width:P[E];g-=R-r.width,g*=a?1:-1}}var F=Object.assign({position:i},c&&BF),L=u===!0?VF({x:g,y:b},Jn(n)):{x:g,y:b};if(g=L.x,b=L.y,a){var O;return Object.assign({},F,(O={},O[S]=y?"0":"",O[x]=C?"0":"",O.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",O))}return Object.assign({},F,(t={},t[S]=y?b+"px":"",t[x]=C?g+"px":"",t.transform="",t))}function GF(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,l=n.adaptive,s=l===void 0?!0:l,i=n.roundOffsets,a=i===void 0?!0:i,c={placement:to(t.placement),variation:ei(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,t0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const WF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GF,data:{}};var Hc={passive:!0};function UF(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,a=Jn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(u){u.addEventListener("scroll",n.update,Hc)}),i&&a.addEventListener("resize",n.update,Hc),function(){l&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Hc)}),i&&a.removeEventListener("resize",n.update,Hc)}}const KF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UF,data:{}};var qF={left:"right",right:"left",bottom:"top",top:"bottom"};function fu(e){return e.replace(/left|right|bottom|top/g,function(t){return qF[t]})}var YF={start:"end",end:"start"};function n0(e){return e.replace(/start|end/g,function(t){return YF[t]})}function Gg(e){var t=Jn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wg(e){return Js(dl(e)).left+Gg(e).scrollLeft}function QF(e,t){var n=Jn(e),r=dl(e),o=n.visualViewport,l=r.clientWidth,s=r.clientHeight,i=0,a=0;if(o){l=o.width,s=o.height;var c=pS();(c||!c&&t==="fixed")&&(i=o.offsetLeft,a=o.offsetTop)}return{width:l,height:s,x:i+Wg(e),y:a}}function XF(e){var t,n=dl(e),r=Gg(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=Rl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Rl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Wg(e),a=-r.scrollTop;return Io(o||n).direction==="rtl"&&(i+=Rl(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:s,x:i,y:a}}function Ug(e){var t=Io(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function vS(e){return["html","body","#document"].indexOf(lo(e))>=0?e.ownerDocument.body:mr(e)&&Ug(e)?e:vS(pp(e))}function da(e,t){var n;t===void 0&&(t=[]);var r=vS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=Jn(r),s=o?[l].concat(l.visualViewport||[],Ug(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(da(pp(s)))}function Hm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZF(e,t){var n=Js(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 r0(e,t,n){return t===uS?Hm(QF(e,n)):Bl(t)?ZF(t,n):Hm(XF(dl(e)))}function JF(e){var t=da(pp(e)),n=["absolute","fixed"].indexOf(Io(e).position)>=0,r=n&&mr(e)?uc(e):e;return Bl(r)?t.filter(function(o){return Bl(o)&&fS(o,r)&&lo(o)!=="body"}):[]}function eD(e,t,n,r){var o=t==="clippingParents"?JF(e):[].concat(t),l=[].concat(o,[n]),s=l[0],i=l.reduce(function(a,c){var u=r0(e,c,r);return a.top=Rl(u.top,a.top),a.right=Qu(u.right,a.right),a.bottom=Qu(u.bottom,a.bottom),a.left=Rl(u.left,a.left),a},r0(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function yS(e){var t=e.reference,n=e.element,r=e.placement,o=r?to(r):null,l=r?ei(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,a;switch(o){case Ln:a={x:s,y:t.y-n.height};break;case yr:a={x:s,y:t.y+t.height};break;case br:a={x:t.x+t.width,y:i};break;case Nn:a={x:t.x-n.width,y:i};break;default:a={x:t.x,y:t.y}}var c=o?Vg(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(l){case Xs:a[c]=a[c]-(t[u]/2-n[u]/2);break;case Ba:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function Va(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,l=n.strategy,s=l===void 0?e.strategy:l,i=n.boundary,a=i===void 0?CF:i,c=n.rootBoundary,u=c===void 0?uS:c,p=n.elementContext,f=p===void 0?Di:p,g=n.altBoundary,h=g===void 0?!1:g,b=n.padding,w=b===void 0?0:b,C=hS(typeof w!="number"?w:gS(w,cc)),y=f===Di?xF:Di,x=e.rects.popper,S=e.elements[h?y:f],T=eD(Bl(S)?S:S.contextElement||dl(e.elements.popper),a,u,s),P=Js(e.elements.reference),k=yS({reference:P,element:x,placement:o}),E=Hm(Object.assign({},x,k)),_=f===Di?E:P,R={top:T.top-_.top+C.top,bottom:_.bottom-T.bottom+C.bottom,left:T.left-_.left+C.left,right:_.right-T.right+C.right},F=e.modifiersData.offset;if(f===Di&&F){var L=F[o];Object.keys(R).forEach(function(O){var I=[br,yr].indexOf(O)>=0?1:-1,$=[Ln,yr].indexOf(O)>=0?"y":"x";R[O]+=L[$]*I})}return R}function tD(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,s=n.padding,i=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?dS:a,u=ei(r),p=u?i?Jb:Jb.filter(function(h){return ei(h)===u}):cc,f=p.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=p);var g=f.reduce(function(h,b){return h[b]=Va(e,{placement:b,boundary:o,rootBoundary:l,padding:s})[to(b)],h},{});return Object.keys(g).sort(function(h,b){return g[h]-g[b]})}function nD(e){if(to(e)===zg)return[];var t=fu(e);return[n0(e),t,n0(t)]}function rD(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,a=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,b=n.allowedAutoPlacements,w=t.options.placement,C=to(w),y=C===w,x=a||(y||!h?[fu(w)]:nD(w)),S=[w].concat(x).reduce(function(G,q){return G.concat(to(q)===zg?tD(t,{placement:q,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:b}):q)},[]),T=t.rects.reference,P=t.rects.popper,k=new Map,E=!0,_=S[0],R=0;R<S.length;R++){var F=S[R],L=to(F),O=ei(F)===Xs,I=[Ln,yr].indexOf(L)>=0,$=I?"width":"height",j=Va(t,{placement:F,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),N=I?O?br:Nn:O?yr:Ln;T[$]>P[$]&&(N=fu(N));var M=fu(N),D=[];if(l&&D.push(j[L]<=0),i&&D.push(j[N]<=0,j[M]<=0),D.every(function(G){return G})){_=F,E=!1;break}k.set(F,D)}if(E)for(var A=h?3:1,H=function(q){var re=S.find(function(ae){var ce=k.get(ae);if(ce)return ce.slice(0,q).every(function(ue){return ue})});if(re)return _=re,"break"},z=A;z>0;z--){var W=H(z);if(W==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const oD={name:"flip",enabled:!0,phase:"main",fn:rD,requiresIfExists:["offset"],data:{_skip:!1}};function o0(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 l0(e){return[Ln,br,yr,Nn].some(function(t){return e[t]>=0})}function lD(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,s=Va(t,{elementContext:"reference"}),i=Va(t,{altBoundary:!0}),a=o0(s,r),c=o0(i,o,l),u=l0(a),p=l0(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const sD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lD};function iD(e,t,n){var r=to(e),o=[Nn,Ln].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=l[0],i=l[1];return s=s||0,i=(i||0)*o,[Nn,br].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function aD(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=o===void 0?[0,0]:o,s=dS.reduce(function(u,p){return u[p]=iD(p,t.rects,l),u},{}),i=s[t.placement],a=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const cD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aD};function uD(e){var t=e.state,n=e.name;t.modifiersData[n]=yS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dD={name:"popperOffsets",enabled:!0,phase:"read",fn:uD,data:{}};function pD(e){return e==="x"?"y":"x"}function fD(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,g=f===void 0?!0:f,h=n.tetherOffset,b=h===void 0?0:h,w=Va(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:u}),C=to(t.placement),y=ei(t.placement),x=!y,S=Vg(C),T=pD(S),P=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,_=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(P){if(l){var O,I=S==="y"?Ln:Nn,$=S==="y"?yr:br,j=S==="y"?"height":"width",N=P[S],M=N+w[I],D=N-w[$],A=g?-E[j]/2:0,H=y===Xs?k[j]:E[j],z=y===Xs?-E[j]:-k[j],W=t.elements.arrow,G=g&&W?Bg(W):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mS(),re=q[I],ae=q[$],ce=ua(0,k[j],G[j]),ue=x?k[j]/2-A-ce-re-R.mainAxis:H-ce-re-R.mainAxis,ye=x?-k[j]/2+A+ce+ae+R.mainAxis:z+ce+ae+R.mainAxis,de=t.elements.arrow&&uc(t.elements.arrow),he=de?S==="y"?de.clientTop||0:de.clientLeft||0:0,Y=(O=F==null?void 0:F[S])!=null?O:0,pe=N+ue-Y-he,ee=N+ye-Y,Z=ua(g?Qu(M,pe):M,N,g?Rl(D,ee):D);P[S]=Z,L[S]=Z-N}if(i){var fe,le=S==="x"?Ln:Nn,ge=S==="x"?yr:br,me=P[T],Ie=T==="y"?"height":"width",Se=me+w[le],te=me-w[ge],oe=[Ln,Nn].indexOf(C)!==-1,xe=(fe=F==null?void 0:F[T])!=null?fe:0,Oe=oe?Se:me-k[Ie]-E[Ie]-xe+R.altAxis,Ve=oe?me+k[Ie]+E[Ie]-xe-R.altAxis:te,Te=g&&oe?LF(Oe,me,Ve):ua(g?Oe:Se,me,g?Ve:te);P[T]=Te,L[T]=Te-me}t.modifiersData[r]=L}}const mD={name:"preventOverflow",enabled:!0,phase:"main",fn:fD,requiresIfExists:["offset"]};function hD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gD(e){return e===Jn(e)||!mr(e)?Gg(e):hD(e)}function vD(e){var t=e.getBoundingClientRect(),n=Zs(t.width)/e.offsetWidth||1,r=Zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yD(e,t,n){n===void 0&&(n=!1);var r=mr(t),o=mr(t)&&vD(t),l=dl(t),s=Js(e,o,n),i={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((lo(t)!=="body"||Ug(l))&&(i=gD(t)),mr(t)?(a=Js(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Wg(l))),{x:s.left+i.scrollLeft-a.x,y:s.top+i.scrollTop-a.y,width:s.width,height:s.height}}function bD(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var s=[].concat(l.requires||[],l.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var a=t.get(i);a&&o(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),r}function CD(e){var t=bD(e);return TF.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wD(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 s0={placement:"bottom",modifiers:[],strategy:"absolute"};function i0(){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 SD(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,l=o===void 0?s0:o;return function(i,a,c){c===void 0&&(c=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},s0,l),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},p=[],f=!1,g={state:u,setOptions:function(C){var y=typeof C=="function"?C(u.options):C;b(),u.options=Object.assign({},l,u.options,y),u.scrollParents={reference:Bl(i)?da(i):i.contextElement?da(i.contextElement):[],popper:da(a)};var x=CD(wD([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(S){return S.enabled}),h(),g.update()},forceUpdate:function(){if(!f){var C=u.elements,y=C.reference,x=C.popper;if(i0(y,x)){u.rects={reference:yD(y,uc(x),u.options.strategy==="fixed"),popper:Bg(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var T=u.orderedModifiers[S],P=T.fn,k=T.options,E=k===void 0?{}:k,_=T.name;typeof P=="function"&&(u=P({state:u,options:E,name:_,instance:g})||u)}}}},update:xD(function(){return new Promise(function(w){g.forceUpdate(),w(u)})}),destroy:function(){b(),f=!0}};if(!i0(i,a))return g;g.setOptions(c).then(function(w){!f&&c.onFirstUpdate&&c.onFirstUpdate(w)});function h(){u.orderedModifiers.forEach(function(w){var C=w.name,y=w.options,x=y===void 0?{}:y,S=w.effect;if(typeof S=="function"){var T=S({state:u,name:C,instance:g,options:x}),P=function(){};p.push(T||P)}})}function b(){p.forEach(function(w){return w()}),p=[]}return g}}var PD=[KF,dD,WF,DF,cD,oD,mD,HF,sD],kD=SD({defaultModifiers:PD});function ED(e){return typeof e=="function"?e():e}const bS=d.forwardRef(function(t,n){const{children:r,container:o,disablePortal:l=!1}=t,[s,i]=d.useState(null),a=wt(d.isValidElement(r)?Yl(r):null,n);if(vt(()=>{l||i(ED(o)||document.body)},[o,l]),vt(()=>{if(s&&!l)return Na(n,s),()=>{Na(n,null)}},[n,s,l]),l){if(d.isValidElement(r)){const c={ref:a};return d.cloneElement(r,c)}return v.jsx(d.Fragment,{children:r})}return v.jsx(d.Fragment,{children:s&&nc.createPortal(r,s)})});function ID(e){return He("MuiPopper",e)}Be("MuiPopper",["root"]);const MD=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],$D=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function RD(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 Bm(e){return typeof e=="function"?e():e}function TD(e){return e.nodeType!==void 0}const OD=e=>{const{classes:t}=e;return we({root:["root"]},ID,t)},FD={},DD=d.forwardRef(function(t,n){var r;const{anchorEl:o,children:l,direction:s,disablePortal:i,modifiers:a,open:c,placement:u,popperOptions:p,popperRef:f,slotProps:g={},slots:h={},TransitionProps:b}=t,w=K(t,MD),C=d.useRef(null),y=wt(C,n),x=d.useRef(null),S=wt(x,f),T=d.useRef(S);vt(()=>{T.current=S},[S]),d.useImperativeHandle(f,()=>x.current,[]);const P=RD(u,s),[k,E]=d.useState(P),[_,R]=d.useState(Bm(o));d.useEffect(()=>{x.current&&x.current.forceUpdate()}),d.useEffect(()=>{o&&R(Bm(o))},[o]),vt(()=>{if(!_||!c)return;const $=M=>{E(M.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{$(M)}}];a!=null&&(j=j.concat(a)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const N=kD(_,C.current,m({placement:P},p,{modifiers:j}));return T.current(N),()=>{N.destroy(),T.current(null)}},[_,i,a,c,p,P]);const F={placement:k};b!==null&&(F.TransitionProps=b);const L=OD(t),O=(r=h.root)!=null?r:"div",I=Zn({elementType:O,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:L.root});return v.jsx(O,m({},I,{children:typeof l=="function"?l(F):l}))}),jD=d.forwardRef(function(t,n){const{anchorEl:r,children:o,container:l,direction:s="ltr",disablePortal:i=!1,keepMounted:a=!1,modifiers:c,open:u,placement:p="bottom",popperOptions:f=FD,popperRef:g,style:h,transition:b=!1,slotProps:w={},slots:C={}}=t,y=K(t,$D),[x,S]=d.useState(!0),T=()=>{S(!1)},P=()=>{S(!0)};if(!a&&!u&&(!b||x))return null;let k;if(l)k=l;else if(r){const R=Bm(r);k=R&&TD(R)?jt(R).body:jt(null).body}const E=!u&&a&&(!b||x)?"none":void 0,_=b?{in:u,onEnter:T,onExited:P}:void 0;return v.jsx(bS,{disablePortal:i,container:k,children:v.jsx(DD,m({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:b?!x:u,placement:p,popperOptions:f,popperRef:g,slotProps:w,slots:C},y,{style:m({position:"fixed",top:0,left:0,display:E},h),TransitionProps:_,children:o}))})}),_D=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],LD=X(jD,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ql=d.forwardRef(function(t,n){var r;const o=aS(),l=Ke({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:c,container:u,disablePortal:p,keepMounted:f,modifiers:g,open:h,placement:b,popperOptions:w,popperRef:C,transition:y,slots:x,slotProps:S}=l,T=K(l,_D),P=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,k=m({anchorEl:s,container:u,disablePortal:p,keepMounted:f,modifiers:g,open:h,placement:b,popperOptions:w,popperRef:C,transition:y},T);return v.jsx(LD,m({as:i,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:S??c},k,{ref:n}))});function ND(e){return He("MuiListSubheader",e)}Be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const AD=["className","color","component","disableGutters","disableSticky","inset"],zD=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:l}=e,s={root:["root",n!=="default"&&`color${Q(n)}`,!r&&"gutters",o&&"inset",!l&&"sticky"]};return we(s,ND,t)},HD=X("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>m({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})),CS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:l="default",component:s="li",disableGutters:i=!1,disableSticky:a=!1,inset:c=!1}=r,u=K(r,AD),p=m({},r,{color:l,component:s,disableGutters:i,disableSticky:a,inset:c}),f=zD(p);return v.jsx(HD,m({as:s,className:ne(f.root,o),ref:n,ownerState:p},u))});CS.muiSkipListHighlight=!0;const BD=ot(v.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 VD(e){return He("MuiChip",e)}const mt=Be("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),GD=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],WD=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:l,onDelete:s,clickable:i,variant:a}=e,c={root:["root",a,n&&"disabled",`size${Q(r)}`,`color${Q(o)}`,i&&"clickable",i&&`clickableColor${Q(o)}`,s&&"deletable",s&&`deletableColor${Q(o)}`,`${a}${Q(o)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(o)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(l)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(o)}`,`deleteIcon${Q(a)}Color${Q(o)}`]};return we(c,VD,t)},UD=X("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:l,onDelete:s,size:i,variant:a}=n;return[{[`& .${mt.avatar}`]:t.avatar},{[`& .${mt.avatar}`]:t[`avatar${Q(i)}`]},{[`& .${mt.avatar}`]:t[`avatarColor${Q(r)}`]},{[`& .${mt.icon}`]:t.icon},{[`& .${mt.icon}`]:t[`icon${Q(i)}`]},{[`& .${mt.icon}`]:t[`iconColor${Q(o)}`]},{[`& .${mt.deleteIcon}`]:t.deleteIcon},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${Q(i)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIconColor${Q(r)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${Q(a)}Color${Q(r)}`]},t.root,t[`size${Q(i)}`],t[`color${Q(r)}`],l&&t.clickable,l&&r!=="default"&&t[`clickableColor${Q(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Q(r)}`],t[a],t[`${a}${Q(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return m({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mt.icon}`]:m({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&m({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mt.deleteIcon}`]:m({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:pt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:pt(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&&{[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>m({},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}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(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, &.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>m({},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]}`,[`&.${mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mt.avatar}`]:{marginLeft:4},[`& .${mt.avatarSmall}`]:{marginLeft:2},[`& .${mt.icon}`]:{marginLeft:4},[`& .${mt.iconSmall}`]:{marginLeft:2},[`& .${mt.deleteIcon}`]:{marginRight:5},[`& .${mt.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)`:pt(e.palette[t.color].main,.7)}`,[`&.${mt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:pt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),KD=X("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Q(r)}`]]}})(({ownerState:e})=>m({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function a0(e){return e.key==="Backspace"||e.key==="Delete"}const Kg=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:l,clickable:s,color:i="default",component:a,deleteIcon:c,disabled:u=!1,icon:p,label:f,onClick:g,onDelete:h,onKeyDown:b,onKeyUp:w,size:C="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:S=!1}=r,T=K(r,GD),P=d.useRef(null),k=wt(P,n),E=D=>{D.stopPropagation(),h&&h(D)},_=D=>{D.currentTarget===D.target&&a0(D)&&D.preventDefault(),b&&b(D)},R=D=>{D.currentTarget===D.target&&(h&&a0(D)?h(D):D.key==="Escape"&&P.current&&P.current.blur()),w&&w(D)},F=s!==!1&&g?!0:s,L=F||h?sl:a||"div",O=m({},r,{component:L,disabled:u,size:C,color:i,iconColor:d.isValidElement(p)&&p.props.color||i,onDelete:!!h,clickable:F,variant:y}),I=WD(O),$=L===sl?m({component:a||"div",focusVisibleClassName:I.focusVisible},h&&{disableRipple:!0}):{};let j=null;h&&(j=c&&d.isValidElement(c)?d.cloneElement(c,{className:ne(c.props.className,I.deleteIcon),onClick:E}):v.jsx(BD,{className:ne(I.deleteIcon),onClick:E}));let N=null;o&&d.isValidElement(o)&&(N=d.cloneElement(o,{className:ne(I.avatar,o.props.className)}));let M=null;return p&&d.isValidElement(p)&&(M=d.cloneElement(p,{className:ne(I.icon,p.props.className)})),v.jsxs(UD,m({as:L,className:ne(I.root,l),disabled:F&&u?!0:void 0,onClick:g,onKeyDown:_,onKeyUp:R,ref:k,tabIndex:S&&u?-1:x,ownerState:O},$,T,{children:[N||M,v.jsx(KD,{className:ne(I.label),ownerState:O,children:f}),j]}))}),qD=["onChange","maxRows","minRows","style","value"];function Bc(e){return parseInt(e,10)||0}const YD={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function QD(e){for(const t in e)return!1;return!0}function c0(e){return QD(e)||e.outerHeightStyle===0&&!e.overflowing}const XD=d.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:l=1,style:s,value:i}=t,a=K(t,qD),{current:c}=d.useRef(i!=null),u=d.useRef(null),p=wt(n,u),f=d.useRef(null),g=d.useRef(null),h=d.useCallback(()=>{const x=u.current,S=g.current;if(!x||!S)return;const P=Hr(x).getComputedStyle(x);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=P.width,S.value=x.value||t.placeholder||"x",S.value.slice(-1)===`
129
- `&&(S.value+=" ");const k=P.boxSizing,E=Bc(P.paddingBottom)+Bc(P.paddingTop),_=Bc(P.borderBottomWidth)+Bc(P.borderTopWidth),R=S.scrollHeight;S.value="x";const F=S.scrollHeight;let L=R;l&&(L=Math.max(Number(l)*F,L)),o&&(L=Math.min(Number(o)*F,L)),L=Math.max(L,F);const O=L+(k==="border-box"?E+_:0),I=Math.abs(L-R)<=1;return{outerHeightStyle:O,overflowing:I}},[o,l,t.placeholder]),b=Ct(()=>{const x=u.current,S=h();if(!x||!S||c0(S))return!1;const T=S.outerHeightStyle;return f.current!=null&&f.current!==T}),w=d.useCallback(()=>{const x=u.current,S=h();if(!x||!S||c0(S))return;const T=S.outerHeightStyle;f.current!==T&&(f.current=T,x.style.height=`${T}px`),x.style.overflow=S.overflowing?"hidden":""},[h]),C=d.useRef(-1);vt(()=>{const x=ql(w),S=u==null?void 0:u.current;if(!S)return;const T=Hr(S);T.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{b()&&(P.unobserve(S),cancelAnimationFrame(C.current),w(),C.current=requestAnimationFrame(()=>{P.observe(S)}))}),P.observe(S)),()=>{x.clear(),cancelAnimationFrame(C.current),T.removeEventListener("resize",x),P&&P.disconnect()}},[h,w,b]),vt(()=>{w()});const y=x=>{c||w(),r&&r(x)};return v.jsxs(d.Fragment,{children:[v.jsx("textarea",m({value:i,onChange:y,ref:p,rows:l,style:s},a)),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:m({},YD.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function Xl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const fp=d.createContext(void 0);function Ro(){return d.useContext(fp)}function xS(e){return v.jsx(T1,m({},e,{defaultTheme:up,themeId:zl}))}function u0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xu(e,t=!1){return e&&(u0(e.value)&&e.value!==""||t&&u0(e.defaultValue)&&e.defaultValue!=="")}function ZD(e){return e.startAdornment}function JD(e){return He("MuiInputBase",e)}const Wn=Be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ej=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],mp=(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${Q(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hp=(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]},tj=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:l,focused:s,formControl:i,fullWidth:a,hiddenLabel:c,multiline:u,readOnly:p,size:f,startAdornment:g,type:h}=e,b={root:["root",`color${Q(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",i&&"formControl",f&&f!=="medium"&&`size${Q(f)}`,u&&"multiline",g&&"adornedStart",l&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",l&&"inputAdornedEnd",p&&"readOnly"]};return we(b,JD,t)},gp=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mp})(({theme:e,ownerState:t})=>m({},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",[`&.${Wn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&m({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),vp=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=m({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"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return m({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] + .${Wn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Wn.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"})}),nj=v.jsx(xS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),yi=d.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:i,className:a,components:c={},componentsProps:u={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:g,endAdornment:h,fullWidth:b=!1,id:w,inputComponent:C="input",inputProps:y={},inputRef:x,maxRows:S,minRows:T,multiline:P=!1,name:k,onBlur:E,onChange:_,onClick:R,onFocus:F,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:$,renderSuffix:j,rows:N,slotProps:M={},slots:D={},startAdornment:A,type:H="text",value:z}=o,W=K(o,ej),G=y.value!=null?y.value:z,{current:q}=d.useRef(G!=null),re=d.useRef(),ae=d.useCallback(Te=>{},[]),ce=wt(re,x,y.ref,ae),[ue,ye]=d.useState(!1),de=Ro(),he=Xl({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=de?de.focused:ue,d.useEffect(()=>{!de&&f&&ue&&(ye(!1),E&&E())},[de,f,ue,E]);const Y=de&&de.onFilled,pe=de&&de.onEmpty,ee=d.useCallback(Te=>{Xu(Te)?Y&&Y():pe&&pe()},[Y,pe]);vt(()=>{q&&ee({value:G})},[G,ee,q]);const Z=Te=>{if(he.disabled){Te.stopPropagation();return}F&&F(Te),y.onFocus&&y.onFocus(Te),de&&de.onFocus?de.onFocus(Te):ye(!0)},fe=Te=>{E&&E(Te),y.onBlur&&y.onBlur(Te),de&&de.onBlur?de.onBlur(Te):ye(!1)},le=(Te,...se)=>{if(!q){const qe=Te.target||re.current;if(qe==null)throw new Error(Eo(1));ee({value:qe.value})}y.onChange&&y.onChange(Te,...se),_&&_(Te,...se)};d.useEffect(()=>{ee(re.current)},[]);const ge=Te=>{re.current&&Te.currentTarget===Te.target&&re.current.focus(),R&&R(Te)};let me=C,Ie=y;P&&me==="input"&&(N?Ie=m({type:void 0,minRows:N,maxRows:N},Ie):Ie=m({type:void 0,maxRows:S,minRows:T},Ie),me=XD);const Se=Te=>{ee(Te.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};d.useEffect(()=>{de&&de.setAdornedStart(!!A)},[de,A]);const te=m({},o,{color:he.color||"primary",disabled:he.disabled,endAdornment:h,error:he.error,focused:he.focused,formControl:de,fullWidth:b,hiddenLabel:he.hiddenLabel,multiline:P,size:he.size,startAdornment:A,type:H}),oe=tj(te),xe=D.root||c.Root||gp,Oe=M.root||u.root||{},Ve=D.input||c.Input||vp;return Ie=m({},Ie,(r=M.input)!=null?r:u.input),v.jsxs(d.Fragment,{children:[!g&&nj,v.jsxs(xe,m({},Oe,!Aa(xe)&&{ownerState:m({},te,Oe.ownerState)},{ref:n,onClick:ge},W,{className:ne(oe.root,Oe.className,a,$&&"MuiInputBase-readOnly"),children:[A,v.jsx(fp.Provider,{value:null,children:v.jsx(Ve,m({ownerState:te,"aria-invalid":he.error,"aria-describedby":l,autoComplete:s,autoFocus:i,defaultValue:p,disabled:he.disabled,id:w,onAnimationStart:Se,name:k,placeholder:I,readOnly:$,required:he.required,rows:N,value:G,onKeyDown:L,onKeyUp:O,type:H},Ie,!Aa(Ve)&&{as:me,ownerState:m({},te,Ie.ownerState)},{ref:ce,className:ne(oe.input,Ie.className,$&&"MuiInputBase-readOnly"),onBlur:fe,onChange:le,onFocus:Z}))}),h,j?j(m({},he,{startAdornment:A})):null]}))]})});function rj(e){return He("MuiInput",e)}const Vo=m({},Wn,Be("MuiInput",["root","underline","input"]));function oj(e){return He("MuiOutlinedInput",e)}const Kr=m({},Wn,Be("MuiOutlinedInput",["root","notchedOutline","input"]));function lj(e){return He("MuiFilledInput",e)}const Un=m({},Wn,Be("MuiFilledInput",["root","underline","input"])),wS=ot(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function sj(e){return He("MuiAutocomplete",e)}const nt=Be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var d0,p0;const ij=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],aj=["ref"],cj=["key"],uj=["key"],dj=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:l,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,popupOpen:c,size:u}=e,p={root:["root",r&&"expanded",o&&"focused",l&&"fullWidth",s&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${Q(u)}`],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 we(p,sj,t)},pj=X("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:l,inputFocused:s,size:i}=n;return[{[`& .${nt.tag}`]:t.tag},{[`& .${nt.tag}`]:t[`tagSize${Q(i)}`]},{[`& .${nt.inputRoot}`]:t.inputRoot},{[`& .${nt.input}`]:t.input},{[`& .${nt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,l&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${nt.focused} .${nt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nt.clearIndicator}`]:{visibility:"visible"}},[`& .${nt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${nt.inputRoot}`]:{[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:30},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:56},[`& .${nt.input}`]:{width:0,minWidth:30}},[`& .${Vo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Vo.root}.${Wn.sizeSmall}`]:{[`& .${Vo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Kr.root}`]:{padding:9,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${nt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${Kr.root}.${Wn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Un.root}`]:{paddingTop:19,paddingLeft:8,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${Un.input}`]:{padding:"7px 4px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${Un.root}.${Wn.sizeSmall}`]:{paddingBottom:1,[`& .${Un.input}`]:{padding:"2.5px 4px"}},[`& .${Wn.hiddenLabel}`]:{paddingTop:8},[`& .${Un.root}.${Wn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Un.root}.${Wn.hiddenLabel}.${Wn.sizeSmall}`]:{[`& .${nt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${nt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${nt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${nt.inputRoot}`]:{flexWrap:"wrap"}}}]}),fj=X("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mj=X(Dr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),hj=X(Dr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>m({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gj=X(Ql,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),vj=X(wr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>m({},e.typography.body1,{overflow:"auto"})),yj=X("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),bj=X("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Cj=X("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nt.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"},[`&.${nt.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"},[`&.${nt.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})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),xj=X(CS,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),wj=X("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nt.option}`]:{paddingLeft:24}}),SS=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:p=!1,ChipProps:f,className:g,clearIcon:h=d0||(d0=v.jsx(eF,{fontSize:"small"})),clearOnBlur:b=!i.freeSolo,clearOnEscape:w=!1,clearText:C="Clear",closeText:y="Close",componentsProps:x={},defaultValue:S=i.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:P=!1,disabled:k=!1,disabledItemsFocusable:E=!1,disableListWrap:_=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:L="auto",freeSolo:O=!1,fullWidth:I=!1,getLimitTagsText:$=U=>`+${U}`,getOptionLabel:j,groupBy:N,handleHomeEndKeys:M=!i.freeSolo,includeInputInList:D=!1,limitTags:A=-1,ListboxComponent:H="ul",ListboxProps:z,loading:W=!1,loadingText:G="Loading…",multiple:q=!1,noOptionsText:re="No options",openOnFocus:ae=!1,openText:ce="Open",PaperComponent:ue=wr,PopperComponent:ye=Ql,popupIcon:de=p0||(p0=v.jsx(wS,{})),readOnly:he=!1,renderGroup:Y,renderInput:pe,renderOption:ee,renderTags:Z,selectOnFocus:fe=!i.freeSolo,size:le="medium",slotProps:ge={}}=i,me=K(i,ij),{getRootProps:Ie,getInputProps:Se,getInputLabelProps:te,getPopupIndicatorProps:oe,getClearProps:xe,getTagProps:Oe,getListboxProps:Ve,getOptionProps:Te,value:se,dirty:qe,expanded:tt,id:Xe,popupOpen:be,focused:je,focusedTag:ie,anchorEl:Ee,setAnchorEl:Ae,inputValue:Ne,groupedOptions:Ye}=mF(m({},i,{componentName:"Autocomplete"})),$e=!T&&!k&&qe&&!he,Ce=(!O||L===!0)&&L!==!1,{onMouseDown:Me}=Se(),{ref:We}=z??{},Qe=Ve(),{ref:Pe}=Qe,Ge=K(Qe,aj),rt=wt(Pe,We),dt=j||(U=>{var ke;return(ke=U.label)!=null?ke:U}),st=m({},i,{disablePortal:R,expanded:tt,focused:je,fullWidth:I,getOptionLabel:dt,hasClearIcon:$e,hasPopupIcon:Ce,inputFocused:ie===-1,popupOpen:be,size:le}),ut=dj(st);let Et;if(q&&se.length>0){const U=ke=>m({className:ut.tag,disabled:k},Oe(ke));Z?Et=Z(se,U,st):Et=se.map((ke,ze)=>{const Je=U({index:ze}),{key:_e}=Je,lt=K(Je,cj);return v.jsx(Kg,m({label:dt(ke),size:le},lt,f),_e)})}if(A>-1&&Array.isArray(Et)){const U=Et.length-A;!je&&U>0&&(Et=Et.splice(0,A),Et.push(v.jsx("span",{className:ut.tag,children:$(U)},Et.length)))}const pn=Y||(U=>v.jsxs("li",{children:[v.jsx(xj,{className:ut.groupLabel,ownerState:st,component:"div",children:U.group}),v.jsx(wj,{className:ut.groupUl,ownerState:st,children:U.children})]},U.key)),mn=ee||((U,ke)=>{const{key:ze}=U,Je=K(U,uj);return v.jsx("li",m({},Je,{children:dt(ke)}),ze)}),Pr=(U,ke)=>{const ze=Te({option:U,index:ke});return mn(m({},ze,{className:ut.option}),U,{selected:ze["aria-selected"],index:ke,inputValue:Ne},st)},Bn=(r=ge.clearIndicator)!=null?r:x.clearIndicator,xn=(o=ge.paper)!=null?o:x.paper,kr=(l=ge.popper)!=null?l:x.popper,J=(s=ge.popupIndicator)!=null?s:x.popupIndicator;return v.jsxs(d.Fragment,{children:[v.jsx(pj,m({ref:n,className:ne(ut.root,g),ownerState:st},Ie(me),{children:pe({id:Xe,disabled:k,fullWidth:!0,size:le==="small"?"small":void 0,InputLabelProps:te(),InputProps:m({ref:Ae,className:ut.inputRoot,startAdornment:Et,onClick:U=>{U.target===U.currentTarget&&Me(U)}},($e||Ce)&&{endAdornment:v.jsxs(fj,{className:ut.endAdornment,ownerState:st,children:[$e?v.jsx(mj,m({},xe(),{"aria-label":C,title:C,ownerState:st},Bn,{className:ne(ut.clearIndicator,Bn==null?void 0:Bn.className),children:h})):null,Ce?v.jsx(hj,m({},oe(),{disabled:k,"aria-label":be?y:ce,title:be?y:ce,ownerState:st},J,{className:ne(ut.popupIndicator,J==null?void 0:J.className),children:de})):null]})}),inputProps:m({className:ut.input,disabled:k,readOnly:he},Se())})})),Ee?v.jsx(gj,m({as:ye,disablePortal:R,style:{width:Ee?Ee.clientWidth:null},ownerState:st,role:"presentation",anchorEl:Ee,open:be},kr,{className:ne(ut.popper,kr==null?void 0:kr.className),children:v.jsxs(vj,m({ownerState:st,as:ue},xn,{className:ne(ut.paper,xn==null?void 0:xn.className),children:[W&&Ye.length===0?v.jsx(yj,{className:ut.loading,ownerState:st,children:G}):null,Ye.length===0&&!O&&!W?v.jsx(bj,{className:ut.noOptions,ownerState:st,role:"presentation",onMouseDown:U=>{U.preventDefault()},children:re}):null,Ye.length>0?v.jsx(Cj,m({as:H,className:ut.listbox,ownerState:st},Ge,z,{ref:rt,children:Ye.map((U,ke)=>N?pn({key:U.key,group:U.group,children:U.options.map((ze,Je)=>Pr(ze,U.index+Je))}):Pr(U,ke))})):null]}))})):null]})}),Sj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Pj={entering:{opacity:1},entered:{opacity:1}},PS=d.forwardRef(function(t,n){const r=Br(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:i,easing:a,in:c,onEnter:u,onEntered:p,onEntering:f,onExit:g,onExited:h,onExiting:b,style:w,timeout:C=o,TransitionComponent:y=io}=t,x=K(t,Sj),S=d.useRef(null),T=wt(S,Yl(i),n),P=I=>$=>{if(I){const j=S.current;$===void 0?I(j):I(j,$)}},k=P(f),E=P((I,$)=>{lS(I);const j=Yu({style:w,timeout:C,easing:a},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",j),I.style.transition=r.transitions.create("opacity",j),u&&u(I,$)}),_=P(p),R=P(b),F=P(I=>{const $=Yu({style:w,timeout:C,easing:a},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",$),I.style.transition=r.transitions.create("opacity",$),g&&g(I)}),L=P(h),O=I=>{l&&l(S.current,I)};return v.jsx(y,m({appear:s,in:c,nodeRef:S,onEnter:E,onEntered:_,onEntering:k,onExit:F,onExited:L,onExiting:R,addEndListener:O,timeout:C},x,{children:(I,$)=>d.cloneElement(i,m({style:m({opacity:0,visibility:I==="exited"&&!c?"hidden":void 0},Pj[I],w,i.props.style),ref:T},$))}))});function kj(e){return He("MuiBackdrop",e)}Be("MuiBackdrop",["root","invisible"]);const Ej=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ij=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},kj,t)},Mj=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>m({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"})),kS=d.forwardRef(function(t,n){var r,o,l;const s=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:c="div",components:u={},componentsProps:p={},invisible:f=!1,open:g,slotProps:h={},slots:b={},TransitionComponent:w=PS,transitionDuration:C}=s,y=K(s,Ej),x=m({},s,{component:c,invisible:f}),S=Ij(x),T=(r=h.root)!=null?r:p.root;return v.jsx(w,m({in:g,timeout:C},y,{children:v.jsx(Mj,m({"aria-hidden":!0},T,{as:(o=(l=b.root)!=null?l:u.Root)!=null?o:c,className:ne(S.root,a,T==null?void 0:T.className),ownerState:m({},x,T==null?void 0:T.ownerState),classes:S,ref:n,children:i}))}))});function $j(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,l=Rg({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:i,max:a=r}=s?l:e,c=i&&Number(i)>a?`${a}+`:i;return{badgeContent:i,invisible:s,max:a,displayValue:c}}function Rj(e){return He("MuiBadge",e)}const Oo=Be("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"]),Tj=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],bf=10,Cf=4,Oj=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:l,classes:s={}}=e,i={root:["root"],badge:["badge",l,r&&"invisible",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`,`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}${Q(o)}`,`overlap${Q(o)}`,t!=="default"&&`color${Q(t)}`]};return we(i,Rj,s)},Fj=X("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Dj=X("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}${Q(n.overlap)}`],n.color!=="default"&&t[`color${Q(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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:bf*2,lineHeight:1,padding:"0 6px",height:bf*2,borderRadius:bf,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Cf,height:Cf*2,minWidth:Cf*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),ES=d.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:p,component:f,components:g={},componentsProps:h={},children:b,overlap:w="rectangular",color:C="default",invisible:y=!1,max:x=99,badgeContent:S,slots:T,slotProps:P,showZero:k=!1,variant:E="standard"}=c,_=K(c,Tj),{badgeContent:R,invisible:F,max:L,displayValue:O}=$j({max:x,invisible:y,badgeContent:S,showZero:k}),I=Rg({anchorOrigin:u,color:C,overlap:w,variant:E,badgeContent:S}),$=F||R==null&&E!=="dot",{color:j=C,overlap:N=w,anchorOrigin:M=u,variant:D=E}=$?I:c,A=D!=="dot"?O:void 0,H=m({},c,{badgeContent:R,invisible:$,max:L,displayValue:A,showZero:k,anchorOrigin:M,color:j,overlap:N,variant:D}),z=Oj(H),W=(r=(o=T==null?void 0:T.root)!=null?o:g.Root)!=null?r:Fj,G=(l=(s=T==null?void 0:T.badge)!=null?s:g.Badge)!=null?l:Dj,q=(i=P==null?void 0:P.root)!=null?i:h.root,re=(a=P==null?void 0:P.badge)!=null?a:h.badge,ae=Zn({elementType:W,externalSlotProps:q,externalForwardedProps:_,additionalProps:{ref:n,as:f},ownerState:H,className:ne(q==null?void 0:q.className,z.root,p)}),ce=Zn({elementType:G,externalSlotProps:re,ownerState:H,className:ne(z.badge,re==null?void 0:re.className)});return v.jsxs(W,m({},ae,{children:[b,v.jsx(G,m({},ce,{children:A}))]}))}),jj=Be("MuiBox",["root"]),_j=_g(),go=X$({themeId:zl,defaultTheme:_j,defaultClassName:jj.root,generateClassName:wg.generate});function Lj(e){return He("MuiButton",e)}const Vc=Be("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nj=d.createContext({}),Aj=d.createContext(void 0),zj=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hj=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:l,classes:s}=e,i={root:["root",l,`${l}${Q(t)}`,`size${Q(o)}`,`${l}Size${Q(o)}`,`color${Q(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`]},a=we(i,Lj,s);return m({},s,a)},IS=e=>m({},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}}),Bj=X(sl,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color)}`],t[`size${Q(n.size)}`],t[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return m({},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":m({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(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})`:pt(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})`:pt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,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":m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vc.focusVisible}`]:m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vc.disabled}`]:m({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vc.disabled}`]:{boxShadow:"none"}}),Vj=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},IS(e))),Gj=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},IS(e))),bl=d.forwardRef(function(t,n){const r=d.useContext(Nj),o=d.useContext(Aj),l=La(r,t),s=Ke({props:l,name:"MuiButton"}),{children:i,color:a="primary",component:c="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:g=!1,endIcon:h,focusVisibleClassName:b,fullWidth:w=!1,size:C="medium",startIcon:y,type:x,variant:S="text"}=s,T=K(s,zj),P=m({},s,{color:a,component:c,disabled:p,disableElevation:f,disableFocusRipple:g,fullWidth:w,size:C,type:x,variant:S}),k=Hj(P),E=y&&v.jsx(Vj,{className:k.startIcon,ownerState:P,children:y}),_=h&&v.jsx(Gj,{className:k.endIcon,ownerState:P,children:h}),R=o||"";return v.jsxs(Bj,m({ownerState:P,className:ne(r.className,k.root,u,R),component:c,disabled:p,focusRipple:!g,focusVisibleClassName:ne(k.focusVisible,b),ref:n,type:x},T,{classes:k,children:[E,i,_]}))});function Wj(e){return He("PrivateSwitchBase",e)}Be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uj=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Kj=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,l={root:["root",n&&"checked",r&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return we(l,Wj,t)},qj=X(sl,{name:"MuiSwitchBase"})(({ownerState:e})=>m({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Yj=X("input",{name:"MuiSwitchBase",shouldForwardProp:Hn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),MS=d.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:l,className:s,defaultChecked:i,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:p,id:f,inputProps:g,inputRef:h,name:b,onBlur:w,onChange:C,onFocus:y,readOnly:x,required:S=!1,tabIndex:T,type:P,value:k}=t,E=K(t,Uj),[_,R]=rl({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),F=Ro(),L=D=>{y&&y(D),F&&F.onFocus&&F.onFocus(D)},O=D=>{w&&w(D),F&&F.onBlur&&F.onBlur(D)},I=D=>{if(D.nativeEvent.defaultPrevented)return;const A=D.target.checked;R(A),C&&C(D,A)};let $=a;F&&typeof $>"u"&&($=F.disabled);const j=P==="checkbox"||P==="radio",N=m({},t,{checked:_,disabled:$,disableFocusRipple:c,edge:u}),M=Kj(N);return v.jsxs(qj,m({component:"span",className:ne(M.root,s),centerRipple:!0,focusRipple:!c,disabled:$,tabIndex:null,role:void 0,onFocus:L,onBlur:O,ownerState:N,ref:n},E,{children:[v.jsx(Yj,m({autoFocus:r,checked:o,defaultChecked:i,className:M.input,disabled:$,id:j?f:void 0,name:b,onChange:I,readOnly:x,ref:h,required:S,ownerState:N,tabIndex:T,type:P},P==="checkbox"&&k===void 0?{}:{value:k},g)),_?l:p]}))}),Qj=ot(v.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"),Xj=ot(v.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"),Zj=ot(v.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 Jj(e){return He("MuiCheckbox",e)}const xf=Be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),e_=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],t_=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${Q(r)}`,`size${Q(o)}`]},s=we(l,Jj,t);return m({},t,s)},n_=X(MS,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Q(n.size)}`],n.color!=="default"&&t[`color${Q(n.color)}`]]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${xf.checked}, &.${xf.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${xf.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),r_=v.jsx(Xj,{}),o_=v.jsx(Qj,{}),l_=v.jsx(Zj,{}),s_=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:s=r_,color:i="primary",icon:a=o_,indeterminate:c=!1,indeterminateIcon:u=l_,inputProps:p,size:f="medium",className:g}=l,h=K(l,e_),b=c?u:a,w=c?u:s,C=m({},l,{color:i,indeterminate:c,size:f}),y=t_(C);return v.jsx(n_,m({type:"checkbox",inputProps:m({"data-indeterminate":c},p),icon:d.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:d.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:f}),ownerState:C,ref:n,className:ne(y.root,g)},h,{classes:y}))});function i_(e){return He("MuiCircularProgress",e)}Be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const a_=["className","color","disableShrink","size","style","thickness","value","variant"];let yp=e=>e,f0,m0,h0,g0;const Fo=44,c_=ul(f0||(f0=yp`
128
+ `),cr.rippleVisible,NO,zm,({theme:e})=>e.transitions.easing.easeInOut,cr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,cr.child,cr.childLeaving,AO,zm,({theme:e})=>e.transitions.easing.easeInOut,cr.childPulsate,zO,({theme:e})=>e.transitions.easing.easeInOut),VO=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:s}=r,i=K(r,_O),[a,c]=d.useState([]),u=d.useRef(0),p=d.useRef(null);d.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const f=d.useRef(!1),g=Is(),h=d.useRef(null),b=d.useRef(null),w=d.useCallback(S=>{const{pulsate:T,rippleX:P,rippleY:k,rippleSize:E,cb:_}=S;c(R=>[...R,v.jsx(BO,{classes:{ripple:ne(l.ripple,cr.ripple),rippleVisible:ne(l.rippleVisible,cr.rippleVisible),ripplePulsate:ne(l.ripplePulsate,cr.ripplePulsate),child:ne(l.child,cr.child),childLeaving:ne(l.childLeaving,cr.childLeaving),childPulsate:ne(l.childPulsate,cr.childPulsate)},timeout:zm,pulsate:T,rippleX:P,rippleY:k,rippleSize:E},u.current)]),u.current+=1,p.current=_},[l]),C=d.useCallback((S={},T={},P=()=>{})=>{const{pulsate:k=!1,center:E=o||T.pulsate,fakeElement:_=!1}=T;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const R=_?null:b.current,F=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,O,I;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)L=Math.round(F.width/2),O=Math.round(F.height/2);else{const{clientX:$,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;L=Math.round($-F.left),O=Math.round(j-F.top)}if(E)I=Math.sqrt((2*F.width**2+F.height**2)/3),I%2===0&&(I+=1);else{const $=Math.max(Math.abs((R?R.clientWidth:0)-L),L)*2+2,j=Math.max(Math.abs((R?R.clientHeight:0)-O),O)*2+2;I=Math.sqrt($**2+j**2)}S!=null&&S.touches?h.current===null&&(h.current=()=>{w({pulsate:k,rippleX:L,rippleY:O,rippleSize:I,cb:P})},g.start(LO,()=>{h.current&&(h.current(),h.current=null)})):w({pulsate:k,rippleX:L,rippleY:O,rippleSize:I,cb:P})},[o,w,g]),y=d.useCallback(()=>{C({},{pulsate:!0})},[C]),x=d.useCallback((S,T)=>{if(g.clear(),(S==null?void 0:S.type)==="touchend"&&h.current){h.current(),h.current=null,g.start(0,()=>{x(S,T)});return}h.current=null,c(P=>P.length>0?P.slice(1):P),p.current=T},[g]);return d.useImperativeHandle(n,()=>({pulsate:y,start:C,stop:x}),[y,C,x]),v.jsx(HO,m({className:ne(cr.root,l.root,s),ref:b},i,{children:v.jsx(Ag,{component:null,exit:!0,children:a})}))});function GO(e){return He("MuiButtonBase",e)}const WO=Be("MuiButtonBase",["root","disabled","focusVisible"]),UO=["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"],KO=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=we({root:["root",t&&"disabled",n&&"focusVisible"]},GO,o);return n&&r&&(s.root+=` ${r}`),s},qO=X("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"},[`&.${WO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ll=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:s,className:i,component:a="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:g="a",onBlur:h,onClick:b,onContextMenu:w,onDragLeave:C,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:T,onMouseDown:P,onMouseLeave:k,onMouseUp:E,onTouchEnd:_,onTouchMove:R,onTouchStart:F,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:$}=r,j=K(r,UO),N=d.useRef(null),M=d.useRef(null),D=wt(M,I),{isFocusVisibleRef:A,onFocus:H,onBlur:z,ref:W}=Rg(),[G,q]=d.useState(!1);c&&G&&q(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),N.current.focus()}}),[]);const[re,ae]=d.useState(!1);d.useEffect(()=>{ae(!0)},[]);const ce=re&&!u&&!c;d.useEffect(()=>{G&&f&&!u&&re&&M.current.pulsate()},[u,f,G,re]);function ue(se,qe,tt=p){return Ct(Xe=>(qe&&qe(Xe),!tt&&M.current&&M.current[se](Xe),!0))}const ye=ue("start",P),de=ue("stop",w),he=ue("stop",C),Y=ue("stop",E),pe=ue("stop",se=>{G&&se.preventDefault(),k&&k(se)}),ee=ue("start",F),Z=ue("stop",_),fe=ue("stop",R),le=ue("stop",se=>{z(se),A.current===!1&&q(!1),h&&h(se)},!1),ge=Ct(se=>{N.current||(N.current=se.currentTarget),H(se),A.current===!0&&(q(!0),x&&x(se)),y&&y(se)}),me=()=>{const se=N.current;return a&&a!=="button"&&!(se.tagName==="A"&&se.href)},Ie=d.useRef(!1),Se=Ct(se=>{f&&!Ie.current&&G&&M.current&&se.key===" "&&(Ie.current=!0,M.current.stop(se,()=>{M.current.start(se)})),se.target===se.currentTarget&&me()&&se.key===" "&&se.preventDefault(),S&&S(se),se.target===se.currentTarget&&me()&&se.key==="Enter"&&!c&&(se.preventDefault(),b&&b(se))}),te=Ct(se=>{f&&se.key===" "&&M.current&&G&&!se.defaultPrevented&&(Ie.current=!1,M.current.stop(se,()=>{M.current.pulsate(se)})),T&&T(se),b&&se.target===se.currentTarget&&me()&&se.key===" "&&!se.defaultPrevented&&b(se)});let oe=a;oe==="button"&&(j.href||j.to)&&(oe=g);const xe={};oe==="button"?(xe.type=$===void 0?"button":$,xe.disabled=c):(!j.href&&!j.to&&(xe.role="button"),c&&(xe["aria-disabled"]=c));const Oe=wt(n,W,N),Ve=m({},r,{centerRipple:l,component:a,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:f,tabIndex:L,focusVisible:G}),Te=KO(Ve);return v.jsxs(qO,m({as:oe,className:ne(Te.root,i),ownerState:Ve,onBlur:le,onClick:b,onContextMenu:de,onFocus:ge,onKeyDown:Se,onKeyUp:te,onMouseDown:ye,onMouseLeave:pe,onMouseUp:Y,onDragLeave:he,onTouchEnd:Z,onTouchMove:fe,onTouchStart:ee,ref:Oe,tabIndex:c?-1:L,type:$},xe,j,{children:[s,ce?v.jsx(VO,m({ref:D,center:l},O)):null]}))});function YO(e){return He("MuiIconButton",e)}const QO=Be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),XO=["edge","children","className","color","disabled","disableFocusRipple","size"],ZO=e=>{const{classes:t,disabled:n,color:r,edge:o,size:l}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Q(r)}`,o&&`edge${Q(o)}`,`size${Q(l)}`]};return we(s,YO,t)},JO=X(ll,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(({theme:e,ownerState:t})=>m({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})`:pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return m({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&m({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":m({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${QO.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),jr=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:s,color:i="default",disabled:a=!1,disableFocusRipple:c=!1,size:u="medium"}=r,p=K(r,XO),f=m({},r,{edge:o,color:i,disabled:a,disableFocusRipple:c,size:u}),g=ZO(f);return v.jsx(JO,m({className:ne(g.root,s),centerRipple:!0,focusRipple:!c,disabled:a,ref:n},p,{ownerState:f,children:l}))}),eF=ot(v.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");function tF(e){return He("MuiTypography",e)}Be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rF=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:l,classes:s}=e,i={root:["root",l,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return we(i,tF,s)},oF=X("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${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>m({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Qb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sF=e=>lF[e]||e,Zt=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTypography"}),o=sF(r.color),l=Xd(m({},r,{color:o})),{align:s="inherit",className:i,component:a,gutterBottom:c=!1,noWrap:u=!1,paragraph:p=!1,variant:f="body1",variantMapping:g=Qb}=l,h=K(l,nF),b=m({},l,{align:s,color:o,className:i,component:a,gutterBottom:c,noWrap:u,paragraph:p,variant:f,variantMapping:g}),w=a||(p?"p":g[f]||Qb[f])||"span",C=rF(b);return v.jsx(oF,m({as:w,ref:n,ownerState:b,className:ne(C.root,i)},h))});function iF(e){return He("MuiAppBar",e)}Be("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const aF=["className","color","enableColorOnDark","position"],cF=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Q(t)}`,`position${Q(n)}`]};return we(o,iF,r)},Ac=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,uF=X(Sr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`],t[`color${Q(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return m({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&&m({},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"&&m({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&m({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ac(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ac(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:Ac(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ac(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),sS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiAppBar"}),{className:o,color:l="primary",enableColorOnDark:s=!1,position:i="fixed"}=r,a=K(r,aF),c=m({},r,{color:l,position:i,enableColorOnDark:s}),u=cF(c);return v.jsx(uF,m({square:!0,component:"header",ownerState:c,elevation:4,className:ne(u.root,o,i==="fixed"&&"mui-fixed"),ref:n},a))});function Xb(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function iS(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:l,trim:s=!1}=e;return(i,{inputValue:a,getOptionLabel:c})=>{let u=s?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=Xb(u));const p=u?i.filter(f=>{let g=(l||c)(f);return n&&(g=g.toLowerCase()),t&&(g=Xb(g)),o==="start"?g.indexOf(u)===0:g.indexOf(u)>-1}):i;return typeof r=="number"?p.slice(0,r):p}}function zc(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const dF=iS(),Zb=5,pF=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},fF=[];function mF(e){const{unstable_isActiveElementInListbox:t=pF,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:l=!1,blurOnSelect:s=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?fF:null,disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:h=!1,disableListWrap:b=!1,filterOptions:w=dF,filterSelectedOptions:C=!1,freeSolo:y=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:T=J=>{var U;return(U=J.label)!=null?U:J},groupBy:P,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:_=!1,inputValue:R,isOptionEqualToValue:F=(J,U)=>J===U,multiple:L=!1,onChange:O,onClose:I,onHighlightChange:$,onInputChange:j,onOpen:N,open:M,openOnFocus:D=!1,options:A,readOnly:H=!1,selectOnFocus:z=!e.freeSolo,value:W}=e,G=bt(E);let q=T;q=J=>{const U=T(J);return typeof U!="string"?String(U):U};const re=d.useRef(!1),ae=d.useRef(!0),ce=d.useRef(null),ue=d.useRef(null),[ye,de]=d.useState(null),[he,Y]=d.useState(-1),pe=o?0:-1,ee=d.useRef(pe),[Z,fe]=nl({controlled:W,default:u,name:c}),[le,ge]=nl({controlled:R,default:"",name:c,state:"inputValue"}),[me,Ie]=d.useState(!1),Se=d.useCallback((J,U)=>{if(!(L?Z.length<U.length:U!==null)&&!i)return;let ze;if(L)ze="";else if(U==null)ze="";else{const Je=q(U);ze=typeof Je=="string"?Je:""}le!==ze&&(ge(ze),j&&j(J,ze,"reset"))},[q,le,L,j,ge,i,Z]),[te,oe]=nl({controlled:M,default:!1,name:c,state:"open"}),[xe,Oe]=d.useState(!0),Ve=!L&&Z!=null&&le===q(Z),Te=te&&!H,se=Te?w(A.filter(J=>!(C&&(L?Z:[Z]).some(U=>U!==null&&F(J,U)))),{inputValue:Ve&&xe?"":le,getOptionLabel:q}):[],qe=Tg({filteredOptions:se,value:Z,inputValue:le});d.useEffect(()=>{const J=Z!==qe.value;me&&!J||y&&!J||Se(null,Z)},[Z,Se,me,qe.value,y]);const tt=te&&se.length>0&&!H,Xe=Ct(J=>{J===-1?ce.current.focus():ye.querySelector(`[data-tag-index="${J}"]`).focus()});d.useEffect(()=>{L&&he>Z.length-1&&(Y(-1),Xe(-1))},[Z,L,he,Xe]);function be(J,U){if(!ue.current||J<0||J>=se.length)return-1;let ke=J;for(;;){const ze=ue.current.querySelector(`[data-option-index="${ke}"]`),Je=h?!1:!ze||ze.disabled||ze.getAttribute("aria-disabled")==="true";if(ze&&ze.hasAttribute("tabindex")&&!Je)return ke;if(U==="next"?ke=(ke+1)%se.length:ke=(ke-1+se.length)%se.length,ke===J)return-1}}const je=Ct(({event:J,index:U,reason:ke="auto"})=>{if(ee.current=U,U===-1?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant",`${G}-option-${U}`),$&&$(J,U===-1?null:se[U],ke),!ue.current)return;const ze=ue.current.querySelector(`[role="option"].${n}-focused`);ze&&(ze.classList.remove(`${n}-focused`),ze.classList.remove(`${n}-focusVisible`));let Je=ue.current;if(ue.current.getAttribute("role")!=="listbox"&&(Je=ue.current.parentElement.querySelector('[role="listbox"]')),!Je)return;if(U===-1){Je.scrollTop=0;return}const _e=ue.current.querySelector(`[data-option-index="${U}"]`);if(_e&&(_e.classList.add(`${n}-focused`),ke==="keyboard"&&_e.classList.add(`${n}-focusVisible`),Je.scrollHeight>Je.clientHeight&&ke!=="mouse"&&ke!=="touch")){const lt=_e,$n=Je.clientHeight+Je.scrollTop,Si=lt.offsetTop+lt.offsetHeight;Si>$n?Je.scrollTop=Si-Je.clientHeight:lt.offsetTop-lt.offsetHeight*(P?1.3:0)<Je.scrollTop&&(Je.scrollTop=lt.offsetTop-lt.offsetHeight*(P?1.3:0))}}),ie=Ct(({event:J,diff:U,direction:ke="next",reason:ze="auto"})=>{if(!Te)return;const _e=be((()=>{const lt=se.length-1;if(U==="reset")return pe;if(U==="start")return 0;if(U==="end")return lt;const $n=ee.current+U;return $n<0?$n===-1&&_?-1:b&&ee.current!==-1||Math.abs(U)>1?0:lt:$n>lt?$n===lt+1&&_?-1:b||Math.abs(U)>1?lt:0:$n})(),ke);if(je({index:_e,reason:ze,event:J}),r&&U!=="reset")if(_e===-1)ce.current.value=le;else{const lt=q(se[_e]);ce.current.value=lt,lt.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&ce.current.setSelectionRange(le.length,lt.length)}}),Ee=()=>{const J=(U,ke)=>{const ze=U?q(U):"",Je=ke?q(ke):"";return ze===Je};if(ee.current!==-1&&qe.filteredOptions&&qe.filteredOptions.length!==se.length&&qe.inputValue===le&&(L?Z.length===qe.value.length&&qe.value.every((U,ke)=>q(Z[ke])===q(U)):J(qe.value,Z))){const U=qe.filteredOptions[ee.current];if(U)return zc(se,ke=>q(ke)===q(U))}return-1},Ae=d.useCallback(()=>{if(!Te)return;const J=Ee();if(J!==-1){ee.current=J;return}const U=L?Z[0]:Z;if(se.length===0||U==null){ie({diff:"reset"});return}if(ue.current){if(U!=null){const ke=se[ee.current];if(L&&ke&&zc(Z,Je=>F(ke,Je))!==-1)return;const ze=zc(se,Je=>F(Je,U));ze===-1?ie({diff:"reset"}):je({index:ze});return}if(ee.current>=se.length-1){je({index:se.length-1});return}je({index:ee.current})}},[se.length,L?!1:Z,C,ie,je,Te,le,L]),Ne=Ct(J=>{Na(ue,J),J&&Ae()});d.useEffect(()=>{Ae()},[Ae]);const Ye=J=>{te||(oe(!0),Oe(!0),N&&N(J))},$e=(J,U)=>{te&&(oe(!1),I&&I(J,U))},Ce=(J,U,ke,ze)=>{if(L){if(Z.length===U.length&&Z.every((Je,_e)=>Je===U[_e]))return}else if(Z===U)return;O&&O(J,U,ke,ze),fe(U)},Me=d.useRef(!1),We=(J,U,ke="selectOption",ze="options")=>{let Je=ke,_e=U;if(L){_e=Array.isArray(Z)?Z.slice():[];const lt=zc(_e,$n=>F(U,$n));lt===-1?_e.push(U):ze!=="freeSolo"&&(_e.splice(lt,1),Je="removeOption")}Se(J,_e),Ce(J,_e,Je,{option:U}),!f&&(!J||!J.ctrlKey&&!J.metaKey)&&$e(J,Je),(s===!0||s==="touch"&&Me.current||s==="mouse"&&!Me.current)&&ce.current.blur()};function Qe(J,U){if(J===-1)return-1;let ke=J;for(;;){if(U==="next"&&ke===Z.length||U==="previous"&&ke===-1)return-1;const ze=ye.querySelector(`[data-tag-index="${ke}"]`);if(!ze||!ze.hasAttribute("tabindex")||ze.disabled||ze.getAttribute("aria-disabled")==="true")ke+=U==="next"?1:-1;else return ke}}const Pe=(J,U)=>{if(!L)return;le===""&&$e(J,"toggleInput");let ke=he;he===-1?le===""&&U==="previous"&&(ke=Z.length-1):(ke+=U==="next"?1:-1,ke<0&&(ke=0),ke===Z.length&&(ke=-1)),ke=Qe(ke,U),Y(ke),Xe(ke)},Ge=J=>{re.current=!0,ge(""),j&&j(J,"","clear"),Ce(J,L?[]:null,"clear")},rt=J=>U=>{if(J.onKeyDown&&J.onKeyDown(U),!U.defaultMuiPrevented&&(he!==-1&&["ArrowLeft","ArrowRight"].indexOf(U.key)===-1&&(Y(-1),Xe(-1)),U.which!==229))switch(U.key){case"Home":Te&&k&&(U.preventDefault(),ie({diff:"start",direction:"next",reason:"keyboard",event:U}));break;case"End":Te&&k&&(U.preventDefault(),ie({diff:"end",direction:"previous",reason:"keyboard",event:U}));break;case"PageUp":U.preventDefault(),ie({diff:-Zb,direction:"previous",reason:"keyboard",event:U}),Ye(U);break;case"PageDown":U.preventDefault(),ie({diff:Zb,direction:"next",reason:"keyboard",event:U}),Ye(U);break;case"ArrowDown":U.preventDefault(),ie({diff:1,direction:"next",reason:"keyboard",event:U}),Ye(U);break;case"ArrowUp":U.preventDefault(),ie({diff:-1,direction:"previous",reason:"keyboard",event:U}),Ye(U);break;case"ArrowLeft":Pe(U,"previous");break;case"ArrowRight":Pe(U,"next");break;case"Enter":if(ee.current!==-1&&Te){const ke=se[ee.current],ze=x?x(ke):!1;if(U.preventDefault(),ze)return;We(U,ke,"selectOption"),r&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else y&&le!==""&&Ve===!1&&(L&&U.preventDefault(),We(U,le,"createOption","freeSolo"));break;case"Escape":Te?(U.preventDefault(),U.stopPropagation(),$e(U,"escape")):a&&(le!==""||L&&Z.length>0)&&(U.preventDefault(),U.stopPropagation(),Ge(U));break;case"Backspace":if(L&&!H&&le===""&&Z.length>0){const ke=he===-1?Z.length-1:he,ze=Z.slice();ze.splice(ke,1),Ce(U,ze,"removeOption",{option:Z[ke]})}break;case"Delete":if(L&&!H&&le===""&&Z.length>0&&he!==-1){const ke=he,ze=Z.slice();ze.splice(ke,1),Ce(U,ze,"removeOption",{option:Z[ke]})}break}},_t=J=>{Ie(!0),D&&!re.current&&Ye(J)},dt=J=>{if(t(ue)){ce.current.focus();return}Ie(!1),ae.current=!0,re.current=!1,l&&ee.current!==-1&&Te?We(J,se[ee.current],"blur"):l&&y&&le!==""?We(J,le,"blur","freeSolo"):i&&Se(J,Z),$e(J,"blur")},st=J=>{const U=J.target.value;le!==U&&(ge(U),Oe(!1),j&&j(J,U,"input")),U===""?!p&&!L&&Ce(J,null,"clear"):Ye(J)},ut=J=>{const U=Number(J.currentTarget.getAttribute("data-option-index"));ee.current!==U&&je({event:J,index:U,reason:"mouse"})},Et=J=>{je({event:J,index:Number(J.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Me.current=!0},Kt=J=>{const U=Number(J.currentTarget.getAttribute("data-option-index"));We(J,se[U],"selectOption"),Me.current=!1},pn=J=>U=>{const ke=Z.slice();ke.splice(J,1),Ce(U,ke,"removeOption",{option:Z[J]})},fn=J=>{te?$e(J,"toggleInput"):Ye(J)},mn=J=>{J.currentTarget.contains(J.target)&&J.target.getAttribute("id")!==G&&J.preventDefault()},kr=J=>{J.currentTarget.contains(J.target)&&(ce.current.focus(),z&&ae.current&&ce.current.selectionEnd-ce.current.selectionStart===0&&ce.current.select(),ae.current=!1)},Bn=J=>{!g&&(le===""||!te)&&fn(J)};let xn=y&&le.length>0;xn=xn||(L?Z.length>0:Z!==null);let Er=se;return P&&(Er=se.reduce((J,U,ke)=>{const ze=P(U);return J.length>0&&J[J.length-1].group===ze?J[J.length-1].options.push(U):J.push({key:ke,index:ke,group:ze,options:[U]}),J},[])),g&&me&&dt(),{getRootProps:(J={})=>m({"aria-owns":tt?`${G}-listbox`:null},J,{onKeyDown:rt(J),onMouseDown:mn,onClick:kr}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:le,onBlur:dt,onFocus:_t,onChange:st,onMouseDown:Bn,"aria-activedescendant":Te?"":null,"aria-autocomplete":r?"both":"list","aria-controls":tt?`${G}-listbox`:void 0,"aria-expanded":tt,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ge}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fn}),getTagProps:({index:J})=>m({key:J,"data-tag-index":J,tabIndex:-1},!H&&{onDelete:pn(J)}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,ref:Ne,onMouseDown:J=>{J.preventDefault()}}),getOptionProps:({index:J,option:U})=>{var ke;const ze=(L?Z:[Z]).some(_e=>_e!=null&&F(U,_e)),Je=x?x(U):!1;return{key:(ke=S==null?void 0:S(U))!=null?ke:q(U),tabIndex:-1,role:"option",id:`${G}-option-${J}`,onMouseMove:ut,onClick:Kt,onTouchStart:Et,"data-option-index":J,"aria-disabled":Je,"aria-selected":ze}},id:G,inputValue:le,value:Z,dirty:xn,expanded:Te&&ye,popupOpen:Te,focused:me||he!==-1,anchorEl:ye,setAnchorEl:de,focusedTag:he,groupedOptions:Er}}var zg={};Object.defineProperty(zg,"__esModule",{value:!0});var aS=zg.default=void 0,hF=vF(d),gF=tS;function cS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cS=function(r){return r?n:t})(e)}function vF(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cS(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}function yF(e){return Object.keys(e).length===0}function bF(e=null){const t=hF.useContext(gF.ThemeContext);return!t||yF(t)?e:t}aS=zg.default=bF;var Ln="top",br="bottom",Cr="right",Nn="left",Hg="auto",cc=[Ln,br,Cr,Nn],Xs="start",Ba="end",CF="clippingParents",uS="viewport",Di="popper",xF="reference",Jb=cc.reduce(function(e,t){return e.concat([t+"-"+Xs,t+"-"+Ba])},[]),dS=[].concat(cc,[Hg]).reduce(function(e,t){return e.concat([t,t+"-"+Xs,t+"-"+Ba])},[]),wF="beforeRead",SF="read",PF="afterRead",kF="beforeMain",EF="main",IF="afterMain",MF="beforeWrite",$F="write",RF="afterWrite",TF=[wF,SF,PF,kF,EF,IF,MF,$F,RF];function so(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hl(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function hr(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bg(e){if(typeof ShadowRoot>"u")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!hr(l)||!so(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?l.removeAttribute(s):l.setAttribute(s,i===!0?"":i)}))})}function FF(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],l=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(a,c){return a[c]="",a},{});!hr(o)||!so(o)||(Object.assign(o.style,i),Object.keys(l).forEach(function(a){o.removeAttribute(a)}))})}}const DF={name:"applyStyles",enabled:!0,phase:"write",fn:OF,effect:FF,requires:["computeStyles"]};function no(e){return e.split("-")[0]}var $l=Math.max,Qu=Math.min,Zs=Math.round;function Hm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pS(){return!/^((?!chrome|android).)*safari/i.test(Hm())}function Js(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,l=1;t&&hr(e)&&(o=e.offsetWidth>0&&Zs(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Zs(r.height)/e.offsetHeight||1);var s=Hl(e)?er(e):window,i=s.visualViewport,a=!pS()&&n,c=(r.left+(a&&i?i.offsetLeft:0))/o,u=(r.top+(a&&i?i.offsetTop:0))/l,p=r.width/o,f=r.height/l;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function Vg(e){var t=Js(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 fS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Io(e){return er(e).getComputedStyle(e)}function jF(e){return["table","td","th"].indexOf(so(e))>=0}function ul(e){return((Hl(e)?e.ownerDocument:e.document)||window.document).documentElement}function pp(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Bg(e)?e.host:null)||ul(e)}function e0(e){return!hr(e)||Io(e).position==="fixed"?null:e.offsetParent}function _F(e){var t=/firefox/i.test(Hm()),n=/Trident/i.test(Hm());if(n&&hr(e)){var r=Io(e);if(r.position==="fixed")return null}var o=pp(e);for(Bg(o)&&(o=o.host);hr(o)&&["html","body"].indexOf(so(o))<0;){var l=Io(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function uc(e){for(var t=er(e),n=e0(e);n&&jF(n)&&Io(n).position==="static";)n=e0(n);return n&&(so(n)==="html"||so(n)==="body"&&Io(n).position==="static")?t:n||_F(e)||t}function Gg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ua(e,t,n){return $l(e,Qu(t,n))}function LF(e,t,n){var r=ua(e,t,n);return r>n?n:r}function mS(){return{top:0,right:0,bottom:0,left:0}}function hS(e){return Object.assign({},mS(),e)}function gS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var NF=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hS(typeof t!="number"?t:gS(t,cc))};function AF(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,s=n.modifiersData.popperOffsets,i=no(n.placement),a=Gg(i),c=[Nn,Cr].indexOf(i)>=0,u=c?"height":"width";if(!(!l||!s)){var p=NF(o.padding,n),f=Vg(l),g=a==="y"?Ln:Nn,h=a==="y"?br:Cr,b=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],w=s[a]-n.rects.reference[a],C=uc(l),y=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,x=b/2-w/2,S=p[g],T=y-f[u]-p[h],P=y/2-f[u]/2+x,k=ua(S,P,T),E=a;n.modifiersData[r]=(t={},t[E]=k,t.centerOffset=k-P,t)}}function zF(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)||fS(t.elements.popper,o)&&(t.elements.arrow=o))}const HF={name:"arrow",enabled:!0,phase:"main",fn:AF,effect:zF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var BF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VF(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Zs(n*o)/o||0,y:Zs(r*o)/o||0}}function t0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,s=e.offsets,i=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=s.x,g=f===void 0?0:f,h=s.y,b=h===void 0?0:h,w=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var C=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Nn,S=Ln,T=window;if(c){var P=uc(n),k="clientHeight",E="clientWidth";if(P===er(n)&&(P=ul(n),Io(P).position!=="static"&&i==="absolute"&&(k="scrollHeight",E="scrollWidth")),P=P,o===Ln||(o===Nn||o===Cr)&&l===Ba){S=br;var _=p&&P===T&&T.visualViewport?T.visualViewport.height:P[k];b-=_-r.height,b*=a?1:-1}if(o===Nn||(o===Ln||o===br)&&l===Ba){x=Cr;var R=p&&P===T&&T.visualViewport?T.visualViewport.width:P[E];g-=R-r.width,g*=a?1:-1}}var F=Object.assign({position:i},c&&BF),L=u===!0?VF({x:g,y:b},er(n)):{x:g,y:b};if(g=L.x,b=L.y,a){var O;return Object.assign({},F,(O={},O[S]=y?"0":"",O[x]=C?"0":"",O.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",O))}return Object.assign({},F,(t={},t[S]=y?b+"px":"",t[x]=C?g+"px":"",t.transform="",t))}function GF(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,l=n.adaptive,s=l===void 0?!0:l,i=n.roundOffsets,a=i===void 0?!0:i,c={placement:no(t.placement),variation:ei(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,t0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const WF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GF,data:{}};var Hc={passive:!0};function UF(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,a=er(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(u){u.addEventListener("scroll",n.update,Hc)}),i&&a.addEventListener("resize",n.update,Hc),function(){l&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Hc)}),i&&a.removeEventListener("resize",n.update,Hc)}}const KF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UF,data:{}};var qF={left:"right",right:"left",bottom:"top",top:"bottom"};function fu(e){return e.replace(/left|right|bottom|top/g,function(t){return qF[t]})}var YF={start:"end",end:"start"};function n0(e){return e.replace(/start|end/g,function(t){return YF[t]})}function Wg(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ug(e){return Js(ul(e)).left+Wg(e).scrollLeft}function QF(e,t){var n=er(e),r=ul(e),o=n.visualViewport,l=r.clientWidth,s=r.clientHeight,i=0,a=0;if(o){l=o.width,s=o.height;var c=pS();(c||!c&&t==="fixed")&&(i=o.offsetLeft,a=o.offsetTop)}return{width:l,height:s,x:i+Ug(e),y:a}}function XF(e){var t,n=ul(e),r=Wg(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=$l(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=$l(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Ug(e),a=-r.scrollTop;return Io(o||n).direction==="rtl"&&(i+=$l(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:s,x:i,y:a}}function Kg(e){var t=Io(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function vS(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:hr(e)&&Kg(e)?e:vS(pp(e))}function da(e,t){var n;t===void 0&&(t=[]);var r=vS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=er(r),s=o?[l].concat(l.visualViewport||[],Kg(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(da(pp(s)))}function Bm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZF(e,t){var n=Js(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 r0(e,t,n){return t===uS?Bm(QF(e,n)):Hl(t)?ZF(t,n):Bm(XF(ul(e)))}function JF(e){var t=da(pp(e)),n=["absolute","fixed"].indexOf(Io(e).position)>=0,r=n&&hr(e)?uc(e):e;return Hl(r)?t.filter(function(o){return Hl(o)&&fS(o,r)&&so(o)!=="body"}):[]}function eD(e,t,n,r){var o=t==="clippingParents"?JF(e):[].concat(t),l=[].concat(o,[n]),s=l[0],i=l.reduce(function(a,c){var u=r0(e,c,r);return a.top=$l(u.top,a.top),a.right=Qu(u.right,a.right),a.bottom=Qu(u.bottom,a.bottom),a.left=$l(u.left,a.left),a},r0(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function yS(e){var t=e.reference,n=e.element,r=e.placement,o=r?no(r):null,l=r?ei(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,a;switch(o){case Ln:a={x:s,y:t.y-n.height};break;case br:a={x:s,y:t.y+t.height};break;case Cr:a={x:t.x+t.width,y:i};break;case Nn:a={x:t.x-n.width,y:i};break;default:a={x:t.x,y:t.y}}var c=o?Gg(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(l){case Xs:a[c]=a[c]-(t[u]/2-n[u]/2);break;case Ba:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function Va(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,l=n.strategy,s=l===void 0?e.strategy:l,i=n.boundary,a=i===void 0?CF:i,c=n.rootBoundary,u=c===void 0?uS:c,p=n.elementContext,f=p===void 0?Di:p,g=n.altBoundary,h=g===void 0?!1:g,b=n.padding,w=b===void 0?0:b,C=hS(typeof w!="number"?w:gS(w,cc)),y=f===Di?xF:Di,x=e.rects.popper,S=e.elements[h?y:f],T=eD(Hl(S)?S:S.contextElement||ul(e.elements.popper),a,u,s),P=Js(e.elements.reference),k=yS({reference:P,element:x,placement:o}),E=Bm(Object.assign({},x,k)),_=f===Di?E:P,R={top:T.top-_.top+C.top,bottom:_.bottom-T.bottom+C.bottom,left:T.left-_.left+C.left,right:_.right-T.right+C.right},F=e.modifiersData.offset;if(f===Di&&F){var L=F[o];Object.keys(R).forEach(function(O){var I=[Cr,br].indexOf(O)>=0?1:-1,$=[Ln,br].indexOf(O)>=0?"y":"x";R[O]+=L[$]*I})}return R}function tD(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,s=n.padding,i=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?dS:a,u=ei(r),p=u?i?Jb:Jb.filter(function(h){return ei(h)===u}):cc,f=p.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=p);var g=f.reduce(function(h,b){return h[b]=Va(e,{placement:b,boundary:o,rootBoundary:l,padding:s})[no(b)],h},{});return Object.keys(g).sort(function(h,b){return g[h]-g[b]})}function nD(e){if(no(e)===Hg)return[];var t=fu(e);return[n0(e),t,n0(t)]}function rD(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,a=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,b=n.allowedAutoPlacements,w=t.options.placement,C=no(w),y=C===w,x=a||(y||!h?[fu(w)]:nD(w)),S=[w].concat(x).reduce(function(G,q){return G.concat(no(q)===Hg?tD(t,{placement:q,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:b}):q)},[]),T=t.rects.reference,P=t.rects.popper,k=new Map,E=!0,_=S[0],R=0;R<S.length;R++){var F=S[R],L=no(F),O=ei(F)===Xs,I=[Ln,br].indexOf(L)>=0,$=I?"width":"height",j=Va(t,{placement:F,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),N=I?O?Cr:Nn:O?br:Ln;T[$]>P[$]&&(N=fu(N));var M=fu(N),D=[];if(l&&D.push(j[L]<=0),i&&D.push(j[N]<=0,j[M]<=0),D.every(function(G){return G})){_=F,E=!1;break}k.set(F,D)}if(E)for(var A=h?3:1,H=function(q){var re=S.find(function(ae){var ce=k.get(ae);if(ce)return ce.slice(0,q).every(function(ue){return ue})});if(re)return _=re,"break"},z=A;z>0;z--){var W=H(z);if(W==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const oD={name:"flip",enabled:!0,phase:"main",fn:rD,requiresIfExists:["offset"],data:{_skip:!1}};function o0(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 l0(e){return[Ln,Cr,br,Nn].some(function(t){return e[t]>=0})}function lD(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,s=Va(t,{elementContext:"reference"}),i=Va(t,{altBoundary:!0}),a=o0(s,r),c=o0(i,o,l),u=l0(a),p=l0(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const sD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lD};function iD(e,t,n){var r=no(e),o=[Nn,Ln].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=l[0],i=l[1];return s=s||0,i=(i||0)*o,[Nn,Cr].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function aD(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=o===void 0?[0,0]:o,s=dS.reduce(function(u,p){return u[p]=iD(p,t.rects,l),u},{}),i=s[t.placement],a=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const cD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aD};function uD(e){var t=e.state,n=e.name;t.modifiersData[n]=yS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dD={name:"popperOffsets",enabled:!0,phase:"read",fn:uD,data:{}};function pD(e){return e==="x"?"y":"x"}function fD(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,g=f===void 0?!0:f,h=n.tetherOffset,b=h===void 0?0:h,w=Va(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:u}),C=no(t.placement),y=ei(t.placement),x=!y,S=Gg(C),T=pD(S),P=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,_=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(P){if(l){var O,I=S==="y"?Ln:Nn,$=S==="y"?br:Cr,j=S==="y"?"height":"width",N=P[S],M=N+w[I],D=N-w[$],A=g?-E[j]/2:0,H=y===Xs?k[j]:E[j],z=y===Xs?-E[j]:-k[j],W=t.elements.arrow,G=g&&W?Vg(W):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mS(),re=q[I],ae=q[$],ce=ua(0,k[j],G[j]),ue=x?k[j]/2-A-ce-re-R.mainAxis:H-ce-re-R.mainAxis,ye=x?-k[j]/2+A+ce+ae+R.mainAxis:z+ce+ae+R.mainAxis,de=t.elements.arrow&&uc(t.elements.arrow),he=de?S==="y"?de.clientTop||0:de.clientLeft||0:0,Y=(O=F==null?void 0:F[S])!=null?O:0,pe=N+ue-Y-he,ee=N+ye-Y,Z=ua(g?Qu(M,pe):M,N,g?$l(D,ee):D);P[S]=Z,L[S]=Z-N}if(i){var fe,le=S==="x"?Ln:Nn,ge=S==="x"?br:Cr,me=P[T],Ie=T==="y"?"height":"width",Se=me+w[le],te=me-w[ge],oe=[Ln,Nn].indexOf(C)!==-1,xe=(fe=F==null?void 0:F[T])!=null?fe:0,Oe=oe?Se:me-k[Ie]-E[Ie]-xe+R.altAxis,Ve=oe?me+k[Ie]+E[Ie]-xe-R.altAxis:te,Te=g&&oe?LF(Oe,me,Ve):ua(g?Oe:Se,me,g?Ve:te);P[T]=Te,L[T]=Te-me}t.modifiersData[r]=L}}const mD={name:"preventOverflow",enabled:!0,phase:"main",fn:fD,requiresIfExists:["offset"]};function hD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gD(e){return e===er(e)||!hr(e)?Wg(e):hD(e)}function vD(e){var t=e.getBoundingClientRect(),n=Zs(t.width)/e.offsetWidth||1,r=Zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yD(e,t,n){n===void 0&&(n=!1);var r=hr(t),o=hr(t)&&vD(t),l=ul(t),s=Js(e,o,n),i={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||Kg(l))&&(i=gD(t)),hr(t)?(a=Js(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Ug(l))),{x:s.left+i.scrollLeft-a.x,y:s.top+i.scrollTop-a.y,width:s.width,height:s.height}}function bD(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var s=[].concat(l.requires||[],l.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var a=t.get(i);a&&o(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),r}function CD(e){var t=bD(e);return TF.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function xD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wD(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 s0={placement:"bottom",modifiers:[],strategy:"absolute"};function i0(){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 SD(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,l=o===void 0?s0:o;return function(i,a,c){c===void 0&&(c=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},s0,l),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},p=[],f=!1,g={state:u,setOptions:function(C){var y=typeof C=="function"?C(u.options):C;b(),u.options=Object.assign({},l,u.options,y),u.scrollParents={reference:Hl(i)?da(i):i.contextElement?da(i.contextElement):[],popper:da(a)};var x=CD(wD([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(S){return S.enabled}),h(),g.update()},forceUpdate:function(){if(!f){var C=u.elements,y=C.reference,x=C.popper;if(i0(y,x)){u.rects={reference:yD(y,uc(x),u.options.strategy==="fixed"),popper:Vg(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var T=u.orderedModifiers[S],P=T.fn,k=T.options,E=k===void 0?{}:k,_=T.name;typeof P=="function"&&(u=P({state:u,options:E,name:_,instance:g})||u)}}}},update:xD(function(){return new Promise(function(w){g.forceUpdate(),w(u)})}),destroy:function(){b(),f=!0}};if(!i0(i,a))return g;g.setOptions(c).then(function(w){!f&&c.onFirstUpdate&&c.onFirstUpdate(w)});function h(){u.orderedModifiers.forEach(function(w){var C=w.name,y=w.options,x=y===void 0?{}:y,S=w.effect;if(typeof S=="function"){var T=S({state:u,name:C,instance:g,options:x}),P=function(){};p.push(T||P)}})}function b(){p.forEach(function(w){return w()}),p=[]}return g}}var PD=[KF,dD,WF,DF,cD,oD,mD,HF,sD],kD=SD({defaultModifiers:PD});function ED(e){return typeof e=="function"?e():e}const bS=d.forwardRef(function(t,n){const{children:r,container:o,disablePortal:l=!1}=t,[s,i]=d.useState(null),a=wt(d.isValidElement(r)?ql(r):null,n);if(vt(()=>{l||i(ED(o)||document.body)},[o,l]),vt(()=>{if(s&&!l)return Na(n,s),()=>{Na(n,null)}},[n,s,l]),l){if(d.isValidElement(r)){const c={ref:a};return d.cloneElement(r,c)}return v.jsx(d.Fragment,{children:r})}return v.jsx(d.Fragment,{children:s&&nc.createPortal(r,s)})});function ID(e){return He("MuiPopper",e)}Be("MuiPopper",["root"]);const MD=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],$D=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function RD(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 Vm(e){return typeof e=="function"?e():e}function TD(e){return e.nodeType!==void 0}const OD=e=>{const{classes:t}=e;return we({root:["root"]},ID,t)},FD={},DD=d.forwardRef(function(t,n){var r;const{anchorEl:o,children:l,direction:s,disablePortal:i,modifiers:a,open:c,placement:u,popperOptions:p,popperRef:f,slotProps:g={},slots:h={},TransitionProps:b}=t,w=K(t,MD),C=d.useRef(null),y=wt(C,n),x=d.useRef(null),S=wt(x,f),T=d.useRef(S);vt(()=>{T.current=S},[S]),d.useImperativeHandle(f,()=>x.current,[]);const P=RD(u,s),[k,E]=d.useState(P),[_,R]=d.useState(Vm(o));d.useEffect(()=>{x.current&&x.current.forceUpdate()}),d.useEffect(()=>{o&&R(Vm(o))},[o]),vt(()=>{if(!_||!c)return;const $=M=>{E(M.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{$(M)}}];a!=null&&(j=j.concat(a)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const N=kD(_,C.current,m({placement:P},p,{modifiers:j}));return T.current(N),()=>{N.destroy(),T.current(null)}},[_,i,a,c,p,P]);const F={placement:k};b!==null&&(F.TransitionProps=b);const L=OD(t),O=(r=h.root)!=null?r:"div",I=Jn({elementType:O,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:L.root});return v.jsx(O,m({},I,{children:typeof l=="function"?l(F):l}))}),jD=d.forwardRef(function(t,n){const{anchorEl:r,children:o,container:l,direction:s="ltr",disablePortal:i=!1,keepMounted:a=!1,modifiers:c,open:u,placement:p="bottom",popperOptions:f=FD,popperRef:g,style:h,transition:b=!1,slotProps:w={},slots:C={}}=t,y=K(t,$D),[x,S]=d.useState(!0),T=()=>{S(!1)},P=()=>{S(!0)};if(!a&&!u&&(!b||x))return null;let k;if(l)k=l;else if(r){const R=Vm(r);k=R&&TD(R)?jt(R).body:jt(null).body}const E=!u&&a&&(!b||x)?"none":void 0,_=b?{in:u,onEnter:T,onExited:P}:void 0;return v.jsx(bS,{disablePortal:i,container:k,children:v.jsx(DD,m({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:b?!x:u,placement:p,popperOptions:f,popperRef:g,slotProps:w,slots:C},y,{style:m({position:"fixed",top:0,left:0,display:E},h),TransitionProps:_,children:o}))})}),_D=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],LD=X(jD,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yl=d.forwardRef(function(t,n){var r;const o=aS(),l=Ke({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:c,container:u,disablePortal:p,keepMounted:f,modifiers:g,open:h,placement:b,popperOptions:w,popperRef:C,transition:y,slots:x,slotProps:S}=l,T=K(l,_D),P=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,k=m({anchorEl:s,container:u,disablePortal:p,keepMounted:f,modifiers:g,open:h,placement:b,popperOptions:w,popperRef:C,transition:y},T);return v.jsx(LD,m({as:i,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:S??c},k,{ref:n}))});function ND(e){return He("MuiListSubheader",e)}Be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const AD=["className","color","component","disableGutters","disableSticky","inset"],zD=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:l}=e,s={root:["root",n!=="default"&&`color${Q(n)}`,!r&&"gutters",o&&"inset",!l&&"sticky"]};return we(s,ND,t)},HD=X("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Q(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>m({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})),CS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListSubheader"}),{className:o,color:l="default",component:s="li",disableGutters:i=!1,disableSticky:a=!1,inset:c=!1}=r,u=K(r,AD),p=m({},r,{color:l,component:s,disableGutters:i,disableSticky:a,inset:c}),f=zD(p);return v.jsx(HD,m({as:s,className:ne(f.root,o),ref:n,ownerState:p},u))});CS.muiSkipListHighlight=!0;const BD=ot(v.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 VD(e){return He("MuiChip",e)}const mt=Be("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),GD=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],WD=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:l,onDelete:s,clickable:i,variant:a}=e,c={root:["root",a,n&&"disabled",`size${Q(r)}`,`color${Q(o)}`,i&&"clickable",i&&`clickableColor${Q(o)}`,s&&"deletable",s&&`deletableColor${Q(o)}`,`${a}${Q(o)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(o)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(l)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(o)}`,`deleteIcon${Q(a)}Color${Q(o)}`]};return we(c,VD,t)},UD=X("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:l,onDelete:s,size:i,variant:a}=n;return[{[`& .${mt.avatar}`]:t.avatar},{[`& .${mt.avatar}`]:t[`avatar${Q(i)}`]},{[`& .${mt.avatar}`]:t[`avatarColor${Q(r)}`]},{[`& .${mt.icon}`]:t.icon},{[`& .${mt.icon}`]:t[`icon${Q(i)}`]},{[`& .${mt.icon}`]:t[`iconColor${Q(o)}`]},{[`& .${mt.deleteIcon}`]:t.deleteIcon},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${Q(i)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIconColor${Q(r)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${Q(a)}Color${Q(r)}`]},t.root,t[`size${Q(i)}`],t[`color${Q(r)}`],l&&t.clickable,l&&r!=="default"&&t[`clickableColor${Q(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Q(r)}`],t[a],t[`${a}${Q(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return m({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mt.icon}`]:m({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&m({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${mt.deleteIcon}`]:m({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:pt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:pt(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&&{[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>m({},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}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(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, &.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>m({},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]}`,[`&.${mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mt.avatar}`]:{marginLeft:4},[`& .${mt.avatarSmall}`]:{marginLeft:2},[`& .${mt.icon}`]:{marginLeft:4},[`& .${mt.iconSmall}`]:{marginLeft:2},[`& .${mt.deleteIcon}`]:{marginRight:5},[`& .${mt.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)`:pt(e.palette[t.color].main,.7)}`,[`&.${mt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:pt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),KD=X("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Q(r)}`]]}})(({ownerState:e})=>m({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function a0(e){return e.key==="Backspace"||e.key==="Delete"}const qg=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiChip"}),{avatar:o,className:l,clickable:s,color:i="default",component:a,deleteIcon:c,disabled:u=!1,icon:p,label:f,onClick:g,onDelete:h,onKeyDown:b,onKeyUp:w,size:C="medium",variant:y="filled",tabIndex:x,skipFocusWhenDisabled:S=!1}=r,T=K(r,GD),P=d.useRef(null),k=wt(P,n),E=D=>{D.stopPropagation(),h&&h(D)},_=D=>{D.currentTarget===D.target&&a0(D)&&D.preventDefault(),b&&b(D)},R=D=>{D.currentTarget===D.target&&(h&&a0(D)?h(D):D.key==="Escape"&&P.current&&P.current.blur()),w&&w(D)},F=s!==!1&&g?!0:s,L=F||h?ll:a||"div",O=m({},r,{component:L,disabled:u,size:C,color:i,iconColor:d.isValidElement(p)&&p.props.color||i,onDelete:!!h,clickable:F,variant:y}),I=WD(O),$=L===ll?m({component:a||"div",focusVisibleClassName:I.focusVisible},h&&{disableRipple:!0}):{};let j=null;h&&(j=c&&d.isValidElement(c)?d.cloneElement(c,{className:ne(c.props.className,I.deleteIcon),onClick:E}):v.jsx(BD,{className:ne(I.deleteIcon),onClick:E}));let N=null;o&&d.isValidElement(o)&&(N=d.cloneElement(o,{className:ne(I.avatar,o.props.className)}));let M=null;return p&&d.isValidElement(p)&&(M=d.cloneElement(p,{className:ne(I.icon,p.props.className)})),v.jsxs(UD,m({as:L,className:ne(I.root,l),disabled:F&&u?!0:void 0,onClick:g,onKeyDown:_,onKeyUp:R,ref:k,tabIndex:S&&u?-1:x,ownerState:O},$,T,{children:[N||M,v.jsx(KD,{className:ne(I.label),ownerState:O,children:f}),j]}))}),qD=["onChange","maxRows","minRows","style","value"];function Bc(e){return parseInt(e,10)||0}const YD={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function QD(e){for(const t in e)return!1;return!0}function c0(e){return QD(e)||e.outerHeightStyle===0&&!e.overflowing}const XD=d.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:l=1,style:s,value:i}=t,a=K(t,qD),{current:c}=d.useRef(i!=null),u=d.useRef(null),p=wt(n,u),f=d.useRef(null),g=d.useRef(null),h=d.useCallback(()=>{const x=u.current,S=g.current;if(!x||!S)return;const P=Br(x).getComputedStyle(x);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=P.width,S.value=x.value||t.placeholder||"x",S.value.slice(-1)===`
129
+ `&&(S.value+=" ");const k=P.boxSizing,E=Bc(P.paddingBottom)+Bc(P.paddingTop),_=Bc(P.borderBottomWidth)+Bc(P.borderTopWidth),R=S.scrollHeight;S.value="x";const F=S.scrollHeight;let L=R;l&&(L=Math.max(Number(l)*F,L)),o&&(L=Math.min(Number(o)*F,L)),L=Math.max(L,F);const O=L+(k==="border-box"?E+_:0),I=Math.abs(L-R)<=1;return{outerHeightStyle:O,overflowing:I}},[o,l,t.placeholder]),b=Ct(()=>{const x=u.current,S=h();if(!x||!S||c0(S))return!1;const T=S.outerHeightStyle;return f.current!=null&&f.current!==T}),w=d.useCallback(()=>{const x=u.current,S=h();if(!x||!S||c0(S))return;const T=S.outerHeightStyle;f.current!==T&&(f.current=T,x.style.height=`${T}px`),x.style.overflow=S.overflowing?"hidden":""},[h]),C=d.useRef(-1);vt(()=>{const x=Kl(w),S=u==null?void 0:u.current;if(!S)return;const T=Br(S);T.addEventListener("resize",x);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{b()&&(P.unobserve(S),cancelAnimationFrame(C.current),w(),C.current=requestAnimationFrame(()=>{P.observe(S)}))}),P.observe(S)),()=>{x.clear(),cancelAnimationFrame(C.current),T.removeEventListener("resize",x),P&&P.disconnect()}},[h,w,b]),vt(()=>{w()});const y=x=>{c||w(),r&&r(x)};return v.jsxs(d.Fragment,{children:[v.jsx("textarea",m({value:i,onChange:y,ref:p,rows:l,style:s},a)),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:m({},YD.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function Ql({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const fp=d.createContext(void 0);function Ro(){return d.useContext(fp)}function xS(e){return v.jsx(T1,m({},e,{defaultTheme:up,themeId:Al}))}function u0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xu(e,t=!1){return e&&(u0(e.value)&&e.value!==""||t&&u0(e.defaultValue)&&e.defaultValue!=="")}function ZD(e){return e.startAdornment}function JD(e){return He("MuiInputBase",e)}const Wn=Be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ej=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],mp=(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${Q(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hp=(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]},tj=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:l,focused:s,formControl:i,fullWidth:a,hiddenLabel:c,multiline:u,readOnly:p,size:f,startAdornment:g,type:h}=e,b={root:["root",`color${Q(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",i&&"formControl",f&&f!=="medium"&&`size${Q(f)}`,u&&"multiline",g&&"adornedStart",l&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",l&&"inputAdornedEnd",p&&"readOnly"]};return we(b,JD,t)},gp=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mp})(({theme:e,ownerState:t})=>m({},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",[`&.${Wn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&m({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),vp=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=m({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"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return m({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] + .${Wn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Wn.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"})}),nj=v.jsx(xS,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),yi=d.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:i,className:a,components:c={},componentsProps:u={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:g,endAdornment:h,fullWidth:b=!1,id:w,inputComponent:C="input",inputProps:y={},inputRef:x,maxRows:S,minRows:T,multiline:P=!1,name:k,onBlur:E,onChange:_,onClick:R,onFocus:F,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:$,renderSuffix:j,rows:N,slotProps:M={},slots:D={},startAdornment:A,type:H="text",value:z}=o,W=K(o,ej),G=y.value!=null?y.value:z,{current:q}=d.useRef(G!=null),re=d.useRef(),ae=d.useCallback(Te=>{},[]),ce=wt(re,x,y.ref,ae),[ue,ye]=d.useState(!1),de=Ro(),he=Ql({props:o,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=de?de.focused:ue,d.useEffect(()=>{!de&&f&&ue&&(ye(!1),E&&E())},[de,f,ue,E]);const Y=de&&de.onFilled,pe=de&&de.onEmpty,ee=d.useCallback(Te=>{Xu(Te)?Y&&Y():pe&&pe()},[Y,pe]);vt(()=>{q&&ee({value:G})},[G,ee,q]);const Z=Te=>{if(he.disabled){Te.stopPropagation();return}F&&F(Te),y.onFocus&&y.onFocus(Te),de&&de.onFocus?de.onFocus(Te):ye(!0)},fe=Te=>{E&&E(Te),y.onBlur&&y.onBlur(Te),de&&de.onBlur?de.onBlur(Te):ye(!1)},le=(Te,...se)=>{if(!q){const qe=Te.target||re.current;if(qe==null)throw new Error(Eo(1));ee({value:qe.value})}y.onChange&&y.onChange(Te,...se),_&&_(Te,...se)};d.useEffect(()=>{ee(re.current)},[]);const ge=Te=>{re.current&&Te.currentTarget===Te.target&&re.current.focus(),R&&R(Te)};let me=C,Ie=y;P&&me==="input"&&(N?Ie=m({type:void 0,minRows:N,maxRows:N},Ie):Ie=m({type:void 0,maxRows:S,minRows:T},Ie),me=XD);const Se=Te=>{ee(Te.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};d.useEffect(()=>{de&&de.setAdornedStart(!!A)},[de,A]);const te=m({},o,{color:he.color||"primary",disabled:he.disabled,endAdornment:h,error:he.error,focused:he.focused,formControl:de,fullWidth:b,hiddenLabel:he.hiddenLabel,multiline:P,size:he.size,startAdornment:A,type:H}),oe=tj(te),xe=D.root||c.Root||gp,Oe=M.root||u.root||{},Ve=D.input||c.Input||vp;return Ie=m({},Ie,(r=M.input)!=null?r:u.input),v.jsxs(d.Fragment,{children:[!g&&nj,v.jsxs(xe,m({},Oe,!Aa(xe)&&{ownerState:m({},te,Oe.ownerState)},{ref:n,onClick:ge},W,{className:ne(oe.root,Oe.className,a,$&&"MuiInputBase-readOnly"),children:[A,v.jsx(fp.Provider,{value:null,children:v.jsx(Ve,m({ownerState:te,"aria-invalid":he.error,"aria-describedby":l,autoComplete:s,autoFocus:i,defaultValue:p,disabled:he.disabled,id:w,onAnimationStart:Se,name:k,placeholder:I,readOnly:$,required:he.required,rows:N,value:G,onKeyDown:L,onKeyUp:O,type:H},Ie,!Aa(Ve)&&{as:me,ownerState:m({},te,Ie.ownerState)},{ref:ce,className:ne(oe.input,Ie.className,$&&"MuiInputBase-readOnly"),onBlur:fe,onChange:le,onFocus:Z}))}),h,j?j(m({},he,{startAdornment:A})):null]}))]})});function rj(e){return He("MuiInput",e)}const Vo=m({},Wn,Be("MuiInput",["root","underline","input"]));function oj(e){return He("MuiOutlinedInput",e)}const qr=m({},Wn,Be("MuiOutlinedInput",["root","notchedOutline","input"]));function lj(e){return He("MuiFilledInput",e)}const Un=m({},Wn,Be("MuiFilledInput",["root","underline","input"])),wS=ot(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function sj(e){return He("MuiAutocomplete",e)}const nt=Be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var d0,p0;const ij=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],aj=["ref"],cj=["key"],uj=["key"],dj=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:l,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,popupOpen:c,size:u}=e,p={root:["root",r&&"expanded",o&&"focused",l&&"fullWidth",s&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${Q(u)}`],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 we(p,sj,t)},pj=X("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:l,inputFocused:s,size:i}=n;return[{[`& .${nt.tag}`]:t.tag},{[`& .${nt.tag}`]:t[`tagSize${Q(i)}`]},{[`& .${nt.inputRoot}`]:t.inputRoot},{[`& .${nt.input}`]:t.input},{[`& .${nt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,l&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${nt.focused} .${nt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nt.clearIndicator}`]:{visibility:"visible"}},[`& .${nt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${nt.inputRoot}`]:{[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:30},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:56},[`& .${nt.input}`]:{width:0,minWidth:30}},[`& .${Vo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Vo.root}.${Wn.sizeSmall}`]:{[`& .${Vo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${qr.root}`]:{padding:9,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${nt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${qr.root}.${Wn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Un.root}`]:{paddingTop:19,paddingLeft:8,[`.${nt.hasPopupIcon}&, .${nt.hasClearIcon}&`]:{paddingRight:39},[`.${nt.hasPopupIcon}.${nt.hasClearIcon}&`]:{paddingRight:65},[`& .${Un.input}`]:{padding:"7px 4px"},[`& .${nt.endAdornment}`]:{right:9}},[`& .${Un.root}.${Wn.sizeSmall}`]:{paddingBottom:1,[`& .${Un.input}`]:{padding:"2.5px 4px"}},[`& .${Wn.hiddenLabel}`]:{paddingTop:8},[`& .${Un.root}.${Wn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Un.root}.${Wn.hiddenLabel}.${Wn.sizeSmall}`]:{[`& .${nt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${nt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${nt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${nt.inputRoot}`]:{flexWrap:"wrap"}}}]}),fj=X("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mj=X(jr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),hj=X(jr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>m({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gj=X(Yl,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),vj=X(Sr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>m({},e.typography.body1,{overflow:"auto"})),yj=X("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),bj=X("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Cj=X("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nt.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"},[`&.${nt.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"},[`&.${nt.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})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),xj=X(CS,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),wj=X("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${nt.option}`]:{paddingLeft:24}}),SS=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:p=!1,ChipProps:f,className:g,clearIcon:h=d0||(d0=v.jsx(eF,{fontSize:"small"})),clearOnBlur:b=!i.freeSolo,clearOnEscape:w=!1,clearText:C="Clear",closeText:y="Close",componentsProps:x={},defaultValue:S=i.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:P=!1,disabled:k=!1,disabledItemsFocusable:E=!1,disableListWrap:_=!1,disablePortal:R=!1,filterSelectedOptions:F=!1,forcePopupIcon:L="auto",freeSolo:O=!1,fullWidth:I=!1,getLimitTagsText:$=U=>`+${U}`,getOptionLabel:j,groupBy:N,handleHomeEndKeys:M=!i.freeSolo,includeInputInList:D=!1,limitTags:A=-1,ListboxComponent:H="ul",ListboxProps:z,loading:W=!1,loadingText:G="Loading…",multiple:q=!1,noOptionsText:re="No options",openOnFocus:ae=!1,openText:ce="Open",PaperComponent:ue=Sr,PopperComponent:ye=Yl,popupIcon:de=p0||(p0=v.jsx(wS,{})),readOnly:he=!1,renderGroup:Y,renderInput:pe,renderOption:ee,renderTags:Z,selectOnFocus:fe=!i.freeSolo,size:le="medium",slotProps:ge={}}=i,me=K(i,ij),{getRootProps:Ie,getInputProps:Se,getInputLabelProps:te,getPopupIndicatorProps:oe,getClearProps:xe,getTagProps:Oe,getListboxProps:Ve,getOptionProps:Te,value:se,dirty:qe,expanded:tt,id:Xe,popupOpen:be,focused:je,focusedTag:ie,anchorEl:Ee,setAnchorEl:Ae,inputValue:Ne,groupedOptions:Ye}=mF(m({},i,{componentName:"Autocomplete"})),$e=!T&&!k&&qe&&!he,Ce=(!O||L===!0)&&L!==!1,{onMouseDown:Me}=Se(),{ref:We}=z??{},Qe=Ve(),{ref:Pe}=Qe,Ge=K(Qe,aj),rt=wt(Pe,We),dt=j||(U=>{var ke;return(ke=U.label)!=null?ke:U}),st=m({},i,{disablePortal:R,expanded:tt,focused:je,fullWidth:I,getOptionLabel:dt,hasClearIcon:$e,hasPopupIcon:Ce,inputFocused:ie===-1,popupOpen:be,size:le}),ut=dj(st);let Et;if(q&&se.length>0){const U=ke=>m({className:ut.tag,disabled:k},Oe(ke));Z?Et=Z(se,U,st):Et=se.map((ke,ze)=>{const Je=U({index:ze}),{key:_e}=Je,lt=K(Je,cj);return v.jsx(qg,m({label:dt(ke),size:le},lt,f),_e)})}if(A>-1&&Array.isArray(Et)){const U=Et.length-A;!je&&U>0&&(Et=Et.splice(0,A),Et.push(v.jsx("span",{className:ut.tag,children:$(U)},Et.length)))}const pn=Y||(U=>v.jsxs("li",{children:[v.jsx(xj,{className:ut.groupLabel,ownerState:st,component:"div",children:U.group}),v.jsx(wj,{className:ut.groupUl,ownerState:st,children:U.children})]},U.key)),mn=ee||((U,ke)=>{const{key:ze}=U,Je=K(U,uj);return v.jsx("li",m({},Je,{children:dt(ke)}),ze)}),kr=(U,ke)=>{const ze=Te({option:U,index:ke});return mn(m({},ze,{className:ut.option}),U,{selected:ze["aria-selected"],index:ke,inputValue:Ne},st)},Bn=(r=ge.clearIndicator)!=null?r:x.clearIndicator,xn=(o=ge.paper)!=null?o:x.paper,Er=(l=ge.popper)!=null?l:x.popper,J=(s=ge.popupIndicator)!=null?s:x.popupIndicator;return v.jsxs(d.Fragment,{children:[v.jsx(pj,m({ref:n,className:ne(ut.root,g),ownerState:st},Ie(me),{children:pe({id:Xe,disabled:k,fullWidth:!0,size:le==="small"?"small":void 0,InputLabelProps:te(),InputProps:m({ref:Ae,className:ut.inputRoot,startAdornment:Et,onClick:U=>{U.target===U.currentTarget&&Me(U)}},($e||Ce)&&{endAdornment:v.jsxs(fj,{className:ut.endAdornment,ownerState:st,children:[$e?v.jsx(mj,m({},xe(),{"aria-label":C,title:C,ownerState:st},Bn,{className:ne(ut.clearIndicator,Bn==null?void 0:Bn.className),children:h})):null,Ce?v.jsx(hj,m({},oe(),{disabled:k,"aria-label":be?y:ce,title:be?y:ce,ownerState:st},J,{className:ne(ut.popupIndicator,J==null?void 0:J.className),children:de})):null]})}),inputProps:m({className:ut.input,disabled:k,readOnly:he},Se())})})),Ee?v.jsx(gj,m({as:ye,disablePortal:R,style:{width:Ee?Ee.clientWidth:null},ownerState:st,role:"presentation",anchorEl:Ee,open:be},Er,{className:ne(ut.popper,Er==null?void 0:Er.className),children:v.jsxs(vj,m({ownerState:st,as:ue},xn,{className:ne(ut.paper,xn==null?void 0:xn.className),children:[W&&Ye.length===0?v.jsx(yj,{className:ut.loading,ownerState:st,children:G}):null,Ye.length===0&&!O&&!W?v.jsx(bj,{className:ut.noOptions,ownerState:st,role:"presentation",onMouseDown:U=>{U.preventDefault()},children:re}):null,Ye.length>0?v.jsx(Cj,m({as:H,className:ut.listbox,ownerState:st},Ge,z,{ref:rt,children:Ye.map((U,ke)=>N?pn({key:U.key,group:U.group,children:U.options.map((ze,Je)=>kr(ze,U.index+Je))}):kr(U,ke))})):null]}))})):null]})}),Sj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Pj={entering:{opacity:1},entered:{opacity:1}},PS=d.forwardRef(function(t,n){const r=Vr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:i,easing:a,in:c,onEnter:u,onEntered:p,onEntering:f,onExit:g,onExited:h,onExiting:b,style:w,timeout:C=o,TransitionComponent:y=ao}=t,x=K(t,Sj),S=d.useRef(null),T=wt(S,ql(i),n),P=I=>$=>{if(I){const j=S.current;$===void 0?I(j):I(j,$)}},k=P(f),E=P((I,$)=>{lS(I);const j=Yu({style:w,timeout:C,easing:a},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",j),I.style.transition=r.transitions.create("opacity",j),u&&u(I,$)}),_=P(p),R=P(b),F=P(I=>{const $=Yu({style:w,timeout:C,easing:a},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",$),I.style.transition=r.transitions.create("opacity",$),g&&g(I)}),L=P(h),O=I=>{l&&l(S.current,I)};return v.jsx(y,m({appear:s,in:c,nodeRef:S,onEnter:E,onEntered:_,onEntering:k,onExit:F,onExited:L,onExiting:R,addEndListener:O,timeout:C},x,{children:(I,$)=>d.cloneElement(i,m({style:m({opacity:0,visibility:I==="exited"&&!c?"hidden":void 0},Pj[I],w,i.props.style),ref:T},$))}))});function kj(e){return He("MuiBackdrop",e)}Be("MuiBackdrop",["root","invisible"]);const Ej=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ij=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},kj,t)},Mj=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>m({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"})),kS=d.forwardRef(function(t,n){var r,o,l;const s=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:c="div",components:u={},componentsProps:p={},invisible:f=!1,open:g,slotProps:h={},slots:b={},TransitionComponent:w=PS,transitionDuration:C}=s,y=K(s,Ej),x=m({},s,{component:c,invisible:f}),S=Ij(x),T=(r=h.root)!=null?r:p.root;return v.jsx(w,m({in:g,timeout:C},y,{children:v.jsx(Mj,m({"aria-hidden":!0},T,{as:(o=(l=b.root)!=null?l:u.Root)!=null?o:c,className:ne(S.root,a,T==null?void 0:T.className),ownerState:m({},x,T==null?void 0:T.ownerState),classes:S,ref:n,children:i}))}))});function $j(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,l=Tg({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:i,max:a=r}=s?l:e,c=i&&Number(i)>a?`${a}+`:i;return{badgeContent:i,invisible:s,max:a,displayValue:c}}function Rj(e){return He("MuiBadge",e)}const Oo=Be("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"]),Tj=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Cf=10,xf=4,Oj=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:l,classes:s={}}=e,i={root:["root"],badge:["badge",l,r&&"invisible",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`,`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}${Q(o)}`,`overlap${Q(o)}`,t!=="default"&&`color${Q(t)}`]};return we(i,Rj,s)},Fj=X("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Dj=X("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}${Q(n.overlap)}`],n.color!=="default"&&t[`color${Q(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{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:Cf*2,lineHeight:1,padding:"0 6px",height:Cf*2,borderRadius:Cf,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:xf,height:xf*2,minWidth:xf*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Oo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),ES=d.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Ke({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:p,component:f,components:g={},componentsProps:h={},children:b,overlap:w="rectangular",color:C="default",invisible:y=!1,max:x=99,badgeContent:S,slots:T,slotProps:P,showZero:k=!1,variant:E="standard"}=c,_=K(c,Tj),{badgeContent:R,invisible:F,max:L,displayValue:O}=$j({max:x,invisible:y,badgeContent:S,showZero:k}),I=Tg({anchorOrigin:u,color:C,overlap:w,variant:E,badgeContent:S}),$=F||R==null&&E!=="dot",{color:j=C,overlap:N=w,anchorOrigin:M=u,variant:D=E}=$?I:c,A=D!=="dot"?O:void 0,H=m({},c,{badgeContent:R,invisible:$,max:L,displayValue:A,showZero:k,anchorOrigin:M,color:j,overlap:N,variant:D}),z=Oj(H),W=(r=(o=T==null?void 0:T.root)!=null?o:g.Root)!=null?r:Fj,G=(l=(s=T==null?void 0:T.badge)!=null?s:g.Badge)!=null?l:Dj,q=(i=P==null?void 0:P.root)!=null?i:h.root,re=(a=P==null?void 0:P.badge)!=null?a:h.badge,ae=Jn({elementType:W,externalSlotProps:q,externalForwardedProps:_,additionalProps:{ref:n,as:f},ownerState:H,className:ne(q==null?void 0:q.className,z.root,p)}),ce=Jn({elementType:G,externalSlotProps:re,ownerState:H,className:ne(z.badge,re==null?void 0:re.className)});return v.jsxs(W,m({},ae,{children:[b,v.jsx(G,m({},ce,{children:A}))]}))}),jj=Be("MuiBox",["root"]),_j=Lg(),Kn=X$({themeId:Al,defaultTheme:_j,defaultClassName:jj.root,generateClassName:Sg.generate});function Lj(e){return He("MuiButton",e)}const Vc=Be("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nj=d.createContext({}),Aj=d.createContext(void 0),zj=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hj=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:l,classes:s}=e,i={root:["root",l,`${l}${Q(t)}`,`size${Q(o)}`,`${l}Size${Q(o)}`,`color${Q(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`]},a=we(i,Lj,s);return m({},s,a)},IS=e=>m({},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}}),Bj=X(ll,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color)}`],t[`size${Q(n.size)}`],t[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return m({},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":m({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(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})`:pt(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})`:pt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,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":m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vc.focusVisible}`]:m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vc.disabled}`]:m({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vc.disabled}`]:{boxShadow:"none"}}),Vj=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},IS(e))),Gj=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Q(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},IS(e))),yl=d.forwardRef(function(t,n){const r=d.useContext(Nj),o=d.useContext(Aj),l=La(r,t),s=Ke({props:l,name:"MuiButton"}),{children:i,color:a="primary",component:c="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:g=!1,endIcon:h,focusVisibleClassName:b,fullWidth:w=!1,size:C="medium",startIcon:y,type:x,variant:S="text"}=s,T=K(s,zj),P=m({},s,{color:a,component:c,disabled:p,disableElevation:f,disableFocusRipple:g,fullWidth:w,size:C,type:x,variant:S}),k=Hj(P),E=y&&v.jsx(Vj,{className:k.startIcon,ownerState:P,children:y}),_=h&&v.jsx(Gj,{className:k.endIcon,ownerState:P,children:h}),R=o||"";return v.jsxs(Bj,m({ownerState:P,className:ne(r.className,k.root,u,R),component:c,disabled:p,focusRipple:!g,focusVisibleClassName:ne(k.focusVisible,b),ref:n,type:x},T,{classes:k,children:[E,i,_]}))});function Wj(e){return He("PrivateSwitchBase",e)}Be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uj=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Kj=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,l={root:["root",n&&"checked",r&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return we(l,Wj,t)},qj=X(ll,{name:"MuiSwitchBase"})(({ownerState:e})=>m({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Yj=X("input",{name:"MuiSwitchBase",shouldForwardProp:Hn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),MS=d.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:l,className:s,defaultChecked:i,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:p,id:f,inputProps:g,inputRef:h,name:b,onBlur:w,onChange:C,onFocus:y,readOnly:x,required:S=!1,tabIndex:T,type:P,value:k}=t,E=K(t,Uj),[_,R]=nl({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),F=Ro(),L=D=>{y&&y(D),F&&F.onFocus&&F.onFocus(D)},O=D=>{w&&w(D),F&&F.onBlur&&F.onBlur(D)},I=D=>{if(D.nativeEvent.defaultPrevented)return;const A=D.target.checked;R(A),C&&C(D,A)};let $=a;F&&typeof $>"u"&&($=F.disabled);const j=P==="checkbox"||P==="radio",N=m({},t,{checked:_,disabled:$,disableFocusRipple:c,edge:u}),M=Kj(N);return v.jsxs(qj,m({component:"span",className:ne(M.root,s),centerRipple:!0,focusRipple:!c,disabled:$,tabIndex:null,role:void 0,onFocus:L,onBlur:O,ownerState:N,ref:n},E,{children:[v.jsx(Yj,m({autoFocus:r,checked:o,defaultChecked:i,className:M.input,disabled:$,id:j?f:void 0,name:b,onChange:I,readOnly:x,ref:h,required:S,ownerState:N,tabIndex:T,type:P},P==="checkbox"&&k===void 0?{}:{value:k},g)),_?l:p]}))}),Qj=ot(v.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"),Xj=ot(v.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"),Zj=ot(v.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 Jj(e){return He("MuiCheckbox",e)}const wf=Be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),e_=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],t_=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${Q(r)}`,`size${Q(o)}`]},s=we(l,Jj,t);return m({},t,s)},n_=X(MS,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Q(n.size)}`],n.color!=="default"&&t[`color${Q(n.color)}`]]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wf.checked}, &.${wf.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${wf.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),r_=v.jsx(Xj,{}),o_=v.jsx(Qj,{}),l_=v.jsx(Zj,{}),s_=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:s=r_,color:i="primary",icon:a=o_,indeterminate:c=!1,indeterminateIcon:u=l_,inputProps:p,size:f="medium",className:g}=l,h=K(l,e_),b=c?u:a,w=c?u:s,C=m({},l,{color:i,indeterminate:c,size:f}),y=t_(C);return v.jsx(n_,m({type:"checkbox",inputProps:m({"data-indeterminate":c},p),icon:d.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:d.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:f}),ownerState:C,ref:n,className:ne(y.root,g)},h,{classes:y}))});function i_(e){return He("MuiCircularProgress",e)}Be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const a_=["className","color","disableShrink","size","style","thickness","value","variant"];let yp=e=>e,f0,m0,h0,g0;const Fo=44,c_=cl(f0||(f0=yp`
130
130
  0% {
131
131
  transform: rotate(0deg);
132
132
  }
@@ -134,7 +134,7 @@ Error generating stack: `+l.message+`
134
134
  100% {
135
135
  transform: rotate(360deg);
136
136
  }
137
- `)),u_=ul(m0||(m0=yp`
137
+ `)),u_=cl(m0||(m0=yp`
138
138
  0% {
139
139
  stroke-dasharray: 1px, 200px;
140
140
  stroke-dashoffset: 0;
@@ -153,7 +153,7 @@ Error generating stack: `+l.message+`
153
153
  animation: ${0} 1.4s linear infinite;
154
154
  `),c_)),f_=X("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),m_=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Q(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>m({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&&Qs(g0||(g0=yp`
155
155
  animation: ${0} 1.4s ease-in-out infinite;
156
- `),u_)),$S=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:s=!1,size:i=40,style:a,thickness:c=3.6,value:u=0,variant:p="indeterminate"}=r,f=K(r,a_),g=m({},r,{color:l,disableShrink:s,size:i,thickness:c,value:u,variant:p}),h=d_(g),b={},w={},C={};if(p==="determinate"){const y=2*Math.PI*((Fo-c)/2);b.strokeDasharray=y.toFixed(3),C["aria-valuenow"]=Math.round(u),b.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return v.jsx(p_,m({className:ne(h.root,o),style:m({width:i,height:i},w,a),ownerState:g,ref:n,role:"progressbar"},C,f,{children:v.jsx(f_,{className:h.svg,ownerState:g,viewBox:`${Fo/2} ${Fo/2} ${Fo} ${Fo}`,children:v.jsx(m_,{className:h.circle,style:b,ownerState:g,cx:Fo,cy:Fo,r:(Fo-c)/2,fill:"none",strokeWidth:c})})}))});function v0(e){return e.substring(2).toLowerCase()}function h_(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function RS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:l="onTouchEnd"}=e,s=d.useRef(!1),i=d.useRef(null),a=d.useRef(!1),c=d.useRef(!1);d.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const u=wt(Yl(t),i),p=Ct(h=>{const b=c.current;c.current=!1;const w=jt(i.current);if(!a.current||!i.current||"clientX"in h&&h_(h,w))return;if(s.current){s.current=!1;return}let C;h.composedPath?C=h.composedPath().indexOf(i.current)>-1:C=!w.documentElement.contains(h.target)||i.current.contains(h.target),!C&&(n||!b)&&o(h)}),f=h=>b=>{c.current=!0;const w=t.props[h];w&&w(b)},g={ref:u};return l!==!1&&(g[l]=f(l)),d.useEffect(()=>{if(l!==!1){const h=v0(l),b=jt(i.current),w=()=>{s.current=!0};return b.addEventListener(h,p),b.addEventListener("touchmove",w),()=>{b.removeEventListener(h,p),b.removeEventListener("touchmove",w)}}},[p,l]),r!==!1&&(g[r]=f(r)),d.useEffect(()=>{if(r!==!1){const h=v0(r),b=jt(i.current);return b.addEventListener(h,p),()=>{b.removeEventListener(h,p)}}},[p,r]),v.jsx(d.Fragment,{children:d.cloneElement(t,g)})}const TS=nT({createStyledComponent:X("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ke({props:e,name:"MuiContainer"})}),g_=(e,t)=>m({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),v_=e=>m({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),y_=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,i])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=i.palette)==null?void 0:a.mode}});let o=m({html:g_(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:m({margin:0},v_(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const l=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return l&&(o=[o,l]),o};function b_(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(d.Fragment,{children:[v.jsx(xS,{styles:o=>y_(o,r)}),n]})}function C_(e){const t=jt(e);return t.body===e?Hr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function y0(e){return parseInt(Hr(e).getComputedStyle(e).paddingRight,10)||0}function x_(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 b0(e,t,n,r,o){const l=[t,n,...r];[].forEach.call(e.children,s=>{const i=l.indexOf(s)===-1,a=!x_(s);i&&a&&pa(s,o)})}function wf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function w_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(C_(r)){const s=z1(jt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${y0(r)+s}px`;const i=jt(r).querySelectorAll(".mui-fixed");[].forEach.call(i,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${y0(a)+s}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=jt(r).body;else{const s=r.parentElement,i=Hr(r);l=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:s,property:i})=>{l?s.style.setProperty(i,l):s.style.removeProperty(i)})}}function S_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class P_{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&&pa(t.modalRef,!1);const o=S_(n);b0(n,t.mount,t.modalRef,o,!0);const l=wf(this.containers,s=>s.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=wf(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=w_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=wf(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&pa(t.modalRef,n),b0(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=l.modals[l.modals.length-1];s.modalRef&&pa(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const k_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function E_(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 I_(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 M_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||I_(e))}function $_(e){const t=[],n=[];return Array.from(e.querySelectorAll(k_)).forEach((r,o)=>{const l=E_(r);l===-1||!M_(r)||(l===0?t.push(r):n.push({documentOrder:o,tabIndex:l,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 R_(){return!0}function OS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:l=$_,isEnabled:s=R_,open:i}=e,a=d.useRef(!1),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=d.useRef(null),g=d.useRef(!1),h=d.useRef(null),b=wt(Yl(t),h),w=d.useRef(null);d.useEffect(()=>{!i||!h.current||(g.current=!n)},[n,i]),d.useEffect(()=>{if(!i||!h.current)return;const x=jt(h.current);return h.current.contains(x.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),g.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[i]),d.useEffect(()=>{if(!i||!h.current)return;const x=jt(h.current),S=k=>{w.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===h.current&&k.shiftKey&&(a.current=!0,u.current&&u.current.focus())},T=()=>{const k=h.current;if(k===null)return;if(!x.hasFocus()||!s()||a.current){a.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(E=l(h.current)),E.length>0){var _,R;const F=!!((_=w.current)!=null&&_.shiftKey&&((R=w.current)==null?void 0:R.key)==="Tab"),L=E[0],O=E[E.length-1];typeof L!="string"&&typeof O!="string"&&(F?O.focus():L.focus())}else k.focus()};x.addEventListener("focusin",T),x.addEventListener("keydown",S,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",T),x.removeEventListener("keydown",S,!0)}},[n,r,o,s,i,l]);const C=x=>{p.current===null&&(p.current=x.relatedTarget),g.current=!0,f.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{p.current===null&&(p.current=x.relatedTarget),g.current=!0};return v.jsxs(d.Fragment,{children:[v.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:b,onFocus:C}),v.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function T_(e){return typeof e=="function"?e():e}function O_(e){return e?e.props.hasOwnProperty("in"):!1}const F_=new P_;function D_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=F_,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:c,open:u,rootRef:p}=e,f=d.useRef({}),g=d.useRef(null),h=d.useRef(null),b=wt(h,p),[w,C]=d.useState(!u),y=O_(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>jt(g.current),T=()=>(f.current.modalRef=h.current,f.current.mount=g.current,f.current),P=()=>{o.mount(T(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=Ct(()=>{const j=T_(t)||S().body;o.add(T(),j),h.current&&P()}),E=d.useCallback(()=>o.isTopModal(T()),[o]),_=Ct(j=>{g.current=j,j&&(u&&E()?P():h.current&&pa(h.current,x))}),R=d.useCallback(()=>{o.remove(T(),x)},[x,o]);d.useEffect(()=>()=>{R()},[R]),d.useEffect(()=>{u?k():(!y||!l)&&R()},[u,R,y,l,k]);const F=j=>N=>{var M;(M=j.onKeyDown)==null||M.call(j,N),!(N.key!=="Escape"||N.which===229||!E())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},L=j=>N=>{var M;(M=j.onClick)==null||M.call(j,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(j={})=>{const N=B1(e);delete N.onTransitionEnter,delete N.onTransitionExited;const M=m({},N,j);return m({role:"presentation"},M,{onKeyDown:F(M),ref:b})},getBackdropProps:(j={})=>{const N=j;return m({"aria-hidden":!0},N,{onClick:L(N),open:u})},getTransitionProps:()=>{const j=()=>{C(!1),s&&s()},N=()=>{C(!0),i&&i(),l&&R()};return{onEnter:Fm(j,a==null?void 0:a.props.onEnter),onExited:Fm(N,a==null?void 0:a.props.onExited)}},rootRef:b,portalRef:_,isTopModal:E,exited:w,hasTransition:y}}function j_(e){return He("MuiModal",e)}Be("MuiModal",["root","hidden","backdrop"]);const __=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L_=e=>{const{open:t,exited:n,classes:r}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},j_,r)},N_=X("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})=>m({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),A_=X(kS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FS=d.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=A_,BackdropProps:p,className:f,closeAfterTransition:g=!1,children:h,container:b,component:w,components:C={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:T=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:_=!1,keepMounted:R=!1,onBackdropClick:F,open:L,slotProps:O,slots:I}=c,$=K(c,__),j=m({},c,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:T,disablePortal:P,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:_,keepMounted:R}),{getRootProps:N,getBackdropProps:M,getTransitionProps:D,portalRef:A,isTopModal:H,exited:z,hasTransition:W}=D_(m({},j,{rootRef:n})),G=m({},j,{exited:z}),q=L_(G),re={};if(h.props.tabIndex===void 0&&(re.tabIndex="-1"),W){const{onEnter:Y,onExited:pe}=D();re.onEnter=Y,re.onExited=pe}const ae=(r=(o=I==null?void 0:I.root)!=null?o:C.Root)!=null?r:N_,ce=(l=(s=I==null?void 0:I.backdrop)!=null?s:C.Backdrop)!=null?l:u,ue=(i=O==null?void 0:O.root)!=null?i:y.root,ye=(a=O==null?void 0:O.backdrop)!=null?a:y.backdrop,de=Zn({elementType:ae,externalSlotProps:ue,externalForwardedProps:$,getSlotProps:N,additionalProps:{ref:n,as:w},ownerState:G,className:ne(f,ue==null?void 0:ue.className,q==null?void 0:q.root,!G.open&&G.exited&&(q==null?void 0:q.hidden))}),he=Zn({elementType:ce,externalSlotProps:ye,additionalProps:p,getSlotProps:Y=>M(m({},Y,{onClick:pe=>{F&&F(pe),Y!=null&&Y.onClick&&Y.onClick(pe)}})),className:ne(ye==null?void 0:ye.className,p==null?void 0:p.className,q==null?void 0:q.backdrop),ownerState:G});return!R&&!L&&(!W||z)?null:v.jsx(bS,{ref:A,container:b,disablePortal:P,children:v.jsxs(ae,m({},de,{children:[!_&&u?v.jsx(ce,m({},he)):null,v.jsx(OS,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:H,open:L,children:d.cloneElement(h,re)})]}))})});function z_(e){return He("MuiDialog",e)}const Sf=Be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DS=d.createContext({}),H_=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],B_=X(kS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),V_=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:l}=e,s={root:["root"],container:["container",`scroll${Q(n)}`],paper:["paper",`paperScroll${Q(n)}`,`paperWidth${Q(String(r))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return we(s,z_,t)},G_=X(FS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),W_=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Q(n.scroll)}`]]}})(({ownerState:e})=>m({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"}})),U_=X(wr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Q(n.scroll)}`],t[`paperWidth${Q(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>m({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Sf.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}`,[`&.${Sf.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,[`&.${Sf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),K_=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=Br(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:a,BackdropProps:c,children:u,className:p,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:h=!1,maxWidth:b="sm",onBackdropClick:w,onClick:C,onClose:y,open:x,PaperComponent:S=wr,PaperProps:T={},scroll:P="paper",TransitionComponent:k=PS,transitionDuration:E=l,TransitionProps:_}=r,R=K(r,H_),F=m({},r,{disableEscapeKeyDown:f,fullScreen:g,fullWidth:h,maxWidth:b,scroll:P}),L=V_(F),O=d.useRef(),I=M=>{O.current=M.target===M.currentTarget},$=M=>{C&&C(M),O.current&&(O.current=null,w&&w(M),y&&y(M,"backdropClick"))},j=bt(i),N=d.useMemo(()=>({titleId:j}),[j]);return v.jsx(G_,m({className:ne(L.root,p),closeAfterTransition:!0,components:{Backdrop:B_},componentsProps:{backdrop:m({transitionDuration:E,as:a},c)},disableEscapeKeyDown:f,onClose:y,open:x,ref:n,onClick:$,ownerState:F},R,{children:v.jsx(k,m({appear:!0,in:x,timeout:E,role:"presentation"},_,{children:v.jsx(W_,{className:ne(L.container),onMouseDown:I,ownerState:F,children:v.jsx(U_,m({as:S,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":j},T,{className:ne(L.paper,T.className),ownerState:F,children:v.jsx(DS.Provider,{value:N,children:u})}))})}))}))});function q_(e){return He("MuiDialogActions",e)}Be("MuiDialogActions",["root","spacing"]);const Y_=["className","disableSpacing"],Q_=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},q_,t)},X_=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>m({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Z_=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=r,s=K(r,Y_),i=m({},r,{disableSpacing:l}),a=Q_(i);return v.jsx(X_,m({className:ne(a.root,o),ownerState:i,ref:n},s))});function J_(e){return He("MuiDialogContent",e)}Be("MuiDialogContent",["root","dividers"]);function eL(e){return He("MuiDialogTitle",e)}const tL=Be("MuiDialogTitle",["root"]),nL=["className","dividers"],rL=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},J_,t)},oL=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>m({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}`}:{[`.${tL.root} + &`]:{paddingTop:0}})),lL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,s=K(r,nL),i=m({},r,{dividers:l}),a=rL(i);return v.jsx(oL,m({className:ne(a.root,o),ownerState:i,ref:n},s))}),sL=["className","id"],iL=e=>{const{classes:t}=e;return we({root:["root"]},eL,t)},aL=X(sn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),cL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:l}=r,s=K(r,sL),i=r,a=iL(i),{titleId:c=l}=d.useContext(DS);return v.jsx(aL,m({component:"h2",className:ne(a.root,o),ownerState:i,ref:n,variant:"h6",id:l??c},s))});function uL(e){return He("MuiDivider",e)}const C0=Be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dL=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pL=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:l,orientation:s,textAlign:i,variant:a}=e;return we({root:["root",t&&"absolute",a,l&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},uL,r)},fL=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>m({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>m({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>m({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),mL=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>m({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:i=l?"div":"hr",flexItem:a=!1,light:c=!1,orientation:u="horizontal",role:p=i!=="hr"?"separator":void 0,textAlign:f="center",variant:g="fullWidth"}=r,h=K(r,dL),b=m({},r,{absolute:o,component:i,flexItem:a,light:c,orientation:u,role:p,textAlign:f,variant:g}),w=pL(b);return v.jsx(fL,m({as:i,className:ne(w.root,s),role:p,ref:n,ownerState:b},h,{children:l?v.jsx(mL,{className:w.wrapper,ownerState:b,children:l}):null}))});jS.muiSkipListHighlight=!0;const hL=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],gL=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},lj,t);return m({},t,o)},vL=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mp(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)",l=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)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return m({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,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:l}},[`&.${Un.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${Un.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!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"},[`&.${Un.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Un.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Un.disabled}, .${Un.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Un.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&m({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),yL=X(vp,{name:"MuiFilledInput",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>m({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),qg=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:p="input",multiline:f=!1,slotProps:g,slots:h={},type:b="text"}=i,w=K(i,hL),C=m({},i,{fullWidth:u,inputComponent:p,multiline:f,type:b}),y=gL(i),x={root:{ownerState:C},input:{ownerState:C}},S=g??c?En(x,g??c):x,T=(r=(o=h.root)!=null?o:a.Root)!=null?r:vL,P=(l=(s=h.input)!=null?s:a.Input)!=null?l:yL;return v.jsx(yi,m({slots:{root:T,input:P},componentsProps:S,fullWidth:u,inputComponent:p,multiline:f,ref:n,type:b},w,{classes:y}))});qg.muiName="Input";function bL(e){return He("MuiFormControl",e)}Be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CL=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xL=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Q(n)}`,r&&"fullWidth"]};return we(o,bL,t)},wL=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,t[`margin${Q(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>m({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%"})),_S=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:l,color:s="primary",component:i="div",disabled:a=!1,error:c=!1,focused:u,fullWidth:p=!1,hiddenLabel:f=!1,margin:g="none",required:h=!1,size:b="medium",variant:w="outlined"}=r,C=K(r,CL),y=m({},r,{color:s,component:i,disabled:a,error:c,fullWidth:p,hiddenLabel:f,margin:g,required:h,size:b,variant:w}),x=xL(y),[S,T]=d.useState(()=>{let O=!1;return o&&d.Children.forEach(o,I=>{if(!uu(I,["Input","Select"]))return;const $=uu(I,["Select"])?I.props.input:I;$&&ZD($.props)&&(O=!0)}),O}),[P,k]=d.useState(()=>{let O=!1;return o&&d.Children.forEach(o,I=>{uu(I,["Input","Select"])&&(Xu(I.props,!0)||Xu(I.props.inputProps,!0))&&(O=!0)}),O}),[E,_]=d.useState(!1);a&&E&&_(!1);const R=u!==void 0&&!a?u:E;let F;const L=d.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:s,disabled:a,error:c,filled:P,focused:R,fullWidth:p,hiddenLabel:f,size:b,onBlur:()=>{_(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{_(!0)},registerEffect:F,required:h,variant:w}),[S,s,a,c,P,R,p,f,F,h,b,w]);return v.jsx(fp.Provider,{value:L,children:v.jsx(wL,m({as:i,ownerState:y,className:ne(x.root,l),ref:n},C,{children:o}))})}),Go=uT({createStyledComponent:X("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})});function SL(e){return He("MuiFormControlLabel",e)}const Qi=Be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),PL=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],kL=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:l}=e,s={root:["root",n&&"disabled",`labelPlacement${Q(r)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return we(s,SL,t)},EL=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qi.label}`]:t.label},t.root,t[`labelPlacement${Q(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>m({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qi.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},{[`& .${Qi.label}`]:{[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),IL=X("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qi.error}`]:{color:(e.vars||e).palette.error.main}})),ML=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:a,disabled:c,disableTypography:u,label:p,labelPlacement:f="end",required:g,slotProps:h={}}=l,b=K(l,PL),w=Ro(),C=(r=c??a.props.disabled)!=null?r:w==null?void 0:w.disabled,y=g??a.props.required,x={disabled:C,required:y};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]>"u"&&typeof l[_]<"u"&&(x[_]=l[_])});const S=Xl({props:l,muiFormControl:w,states:["error"]}),T=m({},l,{disabled:C,labelPlacement:f,required:y,error:S.error}),P=kL(T),k=(o=h.typography)!=null?o:i.typography;let E=p;return E!=null&&E.type!==sn&&!u&&(E=v.jsx(sn,m({component:"span"},k,{className:ne(P.label,k==null?void 0:k.className),children:E}))),v.jsxs(EL,m({className:ne(P.root,s),ownerState:T,ref:n},b,{children:[d.cloneElement(a,x),y?v.jsxs(Go,{display:"block",children:[E,v.jsxs(IL,{ownerState:T,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function $L(e){return He("MuiFormHelperText",e)}const x0=Be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w0;const RL=["children","className","component","disabled","error","filled","focused","margin","required","variant"],TL=e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:s,focused:i,required:a}=e,c={root:["root",o&&"disabled",l&&"error",r&&`size${Q(r)}`,n&&"contained",i&&"focused",s&&"filled",a&&"required"]};return we(c,$L,t)},OL=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Q(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${x0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${x0.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),FL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:s="p"}=r,i=K(r,RL),a=Ro(),c=Xl({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),u=m({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=TL(u);return v.jsx(OL,m({as:s,ownerState:u,className:ne(p.root,l),ref:n},i,{children:o===" "?w0||(w0=v.jsx("span",{className:"notranslate",children:"​"})):o}))});function DL(e){return He("MuiFormLabel",e)}const fa=Be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),jL=["children","className","color","component","disabled","error","filled","focused","required"],_L=e=>{const{classes:t,color:n,focused:r,disabled:o,error:l,filled:s,required:i}=e,a={root:["root",`color${Q(n)}`,o&&"disabled",l&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return we(a,DL,t)},LL=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${fa.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fa.error}`]:{color:(e.vars||e).palette.error.main}})),NL=X("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${fa.error}`]:{color:(e.vars||e).palette.error.main}})),AL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:l,component:s="label"}=r,i=K(r,jL),a=Ro(),c=Xl({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),u=m({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=_L(u);return v.jsxs(LL,m({as:s,ownerState:u,className:ne(p.root,l),ref:n},i,{children:[o,c.required&&v.jsxs(NL,{ownerState:u,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),zL=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vm(e){return`scale(${e}, ${e**2})`}const HL={entering:{opacity:1,transform:Vm(1)},entered:{opacity:1,transform:"none"}},Pf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ga=d.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:l,easing:s,in:i,onEnter:a,onEntered:c,onEntering:u,onExit:p,onExited:f,onExiting:g,style:h,timeout:b="auto",TransitionComponent:w=io}=t,C=K(t,zL),y=Ms(),x=d.useRef(),S=Br(),T=d.useRef(null),P=wt(T,Yl(l),n),k=$=>j=>{if($){const N=T.current;j===void 0?$(N):$(N,j)}},E=k(u),_=k(($,j)=>{lS($);const{duration:N,delay:M,easing:D}=Yu({style:h,timeout:b,easing:s},{mode:"enter"});let A;b==="auto"?(A=S.transitions.getAutoHeightDuration($.clientHeight),x.current=A):A=N,$.style.transition=[S.transitions.create("opacity",{duration:A,delay:M}),S.transitions.create("transform",{duration:Pf?A:A*.666,delay:M,easing:D})].join(","),a&&a($,j)}),R=k(c),F=k(g),L=k($=>{const{duration:j,delay:N,easing:M}=Yu({style:h,timeout:b,easing:s},{mode:"exit"});let D;b==="auto"?(D=S.transitions.getAutoHeightDuration($.clientHeight),x.current=D):D=j,$.style.transition=[S.transitions.create("opacity",{duration:D,delay:N}),S.transitions.create("transform",{duration:Pf?D:D*.666,delay:Pf?N:N||D*.333,easing:M})].join(","),$.style.opacity=0,$.style.transform=Vm(.75),p&&p($)}),O=k(f),I=$=>{b==="auto"&&y.start(x.current||0,$),r&&r(T.current,$)};return v.jsx(w,m({appear:o,in:i,nodeRef:T,onEnter:_,onEntered:R,onEntering:E,onExit:L,onExited:O,onExiting:F,addEndListener:I,timeout:b==="auto"?null:b},C,{children:($,j)=>d.cloneElement(l,m({style:m({opacity:0,transform:Vm(.75),visibility:$==="exited"&&!i?"hidden":void 0},HL[$],h,l.props.style),ref:P},j))}))});Ga.muiSupportAuto=!0;const BL=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],VL=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},rj,t);return m({},t,o)},GL=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mp(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})`),m({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"},[`&.${Vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vo.disabled}, .${Vo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),WL=X(vp,{name:"MuiInput",slot:"Input",overridesResolver:hp})({}),Yg=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:u,fullWidth:p=!1,inputComponent:f="input",multiline:g=!1,slotProps:h,slots:b={},type:w="text"}=i,C=K(i,BL),y=VL(i),S={root:{ownerState:{disableUnderline:a}}},T=h??u?En(h??u,S):S,P=(r=(o=b.root)!=null?o:c.Root)!=null?r:GL,k=(l=(s=b.input)!=null?s:c.Input)!=null?l:WL;return v.jsx(yi,m({slots:{root:P,input:k},slotProps:T,fullWidth:p,inputComponent:f,multiline:g,ref:n,type:w},C,{classes:y}))});Yg.muiName="Input";function UL(e){return He("MuiInputAdornment",e)}const S0=Be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var P0;const KL=["children","className","component","disablePointerEvents","disableTypography","position","variant"],qL=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},YL=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:l,variant:s}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${Q(o)}`,s,r&&"hiddenLabel",l&&`size${Q(l)}`]};return we(i,UL,t)},QL=X("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:qL})(({theme:e,ownerState:t})=>m({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${S0.positionStart}&:not(.${S0.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),XL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:s="div",disablePointerEvents:i=!1,disableTypography:a=!1,position:c,variant:u}=r,p=K(r,KL),f=Ro()||{};let g=u;u&&f.variant,f&&!g&&(g=f.variant);const h=m({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:i,position:c,variant:g}),b=YL(h);return v.jsx(fp.Provider,{value:null,children:v.jsx(QL,m({as:s,ownerState:h,className:ne(b.root,l),ref:n},p,{children:typeof o=="string"&&!a?v.jsx(sn,{color:"text.secondary",children:o}):v.jsxs(d.Fragment,{children:[c==="start"?P0||(P0=v.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function ZL(e){return He("MuiInputLabel",e)}Be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const JL=["disableAnimation","margin","shrink","variant","className"],eN=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:l,variant:s,required:i}=e,a={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Q(r)}`,s],asterisk:[i&&"asterisk"]},c=we(a,ZL,t);return m({},t,c)},tN=X(AL,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fa.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>m({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"&&m({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&&m({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"&&m({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),LS=d.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:l,className:s}=r,i=K(r,JL),a=Ro();let c=l;typeof c>"u"&&a&&(c=a.filled||a.focused||a.adornedStart);const u=Xl({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=m({},r,{disableAnimation:o,formControl:a,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=eN(p);return v.jsx(tN,m({"data-shrink":c,ownerState:p,ref:n,className:ne(f.root,s)},i,{classes:f}))}),Wa=d.createContext({});function nN(e){return He("MuiList",e)}Be("MuiList",["root","padding","dense","subheader"]);const rN=["children","className","component","dense","disablePadding","subheader"],oN=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return we({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nN,t)},lN=X("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})=>m({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),sN=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:l,component:s="ul",dense:i=!1,disablePadding:a=!1,subheader:c}=r,u=K(r,rN),p=d.useMemo(()=>({dense:i}),[i]),f=m({},r,{component:s,dense:i,disablePadding:a}),g=oN(f);return v.jsx(Wa.Provider,{value:p,children:v.jsxs(lN,m({as:s,className:ne(g.root,l),ref:n,ownerState:f},u,{children:[c,o]}))})});function iN(e){return He("MuiListItemIcon",e)}const k0=Be("MuiListItemIcon",["root","alignItemsFlexStart"]),aN=["className"],cN=e=>{const{alignItems:t,classes:n}=e;return we({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},iN,n)},uN=X("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})=>m({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),As=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:o}=r,l=K(r,aN),s=d.useContext(Wa),i=m({},r,{alignItems:s.alignItems}),a=cN(i);return v.jsx(uN,m({className:ne(a.root,o),ownerState:i,ref:n},l))});function dN(e){return He("MuiListItemText",e)}const Zu=Be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],fN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:l}=e;return we({root:["root",n&&"inset",l&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},dN,t)},mN=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zu.primary}`]:t.primary},{[`& .${Zu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>m({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),zs=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:l,disableTypography:s=!1,inset:i=!1,primary:a,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:p}=r,f=K(r,pN),{dense:g}=d.useContext(Wa);let h=a??o,b=u;const w=m({},r,{disableTypography:s,inset:i,primary:!!h,secondary:!!b,dense:g}),C=fN(w);return h!=null&&h.type!==sn&&!s&&(h=v.jsx(sn,m({variant:g?"body2":"body1",className:C.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:h}))),b!=null&&b.type!==sn&&!s&&(b=v.jsx(sn,m({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},p,{children:b}))),v.jsxs(mN,m({className:ne(C.root,l),ownerState:w,ref:n},f,{children:[h,b]}))}),hN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function E0(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NS(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 ji(e,t,n,r,o,l){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const a=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!NS(i,l)||a)i=o(e,i,n);else return i.focus(),!0}return!1}const Qg=d.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:l=!1,children:s,className:i,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:u,variant:p="selectedMenu"}=t,f=K(t,hN),g=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vt(()=>{o&&g.current.focus()},[o]),d.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const T=!g.current.style.width;if(x.clientHeight<g.current.clientHeight&&T){const P=`${z1(jt(x))}px`;g.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=P,g.current.style.width=`calc(100% + ${P})`}return g.current}}),[]);const b=x=>{const S=g.current,T=x.key,P=jt(S).activeElement;if(T==="ArrowDown")x.preventDefault(),ji(S,P,c,a,kf);else if(T==="ArrowUp")x.preventDefault(),ji(S,P,c,a,E0);else if(T==="Home")x.preventDefault(),ji(S,null,c,a,kf);else if(T==="End")x.preventDefault(),ji(S,null,c,a,E0);else if(T.length===1){const k=h.current,E=T.toLowerCase(),_=performance.now();k.keys.length>0&&(_-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&E!==k.keys[0]&&(k.repeating=!1)),k.lastTime=_,k.keys.push(E);const R=P&&!k.repeating&&NS(P,k);k.previousKeyMatched&&(R||ji(S,P,!1,a,kf,k))?x.preventDefault():k.previousKeyMatched=!1}u&&u(x)},w=wt(g,n);let C=-1;d.Children.forEach(s,(x,S)=>{if(!d.isValidElement(x)){C===S&&(C+=1,C>=s.length&&(C=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||C===-1)&&(C=S),C===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const y=d.Children.map(s,(x,S)=>{if(S===C){const T={};return l&&(T.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),d.cloneElement(x,T)}return x});return v.jsx(sN,m({role:"menu",ref:w,className:i,onKeyDown:b,tabIndex:o?0:-1},f,{children:y}))});function gN(e){return He("MuiPopover",e)}Be("MuiPopover",["root","paper"]);const vN=["onEntering"],yN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bN=["slotProps"];function I0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function M0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ef(e){return typeof e=="function"?e():e}const CN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},gN,t)},xN=X(FS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AS=X(wr,{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}),wN=d.forwardRef(function(t,n){var r,o,l;const s=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:p="anchorEl",children:f,className:g,container:h,elevation:b=8,marginThreshold:w=16,open:C,PaperProps:y={},slots:x,slotProps:S,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:P=Ga,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:_=!1}=s,R=K(s.TransitionProps,vN),F=K(s,yN),L=(r=S==null?void 0:S.paper)!=null?r:y,O=d.useRef(),I=wt(O,L.ref),$=m({},s,{anchorOrigin:c,anchorReference:p,elevation:b,marginThreshold:w,externalPaperSlotProps:L,transformOrigin:T,TransitionComponent:P,transitionDuration:k,TransitionProps:R}),j=CN($),N=d.useCallback(()=>{if(p==="anchorPosition")return u;const Y=Ef(a),ee=(Y&&Y.nodeType===1?Y:jt(O.current).body).getBoundingClientRect();return{top:ee.top+I0(ee,c.vertical),left:ee.left+M0(ee,c.horizontal)}},[a,c.horizontal,c.vertical,u,p]),M=d.useCallback(Y=>({vertical:I0(Y,T.vertical),horizontal:M0(Y,T.horizontal)}),[T.horizontal,T.vertical]),D=d.useCallback(Y=>{const pe={width:Y.offsetWidth,height:Y.offsetHeight},ee=M(pe);if(p==="none")return{top:null,left:null,transformOrigin:$0(ee)};const Z=N();let fe=Z.top-ee.vertical,le=Z.left-ee.horizontal;const ge=fe+pe.height,me=le+pe.width,Ie=Hr(Ef(a)),Se=Ie.innerHeight-w,te=Ie.innerWidth-w;if(w!==null&&fe<w){const oe=fe-w;fe-=oe,ee.vertical+=oe}else if(w!==null&&ge>Se){const oe=ge-Se;fe-=oe,ee.vertical+=oe}if(w!==null&&le<w){const oe=le-w;le-=oe,ee.horizontal+=oe}else if(me>te){const oe=me-te;le-=oe,ee.horizontal+=oe}return{top:`${Math.round(fe)}px`,left:`${Math.round(le)}px`,transformOrigin:$0(ee)}},[a,p,N,M,w]),[A,H]=d.useState(C),z=d.useCallback(()=>{const Y=O.current;if(!Y)return;const pe=D(Y);pe.top!==null&&(Y.style.top=pe.top),pe.left!==null&&(Y.style.left=pe.left),Y.style.transformOrigin=pe.transformOrigin,H(!0)},[D]);d.useEffect(()=>(_&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[a,_,z]);const W=(Y,pe)=>{E&&E(Y,pe),z()},G=()=>{H(!1)};d.useEffect(()=>{C&&z()}),d.useImperativeHandle(i,()=>C?{updatePosition:()=>{z()}}:null,[C,z]),d.useEffect(()=>{if(!C)return;const Y=ql(()=>{z()}),pe=Hr(a);return pe.addEventListener("resize",Y),()=>{Y.clear(),pe.removeEventListener("resize",Y)}},[a,C,z]);let q=k;k==="auto"&&!P.muiSupportAuto&&(q=void 0);const re=h||(a?jt(Ef(a)).body:void 0),ae=(o=x==null?void 0:x.root)!=null?o:xN,ce=(l=x==null?void 0:x.paper)!=null?l:AS,ue=Zn({elementType:ce,externalSlotProps:m({},L,{style:A?L.style:m({},L.style,{opacity:0})}),additionalProps:{elevation:b,ref:I},ownerState:$,className:ne(j.paper,L==null?void 0:L.className)}),ye=Zn({elementType:ae,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:C},ownerState:$,className:ne(j.root,g)}),{slotProps:de}=ye,he=K(ye,bN);return v.jsx(ae,m({},he,!Aa(ae)&&{slotProps:de,disableScrollLock:_},{children:v.jsx(P,m({appear:!0,in:C,onEntering:W,onExited:G,timeout:q},R,{children:v.jsx(ce,m({},ue,{children:f}))}))}))});function SN(e){return He("MuiMenu",e)}Be("MuiMenu",["root","paper","list"]);const PN=["onEntering"],kN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],EN={vertical:"top",horizontal:"right"},IN={vertical:"top",horizontal:"left"},MN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},SN,t)},$N=X(wN,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RN=X(AS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TN=X(Qg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ON=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:p,open:f,PaperProps:g={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:C="selectedMenu",slots:y={},slotProps:x={}}=l,S=K(l.TransitionProps,PN),T=K(l,kN),P=ic(),k=m({},l,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:g,transitionDuration:b,TransitionProps:S,variant:C}),E=MN(k),_=s&&!c&&f,R=d.useRef(null),F=(M,D)=>{R.current&&R.current.adjustStyleForScrollbar(M,{direction:P?"rtl":"ltr"}),w&&w(M,D)},L=M=>{M.key==="Tab"&&(M.preventDefault(),p&&p(M,"tabKeyDown"))};let O=-1;d.Children.map(i,(M,D)=>{d.isValidElement(M)&&(M.props.disabled||(C==="selectedMenu"&&M.props.selected||O===-1)&&(O=D))});const I=(r=y.paper)!=null?r:RN,$=(o=x.paper)!=null?o:g,j=Zn({elementType:y.root,externalSlotProps:x.root,ownerState:k,className:[E.root,a]}),N=Zn({elementType:I,externalSlotProps:$,ownerState:k,className:E.paper});return v.jsx($N,m({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?EN:IN,slots:{paper:I,root:y.root},slotProps:{root:j,paper:N},open:f,ref:n,transitionDuration:b,TransitionProps:m({onEntering:F},S),ownerState:k},T,{classes:h,children:v.jsx(TN,m({onKeyDown:L,actions:R,autoFocus:s&&(O===-1||c),autoFocusItem:_,variant:C},u,{className:ne(E.list,u.className),children:i}))}))});function FN(e){return He("MuiMenuItem",e)}const _i=Be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),DN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_N=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,a=we({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},FN,s);return m({},s,a)},LN=X(sl,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jN})(({theme:e,ownerState:t})=>m({},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"}},[`&.${_i.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_i.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(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})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${C0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${C0.inset}`]:{marginLeft:52},[`& .${Zu.root}`]:{marginTop:0,marginBottom:0},[`& .${Zu.inset}`]:{paddingLeft:36},[`& .${k0.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&m({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${k0.root} svg`]:{fontSize:"1.25rem"}}))),no=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:s=!1,divider:i=!1,disableGutters:a=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:p,className:f}=r,g=K(r,DN),h=d.useContext(Wa),b=d.useMemo(()=>({dense:s||h.dense||!1,disableGutters:a}),[h.dense,s,a]),w=d.useRef(null);vt(()=>{o&&w.current&&w.current.focus()},[o]);const C=m({},r,{dense:b.dense,divider:i,disableGutters:a}),y=_N(r),x=wt(w,n);let S;return r.disabled||(S=p!==void 0?p:-1),v.jsx(Wa.Provider,{value:b,children:v.jsx(LN,m({ref:x,role:u,tabIndex:S,component:l,focusVisibleClassName:ne(y.focusVisible,c),className:ne(y.root,f)},g,{ownerState:C,classes:y}))})});function NN(e){return He("MuiNativeSelect",e)}const Xg=Be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AN=["className","disabled","error","IconComponent","inputRef","variant"],zN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,l&&"iconOpen",r&&"disabled"]};return we(i,NN,t)},zS=({ownerState:e,theme:t})=>m({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":m({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Xg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),HN=X("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Hn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xg.multiple}`]:t.multiple}]}})(zS),HS=({ownerState:e,theme:t})=>m({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Xg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),BN=X("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})(HS),VN=d.forwardRef(function(t,n){const{className:r,disabled:o,error:l,IconComponent:s,inputRef:i,variant:a="standard"}=t,c=K(t,AN),u=m({},t,{disabled:o,variant:a,error:l}),p=zN(u);return v.jsxs(d.Fragment,{children:[v.jsx(HN,m({ownerState:u,className:ne(p.select,r),disabled:o,ref:i||n},c)),t.multiple?null:v.jsx(BN,{as:s,ownerState:u,className:p.icon})]})});var R0;const GN=["children","classes","className","label","notched"],WN=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Hn})({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%"}),UN=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Hn})(({ownerState:e,theme:t})=>m({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&m({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function KN(e){const{className:t,label:n,notched:r}=e,o=K(e,GN),l=n!=null&&n!=="",s=m({},e,{notched:r,withLabel:l});return v.jsx(WN,m({"aria-hidden":!0,className:t,ownerState:s},o,{children:v.jsx(UN,{ownerState:s,children:l?v.jsx("span",{children:n}):R0||(R0=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const qN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],YN=e=>{const{classes:t}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},oj,t);return m({},t,r)},QN=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:mp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return m({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Kr.focused} .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Kr.error} .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kr.disabled} .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&m({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),XN=X(KN,{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}}),ZN=X(vp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>m({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})),Zg=d.forwardRef(function(t,n){var r,o,l,s,i;const a=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:p="input",label:f,multiline:g=!1,notched:h,slots:b={},type:w="text"}=a,C=K(a,qN),y=YN(a),x=Ro(),S=Xl({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=m({},a,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:g,size:S.size,type:w}),P=(r=(o=b.root)!=null?o:c.Root)!=null?r:QN,k=(l=(s=b.input)!=null?s:c.Input)!=null?l:ZN;return v.jsx(yi,m({slots:{root:P,input:k},renderSuffix:E=>v.jsx(XN,{ownerState:T,className:y.notchedOutline,label:f!=null&&f!==""&&S.required?i||(i=v.jsxs(d.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:u,inputComponent:p,multiline:g,ref:n,type:w},C,{classes:m({},y,{notchedOutline:null})}))});Zg.muiName="Input";const JN=ot(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),eA=ot(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tA(e){return He("MuiSelect",e)}const Li=Be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var T0;const nA=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rA=X("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Li.select}`]:t.select},{[`&.${Li.select}`]:t[n.variant]},{[`&.${Li.error}`]:t.error},{[`&.${Li.multiple}`]:t.multiple}]}})(zS,{[`&.${Li.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oA=X("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})(HS),lA=X("input",{shouldForwardProp:e=>rS(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 O0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sA(e){return e==null||typeof e=="string"&&!e.trim()}const iA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return we(i,tA,t)},aA=d.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":l,autoFocus:s,autoWidth:i,children:a,className:c,defaultOpen:u,defaultValue:p,disabled:f,displayEmpty:g,error:h=!1,IconComponent:b,inputRef:w,labelId:C,MenuProps:y={},multiple:x,name:S,onBlur:T,onChange:P,onClose:k,onFocus:E,onOpen:_,open:R,readOnly:F,renderValue:L,SelectDisplayProps:O={},tabIndex:I,value:$,variant:j="standard"}=t,N=K(t,nA),[M,D]=rl({controlled:$,default:p,name:"Select"}),[A,H]=rl({controlled:R,default:u,name:"Select"}),z=d.useRef(null),W=d.useRef(null),[G,q]=d.useState(null),{current:re}=d.useRef(R!=null),[ae,ce]=d.useState(),ue=wt(n,w),ye=d.useCallback(be=>{W.current=be,be&&q(be)},[]),de=G==null?void 0:G.parentNode;d.useImperativeHandle(ue,()=>({focus:()=>{W.current.focus()},node:z.current,value:M}),[M]),d.useEffect(()=>{u&&A&&G&&!re&&(ce(i?null:de.clientWidth),W.current.focus())},[G,i]),d.useEffect(()=>{s&&W.current.focus()},[s]),d.useEffect(()=>{if(!C)return;const be=jt(W.current).getElementById(C);if(be){const je=()=>{getSelection().isCollapsed&&W.current.focus()};return be.addEventListener("click",je),()=>{be.removeEventListener("click",je)}}},[C]);const he=(be,je)=>{be?_&&_(je):k&&k(je),re||(ce(i?null:de.clientWidth),H(be))},Y=be=>{be.button===0&&(be.preventDefault(),W.current.focus(),he(!0,be))},pe=be=>{he(!1,be)},ee=d.Children.toArray(a),Z=be=>{const je=ee.find(ie=>ie.props.value===be.target.value);je!==void 0&&(D(je.props.value),P&&P(be,je))},fe=be=>je=>{let ie;if(je.currentTarget.hasAttribute("tabindex")){if(x){ie=Array.isArray(M)?M.slice():[];const Ee=M.indexOf(be.props.value);Ee===-1?ie.push(be.props.value):ie.splice(Ee,1)}else ie=be.props.value;if(be.props.onClick&&be.props.onClick(je),M!==ie&&(D(ie),P)){const Ee=je.nativeEvent||je,Ae=new Ee.constructor(Ee.type,Ee);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ie,name:S}}),P(Ae,be)}x||he(!1,je)}},le=be=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(be.key)!==-1&&(be.preventDefault(),he(!0,be))},ge=G!==null&&A,me=be=>{!ge&&T&&(Object.defineProperty(be,"target",{writable:!0,value:{value:M,name:S}}),T(be))};delete N["aria-invalid"];let Ie,Se;const te=[];let oe=!1;(Xu({value:M})||g)&&(L?Ie=L(M):oe=!0);const xe=ee.map(be=>{if(!d.isValidElement(be))return null;let je;if(x){if(!Array.isArray(M))throw new Error(Eo(2));je=M.some(ie=>O0(ie,be.props.value)),je&&oe&&te.push(be.props.children)}else je=O0(M,be.props.value),je&&oe&&(Se=be.props.children);return d.cloneElement(be,{"aria-selected":je?"true":"false",onClick:fe(be),onKeyUp:ie=>{ie.key===" "&&ie.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(ie)},role:"option",selected:je,value:void 0,"data-value":be.props.value})});oe&&(x?te.length===0?Ie=null:Ie=te.reduce((be,je,ie)=>(be.push(je),ie<te.length-1&&be.push(", "),be),[]):Ie=Se);let Oe=ae;!i&&re&&G&&(Oe=de.clientWidth);let Ve;typeof I<"u"?Ve=I:Ve=f?null:0;const Te=O.id||(S?`mui-component-select-${S}`:void 0),se=m({},t,{variant:j,value:M,open:ge,error:h}),qe=iA(se),tt=m({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),Xe=bt();return v.jsxs(d.Fragment,{children:[v.jsx(rA,m({ref:ye,tabIndex:Ve,role:"combobox","aria-controls":Xe,"aria-disabled":f?"true":void 0,"aria-expanded":ge?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[C,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:le,onMouseDown:f||F?null:Y,onBlur:me,onFocus:E},O,{ownerState:se,className:ne(O.className,qe.select,c),id:Te,children:sA(Ie)?T0||(T0=v.jsx("span",{className:"notranslate",children:"​"})):Ie})),v.jsx(lA,m({"aria-invalid":h,value:Array.isArray(M)?M.join(","):M,name:S,ref:z,"aria-hidden":!0,onChange:Z,tabIndex:-1,disabled:f,className:qe.nativeInput,autoFocus:s,ownerState:se},N)),v.jsx(oA,{as:b,className:qe.icon,ownerState:se}),v.jsx(ON,m({id:`menu-${S||""}`,anchorEl:de,open:ge,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:m({"aria-labelledby":C,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Xe},y.MenuListProps),slotProps:m({},y.slotProps,{paper:m({},tt,{style:m({minWidth:Oe},tt!=null?tt.style:null)})}),children:xe}))]})}),cA=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uA=["root"],dA=e=>{const{classes:t}=e;return t},Jg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Hn(e)&&e!=="variant",slot:"Root"},pA=X(Yg,Jg)(""),fA=X(Zg,Jg)(""),mA=X(qg,Jg)(""),bp=d.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:s={},className:i,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:u=wS,id:p,input:f,inputProps:g,label:h,labelId:b,MenuProps:w,multiple:C=!1,native:y=!1,onClose:x,onOpen:S,open:T,renderValue:P,SelectDisplayProps:k,variant:E="outlined"}=r,_=K(r,cA),R=y?VN:aA,F=Ro(),L=Xl({props:r,muiFormControl:F,states:["variant","error"]}),O=L.variant||E,I=m({},r,{variant:O,classes:s}),$=dA(I),j=K($,uA),N=f||{standard:v.jsx(pA,{ownerState:I}),outlined:v.jsx(fA,{label:h,ownerState:I}),filled:v.jsx(mA,{ownerState:I})}[O],M=wt(n,Yl(N));return v.jsx(d.Fragment,{children:d.cloneElement(N,m({inputComponent:R,inputProps:m({children:l,error:L.error,IconComponent:u,variant:O,type:void 0,multiple:C},y?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:b,MenuProps:w,onClose:x,onOpen:S,open:T,renderValue:P,SelectDisplayProps:m({id:p},k)},g,{classes:g?En(j,g.classes):j},f?f.props.inputProps:{})},(C&&y||c)&&O==="outlined"?{notched:!0}:{},{ref:M,className:ne(N.props.className,i,$.root)},!f&&{variant:O},_))})});bp.muiName="Select";function hA(e){return He("MuiSkeleton",e)}Be("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const gA=["animation","className","component","height","style","variant","width"];let Ju=e=>e,F0,D0,j0,_0;const vA=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:l,height:s}=e;return we({root:["root",n,r,o&&"withChildren",o&&!l&&"fitContent",o&&!s&&"heightAuto"]},hA,t)},yA=ul(F0||(F0=Ju`
156
+ `),u_)),$S=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:s=!1,size:i=40,style:a,thickness:c=3.6,value:u=0,variant:p="indeterminate"}=r,f=K(r,a_),g=m({},r,{color:l,disableShrink:s,size:i,thickness:c,value:u,variant:p}),h=d_(g),b={},w={},C={};if(p==="determinate"){const y=2*Math.PI*((Fo-c)/2);b.strokeDasharray=y.toFixed(3),C["aria-valuenow"]=Math.round(u),b.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return v.jsx(p_,m({className:ne(h.root,o),style:m({width:i,height:i},w,a),ownerState:g,ref:n,role:"progressbar"},C,f,{children:v.jsx(f_,{className:h.svg,ownerState:g,viewBox:`${Fo/2} ${Fo/2} ${Fo} ${Fo}`,children:v.jsx(m_,{className:h.circle,style:b,ownerState:g,cx:Fo,cy:Fo,r:(Fo-c)/2,fill:"none",strokeWidth:c})})}))});function v0(e){return e.substring(2).toLowerCase()}function h_(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function RS(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:l="onTouchEnd"}=e,s=d.useRef(!1),i=d.useRef(null),a=d.useRef(!1),c=d.useRef(!1);d.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const u=wt(ql(t),i),p=Ct(h=>{const b=c.current;c.current=!1;const w=jt(i.current);if(!a.current||!i.current||"clientX"in h&&h_(h,w))return;if(s.current){s.current=!1;return}let C;h.composedPath?C=h.composedPath().indexOf(i.current)>-1:C=!w.documentElement.contains(h.target)||i.current.contains(h.target),!C&&(n||!b)&&o(h)}),f=h=>b=>{c.current=!0;const w=t.props[h];w&&w(b)},g={ref:u};return l!==!1&&(g[l]=f(l)),d.useEffect(()=>{if(l!==!1){const h=v0(l),b=jt(i.current),w=()=>{s.current=!0};return b.addEventListener(h,p),b.addEventListener("touchmove",w),()=>{b.removeEventListener(h,p),b.removeEventListener("touchmove",w)}}},[p,l]),r!==!1&&(g[r]=f(r)),d.useEffect(()=>{if(r!==!1){const h=v0(r),b=jt(i.current);return b.addEventListener(h,p),()=>{b.removeEventListener(h,p)}}},[p,r]),v.jsx(d.Fragment,{children:d.cloneElement(t,g)})}const TS=nT({createStyledComponent:X("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ke({props:e,name:"MuiContainer"})}),g_=(e,t)=>m({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),v_=e=>m({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),y_=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,i])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=i.palette)==null?void 0:a.mode}});let o=m({html:g_(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:m({margin:0},v_(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const l=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return l&&(o=[o,l]),o};function b_(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(d.Fragment,{children:[v.jsx(xS,{styles:o=>y_(o,r)}),n]})}function C_(e){const t=jt(e);return t.body===e?Br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function y0(e){return parseInt(Br(e).getComputedStyle(e).paddingRight,10)||0}function x_(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 b0(e,t,n,r,o){const l=[t,n,...r];[].forEach.call(e.children,s=>{const i=l.indexOf(s)===-1,a=!x_(s);i&&a&&pa(s,o)})}function Sf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function w_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(C_(r)){const s=z1(jt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${y0(r)+s}px`;const i=jt(r).querySelectorAll(".mui-fixed");[].forEach.call(i,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${y0(a)+s}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=jt(r).body;else{const s=r.parentElement,i=Br(r);l=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:s,property:i})=>{l?s.style.setProperty(i,l):s.style.removeProperty(i)})}}function S_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class P_{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&&pa(t.modalRef,!1);const o=S_(n);b0(n,t.mount,t.modalRef,o,!0);const l=Sf(this.containers,s=>s.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Sf(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=w_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Sf(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&pa(t.modalRef,n),b0(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=l.modals[l.modals.length-1];s.modalRef&&pa(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const k_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function E_(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 I_(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 M_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||I_(e))}function $_(e){const t=[],n=[];return Array.from(e.querySelectorAll(k_)).forEach((r,o)=>{const l=E_(r);l===-1||!M_(r)||(l===0?t.push(r):n.push({documentOrder:o,tabIndex:l,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 R_(){return!0}function OS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:l=$_,isEnabled:s=R_,open:i}=e,a=d.useRef(!1),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=d.useRef(null),g=d.useRef(!1),h=d.useRef(null),b=wt(ql(t),h),w=d.useRef(null);d.useEffect(()=>{!i||!h.current||(g.current=!n)},[n,i]),d.useEffect(()=>{if(!i||!h.current)return;const x=jt(h.current);return h.current.contains(x.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),g.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[i]),d.useEffect(()=>{if(!i||!h.current)return;const x=jt(h.current),S=k=>{w.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===h.current&&k.shiftKey&&(a.current=!0,u.current&&u.current.focus())},T=()=>{const k=h.current;if(k===null)return;if(!x.hasFocus()||!s()||a.current){a.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==u.current)return;if(x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let E=[];if((x.activeElement===c.current||x.activeElement===u.current)&&(E=l(h.current)),E.length>0){var _,R;const F=!!((_=w.current)!=null&&_.shiftKey&&((R=w.current)==null?void 0:R.key)==="Tab"),L=E[0],O=E[E.length-1];typeof L!="string"&&typeof O!="string"&&(F?O.focus():L.focus())}else k.focus()};x.addEventListener("focusin",T),x.addEventListener("keydown",S,!0);const P=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",T),x.removeEventListener("keydown",S,!0)}},[n,r,o,s,i,l]);const C=x=>{p.current===null&&(p.current=x.relatedTarget),g.current=!0,f.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{p.current===null&&(p.current=x.relatedTarget),g.current=!0};return v.jsxs(d.Fragment,{children:[v.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:b,onFocus:C}),v.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function T_(e){return typeof e=="function"?e():e}function O_(e){return e?e.props.hasOwnProperty("in"):!1}const F_=new P_;function D_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=F_,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:c,open:u,rootRef:p}=e,f=d.useRef({}),g=d.useRef(null),h=d.useRef(null),b=wt(h,p),[w,C]=d.useState(!u),y=O_(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>jt(g.current),T=()=>(f.current.modalRef=h.current,f.current.mount=g.current,f.current),P=()=>{o.mount(T(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=Ct(()=>{const j=T_(t)||S().body;o.add(T(),j),h.current&&P()}),E=d.useCallback(()=>o.isTopModal(T()),[o]),_=Ct(j=>{g.current=j,j&&(u&&E()?P():h.current&&pa(h.current,x))}),R=d.useCallback(()=>{o.remove(T(),x)},[x,o]);d.useEffect(()=>()=>{R()},[R]),d.useEffect(()=>{u?k():(!y||!l)&&R()},[u,R,y,l,k]);const F=j=>N=>{var M;(M=j.onKeyDown)==null||M.call(j,N),!(N.key!=="Escape"||N.which===229||!E())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},L=j=>N=>{var M;(M=j.onClick)==null||M.call(j,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(j={})=>{const N=B1(e);delete N.onTransitionEnter,delete N.onTransitionExited;const M=m({},N,j);return m({role:"presentation"},M,{onKeyDown:F(M),ref:b})},getBackdropProps:(j={})=>{const N=j;return m({"aria-hidden":!0},N,{onClick:L(N),open:u})},getTransitionProps:()=>{const j=()=>{C(!1),s&&s()},N=()=>{C(!0),i&&i(),l&&R()};return{onEnter:Dm(j,a==null?void 0:a.props.onEnter),onExited:Dm(N,a==null?void 0:a.props.onExited)}},rootRef:b,portalRef:_,isTopModal:E,exited:w,hasTransition:y}}function j_(e){return He("MuiModal",e)}Be("MuiModal",["root","hidden","backdrop"]);const __=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L_=e=>{const{open:t,exited:n,classes:r}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},j_,r)},N_=X("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})=>m({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),A_=X(kS,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FS=d.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Ke({name:"MuiModal",props:t}),{BackdropComponent:u=A_,BackdropProps:p,className:f,closeAfterTransition:g=!1,children:h,container:b,component:w,components:C={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:T=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:_=!1,keepMounted:R=!1,onBackdropClick:F,open:L,slotProps:O,slots:I}=c,$=K(c,__),j=m({},c,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:T,disablePortal:P,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:_,keepMounted:R}),{getRootProps:N,getBackdropProps:M,getTransitionProps:D,portalRef:A,isTopModal:H,exited:z,hasTransition:W}=D_(m({},j,{rootRef:n})),G=m({},j,{exited:z}),q=L_(G),re={};if(h.props.tabIndex===void 0&&(re.tabIndex="-1"),W){const{onEnter:Y,onExited:pe}=D();re.onEnter=Y,re.onExited=pe}const ae=(r=(o=I==null?void 0:I.root)!=null?o:C.Root)!=null?r:N_,ce=(l=(s=I==null?void 0:I.backdrop)!=null?s:C.Backdrop)!=null?l:u,ue=(i=O==null?void 0:O.root)!=null?i:y.root,ye=(a=O==null?void 0:O.backdrop)!=null?a:y.backdrop,de=Jn({elementType:ae,externalSlotProps:ue,externalForwardedProps:$,getSlotProps:N,additionalProps:{ref:n,as:w},ownerState:G,className:ne(f,ue==null?void 0:ue.className,q==null?void 0:q.root,!G.open&&G.exited&&(q==null?void 0:q.hidden))}),he=Jn({elementType:ce,externalSlotProps:ye,additionalProps:p,getSlotProps:Y=>M(m({},Y,{onClick:pe=>{F&&F(pe),Y!=null&&Y.onClick&&Y.onClick(pe)}})),className:ne(ye==null?void 0:ye.className,p==null?void 0:p.className,q==null?void 0:q.backdrop),ownerState:G});return!R&&!L&&(!W||z)?null:v.jsx(bS,{ref:A,container:b,disablePortal:P,children:v.jsxs(ae,m({},de,{children:[!_&&u?v.jsx(ce,m({},he)):null,v.jsx(OS,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:H,open:L,children:d.cloneElement(h,re)})]}))})});function z_(e){return He("MuiDialog",e)}const Pf=Be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DS=d.createContext({}),H_=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],B_=X(kS,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),V_=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:l}=e,s={root:["root"],container:["container",`scroll${Q(n)}`],paper:["paper",`paperScroll${Q(n)}`,`paperWidth${Q(String(r))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return we(s,z_,t)},G_=X(FS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),W_=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Q(n.scroll)}`]]}})(({ownerState:e})=>m({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"}})),U_=X(Sr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Q(n.scroll)}`],t[`paperWidth${Q(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>m({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Pf.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}`,[`&.${Pf.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,[`&.${Pf.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),K_=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),o=Vr(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:a,BackdropProps:c,children:u,className:p,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:h=!1,maxWidth:b="sm",onBackdropClick:w,onClick:C,onClose:y,open:x,PaperComponent:S=Sr,PaperProps:T={},scroll:P="paper",TransitionComponent:k=PS,transitionDuration:E=l,TransitionProps:_}=r,R=K(r,H_),F=m({},r,{disableEscapeKeyDown:f,fullScreen:g,fullWidth:h,maxWidth:b,scroll:P}),L=V_(F),O=d.useRef(),I=M=>{O.current=M.target===M.currentTarget},$=M=>{C&&C(M),O.current&&(O.current=null,w&&w(M),y&&y(M,"backdropClick"))},j=bt(i),N=d.useMemo(()=>({titleId:j}),[j]);return v.jsx(G_,m({className:ne(L.root,p),closeAfterTransition:!0,components:{Backdrop:B_},componentsProps:{backdrop:m({transitionDuration:E,as:a},c)},disableEscapeKeyDown:f,onClose:y,open:x,ref:n,onClick:$,ownerState:F},R,{children:v.jsx(k,m({appear:!0,in:x,timeout:E,role:"presentation"},_,{children:v.jsx(W_,{className:ne(L.container),onMouseDown:I,ownerState:F,children:v.jsx(U_,m({as:S,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":j},T,{className:ne(L.paper,T.className),ownerState:F,children:v.jsx(DS.Provider,{value:N,children:u})}))})}))}))});function q_(e){return He("MuiDialogActions",e)}Be("MuiDialogActions",["root","spacing"]);const Y_=["className","disableSpacing"],Q_=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},q_,t)},X_=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>m({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Z_=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=r,s=K(r,Y_),i=m({},r,{disableSpacing:l}),a=Q_(i);return v.jsx(X_,m({className:ne(a.root,o),ownerState:i,ref:n},s))});function J_(e){return He("MuiDialogContent",e)}Be("MuiDialogContent",["root","dividers"]);function eL(e){return He("MuiDialogTitle",e)}const tL=Be("MuiDialogTitle",["root"]),nL=["className","dividers"],rL=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},J_,t)},oL=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>m({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}`}:{[`.${tL.root} + &`]:{paddingTop:0}})),lL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,s=K(r,nL),i=m({},r,{dividers:l}),a=rL(i);return v.jsx(oL,m({className:ne(a.root,o),ownerState:i,ref:n},s))}),sL=["className","id"],iL=e=>{const{classes:t}=e;return we({root:["root"]},eL,t)},aL=X(Zt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),cL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:o,id:l}=r,s=K(r,sL),i=r,a=iL(i),{titleId:c=l}=d.useContext(DS);return v.jsx(aL,m({component:"h2",className:ne(a.root,o),ownerState:i,ref:n,variant:"h6",id:l??c},s))});function uL(e){return He("MuiDivider",e)}const C0=Be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dL=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pL=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:l,orientation:s,textAlign:i,variant:a}=e;return we({root:["root",t&&"absolute",a,l&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},uL,r)},fL=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>m({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>m({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>m({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),mL=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>m({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:i=l?"div":"hr",flexItem:a=!1,light:c=!1,orientation:u="horizontal",role:p=i!=="hr"?"separator":void 0,textAlign:f="center",variant:g="fullWidth"}=r,h=K(r,dL),b=m({},r,{absolute:o,component:i,flexItem:a,light:c,orientation:u,role:p,textAlign:f,variant:g}),w=pL(b);return v.jsx(fL,m({as:i,className:ne(w.root,s),role:p,ref:n,ownerState:b},h,{children:l?v.jsx(mL,{className:w.wrapper,ownerState:b,children:l}):null}))});jS.muiSkipListHighlight=!0;const hL=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],gL=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},lj,t);return m({},t,o)},vL=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mp(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)",l=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)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return m({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,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:l}},[`&.${Un.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${Un.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!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"},[`&.${Un.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Un.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Un.disabled}, .${Un.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Un.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&m({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),yL=X(vp,{name:"MuiFilledInput",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>m({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Yg=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:p="input",multiline:f=!1,slotProps:g,slots:h={},type:b="text"}=i,w=K(i,hL),C=m({},i,{fullWidth:u,inputComponent:p,multiline:f,type:b}),y=gL(i),x={root:{ownerState:C},input:{ownerState:C}},S=g??c?En(x,g??c):x,T=(r=(o=h.root)!=null?o:a.Root)!=null?r:vL,P=(l=(s=h.input)!=null?s:a.Input)!=null?l:yL;return v.jsx(yi,m({slots:{root:T,input:P},componentsProps:S,fullWidth:u,inputComponent:p,multiline:f,ref:n,type:b},w,{classes:y}))});Yg.muiName="Input";function bL(e){return He("MuiFormControl",e)}Be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CL=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],xL=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Q(n)}`,r&&"fullWidth"]};return we(o,bL,t)},wL=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,t[`margin${Q(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>m({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%"})),_S=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormControl"}),{children:o,className:l,color:s="primary",component:i="div",disabled:a=!1,error:c=!1,focused:u,fullWidth:p=!1,hiddenLabel:f=!1,margin:g="none",required:h=!1,size:b="medium",variant:w="outlined"}=r,C=K(r,CL),y=m({},r,{color:s,component:i,disabled:a,error:c,fullWidth:p,hiddenLabel:f,margin:g,required:h,size:b,variant:w}),x=xL(y),[S,T]=d.useState(()=>{let O=!1;return o&&d.Children.forEach(o,I=>{if(!uu(I,["Input","Select"]))return;const $=uu(I,["Select"])?I.props.input:I;$&&ZD($.props)&&(O=!0)}),O}),[P,k]=d.useState(()=>{let O=!1;return o&&d.Children.forEach(o,I=>{uu(I,["Input","Select"])&&(Xu(I.props,!0)||Xu(I.props.inputProps,!0))&&(O=!0)}),O}),[E,_]=d.useState(!1);a&&E&&_(!1);const R=u!==void 0&&!a?u:E;let F;const L=d.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:s,disabled:a,error:c,filled:P,focused:R,fullWidth:p,hiddenLabel:f,size:b,onBlur:()=>{_(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{_(!0)},registerEffect:F,required:h,variant:w}),[S,s,a,c,P,R,p,f,F,h,b,w]);return v.jsx(fp.Provider,{value:L,children:v.jsx(wL,m({as:i,ownerState:y,className:ne(x.root,l),ref:n},C,{children:o}))})}),Ms=uT({createStyledComponent:X("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})});function SL(e){return He("MuiFormControlLabel",e)}const Qi=Be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),PL=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],kL=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:l}=e,s={root:["root",n&&"disabled",`labelPlacement${Q(r)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return we(s,SL,t)},EL=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qi.label}`]:t.label},t.root,t[`labelPlacement${Q(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>m({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qi.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},{[`& .${Qi.label}`]:{[`&.${Qi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),IL=X("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qi.error}`]:{color:(e.vars||e).palette.error.main}})),ML=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:a,disabled:c,disableTypography:u,label:p,labelPlacement:f="end",required:g,slotProps:h={}}=l,b=K(l,PL),w=Ro(),C=(r=c??a.props.disabled)!=null?r:w==null?void 0:w.disabled,y=g??a.props.required,x={disabled:C,required:y};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]>"u"&&typeof l[_]<"u"&&(x[_]=l[_])});const S=Ql({props:l,muiFormControl:w,states:["error"]}),T=m({},l,{disabled:C,labelPlacement:f,required:y,error:S.error}),P=kL(T),k=(o=h.typography)!=null?o:i.typography;let E=p;return E!=null&&E.type!==Zt&&!u&&(E=v.jsx(Zt,m({component:"span"},k,{className:ne(P.label,k==null?void 0:k.className),children:E}))),v.jsxs(EL,m({className:ne(P.root,s),ownerState:T,ref:n},b,{children:[d.cloneElement(a,x),y?v.jsxs(Ms,{display:"block",children:[E,v.jsxs(IL,{ownerState:T,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):E]}))});function $L(e){return He("MuiFormHelperText",e)}const x0=Be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w0;const RL=["children","className","component","disabled","error","filled","focused","margin","required","variant"],TL=e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:s,focused:i,required:a}=e,c={root:["root",o&&"disabled",l&&"error",r&&`size${Q(r)}`,n&&"contained",i&&"focused",s&&"filled",a&&"required"]};return we(c,$L,t)},OL=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Q(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${x0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${x0.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),FL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:s="p"}=r,i=K(r,RL),a=Ro(),c=Ql({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),u=m({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=TL(u);return v.jsx(OL,m({as:s,ownerState:u,className:ne(p.root,l),ref:n},i,{children:o===" "?w0||(w0=v.jsx("span",{className:"notranslate",children:"​"})):o}))});function DL(e){return He("MuiFormLabel",e)}const fa=Be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),jL=["children","className","color","component","disabled","error","filled","focused","required"],_L=e=>{const{classes:t,color:n,focused:r,disabled:o,error:l,filled:s,required:i}=e,a={root:["root",`color${Q(n)}`,o&&"disabled",l&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return we(a,DL,t)},LL=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${fa.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${fa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fa.error}`]:{color:(e.vars||e).palette.error.main}})),NL=X("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${fa.error}`]:{color:(e.vars||e).palette.error.main}})),AL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFormLabel"}),{children:o,className:l,component:s="label"}=r,i=K(r,jL),a=Ro(),c=Ql({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),u=m({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=_L(u);return v.jsxs(LL,m({as:s,ownerState:u,className:ne(p.root,l),ref:n},i,{children:[o,c.required&&v.jsxs(NL,{ownerState:u,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),zL=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gm(e){return`scale(${e}, ${e**2})`}const HL={entering:{opacity:1,transform:Gm(1)},entered:{opacity:1,transform:"none"}},kf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ga=d.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:l,easing:s,in:i,onEnter:a,onEntered:c,onEntering:u,onExit:p,onExited:f,onExiting:g,style:h,timeout:b="auto",TransitionComponent:w=ao}=t,C=K(t,zL),y=Is(),x=d.useRef(),S=Vr(),T=d.useRef(null),P=wt(T,ql(l),n),k=$=>j=>{if($){const N=T.current;j===void 0?$(N):$(N,j)}},E=k(u),_=k(($,j)=>{lS($);const{duration:N,delay:M,easing:D}=Yu({style:h,timeout:b,easing:s},{mode:"enter"});let A;b==="auto"?(A=S.transitions.getAutoHeightDuration($.clientHeight),x.current=A):A=N,$.style.transition=[S.transitions.create("opacity",{duration:A,delay:M}),S.transitions.create("transform",{duration:kf?A:A*.666,delay:M,easing:D})].join(","),a&&a($,j)}),R=k(c),F=k(g),L=k($=>{const{duration:j,delay:N,easing:M}=Yu({style:h,timeout:b,easing:s},{mode:"exit"});let D;b==="auto"?(D=S.transitions.getAutoHeightDuration($.clientHeight),x.current=D):D=j,$.style.transition=[S.transitions.create("opacity",{duration:D,delay:N}),S.transitions.create("transform",{duration:kf?D:D*.666,delay:kf?N:N||D*.333,easing:M})].join(","),$.style.opacity=0,$.style.transform=Gm(.75),p&&p($)}),O=k(f),I=$=>{b==="auto"&&y.start(x.current||0,$),r&&r(T.current,$)};return v.jsx(w,m({appear:o,in:i,nodeRef:T,onEnter:_,onEntered:R,onEntering:E,onExit:L,onExited:O,onExiting:F,addEndListener:I,timeout:b==="auto"?null:b},C,{children:($,j)=>d.cloneElement(l,m({style:m({opacity:0,transform:Gm(.75),visibility:$==="exited"&&!i?"hidden":void 0},HL[$],h,l.props.style),ref:P},j))}))});Ga.muiSupportAuto=!0;const BL=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],VL=e=>{const{classes:t,disableUnderline:n}=e,o=we({root:["root",!n&&"underline"],input:["input"]},rj,t);return m({},t,o)},GL=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mp(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})`),m({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"},[`&.${Vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vo.disabled}, .${Vo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),WL=X(vp,{name:"MuiInput",slot:"Input",overridesResolver:hp})({}),Qg=d.forwardRef(function(t,n){var r,o,l,s;const i=Ke({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:u,fullWidth:p=!1,inputComponent:f="input",multiline:g=!1,slotProps:h,slots:b={},type:w="text"}=i,C=K(i,BL),y=VL(i),S={root:{ownerState:{disableUnderline:a}}},T=h??u?En(h??u,S):S,P=(r=(o=b.root)!=null?o:c.Root)!=null?r:GL,k=(l=(s=b.input)!=null?s:c.Input)!=null?l:WL;return v.jsx(yi,m({slots:{root:P,input:k},slotProps:T,fullWidth:p,inputComponent:f,multiline:g,ref:n,type:w},C,{classes:y}))});Qg.muiName="Input";function UL(e){return He("MuiInputAdornment",e)}const S0=Be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var P0;const KL=["children","className","component","disablePointerEvents","disableTypography","position","variant"],qL=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},YL=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:l,variant:s}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${Q(o)}`,s,r&&"hiddenLabel",l&&`size${Q(l)}`]};return we(i,UL,t)},QL=X("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:qL})(({theme:e,ownerState:t})=>m({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${S0.positionStart}&:not(.${S0.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),XL=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:s="div",disablePointerEvents:i=!1,disableTypography:a=!1,position:c,variant:u}=r,p=K(r,KL),f=Ro()||{};let g=u;u&&f.variant,f&&!g&&(g=f.variant);const h=m({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:i,position:c,variant:g}),b=YL(h);return v.jsx(fp.Provider,{value:null,children:v.jsx(QL,m({as:s,ownerState:h,className:ne(b.root,l),ref:n},p,{children:typeof o=="string"&&!a?v.jsx(Zt,{color:"text.secondary",children:o}):v.jsxs(d.Fragment,{children:[c==="start"?P0||(P0=v.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function ZL(e){return He("MuiInputLabel",e)}Be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const JL=["disableAnimation","margin","shrink","variant","className"],eN=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:l,variant:s,required:i}=e,a={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Q(r)}`,s],asterisk:[i&&"asterisk"]},c=we(a,ZL,t);return m({},t,c)},tN=X(AL,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fa.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>m({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"&&m({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&&m({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"&&m({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),LS=d.forwardRef(function(t,n){const r=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:l,className:s}=r,i=K(r,JL),a=Ro();let c=l;typeof c>"u"&&a&&(c=a.filled||a.focused||a.adornedStart);const u=Ql({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=m({},r,{disableAnimation:o,formControl:a,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=eN(p);return v.jsx(tN,m({"data-shrink":c,ownerState:p,ref:n,className:ne(f.root,s)},i,{classes:f}))}),Wa=d.createContext({});function nN(e){return He("MuiList",e)}Be("MuiList",["root","padding","dense","subheader"]);const rN=["children","className","component","dense","disablePadding","subheader"],oN=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return we({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nN,t)},lN=X("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})=>m({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),sN=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:o,className:l,component:s="ul",dense:i=!1,disablePadding:a=!1,subheader:c}=r,u=K(r,rN),p=d.useMemo(()=>({dense:i}),[i]),f=m({},r,{component:s,dense:i,disablePadding:a}),g=oN(f);return v.jsx(Wa.Provider,{value:p,children:v.jsxs(lN,m({as:s,className:ne(g.root,l),ref:n,ownerState:f},u,{children:[c,o]}))})});function iN(e){return He("MuiListItemIcon",e)}const k0=Be("MuiListItemIcon",["root","alignItemsFlexStart"]),aN=["className"],cN=e=>{const{alignItems:t,classes:n}=e;return we({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},iN,n)},uN=X("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})=>m({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),As=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:o}=r,l=K(r,aN),s=d.useContext(Wa),i=m({},r,{alignItems:s.alignItems}),a=cN(i);return v.jsx(uN,m({className:ne(a.root,o),ownerState:i,ref:n},l))});function dN(e){return He("MuiListItemText",e)}const Zu=Be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],fN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:l}=e;return we({root:["root",n&&"inset",l&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},dN,t)},mN=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zu.primary}`]:t.primary},{[`& .${Zu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>m({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),zs=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:o,className:l,disableTypography:s=!1,inset:i=!1,primary:a,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:p}=r,f=K(r,pN),{dense:g}=d.useContext(Wa);let h=a??o,b=u;const w=m({},r,{disableTypography:s,inset:i,primary:!!h,secondary:!!b,dense:g}),C=fN(w);return h!=null&&h.type!==Zt&&!s&&(h=v.jsx(Zt,m({variant:g?"body2":"body1",className:C.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:h}))),b!=null&&b.type!==Zt&&!s&&(b=v.jsx(Zt,m({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},p,{children:b}))),v.jsxs(mN,m({className:ne(C.root,l),ownerState:w,ref:n},f,{children:[h,b]}))}),hN=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function E0(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NS(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 ji(e,t,n,r,o,l){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const a=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!NS(i,l)||a)i=o(e,i,n);else return i.focus(),!0}return!1}const Xg=d.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:l=!1,children:s,className:i,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:u,variant:p="selectedMenu"}=t,f=K(t,hN),g=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vt(()=>{o&&g.current.focus()},[o]),d.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const T=!g.current.style.width;if(x.clientHeight<g.current.clientHeight&&T){const P=`${z1(jt(x))}px`;g.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=P,g.current.style.width=`calc(100% + ${P})`}return g.current}}),[]);const b=x=>{const S=g.current,T=x.key,P=jt(S).activeElement;if(T==="ArrowDown")x.preventDefault(),ji(S,P,c,a,Ef);else if(T==="ArrowUp")x.preventDefault(),ji(S,P,c,a,E0);else if(T==="Home")x.preventDefault(),ji(S,null,c,a,Ef);else if(T==="End")x.preventDefault(),ji(S,null,c,a,E0);else if(T.length===1){const k=h.current,E=T.toLowerCase(),_=performance.now();k.keys.length>0&&(_-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&E!==k.keys[0]&&(k.repeating=!1)),k.lastTime=_,k.keys.push(E);const R=P&&!k.repeating&&NS(P,k);k.previousKeyMatched&&(R||ji(S,P,!1,a,Ef,k))?x.preventDefault():k.previousKeyMatched=!1}u&&u(x)},w=wt(g,n);let C=-1;d.Children.forEach(s,(x,S)=>{if(!d.isValidElement(x)){C===S&&(C+=1,C>=s.length&&(C=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||C===-1)&&(C=S),C===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const y=d.Children.map(s,(x,S)=>{if(S===C){const T={};return l&&(T.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),d.cloneElement(x,T)}return x});return v.jsx(sN,m({role:"menu",ref:w,className:i,onKeyDown:b,tabIndex:o?0:-1},f,{children:y}))});function gN(e){return He("MuiPopover",e)}Be("MuiPopover",["root","paper"]);const vN=["onEntering"],yN=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bN=["slotProps"];function I0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function M0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function If(e){return typeof e=="function"?e():e}const CN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},gN,t)},xN=X(FS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AS=X(Sr,{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}),wN=d.forwardRef(function(t,n){var r,o,l;const s=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:p="anchorEl",children:f,className:g,container:h,elevation:b=8,marginThreshold:w=16,open:C,PaperProps:y={},slots:x,slotProps:S,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:P=Ga,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:_=!1}=s,R=K(s.TransitionProps,vN),F=K(s,yN),L=(r=S==null?void 0:S.paper)!=null?r:y,O=d.useRef(),I=wt(O,L.ref),$=m({},s,{anchorOrigin:c,anchorReference:p,elevation:b,marginThreshold:w,externalPaperSlotProps:L,transformOrigin:T,TransitionComponent:P,transitionDuration:k,TransitionProps:R}),j=CN($),N=d.useCallback(()=>{if(p==="anchorPosition")return u;const Y=If(a),ee=(Y&&Y.nodeType===1?Y:jt(O.current).body).getBoundingClientRect();return{top:ee.top+I0(ee,c.vertical),left:ee.left+M0(ee,c.horizontal)}},[a,c.horizontal,c.vertical,u,p]),M=d.useCallback(Y=>({vertical:I0(Y,T.vertical),horizontal:M0(Y,T.horizontal)}),[T.horizontal,T.vertical]),D=d.useCallback(Y=>{const pe={width:Y.offsetWidth,height:Y.offsetHeight},ee=M(pe);if(p==="none")return{top:null,left:null,transformOrigin:$0(ee)};const Z=N();let fe=Z.top-ee.vertical,le=Z.left-ee.horizontal;const ge=fe+pe.height,me=le+pe.width,Ie=Br(If(a)),Se=Ie.innerHeight-w,te=Ie.innerWidth-w;if(w!==null&&fe<w){const oe=fe-w;fe-=oe,ee.vertical+=oe}else if(w!==null&&ge>Se){const oe=ge-Se;fe-=oe,ee.vertical+=oe}if(w!==null&&le<w){const oe=le-w;le-=oe,ee.horizontal+=oe}else if(me>te){const oe=me-te;le-=oe,ee.horizontal+=oe}return{top:`${Math.round(fe)}px`,left:`${Math.round(le)}px`,transformOrigin:$0(ee)}},[a,p,N,M,w]),[A,H]=d.useState(C),z=d.useCallback(()=>{const Y=O.current;if(!Y)return;const pe=D(Y);pe.top!==null&&(Y.style.top=pe.top),pe.left!==null&&(Y.style.left=pe.left),Y.style.transformOrigin=pe.transformOrigin,H(!0)},[D]);d.useEffect(()=>(_&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[a,_,z]);const W=(Y,pe)=>{E&&E(Y,pe),z()},G=()=>{H(!1)};d.useEffect(()=>{C&&z()}),d.useImperativeHandle(i,()=>C?{updatePosition:()=>{z()}}:null,[C,z]),d.useEffect(()=>{if(!C)return;const Y=Kl(()=>{z()}),pe=Br(a);return pe.addEventListener("resize",Y),()=>{Y.clear(),pe.removeEventListener("resize",Y)}},[a,C,z]);let q=k;k==="auto"&&!P.muiSupportAuto&&(q=void 0);const re=h||(a?jt(If(a)).body:void 0),ae=(o=x==null?void 0:x.root)!=null?o:xN,ce=(l=x==null?void 0:x.paper)!=null?l:AS,ue=Jn({elementType:ce,externalSlotProps:m({},L,{style:A?L.style:m({},L.style,{opacity:0})}),additionalProps:{elevation:b,ref:I},ownerState:$,className:ne(j.paper,L==null?void 0:L.className)}),ye=Jn({elementType:ae,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:F,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:re,open:C},ownerState:$,className:ne(j.root,g)}),{slotProps:de}=ye,he=K(ye,bN);return v.jsx(ae,m({},he,!Aa(ae)&&{slotProps:de,disableScrollLock:_},{children:v.jsx(P,m({appear:!0,in:C,onEntering:W,onExited:G,timeout:q},R,{children:v.jsx(ce,m({},ue,{children:f}))}))}))});function SN(e){return He("MuiMenu",e)}Be("MuiMenu",["root","paper","list"]);const PN=["onEntering"],kN=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],EN={vertical:"top",horizontal:"right"},IN={vertical:"top",horizontal:"left"},MN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},SN,t)},$N=X(wN,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RN=X(AS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TN=X(Xg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ON=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:p,open:f,PaperProps:g={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:C="selectedMenu",slots:y={},slotProps:x={}}=l,S=K(l.TransitionProps,PN),T=K(l,kN),P=ic(),k=m({},l,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:g,transitionDuration:b,TransitionProps:S,variant:C}),E=MN(k),_=s&&!c&&f,R=d.useRef(null),F=(M,D)=>{R.current&&R.current.adjustStyleForScrollbar(M,{direction:P?"rtl":"ltr"}),w&&w(M,D)},L=M=>{M.key==="Tab"&&(M.preventDefault(),p&&p(M,"tabKeyDown"))};let O=-1;d.Children.map(i,(M,D)=>{d.isValidElement(M)&&(M.props.disabled||(C==="selectedMenu"&&M.props.selected||O===-1)&&(O=D))});const I=(r=y.paper)!=null?r:RN,$=(o=x.paper)!=null?o:g,j=Jn({elementType:y.root,externalSlotProps:x.root,ownerState:k,className:[E.root,a]}),N=Jn({elementType:I,externalSlotProps:$,ownerState:k,className:E.paper});return v.jsx($N,m({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?EN:IN,slots:{paper:I,root:y.root},slotProps:{root:j,paper:N},open:f,ref:n,transitionDuration:b,TransitionProps:m({onEntering:F},S),ownerState:k},T,{classes:h,children:v.jsx(TN,m({onKeyDown:L,actions:R,autoFocus:s&&(O===-1||c),autoFocusItem:_,variant:C},u,{className:ne(E.list,u.className),children:i}))}))});function FN(e){return He("MuiMenuItem",e)}const _i=Be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),DN=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_N=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,a=we({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},FN,s);return m({},s,a)},LN=X(ll,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jN})(({theme:e,ownerState:t})=>m({},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"}},[`&.${_i.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_i.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(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})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${C0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${C0.inset}`]:{marginLeft:52},[`& .${Zu.root}`]:{marginTop:0,marginBottom:0},[`& .${Zu.inset}`]:{paddingLeft:36},[`& .${k0.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&m({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${k0.root} svg`]:{fontSize:"1.25rem"}}))),ro=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:s=!1,divider:i=!1,disableGutters:a=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:p,className:f}=r,g=K(r,DN),h=d.useContext(Wa),b=d.useMemo(()=>({dense:s||h.dense||!1,disableGutters:a}),[h.dense,s,a]),w=d.useRef(null);vt(()=>{o&&w.current&&w.current.focus()},[o]);const C=m({},r,{dense:b.dense,divider:i,disableGutters:a}),y=_N(r),x=wt(w,n);let S;return r.disabled||(S=p!==void 0?p:-1),v.jsx(Wa.Provider,{value:b,children:v.jsx(LN,m({ref:x,role:u,tabIndex:S,component:l,focusVisibleClassName:ne(y.focusVisible,c),className:ne(y.root,f)},g,{ownerState:C,classes:y}))})});function NN(e){return He("MuiNativeSelect",e)}const Zg=Be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AN=["className","disabled","error","IconComponent","inputRef","variant"],zN=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,l&&"iconOpen",r&&"disabled"]};return we(i,NN,t)},zS=({ownerState:e,theme:t})=>m({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":m({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Zg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),HN=X("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Hn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Zg.multiple}`]:t.multiple}]}})(zS),HS=({ownerState:e,theme:t})=>m({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),BN=X("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})(HS),VN=d.forwardRef(function(t,n){const{className:r,disabled:o,error:l,IconComponent:s,inputRef:i,variant:a="standard"}=t,c=K(t,AN),u=m({},t,{disabled:o,variant:a,error:l}),p=zN(u);return v.jsxs(d.Fragment,{children:[v.jsx(HN,m({ownerState:u,className:ne(p.select,r),disabled:o,ref:i||n},c)),t.multiple?null:v.jsx(BN,{as:s,ownerState:u,className:p.icon})]})});var R0;const GN=["children","classes","className","label","notched"],WN=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Hn})({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%"}),UN=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Hn})(({ownerState:e,theme:t})=>m({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&m({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function KN(e){const{className:t,label:n,notched:r}=e,o=K(e,GN),l=n!=null&&n!=="",s=m({},e,{notched:r,withLabel:l});return v.jsx(WN,m({"aria-hidden":!0,className:t,ownerState:s},o,{children:v.jsx(UN,{ownerState:s,children:l?v.jsx("span",{children:n}):R0||(R0=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const qN=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],YN=e=>{const{classes:t}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},oj,t);return m({},t,r)},QN=X(gp,{shouldForwardProp:e=>Hn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:mp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return m({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qr.focused} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qr.error} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qr.disabled} .${qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&m({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),XN=X(KN,{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}}),ZN=X(vp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:hp})(({theme:e,ownerState:t})=>m({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})),Jg=d.forwardRef(function(t,n){var r,o,l,s,i;const a=Ke({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:p="input",label:f,multiline:g=!1,notched:h,slots:b={},type:w="text"}=a,C=K(a,qN),y=YN(a),x=Ro(),S=Ql({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=m({},a,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:g,size:S.size,type:w}),P=(r=(o=b.root)!=null?o:c.Root)!=null?r:QN,k=(l=(s=b.input)!=null?s:c.Input)!=null?l:ZN;return v.jsx(yi,m({slots:{root:P,input:k},renderSuffix:E=>v.jsx(XN,{ownerState:T,className:y.notchedOutline,label:f!=null&&f!==""&&S.required?i||(i=v.jsxs(d.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:u,inputComponent:p,multiline:g,ref:n,type:w},C,{classes:m({},y,{notchedOutline:null})}))});Jg.muiName="Input";const JN=ot(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),eA=ot(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tA(e){return He("MuiSelect",e)}const Li=Be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var T0;const nA=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rA=X("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Li.select}`]:t.select},{[`&.${Li.select}`]:t[n.variant]},{[`&.${Li.error}`]:t.error},{[`&.${Li.multiple}`]:t.multiple}]}})(zS,{[`&.${Li.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oA=X("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})(HS),lA=X("input",{shouldForwardProp:e=>rS(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 O0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sA(e){return e==null||typeof e=="string"&&!e.trim()}const iA=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return we(i,tA,t)},aA=d.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":l,autoFocus:s,autoWidth:i,children:a,className:c,defaultOpen:u,defaultValue:p,disabled:f,displayEmpty:g,error:h=!1,IconComponent:b,inputRef:w,labelId:C,MenuProps:y={},multiple:x,name:S,onBlur:T,onChange:P,onClose:k,onFocus:E,onOpen:_,open:R,readOnly:F,renderValue:L,SelectDisplayProps:O={},tabIndex:I,value:$,variant:j="standard"}=t,N=K(t,nA),[M,D]=nl({controlled:$,default:p,name:"Select"}),[A,H]=nl({controlled:R,default:u,name:"Select"}),z=d.useRef(null),W=d.useRef(null),[G,q]=d.useState(null),{current:re}=d.useRef(R!=null),[ae,ce]=d.useState(),ue=wt(n,w),ye=d.useCallback(be=>{W.current=be,be&&q(be)},[]),de=G==null?void 0:G.parentNode;d.useImperativeHandle(ue,()=>({focus:()=>{W.current.focus()},node:z.current,value:M}),[M]),d.useEffect(()=>{u&&A&&G&&!re&&(ce(i?null:de.clientWidth),W.current.focus())},[G,i]),d.useEffect(()=>{s&&W.current.focus()},[s]),d.useEffect(()=>{if(!C)return;const be=jt(W.current).getElementById(C);if(be){const je=()=>{getSelection().isCollapsed&&W.current.focus()};return be.addEventListener("click",je),()=>{be.removeEventListener("click",je)}}},[C]);const he=(be,je)=>{be?_&&_(je):k&&k(je),re||(ce(i?null:de.clientWidth),H(be))},Y=be=>{be.button===0&&(be.preventDefault(),W.current.focus(),he(!0,be))},pe=be=>{he(!1,be)},ee=d.Children.toArray(a),Z=be=>{const je=ee.find(ie=>ie.props.value===be.target.value);je!==void 0&&(D(je.props.value),P&&P(be,je))},fe=be=>je=>{let ie;if(je.currentTarget.hasAttribute("tabindex")){if(x){ie=Array.isArray(M)?M.slice():[];const Ee=M.indexOf(be.props.value);Ee===-1?ie.push(be.props.value):ie.splice(Ee,1)}else ie=be.props.value;if(be.props.onClick&&be.props.onClick(je),M!==ie&&(D(ie),P)){const Ee=je.nativeEvent||je,Ae=new Ee.constructor(Ee.type,Ee);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ie,name:S}}),P(Ae,be)}x||he(!1,je)}},le=be=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(be.key)!==-1&&(be.preventDefault(),he(!0,be))},ge=G!==null&&A,me=be=>{!ge&&T&&(Object.defineProperty(be,"target",{writable:!0,value:{value:M,name:S}}),T(be))};delete N["aria-invalid"];let Ie,Se;const te=[];let oe=!1;(Xu({value:M})||g)&&(L?Ie=L(M):oe=!0);const xe=ee.map(be=>{if(!d.isValidElement(be))return null;let je;if(x){if(!Array.isArray(M))throw new Error(Eo(2));je=M.some(ie=>O0(ie,be.props.value)),je&&oe&&te.push(be.props.children)}else je=O0(M,be.props.value),je&&oe&&(Se=be.props.children);return d.cloneElement(be,{"aria-selected":je?"true":"false",onClick:fe(be),onKeyUp:ie=>{ie.key===" "&&ie.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(ie)},role:"option",selected:je,value:void 0,"data-value":be.props.value})});oe&&(x?te.length===0?Ie=null:Ie=te.reduce((be,je,ie)=>(be.push(je),ie<te.length-1&&be.push(", "),be),[]):Ie=Se);let Oe=ae;!i&&re&&G&&(Oe=de.clientWidth);let Ve;typeof I<"u"?Ve=I:Ve=f?null:0;const Te=O.id||(S?`mui-component-select-${S}`:void 0),se=m({},t,{variant:j,value:M,open:ge,error:h}),qe=iA(se),tt=m({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),Xe=bt();return v.jsxs(d.Fragment,{children:[v.jsx(rA,m({ref:ye,tabIndex:Ve,role:"combobox","aria-controls":Xe,"aria-disabled":f?"true":void 0,"aria-expanded":ge?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[C,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:le,onMouseDown:f||F?null:Y,onBlur:me,onFocus:E},O,{ownerState:se,className:ne(O.className,qe.select,c),id:Te,children:sA(Ie)?T0||(T0=v.jsx("span",{className:"notranslate",children:"​"})):Ie})),v.jsx(lA,m({"aria-invalid":h,value:Array.isArray(M)?M.join(","):M,name:S,ref:z,"aria-hidden":!0,onChange:Z,tabIndex:-1,disabled:f,className:qe.nativeInput,autoFocus:s,ownerState:se},N)),v.jsx(oA,{as:b,className:qe.icon,ownerState:se}),v.jsx(ON,m({id:`menu-${S||""}`,anchorEl:de,open:ge,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:m({"aria-labelledby":C,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Xe},y.MenuListProps),slotProps:m({},y.slotProps,{paper:m({},tt,{style:m({minWidth:Oe},tt!=null?tt.style:null)})}),children:xe}))]})}),cA=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uA=["root"],dA=e=>{const{classes:t}=e;return t},ev={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Hn(e)&&e!=="variant",slot:"Root"},pA=X(Qg,ev)(""),fA=X(Jg,ev)(""),mA=X(Yg,ev)(""),bp=d.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:s={},className:i,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:u=wS,id:p,input:f,inputProps:g,label:h,labelId:b,MenuProps:w,multiple:C=!1,native:y=!1,onClose:x,onOpen:S,open:T,renderValue:P,SelectDisplayProps:k,variant:E="outlined"}=r,_=K(r,cA),R=y?VN:aA,F=Ro(),L=Ql({props:r,muiFormControl:F,states:["variant","error"]}),O=L.variant||E,I=m({},r,{variant:O,classes:s}),$=dA(I),j=K($,uA),N=f||{standard:v.jsx(pA,{ownerState:I}),outlined:v.jsx(fA,{label:h,ownerState:I}),filled:v.jsx(mA,{ownerState:I})}[O],M=wt(n,ql(N));return v.jsx(d.Fragment,{children:d.cloneElement(N,m({inputComponent:R,inputProps:m({children:l,error:L.error,IconComponent:u,variant:O,type:void 0,multiple:C},y?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:b,MenuProps:w,onClose:x,onOpen:S,open:T,renderValue:P,SelectDisplayProps:m({id:p},k)},g,{classes:g?En(j,g.classes):j},f?f.props.inputProps:{})},(C&&y||c)&&O==="outlined"?{notched:!0}:{},{ref:M,className:ne(N.props.className,i,$.root)},!f&&{variant:O},_))})});bp.muiName="Select";function hA(e){return He("MuiSkeleton",e)}Be("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const gA=["animation","className","component","height","style","variant","width"];let Ju=e=>e,F0,D0,j0,_0;const vA=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:l,height:s}=e;return we({root:["root",n,r,o&&"withChildren",o&&!l&&"fitContent",o&&!s&&"heightAuto"]},hA,t)},yA=cl(F0||(F0=Ju`
157
157
  0% {
158
158
  opacity: 1;
159
159
  }
@@ -165,7 +165,7 @@ Error generating stack: `+l.message+`
165
165
  100% {
166
166
  opacity: 1;
167
167
  }
168
- `)),bA=ul(D0||(D0=Ju`
168
+ `)),bA=cl(D0||(D0=Ju`
169
169
  0% {
170
170
  transform: translateX(-100%);
171
171
  }
@@ -178,7 +178,7 @@ Error generating stack: `+l.message+`
178
178
  100% {
179
179
  transform: translateX(100%);
180
180
  }
181
- `)),CA=X("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=KT(e.shape.borderRadius)||"px",r=qT(e.shape.borderRadius);return m({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:$r(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Qs(j0||(j0=Ju`
181
+ `)),CA=X("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=KT(e.shape.borderRadius)||"px",r=qT(e.shape.borderRadius);return m({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Rr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Qs(j0||(j0=Ju`
182
182
  animation: ${0} 2s ease-in-out 0.5s infinite;
183
183
  `),yA),({ownerState:e,theme:t})=>e.animation==="wave"&&Qs(_0||(_0=Ju`
184
184
  position: relative;
@@ -203,16 +203,16 @@ Error generating stack: `+l.message+`
203
203
  right: 0;
204
204
  top: 0;
205
205
  }
206
- `),bA,(t.vars||t).palette.action.hover)),xA=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:l,component:s="span",height:i,style:a,variant:c="text",width:u}=r,p=K(r,gA),f=m({},r,{animation:o,component:s,variant:c,hasChildren:!!p.children}),g=vA(f);return v.jsx(CA,m({as:s,ref:n,className:ne(g.root,l),ownerState:f},p,{style:m({width:u,height:i},a)}))});function wA(e){return He("MuiTooltip",e)}const Ko=Be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),SA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function PA(e){return Math.round(e*1e5)/1e5}const kA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Q(l.split("-")[0])}`],arrow:["arrow"]};return we(s,wA,t)},EA=X(Ql,{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})=>m({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ko.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ko.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ko.arrow}`]:m({},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"] .${Ko.arrow}`]:m({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),IA=X("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${Q(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>m({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pt(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:`${PA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ko.popper}[data-popper-placement*="left"] &`]:m({transformOrigin:"right center"},t.isRtl?m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):m({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ko.popper}[data-popper-placement*="right"] &`]:m({transformOrigin:"left center"},t.isRtl?m({marginRight:"14px"},t.touch&&{marginRight:"24px"}):m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ko.popper}[data-popper-placement*="top"] &`]:m({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ko.popper}[data-popper-placement*="bottom"] &`]:m({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),MA=X("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:pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gc=!1;const L0=new Mg;let Ni={x:0,y:0};function Wc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ev=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,p,f,g,h,b,w,C,y,x,S,T;const P=Ke({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:E,components:_={},componentsProps:R={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:$=!1,enterDelay:j=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:D=!1,id:A,leaveDelay:H=0,leaveTouchDelay:z=1500,onClose:W,onOpen:G,open:q,placement:re="bottom",PopperComponent:ae,PopperProps:ce={},slotProps:ue={},slots:ye={},title:de,TransitionComponent:he=Ga,TransitionProps:Y}=P,pe=K(P,SA),ee=d.isValidElement(E)?E:v.jsx("span",{children:E}),Z=Br(),fe=ic(),[le,ge]=d.useState(),[me,Ie]=d.useState(null),Se=d.useRef(!1),te=I||D,oe=Ms(),xe=Ms(),Oe=Ms(),Ve=Ms(),[Te,se]=rl({controlled:q,default:!1,name:"Tooltip",state:"open"});let qe=Te;const tt=bt(A),Xe=d.useRef(),be=Ct(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),Ve.clear()});d.useEffect(()=>be,[be]);const je=_e=>{L0.clear(),Gc=!0,se(!0),G&&!qe&&G(_e)},ie=Ct(_e=>{L0.start(800+H,()=>{Gc=!1}),se(!1),W&&qe&&W(_e),oe.start(Z.transitions.duration.shortest,()=>{Se.current=!1})}),Ee=_e=>{Se.current&&_e.type!=="touchstart"||(le&&le.removeAttribute("title"),xe.clear(),Oe.clear(),j||Gc&&N?xe.start(Gc?N:j,()=>{je(_e)}):je(_e))},Ae=_e=>{xe.clear(),Oe.start(H,()=>{ie(_e)})},{isFocusVisibleRef:Ne,onBlur:Ye,onFocus:$e,ref:Ce}=$g(),[,Me]=d.useState(!1),We=_e=>{Ye(_e),Ne.current===!1&&(Me(!1),Ae(_e))},Qe=_e=>{le||ge(_e.currentTarget),$e(_e),Ne.current===!0&&(Me(!0),Ee(_e))},Pe=_e=>{Se.current=!0;const lt=ee.props;lt.onTouchStart&&lt.onTouchStart(_e)},Ge=_e=>{Pe(_e),Oe.clear(),oe.clear(),be(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.start(M,()=>{document.body.style.WebkitUserSelect=Xe.current,Ee(_e)})},rt=_e=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(_e),be(),Oe.start(z,()=>{ie(_e)})};d.useEffect(()=>{if(!qe)return;function _e(lt){(lt.key==="Escape"||lt.key==="Esc")&&ie(lt)}return document.addEventListener("keydown",_e),()=>{document.removeEventListener("keydown",_e)}},[ie,qe]);const _t=wt(Yl(ee),Ce,ge,n);!de&&de!==0&&(qe=!1);const dt=d.useRef(),st=_e=>{const lt=ee.props;lt.onMouseMove&&lt.onMouseMove(_e),Ni={x:_e.clientX,y:_e.clientY},dt.current&&dt.current.update()},ut={},Et=typeof de=="string";F?(ut.title=!qe&&Et&&!O?de:null,ut["aria-describedby"]=qe?tt:null):(ut["aria-label"]=Et?de:null,ut["aria-labelledby"]=qe&&!Et?tt:null);const Kt=m({},ut,pe,ee.props,{className:ne(pe.className,ee.props.className),onTouchStart:Pe,ref:_t},D?{onMouseMove:st}:{}),pn={};$||(Kt.onTouchStart=Ge,Kt.onTouchEnd=rt),O||(Kt.onMouseOver=Wc(Ee,Kt.onMouseOver),Kt.onMouseLeave=Wc(Ae,Kt.onMouseLeave),te||(pn.onMouseOver=Ee,pn.onMouseLeave=Ae)),L||(Kt.onFocus=Wc(Qe,Kt.onFocus),Kt.onBlur=Wc(We,Kt.onBlur),te||(pn.onFocus=Qe,pn.onBlur=We));const fn=d.useMemo(()=>{var _e;let lt=[{name:"arrow",enabled:!!me,options:{element:me,padding:4}}];return(_e=ce.popperOptions)!=null&&_e.modifiers&&(lt=lt.concat(ce.popperOptions.modifiers)),m({},ce.popperOptions,{modifiers:lt})},[me,ce]),mn=m({},P,{isRtl:fe,arrow:k,disableInteractive:te,placement:re,PopperComponentProp:ae,touch:Se.current}),Pr=kA(mn),Bn=(r=(o=ye.popper)!=null?o:_.Popper)!=null?r:EA,xn=(l=(s=(i=ye.transition)!=null?i:_.Transition)!=null?s:he)!=null?l:Ga,kr=(a=(c=ye.tooltip)!=null?c:_.Tooltip)!=null?a:IA,J=(u=(p=ye.arrow)!=null?p:_.Arrow)!=null?u:MA,U=qi(Bn,m({},ce,(f=ue.popper)!=null?f:R.popper,{className:ne(Pr.popper,ce==null?void 0:ce.className,(g=(h=ue.popper)!=null?h:R.popper)==null?void 0:g.className)}),mn),ke=qi(xn,m({},Y,(b=ue.transition)!=null?b:R.transition),mn),ze=qi(kr,m({},(w=ue.tooltip)!=null?w:R.tooltip,{className:ne(Pr.tooltip,(C=(y=ue.tooltip)!=null?y:R.tooltip)==null?void 0:C.className)}),mn),Je=qi(J,m({},(x=ue.arrow)!=null?x:R.arrow,{className:ne(Pr.arrow,(S=(T=ue.arrow)!=null?T:R.arrow)==null?void 0:S.className)}),mn);return v.jsxs(d.Fragment,{children:[d.cloneElement(ee,Kt),v.jsx(Bn,m({as:ae??Ql,placement:re,anchorEl:D?{getBoundingClientRect:()=>({top:Ni.y,left:Ni.x,right:Ni.x,bottom:Ni.y,width:0,height:0})}:le,popperRef:dt,open:le?qe:!1,id:tt,transition:!0},pn,U,{popperOptions:fn,children:({TransitionProps:_e})=>v.jsx(xn,m({timeout:Z.transitions.duration.shorter},_e,ke,{children:v.jsxs(kr,m({},ze,{children:[de,k?v.jsx(J,m({},Je,{ref:Ie})):null]}))}))}))]})});function $A(e){return He("MuiSwitch",e)}const yn=Be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),RA=["className","color","edge","size","sx"],TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:l,disabled:s}=e,i={root:["root",n&&`edge${Q(n)}`,`size${Q(r)}`],switchBase:["switchBase",`color${Q(o)}`,l&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=we(i,$A,t);return m({},t,a)},OA=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${yn.thumb}`]:{width:16,height:16},[`& .${yn.switchBase}`]:{padding:4,[`&.${yn.checked}`]:{transform:"translateX(16px)"}}}}]}),FA=X(MS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${yn.input}`]:t.input},n.color!=="default"&&t[`color${Q(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}),[`&.${yn.checked}`]:{transform:"translateX(20px)"},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${yn.checked} + .${yn.track}`]:{opacity:.5},[`&.${yn.disabled} + .${yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${yn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Og(e.palette[t].main,.62):Tg(e.palette[t].main,.55)}`}},[`&.${yn.checked} + .${yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),DA=X("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}`})),jA=X("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%"})),_A=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:i="medium",sx:a}=r,c=K(r,RA),u=m({},r,{color:l,edge:s,size:i}),p=TA(u),f=v.jsx(jA,{className:p.thumb,ownerState:u});return v.jsxs(OA,{className:ne(p.root,o),sx:a,ownerState:u,children:[v.jsx(FA,m({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:m({},p,{root:p.switchBase})})),v.jsx(DA,{className:p.track,ownerState:u})]})});function LA(e){return He("MuiTab",e)}const Do=Be("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),NA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:l,label:s,selected:i,disabled:a}=e,c={root:["root",l&&s&&"labelIcon",`textColor${Q(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return we(c,LA,t)},zA=X(sl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Q(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Do.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>m({},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,[`& > .${Do.iconWrapper}`]:m({},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,[`&.${Do.selected}`]:{opacity:1},[`&.${Do.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Do.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Do.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Do.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Do.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)})),N0=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:i,icon:a,iconPosition:c="top",indicator:u,label:p,onChange:f,onClick:g,onFocus:h,selected:b,selectionFollowsFocus:w,textColor:C="inherit",value:y,wrapped:x=!1}=r,S=K(r,NA),T=m({},r,{disabled:l,disableFocusRipple:s,selected:b,icon:!!a,iconPosition:c,label:!!p,fullWidth:i,textColor:C,wrapped:x}),P=AA(T),k=a&&p&&d.isValidElement(a)?d.cloneElement(a,{className:ne(P.iconWrapper,a.props.className)}):a,E=R=>{!b&&f&&f(R,y),g&&g(R)},_=R=>{w&&!b&&f&&f(R,y),h&&h(R)};return v.jsxs(zA,m({focusRipple:!s,className:ne(P.root,o),ref:n,role:"tab","aria-selected":b,disabled:l,onClick:E,onFocus:_,ownerState:T,tabIndex:b?0:-1},S,{children:[c==="top"||c==="start"?v.jsxs(d.Fragment,{children:[k,p]}):v.jsxs(d.Fragment,{children:[p,k]}),u]}))}),HA=d.createContext(),BA=d.createContext();function VA(e){return He("MuiTableCell",e)}const GA=Be("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WA=["align","className","component","padding","scope","size","sortDirection","variant"],UA=e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Q(r)}`,o!=="normal"&&`padding${Q(o)}`,`size${Q(l)}`]};return we(i,VA,t)},KA=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Q(n.size)}`],n.padding!=="normal"&&t[`padding${Q(n.padding)}`],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>m({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
207
- ${e.palette.mode==="light"?Og(pt(e.palette.divider,1),.88):Tg(pt(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",[`&.${GA.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})),Gm=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:l,component:s,padding:i,scope:a,size:c,sortDirection:u,variant:p}=r,f=K(r,WA),g=d.useContext(HA),h=d.useContext(BA),b=h&&h.variant==="head";let w;s?w=s:w=b?"th":"td";let C=a;w==="td"?C=void 0:!C&&b&&(C="col");const y=p||h&&h.variant,x=m({},r,{align:o,component:w,padding:i||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&g&&g.stickyHeader,variant:y}),S=UA(x);let T=null;return u&&(T=u==="asc"?"ascending":"descending"),v.jsx(KA,m({as:w,ref:n,className:ne(S.root,l),"aria-sort":T,scope:C,ownerState:x},f))});function qA(e){return He("MuiToolbar",e)}Be("MuiToolbar",["root","gutters","regular","dense"]);const YA=["className","component","disableGutters","variant"],QA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return we({root:["root",!n&&"gutters",r]},qA,t)},XA=X("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})=>m({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),tv=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:s=!1,variant:i="regular"}=r,a=K(r,YA),c=m({},r,{component:l,disableGutters:s,variant:i}),u=QA(c);return v.jsx(XA,m({as:l,className:ne(u.root,o),ref:n,ownerState:c},a))}),BS=ot(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VS=ot(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),ZA=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],JA=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u;const{backIconButtonProps:p,count:f,disabled:g=!1,getItemAriaLabel:h,nextIconButtonProps:b,onPageChange:w,page:C,rowsPerPage:y,showFirstButton:x,showLastButton:S,slots:T={},slotProps:P={}}=t,k=K(t,ZA),E=ic(),_=ue=>{w(ue,0)},R=ue=>{w(ue,C-1)},F=ue=>{w(ue,C+1)},L=ue=>{w(ue,Math.max(0,Math.ceil(f/y)-1))},O=(r=T.firstButton)!=null?r:Dr,I=(o=T.lastButton)!=null?o:Dr,$=(l=T.nextButton)!=null?l:Dr,j=(s=T.previousButton)!=null?s:Dr,N=(i=T.firstButtonIcon)!=null?i:JN,M=(a=T.lastButtonIcon)!=null?a:eA,D=(c=T.nextButtonIcon)!=null?c:VS,A=(u=T.previousButtonIcon)!=null?u:BS,H=E?I:O,z=E?$:j,W=E?j:$,G=E?O:I,q=E?P.lastButton:P.firstButton,re=E?P.nextButton:P.previousButton,ae=E?P.previousButton:P.nextButton,ce=E?P.firstButton:P.lastButton;return v.jsxs("div",m({ref:n},k,{children:[x&&v.jsx(H,m({onClick:_,disabled:g||C===0,"aria-label":h("first",C),title:h("first",C)},q,{children:E?v.jsx(M,m({},P.lastButtonIcon)):v.jsx(N,m({},P.firstButtonIcon))})),v.jsx(z,m({onClick:R,disabled:g||C===0,color:"inherit","aria-label":h("previous",C),title:h("previous",C)},re??p,{children:E?v.jsx(D,m({},P.nextButtonIcon)):v.jsx(A,m({},P.previousButtonIcon))})),v.jsx(W,m({onClick:F,disabled:g||(f!==-1?C>=Math.ceil(f/y)-1:!1),color:"inherit","aria-label":h("next",C),title:h("next",C)},ae??b,{children:E?v.jsx(A,m({},P.previousButtonIcon)):v.jsx(D,m({},P.nextButtonIcon))})),S&&v.jsx(G,m({onClick:L,disabled:g||C>=Math.ceil(f/y)-1,"aria-label":h("last",C),title:h("last",C)},ce,{children:E?v.jsx(N,m({},P.firstButtonIcon)):v.jsx(M,m({},P.lastButtonIcon))}))]}))});function e5(e){return He("MuiTablePagination",e)}const Tl=Be("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var A0;const t5=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],n5=X(Gm,{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}})),r5=X(tv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>m({[`& .${Tl.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},[`& .${Tl.actions}`]:{flexShrink:0,marginLeft:20}})),o5=X("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),l5=X("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>m({},e.typography.body2,{flexShrink:0})),s5=X(bp,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>m({[`& .${Tl.selectIcon}`]:t.selectIcon,[`& .${Tl.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Tl.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),i5=X(no,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),a5=X("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>m({},e.typography.body2,{flexShrink:0}));function c5({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function u5(e){return`Go to ${e} page`}const d5=e=>{const{classes:t}=e;return we({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},e5,t)},p5=d.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=JA,backIconButtonProps:s,className:i,colSpan:a,component:c=Gm,count:u,disabled:p=!1,getItemAriaLabel:f=u5,labelDisplayedRows:g=c5,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:b,onPageChange:w,onRowsPerPageChange:C,page:y,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:T={},showFirstButton:P=!1,showLastButton:k=!1,slotProps:E={},slots:_={}}=o,R=K(o,t5),F=o,L=d5(F),O=(r=E==null?void 0:E.select)!=null?r:T,I=O.native?"option":i5;let $;(c===Gm||c==="td")&&($=a||1e3);const j=bt(O.id),N=bt(O.labelId),M=()=>u===-1?(y+1)*x:x===-1?u:Math.min(u,(y+1)*x);return v.jsx(n5,m({colSpan:$,ref:n,as:c,ownerState:F,className:ne(L.root,i)},R,{children:v.jsxs(r5,{className:L.toolbar,children:[v.jsx(o5,{className:L.spacer}),S.length>1&&v.jsx(l5,{className:L.selectLabel,id:N,children:h}),S.length>1&&v.jsx(s5,m({variant:"standard"},!O.variant&&{input:A0||(A0=v.jsx(yi,{}))},{value:x,onChange:C,id:j,labelId:N},O,{classes:m({},O.classes,{root:ne(L.input,L.selectRoot,(O.classes||{}).root),select:ne(L.select,(O.classes||{}).select),icon:ne(L.selectIcon,(O.classes||{}).icon)}),disabled:p,children:S.map(D=>d.createElement(I,m({},!Aa(I)&&{ownerState:F},{className:L.menuItem,key:D.label?D.label:D,value:D.value?D.value:D}),D.label?D.label:D))})),v.jsx(a5,{className:L.displayedRows,children:g({from:u===0?0:y*x+1,to:M(),count:u===-1?-1:u,page:y})}),v.jsx(l,{className:L.actions,backIconButtonProps:s,count:u,nextIconButtonProps:b,onPageChange:w,page:y,rowsPerPage:x,showFirstButton:P,showLastButton:k,slotProps:E.actions,slots:_.actions,getItemAriaLabel:f,disabled:p})]})}))});function f5(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function m5(e,t,n,r={},o=()=>{}){const{ease:l=f5,duration:s=300}=r;let i=null;const a=t[e];let c=!1;const u=()=>{c=!0},p=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const g=Math.min(1,(f-i)/s);if(t[e]=l(g)*(n-a)+a,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(p),u)}const h5=["onChange"],g5={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function v5(e){const{onChange:t}=e,n=K(e,h5),r=d.useRef(),o=d.useRef(null),l=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return vt(()=>{const s=ql(()=>{const a=r.current;l(),a!==r.current&&t(r.current)}),i=Hr(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),d.useEffect(()=>{l(),t(r.current)},[t]),v.jsx("div",m({style:g5},n,{ref:o}))}function y5(e){return He("MuiTabScrollButton",e)}const b5=Be("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),C5=["className","slots","slotProps","direction","orientation","disabled"],x5=e=>{const{classes:t,orientation:n,disabled:r}=e;return we({root:["root",n,r&&"disabled"]},y5,t)},w5=X(sl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>m({width:40,flexShrink:0,opacity:.8,[`&.${b5.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),S5=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:c}=l,u=K(l,C5),p=ic(),f=m({isRtl:p},l),g=x5(f),h=(r=i.StartScrollButtonIcon)!=null?r:BS,b=(o=i.EndScrollButtonIcon)!=null?o:VS,w=Zn({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),C=Zn({elementType:b,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return v.jsx(w5,m({component:"div",className:ne(g.root,s),ref:n,role:null,ownerState:f,tabIndex:null},u,{children:c==="left"?v.jsx(h,m({},w)):v.jsx(b,m({},C))}))});function P5(e){return He("MuiTabs",e)}const If=Be("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),k5=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],z0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,H0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uc=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const l=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||l)o=n(e,o);else{o.focus();return}}},E5=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:l,centered:s,scrollButtonsHideMobile:i,classes:a}=e;return we({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},P5,a)},I5=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${If.scrollButtons}`]:t.scrollButtons},{[`& .${If.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>m({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${If.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),M5=X("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})=>m({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"})),$5=X("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})=>m({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),R5=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>m({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})),T5=X(v5)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),B0={},O5=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=Br(),l=ic(),{"aria-label":s,"aria-labelledby":i,action:a,centered:c=!1,children:u,className:p,component:f="div",allowScrollButtonsMobile:g=!1,indicatorColor:h="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:C=S5,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:T={},TabIndicatorProps:P={},TabScrollButtonProps:k={},textColor:E="primary",value:_,variant:R="standard",visibleScrollbar:F=!1}=r,L=K(r,k5),O=R==="scrollable",I=w==="vertical",$=I?"scrollTop":"scrollLeft",j=I?"top":"left",N=I?"bottom":"right",M=I?"clientHeight":"clientWidth",D=I?"height":"width",A=m({},r,{component:f,allowScrollButtonsMobile:g,indicatorColor:h,orientation:w,vertical:I,scrollButtons:y,textColor:E,variant:R,visibleScrollbar:F,fixed:!O,hideScrollbar:O&&!F,scrollableX:O&&!I,scrollableY:O&&I,centered:c&&!O,scrollButtonsHideMobile:!g}),H=E5(A),z=Zn({elementType:S.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:A}),W=Zn({elementType:S.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:A}),[G,q]=d.useState(!1),[re,ae]=d.useState(B0),[ce,ue]=d.useState(!1),[ye,de]=d.useState(!1),[he,Y]=d.useState(!1),[pe,ee]=d.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,fe=d.useRef(null),le=d.useRef(null),ge=()=>{const ie=fe.current;let Ee;if(ie){const Ne=ie.getBoundingClientRect();Ee={clientWidth:ie.clientWidth,scrollLeft:ie.scrollLeft,scrollTop:ie.scrollTop,scrollLeftNormalized:jR(ie,l?"rtl":"ltr"),scrollWidth:ie.scrollWidth,top:Ne.top,bottom:Ne.bottom,left:Ne.left,right:Ne.right}}let Ae;if(ie&&_!==!1){const Ne=le.current.children;if(Ne.length>0){const Ye=Ne[Z.get(_)];Ae=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:Ee,tabMeta:Ae}},me=Ct(()=>{const{tabsMeta:ie,tabMeta:Ee}=ge();let Ae=0,Ne;if(I)Ne="top",Ee&&ie&&(Ae=Ee.top-ie.top+ie.scrollTop);else if(Ne=l?"right":"left",Ee&&ie){const $e=l?ie.scrollLeftNormalized+ie.clientWidth-ie.scrollWidth:ie.scrollLeft;Ae=(l?-1:1)*(Ee[Ne]-ie[Ne]+$e)}const Ye={[Ne]:Ae,[D]:Ee?Ee[D]:0};if(isNaN(re[Ne])||isNaN(re[D]))ae(Ye);else{const $e=Math.abs(re[Ne]-Ye[Ne]),Ce=Math.abs(re[D]-Ye[D]);($e>=1||Ce>=1)&&ae(Ye)}}),Ie=(ie,{animation:Ee=!0}={})=>{Ee?m5($,fe.current,ie,{duration:o.transitions.duration.standard}):fe.current[$]=ie},Se=ie=>{let Ee=fe.current[$];I?Ee+=ie:(Ee+=ie*(l?-1:1),Ee*=l&&H1()==="reverse"?-1:1),Ie(Ee)},te=()=>{const ie=fe.current[M];let Ee=0;const Ae=Array.from(le.current.children);for(let Ne=0;Ne<Ae.length;Ne+=1){const Ye=Ae[Ne];if(Ee+Ye[M]>ie){Ne===0&&(Ee=ie);break}Ee+=Ye[M]}return Ee},oe=()=>{Se(-1*te())},xe=()=>{Se(te())},Oe=d.useCallback(ie=>{ee({overflow:null,scrollbarWidth:ie})},[]),Ve=()=>{const ie={};ie.scrollbarSizeListener=O?v.jsx(T5,{onChange:Oe,className:ne(H.scrollableX,H.hideScrollbar)}):null;const Ae=O&&(y==="auto"&&(ce||ye)||y===!0);return ie.scrollButtonStart=Ae?v.jsx(C,m({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:w,direction:l?"right":"left",onClick:oe,disabled:!ce},k,{className:ne(H.scrollButtons,k.className)})):null,ie.scrollButtonEnd=Ae?v.jsx(C,m({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:W},orientation:w,direction:l?"left":"right",onClick:xe,disabled:!ye},k,{className:ne(H.scrollButtons,k.className)})):null,ie},Te=Ct(ie=>{const{tabsMeta:Ee,tabMeta:Ae}=ge();if(!(!Ae||!Ee)){if(Ae[j]<Ee[j]){const Ne=Ee[$]+(Ae[j]-Ee[j]);Ie(Ne,{animation:ie})}else if(Ae[N]>Ee[N]){const Ne=Ee[$]+(Ae[N]-Ee[N]);Ie(Ne,{animation:ie})}}}),se=Ct(()=>{O&&y!==!1&&Y(!he)});d.useEffect(()=>{const ie=ql(()=>{fe.current&&me()});let Ee;const Ae=$e=>{$e.forEach(Ce=>{Ce.removedNodes.forEach(Me=>{var We;(We=Ee)==null||We.unobserve(Me)}),Ce.addedNodes.forEach(Me=>{var We;(We=Ee)==null||We.observe(Me)})}),ie(),se()},Ne=Hr(fe.current);Ne.addEventListener("resize",ie);let Ye;return typeof ResizeObserver<"u"&&(Ee=new ResizeObserver(ie),Array.from(le.current.children).forEach($e=>{Ee.observe($e)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(Ae),Ye.observe(le.current,{childList:!0})),()=>{var $e,Ce;ie.clear(),Ne.removeEventListener("resize",ie),($e=Ye)==null||$e.disconnect(),(Ce=Ee)==null||Ce.disconnect()}},[me,se]),d.useEffect(()=>{const ie=Array.from(le.current.children),Ee=ie.length;if(typeof IntersectionObserver<"u"&&Ee>0&&O&&y!==!1){const Ae=ie[0],Ne=ie[Ee-1],Ye={root:fe.current,threshold:.99},$e=Qe=>{ue(!Qe[0].isIntersecting)},Ce=new IntersectionObserver($e,Ye);Ce.observe(Ae);const Me=Qe=>{de(!Qe[0].isIntersecting)},We=new IntersectionObserver(Me,Ye);return We.observe(Ne),()=>{Ce.disconnect(),We.disconnect()}}},[O,y,he,u==null?void 0:u.length]),d.useEffect(()=>{q(!0)},[]),d.useEffect(()=>{me()}),d.useEffect(()=>{Te(B0!==re)},[Te,re]),d.useImperativeHandle(a,()=>({updateIndicator:me,updateScrollButtons:se}),[me,se]);const qe=v.jsx(R5,m({},P,{className:ne(H.indicator,P.className),ownerState:A,style:m({},re,P.style)}));let tt=0;const Xe=d.Children.map(u,ie=>{if(!d.isValidElement(ie))return null;const Ee=ie.props.value===void 0?tt:ie.props.value;Z.set(Ee,tt);const Ae=Ee===_;return tt+=1,d.cloneElement(ie,m({fullWidth:R==="fullWidth",indicator:Ae&&!G&&qe,selected:Ae,selectionFollowsFocus:x,onChange:b,textColor:E,value:Ee},tt===1&&_===!1&&!ie.props.tabIndex?{tabIndex:0}:{}))}),be=ie=>{const Ee=le.current,Ae=jt(Ee).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Ye=w==="horizontal"?"ArrowLeft":"ArrowUp",$e=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&l&&(Ye="ArrowRight",$e="ArrowLeft"),ie.key){case Ye:ie.preventDefault(),Uc(Ee,Ae,H0);break;case $e:ie.preventDefault(),Uc(Ee,Ae,z0);break;case"Home":ie.preventDefault(),Uc(Ee,null,z0);break;case"End":ie.preventDefault(),Uc(Ee,null,H0);break}},je=Ve();return v.jsxs(I5,m({className:ne(H.root,p),ownerState:A,ref:n,as:f},L,{children:[je.scrollButtonStart,je.scrollbarSizeListener,v.jsxs(M5,{className:H.scroller,ownerState:A,style:{overflow:pe.overflow,[I?`margin${l?"Left":"Right"}`:"marginBottom"]:F?void 0:-pe.scrollbarWidth},ref:fe,children:[v.jsx($5,{"aria-label":s,"aria-labelledby":i,"aria-orientation":w==="vertical"?"vertical":null,className:H.flexContainer,ownerState:A,onKeyDown:be,ref:le,role:"tablist",children:Xe}),G&&qe]}),je.scrollButtonEnd]}))});function F5(e){return He("MuiTextField",e)}Be("MuiTextField",["root"]);const D5=["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"],j5={standard:Yg,filled:qg,outlined:Zg},_5=e=>{const{classes:t}=e;return we({root:["root"]},F5,t)},L5=X(_S,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:s,className:i,color:a="primary",defaultValue:c,disabled:u=!1,error:p=!1,FormHelperTextProps:f,fullWidth:g=!1,helperText:h,id:b,InputLabelProps:w,inputProps:C,InputProps:y,inputRef:x,label:S,maxRows:T,minRows:P,multiline:k=!1,name:E,onBlur:_,onChange:R,onFocus:F,placeholder:L,required:O=!1,rows:I,select:$=!1,SelectProps:j,type:N,value:M,variant:D="outlined"}=r,A=K(r,D5),H=m({},r,{autoFocus:l,color:a,disabled:u,error:p,fullWidth:g,multiline:k,required:O,select:$,variant:D}),z=_5(H),W={};D==="outlined"&&(w&&typeof w.shrink<"u"&&(W.notched=w.shrink),W.label=S),$&&((!j||!j.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const G=bt(b),q=h&&G?`${G}-helper-text`:void 0,re=S&&G?`${G}-label`:void 0,ae=j5[D],ce=v.jsx(ae,m({"aria-describedby":q,autoComplete:o,autoFocus:l,defaultValue:c,fullWidth:g,multiline:k,name:E,rows:I,maxRows:T,minRows:P,type:N,value:M,id:G,inputRef:x,onBlur:_,onChange:R,onFocus:F,placeholder:L,inputProps:C},W,y));return v.jsxs(L5,m({className:ne(z.root,i),disabled:u,error:p,fullWidth:g,ref:n,required:O,color:a,variant:D,ownerState:H},A,{children:[S!=null&&S!==""&&v.jsx(LS,m({htmlFor:G,id:re},w,{children:S})),$?v.jsx(bp,m({"aria-describedby":q,id:G,labelId:re,value:M,input:ce},j,{children:s})):ce,h&&v.jsx(FL,m({id:q},f,{children:h}))]}))});function N5(){return v.jsx(sS,{position:"static",elevation:0,sx:{borderBottom:1,borderColor:"divider"},children:v.jsx(tv,{variant:"dense",children:v.jsxs(sn,{variant:"subtitle1",fontWeight:600,component:"div",sx:{flexGrow:1},children:["Colyseus Monitor v","0.18.3"]})})})}var A5={};const nv=(A5.GAME_SERVER_URL||`${window.location.protocol}//${window.location.host}${window.location.pathname}`).replace(/\/$/,"");function z5(){return fetch(`${nv}/api`).then(e=>e.json())}function H5(e){return fetch(`${nv}/api/room?roomId=${e}`).then(t=>t.json())}function WS(e,t,...n){const r=new URLSearchParams;return r.set("roomId",e),r.set("method",t),r.set("args",JSON.stringify(n)),fetch(`${nv}/api/room/call?${r.toString()}`).then(o=>o.text()).then(o=>o?JSON.parse(o):{})}const US=d.createContext(void 0);function at(){const e=d.useContext(US);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(`
208
- `));return e}const KS=d.createContext(void 0),De=()=>{const e=d.useContext(KS);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},qS=d.createContext(void 0);function pl(){const e=d.useContext(qS);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
209
- `));return e}const V0={};function rv(e,t){const n=d.useRef(V0);return n.current===V0&&(n.current=e(t)),n}const B5=[];function YS(e){d.useEffect(e,B5)}const ao=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
210
- `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},V5=Object.is;function QS(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!V5(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ao(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function G5(e){return e.acceptsApiRef}function G0(e,t){return G5(t)?t(e):t(e.current.state)}const W5=Object.is,ov=QS,U5=()=>({state:null,equals:null,selector:null}),Re=(e,t,n=W5)=>{const r=rv(U5),o=r.current.selector!==null,[l,s]=d.useState(o?null:G0(e,t));return r.current.state=l,r.current.equals=n,r.current.selector=t,YS(()=>e.current.store.subscribe(()=>{const i=G0(e,r.current.selector);r.current.equals(r.current.state,i)||(r.current.state=i,s(i))})),l};function ct(e){return He("MuiDataGrid",e)}const B=Be("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ed="NOT_FOUND";function K5(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ed},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function q5(e,t){var n=[];function r(i){var a=n.findIndex(function(u){return t(i,u.key)});if(a>-1){var c=n[a];return a>0&&(n.splice(a,1),n.unshift(c)),c.value}return ed}function o(i,a){r(i)===ed&&(n.unshift({key:i,value:a}),n.length>e&&n.pop())}function l(){return n}function s(){n=[]}return{get:r,put:o,getEntries:l,clear:s}}var Y5=function(t,n){return t===n};function Q5(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,l=0;l<o;l++)if(!e(n[l],r[l]))return!1;return!0}}function Cp(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Y5:r,l=n.maxSize,s=l===void 0?1:l,i=n.resultEqualityCheck,a=Q5(o),c=s===1?K5(a):q5(s,a);function u(){var p=c.get(arguments);if(p===ed){if(p=e.apply(null,arguments),i){var f=c.getEntries(),g=f.find(function(h){return i(h.value,p)});g&&(p=g.value)}c.put(arguments,p)}return p}return u.clearCache=function(){return c.clear()},u}function X5(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 Z5(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,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var c=0,u,p={memoizeOptions:void 0},f=i.pop();if(typeof f=="object"&&(p=f,f=i.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var g=p,h=g.memoizeOptions,b=h===void 0?n:h,w=Array.isArray(b)?b:[b],C=X5(i),y=e.apply(void 0,[function(){return c++,f.apply(null,arguments)}].concat(w)),x=e(function(){for(var T=[],P=C.length,k=0;k<P;k++)T.push(C[k].apply(null,arguments));return u=y.apply(null,T),u});return Object.assign(x,{resultFunc:f,memoizedResultFunc:y,dependencies:C,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),x};return o}var J5=Z5(Cp);const ez={cache:new WeakMap};ao(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function Wm(e){return"current"in e&&"instanceId"in e.current}const Um={id:"default"},Ze=(e,t,n,r,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let i;if(e&&t&&n)i=(a,c)=>{const u=Wm(a),p=c??(u?a.current.instanceId:Um),f=u?a.current.state:a,g=e(f,p),h=t(f,p);return n(g,h)};else if(e&&t)i=(a,c)=>{const u=Wm(a),p=c??(u?a.current.instanceId:Um),f=u?a.current.state:a,g=e(f,p);return t(g)};else throw new Error("Missing arguments");return i.acceptsApiRef=!0,i},Ot=(...e)=>{const t=(...n)=>{var r,o;const[l,s]=n,i=Wm(l),a=i?l.current.instanceId:s??Um,c=i?l.current.state:l,{cache:u}=ez;if(u.get(a)&&(r=u.get(a))!=null&&r.get(e)){var p;return(p=u.get(a))==null?void 0:p.get(e)(c,a)}const f=J5(...e);return u.get(a)||u.set(a,new Map),(o=u.get(a))==null||o.set(e,f),f(c,a)};return t.acceptsApiRef=!0,t},Ol=e=>e.columns,xo=Ze(Ol,e=>e.orderedFields),bi=Ze(Ol,e=>e.lookup),ro=Ot(xo,bi,(e,t)=>e.map(n=>t[n])),jr=Ze(Ol,e=>e.columnVisibilityModel),an=Ot(ro,jr,(e,t)=>e.filter(n=>t[n.field]!==!1)),xp=Ot(an,e=>e.map(t=>t.field)),ti=Ot(an,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),lv=Ze(an,ti,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),XS=Ot(ro,e=>e.filter(t=>t.filterable)),tz=Ot(ro,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),wp=e=>e.columnGrouping,nz=Ot(wp,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),ZS=Ot(wp,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),rz=Ot(wp,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),dc=Ze(wp,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Vr=e=>e.rows,Sp=Ze(Vr,e=>e.totalRowCount),oz=Ze(Vr,e=>e.loading),lz=Ze(Vr,e=>e.totalTopLevelRowCount),bo=Ze(Vr,e=>e.dataRowIdToModelLookup),td=Ze(Vr,e=>e.dataRowIdToIdLookup),Fr=Ze(Vr,e=>e.tree),sz=Ze(Vr,e=>e.groupingName),W0=Ze(Vr,e=>e.treeDepths),Pp=Ot(Vr,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),Xi=Ze(Vr,e=>e.dataRowIds),iz=Ze(Vr,e=>e==null?void 0:e.additionalRowGroups),Ci=Ot(iz,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}})}}),az=Ze(Ci,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)}),JS=()=>{var e;const t=pl(),n=De(),r=Re(t,an),o=Re(t,Sp),l=Re(t,dc),s=Re(t,az);let i="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(i="treegrid"),{role:i,"aria-colcount":r.length,"aria-rowcount":l+1+s+o,"aria-multiselectable":!n.disableMultipleRowSelection}},cz=e=>{const{classes:t}=e;return we({root:["main"]},ct,t)},uz=Zt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),dz=d.forwardRef((e,t)=>{var n;const r=De(),o=cz(r),l=(n=r.experimentalFeatures)!=null&&n.ariaV7?JS:null,s=typeof l=="function"?l():null;return v.jsx(uz,m({ref:t,className:o.root,ownerState:r},s,{children:e.children}))}),eP=e=>e.sorting,sv=Ze(eP,e=>e.sortedRows),iv=Ot(sv,bo,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),lr=Ze(eP,e=>e.sortModel),pz=Ot(lr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),av=e=>e.filter,Jt=Ze(av,e=>e.filterModel);Ze(Jt,e=>e.quickFilterValues);const fz=e=>e.visibleRowsLookup,tP=Ze(av,e=>e.filteredRowsLookup);Ze(av,e=>e.filteredDescendantCountLookup);const fl=Ot(fz,iv,(e,t)=>t.filter(n=>e[n.id]!==!1)),ma=Ot(fl,e=>e.map(t=>t.id)),mz=Ot(tP,iv,(e,t)=>t.filter(n=>e[n.id]!==!1)),hz=Ot(mz,e=>e.map(t=>t.id)),nP=Ot(fl,Fr,Pp,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),rP=Ze(fl,e=>e.length),oP=Ze(nP,e=>e.length),gz=Ot(Jt,bi,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,l;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const i=s.filterOperators.find(a=>a.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),vz=Ot(gz,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),kp=e=>e.focus,Gn=Ze(kp,e=>e.cell),yz=Ze(kp,e=>e.columnHeader);Ze(kp,e=>e.columnHeaderFilter);const nd=Ze(kp,e=>e.columnGroupHeader),Ep=e=>e.tabIndex,rd=Ze(Ep,e=>e.cell),lP=Ze(Ep,e=>e.columnHeader);Ze(Ep,e=>e.columnHeaderFilter);const bz=Ze(Ep,e=>e.columnGroupHeader),cv=e=>e.density,Cz=Ze(cv,e=>e.value),xi=Ze(cv,e=>e.factor),Km=e=>e.columnMenu;function xz(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=pl(),l=De(),s=d.useRef(null),i=Re(o,an),a=Re(o,vz),c=Re(o,pz),u=Re(o,ti),p=Re(o,lP),f=Re(o,rd),g=Re(o,bz),h=Re(o,yz),b=Re(o,nd),w=Re(o,xi),C=Re(o,dc),y=Re(o,Km),x=Re(o,jr),S=Re(o,rz),T=!(g===null&&p===null&&f===null);vt(()=>{o.current.computeSizeAndPublishResizeEvent();const R=s.current;if(typeof ResizeObserver>"u")return()=>{};let F;const L=new ResizeObserver(()=>{F=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return R&&L.observe(R),()=>{F&&window.cancelAnimationFrame(F),R&&L.unobserve(R)}},[o]);const P=d.useRef(null),k=d.useRef(null),E=d.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:k,columnHeadersElementRef:P,virtualScrollerRef:E,mainElementRef:s});const _=!!o.current.getRootDimensions();return v.jsxs(dz,{ref:s,children:[v.jsx(l.slots.columnHeaders,m({ref:k,innerRef:P,visibleColumns:i,filterColumnLookup:a,sortColumnLookup:c,columnPositions:u,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:g,columnHeaderFocus:h,columnGroupHeaderFocus:b,densityFactor:w,headerGroupingMaxDepth:C,columnMenuState:y,columnVisibility:x,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:T},n)),_&&v.jsx(t,{ref:E}),r]})}function wz(){var e;const t=De();return t.hideFooter?null:v.jsx(t.slots.footer,m({},(e=t.slotProps)==null?void 0:e.footer))}const Pn="auto-generated-group-node-root",Hs=Symbol("mui.id_autogenerated"),Sz=()=>({type:"group",id:Pn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Pz(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(`
211
- `))}const od=(e,t,n)=>{const r=t?t(e):e.id;return Pz(r,e,n),r},mu=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},l={},s={};for(let i=0;i<e.length;i+=1){const a=e[i],c=od(a,t);l[c]=a,s[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:l}},sP=({tree:e,rowCountProp:t=0})=>{const n=e[Pn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},iP=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const l=e.current.caches.rows,{tree:s,treeDepths:i,dataRowIds:a,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup}),u=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:i,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},m({},u,{totalRowCount:Math.max(t,u.dataRowIds.length),totalTopLevelRowCount:sP({tree:u.tree,rowCountProp:t}),groupingName:c,loading:n})},Ua=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uv=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let l=0;l<r.children.length;l+=1){const s=r.children[l];(!n||!Ua(e[s]))&&o.push(s);const i=uv(e,s,n);for(let a=0;a<i.length;a+=1)o.push(i[a])}return!n&&r.footerId!=null&&o.push(r.footerId),o},kz=({previousCache:e,getRowId:t,updates:n})=>{var r,o,l;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(f=>{const g=od(f,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,m({},s.get(g),f)):s.set(g,f)});const i={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(l=e.updates.actions.remove)!=null?l:[]]},idToActionLookup:m({},e.updates.idToActionLookup)},a=m({},e.dataRowIdToModelLookup),c=m({},e.dataRowIdToIdLookup),u={insert:{},modify:{},remove:{}};s.forEach((f,g)=>{const h=i.idToActionLookup[g];if(f._action==="delete"){if(h==="remove"||!a[g])return;h!=null&&(u[h][g]=!0),i.actions.remove.push(g),delete a[g],delete c[g];return}const b=a[g];if(b){h==="remove"?(u.remove[g]=!0,i.actions.modify.push(g)):h==null&&i.actions.modify.push(g),a[g]=m({},b,f);return}h==="remove"?(u.remove[g]=!0,i.actions.insert.push(g)):h==null&&i.actions.insert.push(g),a[g]=f,c[g]=g});const p=Object.keys(u);for(let f=0;f<p.length;f+=1){const g=p[f],h=u[g];Object.keys(h).length>0&&(i.actions[g]=i.actions[g].filter(b=>!h[b]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:c,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function aP(e){var t,n;const r=Ci(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0,l=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0;return{top:o,bottom:l}}function cP(e,t){const n=xi(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Ez=Zt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Iz=Zt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Mz=e=>{const{classes:t}=e;return we({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ct,t)};function $z(e){var t,n;const r=at(),o=De(),[l,s]=d.useState(()=>{var u,p;return(u=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?u:null}),i=d.useCallback(()=>{var u,p;s((u=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?u:null)},[r]);vt(()=>r.current.subscribeEvent("viewportInnerSizeChange",i),[r,i]);let a=(t=l==null?void 0:l.height)!=null?t:0;o.autoHeight&&a===0&&(a=cP(r,o.rowHeight));const c=Mz(m({},e,{classes:o.classes}));return l?v.jsx(Ez,{className:ne(c.root),overlayType:e.overlayType,children:v.jsx(Iz,m({className:ne(c.inner),style:{height:a,width:(n=l==null?void 0:l.width)!=null?n:0}},e))}):null}function Rz(){const e=at(),t=De(),n=Re(e,Sp),r=Re(e,rP),o=Re(e,oz),l=!o&&n===0,s=!o&&n>0&&r===0;let i=null,a="";if(l){var c;i=v.jsx(t.slots.noRowsOverlay,m({},(c=t.slotProps)==null?void 0:c.noRowsOverlay)),a="noRowsOverlay"}if(s){var u;i=v.jsx(t.slots.noResultsOverlay,m({},(u=t.slotProps)==null?void 0:u.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;i=v.jsx(t.slots.loadingOverlay,m({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return i===null?null:v.jsx($z,{overlayType:a,children:i})}function Ip(e){return d.memo(e,QS)}let Mf;function Tz(){return Mf===void 0&&document.createElement("div").focus({get preventScroll(){return Mf=!0,!1}}),Mf}var so=function(e){return e.Cell="cell",e.Row="row",e}(so||{}),yt=function(e){return e.Edit="edit",e.View="view",e}(yt||{}),It=function(e){return e.Edit="edit",e.View="view",e}(It||{}),On=function(e){return e.And="and",e.Or="or",e}(On||{}),uo=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(uo||{}),Rr=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Rr||{}),jo=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(jo||{}),po=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(po||{});function uP(e){return e.field!==void 0}function Oz(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Fz(e,t){return e.closest(`.${t}`)}function dv(e){return e.replace(/["\\]/g,"\\$&")}function Dz(e,t){return e.querySelector(`[role="columnheader"][data-field="${dv(t)}"]`)}function dP(e){return`.${B.row}[data-id="${dv(String(e))}"]`}function jz(e,t){return e.querySelector(dP(t))}function _z(e,{id:t,field:n}){const r=dP(t),o=`.${B.cell}[data-field="${dv(n)}"]`,l=`${r} ${o}`;return e.querySelector(l)}function pc(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function et(e,t,n){const r=d.useRef(!0);d.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class $s extends Error{}function Lz(e,t){const{getRowId:n}=t,r=d.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),o=d.useCallback(h=>{const b=e.current.getRow(h);if(!b)throw new $s(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:b}},[e]),l=d.useCallback((h,b)=>{const w=e.current.getRow(h),C=e.current.getRowNode(h);if(!w||!C)throw new $s(`No row with id #${h} found`);const y=Gn(e),x=rd(e);return{id:h,field:b,row:w,rowNode:C,value:w[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(h,b),api:e.current,hasFocus:y!==null&&y.field===b&&y.id===h,tabIndex:x&&x.field===b&&x.id===h?0:-1}},[e]),s=d.useCallback((h,b)=>{const w=e.current.getColumn(b),C=e.current.getCellValue(h,b),y=e.current.getRow(h),x=e.current.getRowNode(h);if(!y||!x)throw new $s(`No row with id #${h} found`);const S=Gn(e),T=rd(e),P={id:h,field:b,row:y,rowNode:x,colDef:w,cellMode:e.current.getCellMode(h,b),hasFocus:S!==null&&S.field===b&&S.id===h,tabIndex:T&&T.field===b&&T.id===h?0:-1,value:C,formattedValue:C,isEditable:!1};return w&&w.valueFormatter&&(P.formattedValue=w.valueFormatter({id:h,field:P.field,value:P.value,api:e.current})),P.isEditable=w&&e.current.isCellEditable(P),P},[e]),i=d.useCallback((h,b)=>{const w=e.current.getColumn(b);if(!w||!w.valueGetter){const C=e.current.getRow(h);if(!C)throw new $s(`No row with id #${h} found`);return C[b]}return w.valueGetter(l(h,b))},[e,l]),a=d.useCallback((h,b)=>{var w;const C=Hs in h?h[Hs]:(w=n==null?void 0:n(h))!=null?w:h.id,y=b.field;return!b||!b.valueGetter?h[y]:b.valueGetter(l(C,y))},[l,n]),c=d.useCallback((h,b)=>{var w;const C=a(h,b);if(!b||!b.valueFormatter)return C;const y=(w=n?n(h):h.id)!=null?w:h[Hs],x=b.field;return b.valueFormatter({id:y,field:x,value:C,api:e.current})},[e,n,a]),u=d.useCallback(h=>e.current.rootElementRef.current?Dz(e.current.rootElementRef.current,h):null,[e]),p=d.useCallback(h=>e.current.rootElementRef.current?jz(e.current.rootElementRef.current,h):null,[e]),f=d.useCallback((h,b)=>e.current.rootElementRef.current?_z(e.current.rootElementRef.current,{id:h,field:b}):null,[e]);et(e,{getCellValue:i,getCellParams:s,getCellElement:f,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:u},"public")}const Nz=["changeReason","unstable_updateValueOnRender"],Az=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],zz=["changeReason","unstable_updateValueOnRender"],ld={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:yt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Hz=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:l,classes:s}=e,i={root:["cell",`cell--text${Q(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",l&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return we(i,ct,s)},Bz=d.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,l=at(),s=De(),i=n.field,a=Re(l,()=>{try{const _=l.current.getCellParams(r,i);return _.api=l.current,_}catch(E){if(E instanceof $s)return ld;throw E}},ov),c=Re(l,()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:i}));if(a===ld)return null;const{cellMode:u,hasFocus:p,isEditable:f,value:g,formattedValue:h}=a,b=n.type==="actions",w=(u==="view"||!f)&&!b?a.tabIndex:-1,{classes:C,getCellClassName:y}=s,x=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:i});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),y&&x.push(y(a));let S;if(o==null&&n.renderCell&&(S=n.renderCell(a),x.push(B["cell--withRenderer"]),x.push(C==null?void 0:C["cell--withRenderer"])),o!=null&&n.renderEditCell){const E=l.current.getRowWithUpdatedValues(r,n.field),_=K(o,Nz),R=m({},a,{row:E},_);S=n.renderEditCell(R),x.push(B["cell--editing"]),x.push(C==null?void 0:C["cell--editing"])}const{slots:T}=s,P=T.cell,k=m({},e,{ref:t,field:i,formattedValue:h,hasFocus:p,isEditable:f,isSelected:c,value:g,cellMode:u,children:S,tabIndex:w,className:ne(x)});return d.createElement(P,k)}),Vz=Ip(Bz),Gz=d.forwardRef((e,t)=>{var n,r,o,l;const{column:s,rowId:i,editCellState:a,align:c,colIndex:u,height:p,width:f,className:g,showRightBorder:h,colSpan:b,disableDragEvents:w,isNotVisible:C,onClick:y,onDoubleClick:x,onMouseDown:S,onMouseUp:T,onMouseOver:P,onKeyDown:k,onKeyUp:E,onDragEnter:_,onDragOver:R,style:F}=e,L=K(e,Az),O=at(),I=De(),$=s.field,j=Re(O,()=>{try{const oe=O.current.getCellParams(i,$);return oe.api=O.current,oe}catch(te){if(te instanceof $s)return ld;throw te}},ov),N=Re(O,()=>O.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:$})),{cellMode:M,hasFocus:D,isEditable:A,value:H,formattedValue:z}=j,W=s.type==="actions"&&((n=(r=s).getActions)==null?void 0:n.call(r,O.current.getRowParams(i)).some(te=>!te.props.disabled)),G=(M==="view"||!A)&&!W?j.tabIndex:-1,{classes:q,getCellClassName:re}=I,ae=O.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:$});s.cellClassName&&ae.push(typeof s.cellClassName=="function"?s.cellClassName(j):s.cellClassName),re&&ae.push(re(j));const ce=z??H,ue=d.useRef(null),ye=wt(t,ue),de=d.useRef(null),he=(o=I.unstable_cellSelection)!=null?o:!1,Y={align:c,showRightBorder:h,isEditable:A,classes:I.classes,isSelected:N,isSelectionMode:he},pe=Hz(Y),ee=d.useCallback(te=>oe=>{const xe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,xe,oe),T&&T(oe)},[O,$,T,i]),Z=d.useCallback(te=>oe=>{const xe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,xe,oe),S&&S(oe)},[O,$,S,i]),fe=d.useCallback((te,oe)=>xe=>{if(!O.current.getRow(i))return;const Oe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,Oe,xe),oe&&oe(xe)},[O,$,i]),le=d.useMemo(()=>m(C?{padding:0,opacity:0,width:0,border:0}:{minWidth:f,maxWidth:f,minHeight:p,maxHeight:p==="auto"?"none":p},F),[f,p,C,F]);if(d.useEffect(()=>{if(!D||M===yt.Edit)return;const te=jt(O.current.rootElementRef.current);if(ue.current&&!ue.current.contains(te.activeElement)){const oe=ue.current.querySelector('[tabindex="0"]'),xe=de.current||oe||ue.current;if(Tz())xe.focus({preventScroll:!0});else{const Oe=O.current.getScrollPosition();xe.focus(),O.current.scroll(Oe)}}},[D,M,O]),j===ld)return null;let ge=L.onFocus,me;if(a==null&&s.renderCell&&(me=s.renderCell(j),ae.push(B["cell--withRenderer"]),ae.push(q==null?void 0:q["cell--withRenderer"])),a!=null&&s.renderEditCell){const te=O.current.getRowWithUpdatedValues(i,s.field),oe=K(a,zz),xe=m({},j,{row:te},oe);me=s.renderEditCell(xe),ae.push(B["cell--editing"]),ae.push(q==null?void 0:q["cell--editing"])}if(me===void 0){const te=ce==null?void 0:ce.toString();me=v.jsx("div",{className:pe.content,title:te,role:"presentation",children:te})}d.isValidElement(me)&&W&&(me=d.cloneElement(me,{focusElementRef:de}));const Ie=w?null:{onDragEnter:fe("cellDragEnter",_),onDragOver:fe("cellDragOver",R)},Se=(l=I.experimentalFeatures)==null?void 0:l.ariaV7;return v.jsx("div",m({ref:ye,className:ne(g,ae,pe.root),role:Se?"gridcell":"cell","data-field":$,"data-colindex":u,"aria-colindex":u+1,"aria-colspan":b,style:le,tabIndex:G,onClick:fe("cellClick",y),onDoubleClick:fe("cellDoubleClick",x),onMouseOver:fe("cellMouseOver",P),onMouseDown:Z("cellMouseDown"),onMouseUp:ee("cellMouseUp"),onKeyDown:fe("cellKeyDown",k),onKeyUp:fe("cellKeyUp",E)},Ie,L,{onFocus:ge,children:me}))}),qm=Ip(Gz),Wz=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],Uz=e=>{const{classes:t}=e;return we({root:["booleanCell"]},ct,t)};function Kz(e){const{value:t}=e,n=K(e,Wz),r=at(),o=De(),l={classes:o.classes},s=Uz(l),i=d.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return v.jsx(i,m({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const qz=d.memo(Kz),Yz=e=>Ua(e.rowNode)?"":v.jsx(qz,m({},e)),Qz=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Xz=e=>{const{classes:t}=e;return we({root:["editBooleanCell"]},ct,t)};function Zz(e){var t;const{id:n,value:r,field:o,className:l,hasFocus:s,onValueChange:i}=e,a=K(e,Qz),c=at(),u=d.useRef(null),p=bt(),[f,g]=d.useState(r),h=De(),b={classes:h.classes},w=Xz(b),C=d.useCallback(async y=>{const x=y.target.checked;i&&await i(y,x),g(x),await c.current.setEditCellValue({id:n,field:o,value:x},y)},[c,o,n,i]);return d.useEffect(()=>{g(r)},[r]),vt(()=>{s&&u.current.focus()},[s]),v.jsx("label",m({htmlFor:p,className:ne(w.root,l)},a,{children:v.jsx(h.slots.baseCheckbox,m({id:p,inputRef:u,checked:!!f,onChange:C,size:"small"},(t=h.slotProps)==null?void 0:t.baseCheckbox))}))}const Jz=e=>v.jsx(Zz,m({},e)),e4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],t4=X(yi)({fontSize:"inherit"}),n4=e=>{const{classes:t}=e;return we({root:["editInputCell"]},ct,t)};function r4(e){const{id:t,value:n,field:r,colDef:o,hasFocus:l,inputProps:s,onValueChange:i}=e,a=K(e,e4),c=o.type==="dateTime",u=at(),p=d.useRef(),f=d.useMemo(()=>{let S;n==null?S=null:n instanceof Date?S=n:S=new Date((n??"").toString());let T;return S==null||Number.isNaN(S.getTime())?T="":T=new Date(S.getTime()-S.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:S,formatted:T}},[n,c]),[g,h]=d.useState(f),w={classes:De().classes},C=n4(w),y=d.useCallback(S=>{if(S==="")return null;const[T,P]=S.split("T"),[k,E,_]=T.split("-"),R=new Date;if(R.setFullYear(Number(k),Number(E)-1,Number(_)),R.setHours(0,0,0,0),P){const[F,L]=P.split(":");R.setHours(Number(F),Number(L),0,0)}return R},[]),x=d.useCallback(async S=>{const T=S.target.value,P=y(T);i&&await i(S,P),h({parsed:P,formatted:T}),u.current.setEditCellValue({id:t,field:r,value:P},S)},[u,r,t,i,y]);return d.useEffect(()=>{h(S=>{var T,P;return f.parsed!==S.parsed&&((T=f.parsed)==null?void 0:T.getTime())!==((P=S.parsed)==null?void 0:P.getTime())?f:S})},[f]),vt(()=>{l&&p.current.focus()},[l]),v.jsx(t4,m({inputRef:p,fullWidth:!0,className:C.root,type:c?"datetime-local":"date",inputProps:m({max:c?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:x},a))}const pP=e=>v.jsx(r4,m({},e)),o4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],l4=e=>{const{classes:t}=e;return we({root:["editInputCell"]},ct,t)},s4=X(yi,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>m({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),i4=d.forwardRef((e,t)=>{const n=De(),{id:r,value:o,field:l,colDef:s,hasFocus:i,debounceMs:a=200,isProcessingProps:c,onValueChange:u}=e,p=K(e,o4),f=at(),g=d.useRef(),[h,b]=d.useState(o),w=l4(n),C=d.useCallback(async x=>{const S=x.target.value;u&&await u(x,S);const T=f.current.getColumn(l);let P=S;T.valueParser&&(P=T.valueParser(S,f.current.getCellParams(r,l))),b(P),f.current.setEditCellValue({id:r,field:l,value:P,debounceMs:a,unstable_skipValueParser:!0},x)},[f,a,l,r,u]),y=f.current.unstable_getEditCellMeta(r,l);return d.useEffect(()=>{(y==null?void 0:y.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[y,o]),vt(()=>{i&&g.current.focus()},[i]),v.jsx(s4,m({ref:t,inputRef:g,className:w.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:h??"",onChange:C,endAdornment:c?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),a4=e=>v.jsx(i4,m({},e)),sd=e=>e==="Escape",c4=e=>e==="Enter",fP=e=>e==="Tab",mP=e=>e===" ",u4=e=>e.indexOf("Arrow")===0,d4=e=>e==="Home"||e==="End",p4=e=>e.indexOf("Page")===0;function hP(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const id=e=>d4(e)||u4(e)||p4(e)||mP(e),f4=e=>!!e.key,m4=e=>fP(e)||sd(e);function Fl(e){return(e==null?void 0:e.type)==="singleSelect"}function Ym(e,t,n){if(t===void 0)return;const r=t.find(o=>{const l=n(o);return String(l)===String(e)});return n(r)}const h4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],g4=["MenuProps"];function v4(e){return!!e.key}function y4(e){var t,n,r;const o=De(),{id:l,value:s,field:i,row:a,colDef:c,hasFocus:u,error:p,onValueChange:f,initialOpen:g=o.editMode===so.Cell,getOptionLabel:h,getOptionValue:b}=e,w=K(e,h4),C=at(),y=d.useRef(),x=d.useRef(),[S,T]=d.useState(g),k=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,E=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:_}=E,R=K(E,g4);if(vt(()=>{if(u){var N;(N=x.current)==null||N.focus()}},[u]),!Fl(c))return null;let F;if(typeof(c==null?void 0:c.valueOptions)=="function"?F=c==null?void 0:c.valueOptions({id:l,row:a,field:i}):F=c==null?void 0:c.valueOptions,!F)return null;const L=b||c.getOptionValue,O=h||c.getOptionLabel,I=async N=>{if(!Fl(c)||!F)return;T(!1);const M=N.target,D=Ym(M.value,F,L);f&&await f(N,D),await C.current.setEditCellValue({id:l,field:i,value:D},N)},$=(N,M)=>{if(o.editMode===so.Row){T(!1);return}if(M==="backdropClick"||sd(N.key)){const D=C.current.getCellParams(l,i);C.current.publishEvent("cellEditStop",m({},D,{reason:sd(N.key)?Rr.escapeKeyDown:Rr.cellFocusOut}))}},j=N=>{v4(N)&&N.key==="Enter"||T(!0)};return!F||!c?null:v.jsx(o.slots.baseSelect,m({ref:y,inputRef:x,value:s,onChange:I,open:S,onOpen:j,MenuProps:m({onClose:$},_),error:p,native:k,fullWidth:!0},w,R,{children:F.map(N=>{var M;const D=L(N);return d.createElement(o.slots.baseSelectOption,m({},((M=o.slotProps)==null?void 0:M.baseSelectOption)||{},{native:k,key:D,value:D}),O(N))})}))}const b4=e=>v.jsx(y4,m({},e)),C4=["open","target","onClose","children","position","className","onExited"],x4=e=>{const{classes:t}=e;return we({root:["menu"]},ct,t)},w4=X(Ql,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),S4={"bottom-start":"top left","bottom-end":"top right"};function gP(e){var t;const{open:n,target:r,onClose:o,children:l,position:s,className:i,onExited:a}=e,c=K(e,C4),u=at(),p=De(),f=x4(p),g=d.useRef(null);vt(()=>{if(n)g.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var w,C;(w=g.current)==null||(C=w.focus)==null||C.call(w),g.current=null}},[n]),d.useEffect(()=>{const w=n?"menuOpen":"menuClose";u.current.publishEvent(w,{target:r})},[u,n,r]);const h=w=>C=>{w&&w(),a&&a(C)},b=w=>{w.target&&(r===w.target||r!=null&&r.contains(w.target))||o(w)};return v.jsx(w4,m({as:p.slots.basePopper,className:ne(i,f.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:s},c,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:w,placement:C})=>v.jsx(RS,{onClickAway:b,mouseEvent:"onMouseDown",children:v.jsx(Ga,m({},w,{style:{transformOrigin:S4[C]},onExited:h(w==null?void 0:w.onExited),children:v.jsx(wr,{children:l})}))})}))}const P4=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],k4=e=>typeof e.getActions=="function";function E4(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:l,position:s="bottom-end",focusElementRef:i}=e,a=K(e,P4),[c,u]=d.useState(-1),[p,f]=d.useState(!1),g=at(),h=d.useRef(null),b=d.useRef(null),w=d.useRef(!1),C=d.useRef({}),y=Br(),x=bt(),S=bt(),T=De();if(!k4(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const P=n.getActions(g.current.getRowParams(r)),k=P.filter(j=>!j.props.showInMenu),E=P.filter(j=>j.props.showInMenu),_=k.length+(E.length?1:0);d.useLayoutEffect(()=>{o||Object.entries(C.current).forEach(([j,N])=>{N==null||N.stop({},()=>{delete C.current[j]})})},[o]),d.useEffect(()=>{if(c<0||!h.current||c>=h.current.children.length)return;h.current.children[c].focus({preventScroll:!0})},[c]),d.useEffect(()=>{o||(u(-1),w.current=!1)},[o]),d.useImperativeHandle(i,()=>({focus(){if(!w.current){const j=P.findIndex(N=>!N.props.disabled);u(j)}}}),[P]),d.useEffect(()=>{c>=_&&u(_-1)},[c,_]);const R=()=>{f(!0),u(_-1),w.current=!0},F=()=>{f(!1)},L=j=>N=>{C.current[j]=N},O=(j,N)=>M=>{u(j),w.current=!0,N&&N(M)},I=j=>{if(_<=1)return;const N=(D,A)=>{var H;if(D<0||D>P.length)return D;const z=y.direction==="rtl"?-1:1,W=(A==="left"?-1:1)*z;return(H=P[D+W])!=null&&H.props.disabled?N(D+W,A):D+W};let M=c;j.key==="ArrowRight"?M=N(c,"right"):j.key==="ArrowLeft"&&(M=N(c,"left")),!(M<0||M>=_)&&M!==c&&(j.preventDefault(),j.stopPropagation(),u(M))},$=j=>{j.key==="Tab"&&j.preventDefault(),["Tab","Escape"].includes(j.key)&&F()};return v.jsxs("div",m({role:"menu",ref:h,tabIndex:-1,className:B.actionsCell,onKeyDown:I},a,{children:[k.map((j,N)=>d.cloneElement(j,{key:N,touchRippleRef:L(N),onClick:O(N,j.props.onClick),tabIndex:c===N?l:-1})),E.length>0&&S&&v.jsx(T.slots.baseIconButton,m({ref:b,id:S,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:L(S),tabIndex:c===k.length?l:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:v.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&v.jsx(gP,{open:p,target:b.current,position:s,onClose:F,children:v.jsx(Qg,{id:x,className:B.menuList,onKeyDown:$,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:E.map((j,N)=>d.cloneElement(j,{key:N,closeMenu:F}))})})]}))}const I4=e=>v.jsx(E4,m({},e)),M4=["field","align","width","contentWidth"],$4=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Q(t)}`,"withBorderColor"]};return we(r,ct,n)};function R4(e){const{align:t,width:n,contentWidth:r}=e,o=K(e,M4),s={classes:De().classes,align:t},i=$4(s);return v.jsx("div",m({className:i.root,style:{width:n}},o,{children:v.jsx(xA,{width:`${r}%`})}))}function T4(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?bR($r(e.palette.divider,1),.88):yR($r(e.palette.divider,1),.68)}const U0={[`.${B.columnSeparator}, .${B["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},K0={[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"}},O4=X("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${B["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${B["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${B["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${B.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${B["root--disableUserSelection"]} .${B.cell}`]:t["root--disableUserSelection"]},{[`&.${B.autosizing}`]:t.autosizing},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellContent}`]:t.cellContent},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.menuList}`]:t.menuList},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B.row}`]:t.row},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.withBorderColor}`]:t.withBorderColor},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=T4(e),n=e.shape.borderRadius;return m({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:$r(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${B.autoHeight}`]:{height:"auto",[`& .${B["row--lastVisible"]} .${B.cell}`]:{borderBottomColor:"transparent"}},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${B.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderBottomColor:"transparent"},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:$r(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B["columnHeader--filledGroup"]}.${B["columnHeader--showColumnBorder"]} .${B.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${B["columnHeader--filledGroup"]}.${B["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}, & .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}, & .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${B.columnHeaders}:hover`]:U0,[`& .${B.columnHeader}:hover`]:K0,[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeaders}`]:U0,[`& .${B.columnHeader}`]:K0},[`& .${B["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${B["columnSeparator--sideRight"]}`]:{right:-12},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit"},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$r(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
206
+ `),bA,(t.vars||t).palette.action.hover)),xA=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:l,component:s="span",height:i,style:a,variant:c="text",width:u}=r,p=K(r,gA),f=m({},r,{animation:o,component:s,variant:c,hasChildren:!!p.children}),g=vA(f);return v.jsx(CA,m({as:s,ref:n,className:ne(g.root,l),ownerState:f},p,{style:m({width:u,height:i},a)}))});function wA(e){return He("MuiTooltip",e)}const Uo=Be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),SA=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function PA(e){return Math.round(e*1e5)/1e5}const kA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Q(l.split("-")[0])}`],arrow:["arrow"]};return we(s,wA,t)},EA=X(Yl,{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})=>m({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Uo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Uo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Uo.arrow}`]:m({},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"] .${Uo.arrow}`]:m({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),IA=X("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${Q(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>m({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pt(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:`${PA(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Uo.popper}[data-popper-placement*="left"] &`]:m({transformOrigin:"right center"},t.isRtl?m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):m({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Uo.popper}[data-popper-placement*="right"] &`]:m({transformOrigin:"left center"},t.isRtl?m({marginRight:"14px"},t.touch&&{marginRight:"24px"}):m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Uo.popper}[data-popper-placement*="top"] &`]:m({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Uo.popper}[data-popper-placement*="bottom"] &`]:m({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),MA=X("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:pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gc=!1;const L0=new $g;let Ni={x:0,y:0};function Wc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Cp=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,p,f,g,h,b,w,C,y,x,S,T;const P=Ke({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:E,components:_={},componentsProps:R={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:$=!1,enterDelay:j=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:D=!1,id:A,leaveDelay:H=0,leaveTouchDelay:z=1500,onClose:W,onOpen:G,open:q,placement:re="bottom",PopperComponent:ae,PopperProps:ce={},slotProps:ue={},slots:ye={},title:de,TransitionComponent:he=Ga,TransitionProps:Y}=P,pe=K(P,SA),ee=d.isValidElement(E)?E:v.jsx("span",{children:E}),Z=Vr(),fe=ic(),[le,ge]=d.useState(),[me,Ie]=d.useState(null),Se=d.useRef(!1),te=I||D,oe=Is(),xe=Is(),Oe=Is(),Ve=Is(),[Te,se]=nl({controlled:q,default:!1,name:"Tooltip",state:"open"});let qe=Te;const tt=bt(A),Xe=d.useRef(),be=Ct(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),Ve.clear()});d.useEffect(()=>be,[be]);const je=_e=>{L0.clear(),Gc=!0,se(!0),G&&!qe&&G(_e)},ie=Ct(_e=>{L0.start(800+H,()=>{Gc=!1}),se(!1),W&&qe&&W(_e),oe.start(Z.transitions.duration.shortest,()=>{Se.current=!1})}),Ee=_e=>{Se.current&&_e.type!=="touchstart"||(le&&le.removeAttribute("title"),xe.clear(),Oe.clear(),j||Gc&&N?xe.start(Gc?N:j,()=>{je(_e)}):je(_e))},Ae=_e=>{xe.clear(),Oe.start(H,()=>{ie(_e)})},{isFocusVisibleRef:Ne,onBlur:Ye,onFocus:$e,ref:Ce}=Rg(),[,Me]=d.useState(!1),We=_e=>{Ye(_e),Ne.current===!1&&(Me(!1),Ae(_e))},Qe=_e=>{le||ge(_e.currentTarget),$e(_e),Ne.current===!0&&(Me(!0),Ee(_e))},Pe=_e=>{Se.current=!0;const lt=ee.props;lt.onTouchStart&&lt.onTouchStart(_e)},Ge=_e=>{Pe(_e),Oe.clear(),oe.clear(),be(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.start(M,()=>{document.body.style.WebkitUserSelect=Xe.current,Ee(_e)})},rt=_e=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(_e),be(),Oe.start(z,()=>{ie(_e)})};d.useEffect(()=>{if(!qe)return;function _e(lt){(lt.key==="Escape"||lt.key==="Esc")&&ie(lt)}return document.addEventListener("keydown",_e),()=>{document.removeEventListener("keydown",_e)}},[ie,qe]);const _t=wt(ql(ee),Ce,ge,n);!de&&de!==0&&(qe=!1);const dt=d.useRef(),st=_e=>{const lt=ee.props;lt.onMouseMove&&lt.onMouseMove(_e),Ni={x:_e.clientX,y:_e.clientY},dt.current&&dt.current.update()},ut={},Et=typeof de=="string";F?(ut.title=!qe&&Et&&!O?de:null,ut["aria-describedby"]=qe?tt:null):(ut["aria-label"]=Et?de:null,ut["aria-labelledby"]=qe&&!Et?tt:null);const Kt=m({},ut,pe,ee.props,{className:ne(pe.className,ee.props.className),onTouchStart:Pe,ref:_t},D?{onMouseMove:st}:{}),pn={};$||(Kt.onTouchStart=Ge,Kt.onTouchEnd=rt),O||(Kt.onMouseOver=Wc(Ee,Kt.onMouseOver),Kt.onMouseLeave=Wc(Ae,Kt.onMouseLeave),te||(pn.onMouseOver=Ee,pn.onMouseLeave=Ae)),L||(Kt.onFocus=Wc(Qe,Kt.onFocus),Kt.onBlur=Wc(We,Kt.onBlur),te||(pn.onFocus=Qe,pn.onBlur=We));const fn=d.useMemo(()=>{var _e;let lt=[{name:"arrow",enabled:!!me,options:{element:me,padding:4}}];return(_e=ce.popperOptions)!=null&&_e.modifiers&&(lt=lt.concat(ce.popperOptions.modifiers)),m({},ce.popperOptions,{modifiers:lt})},[me,ce]),mn=m({},P,{isRtl:fe,arrow:k,disableInteractive:te,placement:re,PopperComponentProp:ae,touch:Se.current}),kr=kA(mn),Bn=(r=(o=ye.popper)!=null?o:_.Popper)!=null?r:EA,xn=(l=(s=(i=ye.transition)!=null?i:_.Transition)!=null?s:he)!=null?l:Ga,Er=(a=(c=ye.tooltip)!=null?c:_.Tooltip)!=null?a:IA,J=(u=(p=ye.arrow)!=null?p:_.Arrow)!=null?u:MA,U=qi(Bn,m({},ce,(f=ue.popper)!=null?f:R.popper,{className:ne(kr.popper,ce==null?void 0:ce.className,(g=(h=ue.popper)!=null?h:R.popper)==null?void 0:g.className)}),mn),ke=qi(xn,m({},Y,(b=ue.transition)!=null?b:R.transition),mn),ze=qi(Er,m({},(w=ue.tooltip)!=null?w:R.tooltip,{className:ne(kr.tooltip,(C=(y=ue.tooltip)!=null?y:R.tooltip)==null?void 0:C.className)}),mn),Je=qi(J,m({},(x=ue.arrow)!=null?x:R.arrow,{className:ne(kr.arrow,(S=(T=ue.arrow)!=null?T:R.arrow)==null?void 0:S.className)}),mn);return v.jsxs(d.Fragment,{children:[d.cloneElement(ee,Kt),v.jsx(Bn,m({as:ae??Yl,placement:re,anchorEl:D?{getBoundingClientRect:()=>({top:Ni.y,left:Ni.x,right:Ni.x,bottom:Ni.y,width:0,height:0})}:le,popperRef:dt,open:le?qe:!1,id:tt,transition:!0},pn,U,{popperOptions:fn,children:({TransitionProps:_e})=>v.jsx(xn,m({timeout:Z.transitions.duration.shorter},_e,ke,{children:v.jsxs(Er,m({},ze,{children:[de,k?v.jsx(J,m({},Je,{ref:Ie})):null]}))}))}))]})});function $A(e){return He("MuiSwitch",e)}const yn=Be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),RA=["className","color","edge","size","sx"],TA=e=>{const{classes:t,edge:n,size:r,color:o,checked:l,disabled:s}=e,i={root:["root",n&&`edge${Q(n)}`,`size${Q(r)}`],switchBase:["switchBase",`color${Q(o)}`,l&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=we(i,$A,t);return m({},t,a)},OA=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${yn.thumb}`]:{width:16,height:16},[`& .${yn.switchBase}`]:{padding:4,[`&.${yn.checked}`]:{transform:"translateX(16px)"}}}}]}),FA=X(MS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${yn.input}`]:t.input},n.color!=="default"&&t[`color${Q(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}),[`&.${yn.checked}`]:{transform:"translateX(20px)"},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${yn.checked} + .${yn.track}`]:{opacity:.5},[`&.${yn.disabled} + .${yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${yn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Fg(e.palette[t].main,.62):Og(e.palette[t].main,.55)}`}},[`&.${yn.checked} + .${yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),DA=X("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}`})),jA=X("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%"})),_A=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:i="medium",sx:a}=r,c=K(r,RA),u=m({},r,{color:l,edge:s,size:i}),p=TA(u),f=v.jsx(jA,{className:p.thumb,ownerState:u});return v.jsxs(OA,{className:ne(p.root,o),sx:a,ownerState:u,children:[v.jsx(FA,m({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:m({},p,{root:p.switchBase})})),v.jsx(DA,{className:p.track,ownerState:u})]})});function LA(e){return He("MuiTab",e)}const Do=Be("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),NA=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],AA=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:l,label:s,selected:i,disabled:a}=e,c={root:["root",l&&s&&"labelIcon",`textColor${Q(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return we(c,LA,t)},zA=X(ll,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Q(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Do.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>m({},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,[`& > .${Do.iconWrapper}`]:m({},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,[`&.${Do.selected}`]:{opacity:1},[`&.${Do.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Do.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Do.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Do.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Do.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)})),N0=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTab"}),{className:o,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:i,icon:a,iconPosition:c="top",indicator:u,label:p,onChange:f,onClick:g,onFocus:h,selected:b,selectionFollowsFocus:w,textColor:C="inherit",value:y,wrapped:x=!1}=r,S=K(r,NA),T=m({},r,{disabled:l,disableFocusRipple:s,selected:b,icon:!!a,iconPosition:c,label:!!p,fullWidth:i,textColor:C,wrapped:x}),P=AA(T),k=a&&p&&d.isValidElement(a)?d.cloneElement(a,{className:ne(P.iconWrapper,a.props.className)}):a,E=R=>{!b&&f&&f(R,y),g&&g(R)},_=R=>{w&&!b&&f&&f(R,y),h&&h(R)};return v.jsxs(zA,m({focusRipple:!s,className:ne(P.root,o),ref:n,role:"tab","aria-selected":b,disabled:l,onClick:E,onFocus:_,ownerState:T,tabIndex:b?0:-1},S,{children:[c==="top"||c==="start"?v.jsxs(d.Fragment,{children:[k,p]}):v.jsxs(d.Fragment,{children:[p,k]}),u]}))}),HA=d.createContext(),BA=d.createContext();function VA(e){return He("MuiTableCell",e)}const GA=Be("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WA=["align","className","component","padding","scope","size","sortDirection","variant"],UA=e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Q(r)}`,o!=="normal"&&`padding${Q(o)}`,`size${Q(l)}`]};return we(i,VA,t)},KA=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Q(n.size)}`],n.padding!=="normal"&&t[`padding${Q(n.padding)}`],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>m({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
207
+ ${e.palette.mode==="light"?Fg(pt(e.palette.divider,1),.88):Og(pt(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",[`&.${GA.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})),Wm=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:o="inherit",className:l,component:s,padding:i,scope:a,size:c,sortDirection:u,variant:p}=r,f=K(r,WA),g=d.useContext(HA),h=d.useContext(BA),b=h&&h.variant==="head";let w;s?w=s:w=b?"th":"td";let C=a;w==="td"?C=void 0:!C&&b&&(C="col");const y=p||h&&h.variant,x=m({},r,{align:o,component:w,padding:i||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&g&&g.stickyHeader,variant:y}),S=UA(x);let T=null;return u&&(T=u==="asc"?"ascending":"descending"),v.jsx(KA,m({as:w,ref:n,className:ne(S.root,l),"aria-sort":T,scope:C,ownerState:x},f))});function qA(e){return He("MuiToolbar",e)}Be("MuiToolbar",["root","gutters","regular","dense"]);const YA=["className","component","disableGutters","variant"],QA=e=>{const{classes:t,disableGutters:n,variant:r}=e;return we({root:["root",!n&&"gutters",r]},qA,t)},XA=X("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})=>m({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),tv=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:s=!1,variant:i="regular"}=r,a=K(r,YA),c=m({},r,{component:l,disableGutters:s,variant:i}),u=QA(c);return v.jsx(XA,m({as:l,className:ne(u.root,o),ref:n,ownerState:c},a))}),BS=ot(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VS=ot(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),ZA=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],JA=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u;const{backIconButtonProps:p,count:f,disabled:g=!1,getItemAriaLabel:h,nextIconButtonProps:b,onPageChange:w,page:C,rowsPerPage:y,showFirstButton:x,showLastButton:S,slots:T={},slotProps:P={}}=t,k=K(t,ZA),E=ic(),_=ue=>{w(ue,0)},R=ue=>{w(ue,C-1)},F=ue=>{w(ue,C+1)},L=ue=>{w(ue,Math.max(0,Math.ceil(f/y)-1))},O=(r=T.firstButton)!=null?r:jr,I=(o=T.lastButton)!=null?o:jr,$=(l=T.nextButton)!=null?l:jr,j=(s=T.previousButton)!=null?s:jr,N=(i=T.firstButtonIcon)!=null?i:JN,M=(a=T.lastButtonIcon)!=null?a:eA,D=(c=T.nextButtonIcon)!=null?c:VS,A=(u=T.previousButtonIcon)!=null?u:BS,H=E?I:O,z=E?$:j,W=E?j:$,G=E?O:I,q=E?P.lastButton:P.firstButton,re=E?P.nextButton:P.previousButton,ae=E?P.previousButton:P.nextButton,ce=E?P.firstButton:P.lastButton;return v.jsxs("div",m({ref:n},k,{children:[x&&v.jsx(H,m({onClick:_,disabled:g||C===0,"aria-label":h("first",C),title:h("first",C)},q,{children:E?v.jsx(M,m({},P.lastButtonIcon)):v.jsx(N,m({},P.firstButtonIcon))})),v.jsx(z,m({onClick:R,disabled:g||C===0,color:"inherit","aria-label":h("previous",C),title:h("previous",C)},re??p,{children:E?v.jsx(D,m({},P.nextButtonIcon)):v.jsx(A,m({},P.previousButtonIcon))})),v.jsx(W,m({onClick:F,disabled:g||(f!==-1?C>=Math.ceil(f/y)-1:!1),color:"inherit","aria-label":h("next",C),title:h("next",C)},ae??b,{children:E?v.jsx(A,m({},P.previousButtonIcon)):v.jsx(D,m({},P.nextButtonIcon))})),S&&v.jsx(G,m({onClick:L,disabled:g||C>=Math.ceil(f/y)-1,"aria-label":h("last",C),title:h("last",C)},ce,{children:E?v.jsx(N,m({},P.firstButtonIcon)):v.jsx(M,m({},P.lastButtonIcon))}))]}))});function e5(e){return He("MuiTablePagination",e)}const Rl=Be("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var A0;const t5=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],n5=X(Wm,{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}})),r5=X(tv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>m({[`& .${Rl.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},[`& .${Rl.actions}`]:{flexShrink:0,marginLeft:20}})),o5=X("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),l5=X("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>m({},e.typography.body2,{flexShrink:0})),s5=X(bp,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>m({[`& .${Rl.selectIcon}`]:t.selectIcon,[`& .${Rl.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Rl.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),i5=X(ro,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),a5=X("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>m({},e.typography.body2,{flexShrink:0}));function c5({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function u5(e){return`Go to ${e} page`}const d5=e=>{const{classes:t}=e;return we({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},e5,t)},p5=d.forwardRef(function(t,n){var r;const o=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=JA,backIconButtonProps:s,className:i,colSpan:a,component:c=Wm,count:u,disabled:p=!1,getItemAriaLabel:f=u5,labelDisplayedRows:g=c5,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:b,onPageChange:w,onRowsPerPageChange:C,page:y,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:T={},showFirstButton:P=!1,showLastButton:k=!1,slotProps:E={},slots:_={}}=o,R=K(o,t5),F=o,L=d5(F),O=(r=E==null?void 0:E.select)!=null?r:T,I=O.native?"option":i5;let $;(c===Wm||c==="td")&&($=a||1e3);const j=bt(O.id),N=bt(O.labelId),M=()=>u===-1?(y+1)*x:x===-1?u:Math.min(u,(y+1)*x);return v.jsx(n5,m({colSpan:$,ref:n,as:c,ownerState:F,className:ne(L.root,i)},R,{children:v.jsxs(r5,{className:L.toolbar,children:[v.jsx(o5,{className:L.spacer}),S.length>1&&v.jsx(l5,{className:L.selectLabel,id:N,children:h}),S.length>1&&v.jsx(s5,m({variant:"standard"},!O.variant&&{input:A0||(A0=v.jsx(yi,{}))},{value:x,onChange:C,id:j,labelId:N},O,{classes:m({},O.classes,{root:ne(L.input,L.selectRoot,(O.classes||{}).root),select:ne(L.select,(O.classes||{}).select),icon:ne(L.selectIcon,(O.classes||{}).icon)}),disabled:p,children:S.map(D=>d.createElement(I,m({},!Aa(I)&&{ownerState:F},{className:L.menuItem,key:D.label?D.label:D,value:D.value?D.value:D}),D.label?D.label:D))})),v.jsx(a5,{className:L.displayedRows,children:g({from:u===0?0:y*x+1,to:M(),count:u===-1?-1:u,page:y})}),v.jsx(l,{className:L.actions,backIconButtonProps:s,count:u,nextIconButtonProps:b,onPageChange:w,page:y,rowsPerPage:x,showFirstButton:P,showLastButton:k,slotProps:E.actions,slots:_.actions,getItemAriaLabel:f,disabled:p})]})}))});function f5(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function m5(e,t,n,r={},o=()=>{}){const{ease:l=f5,duration:s=300}=r;let i=null;const a=t[e];let c=!1;const u=()=>{c=!0},p=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const g=Math.min(1,(f-i)/s);if(t[e]=l(g)*(n-a)+a,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(p),u)}const h5=["onChange"],g5={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function v5(e){const{onChange:t}=e,n=K(e,h5),r=d.useRef(),o=d.useRef(null),l=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return vt(()=>{const s=Kl(()=>{const a=r.current;l(),a!==r.current&&t(r.current)}),i=Br(o.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[t]),d.useEffect(()=>{l(),t(r.current)},[t]),v.jsx("div",m({style:g5},n,{ref:o}))}function y5(e){return He("MuiTabScrollButton",e)}const b5=Be("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),C5=["className","slots","slotProps","direction","orientation","disabled"],x5=e=>{const{classes:t,orientation:n,disabled:r}=e;return we({root:["root",n,r&&"disabled"]},y5,t)},w5=X(ll,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>m({width:40,flexShrink:0,opacity:.8,[`&.${b5.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),S5=d.forwardRef(function(t,n){var r,o;const l=Ke({props:t,name:"MuiTabScrollButton"}),{className:s,slots:i={},slotProps:a={},direction:c}=l,u=K(l,C5),p=ic(),f=m({isRtl:p},l),g=x5(f),h=(r=i.StartScrollButtonIcon)!=null?r:BS,b=(o=i.EndScrollButtonIcon)!=null?o:VS,w=Jn({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),C=Jn({elementType:b,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return v.jsx(w5,m({component:"div",className:ne(g.root,s),ref:n,role:null,ownerState:f,tabIndex:null},u,{children:c==="left"?v.jsx(h,m({},w)):v.jsx(b,m({},C))}))});function P5(e){return He("MuiTabs",e)}const Mf=Be("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),k5=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],z0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,H0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uc=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const l=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||l)o=n(e,o);else{o.focus();return}}},E5=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:l,centered:s,scrollButtonsHideMobile:i,classes:a}=e;return we({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},P5,a)},I5=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mf.scrollButtons}`]:t.scrollButtons},{[`& .${Mf.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>m({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Mf.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),M5=X("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})=>m({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"})),$5=X("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})=>m({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),R5=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>m({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})),T5=X(v5)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),B0={},O5=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTabs"}),o=Vr(),l=ic(),{"aria-label":s,"aria-labelledby":i,action:a,centered:c=!1,children:u,className:p,component:f="div",allowScrollButtonsMobile:g=!1,indicatorColor:h="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:C=S5,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:T={},TabIndicatorProps:P={},TabScrollButtonProps:k={},textColor:E="primary",value:_,variant:R="standard",visibleScrollbar:F=!1}=r,L=K(r,k5),O=R==="scrollable",I=w==="vertical",$=I?"scrollTop":"scrollLeft",j=I?"top":"left",N=I?"bottom":"right",M=I?"clientHeight":"clientWidth",D=I?"height":"width",A=m({},r,{component:f,allowScrollButtonsMobile:g,indicatorColor:h,orientation:w,vertical:I,scrollButtons:y,textColor:E,variant:R,visibleScrollbar:F,fixed:!O,hideScrollbar:O&&!F,scrollableX:O&&!I,scrollableY:O&&I,centered:c&&!O,scrollButtonsHideMobile:!g}),H=E5(A),z=Jn({elementType:S.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:A}),W=Jn({elementType:S.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:A}),[G,q]=d.useState(!1),[re,ae]=d.useState(B0),[ce,ue]=d.useState(!1),[ye,de]=d.useState(!1),[he,Y]=d.useState(!1),[pe,ee]=d.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,fe=d.useRef(null),le=d.useRef(null),ge=()=>{const ie=fe.current;let Ee;if(ie){const Ne=ie.getBoundingClientRect();Ee={clientWidth:ie.clientWidth,scrollLeft:ie.scrollLeft,scrollTop:ie.scrollTop,scrollLeftNormalized:jR(ie,l?"rtl":"ltr"),scrollWidth:ie.scrollWidth,top:Ne.top,bottom:Ne.bottom,left:Ne.left,right:Ne.right}}let Ae;if(ie&&_!==!1){const Ne=le.current.children;if(Ne.length>0){const Ye=Ne[Z.get(_)];Ae=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:Ee,tabMeta:Ae}},me=Ct(()=>{const{tabsMeta:ie,tabMeta:Ee}=ge();let Ae=0,Ne;if(I)Ne="top",Ee&&ie&&(Ae=Ee.top-ie.top+ie.scrollTop);else if(Ne=l?"right":"left",Ee&&ie){const $e=l?ie.scrollLeftNormalized+ie.clientWidth-ie.scrollWidth:ie.scrollLeft;Ae=(l?-1:1)*(Ee[Ne]-ie[Ne]+$e)}const Ye={[Ne]:Ae,[D]:Ee?Ee[D]:0};if(isNaN(re[Ne])||isNaN(re[D]))ae(Ye);else{const $e=Math.abs(re[Ne]-Ye[Ne]),Ce=Math.abs(re[D]-Ye[D]);($e>=1||Ce>=1)&&ae(Ye)}}),Ie=(ie,{animation:Ee=!0}={})=>{Ee?m5($,fe.current,ie,{duration:o.transitions.duration.standard}):fe.current[$]=ie},Se=ie=>{let Ee=fe.current[$];I?Ee+=ie:(Ee+=ie*(l?-1:1),Ee*=l&&H1()==="reverse"?-1:1),Ie(Ee)},te=()=>{const ie=fe.current[M];let Ee=0;const Ae=Array.from(le.current.children);for(let Ne=0;Ne<Ae.length;Ne+=1){const Ye=Ae[Ne];if(Ee+Ye[M]>ie){Ne===0&&(Ee=ie);break}Ee+=Ye[M]}return Ee},oe=()=>{Se(-1*te())},xe=()=>{Se(te())},Oe=d.useCallback(ie=>{ee({overflow:null,scrollbarWidth:ie})},[]),Ve=()=>{const ie={};ie.scrollbarSizeListener=O?v.jsx(T5,{onChange:Oe,className:ne(H.scrollableX,H.hideScrollbar)}):null;const Ae=O&&(y==="auto"&&(ce||ye)||y===!0);return ie.scrollButtonStart=Ae?v.jsx(C,m({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:w,direction:l?"right":"left",onClick:oe,disabled:!ce},k,{className:ne(H.scrollButtons,k.className)})):null,ie.scrollButtonEnd=Ae?v.jsx(C,m({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:W},orientation:w,direction:l?"left":"right",onClick:xe,disabled:!ye},k,{className:ne(H.scrollButtons,k.className)})):null,ie},Te=Ct(ie=>{const{tabsMeta:Ee,tabMeta:Ae}=ge();if(!(!Ae||!Ee)){if(Ae[j]<Ee[j]){const Ne=Ee[$]+(Ae[j]-Ee[j]);Ie(Ne,{animation:ie})}else if(Ae[N]>Ee[N]){const Ne=Ee[$]+(Ae[N]-Ee[N]);Ie(Ne,{animation:ie})}}}),se=Ct(()=>{O&&y!==!1&&Y(!he)});d.useEffect(()=>{const ie=Kl(()=>{fe.current&&me()});let Ee;const Ae=$e=>{$e.forEach(Ce=>{Ce.removedNodes.forEach(Me=>{var We;(We=Ee)==null||We.unobserve(Me)}),Ce.addedNodes.forEach(Me=>{var We;(We=Ee)==null||We.observe(Me)})}),ie(),se()},Ne=Br(fe.current);Ne.addEventListener("resize",ie);let Ye;return typeof ResizeObserver<"u"&&(Ee=new ResizeObserver(ie),Array.from(le.current.children).forEach($e=>{Ee.observe($e)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(Ae),Ye.observe(le.current,{childList:!0})),()=>{var $e,Ce;ie.clear(),Ne.removeEventListener("resize",ie),($e=Ye)==null||$e.disconnect(),(Ce=Ee)==null||Ce.disconnect()}},[me,se]),d.useEffect(()=>{const ie=Array.from(le.current.children),Ee=ie.length;if(typeof IntersectionObserver<"u"&&Ee>0&&O&&y!==!1){const Ae=ie[0],Ne=ie[Ee-1],Ye={root:fe.current,threshold:.99},$e=Qe=>{ue(!Qe[0].isIntersecting)},Ce=new IntersectionObserver($e,Ye);Ce.observe(Ae);const Me=Qe=>{de(!Qe[0].isIntersecting)},We=new IntersectionObserver(Me,Ye);return We.observe(Ne),()=>{Ce.disconnect(),We.disconnect()}}},[O,y,he,u==null?void 0:u.length]),d.useEffect(()=>{q(!0)},[]),d.useEffect(()=>{me()}),d.useEffect(()=>{Te(B0!==re)},[Te,re]),d.useImperativeHandle(a,()=>({updateIndicator:me,updateScrollButtons:se}),[me,se]);const qe=v.jsx(R5,m({},P,{className:ne(H.indicator,P.className),ownerState:A,style:m({},re,P.style)}));let tt=0;const Xe=d.Children.map(u,ie=>{if(!d.isValidElement(ie))return null;const Ee=ie.props.value===void 0?tt:ie.props.value;Z.set(Ee,tt);const Ae=Ee===_;return tt+=1,d.cloneElement(ie,m({fullWidth:R==="fullWidth",indicator:Ae&&!G&&qe,selected:Ae,selectionFollowsFocus:x,onChange:b,textColor:E,value:Ee},tt===1&&_===!1&&!ie.props.tabIndex?{tabIndex:0}:{}))}),be=ie=>{const Ee=le.current,Ae=jt(Ee).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Ye=w==="horizontal"?"ArrowLeft":"ArrowUp",$e=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&l&&(Ye="ArrowRight",$e="ArrowLeft"),ie.key){case Ye:ie.preventDefault(),Uc(Ee,Ae,H0);break;case $e:ie.preventDefault(),Uc(Ee,Ae,z0);break;case"Home":ie.preventDefault(),Uc(Ee,null,z0);break;case"End":ie.preventDefault(),Uc(Ee,null,H0);break}},je=Ve();return v.jsxs(I5,m({className:ne(H.root,p),ownerState:A,ref:n,as:f},L,{children:[je.scrollButtonStart,je.scrollbarSizeListener,v.jsxs(M5,{className:H.scroller,ownerState:A,style:{overflow:pe.overflow,[I?`margin${l?"Left":"Right"}`:"marginBottom"]:F?void 0:-pe.scrollbarWidth},ref:fe,children:[v.jsx($5,{"aria-label":s,"aria-labelledby":i,"aria-orientation":w==="vertical"?"vertical":null,className:H.flexContainer,ownerState:A,onKeyDown:be,ref:le,role:"tablist",children:Xe}),G&&qe]}),je.scrollButtonEnd]}))});function F5(e){return He("MuiTextField",e)}Be("MuiTextField",["root"]);const D5=["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"],j5={standard:Qg,filled:Yg,outlined:Jg},_5=e=>{const{classes:t}=e;return we({root:["root"]},F5,t)},L5=X(_S,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GS=d.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:s,className:i,color:a="primary",defaultValue:c,disabled:u=!1,error:p=!1,FormHelperTextProps:f,fullWidth:g=!1,helperText:h,id:b,InputLabelProps:w,inputProps:C,InputProps:y,inputRef:x,label:S,maxRows:T,minRows:P,multiline:k=!1,name:E,onBlur:_,onChange:R,onFocus:F,placeholder:L,required:O=!1,rows:I,select:$=!1,SelectProps:j,type:N,value:M,variant:D="outlined"}=r,A=K(r,D5),H=m({},r,{autoFocus:l,color:a,disabled:u,error:p,fullWidth:g,multiline:k,required:O,select:$,variant:D}),z=_5(H),W={};D==="outlined"&&(w&&typeof w.shrink<"u"&&(W.notched=w.shrink),W.label=S),$&&((!j||!j.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const G=bt(b),q=h&&G?`${G}-helper-text`:void 0,re=S&&G?`${G}-label`:void 0,ae=j5[D],ce=v.jsx(ae,m({"aria-describedby":q,autoComplete:o,autoFocus:l,defaultValue:c,fullWidth:g,multiline:k,name:E,rows:I,maxRows:T,minRows:P,type:N,value:M,id:G,inputRef:x,onBlur:_,onChange:R,onFocus:F,placeholder:L,inputProps:C},W,y));return v.jsxs(L5,m({className:ne(z.root,i),disabled:u,error:p,fullWidth:g,ref:n,required:O,color:a,variant:D,ownerState:H},A,{children:[S!=null&&S!==""&&v.jsx(LS,m({htmlFor:G,id:re},w,{children:S})),$?v.jsx(bp,m({"aria-describedby":q,id:G,labelId:re,value:M,input:ce},j,{children:s})):ce,h&&v.jsx(FL,m({id:q},f,{children:h}))]}))});function N5(){return v.jsx(sS,{position:"static",elevation:0,sx:{borderBottom:1,borderColor:"divider"},children:v.jsx(tv,{variant:"dense",children:v.jsxs(Zt,{variant:"subtitle1",fontWeight:600,component:"div",sx:{flexGrow:1},children:["Colyseus Monitor v","0.18.4"]})})})}var A5={};const nv=(A5.GAME_SERVER_URL||`${window.location.protocol}//${window.location.host}${window.location.pathname}`).replace(/\/$/,"");function z5(){return fetch(`${nv}/api`).then(e=>e.json())}function H5(e){return fetch(`${nv}/api/room?roomId=${e}`).then(t=>t.json())}function WS(e,t,...n){const r=new URLSearchParams;return r.set("roomId",e),r.set("method",t),r.set("args",JSON.stringify(n)),fetch(`${nv}/api/room/call?${r.toString()}`).then(o=>o.text()).then(o=>o?JSON.parse(o):{})}const US=d.createContext(void 0);function at(){const e=d.useContext(US);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(`
208
+ `));return e}const KS=d.createContext(void 0),De=()=>{const e=d.useContext(KS);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},qS=d.createContext(void 0);function dl(){const e=d.useContext(qS);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
209
+ `));return e}const V0={};function rv(e,t){const n=d.useRef(V0);return n.current===V0&&(n.current=e(t)),n}const B5=[];function YS(e){d.useEffect(e,B5)}const co=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
210
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},V5=Object.is;function QS(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!V5(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}co(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function G5(e){return e.acceptsApiRef}function G0(e,t){return G5(t)?t(e):t(e.current.state)}const W5=Object.is,ov=QS,U5=()=>({state:null,equals:null,selector:null}),Re=(e,t,n=W5)=>{const r=rv(U5),o=r.current.selector!==null,[l,s]=d.useState(o?null:G0(e,t));return r.current.state=l,r.current.equals=n,r.current.selector=t,YS(()=>e.current.store.subscribe(()=>{const i=G0(e,r.current.selector);r.current.equals(r.current.state,i)||(r.current.state=i,s(i))})),l};function ct(e){return He("MuiDataGrid",e)}const B=Be("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ed="NOT_FOUND";function K5(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ed},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function q5(e,t){var n=[];function r(i){var a=n.findIndex(function(u){return t(i,u.key)});if(a>-1){var c=n[a];return a>0&&(n.splice(a,1),n.unshift(c)),c.value}return ed}function o(i,a){r(i)===ed&&(n.unshift({key:i,value:a}),n.length>e&&n.pop())}function l(){return n}function s(){n=[]}return{get:r,put:o,getEntries:l,clear:s}}var Y5=function(t,n){return t===n};function Q5(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,l=0;l<o;l++)if(!e(n[l],r[l]))return!1;return!0}}function xp(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Y5:r,l=n.maxSize,s=l===void 0?1:l,i=n.resultEqualityCheck,a=Q5(o),c=s===1?K5(a):q5(s,a);function u(){var p=c.get(arguments);if(p===ed){if(p=e.apply(null,arguments),i){var f=c.getEntries(),g=f.find(function(h){return i(h.value,p)});g&&(p=g.value)}c.put(arguments,p)}return p}return u.clearCache=function(){return c.clear()},u}function X5(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 Z5(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,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var c=0,u,p={memoizeOptions:void 0},f=i.pop();if(typeof f=="object"&&(p=f,f=i.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var g=p,h=g.memoizeOptions,b=h===void 0?n:h,w=Array.isArray(b)?b:[b],C=X5(i),y=e.apply(void 0,[function(){return c++,f.apply(null,arguments)}].concat(w)),x=e(function(){for(var T=[],P=C.length,k=0;k<P;k++)T.push(C[k].apply(null,arguments));return u=y.apply(null,T),u});return Object.assign(x,{resultFunc:f,memoizedResultFunc:y,dependencies:C,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),x};return o}var J5=Z5(xp);const ez={cache:new WeakMap};co(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function Um(e){return"current"in e&&"instanceId"in e.current}const Km={id:"default"},Ze=(e,t,n,r,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let i;if(e&&t&&n)i=(a,c)=>{const u=Um(a),p=c??(u?a.current.instanceId:Km),f=u?a.current.state:a,g=e(f,p),h=t(f,p);return n(g,h)};else if(e&&t)i=(a,c)=>{const u=Um(a),p=c??(u?a.current.instanceId:Km),f=u?a.current.state:a,g=e(f,p);return t(g)};else throw new Error("Missing arguments");return i.acceptsApiRef=!0,i},Ot=(...e)=>{const t=(...n)=>{var r,o;const[l,s]=n,i=Um(l),a=i?l.current.instanceId:s??Km,c=i?l.current.state:l,{cache:u}=ez;if(u.get(a)&&(r=u.get(a))!=null&&r.get(e)){var p;return(p=u.get(a))==null?void 0:p.get(e)(c,a)}const f=J5(...e);return u.get(a)||u.set(a,new Map),(o=u.get(a))==null||o.set(e,f),f(c,a)};return t.acceptsApiRef=!0,t},Tl=e=>e.columns,xo=Ze(Tl,e=>e.orderedFields),bi=Ze(Tl,e=>e.lookup),oo=Ot(xo,bi,(e,t)=>e.map(n=>t[n])),_r=Ze(Tl,e=>e.columnVisibilityModel),an=Ot(oo,_r,(e,t)=>e.filter(n=>t[n.field]!==!1)),wp=Ot(an,e=>e.map(t=>t.field)),ti=Ot(an,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),lv=Ze(an,ti,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),XS=Ot(oo,e=>e.filter(t=>t.filterable)),tz=Ot(oo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Sp=e=>e.columnGrouping,nz=Ot(Sp,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),ZS=Ot(Sp,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),rz=Ot(Sp,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),dc=Ze(Sp,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Gr=e=>e.rows,Pp=Ze(Gr,e=>e.totalRowCount),oz=Ze(Gr,e=>e.loading),lz=Ze(Gr,e=>e.totalTopLevelRowCount),bo=Ze(Gr,e=>e.dataRowIdToModelLookup),td=Ze(Gr,e=>e.dataRowIdToIdLookup),Dr=Ze(Gr,e=>e.tree),sz=Ze(Gr,e=>e.groupingName),W0=Ze(Gr,e=>e.treeDepths),kp=Ot(Gr,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),Xi=Ze(Gr,e=>e.dataRowIds),iz=Ze(Gr,e=>e==null?void 0:e.additionalRowGroups),Ci=Ot(iz,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}})}}),az=Ze(Ci,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)}),JS=()=>{var e;const t=dl(),n=De(),r=Re(t,an),o=Re(t,Pp),l=Re(t,dc),s=Re(t,az);let i="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(i="treegrid"),{role:i,"aria-colcount":r.length,"aria-rowcount":l+1+s+o,"aria-multiselectable":!n.disableMultipleRowSelection}},cz=e=>{const{classes:t}=e;return we({root:["main"]},ct,t)},uz=Jt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),dz=d.forwardRef((e,t)=>{var n;const r=De(),o=cz(r),l=(n=r.experimentalFeatures)!=null&&n.ariaV7?JS:null,s=typeof l=="function"?l():null;return v.jsx(uz,m({ref:t,className:o.root,ownerState:r},s,{children:e.children}))}),eP=e=>e.sorting,sv=Ze(eP,e=>e.sortedRows),iv=Ot(sv,bo,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),sr=Ze(eP,e=>e.sortModel),pz=Ot(sr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),av=e=>e.filter,en=Ze(av,e=>e.filterModel);Ze(en,e=>e.quickFilterValues);const fz=e=>e.visibleRowsLookup,tP=Ze(av,e=>e.filteredRowsLookup);Ze(av,e=>e.filteredDescendantCountLookup);const pl=Ot(fz,iv,(e,t)=>t.filter(n=>e[n.id]!==!1)),ma=Ot(pl,e=>e.map(t=>t.id)),mz=Ot(tP,iv,(e,t)=>t.filter(n=>e[n.id]!==!1)),hz=Ot(mz,e=>e.map(t=>t.id)),nP=Ot(pl,Dr,kp,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),rP=Ze(pl,e=>e.length),oP=Ze(nP,e=>e.length),gz=Ot(en,bi,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,l;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const i=s.filterOperators.find(a=>a.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),vz=Ot(gz,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Ep=e=>e.focus,Gn=Ze(Ep,e=>e.cell),yz=Ze(Ep,e=>e.columnHeader);Ze(Ep,e=>e.columnHeaderFilter);const nd=Ze(Ep,e=>e.columnGroupHeader),Ip=e=>e.tabIndex,rd=Ze(Ip,e=>e.cell),lP=Ze(Ip,e=>e.columnHeader);Ze(Ip,e=>e.columnHeaderFilter);const bz=Ze(Ip,e=>e.columnGroupHeader),cv=e=>e.density,Cz=Ze(cv,e=>e.value),xi=Ze(cv,e=>e.factor),qm=e=>e.columnMenu;function xz(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=dl(),l=De(),s=d.useRef(null),i=Re(o,an),a=Re(o,vz),c=Re(o,pz),u=Re(o,ti),p=Re(o,lP),f=Re(o,rd),g=Re(o,bz),h=Re(o,yz),b=Re(o,nd),w=Re(o,xi),C=Re(o,dc),y=Re(o,qm),x=Re(o,_r),S=Re(o,rz),T=!(g===null&&p===null&&f===null);vt(()=>{o.current.computeSizeAndPublishResizeEvent();const R=s.current;if(typeof ResizeObserver>"u")return()=>{};let F;const L=new ResizeObserver(()=>{F=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return R&&L.observe(R),()=>{F&&window.cancelAnimationFrame(F),R&&L.unobserve(R)}},[o]);const P=d.useRef(null),k=d.useRef(null),E=d.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:k,columnHeadersElementRef:P,virtualScrollerRef:E,mainElementRef:s});const _=!!o.current.getRootDimensions();return v.jsxs(dz,{ref:s,children:[v.jsx(l.slots.columnHeaders,m({ref:k,innerRef:P,visibleColumns:i,filterColumnLookup:a,sortColumnLookup:c,columnPositions:u,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:g,columnHeaderFocus:h,columnGroupHeaderFocus:b,densityFactor:w,headerGroupingMaxDepth:C,columnMenuState:y,columnVisibility:x,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:T},n)),_&&v.jsx(t,{ref:E}),r]})}function wz(){var e;const t=De();return t.hideFooter?null:v.jsx(t.slots.footer,m({},(e=t.slotProps)==null?void 0:e.footer))}const Pn="auto-generated-group-node-root",Hs=Symbol("mui.id_autogenerated"),Sz=()=>({type:"group",id:Pn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Pz(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(`
211
+ `))}const od=(e,t,n)=>{const r=t?t(e):e.id;return Pz(r,e,n),r},mu=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},l={},s={};for(let i=0;i<e.length;i+=1){const a=e[i],c=od(a,t);l[c]=a,s[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:l}},sP=({tree:e,rowCountProp:t=0})=>{const n=e[Pn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},iP=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const l=e.current.caches.rows,{tree:s,treeDepths:i,dataRowIds:a,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup}),u=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:i,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},m({},u,{totalRowCount:Math.max(t,u.dataRowIds.length),totalTopLevelRowCount:sP({tree:u.tree,rowCountProp:t}),groupingName:c,loading:n})},Ua=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uv=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let l=0;l<r.children.length;l+=1){const s=r.children[l];(!n||!Ua(e[s]))&&o.push(s);const i=uv(e,s,n);for(let a=0;a<i.length;a+=1)o.push(i[a])}return!n&&r.footerId!=null&&o.push(r.footerId),o},kz=({previousCache:e,getRowId:t,updates:n})=>{var r,o,l;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(f=>{const g=od(f,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,m({},s.get(g),f)):s.set(g,f)});const i={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(l=e.updates.actions.remove)!=null?l:[]]},idToActionLookup:m({},e.updates.idToActionLookup)},a=m({},e.dataRowIdToModelLookup),c=m({},e.dataRowIdToIdLookup),u={insert:{},modify:{},remove:{}};s.forEach((f,g)=>{const h=i.idToActionLookup[g];if(f._action==="delete"){if(h==="remove"||!a[g])return;h!=null&&(u[h][g]=!0),i.actions.remove.push(g),delete a[g],delete c[g];return}const b=a[g];if(b){h==="remove"?(u.remove[g]=!0,i.actions.modify.push(g)):h==null&&i.actions.modify.push(g),a[g]=m({},b,f);return}h==="remove"?(u.remove[g]=!0,i.actions.insert.push(g)):h==null&&i.actions.insert.push(g),a[g]=f,c[g]=g});const p=Object.keys(u);for(let f=0;f<p.length;f+=1){const g=p[f],h=u[g];Object.keys(h).length>0&&(i.actions[g]=i.actions[g].filter(b=>!h[b]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:c,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function aP(e){var t,n;const r=Ci(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0,l=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0;return{top:o,bottom:l}}function cP(e,t){const n=xi(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Ez=Jt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Iz=Jt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Mz=e=>{const{classes:t}=e;return we({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ct,t)};function $z(e){var t,n;const r=at(),o=De(),[l,s]=d.useState(()=>{var u,p;return(u=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?u:null}),i=d.useCallback(()=>{var u,p;s((u=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?u:null)},[r]);vt(()=>r.current.subscribeEvent("viewportInnerSizeChange",i),[r,i]);let a=(t=l==null?void 0:l.height)!=null?t:0;o.autoHeight&&a===0&&(a=cP(r,o.rowHeight));const c=Mz(m({},e,{classes:o.classes}));return l?v.jsx(Ez,{className:ne(c.root),overlayType:e.overlayType,children:v.jsx(Iz,m({className:ne(c.inner),style:{height:a,width:(n=l==null?void 0:l.width)!=null?n:0}},e))}):null}function Rz(){const e=at(),t=De(),n=Re(e,Pp),r=Re(e,rP),o=Re(e,oz),l=!o&&n===0,s=!o&&n>0&&r===0;let i=null,a="";if(l){var c;i=v.jsx(t.slots.noRowsOverlay,m({},(c=t.slotProps)==null?void 0:c.noRowsOverlay)),a="noRowsOverlay"}if(s){var u;i=v.jsx(t.slots.noResultsOverlay,m({},(u=t.slotProps)==null?void 0:u.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;i=v.jsx(t.slots.loadingOverlay,m({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return i===null?null:v.jsx($z,{overlayType:a,children:i})}function Mp(e){return d.memo(e,QS)}let $f;function Tz(){return $f===void 0&&document.createElement("div").focus({get preventScroll(){return $f=!0,!1}}),$f}var io=function(e){return e.Cell="cell",e.Row="row",e}(io||{}),yt=function(e){return e.Edit="edit",e.View="view",e}(yt||{}),It=function(e){return e.Edit="edit",e.View="view",e}(It||{}),On=function(e){return e.And="and",e.Or="or",e}(On||{}),po=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(po||{}),Tr=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Tr||{}),jo=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(jo||{}),fo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(fo||{});function uP(e){return e.field!==void 0}function Oz(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Fz(e,t){return e.closest(`.${t}`)}function dv(e){return e.replace(/["\\]/g,"\\$&")}function Dz(e,t){return e.querySelector(`[role="columnheader"][data-field="${dv(t)}"]`)}function dP(e){return`.${B.row}[data-id="${dv(String(e))}"]`}function jz(e,t){return e.querySelector(dP(t))}function _z(e,{id:t,field:n}){const r=dP(t),o=`.${B.cell}[data-field="${dv(n)}"]`,l=`${r} ${o}`;return e.querySelector(l)}function pc(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function et(e,t,n){const r=d.useRef(!0);d.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class $s extends Error{}function Lz(e,t){const{getRowId:n}=t,r=d.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),o=d.useCallback(h=>{const b=e.current.getRow(h);if(!b)throw new $s(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:b}},[e]),l=d.useCallback((h,b)=>{const w=e.current.getRow(h),C=e.current.getRowNode(h);if(!w||!C)throw new $s(`No row with id #${h} found`);const y=Gn(e),x=rd(e);return{id:h,field:b,row:w,rowNode:C,value:w[b],colDef:e.current.getColumn(b),cellMode:e.current.getCellMode(h,b),api:e.current,hasFocus:y!==null&&y.field===b&&y.id===h,tabIndex:x&&x.field===b&&x.id===h?0:-1}},[e]),s=d.useCallback((h,b)=>{const w=e.current.getColumn(b),C=e.current.getCellValue(h,b),y=e.current.getRow(h),x=e.current.getRowNode(h);if(!y||!x)throw new $s(`No row with id #${h} found`);const S=Gn(e),T=rd(e),P={id:h,field:b,row:y,rowNode:x,colDef:w,cellMode:e.current.getCellMode(h,b),hasFocus:S!==null&&S.field===b&&S.id===h,tabIndex:T&&T.field===b&&T.id===h?0:-1,value:C,formattedValue:C,isEditable:!1};return w&&w.valueFormatter&&(P.formattedValue=w.valueFormatter({id:h,field:P.field,value:P.value,api:e.current})),P.isEditable=w&&e.current.isCellEditable(P),P},[e]),i=d.useCallback((h,b)=>{const w=e.current.getColumn(b);if(!w||!w.valueGetter){const C=e.current.getRow(h);if(!C)throw new $s(`No row with id #${h} found`);return C[b]}return w.valueGetter(l(h,b))},[e,l]),a=d.useCallback((h,b)=>{var w;const C=Hs in h?h[Hs]:(w=n==null?void 0:n(h))!=null?w:h.id,y=b.field;return!b||!b.valueGetter?h[y]:b.valueGetter(l(C,y))},[l,n]),c=d.useCallback((h,b)=>{var w;const C=a(h,b);if(!b||!b.valueFormatter)return C;const y=(w=n?n(h):h.id)!=null?w:h[Hs],x=b.field;return b.valueFormatter({id:y,field:x,value:C,api:e.current})},[e,n,a]),u=d.useCallback(h=>e.current.rootElementRef.current?Dz(e.current.rootElementRef.current,h):null,[e]),p=d.useCallback(h=>e.current.rootElementRef.current?jz(e.current.rootElementRef.current,h):null,[e]),f=d.useCallback((h,b)=>e.current.rootElementRef.current?_z(e.current.rootElementRef.current,{id:h,field:b}):null,[e]);et(e,{getCellValue:i,getCellParams:s,getCellElement:f,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:u},"public")}const Nz=["changeReason","unstable_updateValueOnRender"],Az=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],zz=["changeReason","unstable_updateValueOnRender"],ld={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:yt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Hz=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:l,classes:s}=e,i={root:["cell",`cell--text${Q(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",l&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return we(i,ct,s)},Bz=d.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,l=at(),s=De(),i=n.field,a=Re(l,()=>{try{const _=l.current.getCellParams(r,i);return _.api=l.current,_}catch(E){if(E instanceof $s)return ld;throw E}},ov),c=Re(l,()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:i}));if(a===ld)return null;const{cellMode:u,hasFocus:p,isEditable:f,value:g,formattedValue:h}=a,b=n.type==="actions",w=(u==="view"||!f)&&!b?a.tabIndex:-1,{classes:C,getCellClassName:y}=s,x=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:i});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),y&&x.push(y(a));let S;if(o==null&&n.renderCell&&(S=n.renderCell(a),x.push(B["cell--withRenderer"]),x.push(C==null?void 0:C["cell--withRenderer"])),o!=null&&n.renderEditCell){const E=l.current.getRowWithUpdatedValues(r,n.field),_=K(o,Nz),R=m({},a,{row:E},_);S=n.renderEditCell(R),x.push(B["cell--editing"]),x.push(C==null?void 0:C["cell--editing"])}const{slots:T}=s,P=T.cell,k=m({},e,{ref:t,field:i,formattedValue:h,hasFocus:p,isEditable:f,isSelected:c,value:g,cellMode:u,children:S,tabIndex:w,className:ne(x)});return d.createElement(P,k)}),Vz=Mp(Bz),Gz=d.forwardRef((e,t)=>{var n,r,o,l;const{column:s,rowId:i,editCellState:a,align:c,colIndex:u,height:p,width:f,className:g,showRightBorder:h,colSpan:b,disableDragEvents:w,isNotVisible:C,onClick:y,onDoubleClick:x,onMouseDown:S,onMouseUp:T,onMouseOver:P,onKeyDown:k,onKeyUp:E,onDragEnter:_,onDragOver:R,style:F}=e,L=K(e,Az),O=at(),I=De(),$=s.field,j=Re(O,()=>{try{const oe=O.current.getCellParams(i,$);return oe.api=O.current,oe}catch(te){if(te instanceof $s)return ld;throw te}},ov),N=Re(O,()=>O.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:$})),{cellMode:M,hasFocus:D,isEditable:A,value:H,formattedValue:z}=j,W=s.type==="actions"&&((n=(r=s).getActions)==null?void 0:n.call(r,O.current.getRowParams(i)).some(te=>!te.props.disabled)),G=(M==="view"||!A)&&!W?j.tabIndex:-1,{classes:q,getCellClassName:re}=I,ae=O.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:$});s.cellClassName&&ae.push(typeof s.cellClassName=="function"?s.cellClassName(j):s.cellClassName),re&&ae.push(re(j));const ce=z??H,ue=d.useRef(null),ye=wt(t,ue),de=d.useRef(null),he=(o=I.unstable_cellSelection)!=null?o:!1,Y={align:c,showRightBorder:h,isEditable:A,classes:I.classes,isSelected:N,isSelectionMode:he},pe=Hz(Y),ee=d.useCallback(te=>oe=>{const xe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,xe,oe),T&&T(oe)},[O,$,T,i]),Z=d.useCallback(te=>oe=>{const xe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,xe,oe),S&&S(oe)},[O,$,S,i]),fe=d.useCallback((te,oe)=>xe=>{if(!O.current.getRow(i))return;const Oe=O.current.getCellParams(i,$||"");O.current.publishEvent(te,Oe,xe),oe&&oe(xe)},[O,$,i]),le=d.useMemo(()=>m(C?{padding:0,opacity:0,width:0,border:0}:{minWidth:f,maxWidth:f,minHeight:p,maxHeight:p==="auto"?"none":p},F),[f,p,C,F]);if(d.useEffect(()=>{if(!D||M===yt.Edit)return;const te=jt(O.current.rootElementRef.current);if(ue.current&&!ue.current.contains(te.activeElement)){const oe=ue.current.querySelector('[tabindex="0"]'),xe=de.current||oe||ue.current;if(Tz())xe.focus({preventScroll:!0});else{const Oe=O.current.getScrollPosition();xe.focus(),O.current.scroll(Oe)}}},[D,M,O]),j===ld)return null;let ge=L.onFocus,me;if(a==null&&s.renderCell&&(me=s.renderCell(j),ae.push(B["cell--withRenderer"]),ae.push(q==null?void 0:q["cell--withRenderer"])),a!=null&&s.renderEditCell){const te=O.current.getRowWithUpdatedValues(i,s.field),oe=K(a,zz),xe=m({},j,{row:te},oe);me=s.renderEditCell(xe),ae.push(B["cell--editing"]),ae.push(q==null?void 0:q["cell--editing"])}if(me===void 0){const te=ce==null?void 0:ce.toString();me=v.jsx("div",{className:pe.content,title:te,role:"presentation",children:te})}d.isValidElement(me)&&W&&(me=d.cloneElement(me,{focusElementRef:de}));const Ie=w?null:{onDragEnter:fe("cellDragEnter",_),onDragOver:fe("cellDragOver",R)},Se=(l=I.experimentalFeatures)==null?void 0:l.ariaV7;return v.jsx("div",m({ref:ye,className:ne(g,ae,pe.root),role:Se?"gridcell":"cell","data-field":$,"data-colindex":u,"aria-colindex":u+1,"aria-colspan":b,style:le,tabIndex:G,onClick:fe("cellClick",y),onDoubleClick:fe("cellDoubleClick",x),onMouseOver:fe("cellMouseOver",P),onMouseDown:Z("cellMouseDown"),onMouseUp:ee("cellMouseUp"),onKeyDown:fe("cellKeyDown",k),onKeyUp:fe("cellKeyUp",E)},Ie,L,{onFocus:ge,children:me}))}),Ym=Mp(Gz),Wz=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],Uz=e=>{const{classes:t}=e;return we({root:["booleanCell"]},ct,t)};function Kz(e){const{value:t}=e,n=K(e,Wz),r=at(),o=De(),l={classes:o.classes},s=Uz(l),i=d.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return v.jsx(i,m({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const qz=d.memo(Kz),Yz=e=>Ua(e.rowNode)?"":v.jsx(qz,m({},e)),Qz=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Xz=e=>{const{classes:t}=e;return we({root:["editBooleanCell"]},ct,t)};function Zz(e){var t;const{id:n,value:r,field:o,className:l,hasFocus:s,onValueChange:i}=e,a=K(e,Qz),c=at(),u=d.useRef(null),p=bt(),[f,g]=d.useState(r),h=De(),b={classes:h.classes},w=Xz(b),C=d.useCallback(async y=>{const x=y.target.checked;i&&await i(y,x),g(x),await c.current.setEditCellValue({id:n,field:o,value:x},y)},[c,o,n,i]);return d.useEffect(()=>{g(r)},[r]),vt(()=>{s&&u.current.focus()},[s]),v.jsx("label",m({htmlFor:p,className:ne(w.root,l)},a,{children:v.jsx(h.slots.baseCheckbox,m({id:p,inputRef:u,checked:!!f,onChange:C,size:"small"},(t=h.slotProps)==null?void 0:t.baseCheckbox))}))}const Jz=e=>v.jsx(Zz,m({},e)),e4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],t4=X(yi)({fontSize:"inherit"}),n4=e=>{const{classes:t}=e;return we({root:["editInputCell"]},ct,t)};function r4(e){const{id:t,value:n,field:r,colDef:o,hasFocus:l,inputProps:s,onValueChange:i}=e,a=K(e,e4),c=o.type==="dateTime",u=at(),p=d.useRef(),f=d.useMemo(()=>{let S;n==null?S=null:n instanceof Date?S=n:S=new Date((n??"").toString());let T;return S==null||Number.isNaN(S.getTime())?T="":T=new Date(S.getTime()-S.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:S,formatted:T}},[n,c]),[g,h]=d.useState(f),w={classes:De().classes},C=n4(w),y=d.useCallback(S=>{if(S==="")return null;const[T,P]=S.split("T"),[k,E,_]=T.split("-"),R=new Date;if(R.setFullYear(Number(k),Number(E)-1,Number(_)),R.setHours(0,0,0,0),P){const[F,L]=P.split(":");R.setHours(Number(F),Number(L),0,0)}return R},[]),x=d.useCallback(async S=>{const T=S.target.value,P=y(T);i&&await i(S,P),h({parsed:P,formatted:T}),u.current.setEditCellValue({id:t,field:r,value:P},S)},[u,r,t,i,y]);return d.useEffect(()=>{h(S=>{var T,P;return f.parsed!==S.parsed&&((T=f.parsed)==null?void 0:T.getTime())!==((P=S.parsed)==null?void 0:P.getTime())?f:S})},[f]),vt(()=>{l&&p.current.focus()},[l]),v.jsx(t4,m({inputRef:p,fullWidth:!0,className:C.root,type:c?"datetime-local":"date",inputProps:m({max:c?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:x},a))}const pP=e=>v.jsx(r4,m({},e)),o4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],l4=e=>{const{classes:t}=e;return we({root:["editInputCell"]},ct,t)},s4=X(yi,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>m({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),i4=d.forwardRef((e,t)=>{const n=De(),{id:r,value:o,field:l,colDef:s,hasFocus:i,debounceMs:a=200,isProcessingProps:c,onValueChange:u}=e,p=K(e,o4),f=at(),g=d.useRef(),[h,b]=d.useState(o),w=l4(n),C=d.useCallback(async x=>{const S=x.target.value;u&&await u(x,S);const T=f.current.getColumn(l);let P=S;T.valueParser&&(P=T.valueParser(S,f.current.getCellParams(r,l))),b(P),f.current.setEditCellValue({id:r,field:l,value:P,debounceMs:a,unstable_skipValueParser:!0},x)},[f,a,l,r,u]),y=f.current.unstable_getEditCellMeta(r,l);return d.useEffect(()=>{(y==null?void 0:y.changeReason)!=="debouncedSetEditCellValue"&&b(o)},[y,o]),vt(()=>{i&&g.current.focus()},[i]),v.jsx(s4,m({ref:t,inputRef:g,className:w.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:h??"",onChange:C,endAdornment:c?v.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),a4=e=>v.jsx(i4,m({},e)),sd=e=>e==="Escape",c4=e=>e==="Enter",fP=e=>e==="Tab",mP=e=>e===" ",u4=e=>e.indexOf("Arrow")===0,d4=e=>e==="Home"||e==="End",p4=e=>e.indexOf("Page")===0;function hP(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const id=e=>d4(e)||u4(e)||p4(e)||mP(e),f4=e=>!!e.key,m4=e=>fP(e)||sd(e);function Ol(e){return(e==null?void 0:e.type)==="singleSelect"}function Qm(e,t,n){if(t===void 0)return;const r=t.find(o=>{const l=n(o);return String(l)===String(e)});return n(r)}const h4=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],g4=["MenuProps"];function v4(e){return!!e.key}function y4(e){var t,n,r;const o=De(),{id:l,value:s,field:i,row:a,colDef:c,hasFocus:u,error:p,onValueChange:f,initialOpen:g=o.editMode===io.Cell,getOptionLabel:h,getOptionValue:b}=e,w=K(e,h4),C=at(),y=d.useRef(),x=d.useRef(),[S,T]=d.useState(g),k=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,E=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:_}=E,R=K(E,g4);if(vt(()=>{if(u){var N;(N=x.current)==null||N.focus()}},[u]),!Ol(c))return null;let F;if(typeof(c==null?void 0:c.valueOptions)=="function"?F=c==null?void 0:c.valueOptions({id:l,row:a,field:i}):F=c==null?void 0:c.valueOptions,!F)return null;const L=b||c.getOptionValue,O=h||c.getOptionLabel,I=async N=>{if(!Ol(c)||!F)return;T(!1);const M=N.target,D=Qm(M.value,F,L);f&&await f(N,D),await C.current.setEditCellValue({id:l,field:i,value:D},N)},$=(N,M)=>{if(o.editMode===io.Row){T(!1);return}if(M==="backdropClick"||sd(N.key)){const D=C.current.getCellParams(l,i);C.current.publishEvent("cellEditStop",m({},D,{reason:sd(N.key)?Tr.escapeKeyDown:Tr.cellFocusOut}))}},j=N=>{v4(N)&&N.key==="Enter"||T(!0)};return!F||!c?null:v.jsx(o.slots.baseSelect,m({ref:y,inputRef:x,value:s,onChange:I,open:S,onOpen:j,MenuProps:m({onClose:$},_),error:p,native:k,fullWidth:!0},w,R,{children:F.map(N=>{var M;const D=L(N);return d.createElement(o.slots.baseSelectOption,m({},((M=o.slotProps)==null?void 0:M.baseSelectOption)||{},{native:k,key:D,value:D}),O(N))})}))}const b4=e=>v.jsx(y4,m({},e)),C4=["open","target","onClose","children","position","className","onExited"],x4=e=>{const{classes:t}=e;return we({root:["menu"]},ct,t)},w4=X(Yl,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),S4={"bottom-start":"top left","bottom-end":"top right"};function gP(e){var t;const{open:n,target:r,onClose:o,children:l,position:s,className:i,onExited:a}=e,c=K(e,C4),u=at(),p=De(),f=x4(p),g=d.useRef(null);vt(()=>{if(n)g.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var w,C;(w=g.current)==null||(C=w.focus)==null||C.call(w),g.current=null}},[n]),d.useEffect(()=>{const w=n?"menuOpen":"menuClose";u.current.publishEvent(w,{target:r})},[u,n,r]);const h=w=>C=>{w&&w(),a&&a(C)},b=w=>{w.target&&(r===w.target||r!=null&&r.contains(w.target))||o(w)};return v.jsx(w4,m({as:p.slots.basePopper,className:ne(i,f.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:s},c,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:w,placement:C})=>v.jsx(RS,{onClickAway:b,mouseEvent:"onMouseDown",children:v.jsx(Ga,m({},w,{style:{transformOrigin:S4[C]},onExited:h(w==null?void 0:w.onExited),children:v.jsx(Sr,{children:l})}))})}))}const P4=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],k4=e=>typeof e.getActions=="function";function E4(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:l,position:s="bottom-end",focusElementRef:i}=e,a=K(e,P4),[c,u]=d.useState(-1),[p,f]=d.useState(!1),g=at(),h=d.useRef(null),b=d.useRef(null),w=d.useRef(!1),C=d.useRef({}),y=Vr(),x=bt(),S=bt(),T=De();if(!k4(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const P=n.getActions(g.current.getRowParams(r)),k=P.filter(j=>!j.props.showInMenu),E=P.filter(j=>j.props.showInMenu),_=k.length+(E.length?1:0);d.useLayoutEffect(()=>{o||Object.entries(C.current).forEach(([j,N])=>{N==null||N.stop({},()=>{delete C.current[j]})})},[o]),d.useEffect(()=>{if(c<0||!h.current||c>=h.current.children.length)return;h.current.children[c].focus({preventScroll:!0})},[c]),d.useEffect(()=>{o||(u(-1),w.current=!1)},[o]),d.useImperativeHandle(i,()=>({focus(){if(!w.current){const j=P.findIndex(N=>!N.props.disabled);u(j)}}}),[P]),d.useEffect(()=>{c>=_&&u(_-1)},[c,_]);const R=()=>{f(!0),u(_-1),w.current=!0},F=()=>{f(!1)},L=j=>N=>{C.current[j]=N},O=(j,N)=>M=>{u(j),w.current=!0,N&&N(M)},I=j=>{if(_<=1)return;const N=(D,A)=>{var H;if(D<0||D>P.length)return D;const z=y.direction==="rtl"?-1:1,W=(A==="left"?-1:1)*z;return(H=P[D+W])!=null&&H.props.disabled?N(D+W,A):D+W};let M=c;j.key==="ArrowRight"?M=N(c,"right"):j.key==="ArrowLeft"&&(M=N(c,"left")),!(M<0||M>=_)&&M!==c&&(j.preventDefault(),j.stopPropagation(),u(M))},$=j=>{j.key==="Tab"&&j.preventDefault(),["Tab","Escape"].includes(j.key)&&F()};return v.jsxs("div",m({role:"menu",ref:h,tabIndex:-1,className:B.actionsCell,onKeyDown:I},a,{children:[k.map((j,N)=>d.cloneElement(j,{key:N,touchRippleRef:L(N),onClick:O(N,j.props.onClick),tabIndex:c===N?l:-1})),E.length>0&&S&&v.jsx(T.slots.baseIconButton,m({ref:b,id:S,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:R,touchRippleRef:L(S),tabIndex:c===k.length?l:-1},(t=T.slotProps)==null?void 0:t.baseIconButton,{children:v.jsx(T.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&v.jsx(gP,{open:p,target:b.current,position:s,onClose:F,children:v.jsx(Xg,{id:x,className:B.menuList,onKeyDown:$,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:E.map((j,N)=>d.cloneElement(j,{key:N,closeMenu:F}))})})]}))}const I4=e=>v.jsx(E4,m({},e)),M4=["field","align","width","contentWidth"],$4=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Q(t)}`,"withBorderColor"]};return we(r,ct,n)};function R4(e){const{align:t,width:n,contentWidth:r}=e,o=K(e,M4),s={classes:De().classes,align:t},i=$4(s);return v.jsx("div",m({className:i.root,style:{width:n}},o,{children:v.jsx(xA,{width:`${r}%`})}))}function T4(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?bR(Rr(e.palette.divider,1),.88):yR(Rr(e.palette.divider,1),.68)}const U0={[`.${B.columnSeparator}, .${B["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},K0={[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"}},O4=X("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${B["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${B["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${B["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${B.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${B["root--disableUserSelection"]} .${B.cell}`]:t["root--disableUserSelection"]},{[`&.${B.autosizing}`]:t.autosizing},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellContent}`]:t.cellContent},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.menuList}`]:t.menuList},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B.row}`]:t.row},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.withBorderColor}`]:t.withBorderColor},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=T4(e),n=e.shape.borderRadius;return m({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Rr(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${B.autoHeight}`]:{height:"auto",[`& .${B["row--lastVisible"]} .${B.cell}`]:{borderBottomColor:"transparent"}},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${B.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderBottomColor:"transparent"},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:Rr(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B["columnHeader--filledGroup"]}.${B["columnHeader--showColumnBorder"]} .${B.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${B["columnHeader--filledGroup"]}.${B["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}, & .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}, & .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${B.columnHeaders}:hover`]:U0,[`& .${B.columnHeader}:hover`]:K0,[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeaders}`]:U0,[`& .${B.columnHeader}`]:K0},[`& .${B["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${B["columnSeparator--sideRight"]}`]:{right:-12},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit"},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
212
212
  ${e.vars.palette.action.selectedOpacity} +
213
213
  ${e.vars.palette.action.hoverOpacity}
214
- ))`:$r(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})`:$r(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${B.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$r(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:$r(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})`:$r(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${B["root--disableUserSelection"]} .${B.cell}`]:{userSelect:"none"},[`& .${B.row}:not(.${B["row--dynamicHeight"]}) > .${B.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${B.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:t},[`& .${B["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),F4=["children","className"],D4=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Q(n)}`,"withBorderColor"]};return we(o,ct,r)},j4=d.forwardRef(function(t,n){var r;const o=De(),{children:l,className:s}=t,i=K(t,F4),a=pl(),c=Re(a,Cz),u=d.useRef(null),p=wt(u,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:JS,g=typeof f=="function"?f():null,h=m({},o,{density:c}),b=D4(h);a.current.register("public",{rootElementRef:u});const[w,C]=d.useState(!1);return vt(()=>{C(!0)},[]),w?v.jsx(O4,m({ref:p,className:ne(s,b.root),ownerState:h},g,i,{children:l})):null}),_4=["className"],L4=e=>{const{classes:t}=e;return we({root:["footerContainer","withBorderColor"]},ct,t)},N4=Zt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),A4=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,_4),l=De(),s=L4(l);return v.jsx(N4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),z4=["className"],H4=e=>{const{classes:t}=e;return we({root:["overlay"]},ct,t)},B4=Zt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),pv=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,z4),l=De(),s=H4(l);return v.jsx(B4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),V4=["className"],G4=e=>{const{classes:t}=e;return we({root:["iconButtonContainer"]},ct,t)},W4=Zt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),vP=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,V4),l=De(),s=G4(l);return v.jsx(W4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),U4=e=>{const{classes:t}=e;return we({icon:["sortIcon"]},ct,t)};function K4(e,t,n,r){let o;const l={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,l.sortingOrder=r),o?v.jsx(o,m({fontSize:"small",className:n},l)):null}function q4(e){var t;const{direction:n,index:r,sortingOrder:o}=e,l=at(),s=De(),i=m({},e,{classes:s.classes}),a=U4(i),c=K4(s.slots,n,a.icon,o);if(!c)return null;const u=v.jsx(s.slots.baseIconButton,m({tabIndex:-1,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:c}));return v.jsxs(vP,{children:[r!=null&&v.jsx(ES,{badgeContent:r,color:"default",children:u}),r==null&&u]})}const Y4=d.memo(q4),Q4=e=>{const{classes:t,open:n}=e;return we({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ct,t)},X4=d.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:l,columnMenuButtonId:s,iconButtonRef:i}=e,a=at(),c=De(),u=m({},e,{classes:c.classes}),p=Q4(u),f=d.useCallback(g=>{g.preventDefault(),g.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return v.jsx("div",{className:p.root,children:v.jsx(c.slots.baseTooltip,m({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=c.slotProps)==null?void 0:t.baseTooltip,{children:v.jsx(c.slots.baseIconButton,m({ref:i,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?l:void 0,id:s},(n=c.slotProps)==null?void 0:n.baseIconButton,{children:v.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Z4({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:l,target:s,onExited:i}){const a=at(),c=a.current.getColumn(o),u=Ct(p=>{p&&(p.stopPropagation(),s!=null&&s.contains(p.target))||a.current.hideColumnMenu()});return!s||!c?null:v.jsx(gP,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:l,target:s,onClose:u,onExited:i,children:v.jsx(n,m({colDef:c,hideMenu:u,open:l,id:e,labelledby:t},r))})}const J4=["className"],eH=e=>{const{classes:t}=e;return we({root:["columnHeaderTitle"]},ct,t)},tH=Zt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),nH=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,J4),l=De(),s=eH(l);return v.jsx(tH,m({ref:n,className:ne(s.root,r),ownerState:l},o))});function rH(e){var t;const{label:n,description:r}=e,o=De(),l=d.useRef(null),[s,i]=d.useState(""),a=d.useCallback(()=>{if(!r&&l!=null&&l.current){const c=Oz(l.current);i(c?n:"")}},[r,n]);return v.jsx(o.slots.baseTooltip,m({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:v.jsx(nH,{onMouseOver:a,ref:l,children:n})}))}const oH=["resizable","resizing","height","side"];var yP=function(e){return e.Left="left",e.Right="right",e}(yP||{});const lH=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Q(o)}`],icon:["iconSeparator"]};return we(l,ct,r)};function sH(e){const{height:t,side:n=yP.Right}=e,r=K(e,oH),o=De(),l=m({},e,{side:n,classes:o.classes}),s=lH(l),i=d.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return v.jsx("div",m({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:i,children:v.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const iH=d.memo(sH),aH=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],bP=d.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:l,height:s,isResizing:i,sortDirection:a,hasFocus:c,tabIndex:u,separatorSide:p,isDraggable:f,headerComponent:g,description:h,width:b,columnMenuIconButton:w=null,columnMenu:C=null,columnTitleIconButtons:y=null,headerClassName:x,label:S,resizable:T,draggableContainerProps:P,columnHeaderSeparatorProps:k}=t,E=K(t,aH),_=pl(),R=De(),F=d.useRef(null),[L,O]=d.useState(o),I=wt(F,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),d.useEffect(()=>{L||O(o)},[L,o]),d.useLayoutEffect(()=>{const j=_.current.state.columnMenu;if(c&&!j.open){const M=F.current.querySelector('[tabindex="0"]')||F.current;M==null||M.focus(),_.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[_,c]),v.jsxs("div",m({ref:I,className:ne(r.root,x),style:{height:s,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:u,"aria-colindex":l+1,"aria-sort":$,"aria-label":g==null?S:void 0},E,{children:[v.jsxs("div",m({className:r.draggableContainer,draggable:f,role:"presentation"},P,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:v.jsx(rH,{label:S,description:h,columnWidth:b})}),y]}),w]})),v.jsx(iH,m({resizable:!R.disableColumnResize&&!!T,resizing:i,height:s,side:p},k)),C]}))}),cH=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:s}=e,i=o!=null,a=s!=null&&s>0,c=t.type==="number",u={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",i&&"columnHeader--sorted",a&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return we(u,ct,n)};function uH(e){var t,n,r,o;const{colDef:l,columnMenuOpen:s,colIndex:i,headerHeight:a,isResizing:c,sortDirection:u,sortIndex:p,filterItemsCounter:f,hasFocus:g,tabIndex:h,disableReorder:b,separatorSide:w}=e,C=pl(),y=De(),x=d.useRef(null),S=bt(),T=bt(),P=d.useRef(null),[k,E]=d.useState(s),_=d.useMemo(()=>!y.disableColumnReorder&&!b&&!l.disableReorder,[y.disableColumnReorder,b,l.disableReorder]);let R;l.renderHeader&&(R=l.renderHeader(C.current.getColumnHeaderParams(l.field)));const F=m({},e,{classes:y.classes,showRightBorder:y.showColumnVerticalBorder}),L=cH(F),O=d.useCallback(G=>q=>{pc(q)||C.current.publishEvent(G,C.current.getColumnHeaderParams(l.field),q)},[C,l.field]),I=d.useMemo(()=>({onClick:O("columnHeaderClick"),onDoubleClick:O("columnHeaderDoubleClick"),onMouseOver:O("columnHeaderOver"),onMouseOut:O("columnHeaderOut"),onMouseEnter:O("columnHeaderEnter"),onMouseLeave:O("columnHeaderLeave"),onKeyDown:O("columnHeaderKeyDown"),onFocus:O("columnHeaderFocus"),onBlur:O("columnHeaderBlur")}),[O]),$=d.useMemo(()=>_?{onDragStart:O("columnHeaderDragStart"),onDragEnter:O("columnHeaderDragEnter"),onDragOver:O("columnHeaderDragOver"),onDragEnd:O("columnHeaderDragEnd")}:{},[_,O]),j=d.useMemo(()=>({onMouseDown:O("columnSeparatorMouseDown"),onDoubleClick:O("columnSeparatorDoubleClick")}),[O]);d.useEffect(()=>{k||E(s)},[k,s]);const N=d.useCallback(()=>{E(!1)},[]),M=!y.disableColumnMenu&&!l.disableColumnMenu&&v.jsx(X4,{colDef:l,columnMenuId:S,columnMenuButtonId:T,open:k,iconButtonRef:P}),D=v.jsx(Z4,{columnMenuId:S,columnMenuButtonId:T,field:l.field,open:s,target:P.current,ContentComponent:y.slots.columnMenu,contentComponentProps:(t=y.slotProps)==null?void 0:t.columnMenu,onExited:N}),A=(n=l.sortingOrder)!=null?n:y.sortingOrder,H=v.jsxs(d.Fragment,{children:[!y.disableColumnFilter&&v.jsx(y.slots.columnHeaderFilterIconButton,m({field:l.field,counter:f},(r=y.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&v.jsx(Y4,{direction:u,index:p,sortingOrder:A})]});d.useLayoutEffect(()=>{const G=C.current.state.columnMenu;if(g&&!G.open){var q;const ae=x.current.querySelector('[tabindex="0"]')||x.current;ae==null||ae.focus(),(q=C.current.columnHeadersContainerElementRef)!=null&&q.current&&(C.current.columnHeadersContainerElementRef.current.scrollLeft=0)}},[C,g]);const z=typeof l.headerClassName=="function"?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,W=(o=l.headerName)!=null?o:l.field;return v.jsx(bP,m({ref:x,classes:L,columnMenuOpen:s,colIndex:i,height:a,isResizing:c,sortDirection:u,hasFocus:g,tabIndex:h,separatorSide:w,isDraggable:_,headerComponent:R,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:M,columnTitleIconButtons:H,headerClassName:z,label:W,resizable:!y.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:D,draggableContainerProps:$,columnHeaderSeparatorProps:j},I))}const Ka=()=>({items:[],logicOperator:On.And,quickFilterValues:[],quickFilterLogicOperator:On.And}),q0=1e3;class dH{constructor(t=q0){this.timeouts=new Map,this.cleanupTimeout=q0,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 pH{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 oo=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(oo||{});class fH{}function mH(e){let t=0;return function(r,o,l,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new pH:new dH);const[i]=d.useState(new fH),a=d.useRef(null),c=d.useRef();c.current=l;const u=d.useRef(null);if(!a.current&&c.current){const p=(f,g,h)=>{if(!g.defaultMuiPrevented){var b;(b=c.current)==null||b.call(c,f,g,h)}};a.current=r.current.subscribeEvent(o,p,s),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var f;(f=a.current)==null||f.call(a),a.current=null,u.current=null},u.current)}else!c.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));d.useEffect(()=>{if(!a.current&&c.current){const p=(f,g,h)=>{if(!g.defaultMuiPrevented){var b;(b=c.current)==null||b.call(c,f,g,h)}};a.current=r.current.subscribeEvent(o,p,s)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,s])}}const hH={registry:null},Le=mH(hH),gH={isFirst:!0};function Rt(e,t,n){Le(e,t,n,gH)}function dn(e,t){const n=d.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function vH(e){return typeof e=="number"&&!Number.isNaN(e)}function CP(e){return typeof e=="function"}function fv(e){return typeof e=="object"&&e!==null}function yH(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function hu(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const ni=(e,t,n)=>Math.max(t,Math.min(n,e));function Dl(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 l=0;l<o;l+=1)if(!Dl(e[l],t[l]))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 l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;for(let l=0;l<o.length;l+=1){const s=o[l];if(!Dl(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 l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(e[l]!==t[l])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 l=n[o];if(!Dl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function bH(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function CH(e,t,n){const r=bH(e);return()=>t+(n-t)*r()}function xP(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const xH=(e,t,n,r,o)=>{const l=dn(e,"useNativeEventListener"),[s,i]=d.useState(!1),a=d.useRef(r),c=d.useCallback(u=>a.current&&a.current(u),[]);d.useEffect(()=>{a.current=r},[r]),d.useEffect(()=>{let u;if(CP(t)?u=t():u=t&&t.current?t.current:null,u&&n&&!s){l.debug(`Binding native ${n} event`),u.addEventListener(n,c,o);const p=u;i(!0);const f=()=>{l.debug(`Clearing native ${n} event`),p.removeEventListener(n,c,o)};e.current.subscribeEvent("unmount",f)}},[t,c,n,s,l,o,e])},fc=e=>{const t=d.useRef(!0);t.current&&(t.current=!1,e())},wH=100,SH=e=>e?0:100,wP=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;ao(["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 SP=e=>({page:0,pageSize:e?0:100}),PH=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),PP=(e,t)=>{if(t===oo.DataGrid&&e>wH)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
215
- `))},mv=e=>e.pagination,sr=Ze(mv,e=>e.paginationModel),Rs=Ze(mv,e=>e.rowCount),kH=Ze(sr,e=>e.page),kP=Ze(sr,e=>e.pageSize),EH=Ze(kP,Rs,(e,t)=>wP(t,e)),hv=Ot(sr,Fr,Pp,fl,nP,(e,t,n,r,o)=>{const l=o.length,s=Math.min(e.pageSize*e.page,l-1),i=Math.min(s+e.pageSize-1,l-1);if(s===-1||i===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:i};const a=o[s],c=i-s+1,u=r.findIndex(h=>h.id===a.id);let p=u,f=0;for(;p<r.length&&f<=c;){var g;const h=r[p],b=(g=t[h.id])==null?void 0:g.depth;b===void 0?p+=1:((f<c||b>0)&&(p+=1),b===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:p-1}}),IH=Ot(fl,hv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),EP=Ot(ma,hv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),qa=e=>e.preferencePanel;var Vl=function(e){return e.filters="filters",e.columns="columns",e}(Vl||{});const Ya=e=>e.rowsMeta,ir=e=>e.rowSelection,MH=Ze(ir,e=>e.length),$H=Ot(ir,bo,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ad=Ot(ir,e=>e.reduce((t,n)=>(t[n]=n,t),{})),RH=ao(["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"),IP=(e,t)=>t&&e.length>1?(RH(),[e[0]]):e,Y0=(e,t)=>n=>m({},n,{sorting:m({},n.sorting,{sortModel:IP(e,t)})}),TH=e=>e==="desc",OH=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=TH(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator;return{getSortCellParams:l=>({id:l,field:n.field,rowNode:t.current.getRowNode(l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:r}},FH=(e,t,n)=>e.reduce((r,o,l)=>{if(r!==0)return r;const s=t.params[l],i=n.params[l];return r=o.comparator(s.value,i.value,s,i),r},0),DH=(e,t)=>{const n=e.map(r=>OH(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(l=>l.getSortCellParams(o.id))})).sort((o,l)=>FH(n,o,l)).map(o=>o.node.id)},Q0=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},gv=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,jH=new Intl.Collator,MP=(e,t)=>{const n=gv(e,t);return n!==null?n:typeof e=="string"?jH.compare(e.toString(),t.toString()):e-t},Qa=(e,t)=>{const n=gv(e,t);return n!==null?n:Number(e)-Number(t)},vv=(e,t)=>{const n=gv(e,t);return n!==null?n:e>t?1:e<t?-1:0},$P=e=>e.headerFiltering,_H=Ze($P,e=>e.editing),LH=Ze($P,e=>e.menuOpen),NH=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return m({},e,{virtualization:n})};function AH(e,t){const n=l=>{e.current.setState(s=>m({},s,{virtualization:m({},s.virtualization,{enabled:l})}))};et(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(s=>m({},s,{virtualization:m({},s.virtualization,{enabledForColumns:l})}))}},"public"),d.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const RP=e=>e.virtualization,zH=Ze(RP,e=>e.enabled),TP=Ze(RP,e=>e.enabledForColumns),HH=e=>{const{classes:t}=e;return we({icon:["filterIcon"]},ct,t)};function BH(e){var t,n;const{counter:r,field:o,onClick:l}=e,s=at(),i=De(),a=m({},e,{classes:i.classes}),c=HH(a),u=Re(s,qa),p=bt(),f=bt(),g=d.useCallback(w=>{w.preventDefault(),w.stopPropagation();const{open:C,openedPanelValue:y}=qa(s.current.state);C&&y===Vl.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,f,p),l&&l(s.current.getColumnHeaderParams(o),w)},[s,o,l,f,p]);if(!r)return null;const h=u.open&&u.labelId===p,b=v.jsx(i.slots.baseIconButton,m({id:p,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?f:void 0},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:v.jsx(i.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return v.jsx(i.slots.baseTooltip,m({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=i.slotProps)==null?void 0:n.baseTooltip,{children:v.jsxs(vP,{children:[r>1&&v.jsx(ES,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const VH=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],GH=e=>{const{classes:t}=e;return we({root:["checkboxInput"]},ct,t)},WH=d.forwardRef(function(t,n){var r;const{field:o,id:l,value:s,rowNode:i,hasFocus:a,tabIndex:c}=t,u=K(t,VH),p=at(),f=De(),g={classes:f.classes},h=GH(g),b=d.useRef(null),w=d.useRef(null),C=wt(b,n),y=p.current.getCellElement(l,o),x=k=>{const E={value:k.target.checked,id:l};p.current.publishEvent("rowSelectionCheckboxChange",E,k)};d.useLayoutEffect(()=>{c===0&&y&&(y.tabIndex=-1)},[y,c]),d.useEffect(()=>{if(a){var k;const E=(k=b.current)==null?void 0:k.querySelector("input");E==null||E.focus({preventScroll:!0})}else w.current&&w.current.stop({})},[a]);const S=d.useCallback(k=>{mP(k.key)&&k.stopPropagation()},[]);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=p.current.isRowSelectable(l),P=p.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return v.jsx(f.slots.baseCheckbox,m({ref:C,tabIndex:c,checked:s,onChange:x,className:h.root,inputProps:{"aria-label":P},onKeyDown:S,disabled:!T,touchRippleRef:w},(r=f.slotProps)==null?void 0:r.baseCheckbox,u))}),UH=WH,KH=["field","colDef"],qH=e=>{const{classes:t}=e;return we({root:["checkboxInput"]},ct,t)},YH=d.forwardRef(function(t,n){var r;const o=K(t,KH),[,l]=d.useState(!1),s=at(),i=De(),a={classes:i.classes},c=qH(a),u=Re(s,lP),p=Re(s,ir),f=Re(s,ma),g=Re(s,EP),h=d.useMemo(()=>typeof i.isRowSelectable!="function"?p:p.filter(E=>s.current.getRow(E)?i.isRowSelectable(s.current.getRowParams(E)):!1),[s,i.isRowSelectable,p]),b=d.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?f:g).reduce((_,R)=>(_[R]=!0,_),{}),[i.pagination,i.checkboxSelectionVisibleOnly,g,f]),w=d.useMemo(()=>h.filter(E=>b[E]).length,[h,b]),C=w>0&&w<Object.keys(b).length,y=w>0,x=E=>{const _={value:E.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",_)},S=u!==null&&u.field===t.field?0:-1;d.useLayoutEffect(()=>{const E=s.current.getColumnHeaderElement(t.field);S===0&&E&&(E.tabIndex=-1)},[S,s,t.field]);const T=d.useCallback(E=>{E.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!y})},[s,y]),P=d.useCallback(()=>{l(E=>!E)},[]);d.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",P),[s,P]);const k=s.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return v.jsx(i.slots.baseCheckbox,m({ref:n,indeterminate:C,checked:y,onChange:x,className:c.root,inputProps:{"aria-label":k},tabIndex:S,onKeyDown:T},(r=i.slotProps)==null?void 0:r.baseCheckbox,o))}),X0=ot(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Z0=ot(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),J0=ot(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),eC=ot(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),QH=ot(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),tC=ot(v.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"),XH=ot(v.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");ot(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ot(v.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 ZH=ot(v.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"),JH=ot(v.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),eB=ot(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),tB=ot(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),nB=ot(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),rB=ot(v.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"),$f=ot(v.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"),nC=ot(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),oB=ot(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),lB=ot(v.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"),rC=ot(v.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"),sB=ot(v.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"),iB=ot(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),aB=ot(v.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"),cB=ot(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),uB=ot(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),dB=ot(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");ot(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const pB=ot(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),fB=["hideMenu","colDef","id","labelledby","className","children","open"],mB=X(Qg)(()=>({minWidth:248})),hB=d.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:l,className:s,children:i,open:a}=t,c=K(t,fB),u=d.useCallback(p=>{fP(p.key)&&p.preventDefault(),m4(p.key)&&r(p)},[r]);return v.jsx(mB,m({id:o,ref:n,className:ne(B.menuList,s),"aria-labelledby":l,onKeyDown:u,autoFocus:a},c,{children:i}))}),gB=["displayOrder"],vB=e=>{const t=pl(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:l={},hideMenu:s,colDef:i,addDividers:a=!0}=e,c=d.useMemo(()=>m({},n,o),[n,o]),u=d.useMemo(()=>{if(!l||Object.keys(l).length===0)return r;const g=m({},l);return Object.entries(r).forEach(([h,b])=>{g[h]=m({},b,l[h]||{})}),g},[r,l]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=d.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(h=>!g.includes(h))},[o,n]);return d.useMemo(()=>{const b=Array.from(new Set([...p,...f])).filter(w=>c[w]!=null).sort((w,C)=>{const y=u[w],x=u[C],S=Number.isFinite(y==null?void 0:y.displayOrder)?y.displayOrder:100,T=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return S-T});return b.reduce((w,C,y)=>{let x={colDef:i,onClick:s};const S=u[C];if(S){const T=K(S,gB);x=m({},x,T)}return a&&y!==b.length-1?[...w,[c[C],x],[jS,{}]]:[...w,[c[C],x]]},[])},[a,i,p,s,c,u,f])};function yB(e){const{colDef:t,onClick:n}=e,r=at(),o=De(),i=an(r).filter(c=>c.disableColumnMenu!==!0).length===1,a=d.useCallback(c=>{i||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,i]);return o.disableColumnSelector||t.hideable===!1?null:v.jsxs(no,{onClick:a,disabled:i,children:[v.jsx(As,{children:v.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),v.jsx(zs,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function bB(e){const{onClick:t}=e,n=at(),r=De(),o=d.useCallback(l=>{t(l),n.current.showPreferences(Vl.columns)},[n,t]);return r.disableColumnSelector?null:v.jsxs(no,{onClick:o,children:[v.jsx(As,{children:v.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),v.jsx(zs,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function CB(e){return v.jsxs(d.Fragment,{children:[v.jsx(yB,m({},e)),v.jsx(bB,m({},e))]})}function xB(e){const{colDef:t,onClick:n}=e,r=at(),o=De(),l=d.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:v.jsxs(no,{onClick:l,children:[v.jsx(As,{children:v.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),v.jsx(zs,{children:r.current.getLocaleText("columnMenuFilter")})]})}function wB(e){var t;const{colDef:n,onClick:r}=e,o=at(),l=Re(o,lr),s=De(),i=d.useMemo(()=>{if(!n)return null;const p=l.find(f=>f.field===n.field);return p==null?void 0:p.sort},[n,l]),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=d.useCallback(p=>{r(p);const f=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,f===i?null:f)},[o,n,r,i]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const u=p=>{const f=o.current.getLocaleText(p);return typeof f=="function"?f(n):f};return v.jsxs(d.Fragment,{children:[a.includes("asc")&&i!=="asc"?v.jsxs(no,{onClick:c,"data-value":"asc",children:[v.jsx(As,{children:v.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),v.jsx(zs,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?v.jsxs(no,{onClick:c,"data-value":"desc",children:[v.jsx(As,{children:v.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),v.jsx(zs,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?v.jsxs(no,{onClick:c,children:[v.jsx(As,{}),v.jsx(zs,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const SB=["defaultSlots","defaultSlotProps","slots","slotProps"],PB={columnMenuSortItem:wB,columnMenuFilterItem:xB,columnMenuColumnsItem:CB},kB={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},EB=d.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}=t,i=K(t,SB),a=vB(m({},i,{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}));return v.jsx(hB,m({ref:n},i,{children:a.map(([c,u],p)=>v.jsx(c,m({},u),p))}))}),IB=d.forwardRef(function(t,n){return v.jsx(EB,m({},t,{ref:n,defaultSlots:PB,defaultSlotProps:kB}))}),MB=["className"],$B=e=>{const{classes:t}=e;return we({root:["panelContent"]},ct,t)},RB=Zt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function OP(e){const{className:t}=e,n=K(e,MB),r=De(),o=$B(r);return v.jsx(RB,m({className:ne(t,o.root),ownerState:r},n))}const TB=["className"],OB=e=>{const{classes:t}=e;return we({root:["panelFooter"]},ct,t)},FB=Zt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function FP(e){const{className:t}=e,n=K(e,TB),r=De(),o=OB(r);return v.jsx(FB,m({className:ne(t,o.root),ownerState:r},n))}const DB=["className"],jB=e=>{const{classes:t}=e;return we({root:["panelHeader"]},ct,t)},_B=Zt("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function LB(e){const{className:t}=e,n=K(e,DB),r=De(),o=jB(r);return v.jsx(_B,m({className:ne(t,o.root),ownerState:r},n))}const NB=["className","slotProps"],AB=e=>{const{classes:t}=e;return we({root:["panelWrapper"]},ct,t)},zB=X("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),HB=()=>!0,DP=d.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,l=K(t,NB),s=De(),i=AB(s);return v.jsx(OS,m({open:!0,disableEnforceFocus:!0,isEnabled:HB},o.TrapFocus,{children:v.jsx(zB,m({ref:n,tabIndex:-1,className:ne(r,i.root),ownerState:s},l))}))}),BB=!1,VB=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],GB=e=>{const{classes:t}=e;return we({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},ct,t)},WB=X("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),UB=X("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${yn.root}`]:{marginRight:e.spacing(.5)}}));X(Dr)({justifyContent:"flex-end"});const oC=new Intl.Collator,KB=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function qB(e){var t,n,r;const o=at(),l=d.useRef(null),s=Re(o,ro),i=Re(o,jr),a=De(),[c,u]=d.useState(""),p=GB(a),{sort:f,searchPredicate:g=KB,autoFocusSearchField:h=!0,disableHideAllButton:b=!1,disableShowAllButton:w=!1,getTogglableColumns:C}=e,y=K(e,VB),x=d.useMemo(()=>{switch(f){case"asc":return[...s].sort((F,L)=>oC.compare(F.headerName||F.field,L.headerName||L.field));case"desc":return[...s].sort((F,L)=>-oC.compare(F.headerName||F.field,L.headerName||L.field));default:return s}},[s,f]),S=F=>{const{name:L}=F.target;o.current.setColumnVisibility(L,i[L]===!1)},T=d.useCallback(F=>{const L=jr(o),O=m({},L),I=C?C(s):null;return s.forEach($=>{$.hideable&&(I==null||I.includes($.field))&&(F?delete O[$.field]:O[$.field]=!1)}),o.current.setColumnVisibilityModel(O)},[o,s,C]),P=d.useCallback(F=>{u(F.target.value)},[]),k=d.useMemo(()=>{const F=C?C(x):null,L=F?x.filter(({field:O})=>F.includes(O)):x;return c?L.filter(O=>g(O,c.toLowerCase())):L},[x,c,g,C]),E=d.useRef(null);d.useEffect(()=>{h?l.current.focus():E.current&&typeof E.current.focus=="function"&&E.current.focus()},[h]);let _=!1;const R=F=>_===!1&&F.hideable!==!1?(_=!0,!0):!1;return v.jsxs(DP,m({},y,{children:[v.jsx(LB,{children:v.jsx(a.slots.baseTextField,m({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:c,onChange:P,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),v.jsx(OP,{children:v.jsx(WB,{className:p.root,ownerState:a,children:k.map(F=>{var L;return v.jsxs(UB,{className:p.columnsPanelRow,ownerState:a,children:[v.jsx(ML,{control:v.jsx(a.slots.baseSwitch,m({disabled:F.hideable===!1,checked:i[F.field]!==!1,onClick:S,name:F.field,size:"small",inputRef:R(F)?E:void 0},(L=a.slotProps)==null?void 0:L.baseSwitch)),label:F.headerName||F.field}),!a.disableColumnReorder&&BB]},F.field)})})}),w&&b?null:v.jsxs(FP,{children:[b?v.jsx("span",{}):v.jsx(a.slots.baseButton,m({onClick:()=>T(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),w?null:v.jsx(a.slots.baseButton,m({onClick:()=>T(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:w,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const YB=["children","className","classes"],QB=Be("MuiDataGrid",["panel","paper"]),XB=X(Ql,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),ZB=X(wr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),JB=d.forwardRef((e,t)=>{const{children:n,className:r}=e,o=K(e,YB),l=at(),s=De(),i=QB,[a,c]=d.useState(!1),u=d.useCallback(()=>{l.current.hidePreferences()},[l]),p=d.useCallback(b=>{sd(b.key)&&l.current.hidePreferences()},[l]),f=d.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[g,h]=d.useState(null);return d.useEffect(()=>{var b;const w=(b=l.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${B.columnHeaders}`);w&&h(w)},[l]),g?v.jsx(XB,m({ref:t,placement:"bottom-start",className:ne(r,i.panel),ownerState:s,anchorEl:g,modifiers:f},o,{children:v.jsx(RS,{mouseEvent:"onMouseUp",onClickAway:u,children:v.jsx(ZB,{className:i.paper,ownerState:s,elevation:8,onKeyDown:p,children:a&&n})})})):null}),e3=d.forwardRef(function(t,n){var r,o,l;const s=at(),i=Re(s,ro),a=De(),c=Re(s,qa),u=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=c.openedPanelValue)!=null?r:Vl.filters);return v.jsx(a.slots.panel,m({ref:n,as:a.slots.basePopper,open:i.length>0&&c.open,id:c.panelId,"aria-labelledby":c.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(l=a.slotProps)==null?void 0:l.basePopper,{children:u}))}),t3=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],n3=["InputComponentProps"],r3=e=>{const{classes:t}=e;return we({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ct,t)},o3=X("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),l3=X("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),s3=X("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),i3=X("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),a3=X("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),c3=X("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),u3=e=>{switch(e){case On.And:return"filterPanelOperatorAnd";case On.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Ai=e=>e.headerName||e.field,lC=new Intl.Collator,d3=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,p,f;const{item:g,hasMultipleFilters:h,deleteFilter:b,applyFilterChanges:w,multiFilterOperator:C,showMultiFilterOperators:y,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:S,focusElementRef:T,logicOperators:P=[On.And,On.Or],columnsSort:k,filterColumns:E,deleteIconProps:_={},logicOperatorInputProps:R={},operatorInputProps:F={},columnInputProps:L={},valueInputProps:O={}}=t,I=K(t,t3),$=at(),j=Re($,XS),N=Re($,Jt),M=bt(),D=bt(),A=bt(),H=bt(),z=De(),W=r3(z),G=d.useRef(null),q=d.useRef(null),re=h&&P.length>0,ae=((r=z.slotProps)==null?void 0:r.baseFormControl)||{},ue=(l=(((o=z.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?l:!0,ye=((s=z.slotProps)==null?void 0:s.baseInputLabel)||{},de=((i=z.slotProps)==null?void 0:i.baseSelectOption)||{},{InputComponentProps:he}=O,Y=K(O,n3),pe=d.useMemo(()=>{if(E===void 0||typeof E!="function")return j;const Se=E({field:g.field,columns:j,currentFilters:(N==null?void 0:N.items)||[]});return j.filter(te=>Se.includes(te.field))},[E,N==null?void 0:N.items,j,g.field]),ee=d.useMemo(()=>{switch(k){case"asc":return pe.sort((Se,te)=>lC.compare(Ai(Se),Ai(te)));case"desc":return pe.sort((Se,te)=>-lC.compare(Ai(Se),Ai(te)));default:return pe}},[pe,k]),Z=g.field?$.current.getColumn(g.field):null,fe=d.useMemo(()=>{var Se;return!g.operator||!Z?null:(Se=Z.filterOperators)==null?void 0:Se.find(te=>te.value===g.operator)},[g,Z]),le=d.useCallback(Se=>{const te=Se.target.value,oe=$.current.getColumn(te);if(oe.field===Z.field)return;const xe=oe.filterOperators.find(Ve=>Ve.value===g.operator)||oe.filterOperators[0],Oe=!xe.InputComponent||xe.InputComponent!==(fe==null?void 0:fe.InputComponent)||oe.type!==Z.type;w(m({},g,{field:te,operator:xe.value,value:Oe?void 0:g.value}))},[$,w,g,Z,fe]),ge=d.useCallback(Se=>{const te=Se.target.value,oe=Z==null?void 0:Z.filterOperators.find(Oe=>Oe.value===te),xe=!(oe!=null&&oe.InputComponent)||(oe==null?void 0:oe.InputComponent)!==(fe==null?void 0:fe.InputComponent);w(m({},g,{operator:te,value:xe?void 0:g.value}))},[w,g,Z,fe]),me=d.useCallback(Se=>{const te=Se.target.value===On.And.toString()?On.And:On.Or;S(te)},[S]),Ie=()=>{z.disableMultipleColumnsFiltering?g.value===void 0?b(g):w(m({},g,{value:void 0})):b(g)};return d.useImperativeHandle(T,()=>({focus:()=>{if(fe!=null&&fe.InputComponent){var Se;G==null||(Se=G.current)==null||Se.focus()}else q.current.focus()}}),[fe]),v.jsxs(o3,m({ref:n,className:W.root,"data-id":g.id,ownerState:z},I,{children:[v.jsx(l3,m({variant:"standard",as:z.slots.baseFormControl},ae,_,{className:ne(W.deleteIcon,ae.className,_.className),ownerState:z,children:v.jsx(z.slots.baseIconButton,m({"aria-label":$.current.getLocaleText("filterPanelDeleteIconLabel"),title:$.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ie,size:"small"},(a=z.slotProps)==null?void 0:a.baseIconButton,{children:v.jsx(z.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(s3,m({variant:"standard",as:z.slots.baseFormControl},ae,R,{sx:m({display:re?"flex":"none",visibility:y?"visible":"hidden"},ae.sx||{},R.sx||{}),className:ne(W.logicOperatorInput,ae.className,R.className),ownerState:z,children:v.jsx(z.slots.baseSelect,m({inputProps:{"aria-label":$.current.getLocaleText("filterPanelLogicOperator")},value:C,onChange:me,disabled:!!x||P.length===1,native:ue},(c=z.slotProps)==null?void 0:c.baseSelect,{children:P.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.toString(),value:Se.toString()}),$.current.getLocaleText(u3(Se))))}))})),v.jsxs(i3,m({variant:"standard",as:z.slots.baseFormControl},ae,L,{className:ne(W.columnInput,ae.className,L.className),ownerState:z,children:[v.jsx(z.slots.baseInputLabel,m({},ye,{htmlFor:M,id:D,children:$.current.getLocaleText("filterPanelColumns")})),v.jsx(z.slots.baseSelect,m({labelId:D,id:M,label:$.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:le,native:ue},(u=z.slotProps)==null?void 0:u.baseSelect,{children:ee.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.field,value:Se.field}),Ai(Se)))}))]})),v.jsxs(a3,m({variant:"standard",as:z.slots.baseFormControl},ae,F,{className:ne(W.operatorInput,ae.className,F.className),ownerState:z,children:[v.jsx(z.slots.baseInputLabel,m({},ye,{htmlFor:A,id:H,children:$.current.getLocaleText("filterPanelOperator")})),v.jsx(z.slots.baseSelect,m({labelId:H,label:$.current.getLocaleText("filterPanelOperator"),id:A,value:g.operator,onChange:ge,native:ue,inputRef:q},(p=z.slotProps)==null?void 0:p.baseSelect,{children:Z==null||(f=Z.filterOperators)==null?void 0:f.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.value,value:Se.value}),Se.label||$.current.getLocaleText(`filterOperator${Q(Se.value)}`)))}))]})),v.jsx(c3,m({variant:"standard",as:z.slots.baseFormControl},ae,Y,{className:ne(W.valueInput,ae.className,Y.className),ownerState:z,children:fe!=null&&fe.InputComponent?v.jsx(fe.InputComponent,m({apiRef:$,item:g,applyValue:w,focusElementRef:G},fe.InputComponentProps,he)):null}))]}))});class yv{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new yv}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function bv(){const e=rv(yv.create).current;return YS(e.disposeEffect),e}const p3=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Qr(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,tabIndex:a,disabled:c,clearButton:u,InputProps:p,variant:f="standard"}=e,g=K(e,p3),h=bv(),[b,w]=d.useState((t=r.value)!=null?t:""),[C,y]=d.useState(!1),x=bt(),S=De(),T=d.useCallback(P=>{const{value:k}=P.target;w(String(k)),y(!0),h.start(S.filterDebounceMs,()=>{const E=m({},r,{value:k,fromInput:x});o(E),y(!1)})},[x,o,r,S.filterDebounceMs,h]);return d.useEffect(()=>{if(r.fromInput!==x||r.value===void 0){var k;w(String((k=r.value)!=null?k:""))}},[x,r]),v.jsx(S.slots.baseTextField,m({id:x,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:T,variant:f,type:l||"text",InputProps:m({},C||u?{endAdornment:C?v.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:c},p,{inputProps:m({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},g,(n=S.slotProps)==null?void 0:n.baseTextField))}const f3=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function as(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,InputProps:a,clearButton:c,tabIndex:u,disabled:p}=e,f=K(e,f3),g=bv(),[h,b]=d.useState((t=r.value)!=null?t:""),[w,C]=d.useState(!1),y=bt(),x=De(),S=d.useCallback(T=>{const P=T.target.value;b(String(P)),C(!0),g.start(x.filterDebounceMs,()=>{o(m({},r,{value:P})),C(!1)})},[o,r,x.filterDebounceMs,g]);return d.useEffect(()=>{var T;const P=(T=r.value)!=null?T:"";b(String(P))},[r.value]),v.jsx(x.slots.baseTextField,m({fullWidth:!0,id:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:S,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:m({},w||c?{endAdornment:w?v.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},a,{inputProps:m({max:l==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},a==null?void 0:a.inputProps)})},f,(n=x.slotProps)==null?void 0:n.baseTextField))}const m3=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],h3=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:l,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const c=o(a),u=r(a);return d.createElement(n,m({},s,{native:l,key:c,value:c}),u)}),g3=X("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function sC(e){var t,n,r,o,l,s,i,a;const{item:c,applyValue:u,type:p,apiRef:f,focusElementRef:g,getOptionLabel:h,getOptionValue:b,placeholder:w,tabIndex:C,label:y,variant:x="standard",clearButton:S}=e,T=K(e,m3),[P,k]=d.useState((t=c.value)!=null?t:""),E=bt(),_=bt(),R=De(),F=(n=(r=R.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(c.field){const M=f.current.getColumn(c.field);Fl(M)&&(L=M)}const O=b||((o=L)==null?void 0:o.getOptionValue),I=h||((l=L)==null?void 0:l.getOptionLabel),$=d.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),j=d.useCallback(M=>{let D=M.target.value;D=Ym(D,$,O),k(String(D)),u(m({},c,{value:D}))},[$,O,u,c]);if(d.useEffect(()=>{var M;let D;if($!==void 0){if(D=Ym(c.value,$,O),D!==c.value){u(m({},c,{value:D}));return}}else D=c.value;D=(M=D)!=null?M:"",k(String(D))},[c,$,u,O]),!Fl(L)||!Fl(L))return null;const N=y??f.current.getLocaleText("filterPanelInputLabel");return v.jsxs(g3,{children:[v.jsxs(R.slots.baseFormControl,{children:[v.jsx(R.slots.baseInputLabel,m({},(s=R.slotProps)==null?void 0:s.baseInputLabel,{id:_,htmlFor:E,shrink:!0,variant:x,children:N})),v.jsx(R.slots.baseSelect,m({id:E,label:N,labelId:_,value:P,onChange:j,variant:x,type:p||"text",inputProps:{tabIndex:C,ref:g,placeholder:w??f.current.getLocaleText("filterPanelInputPlaceholder")},native:F,notched:x==="outlined"?!0:void 0},T,(i=R.slotProps)==null?void 0:i.baseSelect,{children:h3({column:L,OptionComponent:R.slots.baseSelectOption,getOptionLabel:I,getOptionValue:O,isSelectNative:F,baseSelectOptionProps:(a=R.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const v3=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],y3=X("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function b3(e){var t,n,r,o;const{item:l,applyValue:s,apiRef:i,focusElementRef:a,clearButton:c,tabIndex:u,label:p,variant:f="standard"}=e,g=K(e,v3),[h,b]=d.useState(l.value||""),w=De(),C=bt(),y=bt(),x=((t=w.slotProps)==null?void 0:t.baseSelect)||{},S=(n=x.native)!=null?n:!0,T=((r=w.slotProps)==null?void 0:r.baseSelectOption)||{},P=d.useCallback(E=>{const _=E.target.value;b(_),s(m({},l,{value:_}))},[s,l]);d.useEffect(()=>{b(l.value||"")},[l.value]);const k=p??i.current.getLocaleText("filterPanelInputLabel");return v.jsxs(y3,{children:[v.jsxs(w.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(w.slots.baseInputLabel,m({},(o=w.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:f,children:k})),v.jsxs(w.slots.baseSelect,m({labelId:C,id:y,label:k,value:h,onChange:P,variant:f,notched:f==="outlined"?!0:void 0,native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:u}},g,x,{children:[v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"",children:i.current.getLocaleText("filterValueAny")})),v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"true",children:i.current.getLocaleText("filterValueTrue")})),v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const C3=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],iC=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),x3=d.forwardRef(function(t,n){var r,o;const l=at(),s=De(),i=Re(l,Jt),a=Re(l,XS),c=d.useRef(null),u=d.useRef(null),{logicOperators:p=[On.And,On.Or],columnsSort:f,filterFormProps:g,getColumnForNewFilter:h,disableAddFilterButton:b=!1,disableRemoveAllButton:w=!1}=t,C=K(t,C3),y=l.current.upsertFilterItem,x=d.useCallback(F=>{l.current.setFilterLogicOperator(F)},[l]),S=d.useCallback(()=>{let F;if(h&&typeof h=="function"){const L=h({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;F=a.find(({field:O})=>O===L)}else F=a.find(L=>{var O;return(O=L.filterOperators)==null?void 0:O.length});return F?iC(F):null},[i==null?void 0:i.items,a,h]),T=d.useCallback(()=>{if(h===void 0||typeof h!="function")return S();const F=i.items.length?i.items:[S()].filter(Boolean),L=h({currentFilters:F,columns:a});if(L===null)return null;const O=a.find(({field:I})=>I===L);return O?iC(O):null},[i.items,a,h,S]),P=d.useMemo(()=>i.items.length?i.items:(u.current||(u.current=S()),u.current?[u.current]:[]),[i.items,S]),k=P.length>1,E=()=>{const F=T();F&&l.current.upsertFilterItems([...P,F])},_=d.useCallback(F=>{const L=P.length===1;l.current.deleteFilterItem(F),L&&l.current.hideFilterPanel()},[l,P.length]),R=()=>{P.length===1&&P[0].value===void 0&&(l.current.deleteFilterItem(P[0]),l.current.hideFilterPanel()),l.current.setFilterModel(m({},i,{items:[]}))};return d.useEffect(()=>{p.length>0&&i.logicOperator&&!p.includes(i.logicOperator)&&x(p[0])},[p,x,i.logicOperator]),d.useEffect(()=>{P.length>0&&c.current.focus()},[P.length]),v.jsxs(DP,m({ref:n},C,{children:[v.jsx(OP,{children:P.map((F,L)=>v.jsx(d3,m({item:F,applyFilterChanges:y,deleteFilter:_,hasMultipleFilters:k,showMultiFilterOperators:L>0,multiFilterOperator:i.logicOperator,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:x,focusElementRef:L===P.length-1?c:null,logicOperators:p,columnsSort:f},g),F.id==null?L:F.id))}),!s.disableMultipleColumnsFiltering&&!(b&&w)?v.jsxs(FP,{children:[b?v.jsx("span",{}):v.jsx(s.slots.baseButton,m({onClick:E,startIcon:v.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("filterPanelAddFilter")})),w?null:v.jsx(s.slots.baseButton,m({onClick:R,startIcon:v.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),w3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function jP(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:l,color:s,error:i,helperText:a,size:c,variant:u}=e,p=K(e,w3),f={color:s,error:i,helperText:a,size:c,variant:u},[g,h]=d.useState(t.value||[]),b=bt(),w=De();d.useEffect(()=>{var y;const x=(y=t.value)!=null?y:[];h(x.map(String))},[t.value]);const C=d.useCallback((y,x)=>{h(x.map(String)),n(m({},t,{value:[...x]}))},[n,t]);return v.jsx(SS,m({multiple:!0,freeSolo:!0,options:[],filterOptions:(y,x)=>{const{inputValue:S}=x;return S==null||S===""?[]:[S]},id:b,value:g,onChange:C,renderTags:(y,x)=>y.map((S,T)=>v.jsx(w.slots.baseChip,m({variant:"outlined",size:"small",label:S},x({index:T})))),renderInput:y=>{var x;return v.jsx(w.slots.baseTextField,m({},y,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:m({},y.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},f,(x=w.slotProps)==null?void 0:x.baseTextField))}},p))}const S3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],P3=iS();function k3(e){var t,n;const{item:r,applyValue:o,apiRef:l,focusElementRef:s,color:i,error:a,helperText:c,size:u,variant:p="standard",getOptionLabel:f,getOptionValue:g}=e,h=K(e,S3),b={color:i,error:a,helperText:c,size:u,variant:p},w=bt(),C=De();let y=null;if(r.field){const R=l.current.getColumn(r.field);Fl(R)&&(y=R)}const x=g||((t=y)==null?void 0:t.getOptionValue),S=f||((n=y)==null?void 0:n.getOptionLabel),T=d.useCallback((R,F)=>x(R)===x(F),[x]),P=d.useMemo(()=>{var R;return(R=y)!=null&&R.valueOptions?typeof y.valueOptions=="function"?y.valueOptions({field:y.field}):y.valueOptions:[]},[y]),k=d.useMemo(()=>P==null?void 0:P.map(x),[P,x]),E=d.useMemo(()=>Array.isArray(r.value)?P!==void 0?r.value.map(F=>k==null?void 0:k.findIndex(L=>L===F)).filter(F=>F>=0).map(F=>P[F]):r.value:[],[r.value,P,k]);d.useEffect(()=>{(!Array.isArray(r.value)||E.length!==r.value.length)&&o(m({},r,{value:E.map(x)}))},[r,E,o,x]);const _=d.useCallback((R,F)=>{o(m({},r,{value:F.map(x)}))},[o,r,x]);return v.jsx(SS,m({multiple:!0,options:P,isOptionEqualToValue:T,filterOptions:P3,id:w,value:E,onChange:_,getOptionLabel:S,renderTags:(R,F)=>R.map((L,O)=>v.jsx(C.slots.baseChip,m({variant:"outlined",size:"small",label:S(L)},F({index:O})))),renderInput:R=>{var F;return v.jsx(C.slots.baseTextField,m({},R,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:m({},R.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},b,(F=C.slotProps)==null?void 0:F.baseTextField))}},h))}const E3=["hideMenu","options"],I3=["hideMenu","options"];function M3(e){const t=at(),{hideMenu:n,options:r}=e,o=K(e,E3);return v.jsx(no,m({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function $3(e){const t=at(),{hideMenu:n,options:r}=e,o=K(e,I3);return v.jsx(no,m({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const R3=["className","selectedRowCount"],T3=e=>{const{classes:t}=e;return we({root:["selectedRowCount"]},ct,t)},O3=Zt("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"}})),F3=d.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,l=K(t,R3),s=at(),i=De(),a=T3(i),c=s.current.getLocaleText("footerRowSelected")(o);return v.jsx(O3,m({ref:n,className:ne(a.root,r),ownerState:i},l,{children:c}))}),D3=d.forwardRef(function(t,n){var r,o;const l=at(),s=De(),i=Re(l,lz),a=Re(l,MH),c=Re(l,oP),u=!s.hideFooterSelectedRowCount&&a>0?v.jsx(F3,{selectedRowCount:a}):v.jsx("div",{}),p=!s.hideFooterRowCount&&!s.pagination?v.jsx(s.slots.footerRowCount,m({},(r=s.slotProps)==null?void 0:r.footerRowCount,{rowCount:i,visibleRowCount:c})):null,f=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&v.jsx(s.slots.pagination,m({},(o=s.slotProps)==null?void 0:o.pagination));return v.jsxs(A4,m({ref:n},t,{children:[u,p,f]}))});function j3(){var e,t;const n=De();return v.jsxs(d.Fragment,{children:[v.jsx(n.slots.preferencesPanel,m({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&v.jsx(n.slots.toolbar,m({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const _3=d.forwardRef(function(t,n){return v.jsx(pv,m({ref:n},t,{children:v.jsx($S,{})}))}),L3=d.forwardRef(function(t,n){const o=at().current.getLocaleText("noRowsLabel");return v.jsx(pv,m({ref:n},t,{children:o}))}),N3=X(p5)(({theme:e})=>({[`& .${Tl.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Tl.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),A3=d.forwardRef(function(t,n){const r=at(),o=De(),l=Re(r,sr),s=Re(r,Rs),i=d.useMemo(()=>Math.floor(s/(l.pageSize||1)),[s,l.pageSize]),a=d.useCallback(f=>{const g=Number(f.target.value);r.current.setPageSize(g)},[r]),c=d.useCallback((f,g)=>{r.current.setPage(g)},[r]),p=(f=>{for(let g=0;g<o.pageSizeOptions.length;g+=1){const h=o.pageSizeOptions[g];if(typeof h=="number"){if(h===f)return!0}else if(h.value===f)return!0}return!1})(l.pageSize)?o.pageSizeOptions:[];return v.jsx(N3,m({ref:n,component:"div",count:s,page:l.page<=i?l.page:i,rowsPerPageOptions:p,rowsPerPage:l.pageSize,onPageChange:c,onRowsPerPageChange:a},r.current.getLocaleText("MuiTablePagination"),t))}),z3=["className","rowCount","visibleRowCount"],H3=e=>{const{classes:t}=e;return we({root:["rowCount"]},ct,t)},B3=Zt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),V3=d.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:l}=t,s=K(t,z3),i=at(),a=De(),c=H3(a);if(o===0)return null;const u=l<o?i.current.getLocaleText("footerTotalVisibleRows")(l,o):o.toLocaleString();return v.jsxs(B3,m({ref:n,className:ne(c.root,r),ownerState:a},s,{children:[i.current.getLocaleText("footerTotalRows")," ",u]}))}),cd=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=hv(e),n=IH(e)):(n=fl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Zl=(e,t)=>{const n=cd(e,t);return d.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Qm={current:null};function mc(e){return e.isInternal=!0,e}function ud(e){return e!==void 0&&e.isInternal===!0}function G3(e){return mc((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Qm.current))})}function hc(e){return e.map(t=>m({},t,{getApplyFilterFn:G3(t.getApplyFilterFnV7),getApplyFilterFnV7:mc(t.getApplyFilterFnV7)}))}function _P(e){return mc((t,n,r)=>{const o=e(t,n,r);return o&&(l=>o(l.value,l.row,n,r))})}function LP(e){return{current:e.current.getPublicApi()}}let zi;function W3(){if(zi!==void 0)return zi;try{zi=new Function("return true")()}catch{zi=!1}return zi}const Xm=(e,t)=>{const n=m({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=bi(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},U3=ao(["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"),K3=ao("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),q3=ao("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),NP=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(U3(),o=[e.items[0]]):o=e.items;const l=r&&o.some(i=>i.id==null),s=o.some(i=>i.operator==null);return l&&K3(),s&&q3(),s||l?m({},e,{items:o.map(i=>Xm(i,n))}):e.items!==o?m({},e,{items:o}):e},aC=(e,t,n)=>r=>m({},r,{filterModel:NP(e,t,n)}),qo=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,AP=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const g=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>g(h)):g(e.value)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=qo(r));const s=m({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=i.find(g=>g.value===s.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const c=!ud(a.getApplyFilterFn),u=!ud(a.getApplyFilterFnV7),p=LP(t);if(a.getApplyFilterFnV7&&!(c&&!u)){const g=a.getApplyFilterFnV7(s,n);return typeof g!="function"?null:{v7:!0,item:s,fn:h=>{let b=t.current.getRowValue(h,n);return l&&(b=qo(b)),g(b,h,n,p)}}}const f=a.getApplyFilterFn(s,n);return typeof f!="function"?null:{v7:!1,item:s,fn:g=>{const h=t.current.getCellParams(g,s.field);Qm.current=p,l&&(h.value=qo(h.value));const b=f(h);return Qm.current=null,b}}};let cC=1;const Y3=(e,t,n)=>{const{items:r}=e,o=r.map(i=>AP(i,t)).filter(i=>!!i);if(o.length===0)return null;if(n||!W3())return(i,a)=>{const c={};for(let u=0;u<o.length;u+=1){const p=o[u];(!a||a(p.item.field))&&(c[p.item.id]=p.v7?p.fn(i):p.fn(t.current.getRowId(i)))}return c};const l=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
214
+ ))`:Rr(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})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${B.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Rr(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})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${B["root--disableUserSelection"]} .${B.cell}`]:{userSelect:"none"},[`& .${B.row}:not(.${B["row--dynamicHeight"]}) > .${B.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${B.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:t},[`& .${B["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),F4=["children","className"],D4=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Q(n)}`,"withBorderColor"]};return we(o,ct,r)},j4=d.forwardRef(function(t,n){var r;const o=De(),{children:l,className:s}=t,i=K(t,F4),a=dl(),c=Re(a,Cz),u=d.useRef(null),p=wt(u,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:JS,g=typeof f=="function"?f():null,h=m({},o,{density:c}),b=D4(h);a.current.register("public",{rootElementRef:u});const[w,C]=d.useState(!1);return vt(()=>{C(!0)},[]),w?v.jsx(O4,m({ref:p,className:ne(s,b.root),ownerState:h},g,i,{children:l})):null}),_4=["className"],L4=e=>{const{classes:t}=e;return we({root:["footerContainer","withBorderColor"]},ct,t)},N4=Jt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),A4=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,_4),l=De(),s=L4(l);return v.jsx(N4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),z4=["className"],H4=e=>{const{classes:t}=e;return we({root:["overlay"]},ct,t)},B4=Jt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),pv=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,z4),l=De(),s=H4(l);return v.jsx(B4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),V4=["className"],G4=e=>{const{classes:t}=e;return we({root:["iconButtonContainer"]},ct,t)},W4=Jt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),vP=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,V4),l=De(),s=G4(l);return v.jsx(W4,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),U4=e=>{const{classes:t}=e;return we({icon:["sortIcon"]},ct,t)};function K4(e,t,n,r){let o;const l={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,l.sortingOrder=r),o?v.jsx(o,m({fontSize:"small",className:n},l)):null}function q4(e){var t;const{direction:n,index:r,sortingOrder:o}=e,l=at(),s=De(),i=m({},e,{classes:s.classes}),a=U4(i),c=K4(s.slots,n,a.icon,o);if(!c)return null;const u=v.jsx(s.slots.baseIconButton,m({tabIndex:-1,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:c}));return v.jsxs(vP,{children:[r!=null&&v.jsx(ES,{badgeContent:r,color:"default",children:u}),r==null&&u]})}const Y4=d.memo(q4),Q4=e=>{const{classes:t,open:n}=e;return we({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ct,t)},X4=d.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:l,columnMenuButtonId:s,iconButtonRef:i}=e,a=at(),c=De(),u=m({},e,{classes:c.classes}),p=Q4(u),f=d.useCallback(g=>{g.preventDefault(),g.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return v.jsx("div",{className:p.root,children:v.jsx(c.slots.baseTooltip,m({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=c.slotProps)==null?void 0:t.baseTooltip,{children:v.jsx(c.slots.baseIconButton,m({ref:i,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?l:void 0,id:s},(n=c.slotProps)==null?void 0:n.baseIconButton,{children:v.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function Z4({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:l,target:s,onExited:i}){const a=at(),c=a.current.getColumn(o),u=Ct(p=>{p&&(p.stopPropagation(),s!=null&&s.contains(p.target))||a.current.hideColumnMenu()});return!s||!c?null:v.jsx(gP,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:l,target:s,onClose:u,onExited:i,children:v.jsx(n,m({colDef:c,hideMenu:u,open:l,id:e,labelledby:t},r))})}const J4=["className"],eH=e=>{const{classes:t}=e;return we({root:["columnHeaderTitle"]},ct,t)},tH=Jt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),nH=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,J4),l=De(),s=eH(l);return v.jsx(tH,m({ref:n,className:ne(s.root,r),ownerState:l},o))});function rH(e){var t;const{label:n,description:r}=e,o=De(),l=d.useRef(null),[s,i]=d.useState(""),a=d.useCallback(()=>{if(!r&&l!=null&&l.current){const c=Oz(l.current);i(c?n:"")}},[r,n]);return v.jsx(o.slots.baseTooltip,m({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:v.jsx(nH,{onMouseOver:a,ref:l,children:n})}))}const oH=["resizable","resizing","height","side"];var yP=function(e){return e.Left="left",e.Right="right",e}(yP||{});const lH=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Q(o)}`],icon:["iconSeparator"]};return we(l,ct,r)};function sH(e){const{height:t,side:n=yP.Right}=e,r=K(e,oH),o=De(),l=m({},e,{side:n,classes:o.classes}),s=lH(l),i=d.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return v.jsx("div",m({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:i,children:v.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const iH=d.memo(sH),aH=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],bP=d.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:l,height:s,isResizing:i,sortDirection:a,hasFocus:c,tabIndex:u,separatorSide:p,isDraggable:f,headerComponent:g,description:h,width:b,columnMenuIconButton:w=null,columnMenu:C=null,columnTitleIconButtons:y=null,headerClassName:x,label:S,resizable:T,draggableContainerProps:P,columnHeaderSeparatorProps:k}=t,E=K(t,aH),_=dl(),R=De(),F=d.useRef(null),[L,O]=d.useState(o),I=wt(F,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),d.useEffect(()=>{L||O(o)},[L,o]),d.useLayoutEffect(()=>{const j=_.current.state.columnMenu;if(c&&!j.open){const M=F.current.querySelector('[tabindex="0"]')||F.current;M==null||M.focus(),_.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[_,c]),v.jsxs("div",m({ref:I,className:ne(r.root,x),style:{height:s,width:b,minWidth:b,maxWidth:b},role:"columnheader",tabIndex:u,"aria-colindex":l+1,"aria-sort":$,"aria-label":g==null?S:void 0},E,{children:[v.jsxs("div",m({className:r.draggableContainer,draggable:f,role:"presentation"},P,{children:[v.jsxs("div",{className:r.titleContainer,role:"presentation",children:[v.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:v.jsx(rH,{label:S,description:h,columnWidth:b})}),y]}),w]})),v.jsx(iH,m({resizable:!R.disableColumnResize&&!!T,resizing:i,height:s,side:p},k)),C]}))}),cH=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:s}=e,i=o!=null,a=s!=null&&s>0,c=t.type==="number",u={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",i&&"columnHeader--sorted",a&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return we(u,ct,n)};function uH(e){var t,n,r,o;const{colDef:l,columnMenuOpen:s,colIndex:i,headerHeight:a,isResizing:c,sortDirection:u,sortIndex:p,filterItemsCounter:f,hasFocus:g,tabIndex:h,disableReorder:b,separatorSide:w}=e,C=dl(),y=De(),x=d.useRef(null),S=bt(),T=bt(),P=d.useRef(null),[k,E]=d.useState(s),_=d.useMemo(()=>!y.disableColumnReorder&&!b&&!l.disableReorder,[y.disableColumnReorder,b,l.disableReorder]);let R;l.renderHeader&&(R=l.renderHeader(C.current.getColumnHeaderParams(l.field)));const F=m({},e,{classes:y.classes,showRightBorder:y.showColumnVerticalBorder}),L=cH(F),O=d.useCallback(G=>q=>{pc(q)||C.current.publishEvent(G,C.current.getColumnHeaderParams(l.field),q)},[C,l.field]),I=d.useMemo(()=>({onClick:O("columnHeaderClick"),onDoubleClick:O("columnHeaderDoubleClick"),onMouseOver:O("columnHeaderOver"),onMouseOut:O("columnHeaderOut"),onMouseEnter:O("columnHeaderEnter"),onMouseLeave:O("columnHeaderLeave"),onKeyDown:O("columnHeaderKeyDown"),onFocus:O("columnHeaderFocus"),onBlur:O("columnHeaderBlur")}),[O]),$=d.useMemo(()=>_?{onDragStart:O("columnHeaderDragStart"),onDragEnter:O("columnHeaderDragEnter"),onDragOver:O("columnHeaderDragOver"),onDragEnd:O("columnHeaderDragEnd")}:{},[_,O]),j=d.useMemo(()=>({onMouseDown:O("columnSeparatorMouseDown"),onDoubleClick:O("columnSeparatorDoubleClick")}),[O]);d.useEffect(()=>{k||E(s)},[k,s]);const N=d.useCallback(()=>{E(!1)},[]),M=!y.disableColumnMenu&&!l.disableColumnMenu&&v.jsx(X4,{colDef:l,columnMenuId:S,columnMenuButtonId:T,open:k,iconButtonRef:P}),D=v.jsx(Z4,{columnMenuId:S,columnMenuButtonId:T,field:l.field,open:s,target:P.current,ContentComponent:y.slots.columnMenu,contentComponentProps:(t=y.slotProps)==null?void 0:t.columnMenu,onExited:N}),A=(n=l.sortingOrder)!=null?n:y.sortingOrder,H=v.jsxs(d.Fragment,{children:[!y.disableColumnFilter&&v.jsx(y.slots.columnHeaderFilterIconButton,m({field:l.field,counter:f},(r=y.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&v.jsx(Y4,{direction:u,index:p,sortingOrder:A})]});d.useLayoutEffect(()=>{const G=C.current.state.columnMenu;if(g&&!G.open){var q;const ae=x.current.querySelector('[tabindex="0"]')||x.current;ae==null||ae.focus(),(q=C.current.columnHeadersContainerElementRef)!=null&&q.current&&(C.current.columnHeadersContainerElementRef.current.scrollLeft=0)}},[C,g]);const z=typeof l.headerClassName=="function"?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,W=(o=l.headerName)!=null?o:l.field;return v.jsx(bP,m({ref:x,classes:L,columnMenuOpen:s,colIndex:i,height:a,isResizing:c,sortDirection:u,hasFocus:g,tabIndex:h,separatorSide:w,isDraggable:_,headerComponent:R,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:M,columnTitleIconButtons:H,headerClassName:z,label:W,resizable:!y.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:D,draggableContainerProps:$,columnHeaderSeparatorProps:j},I))}const Ka=()=>({items:[],logicOperator:On.And,quickFilterValues:[],quickFilterLogicOperator:On.And}),q0=1e3;class dH{constructor(t=q0){this.timeouts=new Map,this.cleanupTimeout=q0,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 pH{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 lo=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(lo||{});class fH{}function mH(e){let t=0;return function(r,o,l,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new pH:new dH);const[i]=d.useState(new fH),a=d.useRef(null),c=d.useRef();c.current=l;const u=d.useRef(null);if(!a.current&&c.current){const p=(f,g,h)=>{if(!g.defaultMuiPrevented){var b;(b=c.current)==null||b.call(c,f,g,h)}};a.current=r.current.subscribeEvent(o,p,s),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var f;(f=a.current)==null||f.call(a),a.current=null,u.current=null},u.current)}else!c.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));d.useEffect(()=>{if(!a.current&&c.current){const p=(f,g,h)=>{if(!g.defaultMuiPrevented){var b;(b=c.current)==null||b.call(c,f,g,h)}};a.current=r.current.subscribeEvent(o,p,s)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,s])}}const hH={registry:null},Le=mH(hH),gH={isFirst:!0};function Rt(e,t,n){Le(e,t,n,gH)}function dn(e,t){const n=d.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function vH(e){return typeof e=="number"&&!Number.isNaN(e)}function CP(e){return typeof e=="function"}function fv(e){return typeof e=="object"&&e!==null}function yH(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function hu(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const ni=(e,t,n)=>Math.max(t,Math.min(n,e));function Fl(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 l=0;l<o;l+=1)if(!Fl(e[l],t[l]))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 l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;for(let l=0;l<o.length;l+=1){const s=o[l];if(!Fl(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 l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(e[l]!==t[l])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 l=n[o];if(!Fl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function bH(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function CH(e,t,n){const r=bH(e);return()=>t+(n-t)*r()}function xP(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const xH=(e,t,n,r,o)=>{const l=dn(e,"useNativeEventListener"),[s,i]=d.useState(!1),a=d.useRef(r),c=d.useCallback(u=>a.current&&a.current(u),[]);d.useEffect(()=>{a.current=r},[r]),d.useEffect(()=>{let u;if(CP(t)?u=t():u=t&&t.current?t.current:null,u&&n&&!s){l.debug(`Binding native ${n} event`),u.addEventListener(n,c,o);const p=u;i(!0);const f=()=>{l.debug(`Clearing native ${n} event`),p.removeEventListener(n,c,o)};e.current.subscribeEvent("unmount",f)}},[t,c,n,s,l,o,e])},fc=e=>{const t=d.useRef(!0);t.current&&(t.current=!1,e())},wH=100,SH=e=>e?0:100,wP=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;co(["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 SP=e=>({page:0,pageSize:e?0:100}),PH=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),PP=(e,t)=>{if(t===lo.DataGrid&&e>wH)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
215
+ `))},mv=e=>e.pagination,ir=Ze(mv,e=>e.paginationModel),Rs=Ze(mv,e=>e.rowCount),kH=Ze(ir,e=>e.page),kP=Ze(ir,e=>e.pageSize),EH=Ze(kP,Rs,(e,t)=>wP(t,e)),hv=Ot(ir,Dr,kp,pl,nP,(e,t,n,r,o)=>{const l=o.length,s=Math.min(e.pageSize*e.page,l-1),i=Math.min(s+e.pageSize-1,l-1);if(s===-1||i===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:i};const a=o[s],c=i-s+1,u=r.findIndex(h=>h.id===a.id);let p=u,f=0;for(;p<r.length&&f<=c;){var g;const h=r[p],b=(g=t[h.id])==null?void 0:g.depth;b===void 0?p+=1:((f<c||b>0)&&(p+=1),b===0&&(f+=1))}return{firstRowIndex:u,lastRowIndex:p-1}}),IH=Ot(pl,hv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),EP=Ot(ma,hv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),qa=e=>e.preferencePanel;var Bl=function(e){return e.filters="filters",e.columns="columns",e}(Bl||{});const Ya=e=>e.rowsMeta,ar=e=>e.rowSelection,MH=Ze(ar,e=>e.length),$H=Ot(ar,bo,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ad=Ot(ar,e=>e.reduce((t,n)=>(t[n]=n,t),{})),RH=co(["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"),IP=(e,t)=>t&&e.length>1?(RH(),[e[0]]):e,Y0=(e,t)=>n=>m({},n,{sorting:m({},n.sorting,{sortModel:IP(e,t)})}),TH=e=>e==="desc",OH=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=TH(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator;return{getSortCellParams:l=>({id:l,field:n.field,rowNode:t.current.getRowNode(l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:r}},FH=(e,t,n)=>e.reduce((r,o,l)=>{if(r!==0)return r;const s=t.params[l],i=n.params[l];return r=o.comparator(s.value,i.value,s,i),r},0),DH=(e,t)=>{const n=e.map(r=>OH(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(l=>l.getSortCellParams(o.id))})).sort((o,l)=>FH(n,o,l)).map(o=>o.node.id)},Q0=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},gv=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,jH=new Intl.Collator,MP=(e,t)=>{const n=gv(e,t);return n!==null?n:typeof e=="string"?jH.compare(e.toString(),t.toString()):e-t},Qa=(e,t)=>{const n=gv(e,t);return n!==null?n:Number(e)-Number(t)},vv=(e,t)=>{const n=gv(e,t);return n!==null?n:e>t?1:e<t?-1:0},$P=e=>e.headerFiltering,_H=Ze($P,e=>e.editing),LH=Ze($P,e=>e.menuOpen),NH=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return m({},e,{virtualization:n})};function AH(e,t){const n=l=>{e.current.setState(s=>m({},s,{virtualization:m({},s.virtualization,{enabled:l})}))};et(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(s=>m({},s,{virtualization:m({},s.virtualization,{enabledForColumns:l})}))}},"public"),d.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const RP=e=>e.virtualization,zH=Ze(RP,e=>e.enabled),TP=Ze(RP,e=>e.enabledForColumns),HH=e=>{const{classes:t}=e;return we({icon:["filterIcon"]},ct,t)};function BH(e){var t,n;const{counter:r,field:o,onClick:l}=e,s=at(),i=De(),a=m({},e,{classes:i.classes}),c=HH(a),u=Re(s,qa),p=bt(),f=bt(),g=d.useCallback(w=>{w.preventDefault(),w.stopPropagation();const{open:C,openedPanelValue:y}=qa(s.current.state);C&&y===Bl.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,f,p),l&&l(s.current.getColumnHeaderParams(o),w)},[s,o,l,f,p]);if(!r)return null;const h=u.open&&u.labelId===p,b=v.jsx(i.slots.baseIconButton,m({id:p,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?f:void 0},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:v.jsx(i.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return v.jsx(i.slots.baseTooltip,m({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=i.slotProps)==null?void 0:n.baseTooltip,{children:v.jsxs(vP,{children:[r>1&&v.jsx(ES,{badgeContent:r,color:"default",children:b}),r===1&&b]})}))}const VH=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],GH=e=>{const{classes:t}=e;return we({root:["checkboxInput"]},ct,t)},WH=d.forwardRef(function(t,n){var r;const{field:o,id:l,value:s,rowNode:i,hasFocus:a,tabIndex:c}=t,u=K(t,VH),p=at(),f=De(),g={classes:f.classes},h=GH(g),b=d.useRef(null),w=d.useRef(null),C=wt(b,n),y=p.current.getCellElement(l,o),x=k=>{const E={value:k.target.checked,id:l};p.current.publishEvent("rowSelectionCheckboxChange",E,k)};d.useLayoutEffect(()=>{c===0&&y&&(y.tabIndex=-1)},[y,c]),d.useEffect(()=>{if(a){var k;const E=(k=b.current)==null?void 0:k.querySelector("input");E==null||E.focus({preventScroll:!0})}else w.current&&w.current.stop({})},[a]);const S=d.useCallback(k=>{mP(k.key)&&k.stopPropagation()},[]);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=p.current.isRowSelectable(l),P=p.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return v.jsx(f.slots.baseCheckbox,m({ref:C,tabIndex:c,checked:s,onChange:x,className:h.root,inputProps:{"aria-label":P},onKeyDown:S,disabled:!T,touchRippleRef:w},(r=f.slotProps)==null?void 0:r.baseCheckbox,u))}),UH=WH,KH=["field","colDef"],qH=e=>{const{classes:t}=e;return we({root:["checkboxInput"]},ct,t)},YH=d.forwardRef(function(t,n){var r;const o=K(t,KH),[,l]=d.useState(!1),s=at(),i=De(),a={classes:i.classes},c=qH(a),u=Re(s,lP),p=Re(s,ar),f=Re(s,ma),g=Re(s,EP),h=d.useMemo(()=>typeof i.isRowSelectable!="function"?p:p.filter(E=>s.current.getRow(E)?i.isRowSelectable(s.current.getRowParams(E)):!1),[s,i.isRowSelectable,p]),b=d.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?f:g).reduce((_,R)=>(_[R]=!0,_),{}),[i.pagination,i.checkboxSelectionVisibleOnly,g,f]),w=d.useMemo(()=>h.filter(E=>b[E]).length,[h,b]),C=w>0&&w<Object.keys(b).length,y=w>0,x=E=>{const _={value:E.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",_)},S=u!==null&&u.field===t.field?0:-1;d.useLayoutEffect(()=>{const E=s.current.getColumnHeaderElement(t.field);S===0&&E&&(E.tabIndex=-1)},[S,s,t.field]);const T=d.useCallback(E=>{E.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!y})},[s,y]),P=d.useCallback(()=>{l(E=>!E)},[]);d.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",P),[s,P]);const k=s.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return v.jsx(i.slots.baseCheckbox,m({ref:n,indeterminate:C,checked:y,onChange:x,className:c.root,inputProps:{"aria-label":k},tabIndex:S,onKeyDown:T},(r=i.slotProps)==null?void 0:r.baseCheckbox,o))}),X0=ot(v.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Z0=ot(v.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),J0=ot(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),eC=ot(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),QH=ot(v.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),tC=ot(v.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"),XH=ot(v.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");ot(v.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ot(v.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 ZH=ot(v.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"),JH=ot(v.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),eB=ot(v.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),tB=ot(v.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),nB=ot(v.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),rB=ot(v.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"),Rf=ot(v.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"),nC=ot(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),oB=ot(v.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),lB=ot(v.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"),rC=ot(v.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"),sB=ot(v.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"),iB=ot(v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),aB=ot(v.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"),cB=ot(v.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),uB=ot(v.jsx("g",{children:v.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),dB=ot(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");ot(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const pB=ot(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),fB=["hideMenu","colDef","id","labelledby","className","children","open"],mB=X(Xg)(()=>({minWidth:248})),hB=d.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:l,className:s,children:i,open:a}=t,c=K(t,fB),u=d.useCallback(p=>{fP(p.key)&&p.preventDefault(),m4(p.key)&&r(p)},[r]);return v.jsx(mB,m({id:o,ref:n,className:ne(B.menuList,s),"aria-labelledby":l,onKeyDown:u,autoFocus:a},c,{children:i}))}),gB=["displayOrder"],vB=e=>{const t=dl(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:l={},hideMenu:s,colDef:i,addDividers:a=!0}=e,c=d.useMemo(()=>m({},n,o),[n,o]),u=d.useMemo(()=>{if(!l||Object.keys(l).length===0)return r;const g=m({},l);return Object.entries(r).forEach(([h,b])=>{g[h]=m({},b,l[h]||{})}),g},[r,l]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=d.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(h=>!g.includes(h))},[o,n]);return d.useMemo(()=>{const b=Array.from(new Set([...p,...f])).filter(w=>c[w]!=null).sort((w,C)=>{const y=u[w],x=u[C],S=Number.isFinite(y==null?void 0:y.displayOrder)?y.displayOrder:100,T=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return S-T});return b.reduce((w,C,y)=>{let x={colDef:i,onClick:s};const S=u[C];if(S){const T=K(S,gB);x=m({},x,T)}return a&&y!==b.length-1?[...w,[c[C],x],[jS,{}]]:[...w,[c[C],x]]},[])},[a,i,p,s,c,u,f])};function yB(e){const{colDef:t,onClick:n}=e,r=at(),o=De(),i=an(r).filter(c=>c.disableColumnMenu!==!0).length===1,a=d.useCallback(c=>{i||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,i]);return o.disableColumnSelector||t.hideable===!1?null:v.jsxs(ro,{onClick:a,disabled:i,children:[v.jsx(As,{children:v.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),v.jsx(zs,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function bB(e){const{onClick:t}=e,n=at(),r=De(),o=d.useCallback(l=>{t(l),n.current.showPreferences(Bl.columns)},[n,t]);return r.disableColumnSelector?null:v.jsxs(ro,{onClick:o,children:[v.jsx(As,{children:v.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),v.jsx(zs,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function CB(e){return v.jsxs(d.Fragment,{children:[v.jsx(yB,m({},e)),v.jsx(bB,m({},e))]})}function xB(e){const{colDef:t,onClick:n}=e,r=at(),o=De(),l=d.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:v.jsxs(ro,{onClick:l,children:[v.jsx(As,{children:v.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),v.jsx(zs,{children:r.current.getLocaleText("columnMenuFilter")})]})}function wB(e){var t;const{colDef:n,onClick:r}=e,o=at(),l=Re(o,sr),s=De(),i=d.useMemo(()=>{if(!n)return null;const p=l.find(f=>f.field===n.field);return p==null?void 0:p.sort},[n,l]),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=d.useCallback(p=>{r(p);const f=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,f===i?null:f)},[o,n,r,i]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const u=p=>{const f=o.current.getLocaleText(p);return typeof f=="function"?f(n):f};return v.jsxs(d.Fragment,{children:[a.includes("asc")&&i!=="asc"?v.jsxs(ro,{onClick:c,"data-value":"asc",children:[v.jsx(As,{children:v.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),v.jsx(zs,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?v.jsxs(ro,{onClick:c,"data-value":"desc",children:[v.jsx(As,{children:v.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),v.jsx(zs,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?v.jsxs(ro,{onClick:c,children:[v.jsx(As,{}),v.jsx(zs,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const SB=["defaultSlots","defaultSlotProps","slots","slotProps"],PB={columnMenuSortItem:wB,columnMenuFilterItem:xB,columnMenuColumnsItem:CB},kB={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},EB=d.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}=t,i=K(t,SB),a=vB(m({},i,{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}));return v.jsx(hB,m({ref:n},i,{children:a.map(([c,u],p)=>v.jsx(c,m({},u),p))}))}),IB=d.forwardRef(function(t,n){return v.jsx(EB,m({},t,{ref:n,defaultSlots:PB,defaultSlotProps:kB}))}),MB=["className"],$B=e=>{const{classes:t}=e;return we({root:["panelContent"]},ct,t)},RB=Jt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function OP(e){const{className:t}=e,n=K(e,MB),r=De(),o=$B(r);return v.jsx(RB,m({className:ne(t,o.root),ownerState:r},n))}const TB=["className"],OB=e=>{const{classes:t}=e;return we({root:["panelFooter"]},ct,t)},FB=Jt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function FP(e){const{className:t}=e,n=K(e,TB),r=De(),o=OB(r);return v.jsx(FB,m({className:ne(t,o.root),ownerState:r},n))}const DB=["className"],jB=e=>{const{classes:t}=e;return we({root:["panelHeader"]},ct,t)},_B=Jt("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function LB(e){const{className:t}=e,n=K(e,DB),r=De(),o=jB(r);return v.jsx(_B,m({className:ne(t,o.root),ownerState:r},n))}const NB=["className","slotProps"],AB=e=>{const{classes:t}=e;return we({root:["panelWrapper"]},ct,t)},zB=X("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),HB=()=>!0,DP=d.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,l=K(t,NB),s=De(),i=AB(s);return v.jsx(OS,m({open:!0,disableEnforceFocus:!0,isEnabled:HB},o.TrapFocus,{children:v.jsx(zB,m({ref:n,tabIndex:-1,className:ne(r,i.root),ownerState:s},l))}))}),BB=!1,VB=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],GB=e=>{const{classes:t}=e;return we({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},ct,t)},WB=X("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),UB=X("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${yn.root}`]:{marginRight:e.spacing(.5)}}));X(jr)({justifyContent:"flex-end"});const oC=new Intl.Collator,KB=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function qB(e){var t,n,r;const o=at(),l=d.useRef(null),s=Re(o,oo),i=Re(o,_r),a=De(),[c,u]=d.useState(""),p=GB(a),{sort:f,searchPredicate:g=KB,autoFocusSearchField:h=!0,disableHideAllButton:b=!1,disableShowAllButton:w=!1,getTogglableColumns:C}=e,y=K(e,VB),x=d.useMemo(()=>{switch(f){case"asc":return[...s].sort((F,L)=>oC.compare(F.headerName||F.field,L.headerName||L.field));case"desc":return[...s].sort((F,L)=>-oC.compare(F.headerName||F.field,L.headerName||L.field));default:return s}},[s,f]),S=F=>{const{name:L}=F.target;o.current.setColumnVisibility(L,i[L]===!1)},T=d.useCallback(F=>{const L=_r(o),O=m({},L),I=C?C(s):null;return s.forEach($=>{$.hideable&&(I==null||I.includes($.field))&&(F?delete O[$.field]:O[$.field]=!1)}),o.current.setColumnVisibilityModel(O)},[o,s,C]),P=d.useCallback(F=>{u(F.target.value)},[]),k=d.useMemo(()=>{const F=C?C(x):null,L=F?x.filter(({field:O})=>F.includes(O)):x;return c?L.filter(O=>g(O,c.toLowerCase())):L},[x,c,g,C]),E=d.useRef(null);d.useEffect(()=>{h?l.current.focus():E.current&&typeof E.current.focus=="function"&&E.current.focus()},[h]);let _=!1;const R=F=>_===!1&&F.hideable!==!1?(_=!0,!0):!1;return v.jsxs(DP,m({},y,{children:[v.jsx(LB,{children:v.jsx(a.slots.baseTextField,m({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:c,onChange:P,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),v.jsx(OP,{children:v.jsx(WB,{className:p.root,ownerState:a,children:k.map(F=>{var L;return v.jsxs(UB,{className:p.columnsPanelRow,ownerState:a,children:[v.jsx(ML,{control:v.jsx(a.slots.baseSwitch,m({disabled:F.hideable===!1,checked:i[F.field]!==!1,onClick:S,name:F.field,size:"small",inputRef:R(F)?E:void 0},(L=a.slotProps)==null?void 0:L.baseSwitch)),label:F.headerName||F.field}),!a.disableColumnReorder&&BB]},F.field)})})}),w&&b?null:v.jsxs(FP,{children:[b?v.jsx("span",{}):v.jsx(a.slots.baseButton,m({onClick:()=>T(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:b,children:o.current.getLocaleText("columnsPanelHideAllButton")})),w?null:v.jsx(a.slots.baseButton,m({onClick:()=>T(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:w,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const YB=["children","className","classes"],QB=Be("MuiDataGrid",["panel","paper"]),XB=X(Yl,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),ZB=X(Sr,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),JB=d.forwardRef((e,t)=>{const{children:n,className:r}=e,o=K(e,YB),l=at(),s=De(),i=QB,[a,c]=d.useState(!1),u=d.useCallback(()=>{l.current.hidePreferences()},[l]),p=d.useCallback(b=>{sd(b.key)&&l.current.hidePreferences()},[l]),f=d.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[g,h]=d.useState(null);return d.useEffect(()=>{var b;const w=(b=l.current.rootElementRef)==null||(b=b.current)==null?void 0:b.querySelector(`.${B.columnHeaders}`);w&&h(w)},[l]),g?v.jsx(XB,m({ref:t,placement:"bottom-start",className:ne(r,i.panel),ownerState:s,anchorEl:g,modifiers:f},o,{children:v.jsx(RS,{mouseEvent:"onMouseUp",onClickAway:u,children:v.jsx(ZB,{className:i.paper,ownerState:s,elevation:8,onKeyDown:p,children:a&&n})})})):null}),e3=d.forwardRef(function(t,n){var r,o,l;const s=at(),i=Re(s,oo),a=De(),c=Re(s,qa),u=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=c.openedPanelValue)!=null?r:Bl.filters);return v.jsx(a.slots.panel,m({ref:n,as:a.slots.basePopper,open:i.length>0&&c.open,id:c.panelId,"aria-labelledby":c.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(l=a.slotProps)==null?void 0:l.basePopper,{children:u}))}),t3=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],n3=["InputComponentProps"],r3=e=>{const{classes:t}=e;return we({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ct,t)},o3=X("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),l3=X("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),s3=X("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),i3=X("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),a3=X("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),c3=X("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),u3=e=>{switch(e){case On.And:return"filterPanelOperatorAnd";case On.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Ai=e=>e.headerName||e.field,lC=new Intl.Collator,d3=d.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,p,f;const{item:g,hasMultipleFilters:h,deleteFilter:b,applyFilterChanges:w,multiFilterOperator:C,showMultiFilterOperators:y,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:S,focusElementRef:T,logicOperators:P=[On.And,On.Or],columnsSort:k,filterColumns:E,deleteIconProps:_={},logicOperatorInputProps:R={},operatorInputProps:F={},columnInputProps:L={},valueInputProps:O={}}=t,I=K(t,t3),$=at(),j=Re($,XS),N=Re($,en),M=bt(),D=bt(),A=bt(),H=bt(),z=De(),W=r3(z),G=d.useRef(null),q=d.useRef(null),re=h&&P.length>0,ae=((r=z.slotProps)==null?void 0:r.baseFormControl)||{},ue=(l=(((o=z.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?l:!0,ye=((s=z.slotProps)==null?void 0:s.baseInputLabel)||{},de=((i=z.slotProps)==null?void 0:i.baseSelectOption)||{},{InputComponentProps:he}=O,Y=K(O,n3),pe=d.useMemo(()=>{if(E===void 0||typeof E!="function")return j;const Se=E({field:g.field,columns:j,currentFilters:(N==null?void 0:N.items)||[]});return j.filter(te=>Se.includes(te.field))},[E,N==null?void 0:N.items,j,g.field]),ee=d.useMemo(()=>{switch(k){case"asc":return pe.sort((Se,te)=>lC.compare(Ai(Se),Ai(te)));case"desc":return pe.sort((Se,te)=>-lC.compare(Ai(Se),Ai(te)));default:return pe}},[pe,k]),Z=g.field?$.current.getColumn(g.field):null,fe=d.useMemo(()=>{var Se;return!g.operator||!Z?null:(Se=Z.filterOperators)==null?void 0:Se.find(te=>te.value===g.operator)},[g,Z]),le=d.useCallback(Se=>{const te=Se.target.value,oe=$.current.getColumn(te);if(oe.field===Z.field)return;const xe=oe.filterOperators.find(Ve=>Ve.value===g.operator)||oe.filterOperators[0],Oe=!xe.InputComponent||xe.InputComponent!==(fe==null?void 0:fe.InputComponent)||oe.type!==Z.type;w(m({},g,{field:te,operator:xe.value,value:Oe?void 0:g.value}))},[$,w,g,Z,fe]),ge=d.useCallback(Se=>{const te=Se.target.value,oe=Z==null?void 0:Z.filterOperators.find(Oe=>Oe.value===te),xe=!(oe!=null&&oe.InputComponent)||(oe==null?void 0:oe.InputComponent)!==(fe==null?void 0:fe.InputComponent);w(m({},g,{operator:te,value:xe?void 0:g.value}))},[w,g,Z,fe]),me=d.useCallback(Se=>{const te=Se.target.value===On.And.toString()?On.And:On.Or;S(te)},[S]),Ie=()=>{z.disableMultipleColumnsFiltering?g.value===void 0?b(g):w(m({},g,{value:void 0})):b(g)};return d.useImperativeHandle(T,()=>({focus:()=>{if(fe!=null&&fe.InputComponent){var Se;G==null||(Se=G.current)==null||Se.focus()}else q.current.focus()}}),[fe]),v.jsxs(o3,m({ref:n,className:W.root,"data-id":g.id,ownerState:z},I,{children:[v.jsx(l3,m({variant:"standard",as:z.slots.baseFormControl},ae,_,{className:ne(W.deleteIcon,ae.className,_.className),ownerState:z,children:v.jsx(z.slots.baseIconButton,m({"aria-label":$.current.getLocaleText("filterPanelDeleteIconLabel"),title:$.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ie,size:"small"},(a=z.slotProps)==null?void 0:a.baseIconButton,{children:v.jsx(z.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),v.jsx(s3,m({variant:"standard",as:z.slots.baseFormControl},ae,R,{sx:m({display:re?"flex":"none",visibility:y?"visible":"hidden"},ae.sx||{},R.sx||{}),className:ne(W.logicOperatorInput,ae.className,R.className),ownerState:z,children:v.jsx(z.slots.baseSelect,m({inputProps:{"aria-label":$.current.getLocaleText("filterPanelLogicOperator")},value:C,onChange:me,disabled:!!x||P.length===1,native:ue},(c=z.slotProps)==null?void 0:c.baseSelect,{children:P.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.toString(),value:Se.toString()}),$.current.getLocaleText(u3(Se))))}))})),v.jsxs(i3,m({variant:"standard",as:z.slots.baseFormControl},ae,L,{className:ne(W.columnInput,ae.className,L.className),ownerState:z,children:[v.jsx(z.slots.baseInputLabel,m({},ye,{htmlFor:M,id:D,children:$.current.getLocaleText("filterPanelColumns")})),v.jsx(z.slots.baseSelect,m({labelId:D,id:M,label:$.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:le,native:ue},(u=z.slotProps)==null?void 0:u.baseSelect,{children:ee.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.field,value:Se.field}),Ai(Se)))}))]})),v.jsxs(a3,m({variant:"standard",as:z.slots.baseFormControl},ae,F,{className:ne(W.operatorInput,ae.className,F.className),ownerState:z,children:[v.jsx(z.slots.baseInputLabel,m({},ye,{htmlFor:A,id:H,children:$.current.getLocaleText("filterPanelOperator")})),v.jsx(z.slots.baseSelect,m({labelId:H,label:$.current.getLocaleText("filterPanelOperator"),id:A,value:g.operator,onChange:ge,native:ue,inputRef:q},(p=z.slotProps)==null?void 0:p.baseSelect,{children:Z==null||(f=Z.filterOperators)==null?void 0:f.map(Se=>d.createElement(z.slots.baseSelectOption,m({},de,{native:ue,key:Se.value,value:Se.value}),Se.label||$.current.getLocaleText(`filterOperator${Q(Se.value)}`)))}))]})),v.jsx(c3,m({variant:"standard",as:z.slots.baseFormControl},ae,Y,{className:ne(W.valueInput,ae.className,Y.className),ownerState:z,children:fe!=null&&fe.InputComponent?v.jsx(fe.InputComponent,m({apiRef:$,item:g,applyValue:w,focusElementRef:G},fe.InputComponentProps,he)):null}))]}))});class yv{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new yv}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function bv(){const e=rv(yv.create).current;return YS(e.disposeEffect),e}const p3=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Xr(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,tabIndex:a,disabled:c,clearButton:u,InputProps:p,variant:f="standard"}=e,g=K(e,p3),h=bv(),[b,w]=d.useState((t=r.value)!=null?t:""),[C,y]=d.useState(!1),x=bt(),S=De(),T=d.useCallback(P=>{const{value:k}=P.target;w(String(k)),y(!0),h.start(S.filterDebounceMs,()=>{const E=m({},r,{value:k,fromInput:x});o(E),y(!1)})},[x,o,r,S.filterDebounceMs,h]);return d.useEffect(()=>{if(r.fromInput!==x||r.value===void 0){var k;w(String((k=r.value)!=null?k:""))}},[x,r]),v.jsx(S.slots.baseTextField,m({id:x,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:T,variant:f,type:l||"text",InputProps:m({},C||u?{endAdornment:C?v.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:c},p,{inputProps:m({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},g,(n=S.slotProps)==null?void 0:n.baseTextField))}const f3=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function is(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,InputProps:a,clearButton:c,tabIndex:u,disabled:p}=e,f=K(e,f3),g=bv(),[h,b]=d.useState((t=r.value)!=null?t:""),[w,C]=d.useState(!1),y=bt(),x=De(),S=d.useCallback(T=>{const P=T.target.value;b(String(P)),C(!0),g.start(x.filterDebounceMs,()=>{o(m({},r,{value:P})),C(!1)})},[o,r,x.filterDebounceMs,g]);return d.useEffect(()=>{var T;const P=(T=r.value)!=null?T:"";b(String(P))},[r.value]),v.jsx(x.slots.baseTextField,m({fullWidth:!0,id:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:S,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:m({},w||c?{endAdornment:w?v.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},a,{inputProps:m({max:l==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},a==null?void 0:a.inputProps)})},f,(n=x.slotProps)==null?void 0:n.baseTextField))}const m3=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],h3=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:l,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const c=o(a),u=r(a);return d.createElement(n,m({},s,{native:l,key:c,value:c}),u)}),g3=X("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function sC(e){var t,n,r,o,l,s,i,a;const{item:c,applyValue:u,type:p,apiRef:f,focusElementRef:g,getOptionLabel:h,getOptionValue:b,placeholder:w,tabIndex:C,label:y,variant:x="standard",clearButton:S}=e,T=K(e,m3),[P,k]=d.useState((t=c.value)!=null?t:""),E=bt(),_=bt(),R=De(),F=(n=(r=R.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(c.field){const M=f.current.getColumn(c.field);Ol(M)&&(L=M)}const O=b||((o=L)==null?void 0:o.getOptionValue),I=h||((l=L)==null?void 0:l.getOptionLabel),$=d.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),j=d.useCallback(M=>{let D=M.target.value;D=Qm(D,$,O),k(String(D)),u(m({},c,{value:D}))},[$,O,u,c]);if(d.useEffect(()=>{var M;let D;if($!==void 0){if(D=Qm(c.value,$,O),D!==c.value){u(m({},c,{value:D}));return}}else D=c.value;D=(M=D)!=null?M:"",k(String(D))},[c,$,u,O]),!Ol(L)||!Ol(L))return null;const N=y??f.current.getLocaleText("filterPanelInputLabel");return v.jsxs(g3,{children:[v.jsxs(R.slots.baseFormControl,{children:[v.jsx(R.slots.baseInputLabel,m({},(s=R.slotProps)==null?void 0:s.baseInputLabel,{id:_,htmlFor:E,shrink:!0,variant:x,children:N})),v.jsx(R.slots.baseSelect,m({id:E,label:N,labelId:_,value:P,onChange:j,variant:x,type:p||"text",inputProps:{tabIndex:C,ref:g,placeholder:w??f.current.getLocaleText("filterPanelInputPlaceholder")},native:F,notched:x==="outlined"?!0:void 0},T,(i=R.slotProps)==null?void 0:i.baseSelect,{children:h3({column:L,OptionComponent:R.slots.baseSelectOption,getOptionLabel:I,getOptionValue:O,isSelectNative:F,baseSelectOptionProps:(a=R.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const v3=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],y3=X("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function b3(e){var t,n,r,o;const{item:l,applyValue:s,apiRef:i,focusElementRef:a,clearButton:c,tabIndex:u,label:p,variant:f="standard"}=e,g=K(e,v3),[h,b]=d.useState(l.value||""),w=De(),C=bt(),y=bt(),x=((t=w.slotProps)==null?void 0:t.baseSelect)||{},S=(n=x.native)!=null?n:!0,T=((r=w.slotProps)==null?void 0:r.baseSelectOption)||{},P=d.useCallback(E=>{const _=E.target.value;b(_),s(m({},l,{value:_}))},[s,l]);d.useEffect(()=>{b(l.value||"")},[l.value]);const k=p??i.current.getLocaleText("filterPanelInputLabel");return v.jsxs(y3,{children:[v.jsxs(w.slots.baseFormControl,{fullWidth:!0,children:[v.jsx(w.slots.baseInputLabel,m({},(o=w.slotProps)==null?void 0:o.baseInputLabel,{id:C,shrink:!0,variant:f,children:k})),v.jsxs(w.slots.baseSelect,m({labelId:C,id:y,label:k,value:h,onChange:P,variant:f,notched:f==="outlined"?!0:void 0,native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:u}},g,x,{children:[v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"",children:i.current.getLocaleText("filterValueAny")})),v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"true",children:i.current.getLocaleText("filterValueTrue")})),v.jsx(w.slots.baseSelectOption,m({},T,{native:S,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const C3=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],iC=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),x3=d.forwardRef(function(t,n){var r,o;const l=at(),s=De(),i=Re(l,en),a=Re(l,XS),c=d.useRef(null),u=d.useRef(null),{logicOperators:p=[On.And,On.Or],columnsSort:f,filterFormProps:g,getColumnForNewFilter:h,disableAddFilterButton:b=!1,disableRemoveAllButton:w=!1}=t,C=K(t,C3),y=l.current.upsertFilterItem,x=d.useCallback(F=>{l.current.setFilterLogicOperator(F)},[l]),S=d.useCallback(()=>{let F;if(h&&typeof h=="function"){const L=h({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;F=a.find(({field:O})=>O===L)}else F=a.find(L=>{var O;return(O=L.filterOperators)==null?void 0:O.length});return F?iC(F):null},[i==null?void 0:i.items,a,h]),T=d.useCallback(()=>{if(h===void 0||typeof h!="function")return S();const F=i.items.length?i.items:[S()].filter(Boolean),L=h({currentFilters:F,columns:a});if(L===null)return null;const O=a.find(({field:I})=>I===L);return O?iC(O):null},[i.items,a,h,S]),P=d.useMemo(()=>i.items.length?i.items:(u.current||(u.current=S()),u.current?[u.current]:[]),[i.items,S]),k=P.length>1,E=()=>{const F=T();F&&l.current.upsertFilterItems([...P,F])},_=d.useCallback(F=>{const L=P.length===1;l.current.deleteFilterItem(F),L&&l.current.hideFilterPanel()},[l,P.length]),R=()=>{P.length===1&&P[0].value===void 0&&(l.current.deleteFilterItem(P[0]),l.current.hideFilterPanel()),l.current.setFilterModel(m({},i,{items:[]}))};return d.useEffect(()=>{p.length>0&&i.logicOperator&&!p.includes(i.logicOperator)&&x(p[0])},[p,x,i.logicOperator]),d.useEffect(()=>{P.length>0&&c.current.focus()},[P.length]),v.jsxs(DP,m({ref:n},C,{children:[v.jsx(OP,{children:P.map((F,L)=>v.jsx(d3,m({item:F,applyFilterChanges:y,deleteFilter:_,hasMultipleFilters:k,showMultiFilterOperators:L>0,multiFilterOperator:i.logicOperator,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:x,focusElementRef:L===P.length-1?c:null,logicOperators:p,columnsSort:f},g),F.id==null?L:F.id))}),!s.disableMultipleColumnsFiltering&&!(b&&w)?v.jsxs(FP,{children:[b?v.jsx("span",{}):v.jsx(s.slots.baseButton,m({onClick:E,startIcon:v.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("filterPanelAddFilter")})),w?null:v.jsx(s.slots.baseButton,m({onClick:R,startIcon:v.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),w3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function jP(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:l,color:s,error:i,helperText:a,size:c,variant:u}=e,p=K(e,w3),f={color:s,error:i,helperText:a,size:c,variant:u},[g,h]=d.useState(t.value||[]),b=bt(),w=De();d.useEffect(()=>{var y;const x=(y=t.value)!=null?y:[];h(x.map(String))},[t.value]);const C=d.useCallback((y,x)=>{h(x.map(String)),n(m({},t,{value:[...x]}))},[n,t]);return v.jsx(SS,m({multiple:!0,freeSolo:!0,options:[],filterOptions:(y,x)=>{const{inputValue:S}=x;return S==null||S===""?[]:[S]},id:b,value:g,onChange:C,renderTags:(y,x)=>y.map((S,T)=>v.jsx(w.slots.baseChip,m({variant:"outlined",size:"small",label:S},x({index:T})))),renderInput:y=>{var x;return v.jsx(w.slots.baseTextField,m({},y,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:m({},y.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},f,(x=w.slotProps)==null?void 0:x.baseTextField))}},p))}const S3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],P3=iS();function k3(e){var t,n;const{item:r,applyValue:o,apiRef:l,focusElementRef:s,color:i,error:a,helperText:c,size:u,variant:p="standard",getOptionLabel:f,getOptionValue:g}=e,h=K(e,S3),b={color:i,error:a,helperText:c,size:u,variant:p},w=bt(),C=De();let y=null;if(r.field){const R=l.current.getColumn(r.field);Ol(R)&&(y=R)}const x=g||((t=y)==null?void 0:t.getOptionValue),S=f||((n=y)==null?void 0:n.getOptionLabel),T=d.useCallback((R,F)=>x(R)===x(F),[x]),P=d.useMemo(()=>{var R;return(R=y)!=null&&R.valueOptions?typeof y.valueOptions=="function"?y.valueOptions({field:y.field}):y.valueOptions:[]},[y]),k=d.useMemo(()=>P==null?void 0:P.map(x),[P,x]),E=d.useMemo(()=>Array.isArray(r.value)?P!==void 0?r.value.map(F=>k==null?void 0:k.findIndex(L=>L===F)).filter(F=>F>=0).map(F=>P[F]):r.value:[],[r.value,P,k]);d.useEffect(()=>{(!Array.isArray(r.value)||E.length!==r.value.length)&&o(m({},r,{value:E.map(x)}))},[r,E,o,x]);const _=d.useCallback((R,F)=>{o(m({},r,{value:F.map(x)}))},[o,r,x]);return v.jsx(SS,m({multiple:!0,options:P,isOptionEqualToValue:T,filterOptions:P3,id:w,value:E,onChange:_,getOptionLabel:S,renderTags:(R,F)=>R.map((L,O)=>v.jsx(C.slots.baseChip,m({variant:"outlined",size:"small",label:S(L)},F({index:O})))),renderInput:R=>{var F;return v.jsx(C.slots.baseTextField,m({},R,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:m({},R.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},b,(F=C.slotProps)==null?void 0:F.baseTextField))}},h))}const E3=["hideMenu","options"],I3=["hideMenu","options"];function M3(e){const t=at(),{hideMenu:n,options:r}=e,o=K(e,E3);return v.jsx(ro,m({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function $3(e){const t=at(),{hideMenu:n,options:r}=e,o=K(e,I3);return v.jsx(ro,m({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const R3=["className","selectedRowCount"],T3=e=>{const{classes:t}=e;return we({root:["selectedRowCount"]},ct,t)},O3=Jt("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"}})),F3=d.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,l=K(t,R3),s=at(),i=De(),a=T3(i),c=s.current.getLocaleText("footerRowSelected")(o);return v.jsx(O3,m({ref:n,className:ne(a.root,r),ownerState:i},l,{children:c}))}),D3=d.forwardRef(function(t,n){var r,o;const l=at(),s=De(),i=Re(l,lz),a=Re(l,MH),c=Re(l,oP),u=!s.hideFooterSelectedRowCount&&a>0?v.jsx(F3,{selectedRowCount:a}):v.jsx("div",{}),p=!s.hideFooterRowCount&&!s.pagination?v.jsx(s.slots.footerRowCount,m({},(r=s.slotProps)==null?void 0:r.footerRowCount,{rowCount:i,visibleRowCount:c})):null,f=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&v.jsx(s.slots.pagination,m({},(o=s.slotProps)==null?void 0:o.pagination));return v.jsxs(A4,m({ref:n},t,{children:[u,p,f]}))});function j3(){var e,t;const n=De();return v.jsxs(d.Fragment,{children:[v.jsx(n.slots.preferencesPanel,m({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&v.jsx(n.slots.toolbar,m({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const _3=d.forwardRef(function(t,n){return v.jsx(pv,m({ref:n},t,{children:v.jsx($S,{})}))}),L3=d.forwardRef(function(t,n){const o=at().current.getLocaleText("noRowsLabel");return v.jsx(pv,m({ref:n},t,{children:o}))}),N3=X(p5)(({theme:e})=>({[`& .${Rl.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Rl.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),A3=d.forwardRef(function(t,n){const r=at(),o=De(),l=Re(r,ir),s=Re(r,Rs),i=d.useMemo(()=>Math.floor(s/(l.pageSize||1)),[s,l.pageSize]),a=d.useCallback(f=>{const g=Number(f.target.value);r.current.setPageSize(g)},[r]),c=d.useCallback((f,g)=>{r.current.setPage(g)},[r]),p=(f=>{for(let g=0;g<o.pageSizeOptions.length;g+=1){const h=o.pageSizeOptions[g];if(typeof h=="number"){if(h===f)return!0}else if(h.value===f)return!0}return!1})(l.pageSize)?o.pageSizeOptions:[];return v.jsx(N3,m({ref:n,component:"div",count:s,page:l.page<=i?l.page:i,rowsPerPageOptions:p,rowsPerPage:l.pageSize,onPageChange:c,onRowsPerPageChange:a},r.current.getLocaleText("MuiTablePagination"),t))}),z3=["className","rowCount","visibleRowCount"],H3=e=>{const{classes:t}=e;return we({root:["rowCount"]},ct,t)},B3=Jt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),V3=d.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:l}=t,s=K(t,z3),i=at(),a=De(),c=H3(a);if(o===0)return null;const u=l<o?i.current.getLocaleText("footerTotalVisibleRows")(l,o):o.toLocaleString();return v.jsxs(B3,m({ref:n,className:ne(c.root,r),ownerState:a},s,{children:[i.current.getLocaleText("footerTotalRows")," ",u]}))}),cd=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=hv(e),n=IH(e)):(n=pl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Xl=(e,t)=>{const n=cd(e,t);return d.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Xm={current:null};function mc(e){return e.isInternal=!0,e}function ud(e){return e!==void 0&&e.isInternal===!0}function G3(e){return mc((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Xm.current))})}function hc(e){return e.map(t=>m({},t,{getApplyFilterFn:G3(t.getApplyFilterFnV7),getApplyFilterFnV7:mc(t.getApplyFilterFnV7)}))}function _P(e){return mc((t,n,r)=>{const o=e(t,n,r);return o&&(l=>o(l.value,l.row,n,r))})}function LP(e){return{current:e.current.getPublicApi()}}let zi;function W3(){if(zi!==void 0)return zi;try{zi=new Function("return true")()}catch{zi=!1}return zi}const Zm=(e,t)=>{const n=m({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=bi(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},U3=co(["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"),K3=co("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),q3=co("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),NP=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(U3(),o=[e.items[0]]):o=e.items;const l=r&&o.some(i=>i.id==null),s=o.some(i=>i.operator==null);return l&&K3(),s&&q3(),s||l?m({},e,{items:o.map(i=>Zm(i,n))}):e.items!==o?m({},e,{items:o}):e},aC=(e,t,n)=>r=>m({},r,{filterModel:NP(e,t,n)}),Ko=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,AP=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const g=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>g(h)):g(e.value)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=Ko(r));const s=m({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=i.find(g=>g.value===s.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const c=!ud(a.getApplyFilterFn),u=!ud(a.getApplyFilterFnV7),p=LP(t);if(a.getApplyFilterFnV7&&!(c&&!u)){const g=a.getApplyFilterFnV7(s,n);return typeof g!="function"?null:{v7:!0,item:s,fn:h=>{let b=t.current.getRowValue(h,n);return l&&(b=Ko(b)),g(b,h,n,p)}}}const f=a.getApplyFilterFn(s,n);return typeof f!="function"?null:{v7:!1,item:s,fn:g=>{const h=t.current.getCellParams(g,s.field);Xm.current=p,l&&(h.value=Ko(h.value));const b=f(h);return Xm.current=null,b}}};let cC=1;const Y3=(e,t,n)=>{const{items:r}=e,o=r.map(i=>AP(i,t)).filter(i=>!!i);if(o.length===0)return null;if(n||!W3())return(i,a)=>{const c={};for(let u=0;u<o.length;u+=1){const p=o[u];(!a||a(p.item.field))&&(c[p.item.id]=p.v7?p.fn(i):p.fn(t.current.getRowId(i)))}return c};const l=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
216
216
  ${o.map((i,a)=>`const shouldApply${a} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(i.item.field)});`).join(`
217
217
  `)}
218
218
 
@@ -223,25 +223,25 @@ ${o.map((i,a)=>` ${JSON.stringify(String(i.item.id))}: !shouldApply${a}
223
223
  `)}
224
224
  };
225
225
 
226
- return result$$;`.replaceAll("$$",String(cC)));return cC+=1,(i,a)=>l(t.current.getRowId,o,i,a)},Q3=(e,t)=>{var n,r,o;const l=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(l.length===0)return null;const i=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?xp(t):xo(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,u=LP(t);return i.forEach(p=>{const f=t.current.getColumn(p),g=f==null?void 0:f.getApplyQuickFilterFn,h=f==null?void 0:f.getApplyQuickFilterFnV7,b=!ud(g),w=!ud(h);h&&!(b&&!w)?a.push({column:f,appliers:l.map(C=>{const y=c?qo(C):C;return{v7:!0,fn:h(y,f,u)}})}):g&&a.push({column:f,appliers:l.map(C=>{const y=c?qo(C):C;return{v7:!1,fn:g(y,f,u)}})})}),function(f,g){const h={},b={};e:for(let C=0;C<l.length;C+=1){const y=l[C];for(let x=0;x<a.length;x+=1){const{column:S,appliers:T}=a[x],{field:P}=S;if(g&&!g(P))continue;const k=T[C];let E=t.current.getRowValue(f,S);if(k.fn!==null)if(k.v7){if(c&&(E=qo(E)),k.fn(E,f,S,u)){h[y]=!0;continue e}}else{var w;const _=(w=b[P])!=null?w:t.current.getCellParams(t.current.getRowId(f),P);if(c&&(_.value=qo(_.value)),b[P]=_,k.fn(_)){h[y]=!0;continue e}}}h[y]=!1}return h}},X3=(e,t,n)=>{const r=Y3(e,t,n),o=Q3(e,t);return function(s,i,a){var c,u;a.passingFilterItems=(c=r==null?void 0:r(s,i))!=null?c:null,a.passingQuickFilterValues=(u=o==null?void 0:o(s,i))!=null?u:null}},uC=e=>e!=null,Z3=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>AP(r,t)!==null)),e.cleanedFilterItems),J3=(e,t,n,r,o)=>{const l=Z3(o,r,n.items),s=e.filter(uC),i=t.filter(uC);if(s.length>0){var a;const u=f=>s.some(g=>g[f.id]);if(((a=n.logicOperator)!=null?a:Ka().logicOperator)===On.And){if(!l.every(u))return!1}else if(!l.some(u))return!1}if(i.length>0&&n.quickFilterValues!=null){var c;const u=f=>i.some(g=>g[f]);if(((c=n.quickFilterLogicOperator)!=null?c:Ka().quickFilterLogicOperator)===On.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},dC=mc(e=>{if(!e)return null;const t=new RegExp(hu(e),"i");return(n,r,o,l)=>{let s=l.current.getRowFormattedValue(r,o);return l.current.ignoreDiacritics&&(s=qo(s)),s!=null?t.test(s.toString()):!1}}),eV=(e=!1)=>hc([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(hu(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Qr},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Qr},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${hu(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Qr},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${hu(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Qr},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(l=>r.compare(l,o.toString()||"")===0):!1},InputComponent:jP}]),Nr={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:MP,type:"string",align:"left",filterOperators:eV(),renderEditCell:a4,getApplyQuickFilterFn:_P(dC),getApplyQuickFilterFnV7:dC},tV=()=>hc([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:b3}]);function nV({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const rV=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},zP=m({},Nr,{type:"boolean",align:"center",headerAlign:"center",renderCell:Yz,renderEditCell:Jz,sortComparator:Qa,valueFormatter:nV,filterOperators:tV(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>rV(e)}),_o="__check__",wi=m({},zP,{field:_o,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>ad(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>v.jsx(YH,m({},e)),renderCell:e=>v.jsx(UH,m({},e))}),Mp="actions",oV=m({},Nr,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:I4,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),Cv="__detail_panel_toggle__",Sn=e=>e.editRows,lV=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],sV=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:l,classes:s}=e;return we({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",l==="auto"&&"row--dynamicHeight"]},ct,s)};function iV({width:e}){if(!e)return null;const t={width:e};return v.jsx("div",{className:`${B.cell} ${B.withBorderColor}`,style:t})}const aV=d.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:l,row:s,index:i,style:a,position:c,rowHeight:u,className:p,visibleColumns:f,renderedColumns:g,containerWidth:h,firstColumnToRender:b,isLastVisible:w=!1,focusedCellColumnIndexNotInRange:C,isNotVisible:y,focusedCell:x,onClick:S,onDoubleClick:T,onMouseEnter:P,onMouseLeave:k,onMouseOut:E,onMouseOver:_}=t,R=K(t,lV),F=at(),L=d.useRef(null),O=De(),I=Zl(F,O),$=Re(F,lv),j=Re(F,lr),N=Re(F,Pp),M=Re(F,dc),D=Re(F,Sn),A=wt(L,n),H=i+M+2,z={selected:r,isLastVisible:w,classes:O.classes,editing:F.current.getRowMode(l)===It.Edit,editable:O.editMode===so.Row,rowHeight:u},W=sV(z);d.useLayoutEffect(()=>{u==="auto"&&L.current&&typeof ResizeObserver>"u"&&F.current.unstable_storeRowHeightMeasurement(l,L.current.clientHeight,c)},[F,u,l,c]),d.useLayoutEffect(()=>{if(I.range){const Oe=F.current.getRowIndexRelativeToVisibleRows(l);Oe!=null&&F.current.unstable_setLastMeasuredRowIndex(Oe)}const te=L.current;if(!te||u!=="auto"||typeof ResizeObserver>"u")return;const xe=new ResizeObserver(Oe=>{const[Ve]=Oe,Te=Ve.borderBoxSize&&Ve.borderBoxSize.length>0?Ve.borderBoxSize[0].blockSize:Ve.contentRect.height;F.current.unstable_storeRowHeightMeasurement(l,Te,c)});return xe.observe(te),()=>xe.disconnect()},[F,I.range,i,u,l,c]);const G=d.useCallback((te,oe)=>xe=>{pc(xe)||F.current.getRow(l)&&(F.current.publishEvent(te,F.current.getRowParams(l),xe),oe&&oe(xe))},[F,l]),q=d.useCallback(te=>{const oe=Fz(te.target,B.cell),xe=oe==null?void 0:oe.getAttribute("data-field");if(xe){if(xe===wi.field||xe===Cv||xe==="__reorder__"||F.current.getCellMode(l,xe)===yt.Edit)return;const Oe=F.current.getColumn(xe);if((Oe==null?void 0:Oe.type)===Mp)return}G("rowClick",S)(te)},[F,S,G,l]),{slots:re,slotProps:ae,disableColumnReorder:ce}=O,ue=re.cell===qm?qm:Vz,ye=O.rowReordering,de=(te,oe)=>{var xe,Oe;const Ve=ce&&te.disableReorder||!ye&&!!j.length&&N>1&&Object.keys(D).length>0,Te=(xe=(Oe=D[l])==null?void 0:Oe[te.field])!=null?xe:null;let se=!1;return C!==void 0&&f[C].field===te.field&&(se=!0),v.jsx(ue,m({column:te,width:oe.width,rowId:l,height:u,showRightBorder:oe.showRightBorder,align:te.align||"left",colIndex:oe.indexRelativeToAllColumns,colSpan:oe.colSpan,disableDragEvents:Ve,editCellState:Te,isNotVisible:se},ae==null?void 0:ae.cell),te.field)},he=Re(F,()=>m({},F.current.unstable_getRowInternalSizes(l)),ov);let Y=u;if(Y==="auto"&&he){let te=0;const oe=Object.entries(he).reduce((xe,[Oe,Ve])=>/^base[A-Z]/.test(Oe)?(te+=1,Ve>xe?Ve:xe):xe,0);oe>0&&te>1&&(Y=oe)}const pe=d.useMemo(()=>{if(y)return{opacity:0,width:0,height:0};const te=m({},a,{maxHeight:u==="auto"?"none":u,minHeight:Y});if(he!=null&&he.spacingTop){const oe=O.rowSpacingType==="border"?"borderTopWidth":"marginTop";te[oe]=he.spacingTop}if(he!=null&&he.spacingBottom){const oe=O.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let xe=te[oe];typeof xe!="number"&&(xe=parseInt(xe||"0",10)),xe+=he.spacingBottom,te[oe]=xe}return te},[y,u,a,Y,he,O.rowSpacingType]),ee=F.current.unstable_applyPipeProcessors("rowClassName",[],l);if(typeof O.getRowClassName=="function"){var Z;const te=i-(((Z=I.range)==null?void 0:Z.firstRowIndex)||0),oe=m({},F.current.getRowParams(l),{isFirstVisible:te===0,isLastVisible:te===I.rows.length-1,indexRelativeToCurrentPage:te});ee.push(O.getRowClassName(oe))}const fe=CH(1e4,20,80),le=F.current.getRowNode(l);if(!le)return null;const ge=le.type,me=[];for(let te=0;te<g.length;te+=1){const oe=g[te];let xe=b+te;C!==void 0&&x&&(f[C].field===oe.field?xe=C:xe-=1);const Oe=F.current.unstable_getCellColSpanInfo(l,xe);if(Oe&&!Oe.spannedByColSpan)if(ge!=="skeletonRow"){const{colSpan:Ve,width:Te}=Oe.cellProps,se={width:Te,colSpan:Ve,showRightBorder:O.showCellVerticalBorder,indexRelativeToAllColumns:xe};me.push(de(oe,se))}else{const{width:Ve}=Oe.cellProps,Te=Math.round(fe());me.push(v.jsx(re.skeletonCell,{width:Ve,contentWidth:Te,field:oe.field,align:oe.align},oe.field))}}const Ie=h-$,Se=s?{onClick:q,onDoubleClick:G("rowDoubleClick",T),onMouseEnter:G("rowMouseEnter",P),onMouseLeave:G("rowMouseLeave",k),onMouseOut:G("rowMouseOut",E),onMouseOver:G("rowMouseOver",_)}:null;return v.jsxs("div",m({ref:A,"data-id":l,"data-rowindex":i,role:"row",className:ne(...ee,W.root,p,o&&"Mui-hovered"),"aria-rowindex":H,"aria-selected":r,style:pe},Se,R,{children:[me,Ie>0&&v.jsx(iV,{width:Ie})]}))}),cV=Ip(aV);function uV({privateApiRef:e,props:t,children:n}){const r=d.useRef(e.current.getPublicApi());return v.jsx(KS.Provider,{value:t,children:v.jsx(qS.Provider,{value:e,children:v.jsx(US.Provider,{value:r,children:n})})})}const dV=yH()&&window.localStorage.getItem("DEBUG")!=null,Zi=()=>{},pV={debug:Zi,info:Zi,warn:Zi,error:Zi},pC=["debug","info","warn","error"];function fC(e,t,n=console){const r=pC.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return pC.reduce((l,s,i)=>(i>=r?l[s]=(...a)=>{const[c,...u]=a;n[s](`MUI: ${e} - ${c}`,...u)}:l[s]=Zi,l),{})}const fV=(e,t)=>{const n=d.useCallback(r=>dV?fC(r,"debug",t.logger):t.logLevel?fC(r,t.logLevel.toString(),t.logger):pV,[t.logLevel,t.logger]);et(e,{getLogger:n},"private")};class xv{static create(t){return new xv(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class mV{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),l=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const i=o[s];r.highPriority.has(i)&&i.apply(this,n)}for(let s=0;s<l.length;s+=1){const i=l[s];r.regular.has(i)&&i.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...l){r.removeListener(t,o),n.apply(r,l)})}}const HP=Symbol("mui.api_private"),hV=e=>e.isPropagationStopped!==void 0;let mC=0;function gV(e){var t;const n=(t=e.current)==null?void 0:t[HP];if(n)return n;const r={},o={state:r,store:xv.create(r),instanceId:{id:mC}};return mC+=1,o.getPublicApi=()=>e.current,o.register=(l,s)=>{Object.keys(s).forEach(i=>{const a=s[i],c=o[i];if((c==null?void 0:c.spying)===!0?c.target=a:o[i]=a,l==="public"){const u=e.current,p=u[i];(p==null?void 0:p.spying)===!0?p.target=a:u[i]=a}})},o.register("private",{caches:{},eventManager:new mV}),o}function vV(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[HP]:e.current}}function yV(e,t){const n=d.useRef(),r=d.useRef();r.current||(r.current=gV(n)),n.current||(n.current=vV(r));const o=d.useCallback((...s)=>{const[i,a,c={}]=s;if(c.defaultMuiPrevented=!1,hV(c)&&c.isPropagationStopped())return;const u=t.signature===oo.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(i,a,c,u)},[r,t.signature]),l=d.useCallback((s,i,a)=>{r.current.eventManager.on(s,i,a);const c=r.current;return()=>{c.eventManager.removeListener(s,i)}},[r]);return et(r,{subscribeEvent:l,publishEvent:o},"public"),d.useImperativeHandle(e,()=>n.current,[n]),d.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const bV=(e,t)=>{const n=d.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},CV=e=>{const t=d.useRef({}),n=d.useRef(!1),r=d.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=d.useCallback((u,p,f)=>{t.current[u]||(t.current[u]={processors:new Map,appliers:{}});const g=t.current[u];return g.processors.get(p)!==f&&(g.processors.set(p,f),r(g)),()=>{t.current[u].processors.set(p,null)}},[r]),l=d.useCallback((u,p,f)=>(t.current[u]||(t.current[u]={processors:new Map,appliers:{}}),t.current[u].appliers[p]=f,()=>{const g=t.current[u].appliers,h=K(g,[p].map(Ha));t.current[u].appliers=h}),[]),s=d.useCallback(u=>{const p=t.current[u];r(p)},[r]),i=d.useCallback((...u)=>{const[p,f,g]=u;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((b,w)=>w?w(b,g):b,f):f},[]),a={registerPipeProcessor:o,registerPipeApplier:l,requestPipeProcessorsApplication:s},c={unstable_applyPipeProcessors:i};et(e,a,"private"),et(e,c,"public")},Gt=(e,t,n)=>{const r=d.useRef(),o=d.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=d.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);fc(()=>{l()});const s=d.useRef(!0);d.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},wv=(e,t,n)=>{const r=d.useRef(),o=d.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=d.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);fc(()=>{l()});const s=d.useRef(!0);d.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},dd=(e,t,n,r)=>{const o=d.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);fc(()=>{o()});const l=d.useRef(!0);d.useEffect(()=>{l.current?l.current=!1:o()},[o])},Gl="none",hC={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},xV=e=>{const t=d.useRef(new Map),n=d.useRef({}),r=d.useCallback((a,c,u)=>{const p=()=>{const h=n.current[c],b=K(h,[a].map(Ha));n.current[c]=b};n.current[c]||(n.current[c]={});const f=n.current[c],g=f[a];return f[a]=u,!g||g===u||a===e.current.getActiveStrategy(hC[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),p},[e]),o=d.useCallback((a,c)=>{const u=e.current.getActiveStrategy(hC[a]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[u])throw new Error(`No processor found for processor "${a}" on strategy "${u}"`);const f=p[u];return f(c)},[e]),l=d.useCallback(a=>{var c;const p=Array.from(t.current.entries()).find(([,f])=>f.group!==a?!1:f.isAvailable());return(c=p==null?void 0:p[0])!=null?c:Gl},[]),s=d.useCallback((a,c,u)=>{t.current.set(c,{group:a,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);et(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:l,setStrategyAvailability:s},"private")},wV=(e,t)=>{const n=d.useRef({}),[,r]=d.useState(),o=d.useCallback(u=>{n.current[u.stateId]=u},[]),l=d.useCallback((u,p)=>{let f;if(CP(u)?f=u(e.current.state):f=u,e.current.state===f)return!1;let g=!1;const h=[];if(Object.keys(n.current).forEach(b=>{const w=n.current[b],C=w.stateSelector(e.current.state,e.current.instanceId),y=w.stateSelector(f,e.current.instanceId);y!==C&&(h.push({stateId:w.stateId,hasPropChanged:y!==w.propModel}),w.propModel!==void 0&&y!==w.propModel&&(g=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(b=>b.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=f,e.current.publishEvent&&e.current.publishEvent("stateChange",f),e.current.store.update(f)),h.length===1){const{stateId:b,hasPropChanged:w}=h[0],C=n.current[b],y=C.stateSelector(f,e.current.instanceId);if(C.propOnChange&&w){const x=t.signature===oo.DataGridPro?{api:e.current,reason:p}:{reason:p};C.propOnChange(y,x)}g||e.current.publishEvent(C.changeEvent,y,{reason:p})}return!g},[e,t.signature]),s=d.useCallback((u,p,f)=>e.current.setState(g=>m({},g,{[u]:p(g[u])}),f),[e]),i=d.useCallback(()=>r(()=>e.current.state),[e]),a={setState:l,forceUpdate:i},c={updateControlState:s,registerControlState:o};et(e,a,"public"),et(e,c,"private")},SV=(e,t)=>{const n=yV(e,t);return fV(n,t),wV(n,t),CV(n),xV(n),bV(n,t),n.current.register("private",{rootProps:t}),n},Rn=(e,t,n)=>{const r=d.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},PV=/(\d+)-(\d+)-(\d+)/,kV=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function cs(e,t,n,r){if(!e.value)return null;const[o,l,s,i,a]=e.value.match(n?kV:PV).slice(1).map(Number),c=new Date(o,l-1,s,i||0,a||0).getTime();return u=>{if(!u)return!1;if(r)return t(u.getTime(),c);const f=new Date(u).setHours(n?u.getHours():0,n?u.getMinutes():0,0,0);return t(f,c)}}const BP=e=>hc([{value:"is",getApplyFilterFnV7:t=>cs(t,(n,r)=>n===r,e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>cs(t,(n,r)=>n!==r,e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>cs(t,(n,r)=>n>r,e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>cs(t,(n,r)=>n>=r,e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>cs(t,(n,r)=>n<r,e,!e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>cs(t,(n,r)=>n<=r,e),InputComponent:as,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function VP({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
227
- `))}function EV({value:e,field:t,id:n}){return e?(VP({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function IV({value:e,field:t,id:n}){return e?(VP({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const MV=m({},Nr,{type:"date",sortComparator:vv,valueFormatter:EV,filterOperators:BP(),renderEditCell:pP,pastedValueParser:e=>new Date(e)}),$V=m({},Nr,{type:"dateTime",sortComparator:vv,valueFormatter:IV,filterOperators:BP(!0),renderEditCell:pP,pastedValueParser:e=>new Date(e)}),Ao=e=>e==null?null:Number(e),gC=mc(e=>e==null||Number.isNaN(e)||e===""?null:t=>Ao(t)===Ao(e)),RV=()=>hc([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ao(t)===e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ao(t)!==e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)>e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)>=e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)<e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)<=e.value,InputComponent:Qr,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:jP,InputComponentProps:{type:"number"}}]),TV=m({},Nr,{type:"number",align:"right",headerAlign:"right",sortComparator:Qa,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>vH(e)?e.toLocaleString():e||"",filterOperators:RV(),getApplyQuickFilterFn:_P(gC),getApplyQuickFilterFnV7:gC}),us=e=>e==null||!fv(e)?e:e.value,OV=()=>hc([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>us(t)===us(e.value),InputComponent:sC},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>us(t)!==us(e.value),InputComponent:sC},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(us);return n=>t.includes(us(n))},InputComponent:k3}]),FV=e=>typeof e[0]=="object",DV=e=>fv(e)?e.value:e,jV=e=>fv(e)?e.label:String(e),_V=m({},Nr,{type:"singleSelect",getOptionLabel:jV,getOptionValue:DV,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,l=e.api.getColumn(n);if(!Fl(l))return"";let s;if(typeof l.valueOptions=="function"?s=l.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=l.valueOptions,r==null)return"";if(!s)return r;if(!FV(s))return l.getOptionLabel(r);const i=s.find(a=>l.getOptionValue(a)===r);return i?l.getOptionLabel(i):""},renderEditCell:b4,filterOperators:OV(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],l=n.getOptionValue;if(o.find(i=>l(i)===e))return e}}),GP="__default__",LV=()=>({string:Nr,number:TV,date:MV,dateTime:$V,boolean:zP,singleSelect:_V,[Mp]:oV,[GP]:Nr});function Zm(e,t){if(typeof e=="string"){if(t.shouldAppendQuotes||t.escapeFormulas){const n=e.replace(/"/g,'""');return[t.delimiter,`
228
- `,"\r",'"'].some(r=>e.includes(r))?`"${n}"`:t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(n[0])?`'${n}`:n}return e}return e}const WP=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){var l;const i=e.colDef.type;if(i==="number")o=String(e.value);else if(i==="date"||i==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Zm(o,n)};ao(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Jm{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const NV=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const l=new Jm({csvOptions:r});return t.forEach(s=>{const i=n(e,s.field);l.addValue(WP(i,{ignoreValueFormatter:o,csvOptions:r}))}),l.getRowString()};function AV(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:l}=e,s=n.reduce((p,f)=>`${p}${NV({id:f,columns:t,getCellParams:l.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
229
- `,"").trim();if(!r.includeHeaders)return s;const i=t.filter(p=>p.field!==wi.field),a=[];if(r.includeColumnGroupsHeaders){const p=l.current.unstable_getAllGroupDetails();let f=0;const g=i.reduce((h,b)=>{const w=l.current.unstable_getColumnGroupPath(b.field);return h[b.field]=w,f=Math.max(f,w.length),h},{});for(let h=0;h<f;h+=1){const b=new Jm({csvOptions:r,sanitizeCellValue:Zm});a.push(b),i.forEach(w=>{const C=(g[w.field]||[])[h],y=p[C];b.addValue(y?y.headerName||y.groupId:"")})}}const c=new Jm({csvOptions:r,sanitizeCellValue:Zm});return i.forEach(p=>{c.addValue(p.headerName||p.field)}),a.push(c),`${`${a.map(p=>p.getRowString()).join(`\r
226
+ return result$$;`.replaceAll("$$",String(cC)));return cC+=1,(i,a)=>l(t.current.getRowId,o,i,a)},Q3=(e,t)=>{var n,r,o;const l=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(l.length===0)return null;const i=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?wp(t):xo(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,u=LP(t);return i.forEach(p=>{const f=t.current.getColumn(p),g=f==null?void 0:f.getApplyQuickFilterFn,h=f==null?void 0:f.getApplyQuickFilterFnV7,b=!ud(g),w=!ud(h);h&&!(b&&!w)?a.push({column:f,appliers:l.map(C=>{const y=c?Ko(C):C;return{v7:!0,fn:h(y,f,u)}})}):g&&a.push({column:f,appliers:l.map(C=>{const y=c?Ko(C):C;return{v7:!1,fn:g(y,f,u)}})})}),function(f,g){const h={},b={};e:for(let C=0;C<l.length;C+=1){const y=l[C];for(let x=0;x<a.length;x+=1){const{column:S,appliers:T}=a[x],{field:P}=S;if(g&&!g(P))continue;const k=T[C];let E=t.current.getRowValue(f,S);if(k.fn!==null)if(k.v7){if(c&&(E=Ko(E)),k.fn(E,f,S,u)){h[y]=!0;continue e}}else{var w;const _=(w=b[P])!=null?w:t.current.getCellParams(t.current.getRowId(f),P);if(c&&(_.value=Ko(_.value)),b[P]=_,k.fn(_)){h[y]=!0;continue e}}}h[y]=!1}return h}},X3=(e,t,n)=>{const r=Y3(e,t,n),o=Q3(e,t);return function(s,i,a){var c,u;a.passingFilterItems=(c=r==null?void 0:r(s,i))!=null?c:null,a.passingQuickFilterValues=(u=o==null?void 0:o(s,i))!=null?u:null}},uC=e=>e!=null,Z3=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>AP(r,t)!==null)),e.cleanedFilterItems),J3=(e,t,n,r,o)=>{const l=Z3(o,r,n.items),s=e.filter(uC),i=t.filter(uC);if(s.length>0){var a;const u=f=>s.some(g=>g[f.id]);if(((a=n.logicOperator)!=null?a:Ka().logicOperator)===On.And){if(!l.every(u))return!1}else if(!l.some(u))return!1}if(i.length>0&&n.quickFilterValues!=null){var c;const u=f=>i.some(g=>g[f]);if(((c=n.quickFilterLogicOperator)!=null?c:Ka().quickFilterLogicOperator)===On.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},dC=mc(e=>{if(!e)return null;const t=new RegExp(hu(e),"i");return(n,r,o,l)=>{let s=l.current.getRowFormattedValue(r,o);return l.current.ignoreDiacritics&&(s=Ko(s)),s!=null?t.test(s.toString()):!1}}),eV=(e=!1)=>hc([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(hu(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Xr},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Xr},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${hu(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Xr},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${hu(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Xr},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(l=>r.compare(l,o.toString()||"")===0):!1},InputComponent:jP}]),Ar={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:MP,type:"string",align:"left",filterOperators:eV(),renderEditCell:a4,getApplyQuickFilterFn:_P(dC),getApplyQuickFilterFnV7:dC},tV=()=>hc([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:b3}]);function nV({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const rV=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},zP=m({},Ar,{type:"boolean",align:"center",headerAlign:"center",renderCell:Yz,renderEditCell:Jz,sortComparator:Qa,valueFormatter:nV,filterOperators:tV(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>rV(e)}),_o="__check__",wi=m({},zP,{field:_o,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>ad(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>v.jsx(YH,m({},e)),renderCell:e=>v.jsx(UH,m({},e))}),$p="actions",oV=m({},Ar,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:I4,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),Cv="__detail_panel_toggle__",Sn=e=>e.editRows,lV=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],sV=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:l,classes:s}=e;return we({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",l==="auto"&&"row--dynamicHeight"]},ct,s)};function iV({width:e}){if(!e)return null;const t={width:e};return v.jsx("div",{className:`${B.cell} ${B.withBorderColor}`,style:t})}const aV=d.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:l,row:s,index:i,style:a,position:c,rowHeight:u,className:p,visibleColumns:f,renderedColumns:g,containerWidth:h,firstColumnToRender:b,isLastVisible:w=!1,focusedCellColumnIndexNotInRange:C,isNotVisible:y,focusedCell:x,onClick:S,onDoubleClick:T,onMouseEnter:P,onMouseLeave:k,onMouseOut:E,onMouseOver:_}=t,R=K(t,lV),F=at(),L=d.useRef(null),O=De(),I=Xl(F,O),$=Re(F,lv),j=Re(F,sr),N=Re(F,kp),M=Re(F,dc),D=Re(F,Sn),A=wt(L,n),H=i+M+2,z={selected:r,isLastVisible:w,classes:O.classes,editing:F.current.getRowMode(l)===It.Edit,editable:O.editMode===io.Row,rowHeight:u},W=sV(z);d.useLayoutEffect(()=>{u==="auto"&&L.current&&typeof ResizeObserver>"u"&&F.current.unstable_storeRowHeightMeasurement(l,L.current.clientHeight,c)},[F,u,l,c]),d.useLayoutEffect(()=>{if(I.range){const Oe=F.current.getRowIndexRelativeToVisibleRows(l);Oe!=null&&F.current.unstable_setLastMeasuredRowIndex(Oe)}const te=L.current;if(!te||u!=="auto"||typeof ResizeObserver>"u")return;const xe=new ResizeObserver(Oe=>{const[Ve]=Oe,Te=Ve.borderBoxSize&&Ve.borderBoxSize.length>0?Ve.borderBoxSize[0].blockSize:Ve.contentRect.height;F.current.unstable_storeRowHeightMeasurement(l,Te,c)});return xe.observe(te),()=>xe.disconnect()},[F,I.range,i,u,l,c]);const G=d.useCallback((te,oe)=>xe=>{pc(xe)||F.current.getRow(l)&&(F.current.publishEvent(te,F.current.getRowParams(l),xe),oe&&oe(xe))},[F,l]),q=d.useCallback(te=>{const oe=Fz(te.target,B.cell),xe=oe==null?void 0:oe.getAttribute("data-field");if(xe){if(xe===wi.field||xe===Cv||xe==="__reorder__"||F.current.getCellMode(l,xe)===yt.Edit)return;const Oe=F.current.getColumn(xe);if((Oe==null?void 0:Oe.type)===$p)return}G("rowClick",S)(te)},[F,S,G,l]),{slots:re,slotProps:ae,disableColumnReorder:ce}=O,ue=re.cell===Ym?Ym:Vz,ye=O.rowReordering,de=(te,oe)=>{var xe,Oe;const Ve=ce&&te.disableReorder||!ye&&!!j.length&&N>1&&Object.keys(D).length>0,Te=(xe=(Oe=D[l])==null?void 0:Oe[te.field])!=null?xe:null;let se=!1;return C!==void 0&&f[C].field===te.field&&(se=!0),v.jsx(ue,m({column:te,width:oe.width,rowId:l,height:u,showRightBorder:oe.showRightBorder,align:te.align||"left",colIndex:oe.indexRelativeToAllColumns,colSpan:oe.colSpan,disableDragEvents:Ve,editCellState:Te,isNotVisible:se},ae==null?void 0:ae.cell),te.field)},he=Re(F,()=>m({},F.current.unstable_getRowInternalSizes(l)),ov);let Y=u;if(Y==="auto"&&he){let te=0;const oe=Object.entries(he).reduce((xe,[Oe,Ve])=>/^base[A-Z]/.test(Oe)?(te+=1,Ve>xe?Ve:xe):xe,0);oe>0&&te>1&&(Y=oe)}const pe=d.useMemo(()=>{if(y)return{opacity:0,width:0,height:0};const te=m({},a,{maxHeight:u==="auto"?"none":u,minHeight:Y});if(he!=null&&he.spacingTop){const oe=O.rowSpacingType==="border"?"borderTopWidth":"marginTop";te[oe]=he.spacingTop}if(he!=null&&he.spacingBottom){const oe=O.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let xe=te[oe];typeof xe!="number"&&(xe=parseInt(xe||"0",10)),xe+=he.spacingBottom,te[oe]=xe}return te},[y,u,a,Y,he,O.rowSpacingType]),ee=F.current.unstable_applyPipeProcessors("rowClassName",[],l);if(typeof O.getRowClassName=="function"){var Z;const te=i-(((Z=I.range)==null?void 0:Z.firstRowIndex)||0),oe=m({},F.current.getRowParams(l),{isFirstVisible:te===0,isLastVisible:te===I.rows.length-1,indexRelativeToCurrentPage:te});ee.push(O.getRowClassName(oe))}const fe=CH(1e4,20,80),le=F.current.getRowNode(l);if(!le)return null;const ge=le.type,me=[];for(let te=0;te<g.length;te+=1){const oe=g[te];let xe=b+te;C!==void 0&&x&&(f[C].field===oe.field?xe=C:xe-=1);const Oe=F.current.unstable_getCellColSpanInfo(l,xe);if(Oe&&!Oe.spannedByColSpan)if(ge!=="skeletonRow"){const{colSpan:Ve,width:Te}=Oe.cellProps,se={width:Te,colSpan:Ve,showRightBorder:O.showCellVerticalBorder,indexRelativeToAllColumns:xe};me.push(de(oe,se))}else{const{width:Ve}=Oe.cellProps,Te=Math.round(fe());me.push(v.jsx(re.skeletonCell,{width:Ve,contentWidth:Te,field:oe.field,align:oe.align},oe.field))}}const Ie=h-$,Se=s?{onClick:q,onDoubleClick:G("rowDoubleClick",T),onMouseEnter:G("rowMouseEnter",P),onMouseLeave:G("rowMouseLeave",k),onMouseOut:G("rowMouseOut",E),onMouseOver:G("rowMouseOver",_)}:null;return v.jsxs("div",m({ref:A,"data-id":l,"data-rowindex":i,role:"row",className:ne(...ee,W.root,p,o&&"Mui-hovered"),"aria-rowindex":H,"aria-selected":r,style:pe},Se,R,{children:[me,Ie>0&&v.jsx(iV,{width:Ie})]}))}),cV=Mp(aV);function uV({privateApiRef:e,props:t,children:n}){const r=d.useRef(e.current.getPublicApi());return v.jsx(KS.Provider,{value:t,children:v.jsx(qS.Provider,{value:e,children:v.jsx(US.Provider,{value:r,children:n})})})}const dV=yH()&&window.localStorage.getItem("DEBUG")!=null,Zi=()=>{},pV={debug:Zi,info:Zi,warn:Zi,error:Zi},pC=["debug","info","warn","error"];function fC(e,t,n=console){const r=pC.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return pC.reduce((l,s,i)=>(i>=r?l[s]=(...a)=>{const[c,...u]=a;n[s](`MUI: ${e} - ${c}`,...u)}:l[s]=Zi,l),{})}const fV=(e,t)=>{const n=d.useCallback(r=>dV?fC(r,"debug",t.logger):t.logLevel?fC(r,t.logLevel.toString(),t.logger):pV,[t.logLevel,t.logger]);et(e,{getLogger:n},"private")};class xv{static create(t){return new xv(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class mV{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),l=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const i=o[s];r.highPriority.has(i)&&i.apply(this,n)}for(let s=0;s<l.length;s+=1){const i=l[s];r.regular.has(i)&&i.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...l){r.removeListener(t,o),n.apply(r,l)})}}const HP=Symbol("mui.api_private"),hV=e=>e.isPropagationStopped!==void 0;let mC=0;function gV(e){var t;const n=(t=e.current)==null?void 0:t[HP];if(n)return n;const r={},o={state:r,store:xv.create(r),instanceId:{id:mC}};return mC+=1,o.getPublicApi=()=>e.current,o.register=(l,s)=>{Object.keys(s).forEach(i=>{const a=s[i],c=o[i];if((c==null?void 0:c.spying)===!0?c.target=a:o[i]=a,l==="public"){const u=e.current,p=u[i];(p==null?void 0:p.spying)===!0?p.target=a:u[i]=a}})},o.register("private",{caches:{},eventManager:new mV}),o}function vV(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[HP]:e.current}}function yV(e,t){const n=d.useRef(),r=d.useRef();r.current||(r.current=gV(n)),n.current||(n.current=vV(r));const o=d.useCallback((...s)=>{const[i,a,c={}]=s;if(c.defaultMuiPrevented=!1,hV(c)&&c.isPropagationStopped())return;const u=t.signature===lo.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(i,a,c,u)},[r,t.signature]),l=d.useCallback((s,i,a)=>{r.current.eventManager.on(s,i,a);const c=r.current;return()=>{c.eventManager.removeListener(s,i)}},[r]);return et(r,{subscribeEvent:l,publishEvent:o},"public"),d.useImperativeHandle(e,()=>n.current,[n]),d.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const bV=(e,t)=>{const n=d.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},CV=e=>{const t=d.useRef({}),n=d.useRef(!1),r=d.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=d.useCallback((u,p,f)=>{t.current[u]||(t.current[u]={processors:new Map,appliers:{}});const g=t.current[u];return g.processors.get(p)!==f&&(g.processors.set(p,f),r(g)),()=>{t.current[u].processors.set(p,null)}},[r]),l=d.useCallback((u,p,f)=>(t.current[u]||(t.current[u]={processors:new Map,appliers:{}}),t.current[u].appliers[p]=f,()=>{const g=t.current[u].appliers,h=K(g,[p].map(Ha));t.current[u].appliers=h}),[]),s=d.useCallback(u=>{const p=t.current[u];r(p)},[r]),i=d.useCallback((...u)=>{const[p,f,g]=u;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((b,w)=>w?w(b,g):b,f):f},[]),a={registerPipeProcessor:o,registerPipeApplier:l,requestPipeProcessorsApplication:s},c={unstable_applyPipeProcessors:i};et(e,a,"private"),et(e,c,"public")},Gt=(e,t,n)=>{const r=d.useRef(),o=d.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=d.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);fc(()=>{l()});const s=d.useRef(!0);d.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},wv=(e,t,n)=>{const r=d.useRef(),o=d.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=d.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);fc(()=>{l()});const s=d.useRef(!0);d.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},dd=(e,t,n,r)=>{const o=d.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);fc(()=>{o()});const l=d.useRef(!0);d.useEffect(()=>{l.current?l.current=!1:o()},[o])},Vl="none",hC={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},xV=e=>{const t=d.useRef(new Map),n=d.useRef({}),r=d.useCallback((a,c,u)=>{const p=()=>{const h=n.current[c],b=K(h,[a].map(Ha));n.current[c]=b};n.current[c]||(n.current[c]={});const f=n.current[c],g=f[a];return f[a]=u,!g||g===u||a===e.current.getActiveStrategy(hC[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),p},[e]),o=d.useCallback((a,c)=>{const u=e.current.getActiveStrategy(hC[a]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[u])throw new Error(`No processor found for processor "${a}" on strategy "${u}"`);const f=p[u];return f(c)},[e]),l=d.useCallback(a=>{var c;const p=Array.from(t.current.entries()).find(([,f])=>f.group!==a?!1:f.isAvailable());return(c=p==null?void 0:p[0])!=null?c:Vl},[]),s=d.useCallback((a,c,u)=>{t.current.set(c,{group:a,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);et(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:l,setStrategyAvailability:s},"private")},wV=(e,t)=>{const n=d.useRef({}),[,r]=d.useState(),o=d.useCallback(u=>{n.current[u.stateId]=u},[]),l=d.useCallback((u,p)=>{let f;if(CP(u)?f=u(e.current.state):f=u,e.current.state===f)return!1;let g=!1;const h=[];if(Object.keys(n.current).forEach(b=>{const w=n.current[b],C=w.stateSelector(e.current.state,e.current.instanceId),y=w.stateSelector(f,e.current.instanceId);y!==C&&(h.push({stateId:w.stateId,hasPropChanged:y!==w.propModel}),w.propModel!==void 0&&y!==w.propModel&&(g=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(b=>b.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=f,e.current.publishEvent&&e.current.publishEvent("stateChange",f),e.current.store.update(f)),h.length===1){const{stateId:b,hasPropChanged:w}=h[0],C=n.current[b],y=C.stateSelector(f,e.current.instanceId);if(C.propOnChange&&w){const x=t.signature===lo.DataGridPro?{api:e.current,reason:p}:{reason:p};C.propOnChange(y,x)}g||e.current.publishEvent(C.changeEvent,y,{reason:p})}return!g},[e,t.signature]),s=d.useCallback((u,p,f)=>e.current.setState(g=>m({},g,{[u]:p(g[u])}),f),[e]),i=d.useCallback(()=>r(()=>e.current.state),[e]),a={setState:l,forceUpdate:i},c={updateControlState:s,registerControlState:o};et(e,a,"public"),et(e,c,"private")},SV=(e,t)=>{const n=yV(e,t);return fV(n,t),wV(n,t),CV(n),xV(n),bV(n,t),n.current.register("private",{rootProps:t}),n},Rn=(e,t,n)=>{const r=d.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},PV=/(\d+)-(\d+)-(\d+)/,kV=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function as(e,t,n,r){if(!e.value)return null;const[o,l,s,i,a]=e.value.match(n?kV:PV).slice(1).map(Number),c=new Date(o,l-1,s,i||0,a||0).getTime();return u=>{if(!u)return!1;if(r)return t(u.getTime(),c);const f=new Date(u).setHours(n?u.getHours():0,n?u.getMinutes():0,0,0);return t(f,c)}}const BP=e=>hc([{value:"is",getApplyFilterFnV7:t=>as(t,(n,r)=>n===r,e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>as(t,(n,r)=>n!==r,e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>as(t,(n,r)=>n>r,e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>as(t,(n,r)=>n>=r,e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>as(t,(n,r)=>n<r,e,!e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>as(t,(n,r)=>n<=r,e),InputComponent:is,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function VP({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
227
+ `))}function EV({value:e,field:t,id:n}){return e?(VP({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function IV({value:e,field:t,id:n}){return e?(VP({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const MV=m({},Ar,{type:"date",sortComparator:vv,valueFormatter:EV,filterOperators:BP(),renderEditCell:pP,pastedValueParser:e=>new Date(e)}),$V=m({},Ar,{type:"dateTime",sortComparator:vv,valueFormatter:IV,filterOperators:BP(!0),renderEditCell:pP,pastedValueParser:e=>new Date(e)}),Ao=e=>e==null?null:Number(e),gC=mc(e=>e==null||Number.isNaN(e)||e===""?null:t=>Ao(t)===Ao(e)),RV=()=>hc([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ao(t)===e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>Ao(t)!==e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)>e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)>=e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)<e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Ao(t)<=e.value,InputComponent:Xr,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:jP,InputComponentProps:{type:"number"}}]),TV=m({},Ar,{type:"number",align:"right",headerAlign:"right",sortComparator:Qa,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>vH(e)?e.toLocaleString():e||"",filterOperators:RV(),getApplyQuickFilterFn:_P(gC),getApplyQuickFilterFnV7:gC}),cs=e=>e==null||!fv(e)?e:e.value,OV=()=>hc([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>cs(t)===cs(e.value),InputComponent:sC},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>cs(t)!==cs(e.value),InputComponent:sC},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(cs);return n=>t.includes(cs(n))},InputComponent:k3}]),FV=e=>typeof e[0]=="object",DV=e=>fv(e)?e.value:e,jV=e=>fv(e)?e.label:String(e),_V=m({},Ar,{type:"singleSelect",getOptionLabel:jV,getOptionValue:DV,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,l=e.api.getColumn(n);if(!Ol(l))return"";let s;if(typeof l.valueOptions=="function"?s=l.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=l.valueOptions,r==null)return"";if(!s)return r;if(!FV(s))return l.getOptionLabel(r);const i=s.find(a=>l.getOptionValue(a)===r);return i?l.getOptionLabel(i):""},renderEditCell:b4,filterOperators:OV(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],l=n.getOptionValue;if(o.find(i=>l(i)===e))return e}}),GP="__default__",LV=()=>({string:Ar,number:TV,date:MV,dateTime:$V,boolean:zP,singleSelect:_V,[$p]:oV,[GP]:Ar});function Jm(e,t){if(typeof e=="string"){if(t.shouldAppendQuotes||t.escapeFormulas){const n=e.replace(/"/g,'""');return[t.delimiter,`
228
+ `,"\r",'"'].some(r=>e.includes(r))?`"${n}"`:t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(n[0])?`'${n}`:n}return e}return e}const WP=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){var l;const i=e.colDef.type;if(i==="number")o=String(e.value);else if(i==="date"||i==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Jm(o,n)};co(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class eh{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const NV=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const l=new eh({csvOptions:r});return t.forEach(s=>{const i=n(e,s.field);l.addValue(WP(i,{ignoreValueFormatter:o,csvOptions:r}))}),l.getRowString()};function AV(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:l}=e,s=n.reduce((p,f)=>`${p}${NV({id:f,columns:t,getCellParams:l.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
229
+ `,"").trim();if(!r.includeHeaders)return s;const i=t.filter(p=>p.field!==wi.field),a=[];if(r.includeColumnGroupsHeaders){const p=l.current.unstable_getAllGroupDetails();let f=0;const g=i.reduce((h,b)=>{const w=l.current.unstable_getColumnGroupPath(b.field);return h[b.field]=w,f=Math.max(f,w.length),h},{});for(let h=0;h<f;h+=1){const b=new eh({csvOptions:r,sanitizeCellValue:Jm});a.push(b),i.forEach(w=>{const C=(g[w.field]||[])[h],y=p[C];b.addValue(y?y.headerName||y.groupId:"")})}}const c=new eh({csvOptions:r,sanitizeCellValue:Jm});return i.forEach(p=>{c.addValue(p.headerName||p.field)}),a.push(c),`${`${a.map(p=>p.getRowString()).join(`\r
230
230
  `)}\r
231
- `}${s}`.trim()}function vC(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function zV(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{vC(e)}):vC(e)}function HV(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const BV=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,l=d.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||HV(s.target))return;let i="";if(e.current.getSelectedRows().size>0)i=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Gn(e);if(c){const u=e.current.getCellParams(c.id,c.field);i=WP(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}i=e.current.unstable_applyPipeProcessors("clipboardCopy",i),i&&(zV(i),e.current.publishEvent("clipboardCopy",i))},[e,r,o]);xH(e,e.current.rootElementRef,"keydown",l),Rt(e,"clipboardCopy",t.onClipboardCopy)},VV=e=>m({},e,{columnMenu:{open:!1}}),GV=e=>{const t=dn(e,"useGridColumnMenu"),n=d.useCallback(s=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===s?a:(t.debug("Opening Column Menu"),m({},a,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=d.useCallback(()=>{const s=Km(e.current.state);if(s.field){const a=bi(e),c=jr(e),u=xo(e);let p=s.field;if(a[p]||(p=u[0]),c[p]===!1){const f=u.filter(h=>h===p?!0:c[h]!==!1),g=f.indexOf(p);p=f[g+1]||f[g-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),m({},a,{columnMenu:m({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=d.useCallback(s=>{t.debug("Toggle Column Menu");const i=Km(e.current.state);!i.open||i.field!==s?n(s):r()},[e,t,n,r]);et(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Le(e,"columnResizeStart",r),Le(e,"virtualScrollerWheel",e.current.hideColumnMenu),Le(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},UP=["maxWidth","minWidth","width","flex"];function WV({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const i=o.all[s];i&&i.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function l(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let i=e,a=t,c=0;o.frozenFields.forEach(u=>{i-=o.all[u].computedWidth,a-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const p=n[u];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let g=i/a*p.flex;g<p.minWidth?(c+=p.minWidth-g,g=p.minWidth,s.min[p.field]=!0):g>p.maxWidth&&(c+=p.maxWidth-g,g=p.maxWidth,s.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:g,flex:p.flex}}c<0?Object.keys(s.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(s.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),l()}return l(),o.all}const eh=(e,t)=>{const n={};let r=0,o=0;const l=[];e.orderedFields.forEach(i=>{const a=m({},e.lookup[i]);if(e.columnVisibilityModel[i]===!1)a.computedWidth=0;else{let c;a.flex&&a.flex>0?(r+=a.flex,c=0,l.push(a)):c=ni(a.width||Nr.width,a.minWidth||Nr.minWidth,a.maxWidth||Nr.maxWidth),o+=c,a.computedWidth=c}n[i]=a});const s=Math.max(t-o,0);if(r>0&&t>0){const i=WV({initialFreeSpace:s,totalFlexUnits:r,flexColumns:l});Object.keys(i).forEach(a=>{n[a].computedWidth=i[a].computedWidth})}return m({},e,{lookup:n})},UV=(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 l={},s=[];for(let u=0;u<n.length;u+=1){const p=n[u];e.lookup[p]&&(l[p]=!0,s.push(p))}const i=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(u=>!l[u])],a=m({},e.lookup);for(let u=0;u<o.length;u+=1){const p=o[u],f=m({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([g,h])=>{f[g]=h===-1?1/0:h}),a[p]=f}return m({},e,{orderedFields:i,lookup:a})};function yC(e,t){let n=e[GP];return t&&e[t]&&(n=e[t]),n}const fs=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=jr(e),keepOnlyColumnsToUpsert:l=!1})=>{var s,i,a;const c=!e.current.state.columns;let u;if(c)u={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const h=Ol(e.current.state);u={orderedFields:l?[]:[...h.orderedFields],lookup:m({},h.lookup),columnVisibilityModel:o}}let p={};l&&!c&&(p=Object.keys(u.lookup).reduce((h,b)=>m({},h,{[b]:!1}),{})),t.forEach(h=>{const{field:b}=h;p[b]=!0;let w=u.lookup[b];w==null?(w=m({},yC(r,h.type),{field:b,hasBeenResized:!1}),u.orderedFields.push(b)):l&&u.orderedFields.push(b),w&&w.type!==h.type&&(w=m({},yC(r,h.type),{field:b}));let C=w.hasBeenResized;UP.forEach(y=>{h[y]!==void 0&&(C=!0,h[y]===-1&&(h[y]=1/0))}),u.lookup[b]=m({},w,h,{hasBeenResized:C})}),l&&!c&&Object.keys(u.lookup).forEach(h=>{p[h]||delete u.lookup[h]});const f=e.current.unstable_applyPipeProcessors("hydrateColumns",u),g=UV(f,n);return eh(g,(s=(i=(a=e.current).getRootDimensions)==null||(i=i.call(a))==null?void 0:i.viewportInnerSize.width)!=null?s:0)},bC=e=>t=>m({},t,{columns:e});function th({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let l=e;for(let s=n;s<r;s+=1)if(o[s]){const a=o[s].id,c=t.current.unstable_getCellColSpanInfo(a,e);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex)}return l}function KV({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:l,visibleRows:s}){const i=Math.max(e-n,t);return th({firstColumnToRender:i,apiRef:l,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function Sv(e,t){const n=xi(e),r=dc(e);return Math.floor(t*n)*((r??0)+1)}const KP=LV(),qV=(e,t,n)=>{var r,o,l,s;const i=fs({apiRef:n,columnTypes:KP,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(l=t.columnVisibilityModel)!=null?l:(s=t.initialState)==null||(s=s.columns)==null?void 0:s.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return m({},e,{columns:i})};function YV(e,t){var n,r;const o=dn(e,"useGridColumns"),l=KP,s=d.useRef(t.columns),i=d.useRef(l);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:jr,changeEvent:"columnVisibilityModelChange"});const a=d.useCallback(I=>{o.debug("Updating columns state."),e.current.setState(bC(I)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",I.orderedFields)},[o,e]),c=d.useCallback(I=>bi(e)[I],[e]),u=d.useCallback(()=>ro(e),[e]),p=d.useCallback(()=>an(e),[e]),f=d.useCallback((I,$=!0)=>($?an(e):ro(e)).findIndex(N=>N.field===I),[e]),g=d.useCallback(I=>{const $=f(I);return ti(e)[$]},[e,f]),h=d.useCallback(I=>{jr(e)!==I&&(e.current.setState(j=>m({},j,{columns:fs({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:I,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,l]),b=d.useCallback(I=>{const $=fs({apiRef:e,columnTypes:l,columnsToUpsert:I,initialState:void 0,keepOnlyColumnsToUpsert:!1});a($)},[e,a,l]),w=d.useCallback((I,$)=>{var j;const N=jr(e),M=(j=N[I])!=null?j:!0;if($!==M){const D=m({},N,{[I]:$});e.current.setColumnVisibilityModel(D)}},[e]),C=d.useCallback(I=>xo(e).findIndex(j=>j===I),[e]),y=d.useCallback((I,$)=>{const j=xo(e),N=C(I);if(N===$)return;o.debug(`Moving column ${I} to index ${$}`);const M=[...j],D=M.splice(N,1)[0];M.splice($,0,D),a(m({},Ol(e.current.state),{orderedFields:M}));const A={column:e.current.getColumn(I),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(I),oldIndex:N};e.current.publishEvent("columnIndexChange",A)},[e,o,a,C]),x=d.useCallback((I,$)=>{var j,N;o.debug(`Updating column ${I} width to ${$}`);const M=Ol(e.current.state),D=M.lookup[I],A=m({},D,{width:$,hasBeenResized:!0});a(eh(m({},M,{lookup:m({},M.lookup,{[I]:A})}),(j=(N=e.current.getRootDimensions())==null?void 0:N.viewportInnerSize.width)!=null?j:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(I),colDef:A,width:$})},[e,o,a]),S={getColumn:c,getAllColumns:u,getColumnIndex:f,getColumnPosition:g,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:C,updateColumns:b,setColumnVisibilityModel:h,setColumnVisibility:w,setColumnWidth:x},T={setColumnIndex:y};et(e,S,"public"),et(e,T,t.signature===oo.DataGrid?"private":"public");const P=d.useCallback((I,$)=>{var j,N;const M={},D=jr(e);(!$.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((j=(N=t.initialState)==null||(N=N.columns)==null?void 0:N.columnVisibilityModel)!=null?j:{}).length>0||Object.keys(D).length>0)&&(M.columnVisibilityModel=D),M.orderedFields=xo(e);const H=ro(e),z={};return H.forEach(W=>{if(W.hasBeenResized){const G={};UP.forEach(q=>{let re=W[q];re===1/0&&(re=-1),G[q]=re}),z[W.field]=G}}),Object.keys(z).length>0&&(M.dimensions=z),m({},I,{columns:M})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=d.useCallback((I,$)=>{var j;const N=(j=$.stateToRestore.columns)==null?void 0:j.columnVisibilityModel,M=$.stateToRestore.columns;if(N==null&&M==null)return I;const D=fs({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:M,columnVisibilityModel:N,keepOnlyColumnsToUpsert:!1});return e.current.setState(bC(D)),M!=null&&e.current.publishEvent("columnsChange",D.orderedFields),I},[e,l]),E=d.useCallback((I,$)=>{if($===Vl.columns){var j;const N=t.slots.columnsPanel;return v.jsx(N,m({},(j=t.slotProps)==null?void 0:j.columnsPanel))}return I},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),_=d.useCallback(I=>t.disableColumnSelector?I:[...I,"columnMenuColumnsItem"],[t.disableColumnSelector]);Gt(e,"columnMenu",_),Gt(e,"exportState",P),Gt(e,"restoreState",k),Gt(e,"preferencePanel",E);const R=d.useRef(null);Le(e,"viewportInnerSizeChange",I=>{R.current!==I.width&&(R.current=I.width,a(eh(Ol(e.current.state),I.width)))});const L=d.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const I=fs({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(I)},[e,o,a,l]);wv(e,"hydrateColumns",L);const O=d.useRef(!0);d.useEffect(()=>{if(O.current){O.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&i.current===l)return;const I=fs({apiRef:e,columnTypes:l,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,i.current=l,a(I)},[o,e,a,t.columns,l]),d.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const QV=.7,XV=1.3,qP={compact:QV,comfortable:XV,standard:1},ZV=(e,t)=>m({},e,{density:{value:t.density,factor:qP[t.density]}}),JV=(e,t)=>{const n=dn(e,"useDensity"),r=d.useCallback(l=>{n.debug(`Set grid density to ${l}`),e.current.setState(s=>{const i=cv(s),a={value:l,factor:qP[l]};return Dl(i,a)?s:m({},s,{density:a})}),e.current.forceUpdate()},[n,e]);d.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),et(e,{setDensity:r},"public")};function e6(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),l=document.createElement("a");l.href=o,l.download=r,l.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const YP=({apiRef:e,options:t})=>{const n=ro(e);return t.fields?t.fields.reduce((o,l)=>{const s=n.find(i=>i.field===l);return s&&o.push(s),o},[]):(t.allColumns?n:an(e)).filter(o=>!o.disableExport)},t6=({apiRef:e})=>{var t,n;const r=hz(e),o=Fr(e),l=e.current.getSelectedRows(),s=r.filter(u=>o[u].type!=="footer"),i=Ci(e),a=(i==null||(t=i.top)==null?void 0:t.map(u=>u.id))||[],c=(i==null||(n=i.bottom)==null?void 0:n.map(u=>u.id))||[];return s.unshift(...a),s.push(...c),l.size>0?s.filter(u=>l.has(u)):s},n6=(e,t)=>{const n=dn(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,l=d.useCallback((c={})=>{var u,p,f,g,h;n.debug("Get data as CSV");const b=YP({apiRef:e,options:c}),C=((u=c.getRowsToExport)!=null?u:t6)({apiRef:e});return AV({columns:b,rowIds:C,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:(p=c.shouldAppendQuotes)!=null?p:!0,includeHeaders:(f=c.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(g=c.includeColumnGroupsHeaders)!=null?g:!0,escapeFormulas:(h=c.escapeFormulas)!=null?h:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=d.useCallback(c=>{n.debug("Export data as CSV");const u=l(c),p=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});e6(p,"csv",c==null?void 0:c.fileName)},[n,l]);et(e,{getDataAsCsv:l,exportDataAsCsv:s},"public");const a=d.useCallback((c,u)=>{var p;return(p=u.csvOptions)!=null&&p.disableToolbarButton?c:[...c,{component:v.jsx(M3,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Gt(e,"exportMenu",a)},gu=(e,t,n)=>{var r;let o=e.paginationModel;const l=e.rowCount,s=(r=n==null?void 0:n.pageSize)!=null?r:o.pageSize,i=wP(l,s);n&&((n==null?void 0:n.page)!==o.page||(n==null?void 0:n.pageSize)!==o.pageSize)&&(o=n);const a=PH(o.page,i);return a!==o.page&&(o=m({},o,{page:a})),PP(o.pageSize,t),o},r6=(e,t)=>{var n;const r=dn(e,"useGridPaginationModel"),o=Re(e,xi),l=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:sr,changeEvent:"paginationModelChange"});const s=d.useCallback(b=>{const w=sr(e);b!==w.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:w.pageSize}))},[e,r]),i=d.useCallback(b=>{const w=sr(e);b!==w.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:w.page}))},[e,r]),a=d.useCallback(b=>{const w=sr(e);b!==w&&(r.debug("Setting 'paginationModel' to",b),e.current.setState(C=>m({},C,{pagination:m({},C.pagination,{paginationModel:gu(C.pagination,t.signature,b)})})))},[e,r,t.signature]);et(e,{setPage:s,setPageSize:i,setPaginationModel:a},"public");const u=d.useCallback((b,w)=>{var C;const y=sr(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((C=t.initialState)==null||(C=C.pagination)==null?void 0:C.paginationModel)!=null||y.page!==0&&y.pageSize!==SH(t.autoPageSize)?m({},b,{pagination:m({},b.pagination,{paginationModel:y})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=d.useCallback((b,w)=>{var C,y;const x=(C=w.stateToRestore.pagination)!=null&&C.paginationModel?m({},SP(t.autoPageSize),(y=w.stateToRestore.pagination)==null?void 0:y.paginationModel):sr(e);return e.current.setState(S=>m({},S,{pagination:m({},S.pagination,{paginationModel:gu(S.pagination,t.signature,x)})})),b},[e,t.autoPageSize,t.signature]);Gt(e,"exportState",u),Gt(e,"restoreState",p);const f=()=>{var b;const w=sr(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize})},g=d.useCallback(()=>{if(!t.autoPageSize)return;const b=e.current.getRootDimensions()||{viewportInnerSize:{height:0}},w=aP(e),C=Math.floor((b.viewportInnerSize.height-w.top-w.bottom)/l);e.current.setPageSize(C)},[e,t.autoPageSize,l]),h=d.useCallback(b=>{if(b==null)return;const w=sr(e),C=EH(e);w.page>C-1&&e.current.setPage(Math.max(0,C-1))},[e]);Le(e,"viewportInnerSizeChange",g),Le(e,"paginationModelChange",f),Le(e,"rowCountChange",h),d.useEffect(()=>{e.current.setState(b=>m({},b,{pagination:m({},b.pagination,{paginationModel:gu(b.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),d.useEffect(g,[g])};function o6(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function l6(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const s6=(e,t)=>{const n=dn(e,"useGridPrintExport"),r=d.useRef(null),o=d.useRef(null),l=d.useRef({}),s=d.useRef([]);d.useEffect(()=>{r.current=jt(e.current.rootElementRef.current)},[e]);const i=d.useCallback((h,b,w)=>new Promise(C=>{const y=YP({apiRef:e,options:{fields:h,allColumns:b}}).map(T=>T.field),x=ro(e),S={};x.forEach(T=>{S[T.field]=y.includes(T.field)}),w&&(S[wi.field]=!0),e.current.setColumnVisibilityModel(S),C()}),[e]),a=d.useCallback(h=>{const w=h({apiRef:e}).map(C=>e.current.getRow(C));e.current.setRows(w)},[e]),c=d.useCallback((h,b)=>{var w,C;const y=m({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),x=h.contentDocument;if(!x)return;const S=Ya(e.current.state),T=e.current.rootElementRef.current,P=T.cloneNode(!0),k=P.querySelector(`.${B.main}`);k.style.overflow="visible",P.style.contain="size";const _=P.querySelector(`.${B.columnHeaders}`).querySelector(`.${B.columnHeadersInner}`);_.style.width="100%";let R=((w=T.querySelector(`.${B.toolbarContainer}`))==null?void 0:w.offsetHeight)||0,F=((C=T.querySelector(`.${B.footerContainer}`))==null?void 0:C.offsetHeight)||0;if(y.hideToolbar){var L;(L=P.querySelector(`.${B.toolbarContainer}`))==null||L.remove(),R=0}if(y.hideFooter){var O;(O=P.querySelector(`.${B.footerContainer}`))==null||O.remove(),F=0}const I=S.currentPageTotalHeight+Sv(e,t.columnHeaderHeight)+R+F;if(P.style.height=`${I}px`,P.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const M=P.querySelector(`.${B.footerContainer}`);M.style.position="absolute",M.style.width="100%",M.style.top=`${I-F}px`}const $=document.createElement("div");$.appendChild(P),x.body.innerHTML=$.innerHTML;const j=typeof y.pageStyle=="function"?y.pageStyle():y.pageStyle;if(typeof j=="string"){const M=x.createElement("style");M.appendChild(x.createTextNode(j)),x.head.appendChild(M)}y.bodyClassName&&x.body.classList.add(...y.bodyClassName.split(" "));const N=[];if(y.copyStyles){const M=T.getRootNode(),A=(M.constructor.name==="ShadowRoot"?M:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let H=0;H<A.length;H+=1){const z=A[H];if(z.tagName==="STYLE"){const W=x.createElement(z.tagName),G=z.sheet;if(G){let q="";for(let re=0;re<G.cssRules.length;re+=1)typeof G.cssRules[re].cssText=="string"&&(q+=`${G.cssRules[re].cssText}\r
232
- `);W.appendChild(x.createTextNode(q)),x.head.appendChild(W)}}else if(z.getAttribute("href")){const W=x.createElement(z.tagName);for(let G=0;G<z.attributes.length;G+=1){const q=z.attributes[G];q&&W.setAttribute(q.nodeName,q.nodeValue||"")}N.push(new Promise(G=>{W.addEventListener("load",()=>G())})),x.head.appendChild(W)}}}Promise.all(N).then(()=>{h.contentWindow.print()})},[e,r,t.columnHeaderHeight]),u=d.useCallback(h=>{var b;r.current.body.removeChild(h),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.unstable_setVirtualization(!0),e.current.setRows(s.current),o.current=null,l.current={},s.current=[]},[e]),f={exportDataAsPrint:d.useCallback(async h=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),l.current=jr(e);const b=bo(e);if(s.current=Xi(e).map(C=>b[C]),t.pagination){const y={page:0,pageSize:rP(e)};e.current.setState(x=>m({},x,{pagination:m({},x.pagination,{paginationModel:gu(x.pagination,"DataGridPro",y)})})),e.current.forceUpdate()}await i(h==null?void 0:h.fields,h==null?void 0:h.allColumns,h==null?void 0:h.includeCheckboxes),h!=null&&h.getRowsToExport&&a(h.getRowsToExport),e.current.unstable_setVirtualization(!1),await o6();const w=l6(h==null?void 0:h.fileName);w.onload=()=>{c(w,h),w.contentWindow.matchMedia("print").addEventListener("change",y=>{y.matches===!1&&u(w)})},r.current.body.appendChild(w)},[t,n,e,c,u,i,a])};et(e,f,"public");const g=d.useCallback((h,b)=>{var w;return(w=b.printOptions)!=null&&w.disableToolbarButton?h:[...h,{component:v.jsx($3,{options:b.printOptions}),componentName:"printExport"}]},[]);Gt(e,"exportMenu",g)},i6=(e,t,n)=>{var r,o,l;const s=(r=(o=t.filterModel)!=null?o:(l=t.initialState)==null||(l=l.filter)==null?void 0:l.filterModel)!=null?r:Ka();return m({},e,{filter:{filterModel:NP(s,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},a6=e=>e.filteredRowsLookup;function CC(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function c6(){return Cp(Object.values)}const u6=(e,t)=>{var n,r;const o=dn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Jt,changeEvent:"filterModelChange"});const l=d.useCallback(()=>{e.current.setState(R=>{const F=Jt(R,e.current.instanceId),L=t.filterMode==="client"?X3(F,e,t.disableEval):null,O=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:F??Ka()}),I=m({},R,{filter:m({},R.filter,O)}),$=CC(e,I);return m({},I,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),s=d.useCallback((R,F)=>F==null||F.filterable===!1||t.disableColumnFilter?R:[...R,"columnMenuFilterItem"],[t.disableColumnFilter]),i=d.useCallback(()=>{l(),e.current.forceUpdate()},[e,l]),a=d.useCallback(R=>{const F=Jt(e),L=[...F.items],O=L.findIndex(I=>I.id===R.id);O===-1?L.push(R):L[O]=R,e.current.setFilterModel(m({},F,{items:L}),"upsertFilterItem")},[e]),c=d.useCallback(R=>{const F=Jt(e),L=[...F.items];R.forEach(O=>{const I=R.findIndex($=>$.id===O.id);I===-1?L.push(O):L[I]=O}),e.current.setFilterModel(m({},F,{items:R}),"upsertFilterItems")},[e]),u=d.useCallback(R=>{const F=Jt(e),L=F.items.filter(O=>O.id!==R.id);L.length!==F.items.length&&e.current.setFilterModel(m({},F,{items:L}),"deleteFilterItem")},[e]),p=d.useCallback((R,F,L)=>{if(o.debug("Displaying filter panel"),R){const O=Jt(e),I=O.items.filter(M=>{var D;if(M.value!==void 0)return!(Array.isArray(M.value)&&M.value.length===0);const H=(D=e.current.getColumn(M.field).filterOperators)==null?void 0:D.find(W=>W.value===M.operator);return!(typeof(H==null?void 0:H.requiresFilterValue)>"u"?!0:H==null?void 0:H.requiresFilterValue)});let $;const j=I.find(M=>M.field===R),N=e.current.getColumn(R);j?$=I:t.disableMultipleColumnsFiltering?$=[Xm({field:R,operator:N.filterOperators[0].value},e)]:$=[...I,Xm({field:R,operator:N.filterOperators[0].value},e)],e.current.setFilterModel(m({},O,{items:$}))}e.current.showPreferences(Vl.filters,F,L)},[e,o,t.disableMultipleColumnsFiltering]),f=d.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),g=d.useCallback(R=>{const F=Jt(e);F.logicOperator!==R&&e.current.setFilterModel(m({},F,{logicOperator:R}),"changeLogicOperator")},[e]),h=d.useCallback(R=>{const F=Jt(e);Dl(F.quickFilterValues,R)||e.current.setFilterModel(m({},F,{quickFilterValues:[...R]}))},[e]),b=d.useCallback((R,F)=>{Jt(e)!==R&&(o.debug("Setting filter model"),e.current.updateControlState("filter",aC(R,t.disableMultipleColumnsFiltering,e),F),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),w={setFilterLogicOperator:g,unstable_applyFilters:i,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:c,setFilterModel:b,showFilterPanel:p,hideFilterPanel:f,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics};et(e,w,"public");const C=d.useCallback((R,F)=>{var L;const O=Jt(e);return!F.exportOnlyDirtyModels||t.filterModel!=null||((L=t.initialState)==null||(L=L.filter)==null?void 0:L.filterModel)!=null||!Dl(O,Ka())?m({},R,{filter:{filterModel:O}}):R},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),y=d.useCallback((R,F)=>{var L;const O=(L=F.stateToRestore.filter)==null?void 0:L.filterModel;return O==null?R:(e.current.updateControlState("filter",aC(O,t.disableMultipleColumnsFiltering,e),"restoreState"),m({},R,{callbacks:[...R.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=d.useCallback((R,F)=>{if(F===Vl.filters){var L;const O=t.slots.filterPanel;return v.jsx(O,m({},(L=t.slotProps)==null?void 0:L.filterPanel))}return R},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:S}=t,T=rv(c6),P=d.useCallback(R=>{if(t.filterMode!=="client"||!R.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const F=bo(e),L={},{isRowMatchingFilters:O}=R,I={},$={passingFilterItems:null,passingQuickFilterValues:null},j=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let D=0;D<j.length;D+=1){const A=j[D],H=S?S(A):A.id;O(A,void 0,$);const z=J3([$.passingFilterItems],[$.passingQuickFilterValues],R.filterModel,e,I);L[H]=z}const N="auto-generated-group-footer-root";return F[N]&&(L[N]=!0),{filteredRowsLookup:L,filteredDescendantCountLookup:{}}},[e,t.filterMode,S,T]);Gt(e,"columnMenu",s),Gt(e,"exportState",C),Gt(e,"restoreState",y),Gt(e,"preferencePanel",x),dd(e,Gl,"filtering",P),dd(e,Gl,"visibleRowsLookupCreation",a6);const k=d.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const R=Jt(e),F=tz(e),L=R.items.filter(O=>O.field&&F[O.field]);L.length<R.items.length&&e.current.setFilterModel(m({},R,{items:L}))},[e,o]),E=d.useCallback(R=>{R==="filtering"&&e.current.unstable_applyFilters()},[e]),_=d.useCallback(()=>{e.current.setState(R=>m({},R,{visibleRowsLookup:CC(e,R)})),e.current.forceUpdate()},[e]);Le(e,"rowsSet",l),Le(e,"columnsChange",k),Le(e,"activeStrategyProcessorChange",E),Le(e,"rowExpansionChange",_),Le(e,"columnVisibilityModelChange",()=>{const R=Jt(e);R.quickFilterValues&&R.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),fc(()=>{e.current.unstable_applyFilters()}),vt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},d6=e=>m({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),p6=(e,t)=>{const n=dn(e,"useGridFocus"),r=d.useRef(null),o=d.useCallback((k,E)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),E)},[e]),l=d.useCallback((k,E)=>{const _=Gn(e);(_==null?void 0:_.id)===k&&(_==null?void 0:_.field)===E||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${k} and field=${E}`),m({},R,{tabIndex:{cell:{id:k,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(_&&o(_,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,E))))},[e,n,o]),s=d.useCallback((k,E={})=>{const _=Gn(e);o(_,E),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${k}`),m({},R,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),i=d.useCallback((k,E={})=>{const _=Gn(e);o(_,E),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${k}`),m({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=d.useCallback((k,E,_={})=>{const R=Gn(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),_),e.current.setState(F=>m({},F,{tabIndex:{columnGroupHeader:{field:k,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=d.useCallback(()=>nd(e),[e]),u=d.useCallback((k,E,_)=>{let R=e.current.getColumnIndex(E);const F=an(e),L=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode}),O=Ci(e),I=[].concat(O.top||[],L.rows,O.bottom||[]);let $=I.findIndex(D=>D.id===k);_==="right"?R+=1:_==="left"?R-=1:$+=1,R>=F.length?($+=1,$<I.length&&(R=0)):R<0&&($-=1,$>=0&&(R=F.length-1)),$=ni($,0,I.length-1);const j=I[$];if(!j)return;const N=e.current.unstable_getCellColSpanInfo(j.id,R);N&&N.spannedByColSpan&&(_==="left"||_==="below"?R=N.leftVisibleCellIndex:_==="right"&&(R=N.rightVisibleCellIndex)),R=ni(R,0,F.length-1);const M=F[R];e.current.setCellFocus(j.id,M.field)},[e,t.pagination,t.paginationMode]),p=d.useCallback(({id:k,field:E})=>{e.current.setCellFocus(k,E)},[e]),f=d.useCallback((k,E)=>{E.key==="Enter"||E.key==="Tab"||E.key==="Shift"||id(E.key)||e.current.setCellFocus(k.id,k.field)},[e]),g=d.useCallback(({field:k},E)=>{E.target===E.currentTarget&&e.current.setColumnHeaderFocus(k,E)},[e]),h=d.useCallback(({fields:k,depth:E},_)=>{if(_.target!==_.currentTarget)return;const R=nd(e);R!==null&&R.depth===E&&k.includes(R.field)||e.current.setColumnGroupHeaderFocus(k[0],E,_)},[e]),b=d.useCallback((k,E)=>{var _;(_=E.relatedTarget)!=null&&_.className.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(R=>m({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),w=d.useCallback(k=>{r.current=k},[]),C=d.useCallback(k=>{const E=r.current;r.current=null;const _=Gn(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:E}))return;if(!_){E&&e.current.setCellFocus(E.id,E.field);return}if((E==null?void 0:E.id)===_.id&&(E==null?void 0:E.field)===_.field)return;const F=e.current.getCellElement(_.id,_.field);F!=null&&F.contains(k.target)||(E?e.current.setCellFocus(E.id,E.field):(e.current.setState(L=>m({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(_,k)))},[e,o]),y=d.useCallback(k=>{if(k.cellMode==="view")return;const E=Gn(e);((E==null?void 0:E.id)!==k.id||(E==null?void 0:E.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),x=d.useCallback(()=>{const k=Gn(e);k&&!e.current.getRow(k.id)&&e.current.setState(E=>m({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),S=Ct(()=>{const k=Gn(e);if(!k)return;const E=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(E.rows.find(F=>F.id===k.id))return;const R=an(e);e.current.setState(F=>m({},F,{tabIndex:{cell:{id:E.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:l,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:i},P={moveFocusToRelativeCell:u,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:c};et(e,T,"public"),et(e,P,"private"),d.useEffect(()=>{const k=jt(e.current.rootElementRef.current);return k.addEventListener("mouseup",C),()=>{k.removeEventListener("mouseup",C)}},[e,C]),Le(e,"columnHeaderBlur",b),Le(e,"cellDoubleClick",p),Le(e,"cellMouseDown",w),Le(e,"cellKeyDown",f),Le(e,"cellModeChange",y),Le(e,"columnHeaderFocus",g),Le(e,"columnGroupHeaderFocus",h),Le(e,"rowsSet",x),Le(e,"paginationModelChange",S)};function f6(e,t){const n=Ci(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Rf=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},Tf=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},m6=(e,t)=>{const n=dn(e,"useGridKeyboardNavigation"),r=Zl(e,t).rows,o=Br(),l=d.useMemo(()=>f6(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,i=d.useCallback((C,y,x="left")=>{const S=fl(e),T=e.current.unstable_getCellColSpanInfo(y,C);T&&T.spannedByColSpan&&(x==="left"?C=T.leftVisibleCellIndex:x==="right"&&(C=T.rightVisibleCellIndex));const P=S.findIndex(E=>E.id===y);n.debug(`Navigating to cell row ${P}, col ${C}`),e.current.scrollToIndexes({colIndex:C,rowIndex:P});const k=e.current.getVisibleColumns()[C].field;e.current.setCellFocus(y,k)},[e,n]),a=d.useCallback((C,y)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const x=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFocus(x,y)},[e,n]),c=d.useCallback((C,y)=>{n.debug(`Navigating to header filter col ${C}`),e.current.scrollToIndexes({colIndex:C});const x=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFilterFocus(x,y)},[e,n]),u=d.useCallback((C,y,x)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const{field:S}=e.current.getVisibleColumns()[C];e.current.setColumnGroupHeaderFocus(S,y,x)},[e,n]),p=d.useCallback(C=>{var y;return(y=l[C])==null?void 0:y.id},[l]),f=d.useCallback((C,y)=>{const x=y.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(y.target)&&C.field!==wi.field||!e.current.getRootDimensions())return;const P=e.current.getViewportPageSize(),k=C.field?e.current.getColumnIndex(C.field):0,E=l.length>0?0:null,_=l.length-1,R=0,F=an(e).length-1,L=dc(e);let O=!0;switch(y.key){case"ArrowDown":{E!==null&&(s?c(k,y):i(k,p(E)));break}case"ArrowRight":{const I=Tf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});I!==null&&a(I,y);break}case"ArrowLeft":{const I=Rf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});I!==null&&a(I,y);break}case"ArrowUp":{L>0&&u(k,L-1,y);break}case"PageDown":{E!==null&&_!==null&&i(k,p(Math.min(E+P,_)));break}case"Home":{a(R,y);break}case"End":{a(F,y);break}case"Enter":{(y.ctrlKey||y.metaKey)&&e.current.toggleColumnMenu(C.field);break}case" ":break;default:O=!1}O&&y.preventDefault()},[e,l.length,s,c,i,p,o.direction,a,u]),g=d.useCallback((C,y)=>{if(!e.current.getRootDimensions())return;const S=_H(e)===C.field,T=LH(e)===C.field;if(S||T||!id(y.key))return;const P=e.current.getViewportPageSize(),k=C.field?e.current.getColumnIndex(C.field):0,E=0,_=l.length-1,R=0,F=an(e).length-1;let L=!0;switch(y.key){case"ArrowDown":{const O=p(E);O!=null&&i(k,O);break}case"ArrowRight":{const O=Tf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});O!==null&&c(O,y);break}case"ArrowLeft":{const O=Rf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});O!==null?c(O,y):e.current.setColumnHeaderFilterFocus(C.field,y);break}case"ArrowUp":{a(k,y);break}case"PageDown":{_!==null&&i(k,p(Math.min(E+P,_)));break}case"Home":{c(R,y);break}case"End":{c(F,y);break}case" ":break;default:L=!1}L&&y.preventDefault()},[e,l.length,c,o.direction,a,i,p]),h=d.useCallback((C,y)=>{if(!e.current.getRootDimensions())return;const S=nd(e);if(S===null)return;const{field:T,depth:P}=S,{fields:k,depth:E,maxDepth:_}=C,R=e.current.getViewportPageSize(),F=e.current.getColumnIndex(T),L=T?e.current.getColumnIndex(T):0,O=0,I=l.length-1,$=0,j=an(e).length-1;let N=!0;switch(y.key){case"ArrowDown":{E===_-1?a(F,y):u(F,P+1,y);break}case"ArrowUp":{E>0&&u(F,P-1,y);break}case"ArrowRight":{const M=k.length-k.indexOf(T)-1;F+M+1<=j&&u(F+M+1,P,y);break}case"ArrowLeft":{const M=k.indexOf(T);F-M-1>=$&&u(F-M-1,P,y);break}case"PageDown":{I!==null&&i(L,p(Math.min(O+R,I)));break}case"Home":{u($,P,y);break}case"End":{u(j,P,y);break}case" ":break;default:N=!1}N&&y.preventDefault()},[e,l.length,a,u,i,p]),b=d.useCallback((C,y)=>{if(pc(y))return;const x=e.current.getCellParams(C.id,C.field);if(x.cellMode===yt.Edit||!id(y.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:y,cell:x}))return;const T=e.current.getRootDimensions();if(l.length===0||!T)return;const P=o.direction,k=e.current.getViewportPageSize(),E=C.field?e.current.getColumnIndex(C.field):0,_=l.findIndex($=>$.id===C.id),R=0,F=l.length-1,L=0,O=an(e).length-1;let I=!0;switch(y.key){case"ArrowDown":{_<F&&i(E,p(_+1));break}case"ArrowUp":{_>R?i(E,p(_-1)):s?c(E,y):a(E,y);break}case"ArrowRight":{const $=Tf({currentColIndex:E,firstColIndex:L,lastColIndex:O,direction:P});$!==null&&i($,p(_),P==="rtl"?"left":"right");break}case"ArrowLeft":{const $=Rf({currentColIndex:E,firstColIndex:L,lastColIndex:O,direction:P});$!==null&&i($,p(_),P==="rtl"?"right":"left");break}case"Tab":{y.shiftKey&&E>L?i(E-1,p(_),"left"):!y.shiftKey&&E<O&&i(E+1,p(_),"right");break}case" ":{if(C.field===Cv)break;const j=C.colDef;if(j&&j.type==="treeDataGroup")break;!y.shiftKey&&_<F&&i(E,p(Math.min(_+k,F)));break}case"PageDown":{_<F&&i(E,p(Math.min(_+k,F)));break}case"PageUp":{const $=Math.max(_-k,R);$!==_&&$>=R?i(E,p($)):a(E,y);break}case"Home":{y.ctrlKey||y.metaKey||y.shiftKey?i(L,p(R)):i(L,p(_));break}case"End":{y.ctrlKey||y.metaKey||y.shiftKey?i(O,p(F)):i(O,p(_));break}default:I=!1}I&&y.preventDefault()},[e,l,o.direction,i,p,s,c,a]),w=d.useCallback((C,{event:y})=>y.key===" "?!1:C,[]);Gt(e,"canStartEditing",w),Le(e,"columnHeaderKeyDown",f),Le(e,"headerFilterKeyDown",g),Le(e,"columnGroupHeaderKeyDown",h),Le(e,"cellKeyDown",b)},h6=(e,t)=>{var n;const r=dn(e,"useGridRowCount"),o=Re(e,oP),l=Re(e,Rs);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Rs,changeEvent:"rowCountChange"});const i={setRowCount:d.useCallback(u=>{l!==u&&(r.debug("Setting 'rowCount' to",u),e.current.setState(p=>m({},p,{pagination:m({},p.pagination,{rowCount:u})})))},[e,r,l])};et(e,i,"public");const a=d.useCallback((u,p)=>{var f;const g=Rs(e);return!p.exportOnlyDirtyModels||t.rowCount!=null||((f=t.initialState)==null||(f=f.pagination)==null?void 0:f.rowCount)!=null?m({},u,{pagination:m({},u.pagination,{rowCount:g})}):u},[e,t.rowCount,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.rowCount]),c=d.useCallback((u,p)=>{var f;const g=(f=p.stateToRestore.pagination)!=null&&f.rowCount?p.stateToRestore.pagination.rowCount:Rs(e);return e.current.setState(h=>m({},h,{pagination:m({},h.pagination,{rowCount:g})})),u},[e]);Gt(e,"exportState",a),Gt(e,"restoreState",c),d.useEffect(()=>{},[t.rowCount,t.paginationMode]),d.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(o):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,o,t.paginationMode,t.rowCount])},g6=(e,t)=>{var n,r,o,l,s;const i=m({},SP(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);PP(i.pageSize,t.signature);const a=(o=(l=t.rowCount)!=null?l:(s=t.initialState)==null||(s=s.pagination)==null?void 0:s.rowCount)!=null?o:0;return m({},e,{pagination:{paginationModel:i,rowCount:a}})},v6=(e,t)=>{r6(e,t),h6(e,t)},y6=(e,t)=>{var n,r;return m({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},b6=(e,t)=>{var n;const r=dn(e,"useGridPreferencesPanel"),o=d.useRef(),l=d.useRef(),s=d.useCallback(()=>{r.debug("Hiding Preferences Panel");const f=qa(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(g=>m({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),i=d.useCallback(()=>{l.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=d.useCallback(()=>{o.current=setTimeout(s,100)},[s]),c=d.useCallback((f,g,h)=>{r.debug("Opening Preferences Panel"),i(),e.current.setState(b=>m({},b,{preferencePanel:m({},b.preferencePanel,{open:!0,openedPanelValue:f,panelId:g,labelId:h})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[r,i,e]);et(e,{showPreferences:c,hidePreferences:a},"public");const u=d.useCallback((f,g)=>{var h;const b=qa(e.current.state);return!g.exportOnlyDirtyModels||((h=t.initialState)==null?void 0:h.preferencePanel)!=null||b.open?m({},f,{preferencePanel:b}):f},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=d.useCallback((f,g)=>{const h=g.stateToRestore.preferencePanel;return h!=null&&e.current.setState(b=>m({},b,{preferencePanel:h})),f},[e]);Gt(e,"exportState",u),Gt(e,"restoreState",p),d.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(l.current)},[])},C6=["id","field"],x6=["id","field"],w6=ao(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),S6=(e,t)=>{const[n,r]=d.useState({}),o=d.useRef(n),l=d.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:i,cellModesModel:a,onCellModesModelChange:c}=t,u=I=>(...$)=>{t.editMode===so.Cell&&I(...$)},p=d.useCallback((I,$)=>{const j=e.current.getCellParams(I,$);if(!e.current.isCellEditable(j))throw new Error(`MUI: The cell with id=${I} and field=${$} is not editable.`)},[e]),f=d.useCallback((I,$,j)=>{if(e.current.getCellMode(I,$)!==j)throw new Error(`MUI: The cell with id=${I} and field=${$} is not in ${j} mode.`)},[e]),g=d.useCallback((I,$)=>{if(!I.isEditable||I.cellMode===yt.Edit)return;const j=m({},I,{reason:uo.cellDoubleClick});e.current.publishEvent("cellEditStart",j,$)},[e]),h=d.useCallback((I,$)=>{if(I.cellMode===yt.View||e.current.getCellMode(I.id,I.field)===yt.View)return;const j=m({},I,{reason:Rr.cellFocusOut});e.current.publishEvent("cellEditStop",j,$)},[e]),b=d.useCallback((I,$)=>{if(I.cellMode===yt.Edit){if($.which===229)return;let j;if($.key==="Escape"?j=Rr.escapeKeyDown:$.key==="Enter"?j=Rr.enterKeyDown:$.key==="Tab"&&(j=$.shiftKey?Rr.shiftTabKeyDown:Rr.tabKeyDown,$.preventDefault()),j){const N=m({},I,{reason:j});e.current.publishEvent("cellEditStop",N,$)}}else if(I.isEditable){let j;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:I,editMode:"cell"}))return;if(hP($)?j=uo.printableKeyDown:($.ctrlKey||$.metaKey)&&$.key==="v"?j=uo.pasteKeyDown:$.key==="Enter"?j=uo.enterKeyDown:($.key==="Delete"||$.key==="Backspace")&&(j=uo.deleteKeyDown),j){const M=m({},I,{reason:j,key:$.key});e.current.publishEvent("cellEditStart",M,$)}}},[e]),w=d.useCallback(I=>{const{id:$,field:j,reason:N}=I,M={id:$,field:j};(N===uo.printableKeyDown||N===uo.deleteKeyDown||N===uo.pasteKeyDown)&&(M.deleteValue=!0),e.current.startCellEditMode(M)},[e]),C=d.useCallback(I=>{const{id:$,field:j,reason:N}=I;e.current.runPendingEditCellValueMutation($,j);let M;N===Rr.enterKeyDown?M="below":N===Rr.tabKeyDown?M="right":N===Rr.shiftTabKeyDown&&(M="left");const D=N==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:j,ignoreModifications:D,cellToFocusAfter:M})},[e]);Le(e,"cellDoubleClick",u(g)),Le(e,"cellFocusOut",u(h)),Le(e,"cellKeyDown",u(b)),Le(e,"cellEditStart",u(w)),Le(e,"cellEditStop",u(C)),Rt(e,"cellEditStart",t.onCellEditStart),Rt(e,"cellEditStop",t.onCellEditStop);const y=d.useCallback((I,$)=>{const j=Sn(e.current.state);return j[I]&&j[I][$]?yt.Edit:yt.View},[e]),x=Ct(I=>{const $=I!==t.cellModesModel;c&&$&&c(I,{}),!(t.cellModesModel&&$)&&(r(I),o.current=I,e.current.publishEvent("cellModesModelChange",I))}),S=d.useCallback((I,$,j)=>{const N=m({},o.current);if(j!==null)N[I]=m({},N[I],{[$]:m({},j)});else{const M=N[I],D=K(M,[$].map(Ha));N[I]=D,Object.keys(N[I]).length===0&&delete N[I]}x(N)},[x]),T=d.useCallback((I,$,j)=>{e.current.setState(N=>{const M=m({},N.editRows);return j!==null?M[I]=m({},M[I],{[$]:m({},j)}):(delete M[I][$],Object.keys(M[I]).length===0&&delete M[I]),m({},N,{editRows:M})}),e.current.forceUpdate()},[e]),P=d.useCallback(I=>{const{id:$,field:j}=I,N=K(I,C6);p($,j),f($,j,yt.View),S($,j,m({mode:yt.Edit},N))},[p,f,S]),k=Ct(I=>{const{id:$,field:j,deleteValue:N,initialValue:M}=I;let D=e.current.getCellValue($,j);(N||M)&&(D=N?"":M),T($,j,{value:D,error:!1,isProcessingProps:!1}),e.current.setCellFocus($,j)}),E=d.useCallback(I=>{const{id:$,field:j}=I,N=K(I,x6);f($,j,yt.Edit),S($,j,m({mode:yt.View},N))},[f,S]),_=Ct(async I=>{const{id:$,field:j,ignoreModifications:N,cellToFocusAfter:M="none"}=I;f($,j,yt.Edit),e.current.runPendingEditCellValueMutation($,j);const D=()=>{T($,j,null),S($,j,null),M!=="none"&&e.current.moveFocusToRelativeCell($,j,M)};if(N){D();return}const A=Sn(e.current.state),{error:H,isProcessingProps:z}=A[$][j];if(H||z){l.current[$][j].mode=yt.Edit,S($,j,{mode:yt.Edit});return}const W=e.current.getRowWithUpdatedValuesFromCellEditing($,j);if(s){const G=q=>{l.current[$][j].mode=yt.Edit,S($,j,{mode:yt.Edit}),i?i(q):w6()};try{const q=e.current.getRow($);Promise.resolve(s(W,q)).then(re=>{e.current.updateRows([re]),D()}).catch(G)}catch(q){G(q)}}else e.current.updateRows([W]),D()}),R=d.useCallback(async I=>{var $;const{id:j,field:N,value:M,debounceMs:D,unstable_skipValueParser:A}=I;p(j,N),f(j,N,yt.Edit);const H=e.current.getColumn(N),z=e.current.getRow(j);let W=M;H.valueParser&&!A&&(W=H.valueParser(M,e.current.getCellParams(j,N)));let G=Sn(e.current.state),q=m({},G[j][N],{value:W,changeReason:D?"debouncedSetEditCellValue":"setEditCellValue"});if(H.preProcessEditCellProps){const re=M!==G[j][N].value;q=m({},q,{isProcessingProps:!0}),T(j,N,q),q=await Promise.resolve(H.preProcessEditCellProps({id:j,row:z,props:q,hasChanged:re}))}return e.current.getCellMode(j,N)===yt.View?!1:(G=Sn(e.current.state),q=m({},q,{isProcessingProps:!1}),q.value=H.preProcessEditCellProps?G[j][N].value:W,T(j,N,q),G=Sn(e.current.state),!(($=G[j])!=null&&($=$[N])!=null&&$.error))},[e,p,f,T]),F=d.useCallback((I,$)=>{const j=e.current.getColumn($),N=Sn(e.current.state),M=e.current.getRow(I);if(!N[I]||!N[I][$])return e.current.getRow(I);const{value:D}=N[I][$];return j.valueSetter?j.valueSetter({value:D,row:M}):m({},M,{[$]:D})},[e]),L={getCellMode:y,startCellEditMode:P,stopCellEditMode:E},O={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:F};et(e,L,"public"),et(e,O,"private"),d.useEffect(()=>{a&&x(a)},[a,x]),vt(()=>{const I=td(e),$=l.current;l.current=xP(n),Object.entries(n).forEach(([j,N])=>{Object.entries(N).forEach(([M,D])=>{var A,H;const z=((A=$[j])==null||(A=A[M])==null?void 0:A.mode)||yt.View,W=(H=I[j])!=null?H:j;D.mode===yt.Edit&&z===yt.View?k(m({id:W,field:M},D)):D.mode===yt.View&&z===yt.Edit&&_(m({id:W,field:M},D))})})},[e,n,k,_])},P6=["id"],k6=["id"],E6=ao(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),I6=(e,t)=>{const[n,r]=d.useState({}),o=d.useRef(n),l=d.useRef({}),s=d.useRef(null),i=d.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:p}=t,f=M=>(...D)=>{t.editMode===so.Row&&M(...D)},g=d.useCallback((M,D)=>{const A=e.current.getCellParams(M,D);if(!e.current.isCellEditable(A))throw new Error(`MUI: The cell with id=${M} and field=${D} is not editable.`)},[e]),h=d.useCallback((M,D)=>{if(e.current.getRowMode(M)!==D)throw new Error(`MUI: The row with id=${M} is not in ${D} mode.`)},[e]),b=d.useCallback((M,D)=>{if(!M.isEditable||e.current.getRowMode(M.id)===It.Edit)return;const A=e.current.getRowParams(M.id),H=m({},A,{field:M.field,reason:jo.cellDoubleClick});e.current.publishEvent("rowEditStart",H,D)},[e]),w=d.useCallback(M=>{i.current=M},[]),C=d.useCallback((M,D)=>{M.isEditable&&e.current.getRowMode(M.id)!==It.View&&(i.current=null,s.current=setTimeout(()=>{var A;if(s.current=null,((A=i.current)==null?void 0:A.id)!==M.id){if(!e.current.getRow(M.id)||e.current.getRowMode(M.id)===It.View)return;const H=e.current.getRowParams(M.id),z=m({},H,{field:M.field,reason:po.rowFocusOut});e.current.publishEvent("rowEditStop",z,D)}}))},[e]);d.useEffect(()=>()=>{clearTimeout(s.current)},[]);const y=d.useCallback((M,D)=>{if(M.cellMode===It.Edit){if(D.which===229)return;let A;if(D.key==="Escape")A=po.escapeKeyDown;else if(D.key==="Enter")A=po.enterKeyDown;else if(D.key==="Tab"){const H=xp(e).filter(z=>e.current.getColumn(z).type===Mp?!0:e.current.isCellEditable(e.current.getCellParams(M.id,z)));if(D.shiftKey?M.field===H[0]&&(A=po.shiftTabKeyDown):M.field===H[H.length-1]&&(A=po.tabKeyDown),D.preventDefault(),!A){const z=H.findIndex(G=>G===M.field),W=H[D.shiftKey?z-1:z+1];e.current.setCellFocus(M.id,W)}}if(A){const H=m({},e.current.getRowParams(M.id),{reason:A,field:M.field});e.current.publishEvent("rowEditStop",H,D)}}else if(M.isEditable){let A;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:M,editMode:"row"}))return;if(hP(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?A=jo.printableKeyDown:D.key==="Enter"?A=jo.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(A=jo.deleteKeyDown),A){const z=e.current.getRowParams(M.id),W=m({},z,{field:M.field,reason:A});e.current.publishEvent("rowEditStart",W,D)}}},[e]),x=d.useCallback(M=>{const{id:D,field:A,reason:H}=M,z={id:D,fieldToFocus:A};(H===jo.printableKeyDown||H===jo.deleteKeyDown)&&(z.deleteValue=!!A),e.current.startRowEditMode(z)},[e]),S=d.useCallback(M=>{const{id:D,reason:A,field:H}=M;e.current.runPendingEditCellValueMutation(D);let z;A===po.enterKeyDown?z="below":A===po.tabKeyDown?z="right":A===po.shiftTabKeyDown&&(z="left");const W=A==="escapeKeyDown";e.current.stopRowEditMode({id:D,ignoreModifications:W,field:H,cellToFocusAfter:z})},[e]);Le(e,"cellDoubleClick",f(b)),Le(e,"cellFocusIn",f(w)),Le(e,"cellFocusOut",f(C)),Le(e,"cellKeyDown",f(y)),Le(e,"rowEditStart",f(x)),Le(e,"rowEditStop",f(S)),Rt(e,"rowEditStart",t.onRowEditStart),Rt(e,"rowEditStop",t.onRowEditStop);const T=d.useCallback(M=>{if(t.editMode===so.Cell)return It.View;const D=Sn(e.current.state);return D[M]&&Object.keys(D[M]).length>0?It.Edit:It.View},[e,t.editMode]),P=Ct(M=>{const D=M!==t.rowModesModel;p&&D&&p(M,{}),!(t.rowModesModel&&D)&&(r(M),o.current=M,e.current.publishEvent("rowModesModelChange",M))}),k=d.useCallback((M,D)=>{const A=m({},o.current);D!==null?A[M]=m({},D):delete A[M],P(A)},[P]),E=d.useCallback((M,D)=>{e.current.setState(A=>{const H=m({},A.editRows);return D!==null?H[M]=D:delete H[M],m({},A,{editRows:H})}),e.current.forceUpdate()},[e]),_=d.useCallback((M,D,A)=>{e.current.setState(H=>{const z=m({},H.editRows);return A!==null?z[M]=m({},z[M],{[D]:m({},A)}):(delete z[M][D],Object.keys(z[M]).length===0&&delete z[M]),m({},H,{editRows:z})}),e.current.forceUpdate()},[e]),R=d.useCallback(M=>{const{id:D}=M,A=K(M,P6);h(D,It.View),k(D,m({mode:It.Edit},A))},[h,k]),F=Ct(M=>{const{id:D,fieldToFocus:A,deleteValue:H,initialValue:z}=M,G=xo(e).reduce((q,re)=>{if(!e.current.getCellParams(D,re).isEditable)return q;let ce=e.current.getCellValue(D,re);return A===re&&(H||z)&&(ce=H?"":z),q[re]={value:ce,error:!1,isProcessingProps:!1},q},{});E(D,G),A&&e.current.setCellFocus(D,A)}),L=d.useCallback(M=>{const{id:D}=M,A=K(M,k6);h(D,It.Edit),k(D,m({mode:It.View},A))},[h,k]),O=Ct(M=>{const{id:D,ignoreModifications:A,field:H,cellToFocusAfter:z="none"}=M;e.current.runPendingEditCellValueMutation(D);const W=()=>{z!=="none"&&H&&e.current.moveFocusToRelativeCell(D,H,z),E(D,null),k(D,null)};if(A){W();return}const G=Sn(e.current.state),q=e.current.getRow(D);if(Object.values(G[D]).some(ue=>ue.isProcessingProps)){l.current[D].mode=It.Edit;return}if(Object.values(G[D]).some(ue=>ue.error)){l.current[D].mode=It.Edit,k(D,{mode:It.Edit});return}const ce=e.current.getRowWithUpdatedValuesFromRowEditing(D);if(a){const ue=ye=>{l.current[D].mode=It.Edit,k(D,{mode:It.Edit}),c?c(ye):E6()};try{Promise.resolve(a(ce,q)).then(ye=>{e.current.updateRows([ye]),W()}).catch(ue)}catch(ye){ue(ye)}}else e.current.updateRows([ce]),W()}),I=d.useCallback(M=>{const{id:D,field:A,value:H,debounceMs:z,unstable_skipValueParser:W}=M;g(D,A);const G=e.current.getColumn(A),q=e.current.getRow(D);let re=H;G.valueParser&&!W&&(re=G.valueParser(H,e.current.getCellParams(D,A)));let ae=Sn(e.current.state),ce=m({},ae[D][A],{value:re,changeReason:z?"debouncedSetEditCellValue":"setEditCellValue"});return G.preProcessEditCellProps||_(D,A,ce),new Promise(ue=>{const ye=[];if(G.preProcessEditCellProps){const de=ce.value!==ae[D][A].value;ce=m({},ce,{isProcessingProps:!0}),_(D,A,ce);const he=ae[D],Y=K(he,[A].map(Ha)),pe=Promise.resolve(G.preProcessEditCellProps({id:D,row:q,props:ce,hasChanged:de,otherFieldsProps:Y})).then(ee=>{if(e.current.getRowMode(D)===It.View){ue(!1);return}ae=Sn(e.current.state),ee=m({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ae[D][A].value:re,_(D,A,ee)});ye.push(pe)}Object.entries(ae[D]).forEach(([de,he])=>{if(de===A)return;const Y=e.current.getColumn(de);if(!Y.preProcessEditCellProps)return;he=m({},he,{isProcessingProps:!0}),_(D,de,he),ae=Sn(e.current.state);const pe=ae[D],ee=K(pe,[de].map(Ha)),Z=Promise.resolve(Y.preProcessEditCellProps({id:D,row:q,props:he,hasChanged:!1,otherFieldsProps:ee})).then(fe=>{if(e.current.getRowMode(D)===It.View){ue(!1);return}fe=m({},fe,{isProcessingProps:!1}),_(D,de,fe)});ye.push(Z)}),Promise.all(ye).then(()=>{e.current.getRowMode(D)===It.Edit?(ae=Sn(e.current.state),ue(!ae[D][A].error)):ue(!1)})})},[e,g,_]),$=d.useCallback(M=>{const D=Sn(e.current.state),A=e.current.getRow(M);if(!D[M])return e.current.getRow(M);let H=m({},A);return Object.entries(D[M]).forEach(([z,W])=>{const G=e.current.getColumn(z);G.valueSetter?H=G.valueSetter({value:W.value,row:H}):H[z]=W.value}),H},[e]),j={getRowMode:T,startRowEditMode:R,stopRowEditMode:L},N={setRowEditingEditCellValue:I,getRowWithUpdatedValuesFromRowEditing:$};et(e,j,"public"),et(e,N,"private"),d.useEffect(()=>{u&&P(u)},[u,P]),vt(()=>{const M=td(e),D=l.current;l.current=xP(n),Object.entries(n).forEach(([A,H])=>{var z,W;const G=((z=D[A])==null?void 0:z.mode)||It.View,q=(W=M[A])!=null?W:A;H.mode===It.Edit&&G===It.View?F(m({id:q},H)):H.mode===It.View&&G===It.Edit&&O(m({id:q},H))})},[e,n,F,O])},M6=e=>m({},e,{editRows:{}}),$6=(e,t)=>{S6(e,t),I6(e,t);const n=d.useRef({}),{isCellEditable:r}=t,o=d.useCallback(f=>Ua(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),l=(f,g,h,b)=>{if(!h){b();return}if(n.current[f]||(n.current[f]={}),n.current[f][g]){const[y]=n.current[f][g];clearTimeout(y)}const w=()=>{const[y]=n.current[f][g];clearTimeout(y),b(),delete n.current[f][g]},C=setTimeout(()=>{b(),delete n.current[f][g]},h);n.current[f][g]=[C,w]};d.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([g,h])=>{Object.keys(h).forEach(b=>{const[w]=f[g][b];clearTimeout(w),delete f[g][b]})})}},[]);const s=d.useCallback((f,g)=>{if(n.current[f]){if(!g)Object.keys(n.current[f]).forEach(h=>{const[,b]=n.current[f][h];b()});else if(n.current[f][g]){const[,h]=n.current[f][g];h()}}},[]),i=d.useCallback(f=>{const{id:g,field:h,debounceMs:b}=f;return new Promise(w=>{l(g,h,b,async()=>{const C=t.editMode===so.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,h)===yt.Edit){const y=await C(f);w(y)}})})},[e,t.editMode]),a=d.useCallback((f,g)=>t.editMode===so.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,g):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=d.useCallback((f,g)=>{var h,b;return(h=(b=Sn(e.current.state)[f])==null?void 0:b[g])!=null?h:null},[e]),u={isCellEditable:o,setEditCellValue:i,getRowWithUpdatedValues:a,unstable_getEditCellMeta:c},p={runPendingEditCellValueMutation:s};et(e,u,"public"),et(e,p,"private")},R6=(e,t,n)=>(n.current.caches.rows=mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),m({},e,{rows:iP({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),T6=(e,t)=>{const n=dn(e,"useGridRows"),r=Zl(e,t),o=d.useRef(Date.now()),l=bv(),s=d.useCallback(O=>{const I=bo(e)[O];if(I)return I;const $=e.current.getRowNode(O);return $&&Ua($)?{[Hs]:O}:null},[e]),i=t.getRowId,a=d.useCallback(O=>Hs in O?O[Hs]:i?i(O):O.id,[i]),c=d.useMemo(()=>r.rows.reduce((O,{id:I},$)=>(O[I]=$,O),{}),[r.rows]),u=d.useCallback(({cache:O,throttle:I})=>{const $=()=>{o.current=Date.now(),e.current.setState(N=>m({},N,{rows:iP({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Fr(e),previousTreeDepths:W0(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.clear(),e.current.caches.rows=O,!I){$();return}const j=t.throttleRowsMs-(Date.now()-o.current);if(j>0){l.start(j,$);return}$()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),p=d.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const I=mu({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;I.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,u({cache:I,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,u,e]),f=d.useCallback(O=>{if(t.signature===oo.DataGrid&&O.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(`
233
- `));const I=[];O.forEach(j=>{const N=od(j,t.getRowId,"A row was provided without id when calling updateRows():"),M=e.current.getRowNode(N);if((M==null?void 0:M.type)==="pinnedRow"){const D=e.current.caches.pinnedRows,A=D.idLookup[N];A&&(D.idLookup[N]=m({},A,j))}else I.push(j)});const $=kz({updates:I,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:$,throttle:!0})},[t.signature,t.getRowId,u,e]),g=d.useCallback(()=>{const O=Xi(e),I=bo(e);return new Map(O.map($=>{var j;return[$,(j=I[$])!=null?j:{}]}))},[e]),h=d.useCallback(()=>Sp(e),[e]),b=d.useCallback(()=>Xi(e),[e]),w=d.useCallback(O=>c[O],[c]),C=d.useCallback((O,I)=>{const $=e.current.getRowNode(O);if(!$)throw new Error(`MUI: No row with id #${O} found`);if($.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=m({},$,{childrenExpanded:I});e.current.setState(N=>m({},N,{rows:m({},N.rows,{tree:m({},N.rows.tree,{[O]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),y=d.useCallback(O=>{var I;return(I=Fr(e)[O])!=null?I:null},[e]),x=d.useCallback(({skipAutoGeneratedRows:O=!0,groupId:I,applySorting:$,applyFiltering:j})=>{const N=Fr(e);let M;if($){const D=N[I];if(!D)return[];const A=sv(e);M=[];const H=A.findIndex(z=>z===I)+1;for(let z=H;z<A.length&&N[A[z]].depth>D.depth;z+=1){const W=A[z];(!O||!Ua(N[W]))&&M.push(W)}}else M=uv(N,I,O);if(j){const D=tP(e);M=M.filter(A=>D[A]!==!1)}return M},[e]),S=d.useCallback((O,I)=>{const $=e.current.getRowNode(O);if(!$)throw new Error(`MUI: No row with id #${O} found`);if($.parent!==Pn)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if($.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const N=Fr(j,e.current.instanceId)[Pn],M=N.children,D=M.findIndex(H=>H===O);if(D===-1||D===I)return j;n.debug(`Moving row ${O} to index ${I}`);const A=[...M];return A.splice(I,0,A.splice(D,1)[0]),m({},j,{rows:m({},j.rows,{tree:m({},j.rows.tree,{[Pn]:m({},N,{children:A})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=d.useCallback((O,I)=>{if(t.signature===oo.DataGrid&&I.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
234
- `));if(I.length===0)return;if(Pp(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=m({},Fr(e)),N=m({},bo(e)),M=m({},td(e)),D=j[Pn],A=[...D.children],H=new Set;for(let W=0;W<I.length;W+=1){const G=I[W],q=od(G,t.getRowId,"A row was provided without id when calling replaceRows()."),[re]=A.splice(O+W,1,q);H.has(re)||(delete N[re],delete M[re],delete j[re]);const ae={id:q,depth:0,parent:Pn,type:"leaf",groupingKey:null};N[q]=G,M[q]=q,j[q]=ae,H.add(q)}j[Pn]=m({},D,{children:A});const z=A.filter(W=>j[W].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=N,e.current.caches.rows.dataRowIdToIdLookup=M,e.current.setState(W=>m({},W,{rows:m({},W.rows,{dataRowIdToModelLookup:N,dataRowIdToIdLookup:M,dataRowIds:z,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowId:a,getRowModels:g,getRowsCount:h,getAllRowIds:b,setRows:p,updateRows:f,getRowNode:y,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:T},k={setRowIndex:S,setRowChildrenExpansion:C,getRowGroupChildren:x},E=d.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=m({},e.current.caches.rows,{updates:{type:"full",rows:Xi(e)}}):O=mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),_=d.useCallback(O=>{O==="rowTreeCreation"&&E()},[E]),R=d.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==sz(e)&&E()},[e,E]);Le(e,"activeStrategyProcessorChange",_),Le(e,"strategyAvailabilityChange",R);const F=d.useCallback(()=>{e.current.setState(O=>{const I=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Fr(O,e.current.instanceId),treeDepths:W0(O,e.current.instanceId),dataRowIds:Xi(O,e.current.instanceId),dataRowIdToModelLookup:bo(O,e.current.instanceId),dataRowIdToIdLookup:td(O,e.current.instanceId)});return m({},O,{rows:m({},O.rows,I,{totalTopLevelRowCount:sP({tree:I.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);wv(e,"hydrateRows",F),et(e,P,"public"),et(e,k,t.signature===oo.DataGrid?"private":"public");const L=d.useRef(!0);d.useEffect(()=>{if(L.current){L.current=!1;return}const O=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,I=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(O){I||(e.current.setState(j=>m({},j,{rows:m({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(j=>m({},j,{rows:m({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),u({cache:mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,u,e])},O6=e=>{const t={[Pn]:m({},Sz(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Pn,type:"leaf",groupingKey:null}}return{groupingName:Gl,tree:t,treeDepths:{0:e.length},dataRowIds:e}},F6=({previousTree:e,actions:t})=>{const n=m({},e),r={};for(let s=0;s<t.remove.length;s+=1){const i=t.remove[s];r[i]=!0,delete n[i]}for(let s=0;s<t.insert.length;s+=1){const i=t.insert[s];n[i]={id:i,depth:0,parent:Pn,type:"leaf",groupingKey:null}}const o=n[Pn];let l=[...o.children,...t.insert];return Object.values(r).length&&(l=l.filter(s=>!r[s])),n[Pn]=m({},o,{children:l}),{groupingName:Gl,tree:n,treeDepths:{0:l.length},dataRowIds:l}},D6=e=>e.updates.type==="full"?O6(e.updates.rows):F6({previousTree:e.previousTree,actions:e.updates.actions}),j6=e=>{dd(e,Gl,"rowTreeCreation",D6)},QP=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],_6=(e,t)=>{var n;return m({},e,{rowSelection:t.rowSelection?(n=QP(t.rowSelectionModel))!=null?n:[]:[]})},L6=(e,t)=>{const n=dn(e,"useGridSelection"),r=I=>(...$)=>{t.rowSelection&&I(...$)},o=d.useMemo(()=>QP(t.rowSelectionModel,ir(e.current.state)),[e,t.rowSelectionModel]),l=d.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ir,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:i,disableRowSelectionOnClick:a,isRowSelectable:c}=t,u=!i||s,p=Zl(e,t),f=d.useCallback(I=>{var $;let j=I;const N=($=l.current)!=null?$:I,M=e.current.isRowSelected(I);if(M){const D=ma(e),A=D.findIndex(z=>z===N),H=D.findIndex(z=>z===j);if(A===H)return;A>H?j=D[H+1]:j=D[H-1]}l.current=I,e.current.selectRowRange({startId:N,endId:j},!M)},[e]),g=d.useCallback(I=>{if(t.signature===oo.DataGrid&&!t.checkboxSelection&&Array.isArray(I)&&I.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
235
- `));ir(e.current.state)!==I&&(n.debug("Setting selection model"),e.current.setState(j=>m({},j,{rowSelection:t.rowSelection?I:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),h=d.useCallback(I=>ir(e.current.state).includes(I),[e]),b=d.useCallback(I=>{if(c&&!c(e.current.getRowParams(I)))return!1;const $=e.current.getRowNode(I);return!(($==null?void 0:$.type)==="footer"||($==null?void 0:$.type)==="pinnedRow")},[e,c]),w=d.useCallback(()=>$H(e),[e]),C=d.useCallback((I,$=!0,j=!1)=>{if(e.current.isRowSelectable(I))if(l.current=I,j)n.debug(`Setting selection for row ${I}`),e.current.setRowSelectionModel($?[I]:[]);else{n.debug(`Toggling selection for row ${I}`);const M=ir(e.current.state).filter(A=>A!==I);$&&M.push(I),(M.length<2||u)&&e.current.setRowSelectionModel(M)}},[e,n,u]),y=d.useCallback((I,$=!0,j=!1)=>{n.debug("Setting selection for several rows");const N=I.filter(A=>e.current.isRowSelectable(A));let M;if(j)M=$?N:[];else{const A=m({},ad(e));N.forEach(H=>{$?A[H]=H:delete A[H]}),M=Object.values(A)}(M.length<2||u)&&e.current.setRowSelectionModel(M)},[e,n,u]),x=d.useCallback(({startId:I,endId:$},j=!0,N=!1)=>{if(!e.current.getRow(I)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${I} to row ${$}`);const M=ma(e),D=M.indexOf(I),A=M.indexOf($),[H,z]=D>A?[A,D]:[D,A],W=M.slice(H,z+1);e.current.selectRows(W,j,N)},[e,n]),S={selectRow:C,setRowSelectionModel:g,getSelectedRows:w,isRowSelected:h,isRowSelectable:b},T={selectRows:y,selectRowRange:x};et(e,S,"public"),et(e,T,t.signature===oo.DataGrid?"private":"public");const P=d.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const I=ir(e.current.state),$=bo(e),j=m({},ad(e));let N=!1;I.forEach(M=>{$[M]||(delete j[M],N=!0)}),N&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),k=d.useCallback((I,$)=>{const j=$.metaKey||$.ctrlKey,N=!s&&!j&&!f4($),M=!u||N,D=e.current.isRowSelected(I);M?e.current.selectRow(I,N?!0:!D,!0):e.current.selectRow(I,!D,!1)},[e,u,s]),E=d.useCallback((I,$)=>{var j;if(a)return;const N=(j=$.target.closest(`.${B.cell}`))==null?void 0:j.getAttribute("data-field");if(N===wi.field||N===Cv)return;if(N){const D=e.current.getColumn(N);if((D==null?void 0:D.type)===Mp)return}e.current.getRowNode(I.id).type!=="pinnedRow"&&($.shiftKey&&(u||s)?f(I.id):k(I.id,$))},[a,u,s,e,f,k]),_=d.useCallback((I,$)=>{if(u&&$.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[u]),R=d.useCallback((I,$)=>{$.nativeEvent.shiftKey?f(I.id):e.current.selectRow(I.id,I.value)},[e,f]),F=d.useCallback(I=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?EP(e):ma(e),N=Jt(e);e.current.selectRows(j,I.value,(N==null?void 0:N.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),L=d.useCallback((I,$)=>{if(e.current.getCellMode(I.id,I.field)!==yt.Edit&&!pc($)){if(id($.key)&&$.shiftKey){const j=Gn(e);if(j&&j.id!==I.id){$.preventDefault();const N=e.current.isRowSelected(j.id);if(!u){e.current.selectRow(j.id,!N,!0);return}const M=e.current.getRowIndexRelativeToVisibleRows(j.id),D=e.current.getRowIndexRelativeToVisibleRows(I.id);let A,H;M>D?N?(A=D,H=M-1):(A=D,H=M):N?(A=M+1,H=D):(A=M,H=D);const z=p.rows.slice(A,H+1).map(W=>W.id);e.current.selectRows(z,!N);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),k(I.id,$);return}$.key==="a"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),y(e.current.getAllRowIds(),!0))}},[e,k,y,p.rows,u]);Le(e,"sortedRowsSet",r(P)),Le(e,"rowClick",r(E)),Le(e,"rowSelectionCheckboxChange",r(R)),Le(e,"headerSelectionCheckboxChange",F),Le(e,"cellMouseDown",r(_)),Le(e,"cellKeyDown",r(L)),d.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),d.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const O=o!=null;d.useEffect(()=>{if(O||!t.rowSelection)return;const I=ir(e.current.state);if(b){const $=I.filter(j=>b(j));$.length<I.length&&e.current.setRowSelectionModel($)}},[e,b,O,t.rowSelection]),d.useEffect(()=>{if(!t.rowSelection||O)return;const I=ir(e.current.state);!u&&I.length>1&&e.current.setRowSelectionModel([])},[e,u,s,O,t.rowSelection])},N6={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},A6=e=>{const{classes:t}=e;return d.useMemo(()=>we({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ct,t),[t])},z6=(e,t)=>{const n={classes:t.classes},r=A6(n),o=d.useCallback(l=>{const s=m({},wi,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=l.lookup[_o]!=null;return i&&!a?(l.lookup[_o]=s,l.orderedFields=[_o,...l.orderedFields]):!i&&a?(delete l.lookup[_o],l.orderedFields=l.orderedFields.filter(c=>c!==_o)):i&&a&&(l.lookup[_o]=m({},s,l.lookup[_o])),l},[e,r,t.checkboxSelection]);Gt(e,"hydrateColumns",o)},H6=(e,t)=>{var n,r,o;const l=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return m({},e,{sorting:{sortModel:IP(l,t.disableMultipleColumnsSorting),sortedRows:[]}})},B6=(e,t)=>{var n;const r=dn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:lr,changeEvent:"sortModelChange"});const o=d.useCallback((P,k)=>{const E=lr(e),_=E.findIndex(F=>F.field===P);let R=[...E];return _>-1?k?R.splice(_,1,k):R.splice(_,1):R=[...E,k],R},[e]),l=d.useCallback((P,k)=>{var E;const R=lr(e).find(L=>L.field===P.field);if(R){var F;const L=k===void 0?Q0((F=P.sortingOrder)!=null?F:t.sortingOrder,R.sort):k;return L==null?void 0:m({},R,{sort:L})}return{field:P.field,sort:k===void 0?Q0((E=P.sortingOrder)!=null?E:t.sortingOrder):k}},[e,t.sortingOrder]),s=d.useCallback((P,k)=>k==null||k.sortable===!1?P:(k.sortingOrder||t.sortingOrder).some(_=>!!_)?[...P,"columnMenuSortItem"]:P,[t.sortingOrder]),i=d.useCallback(()=>{e.current.setState(P=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),m({},P,{sorting:m({},P.sorting,{sortedRows:uv(Fr(e),Pn,!1)})});const k=lr(P,e.current.instanceId),E=DH(k,e),_=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return m({},P,{sorting:m({},P.sorting,{sortedRows:_})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=d.useCallback(P=>{lr(e)!==P&&(r.debug("Setting sort model"),e.current.setState(Y0(P,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=d.useCallback((P,k,E)=>{if(!P.sortable)return;const _=l(P,k);let R;!E||t.disableMultipleColumnsSorting?R=_?[_]:[]:R=o(P.field,_),e.current.setSortModel(R)},[e,o,l,t.disableMultipleColumnsSorting]),u=d.useCallback(()=>lr(e),[e]),p=d.useCallback(()=>iv(e).map(k=>k.model),[e]),f=d.useCallback(()=>sv(e),[e]),g=d.useCallback(P=>e.current.getSortedRowIds()[P],[e]);et(e,{getSortModel:u,getSortedRows:p,getSortedRowIds:f,getRowIdFromRowIndex:g,setSortModel:a,sortColumn:c,applySorting:i},"public");const b=d.useCallback((P,k)=>{var E;const _=lr(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||((E=t.initialState)==null||(E=E.sorting)==null?void 0:E.sortModel)!=null||_.length>0?m({},P,{sorting:{sortModel:_}}):P},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),w=d.useCallback((P,k)=>{var E;const _=(E=k.stateToRestore.sorting)==null?void 0:E.sortModel;return _==null?P:(e.current.setState(Y0(_,t.disableMultipleColumnsSorting)),m({},P,{callbacks:[...P.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=d.useCallback(P=>{const k=Fr(e),E=k[Pn],_=P.sortRowList?P.sortRowList(E.children.map(R=>k[R])):[...E.children];return E.footerId!=null&&_.push(E.footerId),_},[e]);Gt(e,"exportState",b),Gt(e,"restoreState",w),dd(e,Gl,"sorting",C);const y=d.useCallback(({colDef:P},k)=>{const E=k.shiftKey||k.metaKey||k.ctrlKey;c(P,void 0,E)},[c]),x=d.useCallback(({colDef:P},k)=>{c4(k.key)&&!k.ctrlKey&&!k.metaKey&&c(P,void 0,k.shiftKey)},[c]),S=d.useCallback(()=>{const P=lr(e),k=bi(e);if(P.length>0){const E=P.filter(_=>k[_.field]);E.length<P.length&&e.current.setSortModel(E)}},[e]),T=d.useCallback(P=>{P==="sorting"&&e.current.applySorting()},[e]);Gt(e,"columnMenu",s),Le(e,"columnHeaderClick",y),Le(e,"columnHeaderKeyDown",x),Le(e,"rowsSet",e.current.applySorting),Le(e,"columnsChange",S),Le(e,"activeStrategyProcessorChange",T),fc(()=>{e.current.applySorting()}),vt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function xC(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;if(r>t)return o;if(l-t>n)return l-t;if(o<n)return o}const V6=(e,t)=>{const n=Br(),r=dn(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.virtualScrollerRef,s=Re(e,fl),i=d.useCallback(p=>{const f=Sp(e),g=an(e);if(!(p.rowIndex==null)&&f===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const x=ti(e);let S;if(typeof p.rowIndex<"u"){var w;const T=(w=s[p.rowIndex])==null?void 0:w.id,P=e.current.unstable_getCellColSpanInfo(T,p.colIndex);P&&!P.spannedByColSpan&&(S=P.cellProps.width)}typeof S>"u"&&(S=g[p.colIndex].computedWidth),b.left=xC({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:S,offsetTop:x[p.colIndex]})}if(p.rowIndex!=null){var C,y;const x=Ya(e.current.state),S=kH(e),T=kP(e),P=t.pagination?p.rowIndex-S*T:p.rowIndex,k=x.positions[P+1]?x.positions[P+1]-x.positions[P]:x.currentPageTotalHeight-x.positions[P],E=((C=l.current.querySelector(`.${B["pinnedRows--top"]}`))==null?void 0:C.clientHeight)||0,_=((y=l.current.querySelector(`.${B["pinnedRows--bottom"]}`))==null?void 0:y.clientHeight)||0;b.top=xC({clientHeight:l.current.clientHeight-E-_,scrollTop:l.current.scrollTop,offsetHeight:k,offsetTop:x.positions[P]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,l,t.pagination,s]),a=d.useCallback(p=>{if(l.current&&p.left!=null&&o.current){const f=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,l.current.scrollLeft=f*p.left,r.debug(`Scrolling left: ${p.left}`)}l.current&&p.top!=null&&(l.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[l,n.direction,o,r]),c=d.useCallback(()=>l!=null&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l]);et(e,{scroll:a,scrollToIndexes:i,getScrollPosition:c},"public")};function G6(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,"cellClick",t.onCellClick),Rt(e,"cellDoubleClick",t.onCellDoubleClick),Rt(e,"cellKeyDown",t.onCellKeyDown),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,"stateChange",t.onStateChange)}const W6=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,s=!1;return(r||o)&&(l=r,s=e.height+(l?n:0)>t.height,s&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:s}};function U6(e,t){const n=dn(e,"useResizeContainer"),r=d.useRef(!1),o=d.useRef(null),l=d.useRef(null),s=Re(e,Ya),i=Re(e,xi),a=Math.floor(t.rowHeight*i),c=Sv(e,t.columnHeaderHeight),u=d.useCallback(()=>{var k;const E=(k=e.current.rootElementRef)==null?void 0:k.current,_=lv(e),R=aP(e);if(!o.current)return;let F;if(t.scrollbarSize!=null)F=t.scrollbarSize;else if(!_||!E)F=0;else{const D=jt(E).createElement("div");D.style.width="99px",D.style.height="99px",D.style.position="absolute",D.style.overflow="scroll",D.className="scrollDiv",E.appendChild(D),F=D.offsetWidth-D.clientWidth,E.removeChild(D)}let L,O,I;if(t.autoHeight)I=!1,O=Math.round(_)>Math.round(o.current.width),L={width:o.current.width,height:s.currentPageTotalHeight+(O?F:0)};else{L={width:o.current.width,height:Math.max(o.current.height-c,0)};const M=W6({content:{width:Math.round(_),height:s.currentPageTotalHeight},container:{width:Math.round(L.width),height:L.height-R.top-R.bottom},scrollBarSize:F});I=M.hasScrollY,O=M.hasScrollX}const $={width:L.width-(I?F:0),height:L.height-(O?F:0)},j={viewportOuterSize:L,viewportInnerSize:$,hasScrollX:O,hasScrollY:I,scrollBarSize:F},N=l.current;l.current=j,(j.viewportInnerSize.width!==(N==null?void 0:N.viewportInnerSize.width)||j.viewportInnerSize.height!==(N==null?void 0:N.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",j.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,c]),[p,f]=d.useState(),g=d.useMemo(()=>ql(f,60),[]),h=d.useRef();vt(()=>{p&&(u(),e.current.publishEvent("debouncedResize",o.current))},[e,p,u]);const b=d.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),w=d.useCallback(()=>l.current,[]),C=d.useCallback(()=>{const k=e.current.getRootDimensions();if(!k)return 0;const E=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const R=e.current.getRenderContext(),F=R.lastRowIndex-R.firstRowIndex;return Math.min(F-1,E.rows.length)}const _=Math.floor(k.viewportInnerSize.height/a);return Math.min(_,E.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),y=d.useCallback(()=>{var k,E,_;const R=(k=e.current.mainElementRef)==null?void 0:k.current;if(!R)return;const L=Hr(R).getComputedStyle(R),O=parseFloat(L.height)||0,I=parseFloat(L.width)||0,$=O!==((E=h.current)==null?void 0:E.height),j=I!==((_=h.current)==null?void 0:_.width);if(!h.current||$||j){const N={width:I,height:O};e.current.publishEvent("resize",N),h.current=N}},[e]),x={resize:b,getRootDimensions:w},S={getViewportPageSize:C,updateGridDimensionsRef:u,computeSizeAndPublishResizeEvent:y};et(e,x,"public"),et(e,S,"private");const T=d.useRef(!0),P=d.useCallback(k=>{o.current=k;const E=/jsdom/.test(window.navigator.userAgent);if(k.height===0&&!r.current&&!t.autoHeight&&!E&&(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(`
231
+ `}${s}`.trim()}function vC(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function zV(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{vC(e)}):vC(e)}function HV(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const BV=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,l=d.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||HV(s.target))return;let i="";if(e.current.getSelectedRows().size>0)i=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const c=Gn(e);if(c){const u=e.current.getCellParams(c.id,c.field);i=WP(u,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}i=e.current.unstable_applyPipeProcessors("clipboardCopy",i),i&&(zV(i),e.current.publishEvent("clipboardCopy",i))},[e,r,o]);xH(e,e.current.rootElementRef,"keydown",l),Rt(e,"clipboardCopy",t.onClipboardCopy)},VV=e=>m({},e,{columnMenu:{open:!1}}),GV=e=>{const t=dn(e,"useGridColumnMenu"),n=d.useCallback(s=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===s?a:(t.debug("Opening Column Menu"),m({},a,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=d.useCallback(()=>{const s=qm(e.current.state);if(s.field){const a=bi(e),c=_r(e),u=xo(e);let p=s.field;if(a[p]||(p=u[0]),c[p]===!1){const f=u.filter(h=>h===p?!0:c[h]!==!1),g=f.indexOf(p);p=f[g+1]||f[g-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),m({},a,{columnMenu:m({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=d.useCallback(s=>{t.debug("Toggle Column Menu");const i=qm(e.current.state);!i.open||i.field!==s?n(s):r()},[e,t,n,r]);et(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Le(e,"columnResizeStart",r),Le(e,"virtualScrollerWheel",e.current.hideColumnMenu),Le(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},UP=["maxWidth","minWidth","width","flex"];function WV({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const i=o.all[s];i&&i.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function l(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let i=e,a=t,c=0;o.frozenFields.forEach(u=>{i-=o.all[u].computedWidth,a-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const p=n[u];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let g=i/a*p.flex;g<p.minWidth?(c+=p.minWidth-g,g=p.minWidth,s.min[p.field]=!0):g>p.maxWidth&&(c+=p.maxWidth-g,g=p.maxWidth,s.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:g,flex:p.flex}}c<0?Object.keys(s.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(s.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),l()}return l(),o.all}const th=(e,t)=>{const n={};let r=0,o=0;const l=[];e.orderedFields.forEach(i=>{const a=m({},e.lookup[i]);if(e.columnVisibilityModel[i]===!1)a.computedWidth=0;else{let c;a.flex&&a.flex>0?(r+=a.flex,c=0,l.push(a)):c=ni(a.width||Ar.width,a.minWidth||Ar.minWidth,a.maxWidth||Ar.maxWidth),o+=c,a.computedWidth=c}n[i]=a});const s=Math.max(t-o,0);if(r>0&&t>0){const i=WV({initialFreeSpace:s,totalFlexUnits:r,flexColumns:l});Object.keys(i).forEach(a=>{n[a].computedWidth=i[a].computedWidth})}return m({},e,{lookup:n})},UV=(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 l={},s=[];for(let u=0;u<n.length;u+=1){const p=n[u];e.lookup[p]&&(l[p]=!0,s.push(p))}const i=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(u=>!l[u])],a=m({},e.lookup);for(let u=0;u<o.length;u+=1){const p=o[u],f=m({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([g,h])=>{f[g]=h===-1?1/0:h}),a[p]=f}return m({},e,{orderedFields:i,lookup:a})};function yC(e,t){let n=e[GP];return t&&e[t]&&(n=e[t]),n}const ps=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=_r(e),keepOnlyColumnsToUpsert:l=!1})=>{var s,i,a;const c=!e.current.state.columns;let u;if(c)u={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const h=Tl(e.current.state);u={orderedFields:l?[]:[...h.orderedFields],lookup:m({},h.lookup),columnVisibilityModel:o}}let p={};l&&!c&&(p=Object.keys(u.lookup).reduce((h,b)=>m({},h,{[b]:!1}),{})),t.forEach(h=>{const{field:b}=h;p[b]=!0;let w=u.lookup[b];w==null?(w=m({},yC(r,h.type),{field:b,hasBeenResized:!1}),u.orderedFields.push(b)):l&&u.orderedFields.push(b),w&&w.type!==h.type&&(w=m({},yC(r,h.type),{field:b}));let C=w.hasBeenResized;UP.forEach(y=>{h[y]!==void 0&&(C=!0,h[y]===-1&&(h[y]=1/0))}),u.lookup[b]=m({},w,h,{hasBeenResized:C})}),l&&!c&&Object.keys(u.lookup).forEach(h=>{p[h]||delete u.lookup[h]});const f=e.current.unstable_applyPipeProcessors("hydrateColumns",u),g=UV(f,n);return th(g,(s=(i=(a=e.current).getRootDimensions)==null||(i=i.call(a))==null?void 0:i.viewportInnerSize.width)!=null?s:0)},bC=e=>t=>m({},t,{columns:e});function nh({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let l=e;for(let s=n;s<r;s+=1)if(o[s]){const a=o[s].id,c=t.current.unstable_getCellColSpanInfo(a,e);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex)}return l}function KV({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:l,visibleRows:s}){const i=Math.max(e-n,t);return nh({firstColumnToRender:i,apiRef:l,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function Sv(e,t){const n=xi(e),r=dc(e);return Math.floor(t*n)*((r??0)+1)}const KP=LV(),qV=(e,t,n)=>{var r,o,l,s;const i=ps({apiRef:n,columnTypes:KP,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(l=t.columnVisibilityModel)!=null?l:(s=t.initialState)==null||(s=s.columns)==null?void 0:s.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return m({},e,{columns:i})};function YV(e,t){var n,r;const o=dn(e,"useGridColumns"),l=KP,s=d.useRef(t.columns),i=d.useRef(l);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:_r,changeEvent:"columnVisibilityModelChange"});const a=d.useCallback(I=>{o.debug("Updating columns state."),e.current.setState(bC(I)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",I.orderedFields)},[o,e]),c=d.useCallback(I=>bi(e)[I],[e]),u=d.useCallback(()=>oo(e),[e]),p=d.useCallback(()=>an(e),[e]),f=d.useCallback((I,$=!0)=>($?an(e):oo(e)).findIndex(N=>N.field===I),[e]),g=d.useCallback(I=>{const $=f(I);return ti(e)[$]},[e,f]),h=d.useCallback(I=>{_r(e)!==I&&(e.current.setState(j=>m({},j,{columns:ps({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:I,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,l]),b=d.useCallback(I=>{const $=ps({apiRef:e,columnTypes:l,columnsToUpsert:I,initialState:void 0,keepOnlyColumnsToUpsert:!1});a($)},[e,a,l]),w=d.useCallback((I,$)=>{var j;const N=_r(e),M=(j=N[I])!=null?j:!0;if($!==M){const D=m({},N,{[I]:$});e.current.setColumnVisibilityModel(D)}},[e]),C=d.useCallback(I=>xo(e).findIndex(j=>j===I),[e]),y=d.useCallback((I,$)=>{const j=xo(e),N=C(I);if(N===$)return;o.debug(`Moving column ${I} to index ${$}`);const M=[...j],D=M.splice(N,1)[0];M.splice($,0,D),a(m({},Tl(e.current.state),{orderedFields:M}));const A={column:e.current.getColumn(I),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(I),oldIndex:N};e.current.publishEvent("columnIndexChange",A)},[e,o,a,C]),x=d.useCallback((I,$)=>{var j,N;o.debug(`Updating column ${I} width to ${$}`);const M=Tl(e.current.state),D=M.lookup[I],A=m({},D,{width:$,hasBeenResized:!0});a(th(m({},M,{lookup:m({},M.lookup,{[I]:A})}),(j=(N=e.current.getRootDimensions())==null?void 0:N.viewportInnerSize.width)!=null?j:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(I),colDef:A,width:$})},[e,o,a]),S={getColumn:c,getAllColumns:u,getColumnIndex:f,getColumnPosition:g,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:C,updateColumns:b,setColumnVisibilityModel:h,setColumnVisibility:w,setColumnWidth:x},T={setColumnIndex:y};et(e,S,"public"),et(e,T,t.signature===lo.DataGrid?"private":"public");const P=d.useCallback((I,$)=>{var j,N;const M={},D=_r(e);(!$.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((j=(N=t.initialState)==null||(N=N.columns)==null?void 0:N.columnVisibilityModel)!=null?j:{}).length>0||Object.keys(D).length>0)&&(M.columnVisibilityModel=D),M.orderedFields=xo(e);const H=oo(e),z={};return H.forEach(W=>{if(W.hasBeenResized){const G={};UP.forEach(q=>{let re=W[q];re===1/0&&(re=-1),G[q]=re}),z[W.field]=G}}),Object.keys(z).length>0&&(M.dimensions=z),m({},I,{columns:M})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=d.useCallback((I,$)=>{var j;const N=(j=$.stateToRestore.columns)==null?void 0:j.columnVisibilityModel,M=$.stateToRestore.columns;if(N==null&&M==null)return I;const D=ps({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:M,columnVisibilityModel:N,keepOnlyColumnsToUpsert:!1});return e.current.setState(bC(D)),M!=null&&e.current.publishEvent("columnsChange",D.orderedFields),I},[e,l]),E=d.useCallback((I,$)=>{if($===Bl.columns){var j;const N=t.slots.columnsPanel;return v.jsx(N,m({},(j=t.slotProps)==null?void 0:j.columnsPanel))}return I},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),_=d.useCallback(I=>t.disableColumnSelector?I:[...I,"columnMenuColumnsItem"],[t.disableColumnSelector]);Gt(e,"columnMenu",_),Gt(e,"exportState",P),Gt(e,"restoreState",k),Gt(e,"preferencePanel",E);const R=d.useRef(null);Le(e,"viewportInnerSizeChange",I=>{R.current!==I.width&&(R.current=I.width,a(th(Tl(e.current.state),I.width)))});const L=d.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const I=ps({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(I)},[e,o,a,l]);wv(e,"hydrateColumns",L);const O=d.useRef(!0);d.useEffect(()=>{if(O.current){O.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&i.current===l)return;const I=ps({apiRef:e,columnTypes:l,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,i.current=l,a(I)},[o,e,a,t.columns,l]),d.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const QV=.7,XV=1.3,qP={compact:QV,comfortable:XV,standard:1},ZV=(e,t)=>m({},e,{density:{value:t.density,factor:qP[t.density]}}),JV=(e,t)=>{const n=dn(e,"useDensity"),r=d.useCallback(l=>{n.debug(`Set grid density to ${l}`),e.current.setState(s=>{const i=cv(s),a={value:l,factor:qP[l]};return Fl(i,a)?s:m({},s,{density:a})}),e.current.forceUpdate()},[n,e]);d.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),et(e,{setDensity:r},"public")};function e6(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),l=document.createElement("a");l.href=o,l.download=r,l.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const YP=({apiRef:e,options:t})=>{const n=oo(e);return t.fields?t.fields.reduce((o,l)=>{const s=n.find(i=>i.field===l);return s&&o.push(s),o},[]):(t.allColumns?n:an(e)).filter(o=>!o.disableExport)},t6=({apiRef:e})=>{var t,n;const r=hz(e),o=Dr(e),l=e.current.getSelectedRows(),s=r.filter(u=>o[u].type!=="footer"),i=Ci(e),a=(i==null||(t=i.top)==null?void 0:t.map(u=>u.id))||[],c=(i==null||(n=i.bottom)==null?void 0:n.map(u=>u.id))||[];return s.unshift(...a),s.push(...c),l.size>0?s.filter(u=>l.has(u)):s},n6=(e,t)=>{const n=dn(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,l=d.useCallback((c={})=>{var u,p,f,g,h;n.debug("Get data as CSV");const b=YP({apiRef:e,options:c}),C=((u=c.getRowsToExport)!=null?u:t6)({apiRef:e});return AV({columns:b,rowIds:C,csvOptions:{delimiter:c.delimiter||",",shouldAppendQuotes:(p=c.shouldAppendQuotes)!=null?p:!0,includeHeaders:(f=c.includeHeaders)!=null?f:!0,includeColumnGroupsHeaders:(g=c.includeColumnGroupsHeaders)!=null?g:!0,escapeFormulas:(h=c.escapeFormulas)!=null?h:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=d.useCallback(c=>{n.debug("Export data as CSV");const u=l(c),p=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});e6(p,"csv",c==null?void 0:c.fileName)},[n,l]);et(e,{getDataAsCsv:l,exportDataAsCsv:s},"public");const a=d.useCallback((c,u)=>{var p;return(p=u.csvOptions)!=null&&p.disableToolbarButton?c:[...c,{component:v.jsx(M3,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Gt(e,"exportMenu",a)},gu=(e,t,n)=>{var r;let o=e.paginationModel;const l=e.rowCount,s=(r=n==null?void 0:n.pageSize)!=null?r:o.pageSize,i=wP(l,s);n&&((n==null?void 0:n.page)!==o.page||(n==null?void 0:n.pageSize)!==o.pageSize)&&(o=n);const a=PH(o.page,i);return a!==o.page&&(o=m({},o,{page:a})),PP(o.pageSize,t),o},r6=(e,t)=>{var n;const r=dn(e,"useGridPaginationModel"),o=Re(e,xi),l=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:ir,changeEvent:"paginationModelChange"});const s=d.useCallback(b=>{const w=ir(e);b!==w.page&&(r.debug(`Setting page to ${b}`),e.current.setPaginationModel({page:b,pageSize:w.pageSize}))},[e,r]),i=d.useCallback(b=>{const w=ir(e);b!==w.pageSize&&(r.debug(`Setting page size to ${b}`),e.current.setPaginationModel({pageSize:b,page:w.page}))},[e,r]),a=d.useCallback(b=>{const w=ir(e);b!==w&&(r.debug("Setting 'paginationModel' to",b),e.current.setState(C=>m({},C,{pagination:m({},C.pagination,{paginationModel:gu(C.pagination,t.signature,b)})})))},[e,r,t.signature]);et(e,{setPage:s,setPageSize:i,setPaginationModel:a},"public");const u=d.useCallback((b,w)=>{var C;const y=ir(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((C=t.initialState)==null||(C=C.pagination)==null?void 0:C.paginationModel)!=null||y.page!==0&&y.pageSize!==SH(t.autoPageSize)?m({},b,{pagination:m({},b.pagination,{paginationModel:y})}):b},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),p=d.useCallback((b,w)=>{var C,y;const x=(C=w.stateToRestore.pagination)!=null&&C.paginationModel?m({},SP(t.autoPageSize),(y=w.stateToRestore.pagination)==null?void 0:y.paginationModel):ir(e);return e.current.setState(S=>m({},S,{pagination:m({},S.pagination,{paginationModel:gu(S.pagination,t.signature,x)})})),b},[e,t.autoPageSize,t.signature]);Gt(e,"exportState",u),Gt(e,"restoreState",p);const f=()=>{var b;const w=ir(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize})},g=d.useCallback(()=>{if(!t.autoPageSize)return;const b=e.current.getRootDimensions()||{viewportInnerSize:{height:0}},w=aP(e),C=Math.floor((b.viewportInnerSize.height-w.top-w.bottom)/l);e.current.setPageSize(C)},[e,t.autoPageSize,l]),h=d.useCallback(b=>{if(b==null)return;const w=ir(e),C=EH(e);w.page>C-1&&e.current.setPage(Math.max(0,C-1))},[e]);Le(e,"viewportInnerSizeChange",g),Le(e,"paginationModelChange",f),Le(e,"rowCountChange",h),d.useEffect(()=>{e.current.setState(b=>m({},b,{pagination:m({},b.pagination,{paginationModel:gu(b.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),d.useEffect(g,[g])};function o6(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function l6(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const s6=(e,t)=>{const n=dn(e,"useGridPrintExport"),r=d.useRef(null),o=d.useRef(null),l=d.useRef({}),s=d.useRef([]);d.useEffect(()=>{r.current=jt(e.current.rootElementRef.current)},[e]);const i=d.useCallback((h,b,w)=>new Promise(C=>{const y=YP({apiRef:e,options:{fields:h,allColumns:b}}).map(T=>T.field),x=oo(e),S={};x.forEach(T=>{S[T.field]=y.includes(T.field)}),w&&(S[wi.field]=!0),e.current.setColumnVisibilityModel(S),C()}),[e]),a=d.useCallback(h=>{const w=h({apiRef:e}).map(C=>e.current.getRow(C));e.current.setRows(w)},[e]),c=d.useCallback((h,b)=>{var w,C;const y=m({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},b),x=h.contentDocument;if(!x)return;const S=Ya(e.current.state),T=e.current.rootElementRef.current,P=T.cloneNode(!0),k=P.querySelector(`.${B.main}`);k.style.overflow="visible",P.style.contain="size";const _=P.querySelector(`.${B.columnHeaders}`).querySelector(`.${B.columnHeadersInner}`);_.style.width="100%";let R=((w=T.querySelector(`.${B.toolbarContainer}`))==null?void 0:w.offsetHeight)||0,F=((C=T.querySelector(`.${B.footerContainer}`))==null?void 0:C.offsetHeight)||0;if(y.hideToolbar){var L;(L=P.querySelector(`.${B.toolbarContainer}`))==null||L.remove(),R=0}if(y.hideFooter){var O;(O=P.querySelector(`.${B.footerContainer}`))==null||O.remove(),F=0}const I=S.currentPageTotalHeight+Sv(e,t.columnHeaderHeight)+R+F;if(P.style.height=`${I}px`,P.style.boxSizing="content-box",b!=null&&b.getRowsToExport){const M=P.querySelector(`.${B.footerContainer}`);M.style.position="absolute",M.style.width="100%",M.style.top=`${I-F}px`}const $=document.createElement("div");$.appendChild(P),x.body.innerHTML=$.innerHTML;const j=typeof y.pageStyle=="function"?y.pageStyle():y.pageStyle;if(typeof j=="string"){const M=x.createElement("style");M.appendChild(x.createTextNode(j)),x.head.appendChild(M)}y.bodyClassName&&x.body.classList.add(...y.bodyClassName.split(" "));const N=[];if(y.copyStyles){const M=T.getRootNode(),A=(M.constructor.name==="ShadowRoot"?M:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let H=0;H<A.length;H+=1){const z=A[H];if(z.tagName==="STYLE"){const W=x.createElement(z.tagName),G=z.sheet;if(G){let q="";for(let re=0;re<G.cssRules.length;re+=1)typeof G.cssRules[re].cssText=="string"&&(q+=`${G.cssRules[re].cssText}\r
232
+ `);W.appendChild(x.createTextNode(q)),x.head.appendChild(W)}}else if(z.getAttribute("href")){const W=x.createElement(z.tagName);for(let G=0;G<z.attributes.length;G+=1){const q=z.attributes[G];q&&W.setAttribute(q.nodeName,q.nodeValue||"")}N.push(new Promise(G=>{W.addEventListener("load",()=>G())})),x.head.appendChild(W)}}}Promise.all(N).then(()=>{h.contentWindow.print()})},[e,r,t.columnHeaderHeight]),u=d.useCallback(h=>{var b;r.current.body.removeChild(h),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(b=b.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.unstable_setVirtualization(!0),e.current.setRows(s.current),o.current=null,l.current={},s.current=[]},[e]),f={exportDataAsPrint:d.useCallback(async h=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),l.current=_r(e);const b=bo(e);if(s.current=Xi(e).map(C=>b[C]),t.pagination){const y={page:0,pageSize:rP(e)};e.current.setState(x=>m({},x,{pagination:m({},x.pagination,{paginationModel:gu(x.pagination,"DataGridPro",y)})})),e.current.forceUpdate()}await i(h==null?void 0:h.fields,h==null?void 0:h.allColumns,h==null?void 0:h.includeCheckboxes),h!=null&&h.getRowsToExport&&a(h.getRowsToExport),e.current.unstable_setVirtualization(!1),await o6();const w=l6(h==null?void 0:h.fileName);w.onload=()=>{c(w,h),w.contentWindow.matchMedia("print").addEventListener("change",y=>{y.matches===!1&&u(w)})},r.current.body.appendChild(w)},[t,n,e,c,u,i,a])};et(e,f,"public");const g=d.useCallback((h,b)=>{var w;return(w=b.printOptions)!=null&&w.disableToolbarButton?h:[...h,{component:v.jsx($3,{options:b.printOptions}),componentName:"printExport"}]},[]);Gt(e,"exportMenu",g)},i6=(e,t,n)=>{var r,o,l;const s=(r=(o=t.filterModel)!=null?o:(l=t.initialState)==null||(l=l.filter)==null?void 0:l.filterModel)!=null?r:Ka();return m({},e,{filter:{filterModel:NP(s,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},a6=e=>e.filteredRowsLookup;function CC(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function c6(){return xp(Object.values)}const u6=(e,t)=>{var n,r;const o=dn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:en,changeEvent:"filterModelChange"});const l=d.useCallback(()=>{e.current.setState(R=>{const F=en(R,e.current.instanceId),L=t.filterMode==="client"?X3(F,e,t.disableEval):null,O=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:F??Ka()}),I=m({},R,{filter:m({},R.filter,O)}),$=CC(e,I);return m({},I,{visibleRowsLookup:$})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),s=d.useCallback((R,F)=>F==null||F.filterable===!1||t.disableColumnFilter?R:[...R,"columnMenuFilterItem"],[t.disableColumnFilter]),i=d.useCallback(()=>{l(),e.current.forceUpdate()},[e,l]),a=d.useCallback(R=>{const F=en(e),L=[...F.items],O=L.findIndex(I=>I.id===R.id);O===-1?L.push(R):L[O]=R,e.current.setFilterModel(m({},F,{items:L}),"upsertFilterItem")},[e]),c=d.useCallback(R=>{const F=en(e),L=[...F.items];R.forEach(O=>{const I=R.findIndex($=>$.id===O.id);I===-1?L.push(O):L[I]=O}),e.current.setFilterModel(m({},F,{items:R}),"upsertFilterItems")},[e]),u=d.useCallback(R=>{const F=en(e),L=F.items.filter(O=>O.id!==R.id);L.length!==F.items.length&&e.current.setFilterModel(m({},F,{items:L}),"deleteFilterItem")},[e]),p=d.useCallback((R,F,L)=>{if(o.debug("Displaying filter panel"),R){const O=en(e),I=O.items.filter(M=>{var D;if(M.value!==void 0)return!(Array.isArray(M.value)&&M.value.length===0);const H=(D=e.current.getColumn(M.field).filterOperators)==null?void 0:D.find(W=>W.value===M.operator);return!(typeof(H==null?void 0:H.requiresFilterValue)>"u"?!0:H==null?void 0:H.requiresFilterValue)});let $;const j=I.find(M=>M.field===R),N=e.current.getColumn(R);j?$=I:t.disableMultipleColumnsFiltering?$=[Zm({field:R,operator:N.filterOperators[0].value},e)]:$=[...I,Zm({field:R,operator:N.filterOperators[0].value},e)],e.current.setFilterModel(m({},O,{items:$}))}e.current.showPreferences(Bl.filters,F,L)},[e,o,t.disableMultipleColumnsFiltering]),f=d.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),g=d.useCallback(R=>{const F=en(e);F.logicOperator!==R&&e.current.setFilterModel(m({},F,{logicOperator:R}),"changeLogicOperator")},[e]),h=d.useCallback(R=>{const F=en(e);Fl(F.quickFilterValues,R)||e.current.setFilterModel(m({},F,{quickFilterValues:[...R]}))},[e]),b=d.useCallback((R,F)=>{en(e)!==R&&(o.debug("Setting filter model"),e.current.updateControlState("filter",aC(R,t.disableMultipleColumnsFiltering,e),F),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),w={setFilterLogicOperator:g,unstable_applyFilters:i,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:c,setFilterModel:b,showFilterPanel:p,hideFilterPanel:f,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics};et(e,w,"public");const C=d.useCallback((R,F)=>{var L;const O=en(e);return!F.exportOnlyDirtyModels||t.filterModel!=null||((L=t.initialState)==null||(L=L.filter)==null?void 0:L.filterModel)!=null||!Fl(O,Ka())?m({},R,{filter:{filterModel:O}}):R},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),y=d.useCallback((R,F)=>{var L;const O=(L=F.stateToRestore.filter)==null?void 0:L.filterModel;return O==null?R:(e.current.updateControlState("filter",aC(O,t.disableMultipleColumnsFiltering,e),"restoreState"),m({},R,{callbacks:[...R.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=d.useCallback((R,F)=>{if(F===Bl.filters){var L;const O=t.slots.filterPanel;return v.jsx(O,m({},(L=t.slotProps)==null?void 0:L.filterPanel))}return R},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:S}=t,T=rv(c6),P=d.useCallback(R=>{if(t.filterMode!=="client"||!R.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const F=bo(e),L={},{isRowMatchingFilters:O}=R,I={},$={passingFilterItems:null,passingQuickFilterValues:null},j=T.current(e.current.state.rows.dataRowIdToModelLookup);for(let D=0;D<j.length;D+=1){const A=j[D],H=S?S(A):A.id;O(A,void 0,$);const z=J3([$.passingFilterItems],[$.passingQuickFilterValues],R.filterModel,e,I);L[H]=z}const N="auto-generated-group-footer-root";return F[N]&&(L[N]=!0),{filteredRowsLookup:L,filteredDescendantCountLookup:{}}},[e,t.filterMode,S,T]);Gt(e,"columnMenu",s),Gt(e,"exportState",C),Gt(e,"restoreState",y),Gt(e,"preferencePanel",x),dd(e,Vl,"filtering",P),dd(e,Vl,"visibleRowsLookupCreation",a6);const k=d.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const R=en(e),F=tz(e),L=R.items.filter(O=>O.field&&F[O.field]);L.length<R.items.length&&e.current.setFilterModel(m({},R,{items:L}))},[e,o]),E=d.useCallback(R=>{R==="filtering"&&e.current.unstable_applyFilters()},[e]),_=d.useCallback(()=>{e.current.setState(R=>m({},R,{visibleRowsLookup:CC(e,R)})),e.current.forceUpdate()},[e]);Le(e,"rowsSet",l),Le(e,"columnsChange",k),Le(e,"activeStrategyProcessorChange",E),Le(e,"rowExpansionChange",_),Le(e,"columnVisibilityModelChange",()=>{const R=en(e);R.quickFilterValues&&R.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),fc(()=>{e.current.unstable_applyFilters()}),vt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},d6=e=>m({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),p6=(e,t)=>{const n=dn(e,"useGridFocus"),r=d.useRef(null),o=d.useCallback((k,E)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),E)},[e]),l=d.useCallback((k,E)=>{const _=Gn(e);(_==null?void 0:_.id)===k&&(_==null?void 0:_.field)===E||(e.current.setState(R=>(n.debug(`Focusing on cell with id=${k} and field=${E}`),m({},R,{tabIndex:{cell:{id:k,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:E},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(_&&o(_,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,E))))},[e,n,o]),s=d.useCallback((k,E={})=>{const _=Gn(e);o(_,E),e.current.setState(R=>(n.debug(`Focusing on column header with colIndex=${k}`),m({},R,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),i=d.useCallback((k,E={})=>{const _=Gn(e);o(_,E),e.current.setState(R=>(n.debug(`Focusing on column header filter with colIndex=${k}`),m({},R,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=d.useCallback((k,E,_={})=>{const R=Gn(e);R&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(R.id,R.field),_),e.current.setState(F=>m({},F,{tabIndex:{columnGroupHeader:{field:k,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:E},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=d.useCallback(()=>nd(e),[e]),u=d.useCallback((k,E,_)=>{let R=e.current.getColumnIndex(E);const F=an(e),L=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode}),O=Ci(e),I=[].concat(O.top||[],L.rows,O.bottom||[]);let $=I.findIndex(D=>D.id===k);_==="right"?R+=1:_==="left"?R-=1:$+=1,R>=F.length?($+=1,$<I.length&&(R=0)):R<0&&($-=1,$>=0&&(R=F.length-1)),$=ni($,0,I.length-1);const j=I[$];if(!j)return;const N=e.current.unstable_getCellColSpanInfo(j.id,R);N&&N.spannedByColSpan&&(_==="left"||_==="below"?R=N.leftVisibleCellIndex:_==="right"&&(R=N.rightVisibleCellIndex)),R=ni(R,0,F.length-1);const M=F[R];e.current.setCellFocus(j.id,M.field)},[e,t.pagination,t.paginationMode]),p=d.useCallback(({id:k,field:E})=>{e.current.setCellFocus(k,E)},[e]),f=d.useCallback((k,E)=>{E.key==="Enter"||E.key==="Tab"||E.key==="Shift"||id(E.key)||e.current.setCellFocus(k.id,k.field)},[e]),g=d.useCallback(({field:k},E)=>{E.target===E.currentTarget&&e.current.setColumnHeaderFocus(k,E)},[e]),h=d.useCallback(({fields:k,depth:E},_)=>{if(_.target!==_.currentTarget)return;const R=nd(e);R!==null&&R.depth===E&&k.includes(R.field)||e.current.setColumnGroupHeaderFocus(k[0],E,_)},[e]),b=d.useCallback((k,E)=>{var _;(_=E.relatedTarget)!=null&&_.className.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(R=>m({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),w=d.useCallback(k=>{r.current=k},[]),C=d.useCallback(k=>{const E=r.current;r.current=null;const _=Gn(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:E}))return;if(!_){E&&e.current.setCellFocus(E.id,E.field);return}if((E==null?void 0:E.id)===_.id&&(E==null?void 0:E.field)===_.field)return;const F=e.current.getCellElement(_.id,_.field);F!=null&&F.contains(k.target)||(E?e.current.setCellFocus(E.id,E.field):(e.current.setState(L=>m({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(_,k)))},[e,o]),y=d.useCallback(k=>{if(k.cellMode==="view")return;const E=Gn(e);((E==null?void 0:E.id)!==k.id||(E==null?void 0:E.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),x=d.useCallback(()=>{const k=Gn(e);k&&!e.current.getRow(k.id)&&e.current.setState(E=>m({},E,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),S=Ct(()=>{const k=Gn(e);if(!k)return;const E=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(E.rows.find(F=>F.id===k.id))return;const R=an(e);e.current.setState(F=>m({},F,{tabIndex:{cell:{id:E.rows[0].id,field:R[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:l,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:i},P={moveFocusToRelativeCell:u,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:c};et(e,T,"public"),et(e,P,"private"),d.useEffect(()=>{const k=jt(e.current.rootElementRef.current);return k.addEventListener("mouseup",C),()=>{k.removeEventListener("mouseup",C)}},[e,C]),Le(e,"columnHeaderBlur",b),Le(e,"cellDoubleClick",p),Le(e,"cellMouseDown",w),Le(e,"cellKeyDown",f),Le(e,"cellModeChange",y),Le(e,"columnHeaderFocus",g),Le(e,"columnGroupHeaderFocus",h),Le(e,"rowsSet",x),Le(e,"paginationModelChange",S)};function f6(e,t){const n=Ci(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Tf=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},Of=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},m6=(e,t)=>{const n=dn(e,"useGridKeyboardNavigation"),r=Xl(e,t).rows,o=Vr(),l=d.useMemo(()=>f6(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,i=d.useCallback((C,y,x="left")=>{const S=pl(e),T=e.current.unstable_getCellColSpanInfo(y,C);T&&T.spannedByColSpan&&(x==="left"?C=T.leftVisibleCellIndex:x==="right"&&(C=T.rightVisibleCellIndex));const P=S.findIndex(E=>E.id===y);n.debug(`Navigating to cell row ${P}, col ${C}`),e.current.scrollToIndexes({colIndex:C,rowIndex:P});const k=e.current.getVisibleColumns()[C].field;e.current.setCellFocus(y,k)},[e,n]),a=d.useCallback((C,y)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const x=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFocus(x,y)},[e,n]),c=d.useCallback((C,y)=>{n.debug(`Navigating to header filter col ${C}`),e.current.scrollToIndexes({colIndex:C});const x=e.current.getVisibleColumns()[C].field;e.current.setColumnHeaderFilterFocus(x,y)},[e,n]),u=d.useCallback((C,y,x)=>{n.debug(`Navigating to header col ${C}`),e.current.scrollToIndexes({colIndex:C});const{field:S}=e.current.getVisibleColumns()[C];e.current.setColumnGroupHeaderFocus(S,y,x)},[e,n]),p=d.useCallback(C=>{var y;return(y=l[C])==null?void 0:y.id},[l]),f=d.useCallback((C,y)=>{const x=y.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(y.target)&&C.field!==wi.field||!e.current.getRootDimensions())return;const P=e.current.getViewportPageSize(),k=C.field?e.current.getColumnIndex(C.field):0,E=l.length>0?0:null,_=l.length-1,R=0,F=an(e).length-1,L=dc(e);let O=!0;switch(y.key){case"ArrowDown":{E!==null&&(s?c(k,y):i(k,p(E)));break}case"ArrowRight":{const I=Of({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});I!==null&&a(I,y);break}case"ArrowLeft":{const I=Tf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});I!==null&&a(I,y);break}case"ArrowUp":{L>0&&u(k,L-1,y);break}case"PageDown":{E!==null&&_!==null&&i(k,p(Math.min(E+P,_)));break}case"Home":{a(R,y);break}case"End":{a(F,y);break}case"Enter":{(y.ctrlKey||y.metaKey)&&e.current.toggleColumnMenu(C.field);break}case" ":break;default:O=!1}O&&y.preventDefault()},[e,l.length,s,c,i,p,o.direction,a,u]),g=d.useCallback((C,y)=>{if(!e.current.getRootDimensions())return;const S=_H(e)===C.field,T=LH(e)===C.field;if(S||T||!id(y.key))return;const P=e.current.getViewportPageSize(),k=C.field?e.current.getColumnIndex(C.field):0,E=0,_=l.length-1,R=0,F=an(e).length-1;let L=!0;switch(y.key){case"ArrowDown":{const O=p(E);O!=null&&i(k,O);break}case"ArrowRight":{const O=Of({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});O!==null&&c(O,y);break}case"ArrowLeft":{const O=Tf({currentColIndex:k,firstColIndex:R,lastColIndex:F,direction:o.direction});O!==null?c(O,y):e.current.setColumnHeaderFilterFocus(C.field,y);break}case"ArrowUp":{a(k,y);break}case"PageDown":{_!==null&&i(k,p(Math.min(E+P,_)));break}case"Home":{c(R,y);break}case"End":{c(F,y);break}case" ":break;default:L=!1}L&&y.preventDefault()},[e,l.length,c,o.direction,a,i,p]),h=d.useCallback((C,y)=>{if(!e.current.getRootDimensions())return;const S=nd(e);if(S===null)return;const{field:T,depth:P}=S,{fields:k,depth:E,maxDepth:_}=C,R=e.current.getViewportPageSize(),F=e.current.getColumnIndex(T),L=T?e.current.getColumnIndex(T):0,O=0,I=l.length-1,$=0,j=an(e).length-1;let N=!0;switch(y.key){case"ArrowDown":{E===_-1?a(F,y):u(F,P+1,y);break}case"ArrowUp":{E>0&&u(F,P-1,y);break}case"ArrowRight":{const M=k.length-k.indexOf(T)-1;F+M+1<=j&&u(F+M+1,P,y);break}case"ArrowLeft":{const M=k.indexOf(T);F-M-1>=$&&u(F-M-1,P,y);break}case"PageDown":{I!==null&&i(L,p(Math.min(O+R,I)));break}case"Home":{u($,P,y);break}case"End":{u(j,P,y);break}case" ":break;default:N=!1}N&&y.preventDefault()},[e,l.length,a,u,i,p]),b=d.useCallback((C,y)=>{if(pc(y))return;const x=e.current.getCellParams(C.id,C.field);if(x.cellMode===yt.Edit||!id(y.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:y,cell:x}))return;const T=e.current.getRootDimensions();if(l.length===0||!T)return;const P=o.direction,k=e.current.getViewportPageSize(),E=C.field?e.current.getColumnIndex(C.field):0,_=l.findIndex($=>$.id===C.id),R=0,F=l.length-1,L=0,O=an(e).length-1;let I=!0;switch(y.key){case"ArrowDown":{_<F&&i(E,p(_+1));break}case"ArrowUp":{_>R?i(E,p(_-1)):s?c(E,y):a(E,y);break}case"ArrowRight":{const $=Of({currentColIndex:E,firstColIndex:L,lastColIndex:O,direction:P});$!==null&&i($,p(_),P==="rtl"?"left":"right");break}case"ArrowLeft":{const $=Tf({currentColIndex:E,firstColIndex:L,lastColIndex:O,direction:P});$!==null&&i($,p(_),P==="rtl"?"right":"left");break}case"Tab":{y.shiftKey&&E>L?i(E-1,p(_),"left"):!y.shiftKey&&E<O&&i(E+1,p(_),"right");break}case" ":{if(C.field===Cv)break;const j=C.colDef;if(j&&j.type==="treeDataGroup")break;!y.shiftKey&&_<F&&i(E,p(Math.min(_+k,F)));break}case"PageDown":{_<F&&i(E,p(Math.min(_+k,F)));break}case"PageUp":{const $=Math.max(_-k,R);$!==_&&$>=R?i(E,p($)):a(E,y);break}case"Home":{y.ctrlKey||y.metaKey||y.shiftKey?i(L,p(R)):i(L,p(_));break}case"End":{y.ctrlKey||y.metaKey||y.shiftKey?i(O,p(F)):i(O,p(_));break}default:I=!1}I&&y.preventDefault()},[e,l,o.direction,i,p,s,c,a]),w=d.useCallback((C,{event:y})=>y.key===" "?!1:C,[]);Gt(e,"canStartEditing",w),Le(e,"columnHeaderKeyDown",f),Le(e,"headerFilterKeyDown",g),Le(e,"columnGroupHeaderKeyDown",h),Le(e,"cellKeyDown",b)},h6=(e,t)=>{var n;const r=dn(e,"useGridRowCount"),o=Re(e,oP),l=Re(e,Rs);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Rs,changeEvent:"rowCountChange"});const i={setRowCount:d.useCallback(u=>{l!==u&&(r.debug("Setting 'rowCount' to",u),e.current.setState(p=>m({},p,{pagination:m({},p.pagination,{rowCount:u})})))},[e,r,l])};et(e,i,"public");const a=d.useCallback((u,p)=>{var f;const g=Rs(e);return!p.exportOnlyDirtyModels||t.rowCount!=null||((f=t.initialState)==null||(f=f.pagination)==null?void 0:f.rowCount)!=null?m({},u,{pagination:m({},u.pagination,{rowCount:g})}):u},[e,t.rowCount,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.rowCount]),c=d.useCallback((u,p)=>{var f;const g=(f=p.stateToRestore.pagination)!=null&&f.rowCount?p.stateToRestore.pagination.rowCount:Rs(e);return e.current.setState(h=>m({},h,{pagination:m({},h.pagination,{rowCount:g})})),u},[e]);Gt(e,"exportState",a),Gt(e,"restoreState",c),d.useEffect(()=>{},[t.rowCount,t.paginationMode]),d.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(o):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,o,t.paginationMode,t.rowCount])},g6=(e,t)=>{var n,r,o,l,s;const i=m({},SP(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);PP(i.pageSize,t.signature);const a=(o=(l=t.rowCount)!=null?l:(s=t.initialState)==null||(s=s.pagination)==null?void 0:s.rowCount)!=null?o:0;return m({},e,{pagination:{paginationModel:i,rowCount:a}})},v6=(e,t)=>{r6(e,t),h6(e,t)},y6=(e,t)=>{var n,r;return m({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},b6=(e,t)=>{var n;const r=dn(e,"useGridPreferencesPanel"),o=d.useRef(),l=d.useRef(),s=d.useCallback(()=>{r.debug("Hiding Preferences Panel");const f=qa(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(g=>m({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),i=d.useCallback(()=>{l.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=d.useCallback(()=>{o.current=setTimeout(s,100)},[s]),c=d.useCallback((f,g,h)=>{r.debug("Opening Preferences Panel"),i(),e.current.setState(b=>m({},b,{preferencePanel:m({},b.preferencePanel,{open:!0,openedPanelValue:f,panelId:g,labelId:h})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[r,i,e]);et(e,{showPreferences:c,hidePreferences:a},"public");const u=d.useCallback((f,g)=>{var h;const b=qa(e.current.state);return!g.exportOnlyDirtyModels||((h=t.initialState)==null?void 0:h.preferencePanel)!=null||b.open?m({},f,{preferencePanel:b}):f},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=d.useCallback((f,g)=>{const h=g.stateToRestore.preferencePanel;return h!=null&&e.current.setState(b=>m({},b,{preferencePanel:h})),f},[e]);Gt(e,"exportState",u),Gt(e,"restoreState",p),d.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(l.current)},[])},C6=["id","field"],x6=["id","field"],w6=co(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),S6=(e,t)=>{const[n,r]=d.useState({}),o=d.useRef(n),l=d.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:i,cellModesModel:a,onCellModesModelChange:c}=t,u=I=>(...$)=>{t.editMode===io.Cell&&I(...$)},p=d.useCallback((I,$)=>{const j=e.current.getCellParams(I,$);if(!e.current.isCellEditable(j))throw new Error(`MUI: The cell with id=${I} and field=${$} is not editable.`)},[e]),f=d.useCallback((I,$,j)=>{if(e.current.getCellMode(I,$)!==j)throw new Error(`MUI: The cell with id=${I} and field=${$} is not in ${j} mode.`)},[e]),g=d.useCallback((I,$)=>{if(!I.isEditable||I.cellMode===yt.Edit)return;const j=m({},I,{reason:po.cellDoubleClick});e.current.publishEvent("cellEditStart",j,$)},[e]),h=d.useCallback((I,$)=>{if(I.cellMode===yt.View||e.current.getCellMode(I.id,I.field)===yt.View)return;const j=m({},I,{reason:Tr.cellFocusOut});e.current.publishEvent("cellEditStop",j,$)},[e]),b=d.useCallback((I,$)=>{if(I.cellMode===yt.Edit){if($.which===229)return;let j;if($.key==="Escape"?j=Tr.escapeKeyDown:$.key==="Enter"?j=Tr.enterKeyDown:$.key==="Tab"&&(j=$.shiftKey?Tr.shiftTabKeyDown:Tr.tabKeyDown,$.preventDefault()),j){const N=m({},I,{reason:j});e.current.publishEvent("cellEditStop",N,$)}}else if(I.isEditable){let j;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:$,cellParams:I,editMode:"cell"}))return;if(hP($)?j=po.printableKeyDown:($.ctrlKey||$.metaKey)&&$.key==="v"?j=po.pasteKeyDown:$.key==="Enter"?j=po.enterKeyDown:($.key==="Delete"||$.key==="Backspace")&&(j=po.deleteKeyDown),j){const M=m({},I,{reason:j,key:$.key});e.current.publishEvent("cellEditStart",M,$)}}},[e]),w=d.useCallback(I=>{const{id:$,field:j,reason:N}=I,M={id:$,field:j};(N===po.printableKeyDown||N===po.deleteKeyDown||N===po.pasteKeyDown)&&(M.deleteValue=!0),e.current.startCellEditMode(M)},[e]),C=d.useCallback(I=>{const{id:$,field:j,reason:N}=I;e.current.runPendingEditCellValueMutation($,j);let M;N===Tr.enterKeyDown?M="below":N===Tr.tabKeyDown?M="right":N===Tr.shiftTabKeyDown&&(M="left");const D=N==="escapeKeyDown";e.current.stopCellEditMode({id:$,field:j,ignoreModifications:D,cellToFocusAfter:M})},[e]);Le(e,"cellDoubleClick",u(g)),Le(e,"cellFocusOut",u(h)),Le(e,"cellKeyDown",u(b)),Le(e,"cellEditStart",u(w)),Le(e,"cellEditStop",u(C)),Rt(e,"cellEditStart",t.onCellEditStart),Rt(e,"cellEditStop",t.onCellEditStop);const y=d.useCallback((I,$)=>{const j=Sn(e.current.state);return j[I]&&j[I][$]?yt.Edit:yt.View},[e]),x=Ct(I=>{const $=I!==t.cellModesModel;c&&$&&c(I,{}),!(t.cellModesModel&&$)&&(r(I),o.current=I,e.current.publishEvent("cellModesModelChange",I))}),S=d.useCallback((I,$,j)=>{const N=m({},o.current);if(j!==null)N[I]=m({},N[I],{[$]:m({},j)});else{const M=N[I],D=K(M,[$].map(Ha));N[I]=D,Object.keys(N[I]).length===0&&delete N[I]}x(N)},[x]),T=d.useCallback((I,$,j)=>{e.current.setState(N=>{const M=m({},N.editRows);return j!==null?M[I]=m({},M[I],{[$]:m({},j)}):(delete M[I][$],Object.keys(M[I]).length===0&&delete M[I]),m({},N,{editRows:M})}),e.current.forceUpdate()},[e]),P=d.useCallback(I=>{const{id:$,field:j}=I,N=K(I,C6);p($,j),f($,j,yt.View),S($,j,m({mode:yt.Edit},N))},[p,f,S]),k=Ct(I=>{const{id:$,field:j,deleteValue:N,initialValue:M}=I;let D=e.current.getCellValue($,j);(N||M)&&(D=N?"":M),T($,j,{value:D,error:!1,isProcessingProps:!1}),e.current.setCellFocus($,j)}),E=d.useCallback(I=>{const{id:$,field:j}=I,N=K(I,x6);f($,j,yt.Edit),S($,j,m({mode:yt.View},N))},[f,S]),_=Ct(async I=>{const{id:$,field:j,ignoreModifications:N,cellToFocusAfter:M="none"}=I;f($,j,yt.Edit),e.current.runPendingEditCellValueMutation($,j);const D=()=>{T($,j,null),S($,j,null),M!=="none"&&e.current.moveFocusToRelativeCell($,j,M)};if(N){D();return}const A=Sn(e.current.state),{error:H,isProcessingProps:z}=A[$][j];if(H||z){l.current[$][j].mode=yt.Edit,S($,j,{mode:yt.Edit});return}const W=e.current.getRowWithUpdatedValuesFromCellEditing($,j);if(s){const G=q=>{l.current[$][j].mode=yt.Edit,S($,j,{mode:yt.Edit}),i?i(q):w6()};try{const q=e.current.getRow($);Promise.resolve(s(W,q)).then(re=>{e.current.updateRows([re]),D()}).catch(G)}catch(q){G(q)}}else e.current.updateRows([W]),D()}),R=d.useCallback(async I=>{var $;const{id:j,field:N,value:M,debounceMs:D,unstable_skipValueParser:A}=I;p(j,N),f(j,N,yt.Edit);const H=e.current.getColumn(N),z=e.current.getRow(j);let W=M;H.valueParser&&!A&&(W=H.valueParser(M,e.current.getCellParams(j,N)));let G=Sn(e.current.state),q=m({},G[j][N],{value:W,changeReason:D?"debouncedSetEditCellValue":"setEditCellValue"});if(H.preProcessEditCellProps){const re=M!==G[j][N].value;q=m({},q,{isProcessingProps:!0}),T(j,N,q),q=await Promise.resolve(H.preProcessEditCellProps({id:j,row:z,props:q,hasChanged:re}))}return e.current.getCellMode(j,N)===yt.View?!1:(G=Sn(e.current.state),q=m({},q,{isProcessingProps:!1}),q.value=H.preProcessEditCellProps?G[j][N].value:W,T(j,N,q),G=Sn(e.current.state),!(($=G[j])!=null&&($=$[N])!=null&&$.error))},[e,p,f,T]),F=d.useCallback((I,$)=>{const j=e.current.getColumn($),N=Sn(e.current.state),M=e.current.getRow(I);if(!N[I]||!N[I][$])return e.current.getRow(I);const{value:D}=N[I][$];return j.valueSetter?j.valueSetter({value:D,row:M}):m({},M,{[$]:D})},[e]),L={getCellMode:y,startCellEditMode:P,stopCellEditMode:E},O={setCellEditingEditCellValue:R,getRowWithUpdatedValuesFromCellEditing:F};et(e,L,"public"),et(e,O,"private"),d.useEffect(()=>{a&&x(a)},[a,x]),vt(()=>{const I=td(e),$=l.current;l.current=xP(n),Object.entries(n).forEach(([j,N])=>{Object.entries(N).forEach(([M,D])=>{var A,H;const z=((A=$[j])==null||(A=A[M])==null?void 0:A.mode)||yt.View,W=(H=I[j])!=null?H:j;D.mode===yt.Edit&&z===yt.View?k(m({id:W,field:M},D)):D.mode===yt.View&&z===yt.Edit&&_(m({id:W,field:M},D))})})},[e,n,k,_])},P6=["id"],k6=["id"],E6=co(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),I6=(e,t)=>{const[n,r]=d.useState({}),o=d.useRef(n),l=d.useRef({}),s=d.useRef(null),i=d.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:p}=t,f=M=>(...D)=>{t.editMode===io.Row&&M(...D)},g=d.useCallback((M,D)=>{const A=e.current.getCellParams(M,D);if(!e.current.isCellEditable(A))throw new Error(`MUI: The cell with id=${M} and field=${D} is not editable.`)},[e]),h=d.useCallback((M,D)=>{if(e.current.getRowMode(M)!==D)throw new Error(`MUI: The row with id=${M} is not in ${D} mode.`)},[e]),b=d.useCallback((M,D)=>{if(!M.isEditable||e.current.getRowMode(M.id)===It.Edit)return;const A=e.current.getRowParams(M.id),H=m({},A,{field:M.field,reason:jo.cellDoubleClick});e.current.publishEvent("rowEditStart",H,D)},[e]),w=d.useCallback(M=>{i.current=M},[]),C=d.useCallback((M,D)=>{M.isEditable&&e.current.getRowMode(M.id)!==It.View&&(i.current=null,s.current=setTimeout(()=>{var A;if(s.current=null,((A=i.current)==null?void 0:A.id)!==M.id){if(!e.current.getRow(M.id)||e.current.getRowMode(M.id)===It.View)return;const H=e.current.getRowParams(M.id),z=m({},H,{field:M.field,reason:fo.rowFocusOut});e.current.publishEvent("rowEditStop",z,D)}}))},[e]);d.useEffect(()=>()=>{clearTimeout(s.current)},[]);const y=d.useCallback((M,D)=>{if(M.cellMode===It.Edit){if(D.which===229)return;let A;if(D.key==="Escape")A=fo.escapeKeyDown;else if(D.key==="Enter")A=fo.enterKeyDown;else if(D.key==="Tab"){const H=wp(e).filter(z=>e.current.getColumn(z).type===$p?!0:e.current.isCellEditable(e.current.getCellParams(M.id,z)));if(D.shiftKey?M.field===H[0]&&(A=fo.shiftTabKeyDown):M.field===H[H.length-1]&&(A=fo.tabKeyDown),D.preventDefault(),!A){const z=H.findIndex(G=>G===M.field),W=H[D.shiftKey?z-1:z+1];e.current.setCellFocus(M.id,W)}}if(A){const H=m({},e.current.getRowParams(M.id),{reason:A,field:M.field});e.current.publishEvent("rowEditStop",H,D)}}else if(M.isEditable){let A;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:M,editMode:"row"}))return;if(hP(D)||(D.ctrlKey||D.metaKey)&&D.key==="v"?A=jo.printableKeyDown:D.key==="Enter"?A=jo.enterKeyDown:(D.key==="Delete"||D.key==="Backspace")&&(A=jo.deleteKeyDown),A){const z=e.current.getRowParams(M.id),W=m({},z,{field:M.field,reason:A});e.current.publishEvent("rowEditStart",W,D)}}},[e]),x=d.useCallback(M=>{const{id:D,field:A,reason:H}=M,z={id:D,fieldToFocus:A};(H===jo.printableKeyDown||H===jo.deleteKeyDown)&&(z.deleteValue=!!A),e.current.startRowEditMode(z)},[e]),S=d.useCallback(M=>{const{id:D,reason:A,field:H}=M;e.current.runPendingEditCellValueMutation(D);let z;A===fo.enterKeyDown?z="below":A===fo.tabKeyDown?z="right":A===fo.shiftTabKeyDown&&(z="left");const W=A==="escapeKeyDown";e.current.stopRowEditMode({id:D,ignoreModifications:W,field:H,cellToFocusAfter:z})},[e]);Le(e,"cellDoubleClick",f(b)),Le(e,"cellFocusIn",f(w)),Le(e,"cellFocusOut",f(C)),Le(e,"cellKeyDown",f(y)),Le(e,"rowEditStart",f(x)),Le(e,"rowEditStop",f(S)),Rt(e,"rowEditStart",t.onRowEditStart),Rt(e,"rowEditStop",t.onRowEditStop);const T=d.useCallback(M=>{if(t.editMode===io.Cell)return It.View;const D=Sn(e.current.state);return D[M]&&Object.keys(D[M]).length>0?It.Edit:It.View},[e,t.editMode]),P=Ct(M=>{const D=M!==t.rowModesModel;p&&D&&p(M,{}),!(t.rowModesModel&&D)&&(r(M),o.current=M,e.current.publishEvent("rowModesModelChange",M))}),k=d.useCallback((M,D)=>{const A=m({},o.current);D!==null?A[M]=m({},D):delete A[M],P(A)},[P]),E=d.useCallback((M,D)=>{e.current.setState(A=>{const H=m({},A.editRows);return D!==null?H[M]=D:delete H[M],m({},A,{editRows:H})}),e.current.forceUpdate()},[e]),_=d.useCallback((M,D,A)=>{e.current.setState(H=>{const z=m({},H.editRows);return A!==null?z[M]=m({},z[M],{[D]:m({},A)}):(delete z[M][D],Object.keys(z[M]).length===0&&delete z[M]),m({},H,{editRows:z})}),e.current.forceUpdate()},[e]),R=d.useCallback(M=>{const{id:D}=M,A=K(M,P6);h(D,It.View),k(D,m({mode:It.Edit},A))},[h,k]),F=Ct(M=>{const{id:D,fieldToFocus:A,deleteValue:H,initialValue:z}=M,G=xo(e).reduce((q,re)=>{if(!e.current.getCellParams(D,re).isEditable)return q;let ce=e.current.getCellValue(D,re);return A===re&&(H||z)&&(ce=H?"":z),q[re]={value:ce,error:!1,isProcessingProps:!1},q},{});E(D,G),A&&e.current.setCellFocus(D,A)}),L=d.useCallback(M=>{const{id:D}=M,A=K(M,k6);h(D,It.Edit),k(D,m({mode:It.View},A))},[h,k]),O=Ct(M=>{const{id:D,ignoreModifications:A,field:H,cellToFocusAfter:z="none"}=M;e.current.runPendingEditCellValueMutation(D);const W=()=>{z!=="none"&&H&&e.current.moveFocusToRelativeCell(D,H,z),E(D,null),k(D,null)};if(A){W();return}const G=Sn(e.current.state),q=e.current.getRow(D);if(Object.values(G[D]).some(ue=>ue.isProcessingProps)){l.current[D].mode=It.Edit;return}if(Object.values(G[D]).some(ue=>ue.error)){l.current[D].mode=It.Edit,k(D,{mode:It.Edit});return}const ce=e.current.getRowWithUpdatedValuesFromRowEditing(D);if(a){const ue=ye=>{l.current[D].mode=It.Edit,k(D,{mode:It.Edit}),c?c(ye):E6()};try{Promise.resolve(a(ce,q)).then(ye=>{e.current.updateRows([ye]),W()}).catch(ue)}catch(ye){ue(ye)}}else e.current.updateRows([ce]),W()}),I=d.useCallback(M=>{const{id:D,field:A,value:H,debounceMs:z,unstable_skipValueParser:W}=M;g(D,A);const G=e.current.getColumn(A),q=e.current.getRow(D);let re=H;G.valueParser&&!W&&(re=G.valueParser(H,e.current.getCellParams(D,A)));let ae=Sn(e.current.state),ce=m({},ae[D][A],{value:re,changeReason:z?"debouncedSetEditCellValue":"setEditCellValue"});return G.preProcessEditCellProps||_(D,A,ce),new Promise(ue=>{const ye=[];if(G.preProcessEditCellProps){const de=ce.value!==ae[D][A].value;ce=m({},ce,{isProcessingProps:!0}),_(D,A,ce);const he=ae[D],Y=K(he,[A].map(Ha)),pe=Promise.resolve(G.preProcessEditCellProps({id:D,row:q,props:ce,hasChanged:de,otherFieldsProps:Y})).then(ee=>{if(e.current.getRowMode(D)===It.View){ue(!1);return}ae=Sn(e.current.state),ee=m({},ee,{isProcessingProps:!1}),ee.value=G.preProcessEditCellProps?ae[D][A].value:re,_(D,A,ee)});ye.push(pe)}Object.entries(ae[D]).forEach(([de,he])=>{if(de===A)return;const Y=e.current.getColumn(de);if(!Y.preProcessEditCellProps)return;he=m({},he,{isProcessingProps:!0}),_(D,de,he),ae=Sn(e.current.state);const pe=ae[D],ee=K(pe,[de].map(Ha)),Z=Promise.resolve(Y.preProcessEditCellProps({id:D,row:q,props:he,hasChanged:!1,otherFieldsProps:ee})).then(fe=>{if(e.current.getRowMode(D)===It.View){ue(!1);return}fe=m({},fe,{isProcessingProps:!1}),_(D,de,fe)});ye.push(Z)}),Promise.all(ye).then(()=>{e.current.getRowMode(D)===It.Edit?(ae=Sn(e.current.state),ue(!ae[D][A].error)):ue(!1)})})},[e,g,_]),$=d.useCallback(M=>{const D=Sn(e.current.state),A=e.current.getRow(M);if(!D[M])return e.current.getRow(M);let H=m({},A);return Object.entries(D[M]).forEach(([z,W])=>{const G=e.current.getColumn(z);G.valueSetter?H=G.valueSetter({value:W.value,row:H}):H[z]=W.value}),H},[e]),j={getRowMode:T,startRowEditMode:R,stopRowEditMode:L},N={setRowEditingEditCellValue:I,getRowWithUpdatedValuesFromRowEditing:$};et(e,j,"public"),et(e,N,"private"),d.useEffect(()=>{u&&P(u)},[u,P]),vt(()=>{const M=td(e),D=l.current;l.current=xP(n),Object.entries(n).forEach(([A,H])=>{var z,W;const G=((z=D[A])==null?void 0:z.mode)||It.View,q=(W=M[A])!=null?W:A;H.mode===It.Edit&&G===It.View?F(m({id:q},H)):H.mode===It.View&&G===It.Edit&&O(m({id:q},H))})},[e,n,F,O])},M6=e=>m({},e,{editRows:{}}),$6=(e,t)=>{S6(e,t),I6(e,t);const n=d.useRef({}),{isCellEditable:r}=t,o=d.useCallback(f=>Ua(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),l=(f,g,h,b)=>{if(!h){b();return}if(n.current[f]||(n.current[f]={}),n.current[f][g]){const[y]=n.current[f][g];clearTimeout(y)}const w=()=>{const[y]=n.current[f][g];clearTimeout(y),b(),delete n.current[f][g]},C=setTimeout(()=>{b(),delete n.current[f][g]},h);n.current[f][g]=[C,w]};d.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([g,h])=>{Object.keys(h).forEach(b=>{const[w]=f[g][b];clearTimeout(w),delete f[g][b]})})}},[]);const s=d.useCallback((f,g)=>{if(n.current[f]){if(!g)Object.keys(n.current[f]).forEach(h=>{const[,b]=n.current[f][h];b()});else if(n.current[f][g]){const[,h]=n.current[f][g];h()}}},[]),i=d.useCallback(f=>{const{id:g,field:h,debounceMs:b}=f;return new Promise(w=>{l(g,h,b,async()=>{const C=t.editMode===io.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,h)===yt.Edit){const y=await C(f);w(y)}})})},[e,t.editMode]),a=d.useCallback((f,g)=>t.editMode===io.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,g):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),c=d.useCallback((f,g)=>{var h,b;return(h=(b=Sn(e.current.state)[f])==null?void 0:b[g])!=null?h:null},[e]),u={isCellEditable:o,setEditCellValue:i,getRowWithUpdatedValues:a,unstable_getEditCellMeta:c},p={runPendingEditCellValueMutation:s};et(e,u,"public"),et(e,p,"private")},R6=(e,t,n)=>(n.current.caches.rows=mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),m({},e,{rows:iP({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),T6=(e,t)=>{const n=dn(e,"useGridRows"),r=Xl(e,t),o=d.useRef(Date.now()),l=bv(),s=d.useCallback(O=>{const I=bo(e)[O];if(I)return I;const $=e.current.getRowNode(O);return $&&Ua($)?{[Hs]:O}:null},[e]),i=t.getRowId,a=d.useCallback(O=>Hs in O?O[Hs]:i?i(O):O.id,[i]),c=d.useMemo(()=>r.rows.reduce((O,{id:I},$)=>(O[I]=$,O),{}),[r.rows]),u=d.useCallback(({cache:O,throttle:I})=>{const $=()=>{o.current=Date.now(),e.current.setState(N=>m({},N,{rows:iP({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Dr(e),previousTreeDepths:W0(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.clear(),e.current.caches.rows=O,!I){$();return}const j=t.throttleRowsMs-(Date.now()-o.current);if(j>0){l.start(j,$);return}$()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),p=d.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const I=mu({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;I.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,u({cache:I,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,u,e]),f=d.useCallback(O=>{if(t.signature===lo.DataGrid&&O.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(`
233
+ `));const I=[];O.forEach(j=>{const N=od(j,t.getRowId,"A row was provided without id when calling updateRows():"),M=e.current.getRowNode(N);if((M==null?void 0:M.type)==="pinnedRow"){const D=e.current.caches.pinnedRows,A=D.idLookup[N];A&&(D.idLookup[N]=m({},A,j))}else I.push(j)});const $=kz({updates:I,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:$,throttle:!0})},[t.signature,t.getRowId,u,e]),g=d.useCallback(()=>{const O=Xi(e),I=bo(e);return new Map(O.map($=>{var j;return[$,(j=I[$])!=null?j:{}]}))},[e]),h=d.useCallback(()=>Pp(e),[e]),b=d.useCallback(()=>Xi(e),[e]),w=d.useCallback(O=>c[O],[c]),C=d.useCallback((O,I)=>{const $=e.current.getRowNode(O);if(!$)throw new Error(`MUI: No row with id #${O} found`);if($.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=m({},$,{childrenExpanded:I});e.current.setState(N=>m({},N,{rows:m({},N.rows,{tree:m({},N.rows.tree,{[O]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),y=d.useCallback(O=>{var I;return(I=Dr(e)[O])!=null?I:null},[e]),x=d.useCallback(({skipAutoGeneratedRows:O=!0,groupId:I,applySorting:$,applyFiltering:j})=>{const N=Dr(e);let M;if($){const D=N[I];if(!D)return[];const A=sv(e);M=[];const H=A.findIndex(z=>z===I)+1;for(let z=H;z<A.length&&N[A[z]].depth>D.depth;z+=1){const W=A[z];(!O||!Ua(N[W]))&&M.push(W)}}else M=uv(N,I,O);if(j){const D=tP(e);M=M.filter(A=>D[A]!==!1)}return M},[e]),S=d.useCallback((O,I)=>{const $=e.current.getRowNode(O);if(!$)throw new Error(`MUI: No row with id #${O} found`);if($.parent!==Pn)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if($.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const N=Dr(j,e.current.instanceId)[Pn],M=N.children,D=M.findIndex(H=>H===O);if(D===-1||D===I)return j;n.debug(`Moving row ${O} to index ${I}`);const A=[...M];return A.splice(I,0,A.splice(D,1)[0]),m({},j,{rows:m({},j.rows,{tree:m({},j.rows.tree,{[Pn]:m({},N,{children:A})})})})}),e.current.publishEvent("rowsSet")},[e,n]),T=d.useCallback((O,I)=>{if(t.signature===lo.DataGrid&&I.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
234
+ `));if(I.length===0)return;if(kp(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=m({},Dr(e)),N=m({},bo(e)),M=m({},td(e)),D=j[Pn],A=[...D.children],H=new Set;for(let W=0;W<I.length;W+=1){const G=I[W],q=od(G,t.getRowId,"A row was provided without id when calling replaceRows()."),[re]=A.splice(O+W,1,q);H.has(re)||(delete N[re],delete M[re],delete j[re]);const ae={id:q,depth:0,parent:Pn,type:"leaf",groupingKey:null};N[q]=G,M[q]=q,j[q]=ae,H.add(q)}j[Pn]=m({},D,{children:A});const z=A.filter(W=>j[W].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=N,e.current.caches.rows.dataRowIdToIdLookup=M,e.current.setState(W=>m({},W,{rows:m({},W.rows,{dataRowIdToModelLookup:N,dataRowIdToIdLookup:M,dataRowIds:z,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowId:a,getRowModels:g,getRowsCount:h,getAllRowIds:b,setRows:p,updateRows:f,getRowNode:y,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:T},k={setRowIndex:S,setRowChildrenExpansion:C,getRowGroupChildren:x},E=d.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=m({},e.current.caches.rows,{updates:{type:"full",rows:Xi(e)}}):O=mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),_=d.useCallback(O=>{O==="rowTreeCreation"&&E()},[E]),R=d.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==sz(e)&&E()},[e,E]);Le(e,"activeStrategyProcessorChange",_),Le(e,"strategyAvailabilityChange",R);const F=d.useCallback(()=>{e.current.setState(O=>{const I=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Dr(O,e.current.instanceId),treeDepths:W0(O,e.current.instanceId),dataRowIds:Xi(O,e.current.instanceId),dataRowIdToModelLookup:bo(O,e.current.instanceId),dataRowIdToIdLookup:td(O,e.current.instanceId)});return m({},O,{rows:m({},O.rows,I,{totalTopLevelRowCount:sP({tree:I.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);wv(e,"hydrateRows",F),et(e,P,"public"),et(e,k,t.signature===lo.DataGrid?"private":"public");const L=d.useRef(!0);d.useEffect(()=>{if(L.current){L.current=!1;return}const O=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,I=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,$=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(O){I||(e.current.setState(j=>m({},j,{rows:m({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),$||(e.current.setState(j=>m({},j,{rows:m({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),u({cache:mu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,u,e])},O6=e=>{const t={[Pn]:m({},Sz(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Pn,type:"leaf",groupingKey:null}}return{groupingName:Vl,tree:t,treeDepths:{0:e.length},dataRowIds:e}},F6=({previousTree:e,actions:t})=>{const n=m({},e),r={};for(let s=0;s<t.remove.length;s+=1){const i=t.remove[s];r[i]=!0,delete n[i]}for(let s=0;s<t.insert.length;s+=1){const i=t.insert[s];n[i]={id:i,depth:0,parent:Pn,type:"leaf",groupingKey:null}}const o=n[Pn];let l=[...o.children,...t.insert];return Object.values(r).length&&(l=l.filter(s=>!r[s])),n[Pn]=m({},o,{children:l}),{groupingName:Vl,tree:n,treeDepths:{0:l.length},dataRowIds:l}},D6=e=>e.updates.type==="full"?O6(e.updates.rows):F6({previousTree:e.previousTree,actions:e.updates.actions}),j6=e=>{dd(e,Vl,"rowTreeCreation",D6)},QP=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],_6=(e,t)=>{var n;return m({},e,{rowSelection:t.rowSelection?(n=QP(t.rowSelectionModel))!=null?n:[]:[]})},L6=(e,t)=>{const n=dn(e,"useGridSelection"),r=I=>(...$)=>{t.rowSelection&&I(...$)},o=d.useMemo(()=>QP(t.rowSelectionModel,ar(e.current.state)),[e,t.rowSelectionModel]),l=d.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ar,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:i,disableRowSelectionOnClick:a,isRowSelectable:c}=t,u=!i||s,p=Xl(e,t),f=d.useCallback(I=>{var $;let j=I;const N=($=l.current)!=null?$:I,M=e.current.isRowSelected(I);if(M){const D=ma(e),A=D.findIndex(z=>z===N),H=D.findIndex(z=>z===j);if(A===H)return;A>H?j=D[H+1]:j=D[H-1]}l.current=I,e.current.selectRowRange({startId:N,endId:j},!M)},[e]),g=d.useCallback(I=>{if(t.signature===lo.DataGrid&&!t.checkboxSelection&&Array.isArray(I)&&I.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
235
+ `));ar(e.current.state)!==I&&(n.debug("Setting selection model"),e.current.setState(j=>m({},j,{rowSelection:t.rowSelection?I:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),h=d.useCallback(I=>ar(e.current.state).includes(I),[e]),b=d.useCallback(I=>{if(c&&!c(e.current.getRowParams(I)))return!1;const $=e.current.getRowNode(I);return!(($==null?void 0:$.type)==="footer"||($==null?void 0:$.type)==="pinnedRow")},[e,c]),w=d.useCallback(()=>$H(e),[e]),C=d.useCallback((I,$=!0,j=!1)=>{if(e.current.isRowSelectable(I))if(l.current=I,j)n.debug(`Setting selection for row ${I}`),e.current.setRowSelectionModel($?[I]:[]);else{n.debug(`Toggling selection for row ${I}`);const M=ar(e.current.state).filter(A=>A!==I);$&&M.push(I),(M.length<2||u)&&e.current.setRowSelectionModel(M)}},[e,n,u]),y=d.useCallback((I,$=!0,j=!1)=>{n.debug("Setting selection for several rows");const N=I.filter(A=>e.current.isRowSelectable(A));let M;if(j)M=$?N:[];else{const A=m({},ad(e));N.forEach(H=>{$?A[H]=H:delete A[H]}),M=Object.values(A)}(M.length<2||u)&&e.current.setRowSelectionModel(M)},[e,n,u]),x=d.useCallback(({startId:I,endId:$},j=!0,N=!1)=>{if(!e.current.getRow(I)||!e.current.getRow($))return;n.debug(`Expanding selection from row ${I} to row ${$}`);const M=ma(e),D=M.indexOf(I),A=M.indexOf($),[H,z]=D>A?[A,D]:[D,A],W=M.slice(H,z+1);e.current.selectRows(W,j,N)},[e,n]),S={selectRow:C,setRowSelectionModel:g,getSelectedRows:w,isRowSelected:h,isRowSelectable:b},T={selectRows:y,selectRowRange:x};et(e,S,"public"),et(e,T,t.signature===lo.DataGrid?"private":"public");const P=d.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const I=ar(e.current.state),$=bo(e),j=m({},ad(e));let N=!1;I.forEach(M=>{$[M]||(delete j[M],N=!0)}),N&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),k=d.useCallback((I,$)=>{const j=$.metaKey||$.ctrlKey,N=!s&&!j&&!f4($),M=!u||N,D=e.current.isRowSelected(I);M?e.current.selectRow(I,N?!0:!D,!0):e.current.selectRow(I,!D,!1)},[e,u,s]),E=d.useCallback((I,$)=>{var j;if(a)return;const N=(j=$.target.closest(`.${B.cell}`))==null?void 0:j.getAttribute("data-field");if(N===wi.field||N===Cv)return;if(N){const D=e.current.getColumn(N);if((D==null?void 0:D.type)===$p)return}e.current.getRowNode(I.id).type!=="pinnedRow"&&($.shiftKey&&(u||s)?f(I.id):k(I.id,$))},[a,u,s,e,f,k]),_=d.useCallback((I,$)=>{if(u&&$.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[u]),R=d.useCallback((I,$)=>{$.nativeEvent.shiftKey?f(I.id):e.current.selectRow(I.id,I.value)},[e,f]),F=d.useCallback(I=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?EP(e):ma(e),N=en(e);e.current.selectRows(j,I.value,(N==null?void 0:N.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),L=d.useCallback((I,$)=>{if(e.current.getCellMode(I.id,I.field)!==yt.Edit&&!pc($)){if(id($.key)&&$.shiftKey){const j=Gn(e);if(j&&j.id!==I.id){$.preventDefault();const N=e.current.isRowSelected(j.id);if(!u){e.current.selectRow(j.id,!N,!0);return}const M=e.current.getRowIndexRelativeToVisibleRows(j.id),D=e.current.getRowIndexRelativeToVisibleRows(I.id);let A,H;M>D?N?(A=D,H=M-1):(A=D,H=M):N?(A=M+1,H=D):(A=M,H=D);const z=p.rows.slice(A,H+1).map(W=>W.id);e.current.selectRows(z,!N);return}}if($.key===" "&&$.shiftKey){$.preventDefault(),k(I.id,$);return}$.key==="a"&&($.ctrlKey||$.metaKey)&&($.preventDefault(),y(e.current.getAllRowIds(),!0))}},[e,k,y,p.rows,u]);Le(e,"sortedRowsSet",r(P)),Le(e,"rowClick",r(E)),Le(e,"rowSelectionCheckboxChange",r(R)),Le(e,"headerSelectionCheckboxChange",F),Le(e,"cellMouseDown",r(_)),Le(e,"cellKeyDown",r(L)),d.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),d.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const O=o!=null;d.useEffect(()=>{if(O||!t.rowSelection)return;const I=ar(e.current.state);if(b){const $=I.filter(j=>b(j));$.length<I.length&&e.current.setRowSelectionModel($)}},[e,b,O,t.rowSelection]),d.useEffect(()=>{if(!t.rowSelection||O)return;const I=ar(e.current.state);!u&&I.length>1&&e.current.setRowSelectionModel([])},[e,u,s,O,t.rowSelection])},N6={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},A6=e=>{const{classes:t}=e;return d.useMemo(()=>we({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ct,t),[t])},z6=(e,t)=>{const n={classes:t.classes},r=A6(n),o=d.useCallback(l=>{const s=m({},wi,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=l.lookup[_o]!=null;return i&&!a?(l.lookup[_o]=s,l.orderedFields=[_o,...l.orderedFields]):!i&&a?(delete l.lookup[_o],l.orderedFields=l.orderedFields.filter(c=>c!==_o)):i&&a&&(l.lookup[_o]=m({},s,l.lookup[_o])),l},[e,r,t.checkboxSelection]);Gt(e,"hydrateColumns",o)},H6=(e,t)=>{var n,r,o;const l=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return m({},e,{sorting:{sortModel:IP(l,t.disableMultipleColumnsSorting),sortedRows:[]}})},B6=(e,t)=>{var n;const r=dn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:sr,changeEvent:"sortModelChange"});const o=d.useCallback((P,k)=>{const E=sr(e),_=E.findIndex(F=>F.field===P);let R=[...E];return _>-1?k?R.splice(_,1,k):R.splice(_,1):R=[...E,k],R},[e]),l=d.useCallback((P,k)=>{var E;const R=sr(e).find(L=>L.field===P.field);if(R){var F;const L=k===void 0?Q0((F=P.sortingOrder)!=null?F:t.sortingOrder,R.sort):k;return L==null?void 0:m({},R,{sort:L})}return{field:P.field,sort:k===void 0?Q0((E=P.sortingOrder)!=null?E:t.sortingOrder):k}},[e,t.sortingOrder]),s=d.useCallback((P,k)=>k==null||k.sortable===!1?P:(k.sortingOrder||t.sortingOrder).some(_=>!!_)?[...P,"columnMenuSortItem"]:P,[t.sortingOrder]),i=d.useCallback(()=>{e.current.setState(P=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),m({},P,{sorting:m({},P.sorting,{sortedRows:uv(Dr(e),Pn,!1)})});const k=sr(P,e.current.instanceId),E=DH(k,e),_=e.current.applyStrategyProcessor("sorting",{sortRowList:E});return m({},P,{sorting:m({},P.sorting,{sortedRows:_})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=d.useCallback(P=>{sr(e)!==P&&(r.debug("Setting sort model"),e.current.setState(Y0(P,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=d.useCallback((P,k,E)=>{if(!P.sortable)return;const _=l(P,k);let R;!E||t.disableMultipleColumnsSorting?R=_?[_]:[]:R=o(P.field,_),e.current.setSortModel(R)},[e,o,l,t.disableMultipleColumnsSorting]),u=d.useCallback(()=>sr(e),[e]),p=d.useCallback(()=>iv(e).map(k=>k.model),[e]),f=d.useCallback(()=>sv(e),[e]),g=d.useCallback(P=>e.current.getSortedRowIds()[P],[e]);et(e,{getSortModel:u,getSortedRows:p,getSortedRowIds:f,getRowIdFromRowIndex:g,setSortModel:a,sortColumn:c,applySorting:i},"public");const b=d.useCallback((P,k)=>{var E;const _=sr(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||((E=t.initialState)==null||(E=E.sorting)==null?void 0:E.sortModel)!=null||_.length>0?m({},P,{sorting:{sortModel:_}}):P},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),w=d.useCallback((P,k)=>{var E;const _=(E=k.stateToRestore.sorting)==null?void 0:E.sortModel;return _==null?P:(e.current.setState(Y0(_,t.disableMultipleColumnsSorting)),m({},P,{callbacks:[...P.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=d.useCallback(P=>{const k=Dr(e),E=k[Pn],_=P.sortRowList?P.sortRowList(E.children.map(R=>k[R])):[...E.children];return E.footerId!=null&&_.push(E.footerId),_},[e]);Gt(e,"exportState",b),Gt(e,"restoreState",w),dd(e,Vl,"sorting",C);const y=d.useCallback(({colDef:P},k)=>{const E=k.shiftKey||k.metaKey||k.ctrlKey;c(P,void 0,E)},[c]),x=d.useCallback(({colDef:P},k)=>{c4(k.key)&&!k.ctrlKey&&!k.metaKey&&c(P,void 0,k.shiftKey)},[c]),S=d.useCallback(()=>{const P=sr(e),k=bi(e);if(P.length>0){const E=P.filter(_=>k[_.field]);E.length<P.length&&e.current.setSortModel(E)}},[e]),T=d.useCallback(P=>{P==="sorting"&&e.current.applySorting()},[e]);Gt(e,"columnMenu",s),Le(e,"columnHeaderClick",y),Le(e,"columnHeaderKeyDown",x),Le(e,"rowsSet",e.current.applySorting),Le(e,"columnsChange",S),Le(e,"activeStrategyProcessorChange",T),fc(()=>{e.current.applySorting()}),vt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function xC(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;if(r>t)return o;if(l-t>n)return l-t;if(o<n)return o}const V6=(e,t)=>{const n=Vr(),r=dn(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.virtualScrollerRef,s=Re(e,pl),i=d.useCallback(p=>{const f=Pp(e),g=an(e);if(!(p.rowIndex==null)&&f===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const x=ti(e);let S;if(typeof p.rowIndex<"u"){var w;const T=(w=s[p.rowIndex])==null?void 0:w.id,P=e.current.unstable_getCellColSpanInfo(T,p.colIndex);P&&!P.spannedByColSpan&&(S=P.cellProps.width)}typeof S>"u"&&(S=g[p.colIndex].computedWidth),b.left=xC({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:S,offsetTop:x[p.colIndex]})}if(p.rowIndex!=null){var C,y;const x=Ya(e.current.state),S=kH(e),T=kP(e),P=t.pagination?p.rowIndex-S*T:p.rowIndex,k=x.positions[P+1]?x.positions[P+1]-x.positions[P]:x.currentPageTotalHeight-x.positions[P],E=((C=l.current.querySelector(`.${B["pinnedRows--top"]}`))==null?void 0:C.clientHeight)||0,_=((y=l.current.querySelector(`.${B["pinnedRows--bottom"]}`))==null?void 0:y.clientHeight)||0;b.top=xC({clientHeight:l.current.clientHeight-E-_,scrollTop:l.current.scrollTop,offsetHeight:k,offsetTop:x.positions[P]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[r,e,l,t.pagination,s]),a=d.useCallback(p=>{if(l.current&&p.left!=null&&o.current){const f=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,l.current.scrollLeft=f*p.left,r.debug(`Scrolling left: ${p.left}`)}l.current&&p.top!=null&&(l.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[l,n.direction,o,r]),c=d.useCallback(()=>l!=null&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l]);et(e,{scroll:a,scrollToIndexes:i,getScrollPosition:c},"public")};function G6(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,"cellClick",t.onCellClick),Rt(e,"cellDoubleClick",t.onCellDoubleClick),Rt(e,"cellKeyDown",t.onCellKeyDown),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,"stateChange",t.onStateChange)}const W6=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,s=!1;return(r||o)&&(l=r,s=e.height+(l?n:0)>t.height,s&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:s}};function U6(e,t){const n=dn(e,"useResizeContainer"),r=d.useRef(!1),o=d.useRef(null),l=d.useRef(null),s=Re(e,Ya),i=Re(e,xi),a=Math.floor(t.rowHeight*i),c=Sv(e,t.columnHeaderHeight),u=d.useCallback(()=>{var k;const E=(k=e.current.rootElementRef)==null?void 0:k.current,_=lv(e),R=aP(e);if(!o.current)return;let F;if(t.scrollbarSize!=null)F=t.scrollbarSize;else if(!_||!E)F=0;else{const D=jt(E).createElement("div");D.style.width="99px",D.style.height="99px",D.style.position="absolute",D.style.overflow="scroll",D.className="scrollDiv",E.appendChild(D),F=D.offsetWidth-D.clientWidth,E.removeChild(D)}let L,O,I;if(t.autoHeight)I=!1,O=Math.round(_)>Math.round(o.current.width),L={width:o.current.width,height:s.currentPageTotalHeight+(O?F:0)};else{L={width:o.current.width,height:Math.max(o.current.height-c,0)};const M=W6({content:{width:Math.round(_),height:s.currentPageTotalHeight},container:{width:Math.round(L.width),height:L.height-R.top-R.bottom},scrollBarSize:F});I=M.hasScrollY,O=M.hasScrollX}const $={width:L.width-(I?F:0),height:L.height-(O?F:0)},j={viewportOuterSize:L,viewportInnerSize:$,hasScrollX:O,hasScrollY:I,scrollBarSize:F},N=l.current;l.current=j,(j.viewportInnerSize.width!==(N==null?void 0:N.viewportInnerSize.width)||j.viewportInnerSize.height!==(N==null?void 0:N.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",j.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,c]),[p,f]=d.useState(),g=d.useMemo(()=>Kl(f,60),[]),h=d.useRef();vt(()=>{p&&(u(),e.current.publishEvent("debouncedResize",o.current))},[e,p,u]);const b=d.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),w=d.useCallback(()=>l.current,[]),C=d.useCallback(()=>{const k=e.current.getRootDimensions();if(!k)return 0;const E=cd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const R=e.current.getRenderContext(),F=R.lastRowIndex-R.firstRowIndex;return Math.min(F-1,E.rows.length)}const _=Math.floor(k.viewportInnerSize.height/a);return Math.min(_,E.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),y=d.useCallback(()=>{var k,E,_;const R=(k=e.current.mainElementRef)==null?void 0:k.current;if(!R)return;const L=Br(R).getComputedStyle(R),O=parseFloat(L.height)||0,I=parseFloat(L.width)||0,$=O!==((E=h.current)==null?void 0:E.height),j=I!==((_=h.current)==null?void 0:_.width);if(!h.current||$||j){const N={width:I,height:O};e.current.publishEvent("resize",N),h.current=N}},[e]),x={resize:b,getRootDimensions:w},S={getViewportPageSize:C,updateGridDimensionsRef:u,computeSizeAndPublishResizeEvent:y};et(e,x,"public"),et(e,S,"private");const T=d.useRef(!0),P=d.useCallback(k=>{o.current=k;const E=/jsdom/.test(window.navigator.userAgent);if(k.height===0&&!r.current&&!t.autoHeight&&!E&&(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(`
236
236
  `)),r.current=!0),k.width===0&&!r.current&&!E&&(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(`
237
- `)),r.current=!0),T.current){f(k),T.current=!1;return}g(k)},[t.autoHeight,g,n]);vt(()=>u(),[u]),Rt(e,"sortedRowsSet",u),Rt(e,"paginationModelChange",u),Rt(e,"columnsChange",u),Le(e,"resize",P),Rt(e,"debouncedResize",t.onResize)}const K6=["style"],q6=["style"];function ri(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),l=t[o];return e<=l?ri(e,t,n,o):ri(e,t,o+1,r)}function Y6(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return ri(e,t,Math.floor(n/2),Math.min(n,t.length))}const zo=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[ni(e-n,r,o),ni(t+n,r,o)],XP=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,Q6={maxSize:3},X6=e=>{const t=pl(),n=De(),r=Re(t,an),o=Re(t,zH),l=Re(t,TP),{ref:s,onRenderZonePositioning:i,renderZoneMinColumnIndex:a=0,renderZoneMaxColumnIndex:c=r.length,getRowProps:u}=e,p=Br(),f=Re(t,ti),g=Re(t,lv),h=Re(t,Gn),b=Re(t,rd),w=Re(t,Ya),C=Re(t,ad),y=Zl(t,n),x=d.useRef(null),S=d.useRef(null),T=wt(s,S),[P,k]=d.useState(null),E=d.useRef(P),_=d.useRef({top:0,left:0}),[R,F]=d.useState({width:null,height:null}),L=d.useRef(g),[O,I]=d.useState(null),$=d.useRef(Object.create(null)),j=d.useRef(),N=d.useRef(),M=d.useRef(Cp((Y,pe,ee,Z,fe,le)=>{let ge;const me=Y.slice(pe,ee);return le>-1&&(pe>le&&le>=Z||ee<le&&le<fe)&&(ge=le),{focusedCellColumnIndexNotInRange:ge,renderedColumns:me}},Q6)),D=d.useMemo(()=>h!==null?r.findIndex(Y=>Y.field===h.field):-1,[h,r]),A=d.useCallback(()=>{if(!o)return{firstRowIndex:0,lastRowIndex:y.rows.length,firstColumnIndex:0,lastColumnIndex:r.length};const{top:Y,left:pe}=_.current,ee=Math.min(wC(t,y,w,Y),w.positions.length-1),Z=n.autoHeight?ee+y.rows.length:wC(t,y,w,Y+R.height);let fe=0,le=f.length;if(l){let ge=!1;const[me,Ie]=zo({firstIndex:ee,lastIndex:Z,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer});for(let Se=me;Se<Ie&&!ge;Se+=1){const te=y.rows[Se];ge=t.current.rowHasAutoHeight(te.id)}ge||(fe=ri(Math.abs(pe),f),le=ri(Math.abs(pe)+R.width,f))}return{firstRowIndex:ee,lastRowIndex:Z,firstColumnIndex:fe,lastColumnIndex:le}},[o,l,w,n.autoHeight,n.rowBuffer,y,f,r.length,t,R]);vt(()=>{o?(S.current.scrollLeft=0,S.current.scrollTop=0):x.current.style.transform="translate3d(0px, 0px, 0px)"},[o]),vt(()=>{F({width:S.current.clientWidth,height:S.current.clientHeight})},[w.currentPageTotalHeight]);const H=d.useCallback(()=>{S.current&&F({width:S.current.clientWidth,height:S.current.clientHeight})},[]);Le(t,"debouncedResize",H);const z=d.useCallback(Y=>{const[pe,ee]=zo({firstIndex:Y.firstRowIndex,lastIndex:Y.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer}),[Z]=zo({firstIndex:Y.firstColumnIndex,lastIndex:Y.lastColumnIndex,minFirstIndex:a,maxLastIndex:c,buffer:n.columnBuffer}),fe=th({firstColumnToRender:Z,apiRef:t,firstRowToRender:pe,lastRowToRender:ee,visibleRows:y.rows}),le=p.direction==="ltr"?1:-1,ge=Ya(t.current.state).positions[pe],me=le*ti(t)[fe];x.current.style.transform=`translate3d(${me}px, ${ge}px, 0px)`,typeof i=="function"&&i({top:ge,left:me})},[t,y.rows,i,a,c,n.columnBuffer,n.rowBuffer,p.direction]),W=d.useCallback(()=>E.current,[]),G=d.useCallback(Y=>{if(E.current&&XP(Y,E.current)){z(Y);return}k(Y),z(Y);const[pe,ee]=zo({firstIndex:Y.firstRowIndex,lastIndex:Y.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:pe,lastRowToRender:ee}),E.current=Y},[t,k,E,y.rows.length,n.rowBuffer,z]);vt(()=>{if(R.width==null)return;const Y=A();G(Y);const{top:pe,left:ee}=_.current,Z={top:pe,left:ee,renderContext:Y};t.current.publishEvent("scrollPositionChange",Z)},[t,A,R.width,G]);const q=Ct(Y=>{const{scrollTop:pe,scrollLeft:ee}=Y.currentTarget;if(_.current.top=pe,_.current.left=ee,!E.current||pe<0||p.direction==="ltr"&&ee<0||p.direction==="rtl"&&ee>0)return;const Z=o?A():E.current,fe=Math.abs(Z.firstRowIndex-E.current.firstRowIndex),le=Math.abs(Z.lastRowIndex-E.current.lastRowIndex),ge=Math.abs(Z.firstColumnIndex-E.current.firstColumnIndex),me=Math.abs(Z.lastColumnIndex-E.current.lastColumnIndex),Ie=fe>=n.rowThreshold||le>=n.rowThreshold||ge>=n.columnThreshold||me>=n.columnThreshold||L.current!==g;t.current.publishEvent("scrollPositionChange",{top:pe,left:ee,renderContext:Ie?Z:E.current},Y),Ie&&(nc.flushSync(()=>{G(Z)}),L.current=g)}),re=Ct(Y=>{t.current.publishEvent("virtualScrollerWheel",{},Y)}),ae=Ct(Y=>{t.current.publishEvent("virtualScrollerTouchMove",{},Y)}),ce=d.useMemo(()=>h!==null?y.rows.findIndex(Y=>Y.id===h.id):-1,[h,y.rows]);Le(t,"rowMouseOver",(Y,pe)=>{var ee;pe.currentTarget.contains(pe.relatedTarget)||I((ee=Y.id)!=null?ee:null)}),Le(t,"rowMouseOut",(Y,pe)=>{pe.currentTarget.contains(pe.relatedTarget)||I(null)});const ue=(Y={renderContext:P})=>{var pe;const{onRowRender:ee,renderContext:Z,minFirstColumn:fe=a,maxLastColumn:le=c,availableSpace:ge=R.width,rowIndexOffset:me=0,position:Ie="center"}=Y;if(!Z||ge==null)return null;const Se=o?n.rowBuffer:0,te=o?n.columnBuffer:0,[oe,xe]=zo({firstIndex:Z.firstRowIndex,lastIndex:Z.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:Se}),Oe=[];if(Y.rows)Y.rows.forEach(Ce=>{Oe.push(Ce),t.current.calculateColSpan({rowId:Ce.id,minFirstColumn:fe,maxLastColumn:le,columns:r})});else{if(!y.range)return null;for(let Ce=oe;Ce<xe;Ce+=1){const Me=y.rows[Ce];Oe.push(Me),t.current.calculateColSpan({rowId:Me.id,minFirstColumn:fe,maxLastColumn:le,columns:r})}}let Ve=!1;if(ce>-1){const Ce=y.rows[ce];(oe>ce||xe<ce)&&(Ve=!0,ce>oe?Oe.push(Ce):Oe.unshift(Ce),t.current.calculateColSpan({rowId:Ce.id,minFirstColumn:fe,maxLastColumn:le,columns:r}))}const[Te,se]=zo({firstIndex:Z.firstColumnIndex,lastIndex:Z.lastColumnIndex,minFirstIndex:fe,maxLastIndex:le,buffer:te}),qe=th({firstColumnToRender:Te,apiRef:t,firstRowToRender:oe,lastRowToRender:xe,visibleRows:y.rows});let tt=!1;(qe>D||se<D)&&(tt=!0);const{focusedCellColumnIndexNotInRange:Xe,renderedColumns:be}=M.current(r,qe,se,fe,le,tt?D:-1),je=((pe=n.slotProps)==null?void 0:pe.row)||{},{style:ie}=je,Ee=K(je,K6);(j.current!==u||N.current!==ie)&&($.current=Object.create(null));const Ne=[];let Ye=!1;for(let Ce=0;Ce<Oe.length;Ce+=1){var $e;const{id:Me,model:We}=Oe[Ce],Qe=Ve&&h.id===Me,Pe=Ve?oe+Ce===y.rows.length:oe+Ce===y.rows.length-1,Ge=t.current.rowHasAutoHeight(Me)?"auto":t.current.unstable_getRowHeight(Me);let rt;C[Me]==null?rt=!1:rt=t.current.isRowSelectable(Me),ee&&ee(Me);const _t=h!==null&&h.id===Me?h.field:null,dt=Xe!==void 0&&r[Xe],st=dt&&_t?[dt,...be]:be;let ut=null;b!==null&&b.id===Me&&(ut=t.current.getCellParams(Me,b.field).cellMode==="view"?b.field:null);const Et=typeof u=="function"&&u(Me,We)||{},{style:Kt}=Et,pn=K(Et,q6);if(!$.current[Me]){const mn=m({},Kt,ie);$.current[Me]=mn}let fn=me+((y==null||($e=y.range)==null?void 0:$e.firstRowIndex)||0)+oe+Ce;Ve&&(h==null?void 0:h.id)===Me?(fn=ce,Ye=!0):Ye&&(fn-=1),Ne.push(v.jsx(n.slots.row,m({row:We,rowId:Me,focusedCellColumnIndexNotInRange:Xe,isNotVisible:Qe,rowHeight:Ge,focusedCell:_t,tabbableCell:ut,renderedColumns:st,visibleColumns:r,firstColumnToRender:qe,lastColumnToRender:se,selected:rt,index:fn,containerWidth:ge,isLastVisible:Pe,position:Ie},pn,Ee,{hovered:O===Me,style:$.current[Me]}),Me))}return j.current=u,N.current=ie,Ne},ye=R.width&&g>=R.width,de=d.useMemo(()=>{const Y=Math.max(w.currentPageTotalHeight,1);let pe=!1;S!=null&&S.current&&Y<=(S==null?void 0:S.current.clientHeight)&&(pe=!0);const ee={width:ye?g:"auto",height:Y,minHeight:pe?"100%":"auto"};return n.autoHeight&&y.rows.length===0&&(ee.height=cP(t,n.rowHeight)),ee},[t,S,g,w.currentPageTotalHeight,ye,n.autoHeight,n.rowHeight,y.rows.length]);d.useEffect(()=>{t.current.publishEvent("virtualScrollerContentSizeChange")},[t,de]);const he=d.useMemo(()=>{const Y={};return ye||(Y.overflowX="hidden"),n.autoHeight&&(Y.overflowY="hidden"),Y},[ye,n.autoHeight]);return t.current.register("private",{getRenderContext:W}),{renderContext:P,updateRenderZonePosition:z,getRows:ue,getRootProps:(Y={})=>m({ref:T,onScroll:q,onWheel:re,onTouchMove:ae},Y,{style:Y.style?m({},Y.style,he):he,role:"presentation"}),getContentProps:({style:Y}={})=>({style:Y?m({},Y,de):de,role:"presentation"}),getRenderZoneProps:()=>({ref:x,role:"rowgroup"})}};function wC(e,t,n,r){var o,l;const s=e.current.getLastMeasuredRowIndex();let i=s===1/0;(o=t.range)!=null&&o.lastRowIndex&&!i&&(i=s>=t.range.lastRowIndex);const a=ni(s-(((l=t.range)==null?void 0:l.firstRowIndex)||0),0,n.positions.length);return i||n.positions[a]>=r?ri(r,n.positions):Y6(r,n.positions,a)}const Z6=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:l}=e;return we({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ct,t)};function J6(e){var t;const{groupId:n,width:r,depth:o,maxDepth:l,fields:s,height:i,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:p}=e,f=De(),g=d.useRef(null),h=at(),b=Re(h,ZS),w=n?b[n]:{},{headerName:C=n??"",description:y="",headerAlign:x=void 0}=w;let S;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),P=d.useMemo(()=>({groupId:n,headerName:C,description:y,depth:o,maxDepth:l,fields:s,colIndex:a,isLastColumn:p}),[n,C,y,o,l,s,a,p]);n&&T&&(S=T(P));const k=f.showColumnVerticalBorder,E=m({},e,{classes:f.classes,showColumnBorder:k,headerAlign:x,depth:o,isDragging:!1}),_=C??n,R=bt(),F=n===null?`empty-group-cell-${R}`:n,L=Z6(E);d.useLayoutEffect(()=>{if(c){const N=g.current.querySelector('[tabindex="0"]')||g.current;N==null||N.focus()}},[h,c]);const O=d.useCallback(j=>N=>{pc(N)||h.current.publishEvent(j,P,N)},[h,P]),I=d.useMemo(()=>({onKeyDown:O("columnGroupHeaderKeyDown"),onFocus:O("columnGroupHeaderFocus"),onBlur:O("columnGroupHeaderBlur")}),[O]),$=typeof w.headerClassName=="function"?w.headerClassName(P):w.headerClassName;return v.jsx(bP,m({ref:g,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:S,headerClassName:$,description:y,elementId:F,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:_,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},I))}const SC=X("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function eG(e){return!!e.target}const tG=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:l,columnPositions:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:w}=e,C=Br(),[y,x]=d.useState(""),[S,T]=d.useState(""),P=pl(),k=Re(P,TP),E=De(),_=d.useRef(null),R=wt(t,_),[F,L]=d.useState(null),O=d.useRef(F),I=d.useRef(0),$=Zl(P,E),j=Sv(P,E.columnHeaderHeight),N=Math.floor(E.columnHeaderHeight*p),M=d.useCallback(ye=>{F&&ye&&XP(F,ye)||L(ye)},[F]);d.useEffect(()=>{var ye;(ye=P.current.columnHeadersContainerElementRef)!=null&&ye.current&&(P.current.columnHeadersContainerElementRef.current.scrollLeft=0)},[P]);const D=d.useRef(Cp(KV,{equalityCheck:(ye,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(he=>ye[he]===de[he])})),A=d.useCallback(ye=>{const[de,he]=zo({firstIndex:ye.firstRowIndex,lastIndex:ye.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:E.rowBuffer}),Y=D.current({firstColumnIndex:ye.firstColumnIndex,minColumnIndex:n,columnBuffer:E.columnBuffer,firstRowToRender:de,lastRowToRender:he,apiRef:P,visibleRows:$.rows}),pe=C.direction==="ltr"?1:-1,ee=Y>0?I.current-pe*s[Y]:I.current;_.current.style.transform=`translate3d(${-ee}px, 0px, 0px)`},[s,n,E.columnBuffer,P,$.rows,E.rowBuffer,C.direction]);d.useLayoutEffect(()=>{F&&A(F)},[F,A]);const H=d.useCallback(({left:ye,renderContext:de=null},he)=>{var Y,pe;if(!_.current||I.current===ye&&((Y=O.current)==null?void 0:Y.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&((pe=O.current)==null?void 0:pe.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;I.current=ye;let ee=!1;de!==O.current||!O.current?(eG(he)?(nc.flushSync(()=>{M(de)}),ee=!0):M(de),O.current=de):ee=!0,de&&ee&&A(de)},[A,M]),z=d.useCallback(ye=>T(ye.field),[]),W=d.useCallback(()=>T(""),[]),G=d.useCallback(ye=>x(ye.field),[]),q=d.useCallback(()=>x(""),[]);Le(P,"columnResizeStart",z),Le(P,"columnResizeStop",W),Le(P,"columnHeaderDragStart",G),Le(P,"columnHeaderDragEnd",q),Le(P,"scrollPositionChange",H);const re=ye=>{const{renderContext:de=F,minFirstColumn:he=n,maxLastColumn:Y=r.length}=ye||{};if(!de)return null;const[pe,ee]=zo({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:E.rowBuffer}),Z=k?D.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:he,columnBuffer:E.columnBuffer,apiRef:P,firstRowToRender:pe,lastRowToRender:ee,visibleRows:$.rows}):0,fe=k?Math.min(de.lastColumnIndex+E.columnBuffer,Y):Y;return{renderedColumns:r.slice(Z,fe),firstColumnToRender:Z,lastColumnToRender:fe,minFirstColumn:he,maxLastColumn:Y}},ae=(ye,de={})=>{const he=re(ye);if(he==null)return null;const{renderedColumns:Y,firstColumnToRender:pe}=he,ee=[];for(let Z=0;Z<Y.length;Z+=1){const fe=Y[Z],le=pe+Z,ge=le===0,me=i!==null&&i.field===fe.field||ge&&!w?0:-1,Ie=c!==null&&c.field===fe.field,Se=g.open&&g.field===fe.field;ee.push(v.jsx(uH,m({},o[fe.field],{columnMenuOpen:Se,filterItemsCounter:l[fe.field]&&l[fe.field].length,headerHeight:N,isDragging:fe.field===y,colDef:fe,colIndex:le,isResizing:S===fe.field,hasFocus:Ie,tabIndex:me},de),fe.field))}return v.jsx(SC,{role:"row","aria-rowindex":f+1,ownerState:E,children:ee})},ce=ye=>{if(f===0)return null;const de=re(ye);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:he,lastColumnToRender:Y}=de,pe=[],ee=[];for(let le=0;le<f;le+=1){var Z,fe;const ge=b[le],me=r[he].field,Ie=(Z=P.current.unstable_getColumnGroupPath(me)[le])!=null?Z:null,Se=ge.findIndex(({groupId:Xe,columnFields:be})=>Xe===Ie&&be.includes(me)),te=r[Y-1].field,oe=(fe=P.current.unstable_getColumnGroupPath(te)[le])!=null?fe:null,xe=ge.findIndex(({groupId:Xe,columnFields:be})=>Xe===oe&&be.includes(te)),Oe=ge.slice(Se,xe+1).map(Xe=>m({},Xe,{columnFields:Xe.columnFields.filter(be=>h[be]!==!1)})).filter(Xe=>Xe.columnFields.length>0),Ve=Oe[0].columnFields.indexOf(me),se=Oe[0].columnFields.slice(0,Ve).reduce((Xe,be)=>{var je;const ie=P.current.getColumn(be);return Xe+((je=ie.computedWidth)!=null?je:0)},0);let qe=he;const tt=Oe.map(({groupId:Xe,columnFields:be})=>{const je=u!==null&&u.depth===le&&be.includes(u.field),ie=a!==null&&a.depth===le&&be.includes(a.field)?0:-1,Ee={groupId:Xe,width:be.reduce((Ae,Ne)=>Ae+P.current.getColumn(Ne).computedWidth,0),fields:be,colIndex:qe,hasFocus:je,tabIndex:ie};return qe+=be.length,Ee});ee.push({leftOverflow:se,elements:tt})}return ee.forEach((le,ge)=>{pe.push(v.jsx(SC,{style:{height:`${N}px`,transform:`translateX(-${le.leftOverflow}px)`},role:"row","aria-rowindex":ge+1,ownerState:E,children:le.elements.map(({groupId:me,width:Ie,fields:Se,colIndex:te,hasFocus:oe,tabIndex:xe},Oe)=>v.jsx(J6,{groupId:me,width:Ie,fields:Se,colIndex:te,depth:ge,isLastColumn:te===r.length-Se.length,maxDepth:ee.length,height:N,hasFocus:oe,tabIndex:xe},Oe))},ge))}),pe},ue={minHeight:j,maxHeight:j,lineHeight:`${N}px`};return{renderContext:F,getColumnHeaders:ae,getColumnsToRender:re,getColumnGroupHeaders:ce,isDragging:!!y,getRootProps:(ye={})=>m({style:ue},ye),getInnerProps:()=>({ref:R,role:"rowgroup"}),headerHeight:N}},nG=["className"],rG=e=>{const{classes:t}=e;return we({root:["columnHeaders","withBorderColor"]},ct,t)},oG=Zt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),lG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,nG),l=De(),s=rG(l);return v.jsx(oG,m({ref:n,className:ne(r,s.root),ownerState:l},o,{role:"presentation"}))}),sG=["isDragging","className"],iG=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return we({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},ct,r)},aG=Zt("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${B.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${B.columnHeaderDropZone} .${B.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${B["columnHeadersInner--scrollable"]} .${B.columnHeader}:last-child`]:{borderRight:"none"}})),cG=d.forwardRef(function(t,n){var r,o;const{isDragging:l,className:s}=t,i=K(t,sG),a=at(),c=De(),u=m({},c,{isDragging:l,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=iG(u);return v.jsx(aG,m({ref:n,className:ne(s,p.root),ownerState:u},i))}),uG=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],dG=d.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:p,densityFactor:f,headerGroupingMaxDepth:g,columnMenuState:h,columnVisibility:b,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C}=t,y=K(t,uG),{isDragging:x,getRootProps:S,getInnerProps:T,getColumnHeaders:P,getColumnGroupHeaders:k}=tG({innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:p,densityFactor:f,headerGroupingMaxDepth:g,columnMenuState:h,columnVisibility:b,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C});return v.jsx(lG,m({ref:n},S(y),{children:v.jsxs(cG,m({isDragging:x},T(),{children:[k(),P()]}))}))}),pG=Ip(dG),fG=d.forwardRef(function(t,n){const o=at().current.getLocaleText("noResultsOverlayLabel");return v.jsx(pv,m({ref:n},t,{children:o}))}),mG=["sortingOrder"],hG=d.memo(function(t){const{sortingOrder:n}=t,r=K(t,mG),o=De(),[l]=n,s=l==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?v.jsx(s,m({},r)):null}),gG=["native"];function vG(e){let{native:t}=e,n=K(e,gG);return t?v.jsx("option",m({},n)):v.jsx(no,m({},n))}const yG={BooleanCellTrueIcon:iB,BooleanCellFalseIcon:$f,ColumnMenuIcon:rB,OpenFilterButtonIcon:QH,FilterPanelDeleteIcon:$f,ColumnFilteredIcon:tC,ColumnSelectorIcon:ZH,ColumnUnsortedIcon:hG,ColumnSortedAscendingIcon:X0,ColumnSortedDescendingIcon:Z0,ColumnResizeIcon:JH,DensityCompactIcon:eB,DensityStandardIcon:tB,DensityComfortableIcon:nB,ExportIcon:sB,MoreActionsIcon:aB,TreeDataCollapseIcon:eC,TreeDataExpandIcon:J0,GroupingCriteriaCollapseIcon:eC,GroupingCriteriaExpandIcon:J0,DetailPanelExpandIcon:nC,DetailPanelCollapseIcon:oB,RowReorderIcon:rC,QuickFilterIcon:XH,QuickFilterClearIcon:$f,ColumnMenuHideIcon:cB,ColumnMenuSortAscendingIcon:X0,ColumnMenuSortDescendingIcon:Z0,ColumnMenuFilterIcon:tC,ColumnMenuManageColumnsIcon:uB,ColumnMenuClearIcon:dB,LoadIcon:lB,FilterPanelAddIcon:nC,FilterPanelRemoveAllIcon:pB,ColumnReorderIcon:rC},bG=m({},yG,{BaseCheckbox:s_,BaseTextField:GS,BaseFormControl:_S,BaseSelect:bp,BaseSwitch:_A,BaseButton:bl,BaseIconButton:Dr,BaseInputAdornment:XL,BaseTooltip:ev,BasePopper:Ql,BaseInputLabel:LS,BaseSelectOption:vG,BaseChip:Kg}),CG=m({},bG,{Cell:qm,SkeletonCell:R4,ColumnHeaderFilterIconButton:BH,ColumnMenu:IB,ColumnHeaders:pG,Footer:D3,FooterRowCount:V3,Toolbar:null,PreferencesPanel:e3,LoadingOverlay:_3,NoResultsOverlay:fG,NoRowsOverlay:L3,Pagination:A3,FilterPanel:x3,ColumnsPanel:qB,Panel:JB,Row:cV}),ZP=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>m({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function xG({defaultSlots:e,slots:t,components:n}){const r=t??(n?ZP(n):null);if(!r||Object.keys(r).length===0)return e;const o=m({},e);return Object.keys(r).forEach(l=>{const s=l;r[s]!==void 0&&(o[s]=r[s])}),o}const wG=["components","componentsProps"];function SG(e){var t;const n=Object.keys(e);if(!n.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let l=0;l<n.length;l+=1){const s=n[l];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function PG(e){return d.useMemo(()=>{const{components:t,componentsProps:n}=e,r=K(e,wG);return[t,n,SG(r)]},[e])}const kG={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},$p={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:so.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},EG=ZP(CG),IG=e=>{const[t,n,r]=PG(eS({props:e,name:"MuiDataGrid"})),o=d.useMemo(()=>m({},N6,r.localeText),[r.localeText]),l=d.useMemo(()=>xG({defaultSlots:EG,slots:r.slots,components:t}),[t,r.slots]);return d.useMemo(()=>{var s;return m({},$p,r,{localeText:o,slots:l,slotProps:(s=r.slotProps)!=null?s:n},kG)},[r,o,l,n])},MG=e=>m({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),PC=(e,t,n)=>typeof e=="number"&&e>0?e:t,$G=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,l=d.useRef(Object.create(null)),s=d.useRef(-1),i=d.useRef(!1),a=Re(e,xi),c=Re(e,Jt),u=Re(e,mv),p=Re(e,lr),f=Zl(e,t),g=Re(e,Ci),h=PC(t.rowHeight,$p.rowHeight),b=Math.floor(h*a),w=d.useCallback(()=>{var L,O;i.current=!1;const I=N=>{l.current[N.id]||(l.current[N.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:M,needsFirstMeasurement:D,sizes:A}=l.current[N.id];let H=typeof b=="number"&&b>0?b:52;const z=A.baseCenter;if(M)H=z;else if(n){const ae=n(m({},N,{densityFactor:a}));if(ae==="auto"){if(D){const ce=o?o(m({},N,{densityFactor:a})):b;H=ce??b}else H=z;i.current=!0,l.current[N.id].autoHeight=!0}else H=PC(ae,b),l.current[N.id].needsFirstMeasurement=!1,l.current[N.id].autoHeight=!1}else l.current[N.id].needsFirstMeasurement=!1;const W={};for(const ae in A)/^base[A-Z]/.test(ae)&&(W[ae]=A[ae]);if(W.baseCenter=H,r){var G,q;const ae=e.current.getRowIndexRelativeToVisibleRows(N.id),ce=r(m({},N,{isFirstVisible:ae===0,isLastVisible:ae===f.rows.length-1,indexRelativeToCurrentPage:ae}));W.spacingTop=(G=ce.top)!=null?G:0,W.spacingBottom=(q=ce.bottom)!=null?q:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",W,N);return l.current[N.id].sizes=re,re},$=[],j=f.rows.reduce((N,M)=>{$.push(N);let D=0,A=0;const H=I(M);for(const z in H){const W=H[z];/^base[A-Z]/.test(z)?D=W>D?W:D:A+=W}return N+D+A},0);g==null||(L=g.top)==null||L.forEach(N=>{I(N)}),g==null||(O=g.bottom)==null||O.forEach(N=>{I(N)}),e.current.setState(N=>m({},N,{rowsMeta:{currentPageTotalHeight:j,positions:$}})),i.current||(s.current=1/0),e.current.forceUpdate()},[e,f.rows,b,n,r,o,g,a]),C=d.useCallback(L=>{const O=l.current[L];return O?O.sizes.baseCenter:b},[b]),y=L=>{var O;return(O=l.current[L])==null?void 0:O.sizes},x=d.useCallback((L,O)=>{l.current[L].sizes.baseCenter=O,l.current[L].isResized=!0,l.current[L].needsFirstMeasurement=!1,w()},[w]),S=d.useMemo(()=>ql(w,t.rowPositionsDebounceMs),[w,t.rowPositionsDebounceMs]),T=d.useCallback((L,O,I)=>{if(!l.current[L]||!l.current[L].autoHeight)return;const $=l.current[L].sizes[`base${Q(I)}`]!==O;l.current[L].needsFirstMeasurement=!1,l.current[L].sizes[`base${Q(I)}`]=O,$&&S()},[S]),P=d.useCallback(L=>{var O;return((O=l.current[L])==null?void 0:O.autoHeight)||!1},[]),k=d.useCallback(()=>s.current,[]),E=d.useCallback(L=>{i.current&&L>s.current&&(s.current=L)},[]),_=d.useCallback(()=>{l.current={},w()},[w]);d.useEffect(()=>{w()},[b,c,u,p,w]),wv(e,"rowHeight",w);const R={unstable_setLastMeasuredRowIndex:E,unstable_getRowHeight:C,unstable_getRowInternalSizes:y,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:T,resetRowHeights:_},F={getLastMeasuredRowIndex:k,rowHasAutoHeight:P};et(e,R,"public"),et(e,F,"private")},RG=e=>{const t=d.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=d.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);et(e,{exportState:t,restoreState:n},"public")},TG=e=>{const t=d.useRef({}),n=d.useCallback((c,u,p)=>{const f=t.current;f[c]||(f[c]={}),f[c][u]=p},[]),r=d.useCallback((c,u)=>{var p;return(p=t.current[c])==null?void 0:p[u]},[]),o=d.useCallback(c=>{const{columnIndex:u,rowId:p,minFirstColumnIndex:f,maxLastColumnIndex:g,columns:h}=c,b=h.length,w=h[u],C=typeof w.colSpan=="function"?w.colSpan(e.current.getCellParams(p,w.field)):w.colSpan;if(!C||C===1)return n(p,u,{spannedByColSpan:!1,cellProps:{colSpan:1,width:w.computedWidth}}),{colSpan:1};let y=w.computedWidth;for(let x=1;x<C;x+=1){const S=u+x;if(S>=f&&S<g){const T=h[S];y+=T.computedWidth,n(p,u+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(u+C,b-1),leftVisibleCellIndex:u})}n(p,u,{spannedByColSpan:!1,cellProps:{colSpan:C,width:y}})}return{colSpan:C}},[e,n]),l=d.useCallback(({rowId:c,minFirstColumn:u,maxLastColumn:p,columns:f})=>{for(let g=u;g<p;g+=1){const h=o({columnIndex:g,rowId:c,minFirstColumnIndex:u,maxLastColumnIndex:p,columns:f});h.colSpan>1&&(g+=h.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},i={calculateColSpan:l};et(e,s,"public"),et(e,i,"private");const a=d.useCallback(()=>{t.current={}},[]);Le(e,"columnOrderChange",a)},JP=(e,t,n)=>{if(uP(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
238
- `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(l=>{JP(l,[...t,r],n)})},nh=e=>{if(!e)return{};const t={};return e.forEach(n=>{JP(n,[],t)}),t},rh=(e,t,n)=>{const r=a=>{var c;return(c=t[a])!=null?c:[]},o=[],l=Math.max(...e.map(a=>r(a).length)),s=(a,c,u)=>Dl(r(a).slice(0,u+1),r(c).slice(0,u+1)),i=(a,c)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(c));for(let a=0;a<l;a+=1){const c=e.reduce((u,p)=>{var f;const g=(f=r(p)[a])!=null?f:null;if(u.length===0)return[{columnFields:[p],groupId:g}];const h=u[u.length-1],b=h.columnFields[h.columnFields.length-1];return h.groupId!==g||!s(b,p,a)||i(b,p)?[...u,{columnFields:[p],groupId:g}]:[...u.slice(0,u.length-1),{columnFields:[...h.columnFields,p],groupId:g}]},[]);o.push(c)}return o},OG=["groupId","children"],Pv=e=>{let t={};return e.forEach(n=>{if(uP(n))return;const{groupId:r,children:o}=n,l=K(n,OG);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=m({},l,{groupId:r}),i=Pv(o);if(i[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=m({},t,i,{[r]:s})}),m({},t)},FG=(e,t,n)=>{var r,o,l,s;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const i=xo(n),a=xp(n),c=Pv((o=t.columnGroupingModel)!=null?o:[]),u=nh((l=t.columnGroupingModel)!=null?l:[]),p=rh(i,u,(s=n.current.state.pinnedColumns)!=null?s:{}),f=a.length===0?0:Math.max(...a.map(g=>{var h,b;return(h=(b=u[g])==null?void 0:b.length)!=null?h:0}));return m({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:u,headerStructure:p,maxDepth:f}})},DG=(e,t)=>{var n;const r=d.useCallback(a=>{var c;return(c=nz(e)[a])!=null?c:[]},[e]),o=d.useCallback(()=>ZS(e),[e]);et(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=d.useCallback(()=>{var a;const c=nh((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(u=>{var p,f,g;const h=(p=(f=u.columns)==null?void 0:f.orderedFields)!=null?p:[],b=(g=u.pinnedColumns)!=null?g:{},w=rh(h,c,b);return m({},u,{columnGrouping:m({},u.columnGrouping,{headerStructure:w})})})},[e,t.columnGroupingModel]),i=d.useCallback(a=>{var c,u,p,f;if(!((c=t.experimentalFeatures)!=null&&c.columnGrouping))return;const g=(u=(p=(f=e.current).getPinnedColumns)==null?void 0:p.call(f))!=null?u:{},h=xo(e),b=xp(e),w=Pv(a??[]),C=nh(a??[]),y=rh(h,C,g),x=b.length===0?0:Math.max(...b.map(S=>{var T,P;return(T=(P=C[S])==null?void 0:P.length)!=null?T:0}));e.current.setState(S=>m({},S,{columnGrouping:{lookup:w,unwrappedGroupingModel:C,headerStructure:y,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Le(e,"columnIndexChange",s),Le(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Le(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),d.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])},jG=(e,t)=>{const n=SV(e,t);return z6(n,t),j6(n),Rn(_6,n,t),Rn(qV,n,t),Rn(R6,n,t),Rn(M6,n,t),Rn(d6,n,t),Rn(H6,n,t),Rn(y6,n,t),Rn(i6,n,t),Rn(ZV,n,t),Rn(g6,n,t),Rn(MG,n,t),Rn(VV,n,t),Rn(FG,n,t),Rn(NH,n,t),m6(n,t),L6(n,t),YV(n,t),T6(n,t),Lz(n,t),TG(n),DG(n,t),$6(n,t),p6(n,t),b6(n,t),u6(n,t),B6(n,t),JV(n,t),v6(n,t),$G(n,t),V6(n,t),GV(n),n6(n,t),s6(n,t),BV(n,t),U6(n,t),G6(n,t),RG(n),AH(n,t),n},_G=e=>{const{classes:t}=e;return we({root:["virtualScroller"]},ct,t)},LG=Zt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),NG=d.forwardRef(function(t,n){const r=De(),o=_G(r);return v.jsx(LG,m({ref:n},t,{className:ne(o.root,t.className),ownerState:r}))}),AG=(e,t)=>{const{classes:n}=e;return we({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ct,n)},zG=Zt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),HG=d.forwardRef(function(t,n){var r;const o=De(),l=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=AG(o,l);return v.jsx(zG,m({ref:n},t,{ownerState:o,className:ne(s.root,t.className)}))}),BG=["className"],VG=e=>{const{classes:t}=e;return we({root:["virtualScrollerRenderZone"]},ct,t)},GG=Zt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),WG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,BG),l=De(),s=VG(l);return v.jsx(GG,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),UG=["className"],KG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,UG),{getRootProps:l,getContentProps:s,getRenderZoneProps:i,getRows:a}=X6({ref:n});return v.jsxs(NG,m({className:r},l(o),{children:[v.jsx(Rz,{}),v.jsx(HG,m({},s(),{children:v.jsx(WG,m({},i(),{children:a()}))}))]}))}),ek=d.forwardRef(function(t,n){const r=IG(t),o=jG(r.apiRef,r);return v.jsx(uV,{privateApiRef:o,props:r,children:v.jsxs(j4,m({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[v.jsx(j3,{}),v.jsx(xz,{VirtualScrollerComponent:KG}),v.jsx(wz,{})]}))})}),tk=d.memo(ek);$p.filterDebounceMs;$p.filterDebounceMs;ek.propTypes={apiRef:V.shape({current:V.object.isRequired}),"aria-label":V.string,"aria-labelledby":V.string,autoHeight:V.bool,autoPageSize:V.bool,cellModesModel:V.object,checkboxSelection:V.bool,classes:V.object,clipboardCopyCellDelimiter:V.string,columnBuffer:V.number,columnGroupingModel:V.arrayOf(V.object),columnHeaderHeight:V.number,columns:CR(V.array.isRequired),columnThreshold:V.number,columnVisibilityModel:V.object,components:V.object,componentsProps:V.object,density:V.oneOf(["comfortable","compact","standard"]),disableColumnFilter:V.bool,disableColumnMenu:V.bool,disableColumnSelector:V.bool,disableDensitySelector:V.bool,disableEval:V.bool,disableRowSelectionOnClick:V.bool,disableVirtualization:V.bool,editMode:V.oneOf(["cell","row"]),experimentalFeatures:V.shape({ariaV7:V.bool,columnGrouping:V.bool,warnIfFocusStateIsNotSynced:V.bool}),filterDebounceMs:V.number,filterMode:V.oneOf(["client","server"]),filterModel:V.shape({items:V.arrayOf(V.shape({field:V.string.isRequired,id:V.oneOfType([V.number,V.string]),operator:V.string.isRequired,value:V.any})).isRequired,logicOperator:V.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:V.bool,quickFilterLogicOperator:V.oneOf(["and","or"]),quickFilterValues:V.array}),forwardedProps:V.object,getCellClassName:V.func,getDetailPanelContent:V.func,getEstimatedRowHeight:V.func,getRowClassName:V.func,getRowHeight:V.func,getRowId:V.func,getRowSpacing:V.func,hideFooter:V.bool,hideFooterPagination:V.bool,hideFooterSelectedRowCount:V.bool,ignoreDiacritics:V.bool,initialState:V.object,isCellEditable:V.func,isRowSelectable:V.func,keepNonExistentRowsSelected:V.bool,loading:V.bool,localeText:V.object,logger:V.shape({debug:V.func.isRequired,error:V.func.isRequired,info:V.func.isRequired,warn:V.func.isRequired}),logLevel:V.oneOf(["debug","error","info","warn",!1]),nonce:V.string,onCellClick:V.func,onCellDoubleClick:V.func,onCellEditStart:V.func,onCellEditStop:V.func,onCellKeyDown:V.func,onCellModesModelChange:V.func,onClipboardCopy:V.func,onColumnHeaderClick:V.func,onColumnHeaderDoubleClick:V.func,onColumnHeaderEnter:V.func,onColumnHeaderLeave:V.func,onColumnHeaderOut:V.func,onColumnHeaderOver:V.func,onColumnOrderChange:V.func,onColumnVisibilityModelChange:V.func,onFilterModelChange:V.func,onMenuClose:V.func,onMenuOpen:V.func,onPaginationModelChange:V.func,onPreferencePanelClose:V.func,onPreferencePanelOpen:V.func,onProcessRowUpdateError:V.func,onResize:V.func,onRowClick:V.func,onRowCountChange:V.func,onRowDoubleClick:V.func,onRowEditStart:V.func,onRowEditStop:V.func,onRowModesModelChange:V.func,onRowSelectionModelChange:V.func,onSortModelChange:V.func,onStateChange:V.func,pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.shape({label:V.string.isRequired,value:V.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
239
- `)):null,paginationMode:V.oneOf(["client","server"]),paginationModel:V.shape({page:V.number.isRequired,pageSize:V.number.isRequired}),processRowUpdate:V.func,rowBuffer:V.number,rowCount:V.number,rowHeight:V.number,rowModesModel:V.object,rowPositionsDebounceMs:V.number,rows:V.arrayOf(V.object).isRequired,rowSelection:V.bool,rowSelectionModel:V.oneOfType([V.arrayOf(V.oneOfType([V.number,V.string]).isRequired),V.number,V.string]),rowSpacingType:V.oneOf(["border","margin"]),rowThreshold:V.number,scrollbarSize:V.number,showCellVerticalBorder:V.bool,showColumnVerticalBorder:V.bool,slotProps:V.object,slots:V.object,sortingMode:V.oneOf(["client","server"]),sortingOrder:V.arrayOf(V.oneOf(["asc","desc"])),sortModel:V.arrayOf(V.shape({field:V.string.isRequired,sort:V.oneOf(["asc","desc"])})),sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),unstable_ignoreValueFormatterDuringExport:V.oneOfType([V.shape({clipboardExport:V.bool,csvExport:V.bool}),V.bool])};var kv={},Of={};const qG=Mo(SO);var kC;function Sr(){return kC||(kC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qG}(Of)),Of}var YG=zn;Object.defineProperty(kv,"__esModule",{value:!0});var nk=kv.default=void 0,QG=YG(Sr()),XG=v;nk=kv.default=(0,QG.default)((0,XG.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z"}),"OpenInBrowser");var Ev={},ZG=zn;Object.defineProperty(Ev,"__esModule",{value:!0});var Iv=Ev.default=void 0,JG=ZG(Sr()),e9=v;Iv=Ev.default=(0,JG.default)((0,e9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var Mv={},t9=zn;Object.defineProperty(Mv,"__esModule",{value:!0});var $v=Mv.default=void 0,n9=t9(Sr()),r9=v;$v=Mv.default=(0,n9.default)((0,r9.jsx)("path",{d:"M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5z"}),"CableOutlined");var Rv={},o9=zn;Object.defineProperty(Rv,"__esModule",{value:!0});var rk=Rv.default=void 0,l9=o9(Sr()),s9=v;rk=Rv.default=(0,l9.default)((0,s9.jsx)("path",{d:"M19 19V4h-4V3H5v16H3v2h12V6h2v15h4v-2zm-6 0H7V5h6zm-3-8h2v2h-2z"}),"MeetingRoomOutlined");var Tv={},i9=zn;Object.defineProperty(Tv,"__esModule",{value:!0});var ok=Tv.default=void 0,a9=i9(Sr()),c9=v;ok=Tv.default=(0,a9.default)((0,c9.jsx)("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"}),"MemoryOutlined");var Ov={},u9=zn;Object.defineProperty(Ov,"__esModule",{value:!0});var lk=Ov.default=void 0,d9=u9(Sr()),p9=v;lk=Ov.default=(0,d9.default)((0,p9.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageOutlined");const sk={elapsedTime:e=>e.value&&e.value.getTime?EC(Date.now()-e.value.getTime()):typeof e.value=="number"&&e.value>=0?EC(e.value):""};function EC(e){if(e<0)return"";let t=Math.floor(e/1e3);const n=Math.floor(t/31536e3);if(n)return n+"y";const r=Math.floor((t%=31536e3)/86400);if(r)return r+"d";const o=Math.floor((t%=86400)/3600);if(o)return o+"h";const l=Math.floor((t%=3600)/60);if(l)return l+"min";const s=t%60;return s?s+"s":"less than a second"}const f9=5e3,IC="No active rooms.",m9={clients:Qa,maxClients:Qa,elapsedTime:vv};function Kc({icon:e,label:t,value:n}){return v.jsxs(wr,{variant:"outlined",sx:{flex:1,px:2.5,py:1.5,textAlign:"center"},children:[v.jsxs(sn,{variant:"caption",color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:.5,fontSize:"0.7rem"},children:[e&&v.jsx(go,{component:"span",sx:{verticalAlign:"middle",mr:.5},children:e}),t]}),v.jsx(sn,{variant:"h6",fontWeight:600,sx:{mt:.25},children:n})]})}class h9 extends d.Component{constructor(){super(...arguments),this.state={selected:[1],rooms:[],connections:0,cpu:0,memory:{totalMemMb:0,usedMemMb:0},columns:[],loaded:!1},this.isSelected=t=>this.state.selected.indexOf(t)!==-1,this.handleRowSelection=t=>{this.setState({selected:t})}}componentWillMount(){this.fetchRoomList()}componentWillUnmount(){clearInterval(this.updateRoomListInterval)}async fetchRoomList(){try{this.setState({...await z5(),loaded:!0})}catch(t){console.error(t)}clearInterval(this.updateRoomListInterval),this.updateRoomListInterval=window.setInterval(()=>{this.fetchRoomList()},f9)}inspectRoom(t){this.props.history.push("/room/"+t)}async disposeRoom(t){await WS(t,"disconnect"),this.fetchRoomList()}getColumnHeader(t){return typeof t=="string"?t:t.metadata}getRoomColumn(t,n){let r=n,o,l=t,s;return r==="elapsedTime"&&l[r]>=0?s=i=>new Date(Date.now()-i):n.metadata&&t.metadata&&(r=n.metadata,l=t.metadata),o=l[r],o===void 0&&(o=""),s?s(o):`${o}`}formatMemory(t){return t>=1024?`${(t/1024).toFixed(2)} GB`:`${t} MB`}getColumnsNames(t){const n=t.map(r=>{const o=this.getColumnHeader(r);return{id:o,field:o,headerName:o,flex:1,valueFormatter:sk[o],sortComparator:m9[o]||MP}});return n.push({field:"Inspect",headerName:"",width:120,sortable:!1,renderCell:r=>r.value!==IC?v.jsx(bl,{size:"small",variant:"outlined",startIcon:v.jsx(nk,{}),onClick:()=>this.inspectRoom(r.value),children:"Inspect"}):null}),n.push({field:"Dispose",headerName:"",width:120,sortable:!1,renderCell:r=>r.value!==IC?v.jsx(ev,{title:"Dispose room",children:v.jsx(Dr,{size:"small",color:"error",onClick:()=>this.disposeRoom(r.value),children:v.jsx(Iv,{fontSize:"small"})})}):null}),n}getRowsData(t){return t.map(n=>{const r={id:n.roomId};for(const o of this.state.columns){const l=this.getRoomColumn(n,o);r[this.getColumnHeader(o)]=l}return r.Inspect=n.roomId,r.Dispose=n.roomId,r})}render(){const t=this.getColumnsNames(this.state.columns),n=this.getRowsData(this.state.rooms);return v.jsx(TS,{maxWidth:"lg",sx:{py:3},children:v.jsxs(Go,{spacing:2,children:[v.jsxs(Go,{direction:"row",spacing:1.5,children:[v.jsx(Kc,{icon:v.jsx($v,{sx:{fontSize:20,color:"text.secondary"}}),label:"Connections",value:this.state.connections}),v.jsx(Kc,{icon:v.jsx(rk,{sx:{fontSize:20,color:"text.secondary"}}),label:"Rooms",value:this.state.rooms.length}),v.jsx(Kc,{icon:v.jsx(ok,{sx:{fontSize:20,color:"text.secondary"}}),label:"CPU",value:`${this.state.cpu.toFixed(1)}%`}),v.jsx(Kc,{icon:v.jsx(lk,{sx:{fontSize:20,color:"text.secondary"}}),label:"Memory",value:this.formatMemory(this.state.memory.usedMemMb)})]}),this.state.loaded?n.length===0?v.jsx(go,{sx:{display:"flex",justifyContent:"center",py:4},children:v.jsx(sn,{color:"text.secondary",children:"No active rooms."})}):v.jsx(wr,{variant:"outlined",sx:{overflow:"hidden"},children:v.jsx(tk,{columns:t,rows:n,autoHeight:!0,sx:{border:0,"& .MuiDataGrid-columnHeaders":{bgcolor:"action.hover"},"& .MuiDataGrid-cell":{display:"flex",alignItems:"center"}},slots:{noRowsOverlay:()=>v.jsx(v.Fragment,{})},disableRowSelectionOnClick:!0})}):v.jsxs(go,{sx:{display:"flex",alignItems:"center",justifyContent:"center",py:4,gap:1},children:[v.jsx($S,{size:24}),v.jsx(sn,{color:"text.secondary",children:"Loading..."})]})]})})}}const kl=(e,t,n,r,o)=>{if(!r)throw new Error(o??`Invalid property path: ${t}
240
- Couldn't access "${n}" in ${JSON.stringify(e)}`)},MC=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),vu=e=>Array.isArray(e),ik=(e,t)=>e.filter((n,r)=>r!==t),g9=(e,t,n,r={})=>{const{remove:o=!1,createNew:l=!0,noError:s=!1}=r,i=e,a=typeof(c=t)=="string"?c:typeof c=="number"?String(c):c.reduce((f,g)=>typeof g=="number"?`${f}[${g}]`:f===""?g:`${f}.${g}`,"");var c;const u=Object.assign(Object.assign({},r),{remove:o,createNew:l,noError:s,fullData:i,fullPath:a}),p=Array.isArray(t)?t:(f=>Array.isArray(f)?f:f.split(/(\.|\[\d+\])/).filter(g=>g!=="."&&g!=="").map(g=>{const h=/\[(\d+)\]/.exec(g);return h?Number(h[1]):g}).flat())(t).filter(f=>f!=="");return vu(e)&&o&&p.length===1?ik(e,p[0]):Ji(e,p,n,u)},Ji=(e,t,n,r)=>{const o=MC(e)?Object.assign({},e):null,l=vu(e)?[...e]:null;if(t.length===0)return e;if(!o&&!l)throw new Error("Can't assign property -- invalid input object");const{createNew:s,remove:i,noError:a,fullData:c,fullPath:u}=r,p=t[0];if(l&&typeof p=="string")return l.map(b=>Ji(b,t,n,r));if(t.length===1){if(o&&typeof p=="string"){const b=v9(o,p,n,r);return b??o}return l&&typeof p=="number"?(y9(l,p,n,r),l):(kl(c,u,p,a),e)}const f=o||l||[];if(i&&t.length===2&&typeof t[1]=="number"){const b=f[p],w=t[1];return vu(b)?f[p]=ik(b,w):kl(c,u,p,a,"Trying to remove an indexed item from an object that is not an array"),f}const g=t.slice(1);if(p in e){if(h=f[p],!vu(h)&&!MC(h)){if(!s)return kl(c,u,p,a),f;f[p]={}}return f[p]=Ji(f[p],g,n,r),f}var h;if(s){const b=typeof g[0]=="number"?[]:{};if(o)return f[p]=b,f[p]=Ji(f[p],g,n,r),f;if(l&&Array.isArray(f)){f.push(b);const w=f.length-1;return f[w]=Ji(f[w],g,n,r),f}}return kl(c,u,p,a),f},v9=(e,t,n,r)=>{const{remove:o,createNew:l,noError:s,insertAfter:i,insertBefore:a,fullData:c,fullPath:u}=r;if(a!==void 0||i!==void 0){const f=Object.entries(e);let g=1/0;return g=typeof a=="number"?a:typeof i=="number"?i:f.findIndex(([h,b])=>h===(a??i)),i&&g++,f.splice(g,0,[t,n]),Object.fromEntries(f)}const p=t in e;o?p?delete e[t]:kl(c,u,t,s):l||p?e[t]=n:kl(c,u,t,s)},y9=(e,t,n,r)=>{const{noError:o,fullData:l,fullPath:s,createNew:i,insert:a}=r;a&&e.splice(t,0,n),t in e?e[t]=n:i?e.push(n):kl(l,s,t,o)},oi=(e,t,n)=>{const r=Array.isArray(t)?t:b9(t);if(r.length===0)return e;const o=r[0];if(Array.isArray(e)&&typeof o!="number"&&e.length>0)return e.map(s=>oi(s,r));if(typeof e!="object"||e===null||!(o in e))return C9(e,o);const l=e[o];return r.length===1?l:oi(l,r.slice(1))},b9=e=>e.split(/(\.|\[\d+\])/).filter(t=>t!=="."&&t!=="").map(t=>{const n=/\[(\d+)\]/.exec(t);return n?Number(n[1]):t}).flat(),C9=(e,t,n)=>{throw new Error(`Unable to extract object property
237
+ `)),r.current=!0),T.current){f(k),T.current=!1;return}g(k)},[t.autoHeight,g,n]);vt(()=>u(),[u]),Rt(e,"sortedRowsSet",u),Rt(e,"paginationModelChange",u),Rt(e,"columnsChange",u),Le(e,"resize",P),Rt(e,"debouncedResize",t.onResize)}const K6=["style"],q6=["style"];function ri(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),l=t[o];return e<=l?ri(e,t,n,o):ri(e,t,o+1,r)}function Y6(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return ri(e,t,Math.floor(n/2),Math.min(n,t.length))}const zo=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[ni(e-n,r,o),ni(t+n,r,o)],XP=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,Q6={maxSize:3},X6=e=>{const t=dl(),n=De(),r=Re(t,an),o=Re(t,zH),l=Re(t,TP),{ref:s,onRenderZonePositioning:i,renderZoneMinColumnIndex:a=0,renderZoneMaxColumnIndex:c=r.length,getRowProps:u}=e,p=Vr(),f=Re(t,ti),g=Re(t,lv),h=Re(t,Gn),b=Re(t,rd),w=Re(t,Ya),C=Re(t,ad),y=Xl(t,n),x=d.useRef(null),S=d.useRef(null),T=wt(s,S),[P,k]=d.useState(null),E=d.useRef(P),_=d.useRef({top:0,left:0}),[R,F]=d.useState({width:null,height:null}),L=d.useRef(g),[O,I]=d.useState(null),$=d.useRef(Object.create(null)),j=d.useRef(),N=d.useRef(),M=d.useRef(xp((Y,pe,ee,Z,fe,le)=>{let ge;const me=Y.slice(pe,ee);return le>-1&&(pe>le&&le>=Z||ee<le&&le<fe)&&(ge=le),{focusedCellColumnIndexNotInRange:ge,renderedColumns:me}},Q6)),D=d.useMemo(()=>h!==null?r.findIndex(Y=>Y.field===h.field):-1,[h,r]),A=d.useCallback(()=>{if(!o)return{firstRowIndex:0,lastRowIndex:y.rows.length,firstColumnIndex:0,lastColumnIndex:r.length};const{top:Y,left:pe}=_.current,ee=Math.min(wC(t,y,w,Y),w.positions.length-1),Z=n.autoHeight?ee+y.rows.length:wC(t,y,w,Y+R.height);let fe=0,le=f.length;if(l){let ge=!1;const[me,Ie]=zo({firstIndex:ee,lastIndex:Z,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer});for(let Se=me;Se<Ie&&!ge;Se+=1){const te=y.rows[Se];ge=t.current.rowHasAutoHeight(te.id)}ge||(fe=ri(Math.abs(pe),f),le=ri(Math.abs(pe)+R.width,f))}return{firstRowIndex:ee,lastRowIndex:Z,firstColumnIndex:fe,lastColumnIndex:le}},[o,l,w,n.autoHeight,n.rowBuffer,y,f,r.length,t,R]);vt(()=>{o?(S.current.scrollLeft=0,S.current.scrollTop=0):x.current.style.transform="translate3d(0px, 0px, 0px)"},[o]),vt(()=>{F({width:S.current.clientWidth,height:S.current.clientHeight})},[w.currentPageTotalHeight]);const H=d.useCallback(()=>{S.current&&F({width:S.current.clientWidth,height:S.current.clientHeight})},[]);Le(t,"debouncedResize",H);const z=d.useCallback(Y=>{const[pe,ee]=zo({firstIndex:Y.firstRowIndex,lastIndex:Y.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer}),[Z]=zo({firstIndex:Y.firstColumnIndex,lastIndex:Y.lastColumnIndex,minFirstIndex:a,maxLastIndex:c,buffer:n.columnBuffer}),fe=nh({firstColumnToRender:Z,apiRef:t,firstRowToRender:pe,lastRowToRender:ee,visibleRows:y.rows}),le=p.direction==="ltr"?1:-1,ge=Ya(t.current.state).positions[pe],me=le*ti(t)[fe];x.current.style.transform=`translate3d(${me}px, ${ge}px, 0px)`,typeof i=="function"&&i({top:ge,left:me})},[t,y.rows,i,a,c,n.columnBuffer,n.rowBuffer,p.direction]),W=d.useCallback(()=>E.current,[]),G=d.useCallback(Y=>{if(E.current&&XP(Y,E.current)){z(Y);return}k(Y),z(Y);const[pe,ee]=zo({firstIndex:Y.firstRowIndex,lastIndex:Y.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:n.rowBuffer});t.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:pe,lastRowToRender:ee}),E.current=Y},[t,k,E,y.rows.length,n.rowBuffer,z]);vt(()=>{if(R.width==null)return;const Y=A();G(Y);const{top:pe,left:ee}=_.current,Z={top:pe,left:ee,renderContext:Y};t.current.publishEvent("scrollPositionChange",Z)},[t,A,R.width,G]);const q=Ct(Y=>{const{scrollTop:pe,scrollLeft:ee}=Y.currentTarget;if(_.current.top=pe,_.current.left=ee,!E.current||pe<0||p.direction==="ltr"&&ee<0||p.direction==="rtl"&&ee>0)return;const Z=o?A():E.current,fe=Math.abs(Z.firstRowIndex-E.current.firstRowIndex),le=Math.abs(Z.lastRowIndex-E.current.lastRowIndex),ge=Math.abs(Z.firstColumnIndex-E.current.firstColumnIndex),me=Math.abs(Z.lastColumnIndex-E.current.lastColumnIndex),Ie=fe>=n.rowThreshold||le>=n.rowThreshold||ge>=n.columnThreshold||me>=n.columnThreshold||L.current!==g;t.current.publishEvent("scrollPositionChange",{top:pe,left:ee,renderContext:Ie?Z:E.current},Y),Ie&&(nc.flushSync(()=>{G(Z)}),L.current=g)}),re=Ct(Y=>{t.current.publishEvent("virtualScrollerWheel",{},Y)}),ae=Ct(Y=>{t.current.publishEvent("virtualScrollerTouchMove",{},Y)}),ce=d.useMemo(()=>h!==null?y.rows.findIndex(Y=>Y.id===h.id):-1,[h,y.rows]);Le(t,"rowMouseOver",(Y,pe)=>{var ee;pe.currentTarget.contains(pe.relatedTarget)||I((ee=Y.id)!=null?ee:null)}),Le(t,"rowMouseOut",(Y,pe)=>{pe.currentTarget.contains(pe.relatedTarget)||I(null)});const ue=(Y={renderContext:P})=>{var pe;const{onRowRender:ee,renderContext:Z,minFirstColumn:fe=a,maxLastColumn:le=c,availableSpace:ge=R.width,rowIndexOffset:me=0,position:Ie="center"}=Y;if(!Z||ge==null)return null;const Se=o?n.rowBuffer:0,te=o?n.columnBuffer:0,[oe,xe]=zo({firstIndex:Z.firstRowIndex,lastIndex:Z.lastRowIndex,minFirstIndex:0,maxLastIndex:y.rows.length,buffer:Se}),Oe=[];if(Y.rows)Y.rows.forEach(Ce=>{Oe.push(Ce),t.current.calculateColSpan({rowId:Ce.id,minFirstColumn:fe,maxLastColumn:le,columns:r})});else{if(!y.range)return null;for(let Ce=oe;Ce<xe;Ce+=1){const Me=y.rows[Ce];Oe.push(Me),t.current.calculateColSpan({rowId:Me.id,minFirstColumn:fe,maxLastColumn:le,columns:r})}}let Ve=!1;if(ce>-1){const Ce=y.rows[ce];(oe>ce||xe<ce)&&(Ve=!0,ce>oe?Oe.push(Ce):Oe.unshift(Ce),t.current.calculateColSpan({rowId:Ce.id,minFirstColumn:fe,maxLastColumn:le,columns:r}))}const[Te,se]=zo({firstIndex:Z.firstColumnIndex,lastIndex:Z.lastColumnIndex,minFirstIndex:fe,maxLastIndex:le,buffer:te}),qe=nh({firstColumnToRender:Te,apiRef:t,firstRowToRender:oe,lastRowToRender:xe,visibleRows:y.rows});let tt=!1;(qe>D||se<D)&&(tt=!0);const{focusedCellColumnIndexNotInRange:Xe,renderedColumns:be}=M.current(r,qe,se,fe,le,tt?D:-1),je=((pe=n.slotProps)==null?void 0:pe.row)||{},{style:ie}=je,Ee=K(je,K6);(j.current!==u||N.current!==ie)&&($.current=Object.create(null));const Ne=[];let Ye=!1;for(let Ce=0;Ce<Oe.length;Ce+=1){var $e;const{id:Me,model:We}=Oe[Ce],Qe=Ve&&h.id===Me,Pe=Ve?oe+Ce===y.rows.length:oe+Ce===y.rows.length-1,Ge=t.current.rowHasAutoHeight(Me)?"auto":t.current.unstable_getRowHeight(Me);let rt;C[Me]==null?rt=!1:rt=t.current.isRowSelectable(Me),ee&&ee(Me);const _t=h!==null&&h.id===Me?h.field:null,dt=Xe!==void 0&&r[Xe],st=dt&&_t?[dt,...be]:be;let ut=null;b!==null&&b.id===Me&&(ut=t.current.getCellParams(Me,b.field).cellMode==="view"?b.field:null);const Et=typeof u=="function"&&u(Me,We)||{},{style:Kt}=Et,pn=K(Et,q6);if(!$.current[Me]){const mn=m({},Kt,ie);$.current[Me]=mn}let fn=me+((y==null||($e=y.range)==null?void 0:$e.firstRowIndex)||0)+oe+Ce;Ve&&(h==null?void 0:h.id)===Me?(fn=ce,Ye=!0):Ye&&(fn-=1),Ne.push(v.jsx(n.slots.row,m({row:We,rowId:Me,focusedCellColumnIndexNotInRange:Xe,isNotVisible:Qe,rowHeight:Ge,focusedCell:_t,tabbableCell:ut,renderedColumns:st,visibleColumns:r,firstColumnToRender:qe,lastColumnToRender:se,selected:rt,index:fn,containerWidth:ge,isLastVisible:Pe,position:Ie},pn,Ee,{hovered:O===Me,style:$.current[Me]}),Me))}return j.current=u,N.current=ie,Ne},ye=R.width&&g>=R.width,de=d.useMemo(()=>{const Y=Math.max(w.currentPageTotalHeight,1);let pe=!1;S!=null&&S.current&&Y<=(S==null?void 0:S.current.clientHeight)&&(pe=!0);const ee={width:ye?g:"auto",height:Y,minHeight:pe?"100%":"auto"};return n.autoHeight&&y.rows.length===0&&(ee.height=cP(t,n.rowHeight)),ee},[t,S,g,w.currentPageTotalHeight,ye,n.autoHeight,n.rowHeight,y.rows.length]);d.useEffect(()=>{t.current.publishEvent("virtualScrollerContentSizeChange")},[t,de]);const he=d.useMemo(()=>{const Y={};return ye||(Y.overflowX="hidden"),n.autoHeight&&(Y.overflowY="hidden"),Y},[ye,n.autoHeight]);return t.current.register("private",{getRenderContext:W}),{renderContext:P,updateRenderZonePosition:z,getRows:ue,getRootProps:(Y={})=>m({ref:T,onScroll:q,onWheel:re,onTouchMove:ae},Y,{style:Y.style?m({},Y.style,he):he,role:"presentation"}),getContentProps:({style:Y}={})=>({style:Y?m({},Y,de):de,role:"presentation"}),getRenderZoneProps:()=>({ref:x,role:"rowgroup"})}};function wC(e,t,n,r){var o,l;const s=e.current.getLastMeasuredRowIndex();let i=s===1/0;(o=t.range)!=null&&o.lastRowIndex&&!i&&(i=s>=t.range.lastRowIndex);const a=ni(s-(((l=t.range)==null?void 0:l.firstRowIndex)||0),0,n.positions.length);return i||n.positions[a]>=r?ri(r,n.positions):Y6(r,n.positions,a)}const Z6=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:l}=e;return we({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ct,t)};function J6(e){var t;const{groupId:n,width:r,depth:o,maxDepth:l,fields:s,height:i,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:p}=e,f=De(),g=d.useRef(null),h=at(),b=Re(h,ZS),w=n?b[n]:{},{headerName:C=n??"",description:y="",headerAlign:x=void 0}=w;let S;const T=n&&((t=b[n])==null?void 0:t.renderHeaderGroup),P=d.useMemo(()=>({groupId:n,headerName:C,description:y,depth:o,maxDepth:l,fields:s,colIndex:a,isLastColumn:p}),[n,C,y,o,l,s,a,p]);n&&T&&(S=T(P));const k=f.showColumnVerticalBorder,E=m({},e,{classes:f.classes,showColumnBorder:k,headerAlign:x,depth:o,isDragging:!1}),_=C??n,R=bt(),F=n===null?`empty-group-cell-${R}`:n,L=Z6(E);d.useLayoutEffect(()=>{if(c){const N=g.current.querySelector('[tabindex="0"]')||g.current;N==null||N.focus()}},[h,c]);const O=d.useCallback(j=>N=>{pc(N)||h.current.publishEvent(j,P,N)},[h,P]),I=d.useMemo(()=>({onKeyDown:O("columnGroupHeaderKeyDown"),onFocus:O("columnGroupHeaderFocus"),onBlur:O("columnGroupHeaderBlur")}),[O]),$=typeof w.headerClassName=="function"?w.headerClassName(P):w.headerClassName;return v.jsx(bP,m({ref:g,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:S,headerClassName:$,description:y,elementId:F,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:_,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},I))}const SC=X("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function eG(e){return!!e.target}const tG=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:l,columnPositions:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:g,columnVisibility:h,columnGroupsHeaderStructure:b,hasOtherElementInTabSequence:w}=e,C=Vr(),[y,x]=d.useState(""),[S,T]=d.useState(""),P=dl(),k=Re(P,TP),E=De(),_=d.useRef(null),R=wt(t,_),[F,L]=d.useState(null),O=d.useRef(F),I=d.useRef(0),$=Xl(P,E),j=Sv(P,E.columnHeaderHeight),N=Math.floor(E.columnHeaderHeight*p),M=d.useCallback(ye=>{F&&ye&&XP(F,ye)||L(ye)},[F]);d.useEffect(()=>{var ye;(ye=P.current.columnHeadersContainerElementRef)!=null&&ye.current&&(P.current.columnHeadersContainerElementRef.current.scrollLeft=0)},[P]);const D=d.useRef(xp(KV,{equalityCheck:(ye,de)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(he=>ye[he]===de[he])})),A=d.useCallback(ye=>{const[de,he]=zo({firstIndex:ye.firstRowIndex,lastIndex:ye.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:E.rowBuffer}),Y=D.current({firstColumnIndex:ye.firstColumnIndex,minColumnIndex:n,columnBuffer:E.columnBuffer,firstRowToRender:de,lastRowToRender:he,apiRef:P,visibleRows:$.rows}),pe=C.direction==="ltr"?1:-1,ee=Y>0?I.current-pe*s[Y]:I.current;_.current.style.transform=`translate3d(${-ee}px, 0px, 0px)`},[s,n,E.columnBuffer,P,$.rows,E.rowBuffer,C.direction]);d.useLayoutEffect(()=>{F&&A(F)},[F,A]);const H=d.useCallback(({left:ye,renderContext:de=null},he)=>{var Y,pe;if(!_.current||I.current===ye&&((Y=O.current)==null?void 0:Y.firstColumnIndex)===(de==null?void 0:de.firstColumnIndex)&&((pe=O.current)==null?void 0:pe.lastColumnIndex)===(de==null?void 0:de.lastColumnIndex))return;I.current=ye;let ee=!1;de!==O.current||!O.current?(eG(he)?(nc.flushSync(()=>{M(de)}),ee=!0):M(de),O.current=de):ee=!0,de&&ee&&A(de)},[A,M]),z=d.useCallback(ye=>T(ye.field),[]),W=d.useCallback(()=>T(""),[]),G=d.useCallback(ye=>x(ye.field),[]),q=d.useCallback(()=>x(""),[]);Le(P,"columnResizeStart",z),Le(P,"columnResizeStop",W),Le(P,"columnHeaderDragStart",G),Le(P,"columnHeaderDragEnd",q),Le(P,"scrollPositionChange",H);const re=ye=>{const{renderContext:de=F,minFirstColumn:he=n,maxLastColumn:Y=r.length}=ye||{};if(!de)return null;const[pe,ee]=zo({firstIndex:de.firstRowIndex,lastIndex:de.lastRowIndex,minFirstIndex:0,maxLastIndex:$.rows.length,buffer:E.rowBuffer}),Z=k?D.current({firstColumnIndex:de.firstColumnIndex,minColumnIndex:he,columnBuffer:E.columnBuffer,apiRef:P,firstRowToRender:pe,lastRowToRender:ee,visibleRows:$.rows}):0,fe=k?Math.min(de.lastColumnIndex+E.columnBuffer,Y):Y;return{renderedColumns:r.slice(Z,fe),firstColumnToRender:Z,lastColumnToRender:fe,minFirstColumn:he,maxLastColumn:Y}},ae=(ye,de={})=>{const he=re(ye);if(he==null)return null;const{renderedColumns:Y,firstColumnToRender:pe}=he,ee=[];for(let Z=0;Z<Y.length;Z+=1){const fe=Y[Z],le=pe+Z,ge=le===0,me=i!==null&&i.field===fe.field||ge&&!w?0:-1,Ie=c!==null&&c.field===fe.field,Se=g.open&&g.field===fe.field;ee.push(v.jsx(uH,m({},o[fe.field],{columnMenuOpen:Se,filterItemsCounter:l[fe.field]&&l[fe.field].length,headerHeight:N,isDragging:fe.field===y,colDef:fe,colIndex:le,isResizing:S===fe.field,hasFocus:Ie,tabIndex:me},de),fe.field))}return v.jsx(SC,{role:"row","aria-rowindex":f+1,ownerState:E,children:ee})},ce=ye=>{if(f===0)return null;const de=re(ye);if(de==null||de.renderedColumns.length===0)return null;const{firstColumnToRender:he,lastColumnToRender:Y}=de,pe=[],ee=[];for(let le=0;le<f;le+=1){var Z,fe;const ge=b[le],me=r[he].field,Ie=(Z=P.current.unstable_getColumnGroupPath(me)[le])!=null?Z:null,Se=ge.findIndex(({groupId:Xe,columnFields:be})=>Xe===Ie&&be.includes(me)),te=r[Y-1].field,oe=(fe=P.current.unstable_getColumnGroupPath(te)[le])!=null?fe:null,xe=ge.findIndex(({groupId:Xe,columnFields:be})=>Xe===oe&&be.includes(te)),Oe=ge.slice(Se,xe+1).map(Xe=>m({},Xe,{columnFields:Xe.columnFields.filter(be=>h[be]!==!1)})).filter(Xe=>Xe.columnFields.length>0),Ve=Oe[0].columnFields.indexOf(me),se=Oe[0].columnFields.slice(0,Ve).reduce((Xe,be)=>{var je;const ie=P.current.getColumn(be);return Xe+((je=ie.computedWidth)!=null?je:0)},0);let qe=he;const tt=Oe.map(({groupId:Xe,columnFields:be})=>{const je=u!==null&&u.depth===le&&be.includes(u.field),ie=a!==null&&a.depth===le&&be.includes(a.field)?0:-1,Ee={groupId:Xe,width:be.reduce((Ae,Ne)=>Ae+P.current.getColumn(Ne).computedWidth,0),fields:be,colIndex:qe,hasFocus:je,tabIndex:ie};return qe+=be.length,Ee});ee.push({leftOverflow:se,elements:tt})}return ee.forEach((le,ge)=>{pe.push(v.jsx(SC,{style:{height:`${N}px`,transform:`translateX(-${le.leftOverflow}px)`},role:"row","aria-rowindex":ge+1,ownerState:E,children:le.elements.map(({groupId:me,width:Ie,fields:Se,colIndex:te,hasFocus:oe,tabIndex:xe},Oe)=>v.jsx(J6,{groupId:me,width:Ie,fields:Se,colIndex:te,depth:ge,isLastColumn:te===r.length-Se.length,maxDepth:ee.length,height:N,hasFocus:oe,tabIndex:xe},Oe))},ge))}),pe},ue={minHeight:j,maxHeight:j,lineHeight:`${N}px`};return{renderContext:F,getColumnHeaders:ae,getColumnsToRender:re,getColumnGroupHeaders:ce,isDragging:!!y,getRootProps:(ye={})=>m({style:ue},ye),getInnerProps:()=>({ref:R,role:"rowgroup"}),headerHeight:N}},nG=["className"],rG=e=>{const{classes:t}=e;return we({root:["columnHeaders","withBorderColor"]},ct,t)},oG=Jt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),lG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,nG),l=De(),s=rG(l);return v.jsx(oG,m({ref:n,className:ne(r,s.root),ownerState:l},o,{role:"presentation"}))}),sG=["isDragging","className"],iG=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return we({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},ct,r)},aG=Jt("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${B.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${B.columnHeaderDropZone} .${B.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${B["columnHeadersInner--scrollable"]} .${B.columnHeader}:last-child`]:{borderRight:"none"}})),cG=d.forwardRef(function(t,n){var r,o;const{isDragging:l,className:s}=t,i=K(t,sG),a=at(),c=De(),u=m({},c,{isDragging:l,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=iG(u);return v.jsx(aG,m({ref:n,className:ne(s,p.root),ownerState:u},i))}),uG=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],dG=d.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:p,densityFactor:f,headerGroupingMaxDepth:g,columnMenuState:h,columnVisibility:b,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C}=t,y=K(t,uG),{isDragging:x,getRootProps:S,getInnerProps:T,getColumnHeaders:P,getColumnGroupHeaders:k}=tG({innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:p,densityFactor:f,headerGroupingMaxDepth:g,columnMenuState:h,columnVisibility:b,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C});return v.jsx(lG,m({ref:n},S(y),{children:v.jsxs(cG,m({isDragging:x},T(),{children:[k(),P()]}))}))}),pG=Mp(dG),fG=d.forwardRef(function(t,n){const o=at().current.getLocaleText("noResultsOverlayLabel");return v.jsx(pv,m({ref:n},t,{children:o}))}),mG=["sortingOrder"],hG=d.memo(function(t){const{sortingOrder:n}=t,r=K(t,mG),o=De(),[l]=n,s=l==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?v.jsx(s,m({},r)):null}),gG=["native"];function vG(e){let{native:t}=e,n=K(e,gG);return t?v.jsx("option",m({},n)):v.jsx(ro,m({},n))}const yG={BooleanCellTrueIcon:iB,BooleanCellFalseIcon:Rf,ColumnMenuIcon:rB,OpenFilterButtonIcon:QH,FilterPanelDeleteIcon:Rf,ColumnFilteredIcon:tC,ColumnSelectorIcon:ZH,ColumnUnsortedIcon:hG,ColumnSortedAscendingIcon:X0,ColumnSortedDescendingIcon:Z0,ColumnResizeIcon:JH,DensityCompactIcon:eB,DensityStandardIcon:tB,DensityComfortableIcon:nB,ExportIcon:sB,MoreActionsIcon:aB,TreeDataCollapseIcon:eC,TreeDataExpandIcon:J0,GroupingCriteriaCollapseIcon:eC,GroupingCriteriaExpandIcon:J0,DetailPanelExpandIcon:nC,DetailPanelCollapseIcon:oB,RowReorderIcon:rC,QuickFilterIcon:XH,QuickFilterClearIcon:Rf,ColumnMenuHideIcon:cB,ColumnMenuSortAscendingIcon:X0,ColumnMenuSortDescendingIcon:Z0,ColumnMenuFilterIcon:tC,ColumnMenuManageColumnsIcon:uB,ColumnMenuClearIcon:dB,LoadIcon:lB,FilterPanelAddIcon:nC,FilterPanelRemoveAllIcon:pB,ColumnReorderIcon:rC},bG=m({},yG,{BaseCheckbox:s_,BaseTextField:GS,BaseFormControl:_S,BaseSelect:bp,BaseSwitch:_A,BaseButton:yl,BaseIconButton:jr,BaseInputAdornment:XL,BaseTooltip:Cp,BasePopper:Yl,BaseInputLabel:LS,BaseSelectOption:vG,BaseChip:qg}),CG=m({},bG,{Cell:Ym,SkeletonCell:R4,ColumnHeaderFilterIconButton:BH,ColumnMenu:IB,ColumnHeaders:pG,Footer:D3,FooterRowCount:V3,Toolbar:null,PreferencesPanel:e3,LoadingOverlay:_3,NoResultsOverlay:fG,NoRowsOverlay:L3,Pagination:A3,FilterPanel:x3,ColumnsPanel:qB,Panel:JB,Row:cV}),ZP=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>m({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function xG({defaultSlots:e,slots:t,components:n}){const r=t??(n?ZP(n):null);if(!r||Object.keys(r).length===0)return e;const o=m({},e);return Object.keys(r).forEach(l=>{const s=l;r[s]!==void 0&&(o[s]=r[s])}),o}const wG=["components","componentsProps"];function SG(e){var t;const n=Object.keys(e);if(!n.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let l=0;l<n.length;l+=1){const s=n[l];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function PG(e){return d.useMemo(()=>{const{components:t,componentsProps:n}=e,r=K(e,wG);return[t,n,SG(r)]},[e])}const kG={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Rp={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:io.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},EG=ZP(CG),IG=e=>{const[t,n,r]=PG(eS({props:e,name:"MuiDataGrid"})),o=d.useMemo(()=>m({},N6,r.localeText),[r.localeText]),l=d.useMemo(()=>xG({defaultSlots:EG,slots:r.slots,components:t}),[t,r.slots]);return d.useMemo(()=>{var s;return m({},Rp,r,{localeText:o,slots:l,slotProps:(s=r.slotProps)!=null?s:n},kG)},[r,o,l,n])},MG=e=>m({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),PC=(e,t,n)=>typeof e=="number"&&e>0?e:t,$G=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,l=d.useRef(Object.create(null)),s=d.useRef(-1),i=d.useRef(!1),a=Re(e,xi),c=Re(e,en),u=Re(e,mv),p=Re(e,sr),f=Xl(e,t),g=Re(e,Ci),h=PC(t.rowHeight,Rp.rowHeight),b=Math.floor(h*a),w=d.useCallback(()=>{var L,O;i.current=!1;const I=N=>{l.current[N.id]||(l.current[N.id]={sizes:{baseCenter:b},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:M,needsFirstMeasurement:D,sizes:A}=l.current[N.id];let H=typeof b=="number"&&b>0?b:52;const z=A.baseCenter;if(M)H=z;else if(n){const ae=n(m({},N,{densityFactor:a}));if(ae==="auto"){if(D){const ce=o?o(m({},N,{densityFactor:a})):b;H=ce??b}else H=z;i.current=!0,l.current[N.id].autoHeight=!0}else H=PC(ae,b),l.current[N.id].needsFirstMeasurement=!1,l.current[N.id].autoHeight=!1}else l.current[N.id].needsFirstMeasurement=!1;const W={};for(const ae in A)/^base[A-Z]/.test(ae)&&(W[ae]=A[ae]);if(W.baseCenter=H,r){var G,q;const ae=e.current.getRowIndexRelativeToVisibleRows(N.id),ce=r(m({},N,{isFirstVisible:ae===0,isLastVisible:ae===f.rows.length-1,indexRelativeToCurrentPage:ae}));W.spacingTop=(G=ce.top)!=null?G:0,W.spacingBottom=(q=ce.bottom)!=null?q:0}const re=e.current.unstable_applyPipeProcessors("rowHeight",W,N);return l.current[N.id].sizes=re,re},$=[],j=f.rows.reduce((N,M)=>{$.push(N);let D=0,A=0;const H=I(M);for(const z in H){const W=H[z];/^base[A-Z]/.test(z)?D=W>D?W:D:A+=W}return N+D+A},0);g==null||(L=g.top)==null||L.forEach(N=>{I(N)}),g==null||(O=g.bottom)==null||O.forEach(N=>{I(N)}),e.current.setState(N=>m({},N,{rowsMeta:{currentPageTotalHeight:j,positions:$}})),i.current||(s.current=1/0),e.current.forceUpdate()},[e,f.rows,b,n,r,o,g,a]),C=d.useCallback(L=>{const O=l.current[L];return O?O.sizes.baseCenter:b},[b]),y=L=>{var O;return(O=l.current[L])==null?void 0:O.sizes},x=d.useCallback((L,O)=>{l.current[L].sizes.baseCenter=O,l.current[L].isResized=!0,l.current[L].needsFirstMeasurement=!1,w()},[w]),S=d.useMemo(()=>Kl(w,t.rowPositionsDebounceMs),[w,t.rowPositionsDebounceMs]),T=d.useCallback((L,O,I)=>{if(!l.current[L]||!l.current[L].autoHeight)return;const $=l.current[L].sizes[`base${Q(I)}`]!==O;l.current[L].needsFirstMeasurement=!1,l.current[L].sizes[`base${Q(I)}`]=O,$&&S()},[S]),P=d.useCallback(L=>{var O;return((O=l.current[L])==null?void 0:O.autoHeight)||!1},[]),k=d.useCallback(()=>s.current,[]),E=d.useCallback(L=>{i.current&&L>s.current&&(s.current=L)},[]),_=d.useCallback(()=>{l.current={},w()},[w]);d.useEffect(()=>{w()},[b,c,u,p,w]),wv(e,"rowHeight",w);const R={unstable_setLastMeasuredRowIndex:E,unstable_getRowHeight:C,unstable_getRowInternalSizes:y,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:T,resetRowHeights:_},F={getLastMeasuredRowIndex:k,rowHasAutoHeight:P};et(e,R,"public"),et(e,F,"private")},RG=e=>{const t=d.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=d.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);et(e,{exportState:t,restoreState:n},"public")},TG=e=>{const t=d.useRef({}),n=d.useCallback((c,u,p)=>{const f=t.current;f[c]||(f[c]={}),f[c][u]=p},[]),r=d.useCallback((c,u)=>{var p;return(p=t.current[c])==null?void 0:p[u]},[]),o=d.useCallback(c=>{const{columnIndex:u,rowId:p,minFirstColumnIndex:f,maxLastColumnIndex:g,columns:h}=c,b=h.length,w=h[u],C=typeof w.colSpan=="function"?w.colSpan(e.current.getCellParams(p,w.field)):w.colSpan;if(!C||C===1)return n(p,u,{spannedByColSpan:!1,cellProps:{colSpan:1,width:w.computedWidth}}),{colSpan:1};let y=w.computedWidth;for(let x=1;x<C;x+=1){const S=u+x;if(S>=f&&S<g){const T=h[S];y+=T.computedWidth,n(p,u+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(u+C,b-1),leftVisibleCellIndex:u})}n(p,u,{spannedByColSpan:!1,cellProps:{colSpan:C,width:y}})}return{colSpan:C}},[e,n]),l=d.useCallback(({rowId:c,minFirstColumn:u,maxLastColumn:p,columns:f})=>{for(let g=u;g<p;g+=1){const h=o({columnIndex:g,rowId:c,minFirstColumnIndex:u,maxLastColumnIndex:p,columns:f});h.colSpan>1&&(g+=h.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},i={calculateColSpan:l};et(e,s,"public"),et(e,i,"private");const a=d.useCallback(()=>{t.current={}},[]);Le(e,"columnOrderChange",a)},JP=(e,t,n)=>{if(uP(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
238
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(l=>{JP(l,[...t,r],n)})},rh=e=>{if(!e)return{};const t={};return e.forEach(n=>{JP(n,[],t)}),t},oh=(e,t,n)=>{const r=a=>{var c;return(c=t[a])!=null?c:[]},o=[],l=Math.max(...e.map(a=>r(a).length)),s=(a,c,u)=>Fl(r(a).slice(0,u+1),r(c).slice(0,u+1)),i=(a,c)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(c));for(let a=0;a<l;a+=1){const c=e.reduce((u,p)=>{var f;const g=(f=r(p)[a])!=null?f:null;if(u.length===0)return[{columnFields:[p],groupId:g}];const h=u[u.length-1],b=h.columnFields[h.columnFields.length-1];return h.groupId!==g||!s(b,p,a)||i(b,p)?[...u,{columnFields:[p],groupId:g}]:[...u.slice(0,u.length-1),{columnFields:[...h.columnFields,p],groupId:g}]},[]);o.push(c)}return o},OG=["groupId","children"],Pv=e=>{let t={};return e.forEach(n=>{if(uP(n))return;const{groupId:r,children:o}=n,l=K(n,OG);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=m({},l,{groupId:r}),i=Pv(o);if(i[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=m({},t,i,{[r]:s})}),m({},t)},FG=(e,t,n)=>{var r,o,l,s;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const i=xo(n),a=wp(n),c=Pv((o=t.columnGroupingModel)!=null?o:[]),u=rh((l=t.columnGroupingModel)!=null?l:[]),p=oh(i,u,(s=n.current.state.pinnedColumns)!=null?s:{}),f=a.length===0?0:Math.max(...a.map(g=>{var h,b;return(h=(b=u[g])==null?void 0:b.length)!=null?h:0}));return m({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:u,headerStructure:p,maxDepth:f}})},DG=(e,t)=>{var n;const r=d.useCallback(a=>{var c;return(c=nz(e)[a])!=null?c:[]},[e]),o=d.useCallback(()=>ZS(e),[e]);et(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=d.useCallback(()=>{var a;const c=rh((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(u=>{var p,f,g;const h=(p=(f=u.columns)==null?void 0:f.orderedFields)!=null?p:[],b=(g=u.pinnedColumns)!=null?g:{},w=oh(h,c,b);return m({},u,{columnGrouping:m({},u.columnGrouping,{headerStructure:w})})})},[e,t.columnGroupingModel]),i=d.useCallback(a=>{var c,u,p,f;if(!((c=t.experimentalFeatures)!=null&&c.columnGrouping))return;const g=(u=(p=(f=e.current).getPinnedColumns)==null?void 0:p.call(f))!=null?u:{},h=xo(e),b=wp(e),w=Pv(a??[]),C=rh(a??[]),y=oh(h,C,g),x=b.length===0?0:Math.max(...b.map(S=>{var T,P;return(T=(P=C[S])==null?void 0:P.length)!=null?T:0}));e.current.setState(S=>m({},S,{columnGrouping:{lookup:w,unwrappedGroupingModel:C,headerStructure:y,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Le(e,"columnIndexChange",s),Le(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Le(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),d.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])},jG=(e,t)=>{const n=SV(e,t);return z6(n,t),j6(n),Rn(_6,n,t),Rn(qV,n,t),Rn(R6,n,t),Rn(M6,n,t),Rn(d6,n,t),Rn(H6,n,t),Rn(y6,n,t),Rn(i6,n,t),Rn(ZV,n,t),Rn(g6,n,t),Rn(MG,n,t),Rn(VV,n,t),Rn(FG,n,t),Rn(NH,n,t),m6(n,t),L6(n,t),YV(n,t),T6(n,t),Lz(n,t),TG(n),DG(n,t),$6(n,t),p6(n,t),b6(n,t),u6(n,t),B6(n,t),JV(n,t),v6(n,t),$G(n,t),V6(n,t),GV(n),n6(n,t),s6(n,t),BV(n,t),U6(n,t),G6(n,t),RG(n),AH(n,t),n},_G=e=>{const{classes:t}=e;return we({root:["virtualScroller"]},ct,t)},LG=Jt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),NG=d.forwardRef(function(t,n){const r=De(),o=_G(r);return v.jsx(LG,m({ref:n},t,{className:ne(o.root,t.className),ownerState:r}))}),AG=(e,t)=>{const{classes:n}=e;return we({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ct,n)},zG=Jt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),HG=d.forwardRef(function(t,n){var r;const o=De(),l=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=AG(o,l);return v.jsx(zG,m({ref:n},t,{ownerState:o,className:ne(s.root,t.className)}))}),BG=["className"],VG=e=>{const{classes:t}=e;return we({root:["virtualScrollerRenderZone"]},ct,t)},GG=Jt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),WG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,BG),l=De(),s=VG(l);return v.jsx(GG,m({ref:n,className:ne(s.root,r),ownerState:l},o))}),UG=["className"],KG=d.forwardRef(function(t,n){const{className:r}=t,o=K(t,UG),{getRootProps:l,getContentProps:s,getRenderZoneProps:i,getRows:a}=X6({ref:n});return v.jsxs(NG,m({className:r},l(o),{children:[v.jsx(Rz,{}),v.jsx(HG,m({},s(),{children:v.jsx(WG,m({},i(),{children:a()}))}))]}))}),ek=d.forwardRef(function(t,n){const r=IG(t),o=jG(r.apiRef,r);return v.jsx(uV,{privateApiRef:o,props:r,children:v.jsxs(j4,m({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[v.jsx(j3,{}),v.jsx(xz,{VirtualScrollerComponent:KG}),v.jsx(wz,{})]}))})}),tk=d.memo(ek);Rp.filterDebounceMs;Rp.filterDebounceMs;ek.propTypes={apiRef:V.shape({current:V.object.isRequired}),"aria-label":V.string,"aria-labelledby":V.string,autoHeight:V.bool,autoPageSize:V.bool,cellModesModel:V.object,checkboxSelection:V.bool,classes:V.object,clipboardCopyCellDelimiter:V.string,columnBuffer:V.number,columnGroupingModel:V.arrayOf(V.object),columnHeaderHeight:V.number,columns:CR(V.array.isRequired),columnThreshold:V.number,columnVisibilityModel:V.object,components:V.object,componentsProps:V.object,density:V.oneOf(["comfortable","compact","standard"]),disableColumnFilter:V.bool,disableColumnMenu:V.bool,disableColumnSelector:V.bool,disableDensitySelector:V.bool,disableEval:V.bool,disableRowSelectionOnClick:V.bool,disableVirtualization:V.bool,editMode:V.oneOf(["cell","row"]),experimentalFeatures:V.shape({ariaV7:V.bool,columnGrouping:V.bool,warnIfFocusStateIsNotSynced:V.bool}),filterDebounceMs:V.number,filterMode:V.oneOf(["client","server"]),filterModel:V.shape({items:V.arrayOf(V.shape({field:V.string.isRequired,id:V.oneOfType([V.number,V.string]),operator:V.string.isRequired,value:V.any})).isRequired,logicOperator:V.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:V.bool,quickFilterLogicOperator:V.oneOf(["and","or"]),quickFilterValues:V.array}),forwardedProps:V.object,getCellClassName:V.func,getDetailPanelContent:V.func,getEstimatedRowHeight:V.func,getRowClassName:V.func,getRowHeight:V.func,getRowId:V.func,getRowSpacing:V.func,hideFooter:V.bool,hideFooterPagination:V.bool,hideFooterSelectedRowCount:V.bool,ignoreDiacritics:V.bool,initialState:V.object,isCellEditable:V.func,isRowSelectable:V.func,keepNonExistentRowsSelected:V.bool,loading:V.bool,localeText:V.object,logger:V.shape({debug:V.func.isRequired,error:V.func.isRequired,info:V.func.isRequired,warn:V.func.isRequired}),logLevel:V.oneOf(["debug","error","info","warn",!1]),nonce:V.string,onCellClick:V.func,onCellDoubleClick:V.func,onCellEditStart:V.func,onCellEditStop:V.func,onCellKeyDown:V.func,onCellModesModelChange:V.func,onClipboardCopy:V.func,onColumnHeaderClick:V.func,onColumnHeaderDoubleClick:V.func,onColumnHeaderEnter:V.func,onColumnHeaderLeave:V.func,onColumnHeaderOut:V.func,onColumnHeaderOver:V.func,onColumnOrderChange:V.func,onColumnVisibilityModelChange:V.func,onFilterModelChange:V.func,onMenuClose:V.func,onMenuOpen:V.func,onPaginationModelChange:V.func,onPreferencePanelClose:V.func,onPreferencePanelOpen:V.func,onProcessRowUpdateError:V.func,onResize:V.func,onRowClick:V.func,onRowCountChange:V.func,onRowDoubleClick:V.func,onRowEditStart:V.func,onRowEditStop:V.func,onRowModesModelChange:V.func,onRowSelectionModelChange:V.func,onSortModelChange:V.func,onStateChange:V.func,pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.shape({label:V.string.isRequired,value:V.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
239
+ `)):null,paginationMode:V.oneOf(["client","server"]),paginationModel:V.shape({page:V.number.isRequired,pageSize:V.number.isRequired}),processRowUpdate:V.func,rowBuffer:V.number,rowCount:V.number,rowHeight:V.number,rowModesModel:V.object,rowPositionsDebounceMs:V.number,rows:V.arrayOf(V.object).isRequired,rowSelection:V.bool,rowSelectionModel:V.oneOfType([V.arrayOf(V.oneOfType([V.number,V.string]).isRequired),V.number,V.string]),rowSpacingType:V.oneOf(["border","margin"]),rowThreshold:V.number,scrollbarSize:V.number,showCellVerticalBorder:V.bool,showColumnVerticalBorder:V.bool,slotProps:V.object,slots:V.object,sortingMode:V.oneOf(["client","server"]),sortingOrder:V.arrayOf(V.oneOf(["asc","desc"])),sortModel:V.arrayOf(V.shape({field:V.string.isRequired,sort:V.oneOf(["asc","desc"])})),sx:V.oneOfType([V.arrayOf(V.oneOfType([V.func,V.object,V.bool])),V.func,V.object]),unstable_ignoreValueFormatterDuringExport:V.oneOfType([V.shape({clipboardExport:V.bool,csvExport:V.bool}),V.bool])};var kv={},Ff={};const qG=Mo(SO);var kC;function Pr(){return kC||(kC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qG}(Ff)),Ff}var YG=zn;Object.defineProperty(kv,"__esModule",{value:!0});var nk=kv.default=void 0,QG=YG(Pr()),XG=v;nk=kv.default=(0,QG.default)((0,XG.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z"}),"OpenInBrowser");var Ev={},ZG=zn;Object.defineProperty(Ev,"__esModule",{value:!0});var Iv=Ev.default=void 0,JG=ZG(Pr()),e9=v;Iv=Ev.default=(0,JG.default)((0,e9.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");var Mv={},t9=zn;Object.defineProperty(Mv,"__esModule",{value:!0});var $v=Mv.default=void 0,n9=t9(Pr()),r9=v;$v=Mv.default=(0,n9.default)((0,r9.jsx)("path",{d:"M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5z"}),"CableOutlined");var Rv={},o9=zn;Object.defineProperty(Rv,"__esModule",{value:!0});var rk=Rv.default=void 0,l9=o9(Pr()),s9=v;rk=Rv.default=(0,l9.default)((0,s9.jsx)("path",{d:"M19 19V4h-4V3H5v16H3v2h12V6h2v15h4v-2zm-6 0H7V5h6zm-3-8h2v2h-2z"}),"MeetingRoomOutlined");var Tv={},i9=zn;Object.defineProperty(Tv,"__esModule",{value:!0});var ok=Tv.default=void 0,a9=i9(Pr()),c9=v;ok=Tv.default=(0,a9.default)((0,c9.jsx)("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"}),"MemoryOutlined");var Ov={},u9=zn;Object.defineProperty(Ov,"__esModule",{value:!0});var lk=Ov.default=void 0,d9=u9(Pr()),p9=v;lk=Ov.default=(0,d9.default)((0,p9.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageOutlined");const sk={elapsedTime:e=>e.value&&e.value.getTime?EC(Date.now()-e.value.getTime()):typeof e.value=="number"&&e.value>=0?EC(e.value):""};function EC(e){if(e<0)return"";let t=Math.floor(e/1e3);const n=Math.floor(t/31536e3);if(n)return n+"y";const r=Math.floor((t%=31536e3)/86400);if(r)return r+"d";const o=Math.floor((t%=86400)/3600);if(o)return o+"h";const l=Math.floor((t%=3600)/60);if(l)return l+"min";const s=t%60;return s?s+"s":"less than a second"}const f9=5e3,IC="No active rooms.",m9={clients:Qa,maxClients:Qa,elapsedTime:vv};function Kc({icon:e,label:t,value:n,tooltip:r}){const o=v.jsxs(Sr,{variant:"outlined",sx:{px:2.5,py:1.5,textAlign:"center"},children:[v.jsxs(Zt,{variant:"caption",color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:.5,fontSize:"0.7rem"},children:[e&&v.jsx(Kn,{component:"span",sx:{verticalAlign:"middle",mr:.5},children:e}),t]}),v.jsx(Zt,{variant:"h6",fontWeight:600,sx:{mt:.25},children:n})]});return r?v.jsx(Cp,{title:r,arrow:!0,enterTouchDelay:0,children:o}):o}class h9 extends d.Component{constructor(){super(...arguments),this.state={selected:[1],rooms:[],connections:0,cpu:0,memory:{totalMemMb:0,usedMemMb:0,rssMb:0,processId:""},columns:[],loaded:!1},this.isSelected=t=>this.state.selected.indexOf(t)!==-1,this.handleRowSelection=t=>{this.setState({selected:t})}}componentWillMount(){this.fetchRoomList()}componentWillUnmount(){clearInterval(this.updateRoomListInterval)}async fetchRoomList(){try{this.setState({...await z5(),loaded:!0})}catch(t){console.error(t)}clearInterval(this.updateRoomListInterval),this.updateRoomListInterval=window.setInterval(()=>{this.fetchRoomList()},f9)}inspectRoom(t){this.props.history.push("/room/"+t)}async disposeRoom(t){await WS(t,"disconnect"),this.fetchRoomList()}getColumnHeader(t){return typeof t=="string"?t:t.metadata}getRoomColumn(t,n){let r=n,o,l=t,s;return r==="elapsedTime"&&l[r]>=0?s=i=>new Date(Date.now()-i):n.metadata&&t.metadata&&(r=n.metadata,l=t.metadata),o=l[r],o===void 0&&(o=""),s?s(o):`${o}`}formatMemory(t){return t>=1024?`${(t/1024).toFixed(2)} GB`:`${t} MB`}renderMemoryTooltip(){return v.jsxs(Kn,{children:[v.jsx(Zt,{variant:"caption",sx:{display:"block"},children:"Resident memory (RSS) of the Colyseus process serving this panel. Other processes are not included."}),v.jsxs(Zt,{variant:"caption",sx:{display:"block",mt:.5},children:["Process ",v.jsx(Kn,{component:"span",sx:{fontFamily:"monospace"},children:this.state.memory.processId})]})]})}getColumnsNames(t){const n=t.map(r=>{const o=this.getColumnHeader(r);return{id:o,field:o,headerName:o,flex:1,valueFormatter:sk[o],sortComparator:m9[o]||MP}});return n.push({field:"Inspect",headerName:"",width:120,sortable:!1,renderCell:r=>r.value!==IC?v.jsx(yl,{size:"small",variant:"outlined",startIcon:v.jsx(nk,{}),onClick:()=>this.inspectRoom(r.value),children:"Inspect"}):null}),n.push({field:"Dispose",headerName:"",width:120,sortable:!1,renderCell:r=>r.value!==IC?v.jsx(Cp,{title:"Dispose room",children:v.jsx(jr,{size:"small",color:"error",onClick:()=>this.disposeRoom(r.value),children:v.jsx(Iv,{fontSize:"small"})})}):null}),n}getRowsData(t){return t.map(n=>{const r={id:n.roomId};for(const o of this.state.columns){const l=this.getRoomColumn(n,o);r[this.getColumnHeader(o)]=l}return r.Inspect=n.roomId,r.Dispose=n.roomId,r})}render(){const t=this.getColumnsNames(this.state.columns),n=this.getRowsData(this.state.rooms);return v.jsx(TS,{maxWidth:"lg",sx:{py:3},children:v.jsxs(Ms,{spacing:2,children:[v.jsxs(Kn,{sx:{display:"grid",gap:1.5,gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(4, 1fr)"}},children:[v.jsx(Kc,{icon:v.jsx($v,{sx:{fontSize:20,color:"text.secondary"}}),label:"Connections",value:this.state.connections}),v.jsx(Kc,{icon:v.jsx(rk,{sx:{fontSize:20,color:"text.secondary"}}),label:"Rooms",value:this.state.rooms.length}),v.jsx(Kc,{icon:v.jsx(ok,{sx:{fontSize:20,color:"text.secondary"}}),label:"CPU",value:`${this.state.cpu.toFixed(1)}%`}),v.jsx(Kc,{icon:v.jsx(lk,{sx:{fontSize:20,color:"text.secondary"}}),label:"Memory",value:this.formatMemory(Math.round(this.state.memory.rssMb)),tooltip:this.renderMemoryTooltip()})]}),this.state.loaded?n.length===0?v.jsx(Kn,{sx:{display:"flex",justifyContent:"center",py:4},children:v.jsx(Zt,{color:"text.secondary",children:"No active rooms."})}):v.jsx(Sr,{variant:"outlined",sx:{overflow:"hidden"},children:v.jsx(tk,{columns:t,rows:n,autoHeight:!0,sx:{border:0,"& .MuiDataGrid-columnHeaders":{bgcolor:"action.hover"},"& .MuiDataGrid-cell":{display:"flex",alignItems:"center"}},slots:{noRowsOverlay:()=>v.jsx(v.Fragment,{})},disableRowSelectionOnClick:!0})}):v.jsxs(Kn,{sx:{display:"flex",alignItems:"center",justifyContent:"center",py:4,gap:1},children:[v.jsx($S,{size:24}),v.jsx(Zt,{color:"text.secondary",children:"Loading..."})]})]})})}}const Pl=(e,t,n,r,o)=>{if(!r)throw new Error(o??`Invalid property path: ${t}
240
+ Couldn't access "${n}" in ${JSON.stringify(e)}`)},MC=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),vu=e=>Array.isArray(e),ik=(e,t)=>e.filter((n,r)=>r!==t),g9=(e,t,n,r={})=>{const{remove:o=!1,createNew:l=!0,noError:s=!1}=r,i=e,a=typeof(c=t)=="string"?c:typeof c=="number"?String(c):c.reduce((f,g)=>typeof g=="number"?`${f}[${g}]`:f===""?g:`${f}.${g}`,"");var c;const u=Object.assign(Object.assign({},r),{remove:o,createNew:l,noError:s,fullData:i,fullPath:a}),p=Array.isArray(t)?t:(f=>Array.isArray(f)?f:f.split(/(\.|\[\d+\])/).filter(g=>g!=="."&&g!=="").map(g=>{const h=/\[(\d+)\]/.exec(g);return h?Number(h[1]):g}).flat())(t).filter(f=>f!=="");return vu(e)&&o&&p.length===1?ik(e,p[0]):Ji(e,p,n,u)},Ji=(e,t,n,r)=>{const o=MC(e)?Object.assign({},e):null,l=vu(e)?[...e]:null;if(t.length===0)return e;if(!o&&!l)throw new Error("Can't assign property -- invalid input object");const{createNew:s,remove:i,noError:a,fullData:c,fullPath:u}=r,p=t[0];if(l&&typeof p=="string")return l.map(b=>Ji(b,t,n,r));if(t.length===1){if(o&&typeof p=="string"){const b=v9(o,p,n,r);return b??o}return l&&typeof p=="number"?(y9(l,p,n,r),l):(Pl(c,u,p,a),e)}const f=o||l||[];if(i&&t.length===2&&typeof t[1]=="number"){const b=f[p],w=t[1];return vu(b)?f[p]=ik(b,w):Pl(c,u,p,a,"Trying to remove an indexed item from an object that is not an array"),f}const g=t.slice(1);if(p in e){if(h=f[p],!vu(h)&&!MC(h)){if(!s)return Pl(c,u,p,a),f;f[p]={}}return f[p]=Ji(f[p],g,n,r),f}var h;if(s){const b=typeof g[0]=="number"?[]:{};if(o)return f[p]=b,f[p]=Ji(f[p],g,n,r),f;if(l&&Array.isArray(f)){f.push(b);const w=f.length-1;return f[w]=Ji(f[w],g,n,r),f}}return Pl(c,u,p,a),f},v9=(e,t,n,r)=>{const{remove:o,createNew:l,noError:s,insertAfter:i,insertBefore:a,fullData:c,fullPath:u}=r;if(a!==void 0||i!==void 0){const f=Object.entries(e);let g=1/0;return g=typeof a=="number"?a:typeof i=="number"?i:f.findIndex(([h,b])=>h===(a??i)),i&&g++,f.splice(g,0,[t,n]),Object.fromEntries(f)}const p=t in e;o?p?delete e[t]:Pl(c,u,t,s):l||p?e[t]=n:Pl(c,u,t,s)},y9=(e,t,n,r)=>{const{noError:o,fullData:l,fullPath:s,createNew:i,insert:a}=r;a&&e.splice(t,0,n),t in e?e[t]=n:i?e.push(n):Pl(l,s,t,o)},oi=(e,t,n)=>{const r=Array.isArray(t)?t:b9(t);if(r.length===0)return e;const o=r[0];if(Array.isArray(e)&&typeof o!="number"&&e.length>0)return e.map(s=>oi(s,r));if(typeof e!="object"||e===null||!(o in e))return C9(e,o);const l=e[o];return r.length===1?l:oi(l,r.slice(1))},b9=e=>e.split(/(\.|\[\d+\])/).filter(t=>t!=="."&&t!=="").map(t=>{const n=/\[(\d+)\]/.exec(t);return n?Number(n[1]):t}).flat(),C9=(e,t,n)=>{throw new Error(`Unable to extract object property
241
241
  Looking for property: ${t}
242
- In object: ${JSON.stringify(e)}`)};function ak(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ms(e,t,n,r){return new(n||(n=Promise))(function(o,l){function s(c){try{a(r.next(c))}catch(u){l(u)}}function i(c){try{a(r.throw(c))}catch(u){l(u)}}function a(c){var u;c.done?o(c.value):(u=c.value,u instanceof n?u:new n(function(p){p(u)})).then(s,i)}a((r=r.apply(e,[])).next())})}const ck=({className:e,name:t,value:n,setValue:r,handleKeyPress:o,styles:l,textAreaRef:s})=>{if(typeof n!="string")return null;const i=n.slice(-1)===`
243
- `?n+".":n;return v.jsxs("div",{style:{display:"grid"},children:[v.jsx("textarea",{id:`${t}_textarea`,ref:s,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},l),rows:1,className:e,name:`${t}_textarea`,value:n,onChange:a=>r(a.target.value),autoFocus:!0,onFocus:a=>{n.length<40&&a.target.select()},onKeyDown:o}),v.jsx("span",{className:e,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},l),children:i})]})},li=e=>e!==null&&typeof e=="object",uk=(e,t,n,r="")=>{if(!n&&!r)return!0;switch(e){case"collection":if(n){if(n(t,r))return!0;if(!oh(r,t,n))return!1}if(!n&&r&&!oh(r,t))return!1;break;case"value":if(n&&!n(t,r)||!n&&r&&!si(t,r))return!1}return!0},oh=(e="",t,n=si)=>{const r=t.value;return Object.entries(r).some(([o,l])=>{const s=[...t.path,o],i=Object.assign(Object.assign({},t),{key:o,path:s,level:t.level+1,value:l,size:s.length,parentData:r});return li(l)?oh(e,i,n):n(i,e)})},si=(e,t="")=>{const{value:n}=e;if(n===null&&"null".includes(t.toLowerCase()))return!0;switch(typeof n){case"string":return n.toLowerCase().includes(t.toLowerCase());case"number":return!!String(n).includes(t);case"boolean":return n?"true".includes(t.toLowerCase())||t==="1":"false".includes(t.toLowerCase())||t==="0";default:return!1}},$C=({key:e,path:t},n="")=>!!si({value:e},n)||!!t.some(r=>si({value:r},n)),Jl=(e,t)=>(t??"")+e.map(n=>n===""?"\0":n).join("."),Fv=e=>e.shiftKey?"Shift":e.metaKey?"Meta":e.ctrlKey?"Control":e.altKey?"Alt":void 0,x9=(e,t,n)=>{const r=e.key,o=Fv(e);if(Array.isArray(t))return!!o&&t.includes(o);const{key:l,modifier:s}=t;return(n!=="stringLineBreak"||r!=="Enter"||o!=="Shift"||l!=="Enter"||!(s!=null&&s.includes("Shift")))&&r===l&&(s===o||Array.isArray(s)&&s.includes(o))},ml={key:"Enter"},RC={confirm:ml,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},ml),{modifier:["Meta","Shift","Control"]}),objectLineBreak:ml,stringConfirm:ml,stringLineBreak:Object.assign(Object.assign({},ml),{modifier:["Shift"]}),numberConfirm:ml,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:ml,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},El=(e,t,n="next",r)=>{const o=t.slice(0,t.length-1),l=t.slice(-1)[0];if(l===void 0)return null;const s=oi(e,o),i=w9(s);Array.isArray(s)||r(i,({key:u,value:p})=>[u,p]);const a=i.findIndex(u=>u.key===l),c=i[a+(n==="next"?1:-1)];return c?li(c.value)?Object.keys(c.value).length===0?El(e,[...o,c.key],n,r):dk(e,[...o,c.key],n,r):[...o,c.key]:o.length===0?null:El(e,o,n,r)},dk=(e,t,n="next",r)=>{const o=oi(e,t);if(!li(o))return t;const l=Array.isArray(o)?o.map((i,a)=>a):Object.keys(o);r(l,i=>[i,o]);const s=n==="next"?l[0]:l[l.length-1];return dk(e,[...t,s],n,r)},w9=e=>Array.isArray(e)?e.map((t,n)=>({index:n,value:t,key:n})):Object.entries(e).map(([t,n],r)=>({key:t,value:n,index:r})),pk=(e,t)=>{var n,r,o,l;const s=e.current,i=(n=s==null?void 0:s.selectionStart)!==null&&n!==void 0?n:1/0,a=(r=s==null?void 0:s.selectionEnd)!==null&&r!==void 0?r:1/0,c=((o=s==null?void 0:s.textContent)===null||o===void 0?void 0:o.slice(0,i))+t+((l=s==null?void 0:s.textContent)===null||l===void 0?void 0:l.slice(a));return s.value=c,s==null||s.setSelectionRange(i+1,i+1),c},lh=e=>{if(e!==fk){if(Array.isArray(e))return e.map(t=>lh(t));if(e&&typeof e=="object")for(const t in e)e[t]=lh(e[t]);return e}},fk="__​undefined__",Dv={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},mk=d.createContext({getStyles:()=>({}),icons:{}}),S9=({theme:e=Dv,icons:t={},docRoot:n,children:r})=>{const o=P9(e,n);return v.jsx(mk.Provider,{value:{getStyles:(l,s)=>typeof o[l]=="function"?o[l](s):o[l],icons:t},children:r})},co=()=>d.useContext(mk),P9=(e,t)=>{var n,r,o,l;const s={},i=(Array.isArray(e)?e:[e]).map(u=>k9(u)?Ff({fragments:{},styles:u},s):Ff(u,s)),a=Ff(Dv,{});Object.keys(a).forEach(u=>{const p=u;i.forEach(f=>{f[p]&&(a[p]=Object.assign(Object.assign({},a[p]),f[p]))})});const c=Object.assign({},a);return Object.entries(s).forEach(([u,p])=>{const f=u;c[f]=g=>{const h=p(g)||{};return Object.assign(Object.assign({},a[f]),h)}}),typeof(c==null?void 0:c.inputHighlight)!="function"&&(!((n=c==null?void 0:c.inputHighlight)===null||n===void 0)&&n.backgroundColor)&&t.style.setProperty("--jer-highlight-color",(r=c==null?void 0:c.inputHighlight)===null||r===void 0?void 0:r.backgroundColor),typeof(c==null?void 0:c.iconCopy)!="function"&&(!((o=c==null?void 0:c.iconCopy)===null||o===void 0)&&o.color)&&t.style.setProperty("--jer-icon-copy-color",(l=c==null?void 0:c.iconCopy)===null||l===void 0?void 0:l.color),c},Ff=(e,t)=>{const{fragments:n,styles:r}=e,o={};return Object.entries(r).forEach(([l,s])=>{const i=(Array.isArray(s)?s:[s]).reduce((a,c)=>{var u,p;if(typeof c=="function")return t[l]=c,Object.assign({},a);if(typeof c=="string"){const f=(u=n==null?void 0:n[c])!==null&&u!==void 0?u:c;return typeof f=="string"?Object.assign(Object.assign({},a),{[(p=E9[l])!==null&&p!==void 0?p:"color"]:f}):Object.assign(Object.assign({},a),f)}return Object.assign(Object.assign({},a),c)},{});o[l]=i}),o},k9=e=>!("styles"in e),E9={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},hk=d.createContext(null),I9=({children:e,onEditEvent:t,onCollapse:n})=>{const[r,o]=d.useState(null),[l,s]=d.useState(null),[i,a]=d.useState(null),[c,u]=d.useState({path:null,pathString:null}),p=d.useRef(null),f=d.useRef("next"),g=d.useRef(null);return v.jsx(hk.Provider,{value:{collapseState:r,setCollapseState:h=>{o(h),n&&h!==null&&(Array.isArray(h)?h.forEach(b=>n(b)):n(h)),h!==null&&setTimeout(()=>o(null),2e3)},getMatchingCollapseState:h=>{if(Array.isArray(r)){for(const b of r)if(TC(h,b))return b;return null}return TC(h,r)?r:null},currentlyEditingElement:l,setCurrentlyEditingElement:(h,b)=>{const w=typeof h=="string"||h===null?h:Jl(h,b==="key"?"key_":void 0);l!==null&&w!==null&&p.current!==null&&p.current(),s(w),t&&(Array.isArray(h)||h===null)&&t(h,b==="key"),p.current=typeof b=="function"?b:null},areChildrenBeingEdited:h=>l!==null&&l.includes(h),previouslyEditedElement:g.current,setPreviouslyEditedElement:h=>{g.current=h},tabDirection:f.current,setTabDirection:h=>{f.current=h},previousValue:i,setPreviousValue:a,dragSource:c,setDragSource:u},children:e})},Wl=()=>{const e=d.useContext(hk);if(!e)throw new Error("Missing Context Provider");return e},TC=(e,t)=>{if(t===null)return!1;if(!t.includeChildren)return t.path.every((n,r)=>e[r]===n)&&t.path.length===e.length;for(const[n,r]of t.path.entries())if(r!==e[n])return!1;return!0},sh="**INVALID_FUNCTION**",M9=({nodeData:e,showStringQuotes:t=!0,stringTruncate:n=200,pathString:r,canEdit:o,setIsEditing:l,styles:s,translate:i,value:a,TextWrapper:c=({children:u})=>u})=>{const u=a??e.value,[p,f]=d.useState(!1),g=t?'"':"",h=u.length>n,b=()=>{o?l(!0):f(!p)};return v.jsxs("div",{id:`${r}_display`,onDoubleClick:b,onClick:w=>{(w.getModifierState("Control")||w.getModifierState("Meta"))&&b()},className:"jer-value-string",style:s,children:[g,h?v.jsxs(v.Fragment,p?{children:[v.jsx(c,{children:v.jsxs("span",{children:[u,g]})}),v.jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>f(!1),children:[" ",i("SHOW_LESS",e)]})]}:{children:[v.jsxs(c,{children:[v.jsx("span",{children:u.slice(0,n-2).trimEnd()})," "]}),v.jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>f(!0),children:"..."}),g]}):v.jsx(c,{children:`${u}${g}`})]})},$9=({styles:e,pathString:t,value:n,setValue:r,handleEdit:o,handleKeyboard:l,keyboardCommon:s})=>{const i=d.useRef(null);return v.jsx(ck,{className:"jer-input-text",textAreaRef:i,name:t,value:n,setValue:r,handleKeyPress:a=>{l(a,Object.assign({stringConfirm:o,stringLineBreak:()=>{const c=pk(i,`
244
- `);r(c)}},s))},styles:e})},R9=e=>{var{isEditing:t,path:n,enumType:r}=e,o=ak(e,["isEditing","path","enumType"]);const{getStyles:l}=co(),s=Jl(n),{value:i,setValue:a,nodeData:c,handleEdit:u,handleKeyboard:p,keyboardCommon:f}=o;return t&&r?v.jsxs("div",{className:"jer-select jer-select-enums",children:[v.jsx("select",{name:`${s}-value-select`,className:"jer-select-inner",onChange:g=>a(g.target.value),value:i,autoFocus:!0,onKeyDown:g=>{p(g,Object.assign({stringConfirm:u},f))},children:r.values.map(g=>v.jsx("option",{value:g,children:g},g))}),v.jsx("span",{className:"focus"})]}):t?v.jsx($9,Object.assign({styles:l("input",c),pathString:s},o,{setValue:o.setValue})):v.jsx(M9,Object.assign({pathString:s,styles:l("string",c)},o))},T9=({value:e,setValue:t,isEditing:n,path:r,setIsEditing:o,handleEdit:l,nodeData:s,handleKeyboard:i,keyboardCommon:a})=>{const{getStyles:c}=co();return n?v.jsx("input",{className:"jer-input-number",type:"text",name:Jl(r),value:e,onChange:u=>t(u.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:u=>setTimeout(()=>u.target.select(),10),onKeyDown:u=>i(u,Object.assign({numberConfirm:l,numberUp:()=>t(Number(e)+1),numberDown:()=>t(Number(e)-1)},a)),style:Object.assign({width:String(e).length/1.5+2+"em"},c("input",s))}):v.jsx("span",{onDoubleClick:()=>o(!0),className:"jer-value-number",style:c("number",s),children:e})},O9=({value:e,setValue:t,isEditing:n,path:r,setIsEditing:o,handleEdit:l,nodeData:s,handleKeyboard:i,keyboardCommon:a})=>{const{getStyles:c}=co();return typeof e!="boolean"?null:n?v.jsx("input",{className:"jer-input-boolean",type:"checkbox",name:Jl(r),checked:e,onChange:()=>t(!e),onKeyDown:u=>{u.key===" "&&u.preventDefault(),i(u,Object.assign({booleanConfirm:l,booleanToggle:()=>t(!e)},a))},autoFocus:!0}):v.jsx("span",{onDoubleClick:()=>o(!0),className:"jer-value-boolean",style:c("boolean",s),children:String(e)})},F9=(e,t)=>{const n=d.useRef(void 0),r=d.useRef(t);d.useEffect(()=>{r.current=t},[t]);const o=l=>{r.current(l)};d.useEffect(()=>{if(window.clearTimeout(n.current),e)return n.current=window.setTimeout(()=>{window.addEventListener("keydown",o)},100),()=>{window.clearTimeout(n.current),window.removeEventListener("keydown",o)}},[e])},D9=({value:e,isEditing:t,setIsEditing:n,handleEdit:r,nodeData:o,handleKeyboard:l,keyboardCommon:s})=>{const{getStyles:i}=co();return F9(t,a=>l(a,Object.assign({confirm:r},s))),v.jsx("div",{onDoubleClick:()=>n(!0),className:"jer-value-null",style:i("null",o),children:String(e)})},j9=({value:e})=>{let t="Error!";switch(typeof e){case"string":e===sh&&(t="Function");break;case"undefined":t="Undefined";break;case"symbol":t="Symbol"}return v.jsx("span",{className:"jer-value-invalid",children:t})},_9=({size:e,style:t,className:n})=>v.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),v.jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),L9=({size:e,style:t,className:n})=>v.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,transform:"translate(0, 0.5)",children:[v.jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),v.jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),N9=({size:e,style:t,className:n})=>v.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),A9=({size:e,style:t,className:n})=>v.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),v.jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),v.jsx("path",{d:"M15 10l-4 4 4 4"})]}),z9=({size:e,style:t,className:n})=>v.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),v.jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),H9=({size:e,style:t,className:n})=>v.jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),B9=({size:e,style:t,className:n})=>v.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Il=({name:e,nodeData:t})=>{var n,r,o,l,s,i,a;const{getStyles:c,icons:u}=co(),p={size:"1.4em",className:"jer-icon"};switch(e){case"add":return(n=u==null?void 0:u.add)!==null&&n!==void 0?n:v.jsx(_9,Object.assign({},p,{style:c("iconAdd",t)}));case"edit":return(r=u==null?void 0:u.edit)!==null&&r!==void 0?r:v.jsx(L9,Object.assign({},p,{style:c("iconEdit",t)}));case"delete":return(o=u==null?void 0:u.delete)!==null&&o!==void 0?o:v.jsx(N9,Object.assign({},p,{style:c("iconDelete",t),size:"1.45em"}));case"copy":return(l=u==null?void 0:u.copy)!==null&&l!==void 0?l:v.jsx(A9,Object.assign({},p,{style:c("iconCopy",t),size:"1.2em"}));case"ok":return(s=u==null?void 0:u.ok)!==null&&s!==void 0?s:v.jsx(z9,Object.assign({},p,{style:Object.assign({fontSize:"90%"},c("iconOk",t))}));case"cancel":return(i=u==null?void 0:u.cancel)!==null&&i!==void 0?i:v.jsx(H9,Object.assign({},p,{style:Object.assign({fontSize:"130%"},c("iconCancel",t))}));case"chevron":return(a=u==null?void 0:u.chevron)!==null&&a!==void 0?a:v.jsx(B9,{size:"1em",style:c("iconCollection",t)});default:return v.jsx(v.Fragment,{})}},gk=({startEdit:e,handleDelete:t,handleAdd:n,enableClipboard:r,type:o,customButtons:l,nodeData:s,translate:i,keyboardControls:a,handleKeyboard:c,editConfirmRef:u,getNewKeyOptions:p,jsonStringify:f,onEditEvent:g,showIconTooltips:h})=>{const{getStyles:b}=co(),w=i("KEY_NEW",s),[C,y]=d.useState(w),[x,S]=d.useState(!1),{key:T,path:P,value:k}=s,E=Array.isArray(x),_=R=>{var F;if(g&&g(R?[...P,null]:null,R),!R)return void S(!1);const L=Object.keys(oi(s.fullData,P)),O=p?(F=p(s))===null||F===void 0?void 0:F.filter(I=>!L.includes(I)):null;O&&y(""),S(O==null||O)};return v.jsxs("div",{className:"jer-edit-buttons",style:{opacity:x?1:void 0},onClick:R=>R.stopPropagation(),children:[r&&v.jsx("div",{onClick:R=>{var F;R.stopPropagation();let L,O,I="value",$="",j=null;if(r){const N=Fv(R);if(N&&a.clipboardModifier.includes(N)?(L=V9(P),$=L,I="path"):(L=k,$=typeof L=="object"?f(k):String(L)),!navigator.clipboard)return void(typeof r=="function"&&r({success:!1,value:L,stringValue:$,path:P,key:T,type:I,errorMessage:"Can't access clipboard API"}));(F=navigator.clipboard)===null||F===void 0||F.writeText($).then(()=>O=!0).catch(M=>{O=!1,j=M.message}).finally(()=>{typeof r=="function"&&r({success:O,errorMessage:j,value:L,stringValue:$,path:P,key:T,type:I})})}},className:"jer-copy-pulse",title:h?i("TOOLTIP_COPY",s):"",children:v.jsx(Il,{name:"copy",nodeData:s})}),e&&v.jsx("div",{onClick:e,title:h?i("TOOLTIP_EDIT",s):"",children:v.jsx(Il,{name:"edit",nodeData:s})}),t&&v.jsx("div",{onClick:t,title:h?i("TOOLTIP_DELETE",s):"",children:v.jsx(Il,{name:"delete",nodeData:s})}),n&&v.jsx("div",{onClick:()=>{o==="object"?_(!0):n("")},title:h?i("TOOLTIP_ADD",s):"",children:v.jsx(Il,{name:"add",nodeData:s})}),l==null?void 0:l.map(({Element:R,onClick:F},L)=>v.jsx("div",{onClick:O=>F&&F(s,O),children:v.jsx(R,{nodeData:s})},L)),x&&n&&o==="object"&&v.jsxs(v.Fragment,{children:[E?v.jsxs("div",{className:"jer-select jer-select-keys",children:[v.jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:R=>{n(R.target.value),_(!1)},defaultValue:"",autoFocus:!0,onKeyDown:R=>{c(R,{cancel:()=>_(!1)})},children:[v.jsx("option",{value:"",disabled:!0,children:x.length>0?i("KEY_SELECT",s):i("NO_KEY_OPTIONS",s)}),x.map(R=>v.jsx("option",{value:R,children:R},R))]}),v.jsx("span",{className:"focus"})]}):v.jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:C,onChange:R=>y(R.target.value),autoFocus:!0,onFocus:R=>R.target.select(),onKeyDown:R=>{c(R,{stringConfirm:()=>{n&&(_(!1),n(C),y(w))},cancel:()=>{_(!1),y(w)}})},style:b("input",s)}),v.jsx(jv,{onOk:()=>{E&&!C||(_(!1),n(C))},onCancel:()=>{_(!1)},nodeData:s,editConfirmRef:u,hideOk:E})]})]})},jv=({onOk:e,onCancel:t,nodeData:n,editConfirmRef:r,hideOk:o=!1})=>v.jsxs("div",{className:"jer-confirm-buttons",children:[!o&&v.jsx("div",{onClick:e,ref:r,children:v.jsx(Il,{name:"ok",nodeData:n})}),v.jsx("div",{onClick:t,children:v.jsx(Il,{name:"cancel",nodeData:n})})]}),V9=e=>e.reduce((t,n)=>typeof n=="number"?`${t}[${n}]`:t===""?n:`${t}.${n}`,""),G9=["string","number","boolean","null","object","array"],vk=({props:e,collapsed:t})=>{const{data:n,nodeData:r,parentData:o,onEdit:l,onError:s,showErrorMessages:i,restrictEditFilter:a,restrictDeleteFilter:c,restrictAddFilter:u,restrictDragFilter:p,translate:f,errorMessageTimeout:g}=e,{currentlyEditingElement:h,setCurrentlyEditingElement:b}=Wl(),[w,C]=d.useState(null),y=Object.assign(Object.assign({},r),{collapsed:t}),{path:x,key:S,size:T}=y,P=Jl(x),k=!a(y),E=!c(y),_=!u(y),R=!p(y)&&E&&h===null,F=M=>{i&&(C(M),setTimeout(()=>C(null),g)),console.warn("Error",M)},L=d.useCallback((M,D)=>{F(M.message),s&&s({currentData:y.fullData,errorValue:D,currentValue:n,name:S,path:x,error:M})},[s,i]),O=h===P,I=h===`key_${P}`,$=typeof x.slice(-1)[0]=="number",j={isEditing:O,isEditingKey:I,isArray:$,canEditKey:o!==null&&k&&_&&E&&!$},N=S===""&&x.length>0?f("EMPTY_STRING",y):null;return{pathString:P,nodeData:y,path:x,name:S,size:T,canEdit:k,canDelete:E,canAdd:_,canDrag:R,error:w,showError:F,onError:L,setError:C,handleEditKey:M=>{if(b(null),S===M||!o)return;const D=x.slice(0,-1);if(Object.keys(o).includes(M))return void L({code:"KEY_EXISTS",message:f("ERROR_KEY_EXISTS",y)},M);const A=Object.fromEntries(Object.entries(o).map(([H,z])=>H===S?[M,z]:[H,z]));l(A,D).then(H=>{H&&L({code:"UPDATE_ERROR",message:H},M)})},derivedValues:j,emptyStringKey:N}},yk=({canDrag:e,canDragOnto:t,path:n,nodeData:r,onMove:o,onError:l,translate:s})=>{const{getStyles:i}=co(),{dragSource:a,setDragSource:c}=Wl(),[u,p]=d.useState(!1),f=Jl(n),g=d.useMemo(()=>e?{onDragStart:C=>{C.stopPropagation(),c({path:n,pathString:f})},onDragEnd:C=>{C.stopPropagation(),c({path:null,pathString:null})}}:{},[e,f]),h=d.useMemo(()=>C=>t?{onDragOver:y=>{y.stopPropagation(),y.preventDefault()},onDrop:y=>{y.stopPropagation(),w(C),c({path:null,pathString:null}),p(!1)},onDragEnter:y=>{var x;y.stopPropagation(),f.startsWith((x=a.pathString)!==null&&x!==void 0?x:"")||p(C)},onDragExit:y=>{y.stopPropagation(),p(!1)}}:{},[a,t,f]),b=d.useMemo(()=>t&&a.pathString!==null?v.jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:n.length}},h("below"))):null,[a,t,n.length]),w=C=>{var y,x;const S=(y=a.path)===null||y===void 0?void 0:y.slice(-1)[0],T=(x=a.path)===null||x===void 0?void 0:x.slice(0,-1).join("."),P=n.slice(0,-1).join(""),{parentData:k}=r;typeof S=="string"&&k&&!Array.isArray(k)&&Object.keys(k).includes(S)&&S in k&&T!==P?l({code:"KEY_EXISTS",message:s("ERROR_KEY_EXISTS",r)},S):o(a.path,n,C).then(E=>{E&&l({code:"UPDATE_ERROR",message:E},r.value)})};return{dragSourceProps:g,getDropTargetProps:h,BottomDropTarget:b,DropTargetPadding:({position:C,nodeData:y})=>u===C?v.jsx("div",{className:"jer-drag-n-drop-padding",style:i("dropZone",y)}):null,handleDrop:w}},W9=(e,t,n,r)=>{var o,l,s;if(!t.current)return 0;const i=parseInt((o=getComputedStyle(n.current).getPropertyValue("line-height"))!==null&&o!==void 0?o:"16px"),a=((s=(l=t.current)===null||l===void 0?void 0:l.offsetWidth)!==null&&s!==void 0?s:0)/(.5*i),c=r(e).replace(/\\n/g,`
242
+ In object: ${JSON.stringify(e)}`)};function ak(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function fs(e,t,n,r){return new(n||(n=Promise))(function(o,l){function s(c){try{a(r.next(c))}catch(u){l(u)}}function i(c){try{a(r.throw(c))}catch(u){l(u)}}function a(c){var u;c.done?o(c.value):(u=c.value,u instanceof n?u:new n(function(p){p(u)})).then(s,i)}a((r=r.apply(e,[])).next())})}const ck=({className:e,name:t,value:n,setValue:r,handleKeyPress:o,styles:l,textAreaRef:s})=>{if(typeof n!="string")return null;const i=n.slice(-1)===`
243
+ `?n+".":n;return v.jsxs("div",{style:{display:"grid"},children:[v.jsx("textarea",{id:`${t}_textarea`,ref:s,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},l),rows:1,className:e,name:`${t}_textarea`,value:n,onChange:a=>r(a.target.value),autoFocus:!0,onFocus:a=>{n.length<40&&a.target.select()},onKeyDown:o}),v.jsx("span",{className:e,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},l),children:i})]})},li=e=>e!==null&&typeof e=="object",uk=(e,t,n,r="")=>{if(!n&&!r)return!0;switch(e){case"collection":if(n){if(n(t,r))return!0;if(!lh(r,t,n))return!1}if(!n&&r&&!lh(r,t))return!1;break;case"value":if(n&&!n(t,r)||!n&&r&&!si(t,r))return!1}return!0},lh=(e="",t,n=si)=>{const r=t.value;return Object.entries(r).some(([o,l])=>{const s=[...t.path,o],i=Object.assign(Object.assign({},t),{key:o,path:s,level:t.level+1,value:l,size:s.length,parentData:r});return li(l)?lh(e,i,n):n(i,e)})},si=(e,t="")=>{const{value:n}=e;if(n===null&&"null".includes(t.toLowerCase()))return!0;switch(typeof n){case"string":return n.toLowerCase().includes(t.toLowerCase());case"number":return!!String(n).includes(t);case"boolean":return n?"true".includes(t.toLowerCase())||t==="1":"false".includes(t.toLowerCase())||t==="0";default:return!1}},$C=({key:e,path:t},n="")=>!!si({value:e},n)||!!t.some(r=>si({value:r},n)),Zl=(e,t)=>(t??"")+e.map(n=>n===""?"\0":n).join("."),Fv=e=>e.shiftKey?"Shift":e.metaKey?"Meta":e.ctrlKey?"Control":e.altKey?"Alt":void 0,x9=(e,t,n)=>{const r=e.key,o=Fv(e);if(Array.isArray(t))return!!o&&t.includes(o);const{key:l,modifier:s}=t;return(n!=="stringLineBreak"||r!=="Enter"||o!=="Shift"||l!=="Enter"||!(s!=null&&s.includes("Shift")))&&r===l&&(s===o||Array.isArray(s)&&s.includes(o))},fl={key:"Enter"},RC={confirm:fl,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},fl),{modifier:["Meta","Shift","Control"]}),objectLineBreak:fl,stringConfirm:fl,stringLineBreak:Object.assign(Object.assign({},fl),{modifier:["Shift"]}),numberConfirm:fl,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:fl,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},kl=(e,t,n="next",r)=>{const o=t.slice(0,t.length-1),l=t.slice(-1)[0];if(l===void 0)return null;const s=oi(e,o),i=w9(s);Array.isArray(s)||r(i,({key:u,value:p})=>[u,p]);const a=i.findIndex(u=>u.key===l),c=i[a+(n==="next"?1:-1)];return c?li(c.value)?Object.keys(c.value).length===0?kl(e,[...o,c.key],n,r):dk(e,[...o,c.key],n,r):[...o,c.key]:o.length===0?null:kl(e,o,n,r)},dk=(e,t,n="next",r)=>{const o=oi(e,t);if(!li(o))return t;const l=Array.isArray(o)?o.map((i,a)=>a):Object.keys(o);r(l,i=>[i,o]);const s=n==="next"?l[0]:l[l.length-1];return dk(e,[...t,s],n,r)},w9=e=>Array.isArray(e)?e.map((t,n)=>({index:n,value:t,key:n})):Object.entries(e).map(([t,n],r)=>({key:t,value:n,index:r})),pk=(e,t)=>{var n,r,o,l;const s=e.current,i=(n=s==null?void 0:s.selectionStart)!==null&&n!==void 0?n:1/0,a=(r=s==null?void 0:s.selectionEnd)!==null&&r!==void 0?r:1/0,c=((o=s==null?void 0:s.textContent)===null||o===void 0?void 0:o.slice(0,i))+t+((l=s==null?void 0:s.textContent)===null||l===void 0?void 0:l.slice(a));return s.value=c,s==null||s.setSelectionRange(i+1,i+1),c},sh=e=>{if(e!==fk){if(Array.isArray(e))return e.map(t=>sh(t));if(e&&typeof e=="object")for(const t in e)e[t]=sh(e[t]);return e}},fk="__​undefined__",Dv={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},mk=d.createContext({getStyles:()=>({}),icons:{}}),S9=({theme:e=Dv,icons:t={},docRoot:n,children:r})=>{const o=P9(e,n);return v.jsx(mk.Provider,{value:{getStyles:(l,s)=>typeof o[l]=="function"?o[l](s):o[l],icons:t},children:r})},uo=()=>d.useContext(mk),P9=(e,t)=>{var n,r,o,l;const s={},i=(Array.isArray(e)?e:[e]).map(u=>k9(u)?Df({fragments:{},styles:u},s):Df(u,s)),a=Df(Dv,{});Object.keys(a).forEach(u=>{const p=u;i.forEach(f=>{f[p]&&(a[p]=Object.assign(Object.assign({},a[p]),f[p]))})});const c=Object.assign({},a);return Object.entries(s).forEach(([u,p])=>{const f=u;c[f]=g=>{const h=p(g)||{};return Object.assign(Object.assign({},a[f]),h)}}),typeof(c==null?void 0:c.inputHighlight)!="function"&&(!((n=c==null?void 0:c.inputHighlight)===null||n===void 0)&&n.backgroundColor)&&t.style.setProperty("--jer-highlight-color",(r=c==null?void 0:c.inputHighlight)===null||r===void 0?void 0:r.backgroundColor),typeof(c==null?void 0:c.iconCopy)!="function"&&(!((o=c==null?void 0:c.iconCopy)===null||o===void 0)&&o.color)&&t.style.setProperty("--jer-icon-copy-color",(l=c==null?void 0:c.iconCopy)===null||l===void 0?void 0:l.color),c},Df=(e,t)=>{const{fragments:n,styles:r}=e,o={};return Object.entries(r).forEach(([l,s])=>{const i=(Array.isArray(s)?s:[s]).reduce((a,c)=>{var u,p;if(typeof c=="function")return t[l]=c,Object.assign({},a);if(typeof c=="string"){const f=(u=n==null?void 0:n[c])!==null&&u!==void 0?u:c;return typeof f=="string"?Object.assign(Object.assign({},a),{[(p=E9[l])!==null&&p!==void 0?p:"color"]:f}):Object.assign(Object.assign({},a),f)}return Object.assign(Object.assign({},a),c)},{});o[l]=i}),o},k9=e=>!("styles"in e),E9={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},hk=d.createContext(null),I9=({children:e,onEditEvent:t,onCollapse:n})=>{const[r,o]=d.useState(null),[l,s]=d.useState(null),[i,a]=d.useState(null),[c,u]=d.useState({path:null,pathString:null}),p=d.useRef(null),f=d.useRef("next"),g=d.useRef(null);return v.jsx(hk.Provider,{value:{collapseState:r,setCollapseState:h=>{o(h),n&&h!==null&&(Array.isArray(h)?h.forEach(b=>n(b)):n(h)),h!==null&&setTimeout(()=>o(null),2e3)},getMatchingCollapseState:h=>{if(Array.isArray(r)){for(const b of r)if(TC(h,b))return b;return null}return TC(h,r)?r:null},currentlyEditingElement:l,setCurrentlyEditingElement:(h,b)=>{const w=typeof h=="string"||h===null?h:Zl(h,b==="key"?"key_":void 0);l!==null&&w!==null&&p.current!==null&&p.current(),s(w),t&&(Array.isArray(h)||h===null)&&t(h,b==="key"),p.current=typeof b=="function"?b:null},areChildrenBeingEdited:h=>l!==null&&l.includes(h),previouslyEditedElement:g.current,setPreviouslyEditedElement:h=>{g.current=h},tabDirection:f.current,setTabDirection:h=>{f.current=h},previousValue:i,setPreviousValue:a,dragSource:c,setDragSource:u},children:e})},Gl=()=>{const e=d.useContext(hk);if(!e)throw new Error("Missing Context Provider");return e},TC=(e,t)=>{if(t===null)return!1;if(!t.includeChildren)return t.path.every((n,r)=>e[r]===n)&&t.path.length===e.length;for(const[n,r]of t.path.entries())if(r!==e[n])return!1;return!0},ih="**INVALID_FUNCTION**",M9=({nodeData:e,showStringQuotes:t=!0,stringTruncate:n=200,pathString:r,canEdit:o,setIsEditing:l,styles:s,translate:i,value:a,TextWrapper:c=({children:u})=>u})=>{const u=a??e.value,[p,f]=d.useState(!1),g=t?'"':"",h=u.length>n,b=()=>{o?l(!0):f(!p)};return v.jsxs("div",{id:`${r}_display`,onDoubleClick:b,onClick:w=>{(w.getModifierState("Control")||w.getModifierState("Meta"))&&b()},className:"jer-value-string",style:s,children:[g,h?v.jsxs(v.Fragment,p?{children:[v.jsx(c,{children:v.jsxs("span",{children:[u,g]})}),v.jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>f(!1),children:[" ",i("SHOW_LESS",e)]})]}:{children:[v.jsxs(c,{children:[v.jsx("span",{children:u.slice(0,n-2).trimEnd()})," "]}),v.jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>f(!0),children:"..."}),g]}):v.jsx(c,{children:`${u}${g}`})]})},$9=({styles:e,pathString:t,value:n,setValue:r,handleEdit:o,handleKeyboard:l,keyboardCommon:s})=>{const i=d.useRef(null);return v.jsx(ck,{className:"jer-input-text",textAreaRef:i,name:t,value:n,setValue:r,handleKeyPress:a=>{l(a,Object.assign({stringConfirm:o,stringLineBreak:()=>{const c=pk(i,`
244
+ `);r(c)}},s))},styles:e})},R9=e=>{var{isEditing:t,path:n,enumType:r}=e,o=ak(e,["isEditing","path","enumType"]);const{getStyles:l}=uo(),s=Zl(n),{value:i,setValue:a,nodeData:c,handleEdit:u,handleKeyboard:p,keyboardCommon:f}=o;return t&&r?v.jsxs("div",{className:"jer-select jer-select-enums",children:[v.jsx("select",{name:`${s}-value-select`,className:"jer-select-inner",onChange:g=>a(g.target.value),value:i,autoFocus:!0,onKeyDown:g=>{p(g,Object.assign({stringConfirm:u},f))},children:r.values.map(g=>v.jsx("option",{value:g,children:g},g))}),v.jsx("span",{className:"focus"})]}):t?v.jsx($9,Object.assign({styles:l("input",c),pathString:s},o,{setValue:o.setValue})):v.jsx(M9,Object.assign({pathString:s,styles:l("string",c)},o))},T9=({value:e,setValue:t,isEditing:n,path:r,setIsEditing:o,handleEdit:l,nodeData:s,handleKeyboard:i,keyboardCommon:a})=>{const{getStyles:c}=uo();return n?v.jsx("input",{className:"jer-input-number",type:"text",name:Zl(r),value:e,onChange:u=>t(u.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:u=>setTimeout(()=>u.target.select(),10),onKeyDown:u=>i(u,Object.assign({numberConfirm:l,numberUp:()=>t(Number(e)+1),numberDown:()=>t(Number(e)-1)},a)),style:Object.assign({width:String(e).length/1.5+2+"em"},c("input",s))}):v.jsx("span",{onDoubleClick:()=>o(!0),className:"jer-value-number",style:c("number",s),children:e})},O9=({value:e,setValue:t,isEditing:n,path:r,setIsEditing:o,handleEdit:l,nodeData:s,handleKeyboard:i,keyboardCommon:a})=>{const{getStyles:c}=uo();return typeof e!="boolean"?null:n?v.jsx("input",{className:"jer-input-boolean",type:"checkbox",name:Zl(r),checked:e,onChange:()=>t(!e),onKeyDown:u=>{u.key===" "&&u.preventDefault(),i(u,Object.assign({booleanConfirm:l,booleanToggle:()=>t(!e)},a))},autoFocus:!0}):v.jsx("span",{onDoubleClick:()=>o(!0),className:"jer-value-boolean",style:c("boolean",s),children:String(e)})},F9=(e,t)=>{const n=d.useRef(void 0),r=d.useRef(t);d.useEffect(()=>{r.current=t},[t]);const o=l=>{r.current(l)};d.useEffect(()=>{if(window.clearTimeout(n.current),e)return n.current=window.setTimeout(()=>{window.addEventListener("keydown",o)},100),()=>{window.clearTimeout(n.current),window.removeEventListener("keydown",o)}},[e])},D9=({value:e,isEditing:t,setIsEditing:n,handleEdit:r,nodeData:o,handleKeyboard:l,keyboardCommon:s})=>{const{getStyles:i}=uo();return F9(t,a=>l(a,Object.assign({confirm:r},s))),v.jsx("div",{onDoubleClick:()=>n(!0),className:"jer-value-null",style:i("null",o),children:String(e)})},j9=({value:e})=>{let t="Error!";switch(typeof e){case"string":e===ih&&(t="Function");break;case"undefined":t="Undefined";break;case"symbol":t="Symbol"}return v.jsx("span",{className:"jer-value-invalid",children:t})},_9=({size:e,style:t,className:n})=>v.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),v.jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),L9=({size:e,style:t,className:n})=>v.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,transform:"translate(0, 0.5)",children:[v.jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),v.jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),N9=({size:e,style:t,className:n})=>v.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),A9=({size:e,style:t,className:n})=>v.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),v.jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),v.jsx("path",{d:"M15 10l-4 4 4 4"})]}),z9=({size:e,style:t,className:n})=>v.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:n,style:t,children:[v.jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),v.jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),H9=({size:e,style:t,className:n})=>v.jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),B9=({size:e,style:t,className:n})=>v.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:e,height:e,className:n,style:t,children:v.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),El=({name:e,nodeData:t})=>{var n,r,o,l,s,i,a;const{getStyles:c,icons:u}=uo(),p={size:"1.4em",className:"jer-icon"};switch(e){case"add":return(n=u==null?void 0:u.add)!==null&&n!==void 0?n:v.jsx(_9,Object.assign({},p,{style:c("iconAdd",t)}));case"edit":return(r=u==null?void 0:u.edit)!==null&&r!==void 0?r:v.jsx(L9,Object.assign({},p,{style:c("iconEdit",t)}));case"delete":return(o=u==null?void 0:u.delete)!==null&&o!==void 0?o:v.jsx(N9,Object.assign({},p,{style:c("iconDelete",t),size:"1.45em"}));case"copy":return(l=u==null?void 0:u.copy)!==null&&l!==void 0?l:v.jsx(A9,Object.assign({},p,{style:c("iconCopy",t),size:"1.2em"}));case"ok":return(s=u==null?void 0:u.ok)!==null&&s!==void 0?s:v.jsx(z9,Object.assign({},p,{style:Object.assign({fontSize:"90%"},c("iconOk",t))}));case"cancel":return(i=u==null?void 0:u.cancel)!==null&&i!==void 0?i:v.jsx(H9,Object.assign({},p,{style:Object.assign({fontSize:"130%"},c("iconCancel",t))}));case"chevron":return(a=u==null?void 0:u.chevron)!==null&&a!==void 0?a:v.jsx(B9,{size:"1em",style:c("iconCollection",t)});default:return v.jsx(v.Fragment,{})}},gk=({startEdit:e,handleDelete:t,handleAdd:n,enableClipboard:r,type:o,customButtons:l,nodeData:s,translate:i,keyboardControls:a,handleKeyboard:c,editConfirmRef:u,getNewKeyOptions:p,jsonStringify:f,onEditEvent:g,showIconTooltips:h})=>{const{getStyles:b}=uo(),w=i("KEY_NEW",s),[C,y]=d.useState(w),[x,S]=d.useState(!1),{key:T,path:P,value:k}=s,E=Array.isArray(x),_=R=>{var F;if(g&&g(R?[...P,null]:null,R),!R)return void S(!1);const L=Object.keys(oi(s.fullData,P)),O=p?(F=p(s))===null||F===void 0?void 0:F.filter(I=>!L.includes(I)):null;O&&y(""),S(O==null||O)};return v.jsxs("div",{className:"jer-edit-buttons",style:{opacity:x?1:void 0},onClick:R=>R.stopPropagation(),children:[r&&v.jsx("div",{onClick:R=>{var F;R.stopPropagation();let L,O,I="value",$="",j=null;if(r){const N=Fv(R);if(N&&a.clipboardModifier.includes(N)?(L=V9(P),$=L,I="path"):(L=k,$=typeof L=="object"?f(k):String(L)),!navigator.clipboard)return void(typeof r=="function"&&r({success:!1,value:L,stringValue:$,path:P,key:T,type:I,errorMessage:"Can't access clipboard API"}));(F=navigator.clipboard)===null||F===void 0||F.writeText($).then(()=>O=!0).catch(M=>{O=!1,j=M.message}).finally(()=>{typeof r=="function"&&r({success:O,errorMessage:j,value:L,stringValue:$,path:P,key:T,type:I})})}},className:"jer-copy-pulse",title:h?i("TOOLTIP_COPY",s):"",children:v.jsx(El,{name:"copy",nodeData:s})}),e&&v.jsx("div",{onClick:e,title:h?i("TOOLTIP_EDIT",s):"",children:v.jsx(El,{name:"edit",nodeData:s})}),t&&v.jsx("div",{onClick:t,title:h?i("TOOLTIP_DELETE",s):"",children:v.jsx(El,{name:"delete",nodeData:s})}),n&&v.jsx("div",{onClick:()=>{o==="object"?_(!0):n("")},title:h?i("TOOLTIP_ADD",s):"",children:v.jsx(El,{name:"add",nodeData:s})}),l==null?void 0:l.map(({Element:R,onClick:F},L)=>v.jsx("div",{onClick:O=>F&&F(s,O),children:v.jsx(R,{nodeData:s})},L)),x&&n&&o==="object"&&v.jsxs(v.Fragment,{children:[E?v.jsxs("div",{className:"jer-select jer-select-keys",children:[v.jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:R=>{n(R.target.value),_(!1)},defaultValue:"",autoFocus:!0,onKeyDown:R=>{c(R,{cancel:()=>_(!1)})},children:[v.jsx("option",{value:"",disabled:!0,children:x.length>0?i("KEY_SELECT",s):i("NO_KEY_OPTIONS",s)}),x.map(R=>v.jsx("option",{value:R,children:R},R))]}),v.jsx("span",{className:"focus"})]}):v.jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:C,onChange:R=>y(R.target.value),autoFocus:!0,onFocus:R=>R.target.select(),onKeyDown:R=>{c(R,{stringConfirm:()=>{n&&(_(!1),n(C),y(w))},cancel:()=>{_(!1),y(w)}})},style:b("input",s)}),v.jsx(jv,{onOk:()=>{E&&!C||(_(!1),n(C))},onCancel:()=>{_(!1)},nodeData:s,editConfirmRef:u,hideOk:E})]})]})},jv=({onOk:e,onCancel:t,nodeData:n,editConfirmRef:r,hideOk:o=!1})=>v.jsxs("div",{className:"jer-confirm-buttons",children:[!o&&v.jsx("div",{onClick:e,ref:r,children:v.jsx(El,{name:"ok",nodeData:n})}),v.jsx("div",{onClick:t,children:v.jsx(El,{name:"cancel",nodeData:n})})]}),V9=e=>e.reduce((t,n)=>typeof n=="number"?`${t}[${n}]`:t===""?n:`${t}.${n}`,""),G9=["string","number","boolean","null","object","array"],vk=({props:e,collapsed:t})=>{const{data:n,nodeData:r,parentData:o,onEdit:l,onError:s,showErrorMessages:i,restrictEditFilter:a,restrictDeleteFilter:c,restrictAddFilter:u,restrictDragFilter:p,translate:f,errorMessageTimeout:g}=e,{currentlyEditingElement:h,setCurrentlyEditingElement:b}=Gl(),[w,C]=d.useState(null),y=Object.assign(Object.assign({},r),{collapsed:t}),{path:x,key:S,size:T}=y,P=Zl(x),k=!a(y),E=!c(y),_=!u(y),R=!p(y)&&E&&h===null,F=M=>{i&&(C(M),setTimeout(()=>C(null),g)),console.warn("Error",M)},L=d.useCallback((M,D)=>{F(M.message),s&&s({currentData:y.fullData,errorValue:D,currentValue:n,name:S,path:x,error:M})},[s,i]),O=h===P,I=h===`key_${P}`,$=typeof x.slice(-1)[0]=="number",j={isEditing:O,isEditingKey:I,isArray:$,canEditKey:o!==null&&k&&_&&E&&!$},N=S===""&&x.length>0?f("EMPTY_STRING",y):null;return{pathString:P,nodeData:y,path:x,name:S,size:T,canEdit:k,canDelete:E,canAdd:_,canDrag:R,error:w,showError:F,onError:L,setError:C,handleEditKey:M=>{if(b(null),S===M||!o)return;const D=x.slice(0,-1);if(Object.keys(o).includes(M))return void L({code:"KEY_EXISTS",message:f("ERROR_KEY_EXISTS",y)},M);const A=Object.fromEntries(Object.entries(o).map(([H,z])=>H===S?[M,z]:[H,z]));l(A,D).then(H=>{H&&L({code:"UPDATE_ERROR",message:H},M)})},derivedValues:j,emptyStringKey:N}},yk=({canDrag:e,canDragOnto:t,path:n,nodeData:r,onMove:o,onError:l,translate:s})=>{const{getStyles:i}=uo(),{dragSource:a,setDragSource:c}=Gl(),[u,p]=d.useState(!1),f=Zl(n),g=d.useMemo(()=>e?{onDragStart:C=>{C.stopPropagation(),c({path:n,pathString:f})},onDragEnd:C=>{C.stopPropagation(),c({path:null,pathString:null})}}:{},[e,f]),h=d.useMemo(()=>C=>t?{onDragOver:y=>{y.stopPropagation(),y.preventDefault()},onDrop:y=>{y.stopPropagation(),w(C),c({path:null,pathString:null}),p(!1)},onDragEnter:y=>{var x;y.stopPropagation(),f.startsWith((x=a.pathString)!==null&&x!==void 0?x:"")||p(C)},onDragExit:y=>{y.stopPropagation(),p(!1)}}:{},[a,t,f]),b=d.useMemo(()=>t&&a.pathString!==null?v.jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:n.length}},h("below"))):null,[a,t,n.length]),w=C=>{var y,x;const S=(y=a.path)===null||y===void 0?void 0:y.slice(-1)[0],T=(x=a.path)===null||x===void 0?void 0:x.slice(0,-1).join("."),P=n.slice(0,-1).join(""),{parentData:k}=r;typeof S=="string"&&k&&!Array.isArray(k)&&Object.keys(k).includes(S)&&S in k&&T!==P?l({code:"KEY_EXISTS",message:s("ERROR_KEY_EXISTS",r)},S):o(a.path,n,C).then(E=>{E&&l({code:"UPDATE_ERROR",message:E},r.value)})};return{dragSourceProps:g,getDropTargetProps:h,BottomDropTarget:b,DropTargetPadding:({position:C,nodeData:y})=>u===C?v.jsx("div",{className:"jer-drag-n-drop-padding",style:i("dropZone",y)}):null,handleDrop:w}},W9=(e,t,n,r)=>{var o,l,s;if(!t.current)return 0;const i=parseInt((o=getComputedStyle(n.current).getPropertyValue("line-height"))!==null&&o!==void 0?o:"16px"),a=((s=(l=t.current)===null||l===void 0?void 0:l.offsetWidth)!==null&&s!==void 0?s:0)/(.5*i),c=r(e).replace(/\\n/g,`
245
245
  `).split(`
246
- `).map(u=>Math.ceil(u.length/a)).reduce((u,p)=>u+p,0)*i;return Math.min(c+30,window.innerHeight-50)},pd=({isEditingKey:e,canEditKey:t,pathString:n,path:r,name:o,arrayIndexFromOne:l,handleKeyboard:s,handleEditKey:i,handleCancel:a,handleClick:c,keyValueArray:u,styles:p,getNextOrPrevious:f,emptyStringKey:g})=>{const{setCurrentlyEditingElement:h}=Wl(),b=typeof o=="number"?String(o+(l?1:0)):o;return e?v.jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:n,defaultValue:b,autoFocus:!0,onFocus:w=>w.target.select(),onKeyDown:w=>s(w,{stringConfirm:()=>i(w.target.value),cancel:a,tabForward:()=>{if(i(w.target.value),u){const C=u==null?void 0:u[0][0];h(C?[...r,C]:f("next"))}else h(r)},tabBack:()=>{i(w.target.value),h(f("prev"))}}),style:{width:b.length/1.5+.5+"em"}}):v.jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},p),{minWidth:`${Math.min(b.length+1,5)}ch`,flexShrink:b.length>10?1:0}),onDoubleClick:()=>t&&h(r,"key"),onClick:c,children:[g?v.jsx("span",{className:"jer-empty-string",children:g}):b,b!==""||g?v.jsx("span",{className:"jer-key-colon",children:":"}):null]})},bk=e=>{const{data:t,parentData:n,onEdit:r,onDelete:o,onChange:l,onMove:s,enableClipboard:i,canDragOnto:a,restrictTypeSelection:c,searchFilter:u,searchText:p,showLabel:f,stringTruncate:g,showStringQuotes:h,arrayIndexFromOne:b,indent:w,translate:C,customNodeDefinitions:y,customNodeData:x,handleKeyboard:S,keyboardControls:T,sort:P,editConfirmRef:k,jsonStringify:E,showIconTooltips:_}=e,{getStyles:R}=co(),{setCurrentlyEditingElement:F,setCollapseState:L,previouslyEditedElement:O,setPreviouslyEditedElement:I,tabDirection:$,setTabDirection:j,previousValue:N,setPreviousValue:M}=Wl(),[D,A]=d.useState(typeof t=="function"?sh:t),{pathString:H,nodeData:z,path:W,name:G,canEdit:q,canDelete:re,canDrag:ae,error:ce,onError:ue,handleEditKey:ye,emptyStringKey:de,derivedValues:he}=vk({props:e}),{dragSourceProps:Y,getDropTargetProps:pe,BottomDropTarget:ee,DropTargetPadding:Z}=yk({canDrag:ae,canDragOnto:a,path:W,nodeData:z,onMove:s,onError:ue,translate:C}),[fe,le]=d.useState(ih(t,x)),ge=d.useCallback(Pe=>{if(!l)return void A(Pe);const Ge=l({currentData:z.fullData,newValue:Pe,currentValue:D,name:G,path:W});A(Ge)},[l]);d.useEffect(()=>{A(typeof t=="function"?sh:t),le(ih(t,x))},[t,ce]);const{CustomNode:me,customNodeProps:Ie,hideKey:Se,showEditTools:te=!0,showOnEdit:oe,showOnView:xe,passOriginalNode:Oe}=x,Ve=[...G9,...y.filter(({showInTypesSelector:Pe=!1,name:Ge})=>Pe&&!!Ge).map(({name:Pe})=>Pe)],Te=d.useMemo(()=>{if(typeof c=="boolean")return c?[]:Ve;if(Array.isArray(c))return c;const Pe=c(z);return typeof Pe=="boolean"?Pe?[]:Ve:Pe},[z,c]),[se,qe]=d.useState(((Pe,Ge)=>{var rt;if(typeof Pe!="string")return null;const _t=Ge.filter(dt=>dt instanceof Object&&dt.enum&&dt.values.includes(Pe)&&dt.matchPriority);return _t.sort((dt,st)=>{var ut,Et;return((ut=st.matchPriority)!==null&&ut!==void 0?ut:0)-((Et=dt.matchPriority)!==null&&Et!==void 0?Et:0)}),(rt=_t[0])!==null&&rt!==void 0?rt:null})(D,Te)),{isEditing:tt}=he,Xe=uk("value",z,u,p);if(tt&&(!Xe||!q)){const Pe=El(z.fullData,W,$,P);F(Pe||O)}if(!Xe)return null;const be=Pe=>{let Ge;if(F(null),M(null),Pe===void 0||(rt=>rt&&typeof rt=="object"&&"type"in rt&&"target"in rt&&"preventDefault"in rt&&typeof rt.preventDefault=="function")(Pe))switch(fe){case"object":Ge={[C("DEFAULT_NEW_KEY",z)]:D};break;case"array":Ge=D??[];break;case"number":{const rt=Number(D);Ge=isNaN(rt)?0:rt;break}default:Ge=D}else Ge=Pe;r(Ge,W).then(rt=>{rt&&ue({code:"UPDATE_ERROR",message:rt},Ge)})},je=()=>{F(null),N===null?(A(t),M(null)):r(N,W)},{isEditingKey:ie,canEditKey:Ee}=he,Ae=!tt&&ce,Ne=tt&&Te.length>1,Ye=(fe!=="invalid"||me)&&!ce&&te,$e=f&&!Se,Ce=me&&(tt&&oe||!tt&&xe),Me={value:D,parentData:n,setValue:ge,isEditing:tt,canEdit:q,setIsEditing:q?()=>F(W):()=>{},handleEdit:be,handleCancel:je,path:W,stringTruncate:g,showStringQuotes:h,nodeData:z,enumType:se,translate:C,handleKeyboard:S,keyboardCommon:{cancel:je,tabForward:()=>{j("next"),I(H);const Pe=El(z.fullData,W,"next",P);Pe&&(be(),F(Pe))},tabBack:()=>{j("prev"),I(H);const Pe=El(z.fullData,W,"prev",P);Pe&&(be(),F(Pe))}}},We={canEditKey:Ee,isEditingKey:ie,pathString:H,path:W,name:G,arrayIndexFromOne:b,handleKeyboard:S,handleEditKey:ye,handleCancel:je,styles:R("property",z),getNextOrPrevious:Pe=>El(z.fullData,W,Pe,P),emptyStringKey:de},Qe=Ce?v.jsx(me,Object.assign({},e,{value:D,customNodeProps:Ie,setValue:ge,handleEdit:be,handleCancel:je,handleKeyPress:Pe=>S(Pe,{stringConfirm:be,cancel:je}),isEditing:tt,setIsEditing:()=>F(W),getStyles:R,originalNode:Oe?OC(t,Me):void 0,originalNodeKey:Oe?v.jsx(pd,Object.assign({},We)):void 0,canEdit:q,keyboardCommon:Me.keyboardCommon,onError:ue})):OC(t,Me);return v.jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:n!==null?w/2+"em":0,position:"relative"},draggable:ae},Y,pe("above"),{children:[ee,v.jsx(Z,{position:"above",nodeData:z}),v.jsxs("div",{className:"jer-value-main-row",style:{flexWrap:G.length>10?"wrap":"nowrap"},children:[$e&&v.jsx(pd,Object.assign({},We)),v.jsxs("div",{className:"jer-value-and-buttons",children:[v.jsx("div",{className:"jer-input-component",children:Qe}),tt?v.jsx(jv,{onOk:be,onCancel:je,nodeData:z,editConfirmRef:k}):Ye&&v.jsx(gk,{startEdit:q?()=>{M(N),F(W,je)}:void 0,handleDelete:re?()=>{o(D,W).then(Pe=>{Pe&&ue({code:"DELETE_ERROR",message:Pe},D)})}:void 0,enableClipboard:i,translate:C,customButtons:e.customButtons,nodeData:z,handleKeyboard:S,keyboardControls:T,editConfirmRef:k,jsonStringify:E,showIconTooltips:_}),Ne&&v.jsxs("div",{className:"jer-select jer-select-types",children:[v.jsx("select",{name:`${G}-type-select`,className:"jer-select-inner",onChange:Pe=>(Ge=>{const rt=y.find(st=>st.name===Ge);if(rt)return r(rt.defaultValue,W),le(Ge),qe(null),F(null),void L({path:W,collapsed:!1,includeChildren:!1});const _t=Te.find(st=>st instanceof Object&&st.enum===Ge);if(_t)return typeof D=="string"&&_t.values.includes(D)||r(_t.values[0],W).then(st=>{st&&(ue({code:"UPDATE_ERROR",message:st},dt),F(null))}),void qe(_t);const dt=U9(D,Ge,C("DEFAULT_NEW_KEY",z),x!=null&&x.CustomNode?C("DEFAULT_STRING",z):void 0);["string","number","boolean"].includes(Ge)||F(null),r(dt,W).then(st=>{st?(ue({code:"UPDATE_ERROR",message:st},dt),F(null)):qe(null)})})(Pe.target.value),value:se?se.enum:fe,children:Te.map(Pe=>Pe instanceof Object&&"enum"in Pe?v.jsx("option",{value:Pe.enum,children:Pe.enum},Pe.enum):v.jsx("option",{value:Pe,children:Pe},Pe))}),v.jsx("span",{className:"focus"})]}),Ae&&v.jsx("span",{className:"jer-error-slug",style:R("error",z),children:ce})]})]}),v.jsx(Z,{position:"below",nodeData:z})]}))},ih=(e,t)=>t!=null&&t.CustomNode&&(t!=null&&t.name)&&t.showInTypesSelector?t.name:typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":e===null?"null":"invalid",OC=(e,t)=>{const n=ih(e),{value:r}=t;switch(n){case"string":return v.jsx(R9,Object.assign({},t,{value:r}));case"number":return v.jsx(T9,Object.assign({},t,{value:r}));case"boolean":return v.jsx(O9,Object.assign({},t,{value:r}));case"null":return v.jsx(D9,Object.assign({},t));default:return v.jsx(j9,Object.assign({},t))}},U9=(e,t,n,r)=>{switch(t){case"string":return r??String(e);case"number":{const o=Number(e);return isNaN(o)?0:o}case"boolean":return!!e;case"null":return null;case"object":return{[n]:e};case"array":return[e];default:return String(e)}},Ck=(e=[],t)=>{const n=e.filter(({condition:h})=>h(t));if(n.length===0)return{};const r=n[0],{element:o,wrapperElement:l,customNodeProps:s,wrapperProps:i,hideKey:a=!1,showEditTools:c=!0,showOnEdit:u=!1,showOnView:p=!0,showCollectionWrapper:f=!0}=r,g=ak(r,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:o,CustomWrapper:l,customNodeProps:s,wrapperProps:i,hideKey:a,showEditTools:c,showOnEdit:u,showOnView:p,showCollectionWrapper:f},g)},xk=e=>{const{getStyles:t}=co(),{collapseState:n,setCollapseState:r,getMatchingCollapseState:o,currentlyEditingElement:l,setCurrentlyEditingElement:s,areChildrenBeingEdited:i,previousValue:a,setPreviousValue:c}=Wl(),{mainContainerRef:u,data:p,nodeData:f,parentData:g,showCollectionCount:h,onEdit:b,onAdd:w,onDelete:C,canDragOnto:y,collapseFilter:x,collapseAnimationTime:S,onMove:T,enableClipboard:P,onEditEvent:k,showIconTooltips:E,searchFilter:_,searchText:R,indent:F,sort:L,showArrayIndices:O,arrayIndexFromOne:I,defaultValue:$,newKeyOptions:j,translate:N,customNodeDefinitions:M,customNodeData:D,jsonParse:A,jsonStringify:H,TextEditor:z,keyboardControls:W,handleKeyboard:G,insertAtTop:q,onCollapse:re,editConfirmRef:ae,collapseClickZones:ce}=e,[ue,ye]=d.useState(H(p)),de=x(f),{contentRef:he,isAnimating:Y,maxHeight:pe,collapsed:ee,animateCollapse:Z,cssTransitionValue:fe}=((Ue,Pt,Er,rr,Gr)=>{const[Ok,gc]=d.useState(Er?0:void 0),[vc,Fk]=d.useState(Er),Rp=d.useRef(!1),Tp=d.useRef(null),Wv=d.useRef(0),Uv=d.useRef(0),Dk=Pt/1e3+"s",jk=d.useCallback(Op=>{var Fp,Dp;if(vc!==Op){switch(window.clearTimeout(Uv.current),Rp.current=!0,Op){case!0:{const Kv=(Dp=(Fp=Tp.current)===null||Fp===void 0?void 0:Fp.offsetHeight)!==null&&Dp!==void 0?Dp:0;Wv.current=Kv,gc(Kv),setTimeout(()=>{gc(0)},5);break}case!1:gc(Wv.current||W9(Ue,Tp,rr,Gr))}Fk(!vc),Uv.current=window.setTimeout(()=>{Rp.current=!1,Op||gc(void 0)},Pt)}},[Pt,vc,Ue,rr,Gr]);return{contentRef:Tp,isAnimating:Rp.current,animateCollapse:jk,maxHeight:Ok,collapsed:vc,cssTransitionValue:Dk}})(p,S,de,u,H),{pathString:le,nodeData:ge,path:me,name:Ie,size:Se,canEdit:te,canDelete:oe,canAdd:xe,canDrag:Oe,error:Ve,setError:Te,onError:se,handleEditKey:qe,emptyStringKey:tt,derivedValues:Xe}=vk({props:e,collapsed:ee}),{dragSourceProps:be,getDropTargetProps:je,BottomDropTarget:ie,DropTargetPadding:Ee}=yk({canDrag:Oe,canDragOnto:y,path:me,nodeData:ge,onMove:T,onError:se,translate:N}),Ae=d.useRef(!de),{isEditing:Ne,isEditingKey:Ye,isArray:$e,canEditKey:Ce}=Xe;d.useEffect(()=>{ye(H(p))},[p,H]),d.useEffect(()=>{const Ue=x(ge)&&!Ne;Ae.current=!Ue,Z(Ue)},[x]),d.useEffect(()=>{if(n!==null){const Ue=o(me);Ue&&(Ae.current=!0,Z(Ue.collapsed))}},[n]);const Me=d.useRef(null),We=d.useCallback((Ue,Pt)=>{if(typeof $!="function")return $;const Er=$(Ue,Pt);return Er!==void 0?Er:null},[$]),Qe=d.useCallback(Ue=>j?typeof j!="function"?j:j(Ue):null,[j]),{CustomNode:Pe,customNodeProps:Ge,CustomWrapper:rt,wrapperProps:_t={},hideKey:dt,showEditTools:st=!0,showOnEdit:ut,showOnView:Et,showCollectionWrapper:Kt=!0}=D,pn=i(le);if(pn&&ee&&Z(!1),!(uk("collection",ge,_,R)||ge.level===0)&&!pn)return null;const fn=Array.isArray(p)?"array":"object",mn=fn==="array"?{open:"[",close:"]"}:{open:"{",close:"}"},Pr=Ue=>{if(Ue.key!=="Tab"||Ue.getModifierState("Shift"))G(Ue,{objectConfirm:xn,cancel:J});else{Ue.preventDefault();const Pt=pk(Me," ");ye(Pt)}},Bn=Ue=>{Ue.stopPropagation();const Pt=Fv(Ue);if(Pt&&W.collapseModifier.includes(Pt))return Ae.current=!0,void r({collapsed:!ee,path:me,includeChildren:!0});l&&l.includes(le)||(Ae.current=!0,r(null),re&&re({path:me,collapsed:!ee,includeChildren:!1}),Z(!ee))},xn=()=>{try{const Ue=A(ue);if(s(null),c(null),Te(null),H(Ue)===H(p))return;b(Ue,me).then(Pt=>{Pt&&se({code:"UPDATE_ERROR",message:Pt},Ue)})}catch{se({code:"INVALID_JSON",message:N("ERROR_INVALID_JSON",ge)},ue)}},kr=me.length>0?()=>{C(p,me).then(Ue=>{Ue&&se({code:"DELETE_ERROR",message:Ue},p)})}:void 0,J=()=>{s(null),a===null?(Te(null),ye(H(p)),c(null)):b(a,me)},U=h==="when-closed"?ee:h,ke=!Ne&&st,ze=(O||!$e)&&!dt&&Ie!==void 0,Je=Pe&&(Ne&&ut||!Ne&&Et),_e=Object.entries(p).map(([Ue,Pt])=>[fn==="array"?Number(Ue):Ue,Pt]);fn==="object"&&L(_e,Ue=>Ue);const lt=Ae.current?Ne?v.jsxs("div",{className:"jer-collection-text-edit",children:[z?v.jsx(z,{value:ue,onChange:ye,onKeyDown:Ue=>G(Ue,{objectConfirm:xn,cancel:J})}):v.jsx(ck,{textAreaRef:Me,className:"jer-collection-text-area",name:le,value:ue,setValue:ye,handleKeyPress:Pr,styles:t("input",ge)}),v.jsx("div",{className:"jer-collection-input-button-row",children:v.jsx(jv,{onOk:xn,onCancel:J,nodeData:ge,editConfirmRef:ae})})]}):_e.map(([Ue,Pt],Er)=>{const rr={key:Ue,value:Pt,path:[...me,Ue],level:me.length+1,index:Er,size:li(Pt)?Object.keys(Pt).length:null,parentData:p,fullData:ge.fullData},Gr=Ck(M,rr);return v.jsx("div",{className:"jer-collection-element",style:t("collectionElement",rr),children:li(Pt)&&!(Gr!=null&&Gr.renderCollectionAsValue)?v.jsx(xk,Object.assign({},e,{data:Pt,parentData:p,nodeData:rr,showCollectionCount:h,canDragOnto:te,customNodeData:Gr}),Ue):v.jsx(bk,Object.assign({},e,{data:Pt,parentData:p,nodeData:rr,canDragOnto:te,showLabel:fn==="object"||O,customNodeData:Gr}),Ue)},Ue)}):null,$n=!!Kt&&ee&&!pn;$n||(Ae.current=!0);const Si=Object.assign(Object.assign({},e),{data:p,value:p,parentData:g,nodeData:ge,setValue:Ue=>ms(void 0,void 0,void 0,function*(){return yield b(Ue,me)}),handleEdit:xn,handleCancel:J,handleKeyPress:Pr,isEditing:Ne,setIsEditing:()=>s(me),getStyles:t,canDragOnto:te,canEdit:te,keyboardCommon:{},onError:se}),Tk=Je?v.jsx(Pe,Object.assign({customNodeProps:Ge},Si,{children:lt})):lt,Bv=ke&&v.jsx(gk,{startEdit:te?()=>{Ae.current=!0,c(null),s(me)}:void 0,handleAdd:xe?Ue=>{Z(!1);const Pt=We(ge,Ue);if(fn==="array"){const Er=q.array?0:p.length,rr=q.array?{insert:!0}:{};w(Pt,[...me,Er],rr).then(Gr=>{Gr&&se({code:"ADD_ERROR",message:Gr},Pt)})}else if(Ue in p)se({code:"KEY_EXISTS",message:N("ERROR_KEY_EXISTS",ge)},Ue);else{const Er=q.object?{insertBefore:0}:{};w(Pt,[...me,Ue],Er).then(rr=>{rr&&se({code:"ADD_ERROR",message:rr},Pt)})}}:void 0,handleDelete:oe?kr:void 0,enableClipboard:P,type:fn,nodeData:ge,translate:N,customButtons:e.customButtons,keyboardControls:W,handleKeyboard:G,getNewKeyOptions:Qe,editConfirmRef:ae,jsonStringify:H,onEditEvent:k,showIconTooltips:E}),Vv={canEditKey:Ce,isEditingKey:Ye,pathString:le,path:me,name:Ie,arrayIndexFromOne:I,handleKeyboard:G,handleEditKey:qe,handleCancel:J,keyValueArray:_e,styles:t("property",ge),getNextOrPrevious:Ue=>El(ge.fullData,me,Ue,L),handleClick:ce.includes("property")?Bn:Ue=>Ue.stopPropagation(),emptyStringKey:tt},Gv=v.jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(me.length===0?0:F/2)+"em"},t("collection",ge)),{position:"relative"}),draggable:Oe},be,je("above"),{children:[v.jsx("div",{className:"jer-clickzone",style:{width:F/2+1+"em",zIndex:10+2*ge.level},onClick:ce.includes("left")?Bn:void 0}),!Ne&&ie,v.jsx(Ee,{position:"above",nodeData:ge}),Kt?v.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:ce.includes("header")?Bn:void 0,children:[v.jsxs("div",{className:"jer-collection-name",children:[v.jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ee?" jer-rotate-90":""),style:{zIndex:11+2*ge.level,transition:fe},onClick:Bn,children:v.jsx(Il,{name:"chevron",rotate:ee,nodeData:ge})}),ze&&v.jsx(pd,Object.assign({},Vv)),!Ne&&v.jsx("span",{className:"jer-brackets jer-bracket-open",style:t("bracket",ge),children:mn.open})]}),!Ne&&U&&v.jsx("div",{className:"jer-collection-item-count"+(U?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("itemCount",ge)),{transition:fe}),children:Se===1?N("ITEM_SINGLE",Object.assign(Object.assign({},ge),{size:1}),1):N("ITEMS_MULTIPLE",ge,Se)}),v.jsx("div",{className:"jer-brackets"+($n?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("bracket",ge)),{transition:fe}),children:mn.close}),Bv]}):dt?v.jsx(v.Fragment,{}):v.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[v.jsx(pd,Object.assign({},Vv)),Bv]}),v.jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:$n||Y?"clip":"visible",maxHeight:pn?void 0:pe},t("collectionInner",ge)),{transition:fe}),ref:he,children:[Tk,v.jsx("div",{className:Ne?"jer-collection-error-row":"jer-collection-error-row-edit",children:Ve&&v.jsx("span",{className:"jer-error-slug",style:t("error",ge),children:Ve})}),!Ne&&Kt&&v.jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},t("bracket",ge)),{marginLeft:(F<3?-1:F<6?-.5:0)+"em"}),children:mn.close})]}),v.jsx(Ee,{position:"below",nodeData:ge})]}));return rt?v.jsx(rt,Object.assign({customNodeProps:_t},Si,{children:Gv})):Gv},K9={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>",TOOLTIP_COPY:"Copy to clipboard",TOOLTIP_EDIT:"Edit",TOOLTIP_DELETE:"Delete",TOOLTIP_ADD:"Add"},q9=(e,t)=>(n,r,o)=>((l,s,i,a,c)=>{if(s[a]){const p=s[a](i);if(p!==null)return p}const u=a in l?l[a]:K9[a];return c===void 0?u:u==null?void 0:u.replace("{{count}}",String(c))})(e,t,r,n,o);var FC=[],Hi=[];(function(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",o=t.singleTag===!0,l=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(o){var s=FC.indexOf(l);s===-1&&(s=FC.push(l)-1,Hi[s]={}),n=Hi[s]&&Hi[s][r]?Hi[s][r]:Hi[s][r]=i()}else n=i();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function i(){var a=document.createElement("style");if(a.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)a.setAttribute(c[u],t.attributes[c[u]]);var p=r==="prepend"?"afterbegin":"beforeend";return l.insertAdjacentElement(p,a),a}})(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Y9=({data:e,setData:t,rootName:n="root",onUpdate:r=()=>{},onEdit:o=r,onDelete:l=r,onAdd:s=r,onChange:i,onError:a,onEditEvent:c,showErrorMessages:u=!0,enableClipboard:p=!0,indent:f=2,collapse:g=!1,collapseAnimationTime:h=300,showCollectionCount:b=!0,restrictEdit:w=!1,restrictDelete:C=!1,restrictAdd:y=!1,restrictTypeSelection:x=!1,restrictDrag:S=!0,viewOnly:T,searchFilter:P,searchText:k,searchDebounceTime:E=350,keySort:_=!1,showArrayIndices:R=!0,arrayIndexFromOne:F=!1,showStringQuotes:L=!0,showIconTooltips:O=!1,defaultValue:I=null,newKeyOptions:$,minWidth:j=250,maxWidth:N="min(600px, 90vw)",rootFontSize:M,stringTruncate:D=250,translations:A={},className:H,id:z,customText:W={},customNodeDefinitions:G=[],customButtons:q=[],jsonParse:re=JSON.parse,jsonStringify:ae=(ee,Z)=>JSON.stringify(ee,Z,2),TextEditor:ce,errorMessageTimeout:ue=2500,keyboardControls:ye={},externalTriggers:de,insertAtTop:he=!1,onCollapse:Y,collapseClickZones:pe=["header","left"]})=>{const{getStyles:ee}=co(),{setCurrentlyEditingElement:Z}=Wl(),fe=d.useMemo(()=>Vi(g),[g]),le=d.useMemo(()=>q9(A,W),[A,W]),[ge,me]=d.useState(k),[Ie,Se]=(({setData:$e,data:Ce})=>{const[Me,We]=d.useState($e?void 0:Ce),Qe=d.useCallback(Pe=>{$e?$e(Pe):We(Pe)},[$e]);return d.useEffect(()=>{$e||We(Ce)},[Ce]),[$e?Ce:Me,Qe]})({setData:t,data:e}),te=d.useRef(null);d.useEffect(()=>{Z(null);const $e=setTimeout(()=>me(k),E);return()=>clearTimeout($e)},[k,E]);const oe={key:n,path:[],level:0,index:0,value:Ie,size:typeof Ie=="object"&&Ie!==null?Object.keys(Ie).length:1,parentData:null,fullData:Ie},xe=($e,Ce)=>ms(void 0,void 0,void 0,function*(){const Me=yield $e(Ce);if(Me===!0||Me===void 0)return void Se(Ce.newData);const We=Z9(Me)?Me:["error",Me],[Qe,Pe]=We;if(Qe==="error")return Se(Ce.currentData),Pe===!1?le("ERROR_UPDATE",oe):String(Pe);Se(Pe)}),Oe=d.useMemo(()=>Vi(w,T),[w,T]),Ve=d.useMemo(()=>Vi(C,T),[C,T]),Te=d.useMemo(()=>Vi(y,T),[y,T]),se=d.useMemo(()=>Vi(S,T),[S,T]),qe=d.useMemo(()=>X9(P),[P]),tt=d.useMemo(()=>($e=>{const Ce=Object.assign({},RC);for(const Me of Object.keys(RC)){const We=Me;if($e[We]){const Qe=$e[We],Pe=["clipboardModifier","collapseModifier"].includes(Me)?Array.isArray(Qe)?Qe:[Qe]:typeof Qe=="string"?{key:Qe}:Qe;Ce[We]=Pe,["stringConfirm","numberConfirm","booleanConfirm"].forEach(Ge=>{!$e[Ge]&&$e.confirm&&(Ce[Ge]=Ce.confirm)})}}return Ce})(ye),[ye]),Xe=d.useCallback(($e,Ce)=>((Me,We,Qe)=>{const Pe=Object.entries(We);for(const[Ge,rt]of Pe)if(x9(Qe,Me[Ge],Ge)){Qe.preventDefault(),rt();break}})(tt,Ce,$e),[tt]),be=d.useMemo(()=>{const $e=DC(G,"stringifyReplacer");return Ce=>ae(Ce,$e)},[G,ae]),je=d.useMemo(()=>{const $e=DC(G,"parseReviver");return Ce=>{const Me=re(Ce,$e);return lh(Me)}},[G,re]),ie=d.useRef(null);(($e,Ce)=>{const{setCurrentlyEditingElement:Me,currentlyEditingElement:We,setCollapseState:Qe}=Wl();d.useEffect(()=>{if(!$e)return;const{collapse:Pe,edit:Ge}=$e;Pe&&Qe(Pe);const rt=!(Ge!=null&&Ge.path)||Jl(Ge.path)===We;switch(Ge==null?void 0:Ge.action){case"accept":rt&&(Ce.current&&Ce.current.click(),Me(null));break;case"cancel":rt&&Me(null);break;default:Ge!=null&&Ge.path&&Me(Ge.path)}},[$e])})(de,ie);const Ee=d.useCallback(($e,Ce)=>{_!==!1&&(typeof _!="function"?$e.sort((Me,We)=>{const Qe=Ce(Me)[0],Pe=Ce(We)[0];return Qe<Pe?-1:Qe>Pe?1:0}):$e.sort((Me,We)=>_(Ce(Me),Ce(We))))},[_]),Ae=Ck(G,oe),Ne={mainContainerRef:te,name:n,nodeData:oe,onEdit:($e,Ce)=>ms(void 0,void 0,void 0,function*(){const{currentData:Me,newData:We,currentValue:Qe,newValue:Pe}=Bi(Ie,Ce,$e,"update");if(Qe!==Pe)return yield xe(o,{currentData:Me,newData:We,currentValue:Qe,newValue:Pe,name:Ce.slice(-1)[0],path:Ce})}),onDelete:($e,Ce)=>ms(void 0,void 0,void 0,function*(){const{currentData:Me,newData:We,currentValue:Qe,newValue:Pe}=Bi(Ie,Ce,$e,"delete");return yield xe(l,{currentData:Me,newData:We,currentValue:Qe,newValue:Pe,name:Ce.slice(-1)[0],path:Ce})}),onAdd:($e,Ce,Me)=>ms(void 0,void 0,void 0,function*(){const{currentData:We,newData:Qe,currentValue:Pe,newValue:Ge}=Bi(Ie,Ce,$e,"add",Me);return yield xe(s,{currentData:We,newData:Qe,currentValue:Pe,newValue:Ge,name:Ce.slice(-1)[0],path:Ce})}),onChange:i,onError:a,onEditEvent:c,showErrorMessages:u,onMove:($e,Ce,Me)=>ms(void 0,void 0,void 0,function*(){if($e===null)return;const{currentData:We,newData:Qe,currentValue:Pe}=Bi(Ie,$e,"","delete"),Ge=$e.slice(-1)[0],rt=Ce.slice(0,-1),_t=Ce.slice(-1)[0];let dt=typeof _t=="number"?Me==="above"?_t:_t+1:typeof Ge=="number"?`arr_${Ge}`:Ge;$e.slice(0,-1).join(".")===Ce.slice(0,-1).join(".")&&typeof Ge=="number"&&typeof dt=="number"&&Ge<dt&&(dt-=1);const st=typeof dt=="number"?{insert:!0}:Me==="above"?{insertBefore:_t}:{insertAfter:_t},{newData:ut,newValue:Et}=Bi(Qe,[...rt,dt],Pe,"add",st);return yield xe(o,{currentData:We,newData:ut,currentValue:Pe,newValue:Et,name:Ce.slice(-1)[0],path:Ce})}),showCollectionCount:b,collapseFilter:fe,collapseAnimationTime:h,restrictEditFilter:Oe,restrictDeleteFilter:Ve,restrictAddFilter:Te,restrictTypeSelection:x,restrictDragFilter:se,canDragOnto:!1,searchFilter:qe,searchText:ge,enableClipboard:p,keySort:_,sort:Ee,showArrayIndices:R,arrayIndexFromOne:F,showStringQuotes:L,showIconTooltips:O,indent:f,defaultValue:I,newKeyOptions:$,stringTruncate:D,translate:le,customNodeDefinitions:G,customNodeData:Ae,customButtons:q,parentData:null,jsonParse:je,jsonStringify:be,TextEditor:ce,errorMessageTimeout:ue,handleKeyboard:Xe,keyboardControls:tt,insertAtTop:{object:he===!0||he==="object",array:he===!0||he==="array"},onCollapse:Y,editConfirmRef:ie,collapseClickZones:pe},Ye=Object.assign(Object.assign({},ee("container",oe)),{minWidth:j,maxWidth:N});return Ye.fontSize=M??Ye.fontSize,v.jsx("div",{id:z,ref:te,className:`jer-editor-container ${H??""}`,style:Ye,children:li(Ie)&&!Ae.renderCollectionAsValue?v.jsx(xk,Object.assign({data:Ie},Ne)):v.jsx(bk,Object.assign({data:Ie,showLabel:!0},Ne))})},Q9=e=>{var t;const[n,r]=d.useState();return d.useEffect(()=>{const o=document.documentElement;r(o)},[]),n?v.jsx(S9,{theme:(t=e.theme)!==null&&t!==void 0?t:Dv,icons:e.icons,docRoot:n,children:v.jsx(I9,{onEditEvent:e.onEditEvent,onCollapse:e.onCollapse,children:v.jsx(Y9,Object.assign({},e))})}):null},Bi=(e,t,n,r,o={})=>{if(t.length===0)return{currentData:e,newData:n,currentValue:e,newValue:n};const l=Object.assign({remove:r==="delete"},o),s=r!=="add"?oi(e,t):void 0;return{currentData:e,newData:g9(e,t,n,l),currentValue:s,newValue:r!=="delete"?n:void 0}},Vi=(e,t)=>t?()=>!0:typeof e=="boolean"?()=>e:typeof e=="number"?({level:n})=>n>=e:e,X9=e=>{if(e!==void 0)return e==="value"?si:e==="key"?$C:e==="all"?(t,n)=>si(t,n)||$C(t,n):e},Z9=e=>Array.isArray(e)&&e.length===2&&["error","value"].includes(e[0]),DC=(e,t)=>{const n=t==="stringifyReplacer"?[r=>r===void 0?fk:r]:[];if(n.push(...e.map(r=>r[t]).filter(r=>!!r)),n.length!==0)return(r,o)=>{let l=o;for(const s of n)l=s(l);return l}},J9={displayName:"Github Dark",styles:{container:{backgroundColor:"#0d1117",color:"white"},dropZone:"rgba(165, 214, 255, 0.17)",property:"#E6EDF3",bracket:"#56d364",itemCount:"#8B949E",string:"#A5D6FF",number:"#D2A8FF",boolean:{color:"#FF7B72",fontSize:"90%",fontWeight:"bold"},null:"green",iconCollection:"#D2A8FF",iconEdit:"#D2A8FF",iconDelete:"rgb(203, 75, 22)",iconAdd:"rgb(203, 75, 22)",iconCopy:"#A5D6FF",iconOk:"#56d364",iconCancel:"rgb(203, 75, 22)"}},eW={displayName:"Github Light",styles:{container:"white",property:"#1F2328",bracket:"#00802e",itemCount:"#8B949E",string:"#0A3069",number:"#953800",boolean:{color:"#CF222E",fontSize:"90%",fontWeight:"bold"},null:"#FF7B72",iconCollection:"#8250DF",iconEdit:"#8250DF",iconDelete:"rgb(203, 75, 22)",iconAdd:"#8250DF",iconCopy:"#57606A"}},wk=d.createContext(null);function tW(){const[e,t]=d.useState(null);return d.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function nW(e){const{children:t,value:n}=e,r=tW(),o=d.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return v.jsx(wk.Provider,{value:o,children:t})}function Sk(){return d.useContext(wk)}function Pk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function kk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const rW=["children"],oW=d.forwardRef(function(t,n){const{children:r}=t,o=K(t,rW),l=Sk();if(l===null)throw new TypeError("No TabContext provided");const s=d.Children.map(r,i=>d.isValidElement(i)?d.cloneElement(i,{"aria-controls":Pk(l,i.props.value),id:kk(l,i.props.value)}):null);return v.jsx(O5,m({},o,{ref:n,value:l.value,children:s}))});function lW(e){return He("MuiTabPanel",e)}Be("MuiTabPanel",["root"]);const sW=["children","className","value"],iW=e=>{const{classes:t}=e;return we({root:["root"]},lW,t)},aW=X("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),jC=d.forwardRef(function(t,n){const r=eS({props:t,name:"MuiTabPanel"}),{children:o,className:l,value:s}=r,i=K(r,sW),a=m({},r),c=iW(a),u=Sk();if(u===null)throw new TypeError("No TabContext provided");const p=Pk(u,s),f=kk(u,s);return v.jsx(aW,m({"aria-labelledby":f,className:ne(c.root,l),hidden:s!==u.value,id:p,ref:n,role:"tabpanel",ownerState:a},i,{children:s===u.value&&o}))});var _v={},cW=zn;Object.defineProperty(_v,"__esModule",{value:!0});var Ek=_v.default=void 0,uW=cW(Sr()),dW=v;Ek=_v.default=(0,uW.default)((0,dW.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var Lv={},pW=zn;Object.defineProperty(Lv,"__esModule",{value:!0});var Ik=Lv.default=void 0,fW=pW(Sr()),mW=v;Ik=Lv.default=(0,fW.default)((0,mW.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-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Nv={},hW=zn;Object.defineProperty(Nv,"__esModule",{value:!0});var Mk=Nv.default=void 0,gW=hW(Sr()),vW=v;Mk=Nv.default=(0,gW.default)((0,vW.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var Av={},yW=zn;Object.defineProperty(Av,"__esModule",{value:!0});var ah=Av.default=void 0,bW=yW(Sr()),CW=v;ah=Av.default=(0,bW.default)((0,CW.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var zv={},xW=zn;Object.defineProperty(zv,"__esModule",{value:!0});var $k=zv.default=void 0,wW=xW(Sr()),SW=v;$k=zv.default=(0,wW.default)((0,SW.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"DoDisturbOn");var Hv={},PW=zn;Object.defineProperty(Hv,"__esModule",{value:!0});var Rk=Hv.default=void 0,kW=PW(Sr()),EW=v;Rk=Hv.default=(0,kW.default)((0,EW.jsx)("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObjectOutlined");function _C(e){const t=Br();return v.jsx(Q9,{...e,theme:t.palette.mode==="dark"?J9:eW})}function Df({icon:e,label:t,value:n}){return v.jsxs(wr,{variant:"outlined",sx:{flex:1,px:2.5,py:1.5,textAlign:"center"},children:[v.jsxs(sn,{variant:"caption",color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:.5,fontSize:"0.7rem"},children:[e&&v.jsx(go,{component:"span",sx:{verticalAlign:"middle",mr:.5},children:e}),t]}),v.jsx(sn,{variant:"h6",fontWeight:600,sx:{mt:.25},children:n})]})}const IW=5e3,LC="$$colyseus$type",NC="$$colyseus$data";class MW extends d.Component{constructor(){super(...arguments),this.state={roomId:void 0,state:{},clients:[],maxClients:0,stateSize:0,locked:!1,currentTab:"1",sendDialogTitle:"",sendDialogOpen:!1,sendToClient:void 0,sendType:localStorage.getItem(LC)||"message_type",sendData:JSON.parse(localStorage.getItem(NC)||"{}")},this.updateSendType=t=>{const n=t.target.value;localStorage.setItem(LC,n),this.setState({sendType:n})},this.updateSendData=t=>{localStorage.setItem(NC,JSON.stringify(t)),this.state.sendData=t},this.handleCloseSend=()=>{this.setState({sendDialogOpen:!1})},this.handleSend=()=>{(this.state.sendToClient?this.roomCall("_sendMessageToClient",this.state.sendToClient,this.state.sendType,this.state.sendData):this.roomCall("broadcast",this.state.sendType,this.state.sendData)).then(()=>this.handleCloseSend())},this.handleTabChange=(t,n)=>{this.setState({currentTab:n})},this.handleStateEdit=({newValue:t,path:n})=>{this.roomCall("_editStateProperty",n,t).then(()=>this.fetchRoomData())},this.handleStateDelete=({path:t})=>{this.roomCall("_deleteStateProperty",t).then(()=>this.fetchRoomData())}}componentDidMount(){this.fetchRoomData()}fetchRoomData(){const t=this.props.match.params.roomId;H5(t).then(n=>this.setState(n)).catch(n=>console.error(n)),clearInterval(this.updateDataInterval),this.updateDataInterval=window.setInterval(()=>this.fetchRoomData(),IW)}roomCall(t,...n){const r=this.props.match.params.roomId;return WS(r,t,...n).then(o=>console.log(o)).catch(o=>console.error(o))}componentWillUnmount(){clearInterval(this.updateDataInterval)}sendMessage(t){const n=t||void 0;let r=t?`Send message to client (${t})`:"Broadcast message to all clients";this.setState({sendToClient:n,sendDialogTitle:r,sendDialogOpen:!0})}disconnectClient(t){this.roomCall("_forceClientDisconnect",t).then(()=>this.fetchRoomData())}disposeRoom(){this.roomCall("disconnect").then(()=>{this.props.history.push("/")})}goBack(){window.history.back()}render(){const t=[{field:"sessionId",headerName:"sessionId",flex:1},{field:"elapsedTime",headerName:"elapsedTime",flex:1,valueFormatter:sk.elapsedTime,sortComparator:Qa},{field:"actions",headerName:"",width:200,sortable:!1,renderCell:o=>v.jsxs(Go,{direction:"row",spacing:.5,children:[v.jsx(bl,{size:"small",variant:"text",startIcon:v.jsx(ah,{}),onClick:this.sendMessage.bind(this,o.id),children:"Send"}),v.jsx(ev,{title:"Disconnect client",children:v.jsx(Dr,{size:"small",color:"error",onClick:this.disconnectClient.bind(this,o.id),children:v.jsx($k,{fontSize:"small"})})})]})}],n=this.state.clients.map(o=>({id:o.sessionId,sessionId:o.sessionId,elapsedTime:o.elapsedTime,actions:o.sessionId})),r=this.state.maxClients?`${this.state.clients.length} / ${this.state.maxClients}`:`${this.state.clients.length}`;return v.jsxs(go,{children:[v.jsx(sS,{position:"static",elevation:0,sx:{borderBottom:1,borderColor:"divider"},children:v.jsxs(tv,{variant:"dense",children:[v.jsx(Dr,{edge:"start",size:"small",onClick:this.goBack.bind(this),sx:{mr:1},children:v.jsx(Ek,{})}),v.jsxs(sn,{variant:"subtitle1",fontWeight:600,sx:{flexGrow:1},children:["Room ",this.state.roomId]}),v.jsxs(Go,{direction:"row",spacing:1,children:[v.jsx(bl,{size:"small",variant:"outlined",startIcon:v.jsx(ah,{}),onClick:this.sendMessage.bind(this,void 0),children:"Broadcast"}),v.jsx(bl,{size:"small",variant:"outlined",color:"error",startIcon:v.jsx(Iv,{}),onClick:this.disposeRoom.bind(this),children:"Dispose"})]})]})}),v.jsx(TS,{maxWidth:"lg",sx:{py:3},children:v.jsxs(Go,{spacing:2,children:[v.jsxs(Go,{direction:"row",spacing:1.5,children:[v.jsx(Df,{icon:this.state.locked?v.jsx(Ik,{sx:{fontSize:14}}):v.jsx(Mk,{sx:{fontSize:14}}),label:"Status",value:this.state.locked?"Locked":"Unlocked"}),v.jsx(Df,{icon:v.jsx($v,{sx:{fontSize:14}}),label:"Clients",value:r}),v.jsx(Df,{icon:v.jsx(Rk,{sx:{fontSize:14}}),label:"State Size",value:`${this.state.stateSize} B`})]}),v.jsx(wr,{variant:"outlined",sx:{overflow:"hidden"},children:v.jsxs(nW,{value:this.state.currentTab,children:[v.jsx(go,{sx:{borderBottom:1,borderColor:"divider"},children:v.jsxs(oW,{onChange:this.handleTabChange,variant:"fullWidth",children:[v.jsx(N0,{label:v.jsxs(go,{sx:{display:"flex",alignItems:"center"},children:["Clients ",v.jsx(Kg,{size:"small",label:this.state.clients.length,sx:{ml:1}})]}),value:"1"}),v.jsx(N0,{label:"State",value:"2"})]})}),v.jsx(jC,{value:"1",sx:{p:0},children:v.jsx(tk,{columns:t,rows:n,autoHeight:!0,sx:{border:0,"& .MuiDataGrid-columnHeaders":{bgcolor:"action.hover"},"& .MuiDataGrid-cell":{display:"flex",alignItems:"center"}},disableRowSelectionOnClick:!0,hideFooter:!0})}),v.jsx(jC,{value:"2",sx:{p:0},children:v.jsx(go,{sx:{p:1},children:v.jsx(_C,{rootName:"",data:this.state.state,onUpdate:this.handleStateEdit,onDelete:this.handleStateDelete,restrictEdit:({value:o})=>typeof o=="object"&&o!==null,restrictTypeSelection:!0,restrictAdd:!0})})})]})})]})}),v.jsxs(K_,{open:this.state.sendDialogOpen,onClose:this.handleCloseSend,maxWidth:"sm",fullWidth:!0,children:[v.jsx(cL,{children:this.state.sendDialogTitle}),v.jsx(lL,{children:v.jsxs(Go,{spacing:2,sx:{mt:1},children:[v.jsx(GS,{label:"Message type",size:"small",fullWidth:!0,value:this.state.sendType,onChange:this.updateSendType}),v.jsxs(go,{children:[v.jsx(sn,{variant:"caption",color:"text.secondary",sx:{mb:.5,display:"block"},children:"Message payload"}),v.jsx(_C,{rootName:"",data:this.state.sendData,onUpdate:({newData:o})=>this.updateSendData(o)})]})]})}),v.jsxs(Z_,{sx:{px:3,pb:2},children:[v.jsx(bl,{variant:"text",color:"inherit",onClick:this.handleCloseSend,children:"Cancel"}),v.jsx(bl,{variant:"contained",disableElevation:!0,onClick:this.handleSend,children:"Send"})]})]})]})}}const $W=uM();function RW(){const e=hR("(prefers-color-scheme: dark)"),t=tn.useMemo(()=>_g({palette:{mode:e?"dark":"light"}}),[e]);return v.jsx($d,{history:$W,children:v.jsxs(vO,{theme:t,children:[v.jsx(b_,{}),v.jsx(N5,{}),v.jsx(Oa,{exact:!0,path:"/",component:h9}),v.jsx(Oa,{path:"/room/:roomId",component:MW})]})})}Xw(document.getElementById("app")).render(v.jsx(RW,{}));
247
- //# sourceMappingURL=index-D9MoG02G.js.map
246
+ `).map(u=>Math.ceil(u.length/a)).reduce((u,p)=>u+p,0)*i;return Math.min(c+30,window.innerHeight-50)},pd=({isEditingKey:e,canEditKey:t,pathString:n,path:r,name:o,arrayIndexFromOne:l,handleKeyboard:s,handleEditKey:i,handleCancel:a,handleClick:c,keyValueArray:u,styles:p,getNextOrPrevious:f,emptyStringKey:g})=>{const{setCurrentlyEditingElement:h}=Gl(),b=typeof o=="number"?String(o+(l?1:0)):o;return e?v.jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:n,defaultValue:b,autoFocus:!0,onFocus:w=>w.target.select(),onKeyDown:w=>s(w,{stringConfirm:()=>i(w.target.value),cancel:a,tabForward:()=>{if(i(w.target.value),u){const C=u==null?void 0:u[0][0];h(C?[...r,C]:f("next"))}else h(r)},tabBack:()=>{i(w.target.value),h(f("prev"))}}),style:{width:b.length/1.5+.5+"em"}}):v.jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},p),{minWidth:`${Math.min(b.length+1,5)}ch`,flexShrink:b.length>10?1:0}),onDoubleClick:()=>t&&h(r,"key"),onClick:c,children:[g?v.jsx("span",{className:"jer-empty-string",children:g}):b,b!==""||g?v.jsx("span",{className:"jer-key-colon",children:":"}):null]})},bk=e=>{const{data:t,parentData:n,onEdit:r,onDelete:o,onChange:l,onMove:s,enableClipboard:i,canDragOnto:a,restrictTypeSelection:c,searchFilter:u,searchText:p,showLabel:f,stringTruncate:g,showStringQuotes:h,arrayIndexFromOne:b,indent:w,translate:C,customNodeDefinitions:y,customNodeData:x,handleKeyboard:S,keyboardControls:T,sort:P,editConfirmRef:k,jsonStringify:E,showIconTooltips:_}=e,{getStyles:R}=uo(),{setCurrentlyEditingElement:F,setCollapseState:L,previouslyEditedElement:O,setPreviouslyEditedElement:I,tabDirection:$,setTabDirection:j,previousValue:N,setPreviousValue:M}=Gl(),[D,A]=d.useState(typeof t=="function"?ih:t),{pathString:H,nodeData:z,path:W,name:G,canEdit:q,canDelete:re,canDrag:ae,error:ce,onError:ue,handleEditKey:ye,emptyStringKey:de,derivedValues:he}=vk({props:e}),{dragSourceProps:Y,getDropTargetProps:pe,BottomDropTarget:ee,DropTargetPadding:Z}=yk({canDrag:ae,canDragOnto:a,path:W,nodeData:z,onMove:s,onError:ue,translate:C}),[fe,le]=d.useState(ah(t,x)),ge=d.useCallback(Pe=>{if(!l)return void A(Pe);const Ge=l({currentData:z.fullData,newValue:Pe,currentValue:D,name:G,path:W});A(Ge)},[l]);d.useEffect(()=>{A(typeof t=="function"?ih:t),le(ah(t,x))},[t,ce]);const{CustomNode:me,customNodeProps:Ie,hideKey:Se,showEditTools:te=!0,showOnEdit:oe,showOnView:xe,passOriginalNode:Oe}=x,Ve=[...G9,...y.filter(({showInTypesSelector:Pe=!1,name:Ge})=>Pe&&!!Ge).map(({name:Pe})=>Pe)],Te=d.useMemo(()=>{if(typeof c=="boolean")return c?[]:Ve;if(Array.isArray(c))return c;const Pe=c(z);return typeof Pe=="boolean"?Pe?[]:Ve:Pe},[z,c]),[se,qe]=d.useState(((Pe,Ge)=>{var rt;if(typeof Pe!="string")return null;const _t=Ge.filter(dt=>dt instanceof Object&&dt.enum&&dt.values.includes(Pe)&&dt.matchPriority);return _t.sort((dt,st)=>{var ut,Et;return((ut=st.matchPriority)!==null&&ut!==void 0?ut:0)-((Et=dt.matchPriority)!==null&&Et!==void 0?Et:0)}),(rt=_t[0])!==null&&rt!==void 0?rt:null})(D,Te)),{isEditing:tt}=he,Xe=uk("value",z,u,p);if(tt&&(!Xe||!q)){const Pe=kl(z.fullData,W,$,P);F(Pe||O)}if(!Xe)return null;const be=Pe=>{let Ge;if(F(null),M(null),Pe===void 0||(rt=>rt&&typeof rt=="object"&&"type"in rt&&"target"in rt&&"preventDefault"in rt&&typeof rt.preventDefault=="function")(Pe))switch(fe){case"object":Ge={[C("DEFAULT_NEW_KEY",z)]:D};break;case"array":Ge=D??[];break;case"number":{const rt=Number(D);Ge=isNaN(rt)?0:rt;break}default:Ge=D}else Ge=Pe;r(Ge,W).then(rt=>{rt&&ue({code:"UPDATE_ERROR",message:rt},Ge)})},je=()=>{F(null),N===null?(A(t),M(null)):r(N,W)},{isEditingKey:ie,canEditKey:Ee}=he,Ae=!tt&&ce,Ne=tt&&Te.length>1,Ye=(fe!=="invalid"||me)&&!ce&&te,$e=f&&!Se,Ce=me&&(tt&&oe||!tt&&xe),Me={value:D,parentData:n,setValue:ge,isEditing:tt,canEdit:q,setIsEditing:q?()=>F(W):()=>{},handleEdit:be,handleCancel:je,path:W,stringTruncate:g,showStringQuotes:h,nodeData:z,enumType:se,translate:C,handleKeyboard:S,keyboardCommon:{cancel:je,tabForward:()=>{j("next"),I(H);const Pe=kl(z.fullData,W,"next",P);Pe&&(be(),F(Pe))},tabBack:()=>{j("prev"),I(H);const Pe=kl(z.fullData,W,"prev",P);Pe&&(be(),F(Pe))}}},We={canEditKey:Ee,isEditingKey:ie,pathString:H,path:W,name:G,arrayIndexFromOne:b,handleKeyboard:S,handleEditKey:ye,handleCancel:je,styles:R("property",z),getNextOrPrevious:Pe=>kl(z.fullData,W,Pe,P),emptyStringKey:de},Qe=Ce?v.jsx(me,Object.assign({},e,{value:D,customNodeProps:Ie,setValue:ge,handleEdit:be,handleCancel:je,handleKeyPress:Pe=>S(Pe,{stringConfirm:be,cancel:je}),isEditing:tt,setIsEditing:()=>F(W),getStyles:R,originalNode:Oe?OC(t,Me):void 0,originalNodeKey:Oe?v.jsx(pd,Object.assign({},We)):void 0,canEdit:q,keyboardCommon:Me.keyboardCommon,onError:ue})):OC(t,Me);return v.jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:n!==null?w/2+"em":0,position:"relative"},draggable:ae},Y,pe("above"),{children:[ee,v.jsx(Z,{position:"above",nodeData:z}),v.jsxs("div",{className:"jer-value-main-row",style:{flexWrap:G.length>10?"wrap":"nowrap"},children:[$e&&v.jsx(pd,Object.assign({},We)),v.jsxs("div",{className:"jer-value-and-buttons",children:[v.jsx("div",{className:"jer-input-component",children:Qe}),tt?v.jsx(jv,{onOk:be,onCancel:je,nodeData:z,editConfirmRef:k}):Ye&&v.jsx(gk,{startEdit:q?()=>{M(N),F(W,je)}:void 0,handleDelete:re?()=>{o(D,W).then(Pe=>{Pe&&ue({code:"DELETE_ERROR",message:Pe},D)})}:void 0,enableClipboard:i,translate:C,customButtons:e.customButtons,nodeData:z,handleKeyboard:S,keyboardControls:T,editConfirmRef:k,jsonStringify:E,showIconTooltips:_}),Ne&&v.jsxs("div",{className:"jer-select jer-select-types",children:[v.jsx("select",{name:`${G}-type-select`,className:"jer-select-inner",onChange:Pe=>(Ge=>{const rt=y.find(st=>st.name===Ge);if(rt)return r(rt.defaultValue,W),le(Ge),qe(null),F(null),void L({path:W,collapsed:!1,includeChildren:!1});const _t=Te.find(st=>st instanceof Object&&st.enum===Ge);if(_t)return typeof D=="string"&&_t.values.includes(D)||r(_t.values[0],W).then(st=>{st&&(ue({code:"UPDATE_ERROR",message:st},dt),F(null))}),void qe(_t);const dt=U9(D,Ge,C("DEFAULT_NEW_KEY",z),x!=null&&x.CustomNode?C("DEFAULT_STRING",z):void 0);["string","number","boolean"].includes(Ge)||F(null),r(dt,W).then(st=>{st?(ue({code:"UPDATE_ERROR",message:st},dt),F(null)):qe(null)})})(Pe.target.value),value:se?se.enum:fe,children:Te.map(Pe=>Pe instanceof Object&&"enum"in Pe?v.jsx("option",{value:Pe.enum,children:Pe.enum},Pe.enum):v.jsx("option",{value:Pe,children:Pe},Pe))}),v.jsx("span",{className:"focus"})]}),Ae&&v.jsx("span",{className:"jer-error-slug",style:R("error",z),children:ce})]})]}),v.jsx(Z,{position:"below",nodeData:z})]}))},ah=(e,t)=>t!=null&&t.CustomNode&&(t!=null&&t.name)&&t.showInTypesSelector?t.name:typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":e===null?"null":"invalid",OC=(e,t)=>{const n=ah(e),{value:r}=t;switch(n){case"string":return v.jsx(R9,Object.assign({},t,{value:r}));case"number":return v.jsx(T9,Object.assign({},t,{value:r}));case"boolean":return v.jsx(O9,Object.assign({},t,{value:r}));case"null":return v.jsx(D9,Object.assign({},t));default:return v.jsx(j9,Object.assign({},t))}},U9=(e,t,n,r)=>{switch(t){case"string":return r??String(e);case"number":{const o=Number(e);return isNaN(o)?0:o}case"boolean":return!!e;case"null":return null;case"object":return{[n]:e};case"array":return[e];default:return String(e)}},Ck=(e=[],t)=>{const n=e.filter(({condition:h})=>h(t));if(n.length===0)return{};const r=n[0],{element:o,wrapperElement:l,customNodeProps:s,wrapperProps:i,hideKey:a=!1,showEditTools:c=!0,showOnEdit:u=!1,showOnView:p=!0,showCollectionWrapper:f=!0}=r,g=ak(r,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:o,CustomWrapper:l,customNodeProps:s,wrapperProps:i,hideKey:a,showEditTools:c,showOnEdit:u,showOnView:p,showCollectionWrapper:f},g)},xk=e=>{const{getStyles:t}=uo(),{collapseState:n,setCollapseState:r,getMatchingCollapseState:o,currentlyEditingElement:l,setCurrentlyEditingElement:s,areChildrenBeingEdited:i,previousValue:a,setPreviousValue:c}=Gl(),{mainContainerRef:u,data:p,nodeData:f,parentData:g,showCollectionCount:h,onEdit:b,onAdd:w,onDelete:C,canDragOnto:y,collapseFilter:x,collapseAnimationTime:S,onMove:T,enableClipboard:P,onEditEvent:k,showIconTooltips:E,searchFilter:_,searchText:R,indent:F,sort:L,showArrayIndices:O,arrayIndexFromOne:I,defaultValue:$,newKeyOptions:j,translate:N,customNodeDefinitions:M,customNodeData:D,jsonParse:A,jsonStringify:H,TextEditor:z,keyboardControls:W,handleKeyboard:G,insertAtTop:q,onCollapse:re,editConfirmRef:ae,collapseClickZones:ce}=e,[ue,ye]=d.useState(H(p)),de=x(f),{contentRef:he,isAnimating:Y,maxHeight:pe,collapsed:ee,animateCollapse:Z,cssTransitionValue:fe}=((Ue,Pt,Ir,or,Wr)=>{const[Ok,gc]=d.useState(Ir?0:void 0),[vc,Fk]=d.useState(Ir),Tp=d.useRef(!1),Op=d.useRef(null),Wv=d.useRef(0),Uv=d.useRef(0),Dk=Pt/1e3+"s",jk=d.useCallback(Fp=>{var Dp,jp;if(vc!==Fp){switch(window.clearTimeout(Uv.current),Tp.current=!0,Fp){case!0:{const Kv=(jp=(Dp=Op.current)===null||Dp===void 0?void 0:Dp.offsetHeight)!==null&&jp!==void 0?jp:0;Wv.current=Kv,gc(Kv),setTimeout(()=>{gc(0)},5);break}case!1:gc(Wv.current||W9(Ue,Op,or,Wr))}Fk(!vc),Uv.current=window.setTimeout(()=>{Tp.current=!1,Fp||gc(void 0)},Pt)}},[Pt,vc,Ue,or,Wr]);return{contentRef:Op,isAnimating:Tp.current,animateCollapse:jk,maxHeight:Ok,collapsed:vc,cssTransitionValue:Dk}})(p,S,de,u,H),{pathString:le,nodeData:ge,path:me,name:Ie,size:Se,canEdit:te,canDelete:oe,canAdd:xe,canDrag:Oe,error:Ve,setError:Te,onError:se,handleEditKey:qe,emptyStringKey:tt,derivedValues:Xe}=vk({props:e,collapsed:ee}),{dragSourceProps:be,getDropTargetProps:je,BottomDropTarget:ie,DropTargetPadding:Ee}=yk({canDrag:Oe,canDragOnto:y,path:me,nodeData:ge,onMove:T,onError:se,translate:N}),Ae=d.useRef(!de),{isEditing:Ne,isEditingKey:Ye,isArray:$e,canEditKey:Ce}=Xe;d.useEffect(()=>{ye(H(p))},[p,H]),d.useEffect(()=>{const Ue=x(ge)&&!Ne;Ae.current=!Ue,Z(Ue)},[x]),d.useEffect(()=>{if(n!==null){const Ue=o(me);Ue&&(Ae.current=!0,Z(Ue.collapsed))}},[n]);const Me=d.useRef(null),We=d.useCallback((Ue,Pt)=>{if(typeof $!="function")return $;const Ir=$(Ue,Pt);return Ir!==void 0?Ir:null},[$]),Qe=d.useCallback(Ue=>j?typeof j!="function"?j:j(Ue):null,[j]),{CustomNode:Pe,customNodeProps:Ge,CustomWrapper:rt,wrapperProps:_t={},hideKey:dt,showEditTools:st=!0,showOnEdit:ut,showOnView:Et,showCollectionWrapper:Kt=!0}=D,pn=i(le);if(pn&&ee&&Z(!1),!(uk("collection",ge,_,R)||ge.level===0)&&!pn)return null;const fn=Array.isArray(p)?"array":"object",mn=fn==="array"?{open:"[",close:"]"}:{open:"{",close:"}"},kr=Ue=>{if(Ue.key!=="Tab"||Ue.getModifierState("Shift"))G(Ue,{objectConfirm:xn,cancel:J});else{Ue.preventDefault();const Pt=pk(Me," ");ye(Pt)}},Bn=Ue=>{Ue.stopPropagation();const Pt=Fv(Ue);if(Pt&&W.collapseModifier.includes(Pt))return Ae.current=!0,void r({collapsed:!ee,path:me,includeChildren:!0});l&&l.includes(le)||(Ae.current=!0,r(null),re&&re({path:me,collapsed:!ee,includeChildren:!1}),Z(!ee))},xn=()=>{try{const Ue=A(ue);if(s(null),c(null),Te(null),H(Ue)===H(p))return;b(Ue,me).then(Pt=>{Pt&&se({code:"UPDATE_ERROR",message:Pt},Ue)})}catch{se({code:"INVALID_JSON",message:N("ERROR_INVALID_JSON",ge)},ue)}},Er=me.length>0?()=>{C(p,me).then(Ue=>{Ue&&se({code:"DELETE_ERROR",message:Ue},p)})}:void 0,J=()=>{s(null),a===null?(Te(null),ye(H(p)),c(null)):b(a,me)},U=h==="when-closed"?ee:h,ke=!Ne&&st,ze=(O||!$e)&&!dt&&Ie!==void 0,Je=Pe&&(Ne&&ut||!Ne&&Et),_e=Object.entries(p).map(([Ue,Pt])=>[fn==="array"?Number(Ue):Ue,Pt]);fn==="object"&&L(_e,Ue=>Ue);const lt=Ae.current?Ne?v.jsxs("div",{className:"jer-collection-text-edit",children:[z?v.jsx(z,{value:ue,onChange:ye,onKeyDown:Ue=>G(Ue,{objectConfirm:xn,cancel:J})}):v.jsx(ck,{textAreaRef:Me,className:"jer-collection-text-area",name:le,value:ue,setValue:ye,handleKeyPress:kr,styles:t("input",ge)}),v.jsx("div",{className:"jer-collection-input-button-row",children:v.jsx(jv,{onOk:xn,onCancel:J,nodeData:ge,editConfirmRef:ae})})]}):_e.map(([Ue,Pt],Ir)=>{const or={key:Ue,value:Pt,path:[...me,Ue],level:me.length+1,index:Ir,size:li(Pt)?Object.keys(Pt).length:null,parentData:p,fullData:ge.fullData},Wr=Ck(M,or);return v.jsx("div",{className:"jer-collection-element",style:t("collectionElement",or),children:li(Pt)&&!(Wr!=null&&Wr.renderCollectionAsValue)?v.jsx(xk,Object.assign({},e,{data:Pt,parentData:p,nodeData:or,showCollectionCount:h,canDragOnto:te,customNodeData:Wr}),Ue):v.jsx(bk,Object.assign({},e,{data:Pt,parentData:p,nodeData:or,canDragOnto:te,showLabel:fn==="object"||O,customNodeData:Wr}),Ue)},Ue)}):null,$n=!!Kt&&ee&&!pn;$n||(Ae.current=!0);const Si=Object.assign(Object.assign({},e),{data:p,value:p,parentData:g,nodeData:ge,setValue:Ue=>fs(void 0,void 0,void 0,function*(){return yield b(Ue,me)}),handleEdit:xn,handleCancel:J,handleKeyPress:kr,isEditing:Ne,setIsEditing:()=>s(me),getStyles:t,canDragOnto:te,canEdit:te,keyboardCommon:{},onError:se}),Tk=Je?v.jsx(Pe,Object.assign({customNodeProps:Ge},Si,{children:lt})):lt,Bv=ke&&v.jsx(gk,{startEdit:te?()=>{Ae.current=!0,c(null),s(me)}:void 0,handleAdd:xe?Ue=>{Z(!1);const Pt=We(ge,Ue);if(fn==="array"){const Ir=q.array?0:p.length,or=q.array?{insert:!0}:{};w(Pt,[...me,Ir],or).then(Wr=>{Wr&&se({code:"ADD_ERROR",message:Wr},Pt)})}else if(Ue in p)se({code:"KEY_EXISTS",message:N("ERROR_KEY_EXISTS",ge)},Ue);else{const Ir=q.object?{insertBefore:0}:{};w(Pt,[...me,Ue],Ir).then(or=>{or&&se({code:"ADD_ERROR",message:or},Pt)})}}:void 0,handleDelete:oe?Er:void 0,enableClipboard:P,type:fn,nodeData:ge,translate:N,customButtons:e.customButtons,keyboardControls:W,handleKeyboard:G,getNewKeyOptions:Qe,editConfirmRef:ae,jsonStringify:H,onEditEvent:k,showIconTooltips:E}),Vv={canEditKey:Ce,isEditingKey:Ye,pathString:le,path:me,name:Ie,arrayIndexFromOne:I,handleKeyboard:G,handleEditKey:qe,handleCancel:J,keyValueArray:_e,styles:t("property",ge),getNextOrPrevious:Ue=>kl(ge.fullData,me,Ue,L),handleClick:ce.includes("property")?Bn:Ue=>Ue.stopPropagation(),emptyStringKey:tt},Gv=v.jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(me.length===0?0:F/2)+"em"},t("collection",ge)),{position:"relative"}),draggable:Oe},be,je("above"),{children:[v.jsx("div",{className:"jer-clickzone",style:{width:F/2+1+"em",zIndex:10+2*ge.level},onClick:ce.includes("left")?Bn:void 0}),!Ne&&ie,v.jsx(Ee,{position:"above",nodeData:ge}),Kt?v.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:ce.includes("header")?Bn:void 0,children:[v.jsxs("div",{className:"jer-collection-name",children:[v.jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ee?" jer-rotate-90":""),style:{zIndex:11+2*ge.level,transition:fe},onClick:Bn,children:v.jsx(El,{name:"chevron",rotate:ee,nodeData:ge})}),ze&&v.jsx(pd,Object.assign({},Vv)),!Ne&&v.jsx("span",{className:"jer-brackets jer-bracket-open",style:t("bracket",ge),children:mn.open})]}),!Ne&&U&&v.jsx("div",{className:"jer-collection-item-count"+(U?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("itemCount",ge)),{transition:fe}),children:Se===1?N("ITEM_SINGLE",Object.assign(Object.assign({},ge),{size:1}),1):N("ITEMS_MULTIPLE",ge,Se)}),v.jsx("div",{className:"jer-brackets"+($n?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("bracket",ge)),{transition:fe}),children:mn.close}),Bv]}):dt?v.jsx(v.Fragment,{}):v.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[v.jsx(pd,Object.assign({},Vv)),Bv]}),v.jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:$n||Y?"clip":"visible",maxHeight:pn?void 0:pe},t("collectionInner",ge)),{transition:fe}),ref:he,children:[Tk,v.jsx("div",{className:Ne?"jer-collection-error-row":"jer-collection-error-row-edit",children:Ve&&v.jsx("span",{className:"jer-error-slug",style:t("error",ge),children:Ve})}),!Ne&&Kt&&v.jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},t("bracket",ge)),{marginLeft:(F<3?-1:F<6?-.5:0)+"em"}),children:mn.close})]}),v.jsx(Ee,{position:"below",nodeData:ge})]}));return rt?v.jsx(rt,Object.assign({customNodeProps:_t},Si,{children:Gv})):Gv},K9={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>",TOOLTIP_COPY:"Copy to clipboard",TOOLTIP_EDIT:"Edit",TOOLTIP_DELETE:"Delete",TOOLTIP_ADD:"Add"},q9=(e,t)=>(n,r,o)=>((l,s,i,a,c)=>{if(s[a]){const p=s[a](i);if(p!==null)return p}const u=a in l?l[a]:K9[a];return c===void 0?u:u==null?void 0:u.replace("{{count}}",String(c))})(e,t,r,n,o);var FC=[],Hi=[];(function(e,t){if(e&&typeof document<"u"){var n,r=t.prepend===!0?"prepend":"append",o=t.singleTag===!0,l=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(o){var s=FC.indexOf(l);s===-1&&(s=FC.push(l)-1,Hi[s]={}),n=Hi[s]&&Hi[s][r]?Hi[s][r]:Hi[s][r]=i()}else n=i();e.charCodeAt(0)===65279&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function i(){var a=document.createElement("style");if(a.setAttribute("type","text/css"),t.attributes)for(var c=Object.keys(t.attributes),u=0;u<c.length;u++)a.setAttribute(c[u],t.attributes[c[u]]);var p=r==="prepend"?"afterbegin":"beforeend";return l.insertAdjacentElement(p,a),a}})(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Y9=({data:e,setData:t,rootName:n="root",onUpdate:r=()=>{},onEdit:o=r,onDelete:l=r,onAdd:s=r,onChange:i,onError:a,onEditEvent:c,showErrorMessages:u=!0,enableClipboard:p=!0,indent:f=2,collapse:g=!1,collapseAnimationTime:h=300,showCollectionCount:b=!0,restrictEdit:w=!1,restrictDelete:C=!1,restrictAdd:y=!1,restrictTypeSelection:x=!1,restrictDrag:S=!0,viewOnly:T,searchFilter:P,searchText:k,searchDebounceTime:E=350,keySort:_=!1,showArrayIndices:R=!0,arrayIndexFromOne:F=!1,showStringQuotes:L=!0,showIconTooltips:O=!1,defaultValue:I=null,newKeyOptions:$,minWidth:j=250,maxWidth:N="min(600px, 90vw)",rootFontSize:M,stringTruncate:D=250,translations:A={},className:H,id:z,customText:W={},customNodeDefinitions:G=[],customButtons:q=[],jsonParse:re=JSON.parse,jsonStringify:ae=(ee,Z)=>JSON.stringify(ee,Z,2),TextEditor:ce,errorMessageTimeout:ue=2500,keyboardControls:ye={},externalTriggers:de,insertAtTop:he=!1,onCollapse:Y,collapseClickZones:pe=["header","left"]})=>{const{getStyles:ee}=uo(),{setCurrentlyEditingElement:Z}=Gl(),fe=d.useMemo(()=>Vi(g),[g]),le=d.useMemo(()=>q9(A,W),[A,W]),[ge,me]=d.useState(k),[Ie,Se]=(({setData:$e,data:Ce})=>{const[Me,We]=d.useState($e?void 0:Ce),Qe=d.useCallback(Pe=>{$e?$e(Pe):We(Pe)},[$e]);return d.useEffect(()=>{$e||We(Ce)},[Ce]),[$e?Ce:Me,Qe]})({setData:t,data:e}),te=d.useRef(null);d.useEffect(()=>{Z(null);const $e=setTimeout(()=>me(k),E);return()=>clearTimeout($e)},[k,E]);const oe={key:n,path:[],level:0,index:0,value:Ie,size:typeof Ie=="object"&&Ie!==null?Object.keys(Ie).length:1,parentData:null,fullData:Ie},xe=($e,Ce)=>fs(void 0,void 0,void 0,function*(){const Me=yield $e(Ce);if(Me===!0||Me===void 0)return void Se(Ce.newData);const We=Z9(Me)?Me:["error",Me],[Qe,Pe]=We;if(Qe==="error")return Se(Ce.currentData),Pe===!1?le("ERROR_UPDATE",oe):String(Pe);Se(Pe)}),Oe=d.useMemo(()=>Vi(w,T),[w,T]),Ve=d.useMemo(()=>Vi(C,T),[C,T]),Te=d.useMemo(()=>Vi(y,T),[y,T]),se=d.useMemo(()=>Vi(S,T),[S,T]),qe=d.useMemo(()=>X9(P),[P]),tt=d.useMemo(()=>($e=>{const Ce=Object.assign({},RC);for(const Me of Object.keys(RC)){const We=Me;if($e[We]){const Qe=$e[We],Pe=["clipboardModifier","collapseModifier"].includes(Me)?Array.isArray(Qe)?Qe:[Qe]:typeof Qe=="string"?{key:Qe}:Qe;Ce[We]=Pe,["stringConfirm","numberConfirm","booleanConfirm"].forEach(Ge=>{!$e[Ge]&&$e.confirm&&(Ce[Ge]=Ce.confirm)})}}return Ce})(ye),[ye]),Xe=d.useCallback(($e,Ce)=>((Me,We,Qe)=>{const Pe=Object.entries(We);for(const[Ge,rt]of Pe)if(x9(Qe,Me[Ge],Ge)){Qe.preventDefault(),rt();break}})(tt,Ce,$e),[tt]),be=d.useMemo(()=>{const $e=DC(G,"stringifyReplacer");return Ce=>ae(Ce,$e)},[G,ae]),je=d.useMemo(()=>{const $e=DC(G,"parseReviver");return Ce=>{const Me=re(Ce,$e);return sh(Me)}},[G,re]),ie=d.useRef(null);(($e,Ce)=>{const{setCurrentlyEditingElement:Me,currentlyEditingElement:We,setCollapseState:Qe}=Gl();d.useEffect(()=>{if(!$e)return;const{collapse:Pe,edit:Ge}=$e;Pe&&Qe(Pe);const rt=!(Ge!=null&&Ge.path)||Zl(Ge.path)===We;switch(Ge==null?void 0:Ge.action){case"accept":rt&&(Ce.current&&Ce.current.click(),Me(null));break;case"cancel":rt&&Me(null);break;default:Ge!=null&&Ge.path&&Me(Ge.path)}},[$e])})(de,ie);const Ee=d.useCallback(($e,Ce)=>{_!==!1&&(typeof _!="function"?$e.sort((Me,We)=>{const Qe=Ce(Me)[0],Pe=Ce(We)[0];return Qe<Pe?-1:Qe>Pe?1:0}):$e.sort((Me,We)=>_(Ce(Me),Ce(We))))},[_]),Ae=Ck(G,oe),Ne={mainContainerRef:te,name:n,nodeData:oe,onEdit:($e,Ce)=>fs(void 0,void 0,void 0,function*(){const{currentData:Me,newData:We,currentValue:Qe,newValue:Pe}=Bi(Ie,Ce,$e,"update");if(Qe!==Pe)return yield xe(o,{currentData:Me,newData:We,currentValue:Qe,newValue:Pe,name:Ce.slice(-1)[0],path:Ce})}),onDelete:($e,Ce)=>fs(void 0,void 0,void 0,function*(){const{currentData:Me,newData:We,currentValue:Qe,newValue:Pe}=Bi(Ie,Ce,$e,"delete");return yield xe(l,{currentData:Me,newData:We,currentValue:Qe,newValue:Pe,name:Ce.slice(-1)[0],path:Ce})}),onAdd:($e,Ce,Me)=>fs(void 0,void 0,void 0,function*(){const{currentData:We,newData:Qe,currentValue:Pe,newValue:Ge}=Bi(Ie,Ce,$e,"add",Me);return yield xe(s,{currentData:We,newData:Qe,currentValue:Pe,newValue:Ge,name:Ce.slice(-1)[0],path:Ce})}),onChange:i,onError:a,onEditEvent:c,showErrorMessages:u,onMove:($e,Ce,Me)=>fs(void 0,void 0,void 0,function*(){if($e===null)return;const{currentData:We,newData:Qe,currentValue:Pe}=Bi(Ie,$e,"","delete"),Ge=$e.slice(-1)[0],rt=Ce.slice(0,-1),_t=Ce.slice(-1)[0];let dt=typeof _t=="number"?Me==="above"?_t:_t+1:typeof Ge=="number"?`arr_${Ge}`:Ge;$e.slice(0,-1).join(".")===Ce.slice(0,-1).join(".")&&typeof Ge=="number"&&typeof dt=="number"&&Ge<dt&&(dt-=1);const st=typeof dt=="number"?{insert:!0}:Me==="above"?{insertBefore:_t}:{insertAfter:_t},{newData:ut,newValue:Et}=Bi(Qe,[...rt,dt],Pe,"add",st);return yield xe(o,{currentData:We,newData:ut,currentValue:Pe,newValue:Et,name:Ce.slice(-1)[0],path:Ce})}),showCollectionCount:b,collapseFilter:fe,collapseAnimationTime:h,restrictEditFilter:Oe,restrictDeleteFilter:Ve,restrictAddFilter:Te,restrictTypeSelection:x,restrictDragFilter:se,canDragOnto:!1,searchFilter:qe,searchText:ge,enableClipboard:p,keySort:_,sort:Ee,showArrayIndices:R,arrayIndexFromOne:F,showStringQuotes:L,showIconTooltips:O,indent:f,defaultValue:I,newKeyOptions:$,stringTruncate:D,translate:le,customNodeDefinitions:G,customNodeData:Ae,customButtons:q,parentData:null,jsonParse:je,jsonStringify:be,TextEditor:ce,errorMessageTimeout:ue,handleKeyboard:Xe,keyboardControls:tt,insertAtTop:{object:he===!0||he==="object",array:he===!0||he==="array"},onCollapse:Y,editConfirmRef:ie,collapseClickZones:pe},Ye=Object.assign(Object.assign({},ee("container",oe)),{minWidth:j,maxWidth:N});return Ye.fontSize=M??Ye.fontSize,v.jsx("div",{id:z,ref:te,className:`jer-editor-container ${H??""}`,style:Ye,children:li(Ie)&&!Ae.renderCollectionAsValue?v.jsx(xk,Object.assign({data:Ie},Ne)):v.jsx(bk,Object.assign({data:Ie,showLabel:!0},Ne))})},Q9=e=>{var t;const[n,r]=d.useState();return d.useEffect(()=>{const o=document.documentElement;r(o)},[]),n?v.jsx(S9,{theme:(t=e.theme)!==null&&t!==void 0?t:Dv,icons:e.icons,docRoot:n,children:v.jsx(I9,{onEditEvent:e.onEditEvent,onCollapse:e.onCollapse,children:v.jsx(Y9,Object.assign({},e))})}):null},Bi=(e,t,n,r,o={})=>{if(t.length===0)return{currentData:e,newData:n,currentValue:e,newValue:n};const l=Object.assign({remove:r==="delete"},o),s=r!=="add"?oi(e,t):void 0;return{currentData:e,newData:g9(e,t,n,l),currentValue:s,newValue:r!=="delete"?n:void 0}},Vi=(e,t)=>t?()=>!0:typeof e=="boolean"?()=>e:typeof e=="number"?({level:n})=>n>=e:e,X9=e=>{if(e!==void 0)return e==="value"?si:e==="key"?$C:e==="all"?(t,n)=>si(t,n)||$C(t,n):e},Z9=e=>Array.isArray(e)&&e.length===2&&["error","value"].includes(e[0]),DC=(e,t)=>{const n=t==="stringifyReplacer"?[r=>r===void 0?fk:r]:[];if(n.push(...e.map(r=>r[t]).filter(r=>!!r)),n.length!==0)return(r,o)=>{let l=o;for(const s of n)l=s(l);return l}},J9={displayName:"Github Dark",styles:{container:{backgroundColor:"#0d1117",color:"white"},dropZone:"rgba(165, 214, 255, 0.17)",property:"#E6EDF3",bracket:"#56d364",itemCount:"#8B949E",string:"#A5D6FF",number:"#D2A8FF",boolean:{color:"#FF7B72",fontSize:"90%",fontWeight:"bold"},null:"green",iconCollection:"#D2A8FF",iconEdit:"#D2A8FF",iconDelete:"rgb(203, 75, 22)",iconAdd:"rgb(203, 75, 22)",iconCopy:"#A5D6FF",iconOk:"#56d364",iconCancel:"rgb(203, 75, 22)"}},eW={displayName:"Github Light",styles:{container:"white",property:"#1F2328",bracket:"#00802e",itemCount:"#8B949E",string:"#0A3069",number:"#953800",boolean:{color:"#CF222E",fontSize:"90%",fontWeight:"bold"},null:"#FF7B72",iconCollection:"#8250DF",iconEdit:"#8250DF",iconDelete:"rgb(203, 75, 22)",iconAdd:"#8250DF",iconCopy:"#57606A"}},wk=d.createContext(null);function tW(){const[e,t]=d.useState(null);return d.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function nW(e){const{children:t,value:n}=e,r=tW(),o=d.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return v.jsx(wk.Provider,{value:o,children:t})}function Sk(){return d.useContext(wk)}function Pk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function kk(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const rW=["children"],oW=d.forwardRef(function(t,n){const{children:r}=t,o=K(t,rW),l=Sk();if(l===null)throw new TypeError("No TabContext provided");const s=d.Children.map(r,i=>d.isValidElement(i)?d.cloneElement(i,{"aria-controls":Pk(l,i.props.value),id:kk(l,i.props.value)}):null);return v.jsx(O5,m({},o,{ref:n,value:l.value,children:s}))});function lW(e){return He("MuiTabPanel",e)}Be("MuiTabPanel",["root"]);const sW=["children","className","value"],iW=e=>{const{classes:t}=e;return we({root:["root"]},lW,t)},aW=X("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),jC=d.forwardRef(function(t,n){const r=eS({props:t,name:"MuiTabPanel"}),{children:o,className:l,value:s}=r,i=K(r,sW),a=m({},r),c=iW(a),u=Sk();if(u===null)throw new TypeError("No TabContext provided");const p=Pk(u,s),f=kk(u,s);return v.jsx(aW,m({"aria-labelledby":f,className:ne(c.root,l),hidden:s!==u.value,id:p,ref:n,role:"tabpanel",ownerState:a},i,{children:s===u.value&&o}))});var _v={},cW=zn;Object.defineProperty(_v,"__esModule",{value:!0});var Ek=_v.default=void 0,uW=cW(Pr()),dW=v;Ek=_v.default=(0,uW.default)((0,dW.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var Lv={},pW=zn;Object.defineProperty(Lv,"__esModule",{value:!0});var Ik=Lv.default=void 0,fW=pW(Pr()),mW=v;Ik=Lv.default=(0,fW.default)((0,mW.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-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Nv={},hW=zn;Object.defineProperty(Nv,"__esModule",{value:!0});var Mk=Nv.default=void 0,gW=hW(Pr()),vW=v;Mk=Nv.default=(0,gW.default)((0,vW.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var Av={},yW=zn;Object.defineProperty(Av,"__esModule",{value:!0});var ch=Av.default=void 0,bW=yW(Pr()),CW=v;ch=Av.default=(0,bW.default)((0,CW.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var zv={},xW=zn;Object.defineProperty(zv,"__esModule",{value:!0});var $k=zv.default=void 0,wW=xW(Pr()),SW=v;$k=zv.default=(0,wW.default)((0,SW.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"DoDisturbOn");var Hv={},PW=zn;Object.defineProperty(Hv,"__esModule",{value:!0});var Rk=Hv.default=void 0,kW=PW(Pr()),EW=v;Rk=Hv.default=(0,kW.default)((0,EW.jsx)("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObjectOutlined");function _C(e){const t=Vr();return v.jsx(Q9,{...e,theme:t.palette.mode==="dark"?J9:eW})}function jf({icon:e,label:t,value:n}){return v.jsxs(Sr,{variant:"outlined",sx:{px:2.5,py:1.5,textAlign:"center"},children:[v.jsxs(Zt,{variant:"caption",color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:.5,fontSize:"0.7rem"},children:[e&&v.jsx(Kn,{component:"span",sx:{verticalAlign:"middle",mr:.5},children:e}),t]}),v.jsx(Zt,{variant:"h6",fontWeight:600,sx:{mt:.25},children:n})]})}const IW=5e3,LC="$$colyseus$type",NC="$$colyseus$data";class MW extends d.Component{constructor(){super(...arguments),this.state={roomId:void 0,state:{},clients:[],maxClients:0,stateSize:0,locked:!1,currentTab:"1",sendDialogTitle:"",sendDialogOpen:!1,sendToClient:void 0,sendType:localStorage.getItem(LC)||"message_type",sendData:JSON.parse(localStorage.getItem(NC)||"{}")},this.updateSendType=t=>{const n=t.target.value;localStorage.setItem(LC,n),this.setState({sendType:n})},this.updateSendData=t=>{localStorage.setItem(NC,JSON.stringify(t)),this.state.sendData=t},this.handleCloseSend=()=>{this.setState({sendDialogOpen:!1})},this.handleSend=()=>{(this.state.sendToClient?this.roomCall("_sendMessageToClient",this.state.sendToClient,this.state.sendType,this.state.sendData):this.roomCall("broadcast",this.state.sendType,this.state.sendData)).then(()=>this.handleCloseSend())},this.handleTabChange=(t,n)=>{this.setState({currentTab:n})},this.handleStateEdit=({newValue:t,path:n})=>{this.roomCall("_editStateProperty",n,t).then(()=>this.fetchRoomData())},this.handleStateDelete=({path:t})=>{this.roomCall("_deleteStateProperty",t).then(()=>this.fetchRoomData())}}componentDidMount(){this.fetchRoomData()}fetchRoomData(){const t=this.props.match.params.roomId;H5(t).then(n=>this.setState(n)).catch(n=>console.error(n)),clearInterval(this.updateDataInterval),this.updateDataInterval=window.setInterval(()=>this.fetchRoomData(),IW)}roomCall(t,...n){const r=this.props.match.params.roomId;return WS(r,t,...n).then(o=>console.log(o)).catch(o=>console.error(o))}componentWillUnmount(){clearInterval(this.updateDataInterval)}sendMessage(t){const n=t||void 0;let r=t?`Send message to client (${t})`:"Broadcast message to all clients";this.setState({sendToClient:n,sendDialogTitle:r,sendDialogOpen:!0})}disconnectClient(t){this.roomCall("_forceClientDisconnect",t).then(()=>this.fetchRoomData())}disposeRoom(){this.roomCall("disconnect").then(()=>{this.props.history.push("/")})}goBack(){window.history.back()}render(){const t=[{field:"sessionId",headerName:"sessionId",flex:1},{field:"elapsedTime",headerName:"elapsedTime",flex:1,valueFormatter:sk.elapsedTime,sortComparator:Qa},{field:"actions",headerName:"",width:200,sortable:!1,renderCell:o=>v.jsxs(Ms,{direction:"row",spacing:.5,children:[v.jsx(yl,{size:"small",variant:"text",startIcon:v.jsx(ch,{}),onClick:this.sendMessage.bind(this,o.id),children:"Send"}),v.jsx(Cp,{title:"Disconnect client",children:v.jsx(jr,{size:"small",color:"error",onClick:this.disconnectClient.bind(this,o.id),children:v.jsx($k,{fontSize:"small"})})})]})}],n=this.state.clients.map(o=>({id:o.sessionId,sessionId:o.sessionId,elapsedTime:o.elapsedTime,actions:o.sessionId})),r=this.state.maxClients?`${this.state.clients.length} / ${this.state.maxClients}`:`${this.state.clients.length}`;return v.jsxs(Kn,{children:[v.jsx(sS,{position:"static",elevation:0,sx:{borderBottom:1,borderColor:"divider"},children:v.jsxs(tv,{variant:"dense",sx:{flexWrap:{xs:"wrap",sm:"nowrap"},py:{xs:1,sm:0},gap:{xs:1,sm:0}},children:[v.jsx(jr,{edge:"start",size:"small",onClick:this.goBack.bind(this),sx:{mr:1},children:v.jsx(Ek,{})}),v.jsxs(Zt,{variant:"subtitle1",fontWeight:600,sx:{flexGrow:1},children:["Room ",this.state.roomId]}),v.jsxs(Ms,{direction:"row",spacing:1,sx:{width:{xs:"100%",sm:"auto"},justifyContent:"flex-end"},children:[v.jsx(yl,{size:"small",variant:"outlined",startIcon:v.jsx(ch,{}),onClick:this.sendMessage.bind(this,void 0),children:"Broadcast"}),v.jsx(yl,{size:"small",variant:"outlined",color:"error",startIcon:v.jsx(Iv,{}),onClick:this.disposeRoom.bind(this),children:"Dispose"})]})]})}),v.jsx(TS,{maxWidth:"lg",sx:{py:3},children:v.jsxs(Ms,{spacing:2,children:[v.jsxs(Kn,{sx:{display:"grid",gap:1.5,gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)"},"& > :last-child":{gridColumn:{xs:"1 / -1",sm:"auto"}}},children:[v.jsx(jf,{icon:this.state.locked?v.jsx(Ik,{sx:{fontSize:14}}):v.jsx(Mk,{sx:{fontSize:14}}),label:"Status",value:this.state.locked?"Locked":"Unlocked"}),v.jsx(jf,{icon:v.jsx($v,{sx:{fontSize:14}}),label:"Clients",value:r}),v.jsx(jf,{icon:v.jsx(Rk,{sx:{fontSize:14}}),label:"State Size",value:`${this.state.stateSize} B`})]}),v.jsx(Sr,{variant:"outlined",sx:{overflow:"hidden"},children:v.jsxs(nW,{value:this.state.currentTab,children:[v.jsx(Kn,{sx:{borderBottom:1,borderColor:"divider"},children:v.jsxs(oW,{onChange:this.handleTabChange,variant:"fullWidth",children:[v.jsx(N0,{label:v.jsxs(Kn,{sx:{display:"flex",alignItems:"center"},children:["Clients ",v.jsx(qg,{size:"small",label:this.state.clients.length,sx:{ml:1}})]}),value:"1"}),v.jsx(N0,{label:"State",value:"2"})]})}),v.jsx(jC,{value:"1",sx:{p:0},children:v.jsx(tk,{columns:t,rows:n,autoHeight:!0,sx:{border:0,"& .MuiDataGrid-columnHeaders":{bgcolor:"action.hover"},"& .MuiDataGrid-cell":{display:"flex",alignItems:"center"}},disableRowSelectionOnClick:!0,hideFooter:!0})}),v.jsx(jC,{value:"2",sx:{p:0},children:v.jsx(Kn,{sx:{p:1},children:v.jsx(_C,{rootName:"",data:this.state.state,onUpdate:this.handleStateEdit,onDelete:this.handleStateDelete,restrictEdit:({value:o})=>typeof o=="object"&&o!==null,restrictTypeSelection:!0,restrictAdd:!0})})})]})})]})}),v.jsxs(K_,{open:this.state.sendDialogOpen,onClose:this.handleCloseSend,maxWidth:"sm",fullWidth:!0,children:[v.jsx(cL,{children:this.state.sendDialogTitle}),v.jsx(lL,{children:v.jsxs(Ms,{spacing:2,sx:{mt:1},children:[v.jsx(GS,{label:"Message type",size:"small",fullWidth:!0,value:this.state.sendType,onChange:this.updateSendType}),v.jsxs(Kn,{children:[v.jsx(Zt,{variant:"caption",color:"text.secondary",sx:{mb:.5,display:"block"},children:"Message payload"}),v.jsx(_C,{rootName:"",data:this.state.sendData,onUpdate:({newData:o})=>this.updateSendData(o)})]})]})}),v.jsxs(Z_,{sx:{px:3,pb:2},children:[v.jsx(yl,{variant:"text",color:"inherit",onClick:this.handleCloseSend,children:"Cancel"}),v.jsx(yl,{variant:"contained",disableElevation:!0,onClick:this.handleSend,children:"Send"})]})]})]})}}const $W=uM();function RW(){const e=hR("(prefers-color-scheme: dark)"),t=nn.useMemo(()=>Lg({palette:{mode:e?"dark":"light"}}),[e]);return v.jsx($d,{history:$W,children:v.jsxs(vO,{theme:t,children:[v.jsx(b_,{}),v.jsx(N5,{}),v.jsx(Oa,{exact:!0,path:"/",component:h9}),v.jsx(Oa,{path:"/room/:roomId",component:MW})]})})}Xw(document.getElementById("app")).render(v.jsx(RW,{}));
247
+ //# sourceMappingURL=index-A9dDB1WV.js.map