@bygd/nc-report-ui 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default/cjs/index.cjs +1 -1
- package/dist/default/esm/index.js +349 -90
- package/package.json +4 -3
- package/dist/default/iife/index.js +0 -257
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,o={exports:{}},i={};function a(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=y.prototype=new v;w.constructor=y,m(w,b.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)S.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:e,type:t,key:a,ref:l,props:i,_owner:C.current}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var M=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return a=a(s=n),n=""===i?"."+P(s,0):i,x(a)?(o="",null!=n&&(o=n.replace(M,"$&/")+"/"),T(a,r,o,"",function(e){return e})):null!=a&&(R(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+n)),r.push(a)),1;if(s=0,i=""===i?".":i+":",x(n))for(var c=0;c<n.length;c++){var u=i+P(l=n[c],c);s+=T(l,r,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(l=n.next()).done;)s+=T(l=l.value,r,o,u=i+P(l,c++),a);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",function(e){return t.call(n,e,o++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},F={transition:null},L={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:F,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=b,i.Fragment=r,i.Profiler=a,i.PureComponent=y,i.StrictMode=o,i.Suspense=u,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,i.act=A,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),i=t.key,a=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=C.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)S.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:l}},i.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},i.createElement=E,i.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:c,render:e}},i.isValidElement=R,i.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},i.unstable_act=A,i.useCallback=function(e,t){return D.current.useCallback(e,t)},i.useContext=function(e){return D.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return D.current.useDeferredValue(e)},i.useEffect=function(e,t){return D.current.useEffect(e,t)},i.useId=function(){return D.current.useId()},i.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return D.current.useMemo(e,t)},i.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},i.useRef=function(e){return D.current.useRef(e)},i.useState=function(e){return D.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return D.current.useTransition()},i.version="18.3.1",i}function l(){return r||(r=1,o.exports=a()),o.exports}var s=l(),c=t(s),u=e({__proto__:null,default:c},[s]);function d(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function p(e,t){if(null==e)return{};var n,r,o=d(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(){return f=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},f.apply(null,arguments)}var h,m,g,b,v,y={exports:{}};function w(){if(m)return h;m=1;return h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function x(){if(b)return g;b=1;var e=w();function t(){}function n(){}return n.resetWarningCache=t,g=function(){function r(t,n,r,o,i,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},g}function S(){return v||(v=1,y.exports=x()()),y.exports}var C=t(S());function k(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=k(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function E(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=k(e))&&(r&&(r+=" "),r+=t);return r}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function M(e){return e&&"object"===R(e)&&e.constructor===Object}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?f({},e):e;return M(e)&&M(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(M(t[o])&&o in e?r[o]=P(e[o],t[o],n):r[o]=t[o])}),r}function T(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}function I(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var D,F,L={exports:{}},A={};F||(F=1,L.exports=function(){if(D)return A;D=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,l=60112,s=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),n=b("react.fragment"),r=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),l=b("react.forward_ref"),s=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case s:case c:return p;default:switch(p=p&&p.$$typeof){case a:case l:case d:case u:case i:return p;default:return f}}case t:return f}}}var y=i,w=e,x=l,S=n,C=d,k=u,E=t,R=o,M=r,P=s;return A.ContextConsumer=a,A.ContextProvider=y,A.Element=w,A.ForwardRef=x,A.Fragment=S,A.Lazy=C,A.Memo=k,A.Portal=E,A.Profiler=R,A.StrictMode=M,A.Suspense=P,A.isAsyncMode=function(){return!1},A.isConcurrentMode=function(){return!1},A.isContextConsumer=function(e){return v(e)===a},A.isContextProvider=function(e){return v(e)===i},A.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},A.isForwardRef=function(e){return v(e)===l},A.isFragment=function(e){return v(e)===n},A.isLazy=function(e){return v(e)===d},A.isMemo=function(e){return v(e)===u},A.isPortal=function(e){return v(e)===t},A.isProfiler=function(e){return v(e)===o},A.isStrictMode=function(e){return v(e)===r},A.isSuspense=function(e){return v(e)===s},A.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===s||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||e.$$typeof===p||e[0]===f)},A.typeOf=v,A}()),L.exports;var $="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",N=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function z(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_="object"===("undefined"==typeof window?"undefined":j(window))&&"object"===("undefined"==typeof document?"undefined":j(document))&&9===document.nodeType;function B(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function V(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H(e,t)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U={}.constructor;function G(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(G);if(e.constructor!==U)return e;var t={};for(var n in e)t[n]=G(e[n]);return t}function K(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=G(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var q=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Y=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=q(e[n]," ");else t=q(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function X(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Q(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Z(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=X(n),s=l.linebreak,c=l.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=s),r+=Q(p+":"+c+Y(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=s),r+=Q(h+":"+c+Y(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(r&&(r+=s),r+=Q(g+":"+c+Y(b)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),Q(""+e+c+"{"+r,--i)+Q("}",i)):r}var J=/([[\].#*$><+~=|^:(),"'`\s])/g,ee="undefined"!=typeof CSS&&CSS.escape,te=function(e){return ee?ee(e):e.replace(J,"\\$1")},ne=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),re=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s(W(W(o)),l),o.selectorText="."+te(o.id)),o}V(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Y(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return Z(this.selectorText,this.style,n)},B(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(ne),oe={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new re(e,t,n)}},ie={indent:1,children:!0},ae=/@([\w-]+)/,le=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(ae);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Oe(f({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=ie);var t=X(e).linebreak;if(null==e.indent&&(e.indent=ie.indent),null==e.children&&(e.children=ie.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),se=/@container|@media|@supports\s+/,ce={onCreateRule:function(e,t,n){return se.test(e)?new le(e,t,n):null}},ue={indent:1,children:!0},de=/@keyframes\s+([\w-]+)/,pe=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(de);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var l in this.id=!1===o?this.name:te(a(this,i)),this.rules=new Oe(f({},n,{parent:this})),t)this.rules.add(l,t[l],f({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ue);var t=X(e).linebreak;if(null==e.indent&&(e.indent=ue.indent),null==e.children&&(e.children=ue.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),fe=/@keyframes\s+/,he=/\$([\w-]+)/g,me=function(e,t){return"string"==typeof e?e.replace(he,function(e,n){return n in t?t[n]:e}):e},ge=function(e,t,n){var r=e[t],o=me(r,n);o!==r&&(e[t]=o)},be={onCreateRule:function(e,t,n){return"string"==typeof e&&fe.test(e)?new pe(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ge(e,"animation-name",n.keyframes),"animation"in e&&ge(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return me(e,r.keyframes);default:return e}}},ve=function(e){function t(){return e.apply(this,arguments)||this}return V(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return Z(this.key,this.style,n)},t}(ne),ye={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ve(e,t,n):null}},we=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=X(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Z(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Z(this.at,this.style,e)},e}(),xe=/@font-face/,Se={onCreateRule:function(e,t,n){return xe.test(e)?new we(e,t,n):null}},Ce=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Z(this.key,this.style,e)},e}(),ke={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ce(e,t,n):null}},Ee=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Re={"@charset":!0,"@import":!0,"@namespace":!0},Me={onCreateRule:function(e,t,n){return e in Re?new Ee(e,t,n):null}},Pe=[oe,ce,be,ye,Se,ke,Me],Te={process:!0},Ie={force:!0,process:!0},Oe=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,u=f({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+te(this.classes[d]));var p=K(d,t,u);if(!p)return null;this.register(p);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=f({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof re?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof pe&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof re?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof pe&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Te);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[s];c!==l[s]&&t.prop(s,c,Ie)}for(var u in l){var d=t.style[u],p=l[u];null==d&&d!==p&&t.prop(u,null,Ie)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=X(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),De=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=f({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Oe(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Fe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Le=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=d(t,["attached"]),o=X(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},B(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ae=new Le,$e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ne="2f1acc6c3a606b082e5eef5e54414ffb";null==$e[Ne]&&($e[Ne]=0);var ze=$e[Ne]++,je=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ze+o+t:i+n.key+"-"+ze+(o?"-"+o:"")+"-"+t}},_e=function(e){var t;return function(){return t||(t=e()),t}},Be=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},He=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Y(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ve=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},We=function(e,t){return e.selectorText=t,e.selectorText===t},Ue=_e(function(){return document.querySelector("head")});function Ge(e){var t=Ae.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Ue(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ke=_e(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),qe=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Ye=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Xe=function(){function e(e){this.getPropertyValue=Be,this.setProperty=He,this.removeProperty=Ve,this.setSelector=We,this.hasInsertedRules=!1,this.cssRules=[],e&&Ae.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Ke();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ge(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Ye(n,t);if(!1===(o=qe(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=Ye(n,t),s=qe(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof De&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Qe=0,Ze=function(){function e(e){this.id=Qe++,this.version="10.10.0",this.plugins=new Fe,this.options={id:{minify:!1},createGenerateId:je,Renderer:_?Xe:null,plugins:[]},this.generateId=je({minify:!1});for(var t=0;t<Pe.length;t++)this.plugins.use(Pe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=f({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Ae.index?0:Ae.index+1);var r=new De(e,f({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Ae.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=f({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=K(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Je=function(e){return new Ze(e)},et="object"==typeof CSS&&null!=CSS&&"number"in CSS;function tt(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=tt(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
2
|
-
/**
|
|
3
|
-
* A better abstraction over CSS.
|
|
4
|
-
*
|
|
5
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
6
|
-
* @website https://github.com/cssinjs/jss
|
|
7
|
-
* @license MIT
|
|
8
|
-
*/Je();var nt=Date.now(),rt="fnValues"+nt,ot="fnStyle"+ ++nt,it="@global",at="@global ",lt=function(){function e(e,t,n){for(var r in this.type="global",this.at=it,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Oe(f({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),st=function(){function e(e,t,n){this.type="global",this.at=it,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,f({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ct=/\s*,\s*/g;function ut(e,t){for(var n=e.split(ct),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function dt(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===it)return new lt(e,t,n);if("@"===e[0]&&e.substr(0,8)===at)return new st(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[it]:null;if(o){for(var i in o)t.addRule(i,o[i],f({},n,{selector:ut(i,e.selector)}));delete r[it]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===it){var i=ut(o.substr(7),e.selector);t.addRule(i,r[o],f({},n,{selector:i})),delete r[o]}}(e,t))}}}var pt=/\s*,\s*/g,ft=/&/g,ht=/\$([\w-]+)/g;function mt(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(pt),r=e.split(pt),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(ft,a):a+" "+s}return o}function n(e,t,n){if(n)return f({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=f({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(s,c,a),d){var h=t(u,s.selector);l||(l=e(c,i)),h=h.replace(ht,l);var m=s.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],f({},a,{selector:h})):c.addRule(m,r[u],f({},a,{selector:h}))}else p&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}var gt=/[A-Z]/g,bt=/^ms-/,vt={};function yt(e){return"-"+e.toLowerCase()}function wt(e){if(vt.hasOwnProperty(e))return vt[e];var t=e.replace(gt,yt);return vt[e]=bt.test(t)?"-"+t:t}function xt(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:wt(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(xt):t.fallbacks=xt(e.fallbacks)),t}var St=et&&CSS?CSS.px:"px",Ct=et&&CSS?CSS.ms:"ms",kt=et&&CSS?CSS.percent:"%";function Et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Rt=Et({"animation-delay":Ct,"animation-duration":Ct,"background-position":St,"background-position-x":St,"background-position-y":St,"background-size":St,border:St,"border-bottom":St,"border-bottom-left-radius":St,"border-bottom-right-radius":St,"border-bottom-width":St,"border-left":St,"border-left-width":St,"border-radius":St,"border-right":St,"border-right-width":St,"border-top":St,"border-top-left-radius":St,"border-top-right-radius":St,"border-top-width":St,"border-width":St,"border-block":St,"border-block-end":St,"border-block-end-width":St,"border-block-start":St,"border-block-start-width":St,"border-block-width":St,"border-inline":St,"border-inline-end":St,"border-inline-end-width":St,"border-inline-start":St,"border-inline-start-width":St,"border-inline-width":St,"border-start-start-radius":St,"border-start-end-radius":St,"border-end-start-radius":St,"border-end-end-radius":St,margin:St,"margin-bottom":St,"margin-left":St,"margin-right":St,"margin-top":St,"margin-block":St,"margin-block-end":St,"margin-block-start":St,"margin-inline":St,"margin-inline-end":St,"margin-inline-start":St,padding:St,"padding-bottom":St,"padding-left":St,"padding-right":St,"padding-top":St,"padding-block":St,"padding-block-end":St,"padding-block-start":St,"padding-inline":St,"padding-inline-end":St,"padding-inline-start":St,"mask-position-x":St,"mask-position-y":St,"mask-size":St,height:St,width:St,"min-height":St,"max-height":St,"min-width":St,"max-width":St,bottom:St,left:St,top:St,right:St,inset:St,"inset-block":St,"inset-block-end":St,"inset-block-start":St,"inset-inline":St,"inset-inline-end":St,"inset-inline-start":St,"box-shadow":St,"text-shadow":St,"column-gap":St,"column-rule":St,"column-rule-width":St,"column-width":St,"font-size":St,"font-size-delta":St,"letter-spacing":St,"text-decoration-thickness":St,"text-indent":St,"text-stroke":St,"text-stroke-width":St,"word-spacing":St,motion:St,"motion-offset":St,outline:St,"outline-offset":St,"outline-width":St,perspective:St,"perspective-origin-x":kt,"perspective-origin-y":kt,"transform-origin":kt,"transform-origin-x":kt,"transform-origin-y":kt,"transform-origin-z":kt,"transition-delay":Ct,"transition-duration":Ct,"vertical-align":St,"flex-basis":St,"shape-margin":St,size:St,gap:St,grid:St,"grid-gap":St,"row-gap":St,"grid-row-gap":St,"grid-column-gap":St,"grid-template-rows":St,"grid-template-columns":St,"grid-auto-rows":St,"grid-auto-columns":St,"box-shadow-x":St,"box-shadow-y":St,"box-shadow-blur":St,"box-shadow-spread":St,"font-line-height":St,"text-shadow-x":St,"text-shadow-y":St,"text-shadow-blur":St});function Mt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Mt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Mt(o,t[o],n);else for(var i in t)t[i]=Mt(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Rt[e];return!a||0===t&&a===St?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Pt(e){void 0===e&&(e={});var t=Et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Mt(r,e[r],t);return e},onChangeValue:function(e,n){return Mt(n,e,t)}}}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function It(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function Ot(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||It(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Dt="",Ft="",Lt="",At="",$t=_&&"ontouchstart"in document.documentElement;if(_){var Nt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},zt=document.createElement("p").style;for(var jt in Nt)if(jt+"Transform"in zt){Dt=jt,Ft=Nt[jt];break}"Webkit"===Dt&&"msHyphens"in zt&&(Dt="ms",Ft=Nt.ms,At="edge"),"Webkit"===Dt&&"-apple-trailing-word"in zt&&(Lt="apple")}var _t=Dt,Bt=Ft,Ht=Lt,Vt=At,Wt=$t;var Ut={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===_t?"-webkit-"+e:Bt+e)}},Gt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===_t?Bt+"print-"+e:e)}},Kt=/[-\s]+(.)?/g;function qt(e,t){return t?t.toUpperCase():""}function Yt(e){return e.replace(Kt,qt)}function Xt(e){return Yt("-"+e)}var Qt,Zt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===_t){var n="mask-image";if(Yt(n)in t)return e;if(_t+Xt(n)in t)return Bt+e}return e}},Jt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ht||Wt?e:Bt+e)}},en={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Bt+e)}},tn={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Bt+e)}},nn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===_t||"ms"===_t&&"edge"!==Vt?Bt+e:e)}},rn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===_t||"ms"===_t||"apple"===Ht?Bt+e:e)}},on={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===_t?"WebkitColumn"+Xt(e)in t&&Bt+"column-"+e:"Moz"===_t&&("page"+Xt(e)in t&&"page-"+e))}},an={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===_t)return e;var n=e.replace("-inline","");return _t+Xt(n)in t&&Bt+n}},ln={supportedProperty:function(e,t){return Yt(e)in t&&e}},sn={supportedProperty:function(e,t){var n=Xt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:_t+n in t?Bt+e:"Webkit"!==_t&&"Webkit"+n in t&&"-webkit-"+e}},cn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===_t?""+Bt+e:e)}},un={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===_t?Bt+"scroll-chaining":e)}},dn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},pn={supportedProperty:function(e,t){var n=dn[e];return!!n&&(_t+Xt(n)in t&&Bt+n)}},fn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},hn=Object.keys(fn),mn=function(e){return Bt+e},gn={supportedProperty:function(e,t,n){var r=n.multiple;if(hn.indexOf(e)>-1){var o=fn[e];if(!Array.isArray(o))return _t+Xt(o)in t&&Bt+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(_t+Xt(o[0])in t))return!1;return o.map(mn)}return!1}},bn=[Ut,Gt,Zt,Jt,en,tn,nn,rn,on,an,ln,sn,cn,un,pn,gn],vn=bn.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),yn=bn.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Ot(t.noPrefill)),e},[]),wn={};if(_){Qt=document.createElement("p");var xn=window.getComputedStyle(document.documentElement,"");for(var Sn in xn)isNaN(Sn)||(wn[xn[Sn]]=xn[Sn]);yn.forEach(function(e){return delete wn[e]})}function Cn(e,t){if(void 0===t&&(t={}),!Qt)return e;if(null!=wn[e])return wn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Qt.style);for(var n=0;n<vn.length&&(wn[e]=vn[n](e,Qt.style,t),!wn[e]);n++);try{Qt.style[e]=""}catch(e){return!1}return wn[e]}var kn,En={},Rn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Mn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pn(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Cn(t):", "+Cn(n);return r||(t||n)}function Tn(e,t){var n=t;if(!kn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=En[r])return En[r];try{kn.style[e]=n}catch(e){return En[r]=!1,!1}if(Rn[e])n=n.replace(Mn,Pn);else if(""===kn.style[e]&&("-ms-flex"===(n=Bt+n)&&(kn.style[e]="-ms-flexbox"),kn.style[e]=n,""===kn.style[e]))return En[r]=!1,!1;return kn.style[e]="",En[r]=n,En[r]}function In(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Cn(n);i&&i!==n&&(o=!0);var a=!1,l=Tn(i,Y(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===_t?e:"@"+Bt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Tn(t,Y(e))||e}}}function On(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=f({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}_&&(kn=document.createElement("p"));var Dn=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Fn=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},Ln=function(e,t,n){e.get(t).delete(n)},An=c.createContext(null);function $n(){return c.useContext(An)}var Nn,zn=Je({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=K(e,{},n);return r[ot]=t,r},onProcessStyle:function(e,t){if(rt in t||ot in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[rt]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[ot];i&&(o.style=i(e)||{});var a=o[rt];if(a)for(var l in a)o.prop(l,a[l](e),r)}},dt(),mt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=xt(e[t]);return e}return xt(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=wt(t);return t===r?e:(n.prop(r,e),null)}},Pt(),"undefined"==typeof window?null:In(),(Nn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Nn),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),s=0,c=function(){return s+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==N.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[$]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(l).concat(o).concat(c())}}(),_n={disableGeneration:!1,generateClassName:jn,jss:zn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Bn=c.createContext(_n),Hn=-1e9;var Vn={};function Wn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var l=Fn(o.sheetsManager,i,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Dn(o.sheetsManager,i,r,l));var s=f({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=o.sheetsRegistry;if(0===l.refs){var u;o.sheetsCache&&(u=Fn(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,f({link:!1},s))).attach(),o.sheetsCache&&Dn(o.sheetsCache,i,r,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=tt(d)}if(l.dynamicStyles){var p=o.jss.createStyleSheet(l.dynamicStyles,f({link:!0},s));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=On({baseClasses:l.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function Un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Vn:i,l=p(t,["name","classNamePrefix","Component","defaultTheme"]),s=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=f({},o);return Object.keys(i).forEach(function(e){a[e]=P(a[e],i[e])}),a},options:{}}}(e),u=n||r||"makeStyles";s.options={index:Hn+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$n()||a,r=f({},c.useContext(Bn),l),i=c.useRef(),u=c.useRef();!function(e,t){var n,r=c.useRef([]),o=c.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),c.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return Wn(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Fn(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Ln(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,s]),c.useEffect(function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=On({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return d}}var Gn,Kn,qn,Yn,Xn={exports:{}},Qn={};function Zn(){return Kn||(Kn=1,Xn.exports=function(){if(Gn)return Qn;Gn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return y(e)===c}return Qn.AsyncMode=s,Qn.ConcurrentMode=c,Qn.ContextConsumer=l,Qn.ContextProvider=a,Qn.Element=t,Qn.ForwardRef=u,Qn.Fragment=r,Qn.Lazy=h,Qn.Memo=f,Qn.Portal=n,Qn.Profiler=i,Qn.StrictMode=o,Qn.Suspense=d,Qn.isAsyncMode=function(e){return w(e)||y(e)===s},Qn.isConcurrentMode=w,Qn.isContextConsumer=function(e){return y(e)===l},Qn.isContextProvider=function(e){return y(e)===a},Qn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Qn.isForwardRef=function(e){return y(e)===u},Qn.isFragment=function(e){return y(e)===r},Qn.isLazy=function(e){return y(e)===h},Qn.isMemo=function(e){return y(e)===f},Qn.isPortal=function(e){return y(e)===n},Qn.isProfiler=function(e){return y(e)===i},Qn.isStrictMode=function(e){return y(e)===o},Qn.isSuspense=function(e){return y(e)===d},Qn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},Qn.typeOf=y,Qn}()),Xn.exports}var Jn=function(){if(Yn)return qn;Yn=1;var e=Zn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return qn=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{a(t,b,v)}catch(e){}}}}return t},qn}(),er=t(Jn),tr=["xs","sm","md","lg","xl"];function nr(e,t,n){var r;return f({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),f({paddingLeft:t(2),paddingRight:t(2)},n,I({},e.up("sm"),f({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},I(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),I(r,e.up("sm"),{minHeight:64}),r)},n)}var rr={black:"#000",white:"#fff"},or={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},ir="#7986cb",ar="#3f51b5",lr="#303f9f",sr="#ff4081",cr="#f50057",ur="#c51162",dr="#e57373",pr="#f44336",fr="#d32f2f",hr="#ffb74d",mr="#ff9800",gr="#f57c00",br="#64b5f6",vr="#2196f3",yr="#1976d2",wr="#81c784",xr="#4caf50",Sr="#388e3c";function Cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kr(e){if(e.type)return e;if("#"===e.charAt(0))return kr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(O(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function Er(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Rr(e){var t="hsl"===(e=kr(e)).type?kr(function(e){var t=(e=kr(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Er({type:l,values:s})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}var Mr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rr.white,default:or[50]},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}},Pr={text:{primary:rr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:or[800],default:"#303030"},action:{active:rr.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 Tr(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=kr(e),t=Cr(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Er(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=kr(e),t=Cr(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Er(e)}(e.main,i)))}function Ir(e){var t=e.primary,n=void 0===t?{light:ir,main:ar,dark:lr}:t,r=e.secondary,o=void 0===r?{light:sr,main:cr,dark:ur}:r,i=e.error,a=void 0===i?{light:dr,main:pr,dark:fr}:i,l=e.warning,s=void 0===l?{light:hr,main:mr,dark:gr}:l,c=e.info,u=void 0===c?{light:br,main:vr,dark:yr}:c,d=e.success,h=void 0===d?{light:wr,main:xr,dark:Sr}:d,m=e.type,g=void 0===m?"light":m,b=e.contrastThreshold,v=void 0===b?3:b,y=e.tonalOffset,w=void 0===y?.2:y,x=p(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function S(e){var t=function(e,t){var n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Pr.text.primary)>=v?Pr.text.primary:Mr.text.primary;return t}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=f({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(O(4,t));if("string"!=typeof e.main)throw new Error(O(5,JSON.stringify(e.main)));return Tr(e,"light",n,w),Tr(e,"dark",r,w),e.contrastText||(e.contrastText=S(e.main)),e},k={dark:Pr,light:Mr};return P(f({common:rr,type:g,primary:C(n),secondary:C(o,"A400","A200","A700"),error:C(a),warning:C(s),info:C(u),success:C(h),grey:or,contrastThreshold:v,getContrastText:S,augmentColor:C,tonalOffset:w},k[g]),x)}function Or(e){return Math.round(1e5*e)/1e5}function Dr(e){return Or(e)}var Fr={textTransform:"uppercase"},Lr='"Roboto", "Helvetica", "Arial", sans-serif';function Ar(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?Lr:r,i=n.fontSize,a=void 0===i?14:i,l=n.fontWeightLight,s=void 0===l?300:l,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,h=void 0===d?500:d,m=n.fontWeightBold,g=void 0===m?700:m,b=n.htmlFontSize,v=void 0===b?16:b,y=n.allVariants,w=n.pxToRem,x=p(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),S=a/14,C=w||function(e){return"".concat(e/v*S,"rem")},k=function(e,t,n,r,i){return f({fontFamily:o,fontWeight:e,fontSize:C(t),lineHeight:n},o===Lr?{letterSpacing:"".concat(Or(r/t),"em")}:{},i,y)},E={h1:k(s,96,1.167,-1.5),h2:k(s,60,1.2,-.5),h3:k(u,48,1.167,0),h4:k(u,34,1.235,.25),h5:k(u,24,1.334,0),h6:k(h,20,1.6,.15),subtitle1:k(u,16,1.75,.15),subtitle2:k(h,14,1.57,.1),body1:k(u,16,1.5,.15),body2:k(u,14,1.43,.15),button:k(h,14,1.75,.4,Fr),caption:k(u,12,1.66,.4),overline:k(u,12,2.66,1,Fr)};return P(f({htmlFontSize:v,pxToRem:C,round:Dr,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:h,fontWeightBold:g},E),x,{clone:!1})}function $r(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Nr=["none",$r(0,2,1,-1,0,1,1,0,0,1,3,0),$r(0,3,1,-2,0,2,2,0,0,1,5,0),$r(0,3,3,-2,0,3,4,0,0,1,8,0),$r(0,2,4,-1,0,4,5,0,0,1,10,0),$r(0,3,5,-1,0,5,8,0,0,1,14,0),$r(0,3,5,-1,0,6,10,0,0,1,18,0),$r(0,4,5,-2,0,7,10,1,0,2,16,1),$r(0,5,5,-3,0,8,10,1,0,3,14,2),$r(0,5,6,-3,0,9,12,1,0,3,16,2),$r(0,6,6,-3,0,10,14,1,0,4,18,3),$r(0,6,7,-4,0,11,15,1,0,4,20,3),$r(0,7,8,-4,0,12,17,2,0,5,22,4),$r(0,7,8,-4,0,13,19,2,0,5,24,4),$r(0,7,9,-4,0,14,21,2,0,5,26,4),$r(0,8,9,-5,0,15,22,2,0,6,28,5),$r(0,8,10,-5,0,16,24,2,0,6,30,5),$r(0,8,11,-5,0,17,26,2,0,6,32,5),$r(0,9,11,-5,0,18,28,2,0,7,34,6),$r(0,9,12,-6,0,19,29,2,0,7,36,6),$r(0,10,13,-6,0,20,31,3,0,8,38,7),$r(0,10,13,-6,0,21,33,3,0,8,40,7),$r(0,10,14,-6,0,22,35,3,0,8,42,7),$r(0,11,14,-7,0,23,36,3,0,9,44,8),$r(0,11,15,-7,0,24,38,3,0,9,46,8)],zr={borderRadius:4};function jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||It(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t,n="number"==typeof(t={spacing:e}.spacing||8)?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){},r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return e}}),r.mui=!0,r}var Br={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)"},Hr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vr(e){return"".concat(Math.round(e),"ms")}var Wr={easing:Br,duration:Hr,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Hr.standard:n,o=t.easing,i=void 0===o?Br.easeInOut:o,a=t.delay,l=void 0===a?0:a;return p(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:Vr(r)," ").concat(i," ").concat("string"==typeof l?l:Vr(l))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Ur={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var Gr=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,l=e.spacing,s=e.typography,c=void 0===s?{}:s,u=p(e,["breakpoints","mixins","palette","spacing","typography"]),d=Ir(a),h=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,l=p(e,["values","unit","step"]);function s(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=tr.indexOf(t);return r===tr.length-1?s(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[tr[r+1]]?n[tr[r+1]]:t)-a/100).concat(o,")")}return f({keys:tr,values:n,up:s,down:function(e){var t=tr.indexOf(e)+1,r=n[tr[t]];return t===tr.length?s("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},l)}(n),m=_r(l),g=P({breakpoints:h,direction:"ltr",mixins:nr(h,m,o),overrides:{},palette:d,props:{},shadows:Nr,typography:Ar(d,c),spacing:m,shape:zr,transitions:Wr,zIndex:Ur},u),b=arguments.length,v=new Array(b>1?b-1:0),y=1;y<b;y++)v[y-1]=arguments[y];return g=v.reduce(function(e,t){return P(e,t)},g)}();function Kr(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,l=p(t,["defaultTheme","withTheme","name"]),s=a,u=Un(e,f({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:s},l)),d=c.forwardRef(function(e,t){e.classes;var o,l=e.innerRef,s=p(e,["classes","innerRef"]),d=u(f({},n.defaultProps,e)),h=s;return("string"==typeof a||i)&&(o=$n()||r,a&&(h=z({theme:o,name:a,props:s})),i&&!h.theme&&(h.theme=o)),c.createElement(n,f({ref:l||t,classes:d},h))});return er(d,n),d}}(e,f({defaultTheme:Gr},t))}var qr=s.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,l=void 0!==a&&a,c=e.elevation,u=void 0===c?1:c,d=e.variant,h=void 0===d?"elevation":d,m=p(e,["classes","className","component","square","elevation","variant"]);return s.createElement(i,f({className:E(n.root,r,"outlined"===h?n.outlined:n["elevation".concat(u)],!l&&n.rounded),ref:t},m))}),Yr=Kr(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),f({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(qr);function Xr(){return Xr=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},Xr.apply(null,arguments)}function Qr(e){return Un(e,f({defaultTheme:Gr},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function Zr(){return $n()||Gr}function Jr(e){if("string"!=typeof e)throw new Error(O(7));return e.charAt(0).toUpperCase()+e.slice(1)}function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},function(){})}var to=s.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,l=e.component,c=void 0===l?"svg":l,u=e.fontSize,d=void 0===u?"medium":u,h=e.htmlColor,m=e.titleAccess,g=e.viewBox,b=void 0===g?"0 0 24 24":g,v=p(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return s.createElement(c,f({className:E(r.root,o,"inherit"!==a&&r["color".concat(Jr(a))],"default"!==d&&"medium"!==d&&r["fontSize".concat(Jr(d))]),focusable:"false",viewBox:b,color:h,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},v),n,m?s.createElement("title",null,m):null)});to.muiName="SvgIcon";var no=Kr(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(to);function ro(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout(function(){e.apply(a,o)},n)}return r.clear=function(){clearTimeout(t)},r}function oo(e,t){return s.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function io(e){return e&&e.ownerDocument||document}function ao(e){return io(e).defaultView||window}function lo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var so="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;function co(e){var t=s.useRef(e);return so(function(){t.current=e}),s.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function uo(e,t){return s.useMemo(function(){return null==e&&null==t?null:function(n){lo(e,n),lo(t,n)}},[e,t])}var po,fo,ho,mo,go={exports:{}},bo={},vo={exports:{}},yo={};function wo(){return fo||(fo=1,vo.exports=(po||(po=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function w(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,D(x);else{var t=n(c);null!==t&&F(w,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,b(E),E=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&F(w,g.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,k=null,E=-1,R=5,M=-1;function P(){return!(e.unstable_now()-M<R)}function T(){if(null!==k){var t=e.unstable_now();M=t;var n=!0;try{n=k(!0,t)}finally{n?S():(C=!1,k=null)}}else C=!1}if("function"==typeof v)S=function(){v(T)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,O=I.port2;I.port1.onmessage=T,S=function(){O.postMessage(null)}}else S=function(){g(T,0)};function D(e){k=e,C||(C=!0,S())}function F(t,n){E=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,D(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(m?(b(E),E=-1):m=!0,F(w,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,D(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(yo)),yo)),vo.exports}
|
|
9
|
-
/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/function xo(){if(ho)return bo;ho=1;var e=l(),t=wo();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},p={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new f(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){h[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!c.call(p,e)||!c.call(d,e)&&(u.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(m,g);h[t]=new f(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(m,g);h[t]=new f(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(m,g);h[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var L,A=Object.assign;function $(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var N=!1;function z(e,t){if(!e||N)return"";N=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function j(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function _(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case w:return"Portal";case C:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:_(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return _(e(t))}catch(e){}}return null}function B(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=(e=t.render).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 _(t);case 8:return t===S?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Z(e,t.type,n):t.hasOwnProperty("defaultValue")&&Z(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Z(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function ee(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=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return A({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function re(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,se,ce=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return se(e,t)})}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={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},pe=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]})});var me=A({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 ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ve=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,xe=null,Se=null;function Ce(e){if(e=xo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=Co(t),we(e.stateNode,e.type,t))}}function ke(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Ee(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Re(e,t){return e(t)}function Me(){}var Pe=!1;function Te(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,(null!==xe||null!==Se)&&(Me(),Ee())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var o=Co(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(s)try{var De={};Object.defineProperty(De,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(se){Oe=!1}function Fe(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Le=!1,Ae=null,$e=!1,Ne=null,ze={onError:function(e){Le=!0,Ae=e}};function je(e,t,n,r,o,i,a,l,s){Le=!1,Ae=null,Fe.apply(ze,arguments)}function _e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(_e(e)!==e)throw Error(n(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=_e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return He(i),e;if(a===o)return He(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,qe=t.unstable_requestPaint,Ye=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/at|0)|0},it=Math.log,at=Math.LN2;var lt=64,st=4194304;function ct(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ct(l):0!==(i&=a)&&(r=ct(i))}else 0!==(a=n&~o)?r=ct(a):0!==i&&(r=ct(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function dt(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;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function vt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,wt,xt,St,Ct,kt=!1,Et=[],Rt=null,Mt=null,Pt=null,Tt=new Map,It=new Map,Ot=[],Dt="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 Ft(e,t){switch(e){case"focusin":case"focusout":Rt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=yo(e.target);if(null!==t){var n=_e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Ct(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function $t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function Nt(e,t,n){$t(e)&&n.delete(t)}function zt(){kt=!1,null!==Rt&&$t(Rt)&&(Rt=null),null!==Mt&&$t(Mt)&&(Mt=null),null!==Pt&&$t(Pt)&&(Pt=null),Tt.forEach(Nt),It.forEach(Nt)}function jt(e,n){e.blockedOn===n&&(e.blockedOn=null,kt||(kt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zt)))}function _t(e){function t(t){return jt(t,e)}if(0<Et.length){jt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Rt&&jt(Rt,e),null!==Mt&&jt(Mt,e),null!==Pt&&jt(Pt,e),Tt.forEach(t),It.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)At(n),null===n.blockedOn&&Ot.shift()}var Bt=v.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=1,Ut(e,t,n,r)}finally{bt=o,Bt.transition=i}}function Wt(e,t,n,r){var o=bt,i=Bt.transition;Bt.transition=null;try{bt=4,Ut(e,t,n,r)}finally{bt=o,Bt.transition=i}}function Ut(e,t,n,r){if(Ht){var o=Kt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),Ft(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Rt=Lt(Rt,e,t,n,r,o),!0;case"dragenter":return Mt=Lt(Mt,e,t,n,r,o),!0;case"mouseover":return Pt=Lt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Lt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Lt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&yt(i),null===(i=Kt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=yo(e=ye(r))))if(null===(t=_e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function qt(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(Xe()){case Qe:return 1;case Ze:return 4;case Je:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Qt=null;function Zt(){if(Qt)return Qt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=nn(ln),cn=A({},ln,{view:0,detail:0}),un=nn(cn),dn=A({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),pn=nn(dn),fn=nn(A({},dn,{dataTransfer:0})),hn=nn(A({},cn,{relatedTarget:0})),mn=nn(A({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=A({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=nn(gn),vn=nn(A({},ln,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var kn=A({},cn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=nn(kn),Rn=nn(A({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=nn(A({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Pn=nn(A({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=A({},dn,{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}),In=nn(Tn),On=[9,13,27,32],Dn=s&&"CompositionEvent"in window,Fn=null;s&&"documentMode"in document&&(Fn=document.documentMode);var Ln=s&&"TextEvent"in window&&!Fn,An=s&&(!Dn||Fn&&8<Fn&&11>=Fn),$n=String.fromCharCode(32),Nn=!1;function zn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var _n=!1;var Bn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Vn(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Un=null;function Gn(e){$r(e,0)}function Kn(e){if(U(So(e)))return e}function qn(e,t){if("change"===e)return t}var Yn=!1;if(s){var Xn;if(s){var Qn="oninput"in document;if(!Qn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Qn="function"==typeof Zn.oninput}Xn=Qn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function Jn(){Wn&&(Wn.detachEvent("onpropertychange",er),Un=Wn=null)}function er(e){if("value"===e.propertyName&&Kn(Un)){var t=[];Vn(t,Un,e,ye(e)),Te(Gn,t)}}function tr(e,t,n){"focusin"===e?(Jn(),Un=n,(Wn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Jn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Un)}function rr(e,t){if("click"===e)return Kn(t)}function or(e,t){if("input"===e||"change"===e)return Kn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)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(!c.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function cr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?cr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=sr(n,i);var a=sr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=s&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,br=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==hr||hr!==G(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=Wr(mr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},xr={},Sr={};function Cr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}s&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var kr=Cr("animationend"),Er=Cr("animationiteration"),Rr=Cr("animationstart"),Mr=Cr("transitionend"),Pr=new Map,Tr="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 Ir(e,t){Pr.set(e,t),i(t,[e])}for(var Or=0;Or<Tr.length;Or++){var Dr=Tr[Or];Ir(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Er,"onAnimationIteration"),Ir(Rr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Mr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,l,s,c){if(je.apply(this,arguments),Le){if(!Le)throw Error(n(198));var u=Ae;Le=!1,Ae=null,$e||($e=!0,Ne=u)}}(o,t,void 0,e),e.currentTarget=null}function $r(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Ar(o,l,c),i=s}}}if($e)throw e=Ne,$e=!1,Ne=null,e}function Nr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function _r(e){if(!e[jr]){e[jr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Lr.has(t)||zr(t,!1,e),zr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,zr("selectionchange",!1,t))}}function Br(e,t,n,r){switch(qt(t)){case 1:var o=Vt;break;case 4:o=Wt;break;default:o=Ut}n=o.bind(null,t,n,e),o=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Te(function(){var r=i,o=ye(n),a=[];e:{var l=Pr.get(e);if(void 0!==l){var s=sn,c=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":s=En;break;case"focusin":c="focus",s=hn;break;case"focusout":c="blur",s=hn;break;case"beforeblur":case"afterblur":s=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Mn;break;case kr:case Er:case Rr:s=mn;break;case Mr:s=Pn;break;case"scroll":s=un;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Rn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Ie(h,p))&&u.push(Vr(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===ve||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[fo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=_e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=pn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:So(s),f=null==c?l:So(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,yo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=Ur(f))h++;for(f=0,m=p;m;m=Ur(m))f++;for(;0<h-f;)u=Ur(u),h--;for(;0<f-h;)p=Ur(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Ur(u),p=Ur(p)}u=null}else u=null;null!==s&&Gr(a,l,s,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=qn;else if(Hn(l))if(Yn)g=or;else{g=nr;var b=tr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=rr);switch(g&&(g=g(e,r))?Vn(a,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&Z(l,"number",l.value)),b=r?So(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(hr=b,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,vr(a,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":vr(a,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else _n?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(An&&"ko"!==n.locale&&(_n||"onCompositionStart"!==y?"onCompositionEnd"===y&&_n&&(v=Zt()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,_n=!0)),0<(b=Wr(r,y)).length&&(y=new vn(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=jn(n))&&(y.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Nn=!0,$n);case"textInput":return(e=t.data)===$n&&Nn?null:e;default:return null}}(e,n):function(e,t){if(_n)return"compositionend"===e||!Dn&&zn(e,t)?(e=Zt(),Qt=Xt=Yt=null,_n=!1,e):null;switch(e){case"paste":default: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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(o=new vn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}$r(a,t)})}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Ie(n,i))&&a.unshift(Vr(n,s,l)):o||null!=(s=Ie(n,i))&&a.push(Vr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(qr,"")}function Xr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Qr(){}var Zr=null,Jr=null;function eo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var to="function"==typeof setTimeout?setTimeout:void 0,no="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,oo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ro?function(e){return ro.resolve(null).then(e).catch(io)}:to;function io(e){setTimeout(function(){throw e})}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void _t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);_t(t)}function lo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function so(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var co=Math.random().toString(36).slice(2),uo="__reactFiber$"+co,po="__reactProps$"+co,fo="__reactContainer$"+co,mo="__reactEvents$"+co,go="__reactListeners$"+co,vo="__reactHandles$"+co;function yo(e){var t=e[uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fo]||n[uo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=so(e);null!==e;){if(n=e[uo])return n;e=so(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[uo]||e[fo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function Co(e){return e[po]||null}var ko=[],Eo=-1;function Ro(e){return{current:e}}function Mo(e){0>Eo||(e.current=ko[Eo],ko[Eo]=null,Eo--)}function Po(e,t){Eo++,ko[Eo]=e.current,e.current=t}var To={},Io=Ro(To),Oo=Ro(!1),Do=To;function Fo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lo(e){return null!=(e=e.childContextTypes)}function Ao(){Mo(Oo),Mo(Io)}function $o(e,t,r){if(Io.current!==To)throw Error(n(168));Po(Io,t),Po(Oo,r)}function No(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,B(e)||"Unknown",i));return A({},r,o)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Do=Io.current,Po(Io,e),Po(Oo,Oo.current),!0}function jo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=No(e,t,Do),o.__reactInternalMemoizedMergedChildContext=e,Mo(Oo),Mo(Io),Po(Io,e)):Mo(Oo),Po(Oo,r)}var _o=null,Bo=!1,Ho=!1;function Vo(e){null===_o?_o=[e]:_o.push(e)}function Wo(){if(!Ho&&null!==_o){Ho=!0;var e=0,t=bt;try{var n=_o;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_o=null,Bo=!1}catch(t){throw null!==_o&&(_o=_o.slice(e+1)),Ue(Qe,Wo),t}finally{bt=t,Ho=!1}}return null}var Uo=[],Go=0,Ko=null,qo=0,Yo=[],Xo=0,Qo=null,Zo=1,Jo="";function ei(e,t){Uo[Go++]=qo,Uo[Go++]=Ko,Ko=e,qo=t}function ti(e,t,n){Yo[Xo++]=Zo,Yo[Xo++]=Jo,Yo[Xo++]=Qo,Qo=e;var r=Zo;e=Jo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var i=32-ot(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Zo=1<<32-ot(t)+o|n<<o|r,Jo=i+e}else Zo=1<<i|n<<o|r,Jo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Ko;)Ko=Uo[--Go],Uo[Go]=null,qo=Uo[--Go],Uo[Go]=null;for(;e===Qo;)Qo=Yo[--Xo],Yo[Xo]=null,Jo=Yo[--Xo],Yo[Xo]=null,Zo=Yo[--Xo],Yo[Xo]=null}var oi=null,ii=null,ai=!1,li=null;function si(e,t){var n=Dc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=lo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Zo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var r=t;if(!ci(e,t)){if(ui(e))throw Error(n(418));t=lo(r.nextSibling);var o=oi;t&&ci(e,t)?si(o,r):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ui(e))throw Error(n(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function fi(e){if(e!==oi)return!1;if(!ai)return pi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!eo(e.type,e.memoizedProps)),t&&(t=ii)){if(ui(e))throw hi(),Error(n(418));for(;t;)si(e,t),t=lo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ii=lo(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ii=null}}else ii=oi?lo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ii;e;)e=lo(e.nextSibling)}function mi(){ii=oi=null,ai=!1}function gi(e){null===li?li=[e]:li.push(e)}var bi=v.ReactCurrentBatchConfig;function vi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&wi(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=$c(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case w:return(t=jc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(J(t)||F(t))return(t=$c(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?c(e,t,n,r):null;case w:return n.key===o?u(e,t,n,r):null;case I:return f(e,t,(o=n._init)(n._payload),r)}if(J(n)||F(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(J(r)||F(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(n,i,l,s){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(n,d,l[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===l.length)return r(n,d),ai&&ei(n,m),c;if(null===d){for(;m<l.length;m++)null!==(d=p(n,l[m],s))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ai&&ei(n,m),c}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(n,e)}),ai&&ei(n,m),c}function g(i,l,s,c){var u=F(s);if("function"!=typeof u)throw Error(n(150));if(null==(s=u.call(s)))throw Error(n(151));for(var d=u=null,m=l,g=l=0,b=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(i,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(i,m),l=a(y,l,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return r(i,m),ai&&ei(i,g),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=p(i,v.value,c))&&(l=a(v,l,g),null===d?u=v:d.sibling=v,d=v);return ai&&ei(i,g),u}for(m=o(i,m);!v.done;g++,v=s.next())null!==(v=h(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=a(v,l,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(i,e)}),ai&&ei(i,g),u}return function e(n,o,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case y:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===x){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&wi(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=vi(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===x?((o=$c(a.props.children,n.mode,s,a.key)).return=n,n=o):((s=Ac(a.type,a.key,a.props,null,n.mode,s)).ref=vi(n,o,a),s.return=n,n=s)}return l(n);case w:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=jc(a,n.mode,s)).return=n,n=o}return l(n);case I:return e(n,o,(u=a._init)(a._payload),s)}if(J(a))return m(n,o,a,s);if(F(a))return g(n,o,a,s);yi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=zc(a,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Si=xi(!0),Ci=xi(!1),ki=Ro(null),Ei=null,Ri=null,Mi=null;function Pi(){Mi=Ri=Ei=null}function Ti(e){var t=ki.current;Mo(ki),e._currentValue=t}function Ii(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Ei=e,Mi=Ri=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Di(e){var t=e._currentValue;if(Mi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ri){if(null===Ei)throw Error(n(308));Ri=e,Ei.dependencies={lanes:0,firstContext:e}}else Ri=Ri.next=e;return t}var Fi=null;function Li(e){null===Fi?Fi=[e]:Fi.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Li(t)):(n.next=o.next,o.next=n),t.interleaved=n,$i(e,r)}function $i(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ni=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(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 _i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ts){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$i(e,n)}return null===(o=r.interleaved)?(t.next=t,Li(r)):(t.next=o.next,o.next=t),r.interleaved=t,$i(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Vi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Ni=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=A({},d,p);break e;case 2:Ni=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ns|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Gi={},Ki=Ro(Gi),qi=Ro(Gi),Yi=Ro(Gi);function Xi(e){if(e===Gi)throw Error(n(174));return e}function Qi(e,t){switch(Po(Yi,t),Po(qi,e),Po(Ki,Gi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mo(Ki),Po(Ki,t)}function Zi(){Mo(Ki),Mo(qi),Mo(Yi)}function Ji(e){Xi(Yi.current);var t=Xi(Ki.current),n=ae(t,e.type);t!==n&&(Po(qi,e),Po(Ki,n))}function ea(e){qi.current===e&&(Mo(Ki),Mo(qi))}var ta=Ro(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function oa(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=v.ReactCurrentDispatcher,aa=v.ReactCurrentBatchConfig,la=0,sa=null,ca=null,ua=null,da=!1,pa=!1,fa=0,ha=0;function ma(){throw Error(n(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function ba(e,t,r,o,i,a){if(la=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?el:tl,e=r(o,i),pa){a=0;do{if(pa=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=ca=null,t.updateQueue=null,ia.current=nl,e=r(o,i)}while(pa)}if(ia.current=Ja,t=null!==ca&&null!==ca.next,la=0,ua=ca=sa=null,da=!1,t)throw Error(n(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function wa(){if(null===ca){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,ca=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=wa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=ca,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((la&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=o):c=c.next=p,sa.lanes|=d,Ns|=d}u=u.next}while(null!==u&&u!==a);null===c?l=o:c.next=s,ir(o,t.memoizedState)||(wl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ns|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ca(e){var t=wa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);ir(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function ka(){}function Ea(e,t){var r=sa,o=wa(),i=t(),a=!ir(o.memoizedState,i);if(a&&(o.memoizedState=i,wl=!0),o=o.queue,Na(Pa.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Da(9,Ma.bind(null,r,o,i,t),void 0,null),null===Is)throw Error(n(349));30&la||Ra(r,t,i)}return i}function Ra(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ia(e)}function Pa(e,t,n){return n(function(){Ta(t)&&Ia(e)})}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Ia(e){var t=$i(e,1);null!==t&&rc(t,e,1,-1)}function Oa(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return wa().memoizedState}function La(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Da(1|t,n,void 0,void 0===r?null:r)}function Aa(e,t,n,r){var o=wa();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Da(t,n,i,r))}sa.flags|=e,o.memoizedState=Da(1|t,n,i,r)}function $a(e,t){return La(8390656,8,e,t)}function Na(e,t){return Aa(2048,8,e,t)}function za(e,t){return Aa(4,2,e,t)}function ja(e,t){return Aa(4,4,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4,4,_a.bind(null,t,e),n)}function Ha(){}function Va(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 21&la?(ir(n,t)||(n=ft(),sa.lanes|=n,Ns|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{bt=n,aa.transition=r}}function Ka(){return wa().memoizedState}function qa(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Qa(t,n);else if(null!==(n=Ai(e,t,n,r))){rc(n,e,r,tc()),Za(n,t,r)}}function Ya(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Qa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ir(l,a)){var s=t.interleaved;return null===s?(o.next=o,Li(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ai(e,t,o,r))&&(rc(n,e,r,o=tc()),Za(n,t,r))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){pa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Ja={readContext:Di,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},el={readContext:Di,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Di,useEffect:$a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,La(4194308,4,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return La(4194308,4,e,t)},useInsertionEffect:function(e,t){return La(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?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=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:Ha,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Ga.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=sa,i=ya();if(ai){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Is)throw Error(n(349));30&la||Ra(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,$a(Pa.bind(null,o,a,e),[e]),o.flags|=2048,Da(9,Ma.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Is.identifierPrefix;if(ai){var n=Jo;t=":"+t+"R"+(n=(Zo&~(1<<32-ot(Zo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},tl={readContext:Di,useCallback:Va,useContext:Di,useEffect:Na,useImperativeHandle:Ba,useInsertionEffect:za,useLayoutEffect:ja,useMemo:Wa,useReducer:Sa,useRef:Fa,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Ua(wa(),ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1},nl={readContext:Di,useCallback:Va,useContext:Di,useEffect:Na,useImperativeHandle:Ba,useInsertionEffect:za,useLayoutEffect:ja,useMemo:Wa,useReducer:Ca,useRef:Fa,useState:function(){return Ca(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Ua(t,ca.memoizedState,e)},useTransition:function(){return[Ca(xa)[0],wa().memoizedState]},useMutableSource:ka,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1};function rl(e,t){if(e&&e.defaultProps){for(var n in t=A({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return!!(e=e._reactInternals)&&_e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=_i(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(rc(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=_i(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(rc(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=_i(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(rc(t,e,r,n),Hi(t,e,r))}};function al(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,i))}function ll(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=Di(i):(o=Lo(t)?Do:Io.current,i=(r=null!=(r=t.contextTypes))?Fo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Di(i):(i=Lo(t)?Do:Io.current,o.context=Fo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ol(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&il.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pl(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var fl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=_i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Us||(Us=!0,Gs=r),pl(0,t)},n}function ml(e,t,n){(n=_i(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){pl(0,t),"function"!=typeof r&&(null===Ks?Ks=new Set([this]):Ks.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Rc.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=_i(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var yl=v.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Si(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ba(e,t,n,r,i,o),n=va(),null===e||wl?(ai&&n&&ni(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Lc(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ar(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);131072&e.flags&&(wl=!0)}}return Ml(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ls,Fs),Fs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ls,Fs),Fs|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ls,Fs),Fs|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ls,Fs),Fs|=r;return xl(e,t,o,n),t.child}function Rl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ml(e,t,n,r,o){var i=Lo(n)?Do:Io.current;return i=Fo(t,i),Oi(t,o),n=ba(e,t,n,r,i,o),r=va(),null===e||wl?(ai&&r&&ni(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Pl(e,t,n,r,o){if(Lo(n)){var i=!0;zo(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Wl(e,t),ll(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Di(c):c=Fo(t,c=Lo(n)?Do:Io.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&sl(t,a,r,c),Ni=!1;var p=t.memoizedState;a.state=p,Wi(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Oo.current||Ni?("function"==typeof u&&(ol(t,n,u,r),s=t.memoizedState),(l=Ni||al(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ji(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:rl(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Di(s):s=Fo(t,s=Lo(n)?Do:Io.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&sl(t,a,r,s),Ni=!1,p=t.memoizedState,a.state=p,Wi(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Oo.current||Ni?("function"==typeof f&&(ol(t,n,f,r),h=t.memoizedState),(c=Ni||al(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Tl(e,t,n,r,i,o)}function Tl(e,t,n,r,o,i){Rl(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&jo(t,n,!1),Ul(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?$o(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$o(0,t.context,!1),Qi(e,t.containerInfo)}function Ol(e,t,n,r,o){return mi(),gi(o),t.flags|=256,xl(e,t,n,r),t.child}var Dl,Fl,Ll,Al,$l={dehydrated:null,treeContext:null,retryLane:0};function Nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,r){var o,i=t.pendingProps,a=ta.current,l=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ta,1&a),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},1&i||null===l?l=Nc(s,i,0,null):(l.childLanes=0,l.pendingProps=s),e=$c(e,i,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Nl(r),t.memoizedState=$l,e):jl(t,s));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,l){if(r)return 256&t.flags?(t.flags&=-257,_l(e,t,l,o=dl(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Nc({mode:"visible",children:o.children},i,0,null),(a=$c(a,i,l,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&Si(t,e.child,null,l),t.child.memoizedState=Nl(l),t.memoizedState=$l,a);if(!(1&t.mode))return _l(e,t,l,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var s=o.dgst;return o=s,_l(e,t,l,o=dl(a=Error(n(419)),o,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(o=Is)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,$i(e,i),rc(o,e,i,-1))}return gc(),_l(e,t,l,o=dl(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ii=lo(i.nextSibling),oi=t,ai=!0,li=null,null!==e&&(Yo[Xo++]=Zo,Yo[Xo++]=Jo,Yo[Xo++]=Qo,Zo=e.id,Jo=e.overflow,Qo=t),t=jl(t,o.children),t.flags|=4096,t)}(e,t,s,i,o,a,r);if(l){l=i.fallback,s=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&s||t.child===a?(i=Lc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==o?l=Lc(o,l):(l=$c(l,s,r,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Nl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=$l,i}return e=(l=e.child).sibling,i=Lc(l,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function jl(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function _l(e,t,n,r){return null!==r&&gi(r),Si(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ii(e.return,t,n)}function Hl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ta,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===na(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Wl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ns|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Lc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Lc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Gl(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)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 ql(e,t,r){var i=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kl(t),null;case 1:case 17:return Lo(t.type)&&Ao(),Kl(t),null;case 3:return i=t.stateNode,Zi(),Mo(Oo),Mo(Io),oa(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==li&&(lc(li),li=null))),Fl(e,t),Kl(t),null;case 5:ea(t);var a=Xi(Yi.current);if(r=t.type,null!==e&&null!=t.stateNode)Ll(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Kl(t),null}if(e=Xi(Ki.current),fi(t)){i=t.stateNode,r=t.type;var l=t.memoizedProps;switch(i[uo]=t,i[po]=l,e=!!(1&t.mode),r){case"dialog":Nr("cancel",i),Nr("close",i);break;case"iframe":case"object":case"embed":Nr("load",i);break;case"video":case"audio":for(a=0;a<Fr.length;a++)Nr(Fr[a],i);break;case"source":Nr("error",i);break;case"img":case"image":case"link":Nr("error",i),Nr("load",i);break;case"details":Nr("toggle",i);break;case"input":q(i,l),Nr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!l.multiple},Nr("invalid",i);break;case"textarea":ne(i,l),Nr("invalid",i)}for(var s in ge(r,l),a=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?i.textContent!==c&&(!0!==l.suppressHydrationWarning&&Xr(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Xr(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Nr("scroll",i)}switch(r){case"input":W(i),Q(i,l,!0);break;case"textarea":W(i),oe(i);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(i.onclick=Qr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),"select"===r&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[uo]=t,e[po]=i,Dl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(r,i),r){case"dialog":Nr("cancel",e),Nr("close",e),a=i;break;case"iframe":case"object":case"embed":Nr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Fr.length;a++)Nr(Fr[a],e);a=i;break;case"source":Nr("error",e),a=i;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),a=i;break;case"details":Nr("toggle",e),a=i;break;case"input":q(e,i),a=K(e,i),Nr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=A({},i,{value:void 0}),Nr("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),Nr("invalid",e)}for(l in ge(r,a),c=a)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?he(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&ce(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&ue(e,u):"number"==typeof u&&ue(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=u&&"onScroll"===l&&Nr("scroll",e):null!=u&&b(e,l,u,s))}switch(r){case"input":W(e),Q(e,i,!1);break;case"textarea":W(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+H(i.value));break;case"select":e.multiple=!!i.multiple,null!=(l=i.value)?ee(e,!!i.multiple,l,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Qr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Kl(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Xi(Yi.current),Xi(Ki.current),fi(t)){if(i=t.stateNode,r=t.memoizedProps,i[uo]=t,(l=i.nodeValue!==r)&&null!==(e=oi))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}l&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[uo]=t,t.stateNode=i}return Kl(t),null;case 13:if(Mo(ta),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))hi(),mi(),t.flags|=98560,l=!1;else if(l=fi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[uo]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),l=!1}else null!==li&&(lc(li),li=null),l=!0;if(!l)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===As&&(As=3):gc())),null!==t.updateQueue&&(t.flags|=4),Kl(t),null);case 4:return Zi(),Fl(e,t),null===e&&_r(t.stateNode.containerInfo),Kl(t),null;case 10:return Ti(t.type._context),Kl(t),null;case 19:if(Mo(ta),null===(l=t.memoizedState))return Kl(t),null;if(i=!!(128&t.flags),null===(s=l.rendering))if(i)Gl(l,!1);else{if(0!==As||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=na(e))){for(t.flags|=128,Gl(l,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(l=r).flags&=14680066,null===(s=l.alternate)?(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=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Po(ta,1&ta.current|2),t.child}e=e.sibling}null!==l.tail&&Ye()>Vs&&(t.flags|=128,i=!0,Gl(l,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=na(s))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Gl(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!ai)return Kl(t),null}else 2*Ye()-l.renderingStartTime>Vs&&1073741824!==r&&(t.flags|=128,i=!0,Gl(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ye(),t.sibling=null,r=ta.current,Po(ta,i?1&r|2:1&r),t):(Kl(t),null);case 22:case 23:return pc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Fs)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Yl(e,t){switch(ri(t),t.tag){case 1:return Lo(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zi(),Mo(Oo),Mo(Io),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Mo(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mo(ta),null;case 4:return Zi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Dl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Fl=function(){},Ll=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xi(Ki.current);var a,l=null;switch(n){case"input":i=K(e,i),r=K(e,r),l=[];break;case"select":i=A({},i,{value:void 0}),r=A({},r,{value:void 0}),l=[];break;case"textarea":i=te(e,i),r=te(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(u in ge(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Nr("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Ql=!1,Zl="function"==typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ec(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Ec(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[uo],delete t[po],delete t[mo],delete t[go],delete t[vo])),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 ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,ps=!1;function fs(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Ql||es(n,t);case 6:var r=ds,o=ps;ds=null,fs(e,t,n),ps=o,null!==(ds=r)&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),_t(e)):ao(ds,n.stateNode));break;case 4:r=ds,o=ps,ds=n.stateNode.containerInfo,ps=!0,fs(e,t,n),ds=r,ps=o;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ts(n,t,a),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Ql&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ec(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,fs(e,t,n),Ql=r):fs(e,t,n);break;default:fs(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zl),t.forEach(function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gs(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,ps=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,ps=!0;break e}s=s.return}if(null===ds)throw Error(n(160));hs(a,l,i),ds=null,ps=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){Ec(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),vs(e),4&o){try{rs(3,e,e.return),os(3,e)}catch(t){Ec(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Ec(e,e.return,t)}}break;case 1:gs(t,e),vs(e),512&o&&null!==r&&es(r,r.return);break;case 5:if(gs(t,e),vs(e),512&o&&null!==r&&es(r,r.return),32&e.flags){var i=e.stateNode;try{ue(i,"")}catch(t){Ec(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==r?r.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&Y(i,a),be(s,l);var u=be(s,a);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?he(i,p):"dangerouslySetInnerHTML"===d?ce(i,p):"children"===d?ue(i,p):b(i,d,p,u)}switch(s){case"input":X(i,a);break;case"textarea":re(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[po]=a}catch(t){Ec(e,e.return,t)}}break;case 6:if(gs(t,e),vs(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Ec(e,e.return,t)}}break;case 3:if(gs(t,e),vs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{_t(t.containerInfo)}catch(t){Ec(e,e.return,t)}break;case 4:default:gs(t,e),vs(e);break;case 13:gs(t,e),vs(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hs=Ye())),4&o&&ms(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ql=(u=Ql)||d,gs(t,e),Ql=u):gs(t,e),vs(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Jl=e,d=e.child;null!==d;){for(p=Jl=d;null!==Jl;){switch(h=(f=Jl).child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:es(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Ec(o,r,e)}}break;case 5:es(f,f.return);break;case 22:if(null!==f.memoizedState){Ss(p);continue}}null!==h?(h.return=f,Jl=h):Ss(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,l=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=fe("display",l))}catch(t){Ec(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Ec(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gs(t,e),vs(e),4&o&&ms(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ls(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ue(i,""),o.flags&=-33),us(e,ss(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;cs(e,ss(e),a);break;default:throw Error(n(161))}}catch(t){Ec(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Jl=e,ws(e)}function ws(e,t,n){for(var r=!!(1&e.mode);null!==Jl;){var o=Jl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Xl;var c=Ql;if(Xl=a,(Ql=s)&&!c)for(Jl=o;null!==Jl;)s=(a=Jl).child,22===a.tag&&null!==a.memoizedState?Cs(o):null!==s?(s.return=a,Jl=s):Cs(o);for(;null!==i;)Jl=i,ws(i),i=i.sibling;Jl=o,Xl=l,Ql=c}xs(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Jl=i):xs(e)}}function xs(e){for(;null!==Jl;){var t=Jl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ql||os(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Ql)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rl(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&_t(p)}}}break;default:throw Error(n(163))}Ql||512&t.flags&&is(t)}catch(e){Ec(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Jl=r;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Cs(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Ec(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ec(t,o,e)}}var i=t.return;try{is(t)}catch(e){Ec(t,i,e)}break;case 5:var a=t.return;try{is(t)}catch(e){Ec(t,a,e)}}}catch(e){Ec(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var ks,Es=Math.ceil,Rs=v.ReactCurrentDispatcher,Ms=v.ReactCurrentOwner,Ps=v.ReactCurrentBatchConfig,Ts=0,Is=null,Os=null,Ds=0,Fs=0,Ls=Ro(0),As=0,$s=null,Ns=0,zs=0,js=0,_s=null,Bs=null,Hs=0,Vs=1/0,Ws=null,Us=!1,Gs=null,Ks=null,qs=!1,Ys=null,Xs=0,Qs=0,Zs=null,Js=-1,ec=0;function tc(){return 6&Ts?Ye():-1!==Js?Js:Js=Ye()}function nc(e){return 1&e.mode?2&Ts&&0!==Ds?Ds&-Ds:null!==bi.transition?(0===ec&&(ec=ft()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:qt(e.type):1}function rc(e,t,r,o){if(50<Qs)throw Qs=0,Zs=null,Error(n(185));mt(e,r,o),2&Ts&&e===Is||(e===Is&&(!(2&Ts)&&(zs|=r),4===As&&sc(e,Ds)),oc(e,o),1===r&&0===Ts&&!(1&t.mode)&&(Vs=Ye()+500,Bo&&Wo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ot(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=dt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ut(e,e===Is?Ds:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,Vo(e)}(cc.bind(null,e)):Vo(cc.bind(null,e)),oo(function(){!(6&Ts)&&Wo()}),n=null;else{switch(vt(r)){case 1:n=Qe;break;case 4:n=Ze;break;case 16:default:n=Je;break;case 536870912:n=tt}n=Ic(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Js=-1,ec=0,6&Ts)throw Error(n(327));var r=e.callbackNode;if(Cc()&&e.callbackNode!==r)return null;var o=ut(e,e===Is?Ds:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=bc(e,o);else{t=o;var i=Ts;Ts|=2;var a=mc();for(Is===e&&Ds===t||(Ws=null,Vs=Ye()+500,fc(e,t));;)try{yc();break}catch(t){hc(e,t)}Pi(),Rs.current=a,Ts=i,null!==Os?t=0:(Is=null,Ds=0,t=As)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(o=i,t=ac(e,i))),1===t)throw r=$s,fc(e,0),sc(e,o),oc(e,Ye()),r;if(6===t)sc(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ir(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=bc(e,o),2===t&&(a=pt(e),0!==a&&(o=a,t=ac(e,a))),1!==t)))throw r=$s,fc(e,0),sc(e,o),oc(e,Ye()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Sc(e,Bs,Ws);break;case 3:if(sc(e,o),(130023424&o)===o&&10<(t=Hs+500-Ye())){if(0!==ut(e,0))break;if(((i=e.suspendedLanes)&o)!==o){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=to(Sc.bind(null,e,Bs,Ws),t);break}Sc(e,Bs,Ws);break;case 4:if(sc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var l=31-ot(o);a=1<<l,(l=t[l])>i&&(i=l),o&=~a}if(o=i,10<(o=(120>(o=Ye()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Es(o/1960))-o)){e.timeoutHandle=to(Sc.bind(null,e,Bs,Ws),o);break}Sc(e,Bs,Ws);break;default:throw Error(n(329))}}}return oc(e,Ye()),e.callbackNode===r?ic.bind(null,e):null}function ac(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Bs,Bs=n,null!==t&&lc(t)),e}function lc(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function sc(e,t){for(t&=~js,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&Ts)throw Error(n(327));Cc();var t=ut(e,0);if(!(1&t))return oc(e,Ye()),null;var r=bc(e,t);if(0!==e.tag&&2===r){var o=pt(e);0!==o&&(t=o,r=ac(e,o))}if(1===r)throw r=$s,fc(e,0),sc(e,t),oc(e,Ye()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Bs,Ws),oc(e,Ye()),null}function uc(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Vs=Ye()+500,Bo&&Wo())}}function dc(e){null!==Ys&&0===Ys.tag&&!(6&Ts)&&Cc();var t=Ts;Ts|=1;var n=Ps.transition,r=bt;try{if(Ps.transition=null,bt=1,e)return e()}finally{bt=r,Ps.transition=n,!(6&(Ts=t))&&Wo()}}function pc(){Fs=Ls.current,Mo(Ls)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,no(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:Zi(),Mo(Oo),Mo(Io),oa();break;case 5:ea(r);break;case 4:Zi();break;case 13:case 19:Mo(ta);break;case 10:Ti(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Is=e,Os=e=Lc(e.current,null),Ds=Fs=t,As=0,$s=null,js=zs=Ns=0,Bs=_s=null,null!==Fi){for(t=0;t<Fi.length;t++)if(null!==(r=(n=Fi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Fi=null}return e}function hc(e,t){for(;;){var r=Os;try{if(Pi(),ia.current=Ja,da){for(var o=sa.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}da=!1}if(la=0,ua=ca=sa=null,pa=!1,fa=0,Ms.current=null,null===r||null===r.return){As=1,$s=t,Os=null;break}e:{var a=e,l=r.return,s=r,c=t;if(t=Ds,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=bl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&gl(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){gl(a,u,t),gc();break e}c=Error(n(426))}else if(ai&&1&s.mode){var b=bl(l);if(null!==b){!(65536&b.flags)&&(b.flags|=256),vl(b,l,s,0,t),gi(ul(c,s));break e}}a=c=ul(c,s),4!==As&&(As=2),null===_s?_s=[a]:_s.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,hl(0,c,t));break e;case 1:s=c;var v=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Ks&&Ks.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}xc(r)}catch(e){t=e,Os===r&&null!==r&&(Os=r=r.return);continue}break}}function mc(){var e=Rs.current;return Rs.current=Ja,null===e?Ja:e}function gc(){0!==As&&3!==As&&2!==As||(As=4),null===Is||!(268435455&Ns)&&!(268435455&zs)||sc(Is,Ds)}function bc(e,t){var r=Ts;Ts|=2;var o=mc();for(Is===e&&Ds===t||(Ws=null,fc(e,t));;)try{vc();break}catch(t){hc(e,t)}if(Pi(),Ts=r,Rs.current=o,null!==Os)throw Error(n(261));return Is=null,Ds=0,As}function vc(){for(;null!==Os;)wc(Os)}function yc(){for(;null!==Os&&!Ke();)wc(Os)}function wc(e){var t=ks(e.alternate,e,Fs);e.memoizedProps=e.pendingProps,null===t?xc(e):Os=t,Ms.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Os=n);if(null===e)return As=6,void(Os=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=ql(n,t,Fs)))return void(Os=n);if(null!==(t=t.sibling))return void(Os=t);Os=t=e}while(null!==t);0===As&&(As=5)}function Sc(e,t,r){var o=bt,i=Ps.transition;try{Ps.transition=null,bt=1,function(e,t,r,o){do{Cc()}while(null!==Ys);if(6&Ts)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(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-ot(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Is&&(Os=Is=null,Ds=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||qs||(qs=!0,Ic(Je,function(){return Cc(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Ps.transition,Ps.transition=null;var l=bt;bt=1;var s=Ts;Ts|=4,Ms.current=null,function(e,t){if(Zr=Ht,dr(e=ur())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==i&&3!==p.nodeType||(s=l+i),p!==a||0!==o&&3!==p.nodeType||(c=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===i&&(s=l),f===a&&++d===o&&(c=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===s||-1===c?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jr={focusedElem:e,selectionRange:r},Ht=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:rl(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Ec(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=ns,ns=!1}(e,r),bs(r,e),pr(Jr),Ht=!!Zr,Jr=Zr=null,e.current=r,ys(r),qe(),Ts=s,bt=l,Ps.transition=a}else e.current=r;if(qs&&(qs=!1,Ys=e,Xs=i),a=e.pendingLanes,0===a&&(Ks=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),oc(e,Ye()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Us)throw Us=!1,e=Gs,Gs=null,e;!!(1&Xs)&&0!==e.tag&&Cc(),a=e.pendingLanes,1&a?e===Zs?Qs++:(Qs=0,Zs=e):Qs=0,Wo()}(e,t,r,o)}finally{Ps.transition=i,bt=o}return null}function Cc(){if(null!==Ys){var e=vt(Xs),t=Ps.transition,r=bt;try{if(Ps.transition=null,bt=16>e?16:e,null===Ys)var o=!1;else{if(e=Ys,Ys=null,Xs=0,6&Ts)throw Error(n(331));var i=Ts;for(Ts|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(16&Jl.flags){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Jl=u;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var p=d.child;if(null!==p)p.return=d,Jl=p;else for(;null!==Jl;){var f=(d=Jl).sibling,h=d.return;if(as(d),d===u){Jl=null;break}if(null!==f){f.return=h,Jl=f;break}Jl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Jl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(2048&(a=Jl).flags)switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Jl=v;break e}Jl=a.return}}var y=e.current;for(Jl=y;null!==Jl;){var w=(l=Jl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Jl=w;else e:for(l=y;null!==Jl;){if(2048&(s=Jl).flags)try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Ec(s,s.return,e)}if(s===l){Jl=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Jl=x;break e}Jl=s.return}}if(Ts=i,Wo(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}o=!0}return o}finally{bt=r,Ps.transition=t}}return!1}function kc(e,t,n){e=Bi(e,t=hl(0,t=ul(n,t),1),1),t=tc(),null!==e&&(mt(e,1,t),oc(e,t))}function Ec(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ks||!Ks.has(r))){t=Bi(t,e=ml(t,e=ul(n,e),1),1),e=tc(),null!==t&&(mt(t,1,e),oc(t,e));break}}t=t.return}}function Rc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ds&n)===n&&(4===As||3===As&&(130023424&Ds)===Ds&&500>Ye()-Hs?fc(e,0):js|=n),oc(e,t)}function Mc(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=tc();null!==(e=$i(e,t))&&(mt(e,t,n),oc(e,n))}function Pc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Mc(e,n)}function Tc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Mc(e,r)}function Ic(e,t){return Ue(e,t)}function Oc(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 Dc(e,t,n,r){return new Oc(e,t,n,r)}function Fc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Dc(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,r,o,i,a){var l=2;if(o=e,"function"==typeof e)Fc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return $c(r.children,i,a,t);case S:l=8,i|=8;break;case C:return(e=Dc(12,r,t,2|i)).elementType=C,e.lanes=a,e;case M:return(e=Dc(13,r,t,i)).elementType=M,e.lanes=a,e;case P:return(e=Dc(19,r,t,i)).elementType=P,e.lanes=a,e;case O:return Nc(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case E:l=9;break e;case R:l=11;break e;case T:l=14;break e;case I:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Dc(l,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function $c(e,t,n,r){return(e=Dc(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Dc(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function zc(e,t,n){return(e=Dc(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Dc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _c(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=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,l,s){return e=new _c(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Dc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(i),e}function Hc(e){if(!e)return To;e:{if(_e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Lo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Lo(r))return No(e,r,t)}return t}function Vc(e,t,n,r,o,i,a,l,s){return(e=Bc(n,r,!0,e,0,i,0,l,s)).context=Hc(null),n=e.current,(i=_i(r=tc(),o=nc(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,mt(e,o,r),oc(e,r),e}function Wc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=_i(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(rc(e,o,a,i),Hi(e,o,a)),a}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}ks=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)wl=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),mi();break;case 5:Ji(t);break;case 1:Lo(t.type)&&zo(t);break;case 4:Qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?zl(e,t,n):(Po(ta,1&ta.current),null!==(e=Ul(e,t,n))?e.sibling:null);Po(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Vl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Ul(e,t,n)}(e,t,r);wl=!!(131072&e.flags)}else wl=!1,ai&&1048576&t.flags&&ti(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var i=Fo(t,Io.current);Oi(t,r),i=ba(null,t,o,e,i,r);var a=va();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(o)?(a=!0,zo(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,zi(t),i.updater=il,t.stateNode=i,i._reactInternals=t,cl(t,o,e,r),t=Tl(null,t,o,!0,a,r)):(t.tag=0,ai&&a&&ni(t),xl(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Fc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===T)return 14}return 2}(o),e=rl(o,e),i){case 0:t=Ml(null,t,o,e,r);break e;case 1:t=Pl(null,t,o,e,r);break e;case 11:t=Sl(null,t,o,e,r);break e;case 14:t=Cl(null,t,o,rl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Ml(e,t,o,i=t.elementType===o?i:rl(o,i),r);case 1:return o=t.type,i=t.pendingProps,Pl(e,t,o,i=t.elementType===o?i:rl(o,i),r);case 3:e:{if(Il(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,ji(e,t),Wi(t,o,null,r);var l=t.memoizedState;if(o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ol(e,t,o,r,i=ul(Error(n(423)),t));break e}if(o!==i){t=Ol(e,t,o,r,i=ul(Error(n(424)),t));break e}for(ii=lo(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,li=null,r=Ci(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(mi(),o===i){t=Ul(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Ji(t),null===e&&di(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,eo(o,i)?l=null:null!==a&&eo(o,a)&&(t.flags|=32),Rl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&di(t),null;case 13:return zl(e,t,r);case 4:return Qi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Si(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,Sl(e,t,o,i=t.elementType===o?i:rl(o,i),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Po(ki,o._currentValue),o._currentValue=l,null!==a)if(ir(a.value,l)){if(a.children===i.children&&!Oo.current){t=Ul(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=_i(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Ii(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ii(l,r,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Oi(t,r),o=o(i=Di(i)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return i=rl(o=t.type,t.pendingProps),Cl(e,t,o,i=rl(o.type,i),r);case 15:return kl(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:rl(o,i),Wl(e,t),t.tag=1,Lo(o)?(e=!0,zo(t)):e=!1,Oi(t,r),ll(t,o,i),cl(t,o,i,r),Tl(null,t,o,!0,e,r);case 19:return Vl(e,t,r);case 22:return El(e,t,r)}throw Error(n(156,t.tag))};var qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Uc(a);l.call(e)}}Wc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uc(a);i.call(e)}}var a=Vc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[fo]=a.current,_r(8===e.nodeType?e.parentNode:e),dc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Uc(s);l.call(e)}}var s=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=s,e[fo]=s.current,_r(8===e.nodeType?e.parentNode:e),dc(function(){Wc(t,s,n,r)}),s}(n,t,e,o,r);return Uc(a)}Xc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Xc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc(function(){Wc(null,e,null,null)}),t[fo]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&At(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(gt(t,1|n),oc(t,Ye()),!(6&Ts)&&(Vs=Ye()+500,Wo()))}break;case 13:dc(function(){var t=$i(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}}),Kc(e,1)}},wt=function(e){if(13===e.tag){var t=$i(e,134217728);if(null!==t)rc(t,e,134217728,tc());Kc(e,134217728)}},xt=function(e){if(13===e.tag){var t=nc(e),n=$i(e,t);if(null!==n)rc(n,e,t,tc());Kc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=Co(o);if(!i)throw Error(n(90));U(o),X(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Re=uc,Me=dc;var tu={usingClientEntryPoint:!1,Events:[xo,So,Co,ke,Ee,uc]},nu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{nt=ou.inject(ru),rt=ou}catch(se){}}return bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,bo.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},bo.createRoot=function(e,t){if(!Qc(e))throw Error(n(299));var r=!1,o="",i=qc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,r,0,o,i),e[fo]=t.current,_r(8===e.nodeType?e.parentNode:e),new Yc(t)},bo.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},bo.flushSync=function(e){return dc(e)},bo.hydrate=function(e,t,r){if(!Zc(t))throw Error(n(200));return eu(null,e,t,!0,r)},bo.hydrateRoot=function(e,t,r){if(!Qc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",l=qc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Vc(t,null,e,1,null!=r?r:null,i,0,a,l),e[fo]=t.current,_r(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Xc(t)},bo.render=function(e,t,r){if(!Zc(t))throw Error(n(200));return eu(null,e,t,!1,r)},bo.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(n(40));return!!e._reactRootContainer&&(dc(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[fo]=null})}),!0)},bo.unstable_batchedUpdates=uc,bo.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Zc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return eu(e,t,r,!1,o)},bo.version="18.3.1-next-f1338f8080-20240426",bo}var So=(mo||(mo=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),go.exports=xo()),go.exports),Co=t(So),ko=!0,Eo=!1,Ro=null,Mo={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 Po(e){e.metaKey||e.altKey||e.ctrlKey||(ko=!0)}function To(){ko=!1}function Io(){"hidden"===this.visibilityState&&Eo&&(ko=!0)}function Oo(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return ko||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Mo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Do(){Eo=!0,window.clearTimeout(Ro),Ro=window.setTimeout(function(){Eo=!1},100)}function Fo(){var e=s.useCallback(function(e){var t,n=So.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Po,!0),t.addEventListener("mousedown",To,!0),t.addEventListener("pointerdown",To,!0),t.addEventListener("touchstart",To,!0),t.addEventListener("visibilitychange",Io,!0))},[]);return{isFocusVisible:Oo,onBlurVisible:Do,ref:e}}function Lo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ao=!1,$o=c.createContext(null),No=function(e){return e.scrollTop},zo="unmounted",jo="exited",_o="entering",Bo="entered",Ho="exiting",Vo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=jo,r.appearStatus=_o):o=Bo:o=t.unmountOnExit||t.mountOnEnter?zo:jo,r.state={status:o},r.nextCallback=null,r}V(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zo?{status:jo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==_o&&n!==Bo&&(t=_o):n!==_o&&n!==Bo||(t=Ho)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_o){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Co.findDOMNode(this);n&&No(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jo&&this.setState({status:zo})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Co.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Ao?this.safeSetState({status:Bo},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:_o},function(){t.props.onEntering(i,a),t.onTransitionEnd(s,function(){t.safeSetState({status:Bo},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Co.findDOMNode(this);t&&!Ao?(this.props.onExit(r),this.safeSetState({status:Ho},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:jo},function(){e.props.onExited(r)})})})):this.safeSetState({status:jo},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Co.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===zo)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return c.createElement($o.Provider,{value:null},"function"==typeof n?n(e,r):c.cloneElement(c.Children.only(n),r))},t}(c.Component);function Wo(){}Vo.contextType=$o,Vo.propTypes={},Vo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wo,onEntering:Wo,onEntered:Wo,onExit:Wo,onExiting:Wo,onExited:Wo},Vo.UNMOUNTED=zo,Vo.EXITED=jo,Vo.ENTERING=_o,Vo.ENTERED=Bo,Vo.EXITING=Ho;var Uo=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})},Go=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Lo(n.className,r):n.setAttribute("class",Lo(n.className&&n.className.baseVal||"",r)));var n,r})},Ko=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}V(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&No(e),r&&(this.appliedClasses[t][n]=r,Uo(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Go(e,r),o&&Go(e,o),i&&Go(e,i)},n.render=function(){var e=this.props;e.classNames;var t=d(e,["classNames"]);return c.createElement(Vo,f({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.Component);function qo(e,t){var n=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&s.isValidElement(e)?t(e):e}(e)}),n}function Yo(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Xo(e,t,n){var r=qo(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var l=i in t,c=i in r,u=t[i],d=s.isValidElement(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&s.isValidElement(u)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)})):o[i]=s.cloneElement(a,{in:!1}):o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Yo(a,"exit",e),enter:Yo(a,"enter",e)})}}),o}Ko.defaultProps={classNames:""},Ko.propTypes={};var Qo=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zo=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(W(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}V(t,e);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(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,qo(n.children,function(e){return s.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Yo(e,"appear",n),enter:Yo(e,"enter",n),exit:Yo(e,"exit",n)})})):Xo(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=qo(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=f({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d(e,["component","childFactory"]),o=this.state.contextValue,i=Qo(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c.createElement($o.Provider,{value:o},i):c.createElement($o.Provider,{value:o},c.createElement(t,r,i))},t}(c.Component);Zo.propTypes={},Zo.defaultProps={component:"div",childFactory:function(e){return e}};function Jo(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var ei="undefined"==typeof window?s.useEffect:s.useLayoutEffect;function ti(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,l=e.in,c=e.onExited,u=void 0===c?function(){}:c,d=e.timeout,p=s.useState(!1),f=p[0],h=p[1],m=E(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:a,height:a,top:-a/2+i,left:-a/2+o},b=E(t.child,f&&t.childLeaving,r&&t.childPulsate),v=co(u);return ei(function(){if(!l){h(!0);var e=setTimeout(v,d);return function(){clearTimeout(e)}}},[v,l,d]),s.createElement("span",{className:m,style:g},s.createElement("span",{className:b}))}var ni=s.forwardRef(function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=p(e,["center","classes","className"]),l=s.useState([]),c=l[0],u=l[1],d=s.useRef(0),h=s.useRef(null);s.useEffect(function(){h.current&&(h.current(),h.current=null)},[c]);var m=s.useRef(!1),g=s.useRef(null),b=s.useRef(null),v=s.useRef(null);s.useEffect(function(){return function(){clearTimeout(g.current)}},[]);var y=s.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;u(function(e){return[].concat(Ot(e),[s.createElement(ti,{key:d.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])}),d.current+=1,h.current=a},[o]),w=s.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,l=void 0===a?r||t.pulsate:a,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,p,f=c?null:v.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),d=Math.round(h.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,S=w.clientY;u=Math.round(x-h.left),d=Math.round(S-h.top)}if(l)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(p+=1);else{var C=2*Math.max(Math.abs((f?f.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((f?f.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===b.current&&(b.current=function(){y({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})},g.current=setTimeout(function(){b.current&&(b.current(),b.current=null)},80)):y({pulsate:i,rippleX:u,rippleY:d,rippleSize:p,cb:n})}},[r,y]),x=s.useCallback(function(){w({},{pulsate:!0})},[w]),S=s.useCallback(function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout(function(){S(e,t)}));b.current=null,u(function(e){return e.length>0?e.slice(1):e}),h.current=t},[]);return s.useImperativeHandle(t,function(){return{pulsate:x,start:w,stop:S}},[x,w,S]),s.createElement("span",f({className:E(o.root,i),ref:v},a),s.createElement(Zo,{component:null,exit:!0},c))}),ri=Kr(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(s.memo(ni)),oi=s.forwardRef(function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,l=e.classes,c=e.className,u=e.component,d=void 0===u?"button":u,h=e.disabled,m=void 0!==h&&h,g=e.disableRipple,b=void 0!==g&&g,v=e.disableTouchRipple,y=void 0!==v&&v,w=e.focusRipple,x=void 0!==w&&w,S=e.focusVisibleClassName,C=e.onBlur,k=e.onClick,R=e.onFocus,M=e.onFocusVisible,P=e.onKeyDown,T=e.onKeyUp,I=e.onMouseDown,O=e.onMouseLeave,D=e.onMouseUp,F=e.onTouchEnd,L=e.onTouchMove,A=e.onTouchStart,$=e.onDragLeave,N=e.tabIndex,z=void 0===N?0:N,j=e.TouchRippleProps,_=e.type,B=void 0===_?"button":_,H=p(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),V=s.useRef(null);var W=s.useRef(null),U=s.useState(!1),G=U[0],K=U[1];m&&G&&K(!1);var q=Fo(),Y=q.isFocusVisible,X=q.onBlurVisible,Q=q.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return co(function(r){return t&&t(r),!n&&W.current&&W.current[e](r),!0})}s.useImperativeHandle(n,function(){return{focusVisible:function(){K(!0),V.current.focus()}}},[]),s.useEffect(function(){G&&x&&!b&&W.current.pulsate()},[b,x,G]);var J=Z("start",I),ee=Z("stop",$),te=Z("stop",D),ne=Z("stop",function(e){G&&e.preventDefault(),O&&O(e)}),re=Z("start",A),oe=Z("stop",F),ie=Z("stop",L),ae=Z("stop",function(e){G&&(X(e),K(!1)),C&&C(e)},!1),le=co(function(e){V.current||(V.current=e.currentTarget),Y(e)&&(K(!0),M&&M(e)),R&&R(e)}),se=function(){var e=So.findDOMNode(V.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ce=s.useRef(!1),ue=co(function(e){x&&!ce.current&&G&&W.current&&" "===e.key&&(ce.current=!0,e.persist(),W.current.stop(e,function(){W.current.start(e)})),e.target===e.currentTarget&&se()&&" "===e.key&&e.preventDefault(),P&&P(e),e.target===e.currentTarget&&se()&&"Enter"===e.key&&!m&&(e.preventDefault(),k&&k(e))}),de=co(function(e){x&&" "===e.key&&W.current&&G&&!e.defaultPrevented&&(ce.current=!1,e.persist(),W.current.stop(e,function(){W.current.pulsate(e)})),T&&T(e),k&&e.target===e.currentTarget&&se()&&" "===e.key&&!e.defaultPrevented&&k(e)}),pe=d;"button"===pe&&H.href&&(pe="a");var fe={};"button"===pe?(fe.type=B,fe.disabled=m):("a"===pe&&H.href||(fe.role="button"),fe["aria-disabled"]=m);var he=uo(r,t),me=uo(Q,V),ge=uo(he,me),be=s.useState(!1),ve=be[0],ye=be[1];s.useEffect(function(){ye(!0)},[]);var we=ve&&!b&&!m;return s.createElement(pe,f({className:E(l.root,c,G&&[l.focusVisible,S],m&&l.disabled),onBlur:ae,onClick:k,onFocus:le,onKeyDown:ue,onKeyUp:de,onMouseDown:J,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:oe,onTouchMove:ie,onTouchStart:re,ref:ge,tabIndex:m?-1:z},fe,H),a,we?s.createElement(ri,f({ref:W,center:i},j)):null)}),ii=Kr({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(oi),ai={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},li=s.forwardRef(function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,l=void 0===a?"initial":a,c=e.component,u=e.display,d=void 0===u?"initial":u,h=e.gutterBottom,m=void 0!==h&&h,g=e.noWrap,b=void 0!==g&&g,v=e.paragraph,y=void 0!==v&&v,w=e.variant,x=void 0===w?"body1":w,S=e.variantMapping,C=void 0===S?ai:S,k=p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),R=c||(y?"p":C[x]||ai[x])||"span";return s.createElement(R,f({className:E(o.root,i,"inherit"!==x&&o[x],"initial"!==l&&o["color".concat(Jr(l))],b&&o.noWrap,m&&o.gutterBottom,y&&o.paragraph,"inherit"!==r&&o["align".concat(Jr(r))],"initial"!==d&&o["display".concat(Jr(d))]),ref:t},k))}),si=Kr(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(li),ci=s.createContext();function ui(){return s.useContext(ci)}var di=44,pi=s.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,l=void 0!==a&&a,c=e.size,u=void 0===c?40:c,d=e.style,h=e.thickness,m=void 0===h?3.6:h,g=e.value,b=void 0===g?0:g,v=e.variant,y=void 0===v?"indeterminate":v,w=p(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),x={},S={},C={};if("determinate"===y||"static"===y){var k=2*Math.PI*((di-m)/2);x.strokeDasharray=k.toFixed(3),C["aria-valuenow"]=Math.round(b),x.strokeDashoffset="".concat(((100-b)/100*k).toFixed(3),"px"),S.transform="rotate(-90deg)"}return s.createElement("div",f({className:E(n.root,r,"inherit"!==i&&n["color".concat(Jr(i))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[y]),style:f({width:u,height:u},S,d),ref:t,role:"progressbar"},C,w),s.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(di," ").concat(di)},s.createElement("circle",{className:E(n.circle,l&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[y]),style:x,cx:di,cy:di,r:(di-m)/2,fill:"none",strokeWidth:m})))}),fi=Kr(function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},{name:"MuiCircularProgress",flip:!1})(pi),hi=s.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,l=void 0!==a&&a,c=e.fixed,u=void 0!==c&&c,d=e.maxWidth,h=void 0===d?"lg":d,m=p(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return s.createElement(i,f({className:E(n.root,r,u&&n.fixed,l&&n.disableGutters,!1!==h&&n["maxWidth".concat(Jr(String(h)))]),ref:t},m))}),mi=Kr(function(e){return{root:I({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce(function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t},{}),maxWidthXs:I({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:I({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:I({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:I({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:I({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}},{name:"MuiContainer"})(hi);var gi="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,bi=s.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,l=s.useState(null),c=l[0],u=l[1],d=uo(s.isValidElement(n)?n.ref:null,t);return gi(function(){i||u(function(e){return e="function"==typeof e?e():e,So.findDOMNode(e)}(r)||document.body)},[r,i]),gi(function(){if(c&&!i)return lo(t,c),function(){lo(t,null)}},[t,c,i]),gi(function(){a&&(c||i)&&a()},[a,c,i]),i?s.isValidElement(n)?s.cloneElement(n,{ref:d}):n:c?So.createPortal(n,c):c});function vi(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function yi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wi(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function xi(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Ot(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&yi(e,r)})}function Si(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}function Ci(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=io(e);return t.body===e?ao(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=vi();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(wi(i)+a,"px"),n=io(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(wi(e)+a,"px")})}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}var ki=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return B(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yi(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);xi(t,e.mountNode,e.modalRef,r,!0);var o=Si(this.containers,function(e){return e.container===t});return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Si(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=Ci(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Si(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&yi(e.modalRef,!0),xi(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&yi(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Ei(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,l=void 0!==a&&a,c=e.getDoc,u=e.isEnabled,d=e.open,p=s.useRef(),f=s.useRef(null),h=s.useRef(null),m=s.useRef(),g=s.useRef(null),b=s.useCallback(function(e){g.current=So.findDOMNode(e)},[]),v=uo(t.ref,b),y=s.useRef();return s.useEffect(function(){y.current=d},[d]),!y.current&&d&&"undefined"!=typeof window&&(m.current=c().activeElement),s.useEffect(function(){if(d){var e=io(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!i&&u()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!i&&u()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval(function(){t()},50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[r,i,l,u,d]),s.createElement(s.Fragment,null,s.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),s.cloneElement(t,{ref:v}),s.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var Ri={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Mi=s.forwardRef(function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=p(e,["invisible","open"]);return o?s.createElement("div",f({"aria-hidden":!0,ref:t},i,{style:f({},Ri.root,r?Ri.invisible:{},i.style)})):null});var Pi=new ki,Ti=s.forwardRef(function(e,t){var n=$n(),r=z({name:"MuiModal",props:f({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Mi:o,a=r.BackdropProps,l=r.children,c=r.closeAfterTransition,u=void 0!==c&&c,d=r.container,h=r.disableAutoFocus,m=void 0!==h&&h,g=r.disableBackdropClick,b=void 0!==g&&g,v=r.disableEnforceFocus,y=void 0!==v&&v,w=r.disableEscapeKeyDown,x=void 0!==w&&w,S=r.disablePortal,C=void 0!==S&&S,k=r.disableRestoreFocus,E=void 0!==k&&k,R=r.disableScrollLock,M=void 0!==R&&R,P=r.hideBackdrop,T=void 0!==P&&P,I=r.keepMounted,O=void 0!==I&&I,D=r.manager,F=void 0===D?Pi:D,L=r.onBackdropClick,A=r.onClose,$=r.onEscapeKeyDown,N=r.onRendered,j=r.open,_=p(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=s.useState(!0),H=B[0],V=B[1],W=s.useRef({}),U=s.useRef(null),G=s.useRef(null),K=uo(G,t),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return io(U.current)},X=function(){return W.current.modalRef=G.current,W.current.mountNode=U.current,W.current},Q=function(){F.mount(X(),{disableScrollLock:M}),G.current.scrollTop=0},Z=co(function(){var e=function(e){return e="function"==typeof e?e():e,So.findDOMNode(e)}(d)||Y().body;F.add(X(),e),G.current&&Q()}),J=s.useCallback(function(){return F.isTopModal(X())},[F]),ee=co(function(e){U.current=e,e&&(N&&N(),j&&J()?Q():yi(G.current,!0))}),te=s.useCallback(function(){F.remove(X())},[F]);if(s.useEffect(function(){return function(){te()}},[te]),s.useEffect(function(){j?Z():q&&u||te()},[j,te,q,u,Z]),!O&&!j&&(!q||H))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Ur}),re={};return void 0===l.props.tabIndex&&(re.tabIndex=l.props.tabIndex||"-1"),q&&(re.onEnter=eo(function(){V(!1)},l.props.onEnter),re.onExited=eo(function(){V(!0),u&&te()},l.props.onExited)),s.createElement(bi,{ref:ee,container:d,disablePortal:C},s.createElement("div",f({ref:K,onKeyDown:function(e){"Escape"===e.key&&J()&&($&&$(e),x||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},_,{style:f({},ne.root,!j&&H?ne.hidden:{},_.style)}),T?null:s.createElement(i,f({open:j,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!b&&A&&A(e,"backdropClick"))}},a)),s.createElement(Ei,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:E,getDoc:Y,isEnabled:J,open:j},s.cloneElement(l,re))))});function Ii(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}function Oi(e,t){return parseInt(e[t],10)||0}var Di="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,Fi={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Li=s.forwardRef(function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=e.maxRows,l=e.minRows,c=void 0===l?1:l,u=e.style,d=e.value,h=p(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=a||o,g=r||i||c,b=s.useRef(null!=d).current,v=s.useRef(null),y=uo(t,v),w=s.useRef(null),x=s.useRef(0),S=s.useState({}),C=S[0],k=S[1],E=s.useCallback(function(){var t=v.current,n=window.getComputedStyle(t),r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=Oi(n,"padding-bottom")+Oi(n,"padding-top"),a=Oi(n,"border-bottom-width")+Oi(n,"border-top-width"),l=r.scrollHeight-i;r.value="x";var s=r.scrollHeight-i,c=l;g&&(c=Math.max(Number(g)*s,c)),m&&(c=Math.min(Number(m)*s,c));var u=(c=Math.max(c,s))+("border-box"===o?i+a:0),d=Math.abs(c-l)<=1;k(function(e){return x.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:u}):e})},[m,g,e.placeholder]);s.useEffect(function(){var e=ro(function(){x.current=0,E()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[E]),Di(function(){E()}),s.useEffect(function(){x.current=0},[d]);return s.createElement(s.Fragment,null,s.createElement("textarea",f({value:d,onChange:function(e){x.current=0,b||E(),n&&n(e)},ref:y,rows:g,style:f({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},u)},h)),s.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:f({},Fi,u)}))});function Ai(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Ai(e.value)&&""!==e.value||t&&Ai(e.defaultValue)&&""!==e.defaultValue)}var Ni="undefined"==typeof window?s.useEffect:s.useLayoutEffect,zi=s.forwardRef(function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var l=e.defaultValue,c=e.disabled,u=e.endAdornment;e.error;var d=e.fullWidth,h=void 0!==d&&d,m=e.id,g=e.inputComponent,b=void 0===g?"input":g,v=e.inputProps,y=void 0===v?{}:v,w=e.inputRef;e.margin;var x=e.multiline,S=void 0!==x&&x,C=e.name,k=e.onBlur,R=e.onChange,M=e.onClick,P=e.onFocus,T=e.onKeyDown,I=e.onKeyUp,D=e.placeholder,F=e.readOnly,L=e.renderSuffix,A=e.rows,$=e.rowsMax,N=e.rowsMin,z=e.maxRows,j=e.minRows,_=e.startAdornment,B=e.type,H=void 0===B?"text":B,V=e.value,W=p(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),U=null!=y.value?y.value:V,G=s.useRef(null!=U).current,K=s.useRef(),q=s.useCallback(function(e){},[]),Y=uo(y.ref,q),X=uo(w,Y),Q=uo(K,X),Z=s.useState(!1),J=Z[0],ee=Z[1],te=s.useContext(ci),ne=Ii({props:e,muiFormControl:te,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ne.focused=te?te.focused:J,s.useEffect(function(){!te&&c&&J&&(ee(!1),k&&k())},[te,c,J,k]);var re=te&&te.onFilled,oe=te&&te.onEmpty,ie=s.useCallback(function(e){$i(e)?re&&re():oe&&oe()},[re,oe]);Ni(function(){G&&ie({value:U})},[U,ie,G]);s.useEffect(function(){ie(K.current)},[]);var ae=b,le=f({},y,{ref:Q});"string"!=typeof ae?le=f({inputRef:Q,type:H},le,{ref:null}):S?!A||z||j||$||N?(le=f({minRows:A||j,rowsMax:$,maxRows:z},le),ae=Li):ae="textarea":le=f({type:H},le);return s.useEffect(function(){te&&te.setAdornedStart(Boolean(_))},[te,_]),s.createElement("div",f({className:E(i.root,i["color".concat(Jr(ne.color||"primary"))],a,ne.disabled&&i.disabled,ne.error&&i.error,h&&i.fullWidth,ne.focused&&i.focused,te&&i.formControl,S&&i.multiline,_&&i.adornedStart,u&&i.adornedEnd,"dense"===ne.margin&&i.marginDense),onClick:function(e){K.current&&e.currentTarget===e.target&&K.current.focus(),M&&M(e)},ref:t},W),_,s.createElement(ci.Provider,{value:null},s.createElement(ae,f({"aria-invalid":ne.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:l,disabled:ne.disabled,id:m,onAnimationStart:function(e){ie("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:C,placeholder:D,readOnly:F,required:ne.required,rows:A,value:U,onKeyDown:T,onKeyUp:I},le,{className:E(i.input,y.className,ne.disabled&&i.disabled,S&&i.inputMultiline,ne.hiddenLabel&&i.inputHiddenLabel,_&&i.inputAdornedStart,u&&i.inputAdornedEnd,"search"===H&&i.inputTypeSearch,"dense"===ne.margin&&i.inputMarginDense),onBlur:function(e){k&&k(e),y.onBlur&&y.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:function(e){if(!G){var t=e.target||K.current;if(null==t)throw new Error(O(1));ie({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];y.onChange&&y.onChange.apply(y,[e].concat(r)),R&&R.apply(void 0,[e].concat(r))},onFocus:function(e){ne.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),te&&te.onFocus?te.onFocus(e):ee(!0))}}))),u,L?L(f({},ne,{startAdornment:_})):null)}),ji=Kr(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:f({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(zi),_i=s.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,c=e.multiline,u=void 0!==c&&c,d=e.type,h=void 0===d?"text":d,m=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return s.createElement(ji,f({classes:f({},r,{root:E(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:l,multiline:u,ref:t,type:h},m))});_i.muiName="Input";var Bi=Kr(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),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:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(_i),Hi=s.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,l=e.component,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,h=e.error,m=void 0!==h&&h,g=e.fullWidth,b=void 0!==g&&g,v=e.focused,y=e.hiddenLabel,w=void 0!==y&&y,x=e.margin,S=void 0===x?"none":x,C=e.required,k=void 0!==C&&C,R=e.size,M=e.variant,P=void 0===M?"standard":M,T=p(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=s.useState(function(){var e=!1;return n&&s.Children.forEach(n,function(t){if(oo(t,["Input","Select"])){var n=oo(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}}),e}),O=I[0],D=I[1],F=s.useState(function(){var e=!1;return n&&s.Children.forEach(n,function(t){oo(t,["Input","Select"])&&$i(t.props,!0)&&(e=!0)}),e}),L=F[0],A=F[1],$=s.useState(!1),N=$[0],z=$[1],j=void 0!==v?v:N;d&&j&&z(!1);var _=s.useCallback(function(){A(!0)},[]),B={adornedStart:O,setAdornedStart:D,color:a,disabled:d,error:m,filled:L,focused:j,fullWidth:b,hiddenLabel:w,margin:("small"===R?"dense":void 0)||S,onBlur:function(){z(!1)},onEmpty:s.useCallback(function(){A(!1)},[]),onFilled:_,onFocus:function(){z(!0)},registerEffect:undefined,required:k,variant:P};return s.createElement(ci.Provider,{value:B},s.createElement(c,f({className:E(r.root,o,"none"!==S&&r["margin".concat(Jr(S))],b&&r.fullWidth),ref:t},T),n))}),Vi=Kr({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Hi),Wi=[0,1,2,3,4,5,6,7,8,9,10],Ui=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Ki=s.forwardRef(function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,l=e.className,c=e.component,u=void 0===c?"div":c,d=e.container,h=void 0!==d&&d,m=e.direction,g=void 0===m?"row":m,b=e.item,v=void 0!==b&&b,y=e.justify,w=e.justifyContent,x=void 0===w?"flex-start":w,S=e.lg,C=void 0!==S&&S,k=e.md,R=void 0!==k&&k,M=e.sm,P=void 0!==M&&M,T=e.spacing,I=void 0===T?0:T,O=e.wrap,D=void 0===O?"wrap":O,F=e.xl,L=void 0!==F&&F,A=e.xs,$=void 0!==A&&A,N=e.zeroMinWidth,z=void 0!==N&&N,j=p(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),_=E(a.root,l,h&&[a.container,0!==I&&a["spacing-xs-".concat(String(I))]],v&&a.item,z&&a.zeroMinWidth,"row"!==g&&a["direction-xs-".concat(String(g))],"wrap"!==D&&a["wrap-xs-".concat(String(D))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==(y||x)&&a["justify-content-xs-".concat(String(y||x))],!1!==$&&a["grid-xs-".concat(String($))],!1!==P&&a["grid-sm-".concat(String(P))],!1!==R&&a["grid-md-".concat(String(R))],!1!==C&&a["grid-lg-".concat(String(C))],!1!==L&&a["grid-xl-".concat(String(L))]);return s.createElement(u,f({className:_,ref:t},j))}),qi=Kr(function(e){return f({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Wi.forEach(function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Gi(o,2)),width:"calc(100% + ".concat(Gi(o),")"),"& > $item":{padding:Gi(o,2)}})}),n}(e,"xs"),e.breakpoints.keys.reduce(function(t,n){return function(e,t,n){var r={};Ui.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?f(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))},{name:"MuiGrid"})(Ki);function Yi(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Xi={entering:{opacity:1,transform:Yi(1)},entered:{opacity:1,transform:"none"}},Qi=s.forwardRef(function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,l=e.onEntered,c=e.onEntering,u=e.onExit,d=e.onExited,h=e.onExiting,m=e.style,g=e.timeout,b=void 0===g?"auto":g,v=e.TransitionComponent,y=void 0===v?Vo:v,w=p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=s.useRef(),S=s.useRef(),C=Zr(),k=C.unstable_strictMode&&!o,E=s.useRef(null),R=uo(n.ref,t),M=uo(k?E:void 0,R),P=function(e){return function(t,n){if(e){var r=jr(k?[E.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=P(c),I=P(function(e,t){!function(e){e.scrollTop}(e);var n,r=Jo({style:m,timeout:b},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===b?(n=C.transitions.getAutoHeightDuration(e.clientHeight),S.current=n):n=o,e.style.transition=[C.transitions.create("opacity",{duration:n,delay:i}),C.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)}),O=P(l),D=P(h),F=P(function(e){var t,n=Jo({style:m,timeout:b},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===b?(t=C.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=r,e.style.transition=[C.transitions.create("opacity",{duration:t,delay:o}),C.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Yi(.75),u&&u(e)}),L=P(d);return s.useEffect(function(){return function(){clearTimeout(x.current)}},[]),s.createElement(y,f({appear:!0,in:i,nodeRef:k?E:void 0,onEnter:I,onEntered:O,onEntering:T,onExit:F,onExited:L,onExiting:D,addEndListener:function(e,t){var n=k?e:t;"auto"===b&&(x.current=setTimeout(n,S.current||0))},timeout:"auto"===b?null:b},w),function(e,t){return s.cloneElement(n,f({style:f({opacity:0,transform:Yi(.75),visibility:"exited"!==e||i?void 0:"hidden"},Xi[e],m,n.props.style),ref:M},t))})});Qi.muiSupportAuto=!0;var Zi=s.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,c=e.multiline,u=void 0!==c&&c,d=e.type,h=void 0===d?"text":d,m=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return s.createElement(ji,f({classes:f({},r,{root:E(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:l,multiline:u,ref:t,type:h},m))});Zi.muiName="Input";var Ji=Kr(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.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"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),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($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(Zi),ea=s.createContext({}),ta=s.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,l=e.dense,c=void 0!==l&&l,u=e.disablePadding,d=void 0!==u&&u,h=e.subheader,m=p(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=s.useMemo(function(){return{dense:c}},[c]);return s.createElement(ea.Provider,{value:g},s.createElement(a,f({className:E(r.root,o,c&&r.dense,!d&&r.padding,h&&r.subheader),ref:t},m),h,n))}),na=Kr({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(ta),ra="undefined"==typeof window?s.useEffect:s.useLayoutEffect,oa=s.forwardRef(function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,l=void 0!==a&&a,c=e.children,u=e.classes,d=e.className,h=e.component,m=e.ContainerComponent,g=void 0===m?"li":m,b=e.ContainerProps,v=(b=void 0===b?{}:b).className,y=p(b,["className"]),w=e.dense,x=void 0!==w&&w,S=e.disabled,C=void 0!==S&&S,k=e.disableGutters,R=void 0!==k&&k,M=e.divider,P=void 0!==M&&M,T=e.focusVisibleClassName,I=e.selected,O=void 0!==I&&I,D=p(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),F=s.useContext(ea),L={dense:x||F.dense||!1,alignItems:r},A=s.useRef(null);ra(function(){i&&A.current&&A.current.focus()},[i]);var $=s.Children.toArray(c),N=$.length&&oo($[$.length-1],["ListItemSecondaryAction"]),z=uo(s.useCallback(function(e){A.current=So.findDOMNode(e)},[]),t),j=f({className:E(u.root,d,L.dense&&u.dense,!R&&u.gutters,P&&u.divider,C&&u.disabled,l&&u.button,"center"!==r&&u.alignItemsFlexStart,N&&u.secondaryAction,O&&u.selected),disabled:C},D),_=h||"li";return l&&(j.component=h||"div",j.focusVisibleClassName=E(u.focusVisible,T),_=ii),N?(_=j.component||h?_:"div","li"===g&&("li"===_?_="div":"li"===j.component&&(j.component="div")),s.createElement(ea.Provider,{value:L},s.createElement(g,f({className:E(u.container,v),ref:z},y),s.createElement(_,j,$),$.pop()))):s.createElement(ea.Provider,{value:L},s.createElement(_,f({ref:z},j),$))}),ia=Kr(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(oa);function aa(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function la(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function sa(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function ca(e){return"function"==typeof e?e():e}var ua=s.forwardRef(function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,l=e.anchorReference,c=void 0===l?"anchorEl":l,u=e.children,d=e.classes,h=e.className,m=e.container,g=e.elevation,b=void 0===g?8:g,v=e.getContentAnchorEl,y=e.marginThreshold,w=void 0===y?16:y,x=e.onEnter,S=e.onEntered,C=e.onEntering,k=e.onExit,R=e.onExited,M=e.onExiting,P=e.open,T=e.PaperProps,I=void 0===T?{}:T,O=e.transformOrigin,D=void 0===O?{vertical:"top",horizontal:"left"}:O,F=e.TransitionComponent,L=void 0===F?Qi:F,A=e.transitionDuration,$=void 0===A?"auto":A,N=e.TransitionProps,z=void 0===N?{}:N,j=p(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),_=s.useRef(),B=s.useCallback(function(e){if("anchorPosition"===c)return a;var t=ca(r),n=(t&&1===t.nodeType?t:io(_.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+aa(n,o),left:n.left+la(n,i.horizontal)}},[r,i.horizontal,i.vertical,a,c]),H=s.useCallback(function(e){var t=0;if(v&&"anchorEl"===c){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t},[i.vertical,c,v]),V=s.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:aa(e,D.vertical)+t,horizontal:la(e,D.horizontal)}},[D.horizontal,D.vertical]),W=s.useCallback(function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=V(n,t);if("none"===c)return{top:null,left:null,transformOrigin:sa(o)};var i=B(t),a=i.top-o.vertical,l=i.left-o.horizontal,s=a+n.height,u=l+n.width,d=ao(ca(r)),p=d.innerHeight-w,f=d.innerWidth-w;if(a<w){var h=a-w;a-=h,o.vertical+=h}else if(s>p){var m=s-p;a-=m,o.vertical+=m}if(l<w){var g=l-w;l-=g,o.horizontal+=g}else if(u>f){var b=u-f;l-=b,o.horizontal+=b}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:sa(o)}},[r,c,B,H,V,w]),U=s.useCallback(function(){var e=_.current;if(e){var t=W(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[W]),G=s.useCallback(function(e){_.current=So.findDOMNode(e)},[]);s.useEffect(function(){P&&U()}),s.useImperativeHandle(n,function(){return P?{updatePosition:function(){U()}}:null},[P,U]),s.useEffect(function(){if(P){var e=ro(function(){U()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[P,U]);var K=$;"auto"!==$||L.muiSupportAuto||(K=void 0);var q=m||(r?io(ca(r)).body:void 0);return s.createElement(Ti,f({container:q,open:P,ref:t,BackdropProps:{invisible:!0},className:E(d.root,h)},j),s.createElement(L,f({appear:!0,in:P,onEnter:x,onEntered:S,onExit:k,onExited:R,onExiting:M,timeout:K},z,{onEntering:eo(function(e,t){C&&C(e,t),U()},z.onEntering)}),s.createElement(Yr,f({elevation:b,ref:G},I,{className:E(d.paper,I.className)}),u)))}),da=Kr({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ua);function pa(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fa(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ha(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ma(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&ha(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var ga,ba,va="undefined"==typeof window?s.useEffect:s.useLayoutEffect,ya=s.forwardRef(function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,l=e.children,c=e.className,u=e.disabledItemsFocusable,d=void 0!==u&&u,h=e.disableListWrap,m=void 0!==h&&h,g=e.onKeyDown,b=e.variant,v=void 0===b?"selectedMenu":b,y=p(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=s.useRef(null),x=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});va(function(){o&&w.current.focus()},[o]),s.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat(vi(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}},[]);var S=uo(s.useCallback(function(e){w.current=So.findDOMNode(e)},[]),t),C=-1;s.Children.forEach(l,function(e,t){s.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===C)&&(C=t))});var k=s.Children.map(l,function(e,t){if(t===C){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===v&&(n.tabIndex=0),s.cloneElement(e,n)}return e});return s.createElement(na,f({role:"menu",ref:S,className:c,onKeyDown:function(e){var t=w.current,n=e.key,r=io(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ma(t,r,m,d,pa);else if("ArrowUp"===n)e.preventDefault(),ma(t,r,m,d,fa);else if("Home"===n)e.preventDefault(),ma(t,null,m,d,pa);else if("End"===n)e.preventDefault(),ma(t,null,m,d,fa);else if(1===n.length){var o=x.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&ha(r,o);o.previousKeyMatched&&(l||ma(t,r,!1,d,pa,o))?e.preventDefault():o.previousKeyMatched=!1}g&&g(e)},tabIndex:o?0:-1},y),k)}),wa={vertical:"top",horizontal:"right"},xa={vertical:"top",horizontal:"left"},Sa=s.forwardRef(function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,a=e.disableAutoFocusItem,l=void 0!==a&&a,c=e.MenuListProps,u=void 0===c?{}:c,d=e.onClose,h=e.onEntering,m=e.open,g=e.PaperProps,b=void 0===g?{}:g,v=e.PopoverClasses,y=e.transitionDuration,w=void 0===y?"auto":y,x=e.TransitionProps,S=(x=void 0===x?{}:x).onEntering,C=p(x,["onEntering"]),k=e.variant,R=void 0===k?"selectedMenu":k,M=p(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),P=Zr(),T=r&&!l&&m,I=s.useRef(null),O=s.useRef(null),D=-1;s.Children.map(o,function(e,t){s.isValidElement(e)&&(e.props.disabled||("menu"!==R&&e.props.selected||-1===D)&&(D=t))});var F=s.Children.map(o,function(e,t){return t===D?s.cloneElement(e,{ref:function(t){O.current=So.findDOMNode(t),lo(e.ref,t)}}):e});return s.createElement(da,f({getContentAnchorEl:function(){return O.current},classes:v,onClose:d,TransitionProps:f({onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,P),h&&h(e,t),S&&S(e,t)}},C),anchorOrigin:"rtl"===P.direction?wa:xa,transformOrigin:"rtl"===P.direction?wa:xa,PaperProps:f({},b,{classes:f({},b.classes,{root:i.paper})}),open:m,ref:t,transitionDuration:w},M),s.createElement(ya,f({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:r&&(-1===D||l),autoFocusItem:T,variant:R},u,{className:E(i.list,u.className)}),F))}),Ca=Kr({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Sa),ka=s.forwardRef(function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,l=e.disableGutters,c=void 0!==l&&l,u=e.ListItemClasses,d=e.role,h=void 0===d?"menuitem":d,m=e.selected,g=e.tabIndex,b=p(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),s.createElement(ia,f({button:!0,role:h,tabIndex:n,component:a,selected:m,disableGutters:c,classes:f({dense:r.dense},u),className:E(r.root,o,m&&r.selected,!c&&r.gutters),ref:t},b))}),Ea=Kr(function(e){return{root:f({},e.typography.body1,I({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:f({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(ka),Ra=s.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,a=e.inputRef,l=e.variant,c=void 0===l?"standard":l,u=p(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return s.createElement(s.Fragment,null,s.createElement("select",f({className:E(n.root,n.select,n[c],r,o&&n.disabled),disabled:o,ref:a||t},u)),e.multiple?null:s.createElement(i,{className:E(n.icon,n["icon".concat(Jr(c))],o&&n.disabled)}))}),Ma=(ga=s.createElement("path",{d:"M7 10l5 5 5-5z"}),(ba=function(e,t){return c.createElement(no,f({ref:t},e),ga)}).muiName=no.muiName,c.memo(c.forwardRef(ba))),Pa=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Ta=s.createElement(Ji,null),Ia=s.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?Ma:o,a=e.input,l=void 0===a?Ta:a,c=e.inputProps;e.variant;var u=p(e,["children","classes","IconComponent","input","inputProps","variant"]),d=Ii({props:e,muiFormControl:ui(),states:["variant"]});return s.cloneElement(l,f({inputComponent:Ra,inputProps:f({children:n,classes:r,IconComponent:i,variant:d.variant,type:void 0},c,l?l.props.inputProps:{}),ref:t},u))});Ia.muiName="Select",Kr(Pa,{name:"MuiNativeSelect"})(Ia);var Oa=s.forwardRef(function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,l=e.style,c=p(e,["children","classes","className","label","labelWidth","notched","style"]),u="rtl"===Zr().direction?"right":"left";if(void 0!==o)return s.createElement("fieldset",f({"aria-hidden":!0,className:E(n.root,r),ref:t,style:l},c),s.createElement("legend",{className:E(n.legendLabelled,a&&n.legendNotched)},o?s.createElement("span",null,o):s.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var d=i>0?.75*i+8:.01;return s.createElement("fieldset",f({"aria-hidden":!0,style:f(I({},"padding".concat(Jr(u)),8),l),className:E(n.root,r),ref:t},c),s.createElement("legend",{className:n.legend,style:{width:a?d:.01}},s.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),Da=Kr(function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(Oa),Fa=s.forwardRef(function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,l=e.label,c=e.labelWidth,u=void 0===c?0:c,d=e.multiline,h=void 0!==d&&d,m=e.notched,g=e.type,b=void 0===g?"text":g,v=p(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return s.createElement(ji,f({renderSuffix:function(e){return s.createElement(Da,{className:n.notchedOutline,label:l,labelWidth:u,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)})},classes:f({},n,{root:E(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:h,ref:t,type:b},v))});Fa.muiName="Input";var La=Kr(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(Fa),Aa="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function $a(e,t){return"object"===R(t)&&null!==t?e===t:String(e)===String(t)}var Na=s.forwardRef(function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,i=e.children,a=e.classes,l=e.className,c=e.defaultValue,u=e.disabled,d=e.displayEmpty,h=e.IconComponent,m=e.inputRef,g=e.labelId,b=e.MenuProps,v=void 0===b?{}:b,y=e.multiple,w=e.name,x=e.onBlur,S=e.onChange,C=e.onClose,k=e.onFocus,R=e.onOpen,M=e.open,P=e.readOnly,T=e.renderValue,I=e.SelectDisplayProps,D=void 0===I?{}:I,F=e.tabIndex;e.type;var L=e.value,A=e.variant,$=void 0===A?"standard":A,N=p(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),z=function(e){var t=e.controlled,n=e.default,r=s.useRef(void 0!==t).current,o=s.useState(n),i=o[0],a=o[1];return[r?t:i,s.useCallback(function(e){r||a(e)},[])]}({controlled:L,default:c}),j=jr(z,2),_=j[0],B=j[1],H=s.useRef(null),V=s.useState(null),W=V[0],U=V[1],G=s.useRef(null!=M).current,K=s.useState(),q=K[0],Y=K[1],X=s.useState(!1),Q=X[0],Z=X[1],J=uo(t,m);s.useImperativeHandle(J,function(){return{focus:function(){W.focus()},node:H.current,value:_}},[W,_]),s.useEffect(function(){r&&W&&W.focus()},[r,W]),s.useEffect(function(){if(W){var e=io(W).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&W.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[g,W]);var ee,te,ne=function(e,t){e?R&&R(t):C&&C(t),G||(Y(o?null:W.clientWidth),Z(e))},re=s.Children.toArray(i),oe=function(e){return function(t){var n;if(y||ne(!1,t),y){n=Array.isArray(_)?_.slice():[];var r=_.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),_!==n&&(B(n),S&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:w}}),S(t,e)))}},ie=null!==W&&(G?M:Q);delete N["aria-invalid"];var ae=[],le=!1;($i({value:_})||d)&&(T?ee=T(_):le=!0);var se=re.map(function(e){if(!s.isValidElement(e))return null;var t;if(y){if(!Array.isArray(_))throw new Error(O(2));(t=_.some(function(t){return $a(t,e.props.value)}))&&le&&ae.push(e.props.children)}else(t=$a(_,e.props.value))&&le&&(te=e.props.children);return s.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:oe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});le&&(ee=y?ae.join(", "):te);var ce,ue=q;!o&&G&&W&&(ue=W.clientWidth),ce=void 0!==F?F:u?null:0;var de=D.id||(w?"mui-component-select-".concat(w):void 0);return s.createElement(s.Fragment,null,s.createElement("div",f({className:E(a.root,a.select,a.selectMenu,a[$],l,u&&a.disabled),ref:U,tabIndex:ce,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":ie?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[g,de].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:u||P?null:function(e){0===e.button&&(e.preventDefault(),W.focus(),ne(!0,e))},onBlur:function(e){!ie&&x&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:w}}),x(e))},onFocus:k},D,{id:de}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?s.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ee),s.createElement("input",f({value:Array.isArray(_)?_.join(","):_,name:w,ref:H,"aria-hidden":!0,onChange:function(e){var t=re.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=re[t];B(n.props.value),S&&S(e,n)}},tabIndex:-1,className:a.nativeInput,autoFocus:r},N)),s.createElement(h,{className:E(a.icon,a["icon".concat(Jr($))],ie&&a.iconOpen,u&&a.disabled)}),s.createElement(Ca,f({id:"menu-".concat(w||""),anchorEl:W,open:ie,onClose:function(e){ne(!1,e)}},v,{MenuListProps:f({"aria-labelledby":g,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:f({},v.PaperProps,{style:f({minWidth:ue},null!=v.PaperProps?v.PaperProps.style:null)})}),se))}),za=Pa,ja=s.createElement(Ji,null),_a=s.createElement(Bi,null),Ba=s.forwardRef(function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,l=t.displayEmpty,c=void 0!==l&&l,u=t.IconComponent,d=void 0===u?Ma:u,h=t.id,m=t.input,g=t.inputProps,b=t.label,v=t.labelId,y=t.labelWidth,w=void 0===y?0:y,x=t.MenuProps,S=t.multiple,C=void 0!==S&&S,k=t.native,E=void 0!==k&&k,R=t.onClose,M=t.onOpen,P=t.open,T=t.renderValue,I=t.SelectDisplayProps,O=t.variant,D=void 0===O?"standard":O,F=p(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),L=E?Ra:Na,A=Ii({props:t,muiFormControl:ui(),states:["variant"]}).variant||D,$=m||{standard:ja,outlined:s.createElement(La,{label:b,labelWidth:w}),filled:_a}[A];return s.cloneElement($,f({inputComponent:L,inputProps:f({children:i,IconComponent:d,variant:A,type:void 0,multiple:C},E?{id:h}:{autoWidth:o,displayEmpty:c,labelId:v,MenuProps:x,onClose:R,onOpen:M,open:P,renderValue:T,SelectDisplayProps:f({id:h},I)},g,{classes:g?On({baseClasses:a,newClasses:g.classes,Component:e}):a},m?m.props.inputProps:{}),ref:n},F))});Ba.muiName="Select";var Ha=Kr(za,{name:"MuiSelect"})(Ba);const Va=Qr(e=>({root:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}));function Wa(e){const t=Va();return c.createElement("div",Xr({className:t.root},e),c.createElement(fi,{style:{color:"rgb(70, 134, 128)"},size:25}))}const Ua=(e,t)=>{const{controls:n,toolbarItems:r,getChartEditor:o}=e;return t&&t.charts&&t.visualization&&t.visualization.ChartWrapper&&t.visualization.Dashboard&&(!n||t.visualization.ChartWrapper)&&(!o||t.visualization.ChartEditor)&&(!r||t.visualization.drawToolbar)};function Ga(e){const{chartVersion:t="current",chartPackages:n=["corechart","controls"],chartLanguage:r="en",mapsApiKey:o}=e,[i,a]=s.useState(null),[l,c]=s.useState(null),[u,d]=s.useState(null),{isLoading:p,error:f,isSuccess:h}=function(e){const[t,n]=s.useState(!0),[r,o]=s.useState(null),[i,a]=s.useState(!1),l=()=>{n(!1),a(!0)};return s.useEffect(()=>{if(!document){const t=new Error(`[ScriptLoadingError] document not defined when attempting to load ${e}`);return void o(t)}const t=document.querySelector(`script[src="${e}"]`);if(t?.dataset.loaded)return void l();const n=t||document.createElement("script");t||(n.src=e),n.addEventListener("load",()=>{n.dataset.loaded="1",l()}),n.addEventListener("error",t=>{console.error("Failed to load script:",e,t);const n=new Error(`[ScriptLoadingError] Failed to load script: ${e}`);o(n)}),t||document.head.append(n)},[]),{isLoading:t,error:r,isSuccess:i}}(e.chartLoaderScriptUrl||"https://www.gstatic.com/charts/loader.js");return s.useEffect(()=>{if(!h)return;const i=window.google;if(!(e=>e&&e.charts)(i)){const e=new Error("[ScriptInitializationError] Script loaded but Google not attached to window.");return void c(e)}Ua(e,i)?a(i):(i.charts.load(t,{packages:n,language:r,mapsApiKey:o}),i.charts.setOnLoadCallback(()=>{if(!Ua(e,i)){const e=new Error("[GoogleChartsInitializationError] Google Charts not ready after load callback.");return console.error(e),void d(e)}a(i)}))},[h]),{error:f||l||u,isLoading:p,google:i}}const Ka={legend_toggle:!1,options:{},legendToggle:!1,getChartWrapper:()=>{},spreadSheetQueryParameters:{headers:1,gid:1},rootProps:{},chartWrapperParams:{},chartLoaderScriptUrl:"https://www.gstatic.com/charts/loader.js"},qa=e=>{const{isReady:t,chartControls:n,filter:r}=e;return t&&n&&n?.length?c.createElement(c.Fragment,null,n.filter(e=>{let{controlProp:t,control:n}=e;return!r||r({control:n,controlProp:t})}).map(e=>{let{control:t}=e;return c.createElement("div",{key:t.getContainerId(),id:t.getContainerId()})})):null};let Ya=0;const Xa=()=>(Ya+=1,`reactgooglegraph-${Ya}`);class Qa{static initializeControls=e=>{for(let t=0;t<e.length;t+=1){const{controlType:n,options:r,controlWrapperParams:o}=e[t].controlProp;o&&"state"in o&&e[t].control.setState(o.state),e[t].control.setOptions(r),e[t].control.setControlType(n)}};static listenToControlEvents=(e,t)=>{const{google:n}=t;return e.flatMap(e=>{const{control:r,controlProp:o}=e,{controlEvents:i=[]}=o;return i.map(e=>{const{callback:o,eventName:i}=e;return n.visualization.events.addListener(r,i,function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];o({chartWrapper:null,controlWrapper:r,props:t,google:n,eventArgs:i})})})})};static createControlId=e=>{let t;return t=void 0===e?`googlechart-control-${Xa()}`:e,t};static createChartControls=e=>{const{controls:t,google:n}=e;return t?t.map((e,t)=>{const{controlID:r,controlType:o,options:i,controlWrapperParams:a}=e,l=this.createControlId(r);return{controlProp:e,control:new n.visualization.ControlWrapper({containerId:l,controlType:o,options:i,...a})}}):null};static addControls=e=>{const{chartWrapper:t,chartDashboard:n}=e,r=this.createChartControls(e);return r&&n&&t?(n.bind(r.map(e=>{let{control:t}=e;return t}),t),this.initializeControls(r),r):null}}const Za=e=>{const[t,n]=(e=>{const[t,n]=s.useState(null);return[s.useMemo(()=>t&&e?e.map((e,n)=>{const r=t[n];return r?{controlProp:e,control:r}:void 0}).flatMap(e=>e?[e]:[]):null,[t,e]),n]})(e.controls);((e,t)=>{s.useEffect(()=>{const n=Qa.listenToControlEvents(e??[],t);return()=>{n.forEach(e=>{t.google.visualization.events.removeListener(e)})}},[e,t])})(t??[],e);return{addControls:e=>{const t=Qa.addControls(e);n(t?.map(e=>e.control)??null)},renderControl:n=>{const{chartWrapper:r,chartDashboard:o}=e;return s.createElement(qa,{...e,isReady:Boolean(r&&o),chartControls:t,filter:n})}}},Ja=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"];class el{static grayOutHiddenColumnsLabel=(e,t)=>{const{googleChartWrapper:n,options:r}=e;if(!n)return void console.error("googleChartWrapper is not defined");const o=n.getDataTable();if(!o)return;const i=o.getNumberOfColumns();if(!1===t.length>0)return;const a=Array.from({length:i-1}).map((e,n)=>{const i=this.getColumnId(o,n+1);return t.includes(i)?"#CCCCCC":r&&r.colors?r.colors[n]:Ja[n]});n.setOptions({...r,colors:a}),n.draw()};static listenToLegendToggle=(e,t)=>{const[n,r]=t,{google:o,googleChartWrapper:i}=e;if(i)return o.visualization.events.addListener(i,"select",()=>{const e=i.getChart().getSelection(),t=i.getDataTable();if(0===e.length||null!==e[0].row||!t)return;const o=e[0].column,a=this.getColumnId(t,o);n?.includes(a)?r(e=>[...e.filter(e=>e!==a)]):r(e=>[...e,a])});console.error("googleChartWrapper is not defined")};static draw=async e=>{const{data:t,diffdata:n,rows:r,columns:o,options:i,chartType:a,formatters:l,spreadSheetUrl:s,spreadSheetQueryParameters:c,googleChartDashboard:u,googleChartWrapper:d,google:p,hiddenColumns:f,legendToggle:h,legend_toggle:m}=e;if(!d)return void console.error("draw was called with googleChartWrapper = null");let g,b=null;if(n){const e=p.visualization.arrayToDataTable(n.old),t=p.visualization.arrayToDataTable(n.new);b=p.visualization[a].prototype.computeDiff(e,t)}g=t?t instanceof p.visualization.DataTable?t:Array.isArray(t)?p.visualization.arrayToDataTable(t):new p.visualization.DataTable(t):r&&o?p.visualization.arrayToDataTable([o,...r]):s?await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((r,o)=>{const i=n.headers?`headers=${n.headers}`:"headers=0",a=n.query?`&tq=${encodeURIComponent(n.query)}`:"",l=n.gid?`&gid=${n.gid}`:"",s=n.sheet?`&sheet=${n.sheet}`:"",c=n.access_token?`&access_token=${n.access_token}`:"",u=`${t}/gviz/tq?${i}${l}${s}${a}${c}`;new e.visualization.Query(u).send(e=>{e.isError()?o(`Error in query: ${e.getMessage()} ${e.getDetailedMessage()}`):r(e.getDataTable())})})}(p,s,c):p.visualization.arrayToDataTable([]);const v=g.getNumberOfColumns(),y=Array(v).fill(0).map((e,t)=>{const n=this.getColumnId(g,t);return f.includes(n)?{label:g.getColumnLabel(t),type:g.getColumnType(t),calc:()=>null}:t}),w=d.getChart();"Timeline"===d.getChartType()&&w&&w.clearChart(),d.setChartType(a),d.setOptions(i||{});const x=new p.visualization.DataView(g);x.setColumns(y),d.setDataTable(x),d.draw(),u&&u.draw(g),b&&(d.setDataTable(b),d.draw()),l&&(this.applyFormatters({dataTable:g,formatters:l,google:p}),d.setDataTable(g),d.draw()),!0!==h&&!0!==m||this.grayOutHiddenColumnsLabel(e,f)};static getColumnId=(e,t)=>e.getColumnId(t)||e.getColumnLabel(t);static applyFormatters=e=>{let{dataTable:t,formatters:n,google:r}=e;for(let e of n)switch(e.type){case"ArrowFormat":return void new r.visualization.ArrowFormat(e.options).format(t,e.column);case"BarFormat":return void new r.visualization.BarFormat(e.options).format(t,e.column);case"ColorFormat":{const n=new r.visualization.ColorFormat(e.options),{ranges:o}=e;if(o)for(let e of o)n.addRange(...e);return void n.format(t,e.column)}case"DateFormat":return void new r.visualization.DateFormat(e.options).format(t,e.column);case"NumberFormat":return void new r.visualization.NumberFormat(e.options).format(t,e.column);case"PatternFormat":return void new r.visualization.PatternFormat(e.options).format(t,e.column);default:return void console.warn(`Unknown formatter type: ${e.type}`)}}}const tl=e=>{s.useEffect(()=>{if(!e.googleChartWrapper)return;const t=(e=>{const{chartEvents:t,google:n,googleChartWrapper:r}=e;if(t){if(r)return t.map(t=>{let{eventName:o,callback:i}=t;return n.visualization.events.addListener(r,o,function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];i({chartWrapper:r,props:e,google:n,eventArgs:o})})});console.warn("listenToEvents was called before chart wrapper ready.")}})(e);return()=>{t?.forEach(t=>{e.google.visualization.events.removeListener(t)})}},[e])},nl=e=>{const[t,n]=s.useState(null),[r,o]=s.useState(null),{addControls:i,renderControl:a}=Za({...e,chartDashboard:r,chartWrapper:t});tl({...e,googleChartWrapper:t});const{chartId:l}=(e=>{const t=s.useRef(null);return{chartId:(()=>{const{graphID:n,graph_id:r}=e;let o;return o=n||r||t.current||Xa(),t.current=o,t.current})()}})(e),c=s.useRef(null),u=s.useRef(null);s.useEffect(()=>{const{options:t,google:r,chartType:a,chartWrapperParams:s,toolbarItems:d,getChartEditor:p,getChartWrapper:f,onLoad:h}=e,m={chartType:a,options:t,containerId:l,...s},g=new r.visualization.ChartWrapper(m);g.setOptions(t||{}),f?.(g,r);const b=new r.visualization.Dashboard(c.current);d&&r.visualization.drawToolbar(u.current,d);let v=null;p&&(v=new r.visualization.ChartEditor,p({chartEditor:v,chartWrapper:g,google:r})),i({...e,chartDashboard:b,chartWrapper:g}),n(g),o(b),h?.(r,{google:r,chartWrapper:g,chartEditor:v,chartDashboard:b})},[]),(e=>{const{google:t,googleChartWrapper:n,googleChartDashboard:r}=e,[o,i]=s.useState([]);s.useEffect(()=>{n&&el.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t})},[o,e.data,e.rows,e.columns,e.options,e.chartLoaderScriptUrl,e.chartType,e.formatters,e.spreadSheetUrl,e.spreadSheetQueryParameters,e.legendToggle,e.legend_toggle]);const a=()=>{const{googleChartWrapper:t}=e;t&&t.draw()},l=n=>{const l=[],{legendToggle:s,legend_toggle:c}=e;if(el.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t}),window.addEventListener("resize",a),c||s){const t=el.listenToLegendToggle(e,[o,i]);t&&l.push(t)}return l},c=(e,n)=>{window.removeEventListener("resize",a),n.forEach(e=>{t.visualization.events.removeListener(e)}),"Timeline"===e.getChartType()&&e.getChart()&&e.getChart().clearChart()};s.useEffect(()=>{if(!n)return;const e=l(n);return()=>{c(n,e)}},[n,l,c])})({...e,googleChartWrapper:t,googleChartDashboard:r});const d=()=>{const{width:t,height:n,options:r,style:o,className:i,rootProps:a,google:c}=e,u={height:n||r&&r.height,width:t||r&&r.width,...o};return s.createElement("div",{id:l,style:u,className:i,...a})},p=()=>e.toolbarItems?s.createElement("div",{ref:u}):null,{width:f,height:h,options:m,style:g}=e,b={height:h||m&&m.height,width:f||m&&m.width,...g};return e.render?s.createElement("div",{ref:c,style:b},s.createElement("div",{ref:u,id:"toolbar"}),e.render({renderChart:d,renderControl:a,renderToolbar:p})):s.createElement("div",{ref:c,style:b},a(e=>{let{controlProp:t}=e;return"bottom"!==t.controlPosition}),d(),a(e=>{let{controlProp:t}=e;return"bottom"===t.controlPosition}),p())},rl=s.createContext(Ka),ol=e=>{let{children:t,value:n}=e;return s.createElement(rl.Provider,{value:n},t)},il=e=>{const{google:t,isLoading:n,error:r}=Ga(e);return n?e.loader??null:r?e.errorElement??null:t?c.createElement(nl,{google:t,...e}):null},al=e=>{const t={...Ka,...e};return c.createElement(ol,{value:t},c.createElement(il,t))};var ll;!function(e){e.annotation="annotation",e.annotationText="annotationText",e.certainty="certainty",e.emphasis="emphasis",e.interval="interval",e.scope="scope",e.style="style",e.tooltip="tooltip",e.domain="domain"}(ll||(ll={}));var sl,cl={exports:{}};
|
|
18
|
-
/*! @preserve
|
|
19
|
-
* numeral.js
|
|
20
|
-
* version : 2.0.6
|
|
21
|
-
* author : Adam Draper
|
|
22
|
-
* license : MIT
|
|
23
|
-
* http://adamwdraper.github.com/Numeral-js/
|
|
24
|
-
*/var ul,dl=(sl||(sl=1,ul=cl,function(e,t){ul.exports?ul.exports=t():e.numeral=t()}(cl.exports,function(){var e,t,n,r,o,i={},a={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,a,l;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(s.zeroFormat&&n===s.zeroFormat)r=0;else if(s.nullFormat&&n===s.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((l="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(l)){a=i[o].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var o,i,l,s,c,u,d,p,f=a[e.options.currentLocale],h=!1,m=!1,g="",b=1e12,v=1e9,y=1e6,w="",x=!1;if(t=t||0,l=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),l>=b&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=b):l<b&&l>=v&&!i||"b"===i?(g+=f.abbreviations.billion,t/=v):l<v&&l>=y&&!i||"m"===i?(g+=f.abbreviations.million,t/=y):(l<y&&l>=1e3&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),w=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):w=e._.toFixed(t,c.length,r),s=w.split(".")[0],w=e._.includes(w,".")?f.delimiters.decimal+w.split(".")[1]:"",m&&0===Number(w.slice(1))&&(w="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),x=!0),s.length<o)for(var S=o-s.length;S>0;S--)s="0"+s;return d>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),p=s+w+(g||""),h?p=(h&&x?"(":"")+p+(h&&x?")":""):u>=0?p=0===u?(x?"-":"+")+p:p+(x?"-":"+"):x&&(p="-"+p),p},stringToNumber:function(e){var t,n,r,o=a[s.currentLocale],i=e,l={thousand:3,million:6,billion:9,trillion:12};if(s.zeroFormat&&e===s.zeroFormat)n=0;else if(s.nullFormat&&e===s.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var o,i,a,l,s=e.toString().split("."),c=t-(r||0);return o=2===s.length?Math.min(Math.max(s[1].length,c),t):c,a=Math.pow(10,o),l=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),l=l.replace(i,"")),l}},e.options=s,e.formats=i,e.locales=a,e.locale=function(e){return e&&(s.currentLocale=e.toLowerCase()),s.currentLocale},e.localeData=function(e){if(!e)return a[s.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in l)s[e]=l[e]},e.zeroFormat=function(e){s.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){s.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){s.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,l,s,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return i=c.currency.symbol,l=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==i)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==l.thousand&&u[0]!==l.million&&u[0]!==l.billion&&u[0]!==l.trillion)||(s=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(s):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(s)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(s)||!a[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,a,l=this._value,c=t||s.defaultFormat;if(n=n||Math.round,0===l&&null!==s.zeroFormat)o=s.zeroFormat;else if(null===l&&null!==s.nullFormat)o=s.nullFormat;else{for(r in i)if(c.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||e._.numberToFormat)(l,c,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,o){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,o){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,l,s,c=e._.includes(o,"ib")?r:n,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(l=Math.pow(c.base,a),s=Math.pow(c.base,a+1),null===t||0===t||t>=l&&t<s){u+=c.suffixes[a],l>0&&(t/=l);break}return e._.numberToFormat(t,o,i)+u},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],l={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),i=0;i<l.before.length;i++)switch(l.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=l.after.length-1;i>=0;i--)switch(l.after[i]){case"$":o=i===l.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(l.after.length-(1+i)));break;case" ":o=i===l.after.length-1?o+" ":e._.insert(o," ",-(l.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})),cl.exports),pl=t(dl);function fl(e,t,n="array"){const r=e.columns,o=[...t.doc.metrics,...t.doc.dimensions].reduce((e,t)=>(e[t.name]=t,e),{});return e=>{const t="array"===n?[]:{};return r.reduce((t,r)=>{const i=e[r.name],a=o[r.name];let l=i;return l="timestamp"===a.type?new Date(i):a.format?a.format&&a.prefix?{v:+i,f:a.prefix+" "+pl(i).format(a.format)}:a.format?{v:+i,f:pl(i).format(a.format)}:i:i,"array"===n?t.push(l):t[r.name]=l?.f||l,t},t)}}function hl(e,t){return function(){return e.apply(t,arguments)}}const{toString:ml}=Object.prototype,{getPrototypeOf:gl}=Object,{iterator:bl,toStringTag:vl}=Symbol,yl=(e=>t=>{const n=ml.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wl=e=>(e=e.toLowerCase(),t=>yl(t)===e),xl=e=>t=>typeof t===e,{isArray:Sl}=Array,Cl=xl("undefined");const kl=wl("ArrayBuffer");const El=xl("string"),Rl=xl("function"),Ml=xl("number"),Pl=e=>null!==e&&"object"==typeof e,Tl=e=>{if("object"!==yl(e))return!1;const t=gl(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||vl in e||bl in e)},Il=wl("Date"),Ol=wl("File"),Dl=wl("Blob"),Fl=wl("FileList"),Ll=wl("URLSearchParams"),[Al,$l,Nl,zl]=["ReadableStream","Request","Response","Headers"].map(wl);function jl(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Sl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function _l(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Bl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Hl=e=>!Cl(e)&&e!==Bl;const Vl=(Wl="undefined"!=typeof Uint8Array&&gl(Uint8Array),e=>Wl&&e instanceof Wl);var Wl;const Ul=wl("HTMLFormElement"),Gl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kl=wl("RegExp"),ql=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jl(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Yl=wl("AsyncFunction"),Xl=(Ql="function"==typeof setImmediate,Zl=Rl(Bl.postMessage),Ql?setImmediate:Zl?((e,t)=>(Bl.addEventListener("message",({source:n,data:r})=>{n===Bl&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Bl.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Ql,Zl;const Jl="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Bl):"undefined"!=typeof process&&process.nextTick||Xl;var es={isArray:Sl,isArrayBuffer:kl,isBuffer:function(e){return null!==e&&!Cl(e)&&null!==e.constructor&&!Cl(e.constructor)&&Rl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Rl(e.append)&&("formdata"===(t=yl(e))||"object"===t&&Rl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&kl(e.buffer),t},isString:El,isNumber:Ml,isBoolean:e=>!0===e||!1===e,isObject:Pl,isPlainObject:Tl,isReadableStream:Al,isRequest:$l,isResponse:Nl,isHeaders:zl,isUndefined:Cl,isDate:Il,isFile:Ol,isBlob:Dl,isRegExp:Kl,isFunction:Rl,isStream:e=>Pl(e)&&Rl(e.pipe),isURLSearchParams:Ll,isTypedArray:Vl,isFileList:Fl,forEach:jl,merge:function e(){const{caseless:t}=Hl(this)&&this||{},n={},r=(r,o)=>{const i=t&&_l(n,o)||o;Tl(n[i])&&Tl(r)?n[i]=e(n[i],r):Tl(r)?n[i]=e({},r):Sl(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&jl(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(jl(t,(t,r)=>{n&&Rl(t)?e[r]=hl(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&gl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:yl,kindOfTest:wl,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Sl(e))return e;let t=e.length;if(!Ml(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[bl]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ul,hasOwnProperty:Gl,hasOwnProp:Gl,reduceDescriptors:ql,freezeMethods:e=>{ql(e,(t,n)=>{if(Rl(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Rl(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Sl(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_l,global:Bl,isContextDefined:Hl,isSpecCompliantForm:function(e){return!!(e&&Rl(e.append)&&"FormData"===e[vl]&&e[bl])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Pl(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Sl(e)?[]:{};return jl(e,(e,t)=>{const i=n(e,r+1);!Cl(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Yl,isThenable:e=>e&&(Pl(e)||Rl(e))&&Rl(e.then)&&Rl(e.catch),setImmediate:Xl,asap:Jl,isIterable:e=>null!=e&&Rl(e[bl])};function ts(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}es.inherits(ts,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:es.toJSONObject(this.config),code:this.code,status:this.status}}});const ns=ts.prototype,rs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rs[e]={value:e}}),Object.defineProperties(ts,rs),Object.defineProperty(ns,"isAxiosError",{value:!0}),ts.from=(e,t,n,r,o,i)=>{const a=Object.create(ns);return es.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ts.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function os(e){return es.isPlainObject(e)||es.isArray(e)}function is(e){return es.endsWith(e,"[]")?e.slice(0,-2):e}function as(e,t,n){return e?e.concat(t).map(function(e,t){return e=is(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ls=es.toFlatObject(es,{},null,function(e){return/^is[A-Z]/.test(e)});function ss(e,t,n){if(!es.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=es.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!es.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&es.isSpecCompliantForm(t);if(!es.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(es.isDate(e))return e.toISOString();if(es.isBoolean(e))return e.toString();if(!l&&es.isBlob(e))throw new ts("Blob is not supported. Use a Buffer instead.");return es.isArrayBuffer(e)||es.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"==typeof e)if(es.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(es.isArray(e)&&function(e){return es.isArray(e)&&!e.some(os)}(e)||(es.isFileList(e)||es.endsWith(n,"[]"))&&(l=es.toArray(e)))return n=is(n),l.forEach(function(e,r){!es.isUndefined(e)&&null!==e&&t.append(!0===a?as([n],r,i):null===a?n:n+"[]",s(e))}),!1;return!!os(e)||(t.append(as(o,n,i),s(e)),!1)}const u=[],d=Object.assign(ls,{defaultVisitor:c,convertValue:s,isVisitable:os});if(!es.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!es.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),es.forEach(n,function(n,i){!0===(!(es.isUndefined(n)||null===n)&&o.call(t,n,es.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function cs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function us(e,t){this._pairs=[],e&&ss(e,this,t)}const ds=us.prototype;function ps(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fs(e,t,n){if(!t)return e;const r=n&&n.encode||ps;es.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):es.isURLSearchParams(t)?t.toString():new us(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ds.append=function(e,t){this._pairs.push([e,t])},ds.toString=function(e){const t=e?function(t){return e.call(this,t,cs)}:cs;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class hs{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){es.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ms={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gs={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:us,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const bs="undefined"!=typeof window&&"undefined"!=typeof document,vs="object"==typeof navigator&&navigator||void 0,ys=bs&&(!vs||["ReactNative","NativeScript","NS"].indexOf(vs.product)<0),ws="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,xs=bs&&window.location.href||"http://localhost";var Ss={...Object.freeze({__proto__:null,hasBrowserEnv:bs,hasStandardBrowserEnv:ys,hasStandardBrowserWebWorkerEnv:ws,navigator:vs,origin:xs}),...gs};function Cs(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&es.isArray(r)?r.length:i,l)return es.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&es.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&es.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(es.isFormData(e)&&es.isFunction(e.entries)){const n={};return es.forEachEntry(e,(e,r)=>{t(function(e){return es.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const ks={transitional:ms,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=es.isObject(e);o&&es.isHTMLForm(e)&&(e=new FormData(e));if(es.isFormData(e))return r?JSON.stringify(Cs(e)):e;if(es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e)||es.isReadableStream(e))return e;if(es.isArrayBufferView(e))return e.buffer;if(es.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ss(e,new Ss.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ss.isNode&&es.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=es.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ss(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(es.isString(e))try{return(t||JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ks.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(es.isResponse(e)||es.isReadableStream(e))return e;if(e&&es.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ts.from(e,ts.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ss.classes.FormData,Blob:Ss.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};es.forEach(["delete","get","head","post","put","patch"],e=>{ks.headers[e]={}});const Es=es.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Rs=Symbol("internals");function Ms(e){return e&&String(e).trim().toLowerCase()}function Ps(e){return!1===e||null==e?e:es.isArray(e)?e.map(Ps):String(e)}function Ts(e,t,n,r,o){return es.isFunction(r)?r.call(this,t,n):(o&&(t=n),es.isString(t)?es.isString(r)?-1!==t.indexOf(r):es.isRegExp(r)?r.test(t):void 0:void 0)}let Is=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ms(t);if(!o)throw new Error("header name must be a non-empty string");const i=es.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ps(e))}const i=(e,t)=>es.forEach(e,(e,n)=>o(e,n,t));if(es.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(es.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Es[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(es.isObject(e)&&es.isIterable(e)){let n,r,o={};for(const t of e){if(!es.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?es.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ms(e)){const n=es.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(es.isFunction(t))return t.call(this,e,n);if(es.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ms(e)){const n=es.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ts(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ms(e)){const o=es.findKey(n,e);!o||t&&!Ts(0,n[o],o,t)||(delete n[o],r=!0)}}return es.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ts(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return es.forEach(this,(r,o)=>{const i=es.findKey(n,o);if(i)return t[i]=Ps(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ps(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return es.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&es.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Rs]=this[Rs]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ms(e);t[r]||(!function(e,t){const n=es.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return es.isArray(e)?e.forEach(r):r(e),this}};function Os(e,t){const n=this||ks,r=t||n,o=Is.from(r.headers);let i=r.data;return es.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ds(e){return!(!e||!e.__CANCEL__)}function Fs(e,t,n){ts.call(this,null==e?"canceled":e,ts.ERR_CANCELED,t,n),this.name="CanceledError"}function Ls(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ts("Request failed with status code "+n.status,[ts.ERR_BAD_REQUEST,ts.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),es.reduceDescriptors(Is.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),es.freezeMethods(Is),es.inherits(Fs,ts,{__CANCEL__:!0});const As=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[a];o||(o=s),n[i]=l,r[i]=s;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),s-o<t)return;const p=c&&s-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-l)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,l=i-r,s=o(l);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},$s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ns=e=>(...t)=>es.asap(()=>e(...t));var zs=Ss.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ss.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ss.origin),Ss.navigator&&/(msie|trident)/i.test(Ss.navigator.userAgent)):()=>!0,js=Ss.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];es.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),es.isString(r)&&a.push("path="+r),es.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function _s(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Bs=e=>e instanceof Is?{...e}:e;function Hs(e,t){t=t||{};const n={};function r(e,t,n,r){return es.isPlainObject(e)&&es.isPlainObject(t)?es.merge.call({caseless:r},e,t):es.isPlainObject(t)?es.merge({},t):es.isArray(t)?t.slice():t}function o(e,t,n,o){return es.isUndefined(t)?es.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!es.isUndefined(t))return r(void 0,t)}function a(e,t){return es.isUndefined(t)?es.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t,n)=>o(Bs(e),Bs(t),0,!0)};return es.forEach(Object.keys(Object.assign({},e,t)),function(r){const i=s[r]||o,a=i(e[r],t[r],r);es.isUndefined(a)&&i!==l||(n[r]=a)}),n}var Vs=e=>{const t=Hs({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:s}=t;if(t.headers=l=Is.from(l),t.url=fs(_s(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),es.isFormData(r))if(Ss.hasStandardBrowserEnv||Ss.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ss.hasStandardBrowserEnv&&(o&&es.isFunction(o)&&(o=o(t)),o||!1!==o&&zs(t.url))){const e=i&&a&&js.read(a);e&&l.set(i,e)}return t};var Ws="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Vs(e);let o=r.data;const i=Is.from(r.headers).normalize();let a,l,s,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Is.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ls(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ts("Request aborted",ts.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ts("Network Error",ts.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ms;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ts(t,o.clarifyTimeoutError?ts.ETIMEDOUT:ts.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&es.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),es.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([s,u]=As(f,!0),m.addEventListener("progress",s)),p&&m.upload&&([l,c]=As(p),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Fs(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Ss.protocols.indexOf(b)?n(new ts("Unsupported protocol "+b+":",ts.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Us=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ts?t:new Fs(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ts(`timeout ${t} of ms exceeded`,ts.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>es.asap(a),l}},Gs=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ks=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qs=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ks(e))yield*Gs(n,t)}(e,t);let i,a=0,l=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},Ys="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Xs=Ys&&"function"==typeof ReadableStream,Qs=Ys&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zs=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Js=Xs&&Zs(()=>{let e=!1;const t=new Request(Ss.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ec=Xs&&Zs(()=>es.isReadableStream(new Response("").body)),tc={stream:ec&&(e=>e.body)};var nc;Ys&&(nc=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!tc[e]&&(tc[e]=es.isFunction(nc[e])?t=>t[e]():(t,n)=>{throw new ts(`Response type '${e}' is not supported`,ts.ERR_NOT_SUPPORT,n)})}));const rc=async(e,t)=>{const n=es.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(es.isBlob(e))return e.size;if(es.isSpecCompliantForm(e)){const t=new Request(Ss.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return es.isArrayBufferView(e)||es.isArrayBuffer(e)?e.byteLength:(es.isURLSearchParams(e)&&(e+=""),es.isString(e)?(await Qs(e)).byteLength:void 0)})(t):n};var oc=Ys&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Vs(e);c=c?(c+"").toLowerCase():"text";let f,h=Us([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(s&&Js&&"get"!==n&&"head"!==n&&0!==(g=await rc(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(es.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=$s(g,As(Ns(s)));r=qs(n.body,65536,e,t)}}es.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f,p);const a=ec&&("stream"===c||"response"===c);if(ec&&(l||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=es.toFiniteNumber(i.headers.get("content-length")),[n,r]=l&&$s(t,As(Ns(l),!0))||[];i=new Response(qs(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}c=c||"text";let b=await tc[es.findKey(tc,c)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{Ls(t,n,{data:b,headers:Is.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ts("Network Error",ts.ERR_NETWORK,e,f),{cause:t.cause||t});throw ts.from(t,t&&t.code,e,f)}});const ic={http:null,xhr:Ws,fetch:oc};es.forEach(ic,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const ac=e=>`- ${e}`,lc=e=>es.isFunction(e)||null===e||!1===e;var sc=e=>{e=es.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!lc(n)&&(r=ic[(t=String(n)).toLowerCase()],void 0===r))throw new ts(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ts("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(ac).join("\n"):" "+ac(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function cc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fs(null,e)}function uc(e){cc(e),e.headers=Is.from(e.headers),e.data=Os.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return sc(e.adapter||ks.adapter)(e).then(function(t){return cc(e),t.data=Os.call(e,e.transformResponse,t),t.headers=Is.from(t.headers),t},function(t){return Ds(t)||(cc(e),t&&t.response&&(t.response.data=Os.call(e,e.transformResponse,t.response),t.response.headers=Is.from(t.response.headers))),Promise.reject(t)})}const dc="1.10.0",pc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const fc={};pc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dc+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ts(r(o," has been removed"+(t?" in "+t:"")),ts.ERR_DEPRECATED);return t&&!fc[o]&&(fc[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},pc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var hc={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ts("options must be an object",ts.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ts("option "+i+" must be "+n,ts.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ts("Unknown option "+i,ts.ERR_BAD_OPTION)}},validators:pc};const mc=hc.validators;let gc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new hs,response:new hs}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Hs(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&hc.assertOptions(n,{silentJSONParsing:mc.transitional(mc.boolean),forcedJSONParsing:mc.transitional(mc.boolean),clarifyTimeoutError:mc.transitional(mc.boolean)},!1),null!=r&&(es.isFunction(r)?t.paramsSerializer={serialize:r}:hc.assertOptions(r,{encode:mc.function,serialize:mc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),hc.assertOptions(t,{baseUrl:mc.spelling("baseURL"),withXsrfToken:mc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&es.merge(o.common,o[t.method]);o&&es.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Is.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const s=[];let c;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let u,d=0;if(!l){const e=[uc.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,s),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=uc.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=s.length;d<u;)c=c.then(s[d++],s[d++]);return c}getUri(e){return fs(_s((e=Hs(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};es.forEach(["delete","get","head","options"],function(e){gc.prototype[e]=function(t,n){return this.request(Hs(n||{},{method:e,url:t,data:(n||{}).data}))}}),es.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Hs(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gc.prototype[e]=t(),gc.prototype[e+"Form"]=t(!0)});const bc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bc).forEach(([e,t])=>{bc[t]=e});const vc=function e(t){const n=new gc(t),r=hl(gc.prototype.request,n);return es.extend(r,gc.prototype,n,{allOwnKeys:!0}),es.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Hs(t,n))},r}(ks);vc.Axios=gc,vc.CanceledError=Fs,vc.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Fs(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},vc.isCancel=Ds,vc.VERSION=dc,vc.toFormData=ss,vc.AxiosError=ts,vc.Cancel=vc.CanceledError,vc.all=function(e){return Promise.all(e)},vc.spread=function(e){return function(t){return e.apply(null,t)}},vc.isAxiosError=function(e){return es.isObject(e)&&!0===e.isAxiosError},vc.mergeConfig=Hs,vc.AxiosHeaders=Is,vc.formToJSON=e=>Cs(es.isHTMLForm(e)?new FormData(e):e),vc.getAdapter=sc,vc.HttpStatusCode=bc,vc.default=vc;const{Axios:yc,AxiosError:wc,CanceledError:xc,isCancel:Sc,CancelToken:Cc,VERSION:kc,all:Ec,Cancel:Rc,isAxiosError:Mc,spread:Pc,toFormData:Tc,AxiosHeaders:Ic,HttpStatusCode:Oc,formToJSON:Dc,getAdapter:Fc,mergeConfig:Lc}=vc,Ac="https://report-api.netcapital.pro",$c=vc.create({baseURL:Ac,headers:{"Content-Type":"application/json"}}),Nc={},zc=()=>{const e=Object.keys(Nc);return e.length>0?e[0]:null},jc={setBaseUrl(e){$c.defaults.baseURL=e||Ac},setToken(e){e&&($c.defaults.headers.common.Authorization=`Bearer ${e}`)},loadDashboardMeta:async({dashboardId:e})=>{const{data:t}=await $c.get(`/dashboard-meta/${e}`);return Nc[e]={dashboards:t.dashboards||{},charts:t.charts||{},reports:t.reports||{},reportMetadata:t.reportMetadata||{},dateRanges:t.dateRanges||[]},Nc[e]},getDashboard:async({id:e,dashboardId:t})=>{const n=t||zc();if(n&&Nc[n]?.dashboards?.[e])return Nc[n].dashboards[e];const{data:r}=await $c.get(`/entity/dashboards/${e}`);return r},getChart:async({id:e,dashboardId:t})=>{const n=t||zc();if(n&&Nc[n]?.charts?.[e])return Nc[n].charts[e];const{data:r}=await $c.get(`/entity/charts/${e}`);return r},getReport:async({id:e,dashboardId:t})=>{const n=t||zc();if(n&&Nc[n]?.reports?.[e])return Nc[n].reports[e];const{data:r}=await $c.get(`/entity/reports/${e}`);return r},getProviders:async()=>{const{data:e}=await $c.get("/entity/providers");return e},getReportSchema:async({id:e,dashboardId:t,query:n={}})=>{const r=t||zc();if(r&&Nc[r]?.reportMetadata?.[e])return Nc[r].reportMetadata[e];const{data:o}=await $c.post(`/reports/${e}/metadata`,n);return o},runReport:async({id:e,query:t={}})=>{const{data:n}=await $c.post(`/reports/${e}/run`,t);return n},runAdHocReport:async({report:e})=>{const{data:t}=await $c.post("/report-build/run",e);return t},downloadAdHocReport:async({report:e,filename:t})=>{const n=await $c.post("/report-build/run?download=csv",e,{responseType:"blob"}),r=window.URL.createObjectURL(new Blob([n.data])),o=document.createElement("a");o.href=r;let i=t||"report.csv";if(!t){const e=n.headers["content-disposition"];if(e){const t=e.match(/filename="?(.+)"?/i);t&&t[1]&&(i=t[1])}}o.setAttribute("download",i),document.body.appendChild(o),o.click(),o.remove(),window.URL.revokeObjectURL(r)},getDateRanges:async({dashboardId:e}={})=>{const t=e||zc();if(t&&Nc[t]?.dateRanges)return Nc[t].dateRanges;const{data:n}=await $c.get("/globals/date-ranges");return n},getReportDefinitions:async()=>{const{data:e}=await $c.get("/report-definitions");return e},getReportDefinition:async({id:e})=>{const{data:t}=await $c.get(`/report-definitions/${e}`);return t},createReportDefinition:async({reportDefinition:e})=>{const{data:t}=await $c.post("/report-definitions",e);return t},updateReportDefinition:async({id:e,reportDefinition:t})=>{const{data:n}=await $c.put(`/report-definitions/${e}`,t);return n},deleteReportDefinition:async({id:e})=>{const{data:t}=await $c.delete(`/report-definitions/${e}`);return t}},_c=Qr(e=>({headerRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},tableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},oddTableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},headerCell:{backgroundColor:"white",padding:"4px !important"}})),Bc={none:"YYYY-MM-dd",day:"MMM dd",week:"MMM dd",month:"YYYY MMM",year:"YYYY"};function Hc(){throw new Error("setTimeout has not been defined")}function Vc(){throw new Error("clearTimeout has not been defined")}var Wc=Hc,Uc=Vc;function Gc(e){if(Wc===setTimeout)return setTimeout(e,0);if((Wc===Hc||!Wc)&&setTimeout)return Wc=setTimeout,setTimeout(e,0);try{return Wc(e,0)}catch(t){try{return Wc.call(null,e,0)}catch(t){return Wc.call(this,e,0)}}}"function"==typeof Aa.setTimeout&&(Wc=setTimeout),"function"==typeof Aa.clearTimeout&&(Uc=clearTimeout);var Kc,qc=[],Yc=!1,Xc=-1;function Qc(){Yc&&Kc&&(Yc=!1,Kc.length?qc=Kc.concat(qc):Xc=-1,qc.length&&Zc())}function Zc(){if(!Yc){var e=Gc(Qc);Yc=!0;for(var t=qc.length;t;){for(Kc=qc,qc=[];++Xc<t;)Kc&&Kc[Xc].run();Xc=-1,t=qc.length}Kc=null,Yc=!1,function(e){if(Uc===clearTimeout)return clearTimeout(e);if((Uc===Vc||!Uc)&&clearTimeout)return Uc=clearTimeout,clearTimeout(e);try{return Uc(e)}catch(t){try{return Uc.call(null,e)}catch(t){return Uc.call(this,e)}}}(e)}}function Jc(e,t){this.fun=e,this.array=t}Jc.prototype.run=function(){this.fun.apply(null,this.array)};function eu(){}var tu=eu,nu=eu,ru=eu,ou=eu,iu=eu,au=eu,lu=eu;var su=Aa.performance||{},cu=su.now||su.mozNow||su.msNow||su.oNow||su.webkitNow||function(){return(new Date).getTime()};var uu=new Date;var du,pu={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];qc.push(new Jc(e,t)),1!==qc.length||Yc||Gc(Zc)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:tu,addListener:nu,once:ru,off:ou,removeListener:iu,removeAllListeners:au,emit:lu,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*cu.call(su),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-uu)/1e3}},fu={exports:{}};var hu=(du||(du=1,function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){var r=Array.prototype,o=Object.prototype,i={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},a=/[&"'<>\\]/g;function l(e,t){return o.hasOwnProperty.call(e,t)}function s(e){return i[e]}function c(e,t,n){var r,o,i;if(e instanceof Error&&(e=(o=e).name+": "+o.message),Object.setPrototypeOf?(r=new Error(e),Object.setPrototypeOf(r,c.prototype)):(r=this,Object.defineProperty(r,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(r,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(r,this.constructor),o){var a=Object.getOwnPropertyDescriptor(o,"stack");(i=a&&(a.get||function(){return a.value}))||(i=function(){return o.stack})}else{var l=new Error(e).stack;i=function(){return l}}return Object.defineProperty(r,"stack",{get:function(){return i.call(r)}}),Object.defineProperty(r,"cause",{value:o}),r.lineno=t,r.colno=n,r.firstUpdate=!0,r.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},r}function u(e){return"[object Function]"===o.toString.call(e)}function d(e){return"[object Array]"===o.toString.call(e)}function p(e){return"[object String]"===o.toString.call(e)}function f(e){return"[object Object]"===o.toString.call(e)}function h(e){var t,n=(t=e)?"string"==typeof t?t.split("."):[t]:[];return function(e){for(var t=e,r=0;r<n.length;r++){var o=n[r];if(!l(t,o))return;t=t[o]}return t}}function m(e){return Array.prototype.slice.call(e)}function g(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function b(e){var t=[];for(var n in e)l(e,n)&&t.push(n);return t}(t=e.exports={}).hasOwnProp=l,t._prettifyError=function(e,n,r){if(r.Update||(r=new t.TemplateError(r)),r.Update(e),!n){var o=r;(r=new Error(o.message)).name=o.name}return r},Object.setPrototypeOf?Object.setPrototypeOf(c.prototype,Error.prototype):c.prototype=Object.create(Error.prototype,{constructor:{value:c}}),t.TemplateError=c,t.escape=function(e){return e.replace(a,s)},t.isFunction=u,t.isArray=d,t.isString=p,t.isObject=f,t.getAttrGetter=h,t.groupBy=function(e,t,n){for(var r={},o=u(t)?t:h(t),i=0;i<e.length;i++){var a=e[i],l=o(a,i);if(void 0===l&&!0===n)throw new TypeError('groupby: attribute "'+t+'" resolved to undefined');(r[l]||(r[l]=[])).push(a)}return r},t.toArray=m,t.without=function(e){var t=[];if(!e)return t;for(var n=e.length,r=m(arguments).slice(1),o=-1;++o<n;)-1===g(r,e[o])&&t.push(e[o]);return t},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},t.each=function(e,t,n){if(null!=e)if(r.forEach&&e.forEach===r.forEach)e.forEach(t,n);else if(e.length===+e.length)for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},t.map=function(e,t){var n=[];if(null==e)return n;if(r.map&&e.map===r.map)return e.map(t);for(var o=0;o<e.length;o++)n[n.length]=t(e[o],o);return e.length===+e.length&&(n.length=e.length),n},t.asyncIter=function(e,t,n){var r=-1;!function o(){++r<e.length?t(e[r],r,o,n):n()}()},t.asyncFor=function(e,t,n){var r=b(e||{}),o=r.length,i=-1;!function a(){i++;var l=r[i];i<o?t(l,e[l],i,o,a):n()}()},t.indexOf=g,t.keys=b,t._entries=function(e){return b(e).map(function(t){return[t,e[t]]})},t._values=function(e){return b(e).map(function(t){return e[t]})},t._assign=t.extend=function(e,t){return e=e||{},b(t).forEach(function(n){e[n]=t[n]}),e},t.inOperator=function(e,t){if(d(t)||p(t))return-1!==t.indexOf(e);if(f(t))return e in t;throw new Error('Cannot use "in" operator to search for "'+e+'" in unexpected types.')}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var l=n(16),s=n(0);function c(e,t,n){n=n||{},s.keys(n).forEach(function(t){var r,o;n[t]=(r=e.prototype[t],o=n[t],"function"!=typeof r||"function"!=typeof o?o:function(){var e=this.parent;this.parent=r;var t=o.apply(this,arguments);return this.parent=e,t})});var o=function(e){function n(){return e.apply(this,arguments)||this}return i(n,e),r(n,[{key:"typename",get:function(){return t}}]),n}(e);return s._assign(o.prototype,n),o}var u=function(){function e(){this.init.apply(this,arguments)}return e.prototype.init=function(){},e.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),c(this,e,t)},r(e,[{key:"typename",get:function(){return this.constructor.name}}]),e}(),d=function(e){function t(){var t,n;return(t=n=e.call(this)||this).init.apply(t,arguments),n}return i(t,e),t.prototype.init=function(){},t.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),c(this,e,t)},r(t,[{key:"typename",get:function(){return this.constructor.name}}]),t}(l);e.exports={Obj:u,EmitterObj:d}},function(e,t,n){var r=n(0),o=Array.from,i="function"==typeof Symbol&&Symbol.iterator&&"function"==typeof o,a=function(){function e(e,t){this.variables=Object.create(null),this.parent=e,this.topLevel=!1,this.isolateWrites=t}var t=e.prototype;return t.set=function(e,t,n){var r=e.split("."),o=this.variables,i=this;if(n&&(i=this.resolve(r[0],!0)))i.set(e,t);else{for(var a=0;a<r.length-1;a++){var l=r[a];o[l]||(o[l]={}),o=o[l]}o[r[r.length-1]]=t}},t.get=function(e){var t=this.variables[e];return void 0!==t?t:null},t.lookup=function(e){var t=this.parent,n=this.variables[e];return void 0!==n?n:t&&t.lookup(e)},t.resolve=function(e,t){var n=t&&this.isolateWrites?void 0:this.parent;return void 0!==this.variables[e]?this:n&&n.resolve(e)},t.push=function(t){return new e(this,t)},t.pop=function(){return this.parent},e}();function l(e){return e&&Object.prototype.hasOwnProperty.call(e,"__keywords")}function s(e){var t=e.length;return 0===t?0:l(e[t-1])?t-1:t}function c(e){if("string"!=typeof e)return e;this.val=e,this.length=e.length}c.prototype=Object.create(String.prototype,{length:{writable:!0,configurable:!0,value:0}}),c.prototype.valueOf=function(){return this.val},c.prototype.toString=function(){return this.val},e.exports={Frame:a,makeMacro:function(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a,c=s(o),u=function(e){var t=e.length;if(t){var n=e[t-1];if(l(n))return n}return{}}(o);if(c>e.length)a=o.slice(0,e.length),o.slice(a.length,c).forEach(function(e,n){n<t.length&&(u[t[n]]=e)}),a.push(u);else if(c<e.length){a=o.slice(0,c);for(var d=c;d<e.length;d++){var p=e[d];a.push(u[p]),delete u[p]}a.push(u)}else a=o;return n.apply(this,a)}},makeKeywordArgs:function(e){return e.__keywords=!0,e},numArgs:s,suppressValue:function(e,t){return e=null!=e?e:"",!t||e instanceof c||(e=r.escape(e.toString())),e},ensureDefined:function(e,t,n){if(null==e)throw new r.TemplateError("attempted to output null or undefined value",t+1,n+1);return e},memberLookup:function(e,t){if(null!=e)return"function"==typeof e[t]?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e[t].apply(e,r)}:e[t]},contextOrFrameLookup:function(e,t,n){var r=t.lookup(n);return void 0!==r?r:e.lookup(n)},callWrap:function(e,t,n,r){if(!e)throw new Error("Unable to call `"+t+"`, which is undefined or falsey");if("function"!=typeof e)throw new Error("Unable to call `"+t+"`, which is not a function");return e.apply(n,r)},handleError:function(e,t,n){return e.lineno?e:new r.TemplateError(e,t,n)},isArray:r.isArray,keys:r.keys,SafeString:c,copySafeness:function(e,t){return e instanceof c?new c(t):t.toString()},markSafe:function(e){var t=typeof e;return"string"===t?new c(e):"function"!==t?e:function(t){var n=e.apply(this,arguments);return"string"==typeof n?new c(n):n}},asyncEach:function(e,t,n,o){if(r.isArray(e)){var i=e.length;r.asyncIter(e,function(e,r,o){switch(t){case 1:n(e,r,i,o);break;case 2:n(e[0],e[1],r,i,o);break;case 3:n(e[0],e[1],e[2],r,i,o);break;default:e.push(r,i,o),n.apply(this,e)}},o)}else r.asyncFor(e,function(e,t,r,o,i){n(e,t,r,o,i)},o)},asyncAll:function(e,t,n,o){var i,a,l=0;function s(e,t){l++,a[e]=t,l===i&&o(null,a.join(""))}if(r.isArray(e))if(i=e.length,a=new Array(i),0===i)o(null,"");else for(var c=0;c<e.length;c++){var u=e[c];switch(t){case 1:n(u,c,i,s);break;case 2:n(u[0],u[1],c,i,s);break;case 3:n(u[0],u[1],u[2],c,i,s);break;default:u.push(c,i,s),n.apply(this,u)}}else{var d=r.keys(e||{});if(i=d.length,a=new Array(i),0===i)o(null,"");else for(var p=0;p<d.length;p++){var f=d[p];n(f,e[f],p,i,s)}}},inOperator:r.inOperator,fromIterator:function(e){return"object"!=typeof e||null===e||r.isArray(e)?e:i&&Symbol.iterator in e?o(e):e}}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t,n){e instanceof t&&n.push(e),e instanceof s&&e.findAll(t,n)}var s=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(e,t){for(var n=arguments,r=this,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];this.lineno=e,this.colno=t,this.fields.forEach(function(e,t){var o=n[t+2];void 0===o&&(o=null),r[e]=o})},n.findAll=function(e,t){var n=this;return t=t||[],this instanceof u?this.children.forEach(function(n){return l(n,e,t)}):this.fields.forEach(function(r){return l(n[r],e,t)}),t},n.iterFields=function(e){var t=this;this.fields.forEach(function(n){e(t[n],n)})},t}(n(1).Obj),c=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),r(t,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),t}(s),u=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(t,n,r){e.prototype.init.call(this,t,n,r||[])},n.addChild=function(e){this.children.push(e)},r(t,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),t}(s),d=u.extend("Root"),p=c.extend("Literal"),f=c.extend("Symbol"),h=u.extend("Group"),m=u.extend("Array"),g=s.extend("Pair",{fields:["key","value"]}),b=u.extend("Dict"),v=s.extend("LookupVal",{fields:["target","val"]}),y=s.extend("If",{fields:["cond","body","else_"]}),w=y.extend("IfAsync"),x=s.extend("InlineIf",{fields:["cond","body","else_"]}),S=s.extend("For",{fields:["arr","name","body","else_"]}),C=S.extend("AsyncEach"),k=S.extend("AsyncAll"),E=s.extend("Macro",{fields:["name","args","body"]}),R=E.extend("Caller"),M=s.extend("Import",{fields:["template","target","withContext"]}),P=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t,n,r,o,i){e.prototype.init.call(this,t,n,r,o||new u,i)},r(t,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),t}(s),T=s.extend("FunCall",{fields:["name","args"]}),I=T.extend("Filter"),O=I.extend("FilterAsync",{fields:["name","args","symbol"]}),D=b.extend("KeywordArgs"),F=s.extend("Block",{fields:["name","body"]}),L=s.extend("Super",{fields:["blockName","symbol"]}),A=s.extend("TemplateRef",{fields:["template"]}).extend("Extends"),$=s.extend("Include",{fields:["template","ignoreMissing"]}),N=s.extend("Set",{fields:["targets","value"]}),z=s.extend("Switch",{fields:["expr","cases","default"]}),j=s.extend("Case",{fields:["cond","body"]}),_=u.extend("Output"),B=s.extend("Capture",{fields:["body"]}),H=p.extend("TemplateData"),V=s.extend("UnaryOp",{fields:["target"]}),W=s.extend("BinOp",{fields:["left","right"]}),U=W.extend("In"),G=W.extend("Is"),K=W.extend("Or"),q=W.extend("And"),Y=V.extend("Not"),X=W.extend("Add"),Q=W.extend("Concat"),Z=W.extend("Sub"),J=W.extend("Mul"),ee=W.extend("Div"),te=W.extend("FloorDiv"),ne=W.extend("Mod"),re=W.extend("Pow"),oe=V.extend("Neg"),ie=V.extend("Pos"),ae=s.extend("Compare",{fields:["expr","ops"]}),le=s.extend("CompareOperand",{fields:["expr","type"]}),se=s.extend("CallExtension",{init:function(e,t,n,r){this.parent(),this.extName=e.__name||e,this.prop=t,this.args=n||new u,this.contentArgs=r||[],this.autoescape=e.autoescape},fields:["extName","prop","args","contentArgs"]}),ce=se.extend("CallExtensionAsync");function ue(e,t,n){var r=e.split("\n");r.forEach(function(e,o){e&&(n&&o>0||!n)&&pu.stdout.write(" ".repeat(t));var i=o===r.length-1?"":"\n";pu.stdout.write(""+e+i)})}e.exports={Node:s,Root:d,NodeList:u,Value:c,Literal:p,Symbol:f,Group:h,Array:m,Pair:g,Dict:b,Output:_,Capture:B,TemplateData:H,If:y,IfAsync:w,InlineIf:x,For:S,AsyncEach:C,AsyncAll:k,Macro:E,Caller:R,Import:M,FromImport:P,FunCall:T,Filter:I,FilterAsync:O,KeywordArgs:D,Block:F,Super:L,Extends:A,Include:$,Set:N,Switch:z,Case:j,LookupVal:v,BinOp:W,In:U,Is:G,Or:K,And:q,Not:Y,Add:X,Concat:Q,Sub:Z,Mul:J,Div:ee,FloorDiv:te,Mod:ne,Pow:re,Neg:oe,Pos:ie,Compare:ae,CompareOperand:le,CallExtension:se,CallExtensionAsync:ce,printNodes:function e(t,n){if(n=n||0,ue(t.typename+": ",n),t instanceof u)ue("\n"),t.children.forEach(function(t){e(t,n+2)});else if(t instanceof se)ue(t.extName+"."+t.prop+"\n"),t.args&&e(t.args,n+2),t.contentArgs&&t.contentArgs.forEach(function(t){e(t,n+2)});else{var r=[],o=null;t.iterFields(function(e,t){e instanceof s?r.push([t,e]):(o=o||{})[t]=e}),o?ue(JSON.stringify(o,null,2)+"\n",null,!0):ue("\n"),r.forEach(function(t){var r=t[0],o=t[1];ue("["+r+"] =>",n+2),e(o,n+4)})}}}},function(e,t){},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(8),i=n(17),a=n(3),l=n(0).TemplateError,s=n(2).Frame,c=n(1).Obj,u={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},i.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new l(e,t,n)},i._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},i._popBuffer=function(){this.buffer=this.bufferStack.pop()},i._emit=function(e){this.codebuf.push(e)},i._emitLine=function(e){this._emit(e+"\n")},i._emitLines=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e._emitLine(t)})},i._emitFuncBegin=function(e,t){this.buffer="output",this._scopeClosers="",this._emitLine("function "+t+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+e.lineno+";"),this._emitLine("var colno = "+e.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},i._emitFuncEnd=function(e){e||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},i._addScopeLevel=function(){this._scopeClosers+="})"},i._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},i._withScopedSyntax=function(e){var t=this._scopeClosers;this._scopeClosers="",e.call(this),this._closeScopeLevels(),this._scopeClosers=t},i._makeCallback=function(e){var t=this._tmpid();return"function("+t+(e?","+e:"")+") {\nif("+t+") { cb("+t+"); return; }"},i._tmpid=function(){return this.lastId++,"t_"+this.lastId},i._templateName=function(){return null==this.templateName?"undefined":JSON.stringify(this.templateName)},i._compileChildren=function(e,t){var n=this;e.children.forEach(function(e){n.compile(e,t)})},i._compileAggregate=function(e,t,n,r){var o=this;n&&this._emit(n),e.children.forEach(function(e,n){n>0&&o._emit(","),o.compile(e,t)}),r&&this._emit(r)},i._compileExpression=function(e,t){this.assertType(e,a.Literal,a.Symbol,a.Group,a.Array,a.Dict,a.FunCall,a.Caller,a.Filter,a.LookupVal,a.Compare,a.InlineIf,a.In,a.Is,a.And,a.Or,a.Not,a.Add,a.Concat,a.Sub,a.Mul,a.Div,a.FloorDiv,a.Mod,a.Pow,a.Neg,a.Pos,a.Compare,a.NodeList),this.compile(e,t)},i.assertType=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.some(function(t){return e instanceof t})||this.fail("assertType: invalid type: "+e.typename,e.lineno,e.colno)},i.compileCallExtension=function(e,t,n){var r=this,o=e.args,i=e.contentArgs,l="boolean"!=typeof e.autoescape||e.autoescape;if(n||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+e.extName+'")["'+e.prop+'"]('),this._emit("context"),(o||i)&&this._emit(","),o&&(o instanceof a.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),o.children.forEach(function(e,n){r._compileExpression(e,t),(n!==o.children.length-1||i.length)&&r._emit(",")})),i.length&&i.forEach(function(e,n){if(n>0&&r._emit(","),e){r._emitLine("function(cb) {"),r._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var o=r._pushBuffer();r._withScopedSyntax(function(){r.compile(e,t),r._emitLine("cb(null, "+o+");")}),r._popBuffer(),r._emitLine("return "+o+";"),r._emitLine("}")}else r._emit("null")}),n){var s=this._tmpid();this._emitLine(", "+this._makeCallback(s)),this._emitLine(this.buffer+" += runtime.suppressValue("+s+", "+l+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+l+" && env.opts.autoescape);\n")},i.compileCallExtensionAsync=function(e,t){this.compileCallExtension(e,t,!0)},i.compileNodeList=function(e,t){this._compileChildren(e,t)},i.compileLiteral=function(e){if("string"==typeof e.value){var t=e.value.replace(/\\/g,"\\\\");t=(t=(t=(t=(t=t.replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+t+'"')}else null===e.value?this._emit("null"):this._emit(e.value.toString())},i.compileSymbol=function(e,t){var n=e.value,r=t.lookup(n);r?this._emit(r):this._emit('runtime.contextOrFrameLookup(context, frame, "'+n+'")')},i.compileGroup=function(e,t){this._compileAggregate(e,t,"(",")")},i.compileArray=function(e,t){this._compileAggregate(e,t,"[","]")},i.compileDict=function(e,t){this._compileAggregate(e,t,"{","}")},i.compilePair=function(e,t){var n=e.key,r=e.value;n instanceof a.Symbol?n=new a.Literal(n.lineno,n.colno,n.value):n instanceof a.Literal&&"string"==typeof n.value||this.fail("compilePair: Dict keys must be strings or names",n.lineno,n.colno),this.compile(n,t),this._emit(": "),this._compileExpression(r,t)},i.compileInlineIf=function(e,t){this._emit("("),this.compile(e.cond,t),this._emit("?"),this.compile(e.body,t),this._emit(":"),null!==e.else_?this.compile(e.else_,t):this._emit('""'),this._emit(")")},i.compileIn=function(e,t){this._emit("runtime.inOperator("),this.compile(e.left,t),this._emit(","),this.compile(e.right,t),this._emit(")")},i.compileIs=function(e,t){var n=e.right.name?e.right.name.value:e.right.value;this._emit('env.getTest("'+n+'").call(context, '),this.compile(e.left,t),e.right.args&&(this._emit(","),this.compile(e.right.args,t)),this._emit(") === true")},i._binOpEmitter=function(e,t,n){this.compile(e.left,t),this._emit(n),this.compile(e.right,t)},i.compileOr=function(e,t){return this._binOpEmitter(e,t," || ")},i.compileAnd=function(e,t){return this._binOpEmitter(e,t," && ")},i.compileAdd=function(e,t){return this._binOpEmitter(e,t," + ")},i.compileConcat=function(e,t){return this._binOpEmitter(e,t,' + "" + ')},i.compileSub=function(e,t){return this._binOpEmitter(e,t," - ")},i.compileMul=function(e,t){return this._binOpEmitter(e,t," * ")},i.compileDiv=function(e,t){return this._binOpEmitter(e,t," / ")},i.compileMod=function(e,t){return this._binOpEmitter(e,t," % ")},i.compileNot=function(e,t){this._emit("!"),this.compile(e.target,t)},i.compileFloorDiv=function(e,t){this._emit("Math.floor("),this.compile(e.left,t),this._emit(" / "),this.compile(e.right,t),this._emit(")")},i.compilePow=function(e,t){this._emit("Math.pow("),this.compile(e.left,t),this._emit(", "),this.compile(e.right,t),this._emit(")")},i.compileNeg=function(e,t){this._emit("-"),this.compile(e.target,t)},i.compilePos=function(e,t){this._emit("+"),this.compile(e.target,t)},i.compileCompare=function(e,t){var n=this;this.compile(e.expr,t),e.ops.forEach(function(e){n._emit(" "+u[e.type]+" "),n.compile(e.expr,t)})},i.compileLookupVal=function(e,t){this._emit("runtime.memberLookup(("),this._compileExpression(e.target,t),this._emit("),"),this._compileExpression(e.val,t),this._emit(")")},i._getNodeName=function(e){switch(e.typename){case"Symbol":return e.value;case"FunCall":return"the return value of ("+this._getNodeName(e.name)+")";case"LookupVal":return this._getNodeName(e.target)+'["'+this._getNodeName(e.val)+'"]';case"Literal":return e.value.toString();default:return"--expression--"}},i.compileFunCall=function(e,t){this._emit("(lineno = "+e.lineno+", colno = "+e.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(e.name,t),this._emit(', "'+this._getNodeName(e.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(e.args,t,"[","])"),this._emit(")")},i.compileFilter=function(e,t){var n=e.name;this.assertType(n,a.Symbol),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emit(")")},i.compileFilterAsync=function(e,t){var n=e.name,r=e.symbol.value;this.assertType(n,a.Symbol),t.set(r,r),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emitLine(", "+this._makeCallback(r)),this._addScopeLevel()},i.compileKeywordArgs=function(e,t){this._emit("runtime.makeKeywordArgs("),this.compileDict(e,t),this._emit(")")},i.compileSet=function(e,t){var n=this,r=[];e.targets.forEach(function(e){var o=e.value,i=t.lookup(o);null==i&&(i=n._tmpid(),n._emitLine("var "+i+";")),r.push(i)}),e.value?(this._emit(r.join(" = ")+" = "),this._compileExpression(e.value,t),this._emitLine(";")):(this._emit(r.join(" = ")+" = "),this.compile(e.body,t),this._emitLine(";")),e.targets.forEach(function(e,t){var o=r[t],i=e.value;n._emitLine('frame.set("'+i+'", '+o+", true);"),n._emitLine("if(frame.topLevel) {"),n._emitLine('context.setVariable("'+i+'", '+o+");"),n._emitLine("}"),"_"!==i.charAt(0)&&(n._emitLine("if(frame.topLevel) {"),n._emitLine('context.addExport("'+i+'", '+o+");"),n._emitLine("}"))})},i.compileSwitch=function(e,t){var n=this;this._emit("switch ("),this.compile(e.expr,t),this._emit(") {"),e.cases.forEach(function(e,r){n._emit("case "),n.compile(e.cond,t),n._emit(": "),n.compile(e.body,t),e.body.children.length&&n._emitLine("break;")}),e.default&&(this._emit("default:"),this.compile(e.default,t)),this._emit("}")},i.compileIf=function(e,t,n){var r=this;this._emit("if("),this._compileExpression(e.cond,t),this._emitLine(") {"),this._withScopedSyntax(function(){r.compile(e.body,t),n&&r._emit("cb()")}),e.else_?(this._emitLine("}\nelse {"),this._withScopedSyntax(function(){r.compile(e.else_,t),n&&r._emit("cb()")})):n&&(this._emitLine("}\nelse {"),this._emit("cb()")),this._emitLine("}")},i.compileIfAsync=function(e,t){this._emit("(function(cb) {"),this.compileIf(e,t,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},i._emitLoopBindings=function(e,t,n,r){var o=this;[{name:"index",val:n+" + 1"},{name:"index0",val:n},{name:"revindex",val:r+" - "+n},{name:"revindex0",val:r+" - "+n+" - 1"},{name:"first",val:n+" === 0"},{name:"last",val:n+" === "+r+" - 1"},{name:"length",val:r}].forEach(function(e){o._emitLine('frame.set("loop.'+e.name+'", '+e.val+");")})},i.compileFor=function(e,t){var n=this,r=this._tmpid(),o=this._tmpid(),i=this._tmpid();if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+i+" = "),this._compileExpression(e.arr,t),this._emitLine(";"),this._emit("if("+i+") {"),this._emitLine(i+" = runtime.fromIterator("+i+");"),e.name instanceof a.Array){this._emitLine("var "+r+";"),this._emitLine("if(runtime.isArray("+i+")) {"),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for("+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),e.name.children.forEach(function(o,a){var l=n._tmpid();n._emitLine("var "+l+" = "+i+"["+r+"]["+a+"];"),n._emitLine('frame.set("'+o+'", '+i+"["+r+"]["+a+"]);"),t.set(e.name.children[a].value,l)}),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("} else {");var l=e.name.children,s=l[0],c=l[1],u=this._tmpid(),d=this._tmpid();t.set(s.value,u),t.set(c.value,d),this._emitLine(r+" = -1;"),this._emitLine("var "+o+" = runtime.keys("+i+").length;"),this._emitLine("for(var "+u+" in "+i+") {"),this._emitLine(r+"++;"),this._emitLine("var "+d+" = "+i+"["+u+"];"),this._emitLine('frame.set("'+s.value+'", '+u+");"),this._emitLine('frame.set("'+c.value+'", '+d+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("}")}else{var p=this._tmpid();t.set(e.name.value,p),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for(var "+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),this._emitLine("var "+p+" = "+i+"["+r+"];"),this._emitLine('frame.set("'+e.name.value+'", '+p+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}")}this._emitLine("}"),e.else_&&(this._emitLine("if (!"+o+") {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i._compileAsyncLoop=function(e,t,n){var r=this,o=this._tmpid(),i=this._tmpid(),l=this._tmpid(),s=n?"asyncAll":"asyncEach";if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+l+" = runtime.fromIterator("),this._compileExpression(e.arr,t),this._emitLine(");"),e.name instanceof a.Array){var c=e.name.children.length;this._emit("runtime."+s+"("+l+", "+c+", function("),e.name.children.forEach(function(e){r._emit(e.value+",")}),this._emit(o+","+i+",next) {"),e.name.children.forEach(function(e){var n=e.value;t.set(n,n),r._emitLine('frame.set("'+n+'", '+n+");")})}else{var u=e.name.value;this._emitLine("runtime."+s+"("+l+", 1, function("+u+", "+o+", "+i+",next) {"),this._emitLine('frame.set("'+u+'", '+u+");"),t.set(u,u)}this._emitLoopBindings(e,l,o,i),this._withScopedSyntax(function(){var i;n&&(i=r._pushBuffer()),r.compile(e.body,t),r._emitLine("next("+o+(i?","+i:"")+");"),n&&r._popBuffer()});var d=this._tmpid();this._emitLine("}, "+this._makeCallback(d)),this._addScopeLevel(),n&&this._emitLine(this.buffer+" += "+d+";"),e.else_&&(this._emitLine("if (!"+l+".length) {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i.compileAsyncEach=function(e,t){this._compileAsyncLoop(e,t)},i.compileAsyncAll=function(e,t){this._compileAsyncLoop(e,t,!0)},i._compileMacro=function(e,t){var n=this,r=[],o=null,i="macro_"+this._tmpid(),l=void 0!==t;e.args.children.forEach(function(t,i){i===e.args.children.length-1&&t instanceof a.Dict?o=t:(n.assertType(t,a.Symbol),r.push(t))});var c,u=[].concat(r.map(function(e){return"l_"+e.value}),["kwargs"]),d=r.map(function(e){return'"'+e.value+'"'}),p=(o&&o.children||[]).map(function(e){return'"'+e.key.value+'"'});c=l?t.push(!0):new s,this._emitLines("var "+i+" = runtime.makeMacro(","["+d.join(", ")+"], ","["+p.join(", ")+"], ","function ("+u.join(", ")+") {","var callerFrame = frame;","frame = "+(l?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),r.forEach(function(e){n._emitLine('frame.set("'+e.value+'", l_'+e.value+");"),c.set(e.value,"l_"+e.value)}),o&&o.children.forEach(function(e){var t=e.key.value;n._emit('frame.set("'+t+'", '),n._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+t+'")'),n._emit(' ? kwargs["'+t+'"] : '),n._compileExpression(e.value,c),n._emit(");")});var f=this._pushBuffer();return this._withScopedSyntax(function(){n.compile(e.body,c)}),this._emitLine("frame = "+(l?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+f+");"),this._emitLine("});"),this._popBuffer(),i},i.compileMacro=function(e,t){var n=this._compileMacro(e),r=e.name.value;t.set(r,n),t.parent?this._emitLine('frame.set("'+r+'", '+n+");"):("_"!==e.name.value.charAt(0)&&this._emitLine('context.addExport("'+r+'");'),this._emitLine('context.setVariable("'+r+'", '+n+");"))},i.compileCaller=function(e,t){this._emit("(function (){");var n=this._compileMacro(e,t);this._emit("return "+n+";})()")},i._compileGetTemplate=function(e,t,n,r){var o=this._tmpid(),i=this._templateName(),a=this._makeCallback(o),l=n?"true":"false",s=r?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(e.template,t),this._emitLine(", "+l+", "+i+", "+s+", "+a),o},i.compileImport=function(e,t){var n=e.target.value,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),t.set(n,r),t.parent?this._emitLine('frame.set("'+n+'", '+r+");"):this._emitLine('context.setVariable("'+n+'", '+r+");")},i.compileFromImport=function(e,t){var n=this,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),e.names.children.forEach(function(e){var o,i,l=n._tmpid();e instanceof a.Pair?(o=e.key.value,i=e.value.value):i=o=e.value,n._emitLine("if(Object.prototype.hasOwnProperty.call("+r+', "'+o+'")) {'),n._emitLine("var "+l+" = "+r+"."+o+";"),n._emitLine("} else {"),n._emitLine("cb(new Error(\"cannot import '"+o+"'\")); return;"),n._emitLine("}"),t.set(i,l),t.parent?n._emitLine('frame.set("'+i+'", '+l+");"):n._emitLine('context.setVariable("'+i+'", '+l+");")})},i.compileBlock=function(e){var t=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+e.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(t)),this._emitLine(this.buffer+" += "+t+";"),this._addScopeLevel()},i.compileSuper=function(e,t){var n=e.blockName.value,r=e.symbol.value,o=this._makeCallback(r);this._emitLine('context.getSuper(env, "'+n+'", b_'+n+", frame, runtime, "+o),this._emitLine(r+" = runtime.markSafe("+r+");"),this._addScopeLevel(),t.set(r,r)},i.compileExtends=function(e,t){var n=this._tmpid(),r=this._compileGetTemplate(e,t,!0,!1);this._emitLine("parentTemplate = "+r),this._emitLine("for(var "+n+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+n+", parentTemplate.blocks["+n+"]);"),this._emitLine("}"),this._addScopeLevel()},i.compileInclude=function(e,t){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var n=this._compileGetTemplate(e,t,!1,e.ignoreMissing);this._emitLine("callback(null,"+n+");});"),this._emitLine("});");var r=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(r)),this._emitLine("callback(null,"+r+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},i.compileTemplateData=function(e,t){this.compileLiteral(e,t)},i.compileCapture=function(e,t){var n=this,r=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=r},i.compileOutput=function(e,t){var n=this;e.children.forEach(function(r){r instanceof a.TemplateData?r.value&&(n._emit(n.buffer+" += "),n.compileLiteral(r,t),n._emitLine(";")):(n._emit(n.buffer+" += runtime.suppressValue("),n.throwOnUndefined&&n._emit("runtime.ensureDefined("),n.compile(r,t),n.throwOnUndefined&&n._emit(","+e.lineno+","+e.colno+")"),n._emit(", env.opts.autoescape);\n"))})},i.compileRoot=function(e,t){var n=this;t&&this.fail("compileRoot: root node can't have frame"),t=new s,this._emitFuncBegin(e,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(e,t),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var r=[],o=e.findAll(a.Block);o.forEach(function(e,t){var o=e.name.value;if(-1!==r.indexOf(o))throw new Error('Block "'+o+'" defined more than once.');r.push(o),n._emitFuncBegin(e,"b_"+o);var i=new s;n._emitLine("var frame = frame.push(true);"),n.compile(e.body,i),n._emitFuncEnd()}),this._emitLine("return {"),o.forEach(function(e,t){var r="b_"+e.name.value;n._emitLine(r+": "+r+",")}),this._emitLine("root: root\n};")},i.compile=function(e,t){var n=this["compile"+e.typename];n?n.call(this,e,t):this.fail("compile: Cannot compile node: "+e.typename,e.lineno,e.colno)},i.getCode=function(){return this.codebuf.join("")},o}(c);e.exports={compile:function(e,t,n,r,a){void 0===a&&(a={});var l=new d(r,a.throwOnUndefined),s=(n||[]).map(function(e){return e.preprocess}).filter(function(e){return!!e}).reduce(function(e,t){return t(e)},e);return l.compile(i.transform(o.parse(s,n,a),t,r)),l.getCode()},Compiler:d}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(4),i=n(1).EmitterObj;e.exports=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.resolve=function(e,t){return o.resolve(o.dirname(e),t)},a.isRelative=function(e){return 0===e.indexOf("./")||0===e.indexOf("../")},i}(i)},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(12),a=n(15),l=n(0),s=n(5),c=n(18),u=n(10),d=u.FileSystemLoader,p=u.WebLoader,f=u.PrecompiledLoader,h=n(20),m=n(21),g=n(1),b=g.Obj,v=g.EmitterObj,y=n(2),w=y.handleError,x=y.Frame,S=n(22);function C(e,t,n){i(function(){e(t,n)})}var k={type:"code",obj:{root:function(e,t,n,r,o){try{o(null,"")}catch(e){o(w(e,null,null))}}}},E=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t){var n=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=l.isArray(e)?e:[e]:d?this.loaders=[new d("views")]:p&&(this.loaders=[new p("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new f(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=m(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],l._entries(c).forEach(function(e){var t=e[0],r=e[1];return n.addFilter(t,r)}),l._entries(h).forEach(function(e){var t=e[0],r=e[1];return n.addTest(t,r)})},n._initLoaders=function(){var e=this;this.loaders.forEach(function(t){t.cache={},"function"==typeof t.on&&(t.on("update",function(n,r){t.cache[n]=null,e.emit("update",n,r,t)}),t.on("load",function(n,r){e.emit("load",n,r,t)}))})},n.invalidateCache=function(){this.loaders.forEach(function(e){e.cache={}})},n.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},n.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=l.without(this.extensionsList,t),delete this.extensions[e])},n.getExtension=function(e){return this.extensions[e]},n.hasExtension=function(e){return!!this.extensions[e]},n.addGlobal=function(e,t){return this.globals[e]=t,this},n.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},n.addFilter=function(e,t,n){var r=t;return n&&this.asyncFilters.push(e),this.filters[e]=r,this},n.getFilter=function(e){if(!this.filters[e])throw new Error("filter not found: "+e);return this.filters[e]},n.addTest=function(e,t){return this.tests[e]=t,this},n.getTest=function(e){if(!this.tests[e])throw new Error("test not found: "+e);return this.tests[e]},n.resolveTemplate=function(e,t,n){return e.isRelative&&t&&e.isRelative(n)&&e.resolve?e.resolve(t,n):n},n.getTemplate=function(e,t,n,r,o){var i,a=this,s=this,c=null;if(e&&e.raw&&(e=e.raw),l.isFunction(n)&&(o=n,n=null,t=t||!1),l.isFunction(t)&&(o=t,t=!1),e instanceof M)c=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var u=0;u<this.loaders.length;u++){var d=this.loaders[u];if(c=d.cache[this.resolveTemplate(d,n,e)])break}}return c?(t&&c.compile(),o?void o(null,c):c):(l.asyncIter(this.loaders,function(t,r,o,i){function a(e,n){e?i(e):n?(n.loader=t,i(null,n)):o()}e=s.resolveTemplate(t,n,e),t.async?t.getSource(e,a):a(null,t.getSource(e))},function(n,l){if(l||n||r||(n=new Error("template not found: "+e)),n){if(o)return void o(n);throw n}var s;l?(s=new M(l.src,a,l.path,t),l.noCache||(l.loader.cache[e]=s)):s=new M(k,a,"",t),o?o(null,s):i=s}),i)},n.express=function(e){return S(this,e)},n.render=function(e,t,n){l.isFunction(t)&&(n=t,t=null);var r=null;return this.getTemplate(e,function(e,o){if(e&&n)C(n,e);else{if(e)throw e;r=o.render(t,n)}}),r},n.renderString=function(e,t,n,r){return l.isFunction(n)&&(r=n,n={}),new M(e,this,(n=n||{}).path).render(t,r)},n.waterfall=function(e,t,n){return a(e,t,n)},t}(v),R=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n){var r=this;this.env=n||new E,this.ctx=l.extend({},e),this.blocks={},this.exported=[],l.keys(t).forEach(function(e){r.addBlock(e,t[e])})},n.lookup=function(e){return e in this.env.globals&&!(e in this.ctx)?this.env.globals[e]:this.ctx[e]},n.setVariable=function(e,t){this.ctx[e]=t},n.getVariables=function(){return this.ctx},n.addBlock=function(e,t){return this.blocks[e]=this.blocks[e]||[],this.blocks[e].push(t),this},n.getBlock=function(e){if(!this.blocks[e])throw new Error('unknown block "'+e+'"');return this.blocks[e][0]},n.getSuper=function(e,t,n,r,o,i){var a=l.indexOf(this.blocks[t]||[],n),s=this.blocks[t][a+1];if(-1===a||!s)throw new Error('no super block available for "'+t+'"');s(e,this,r,o,i)},n.addExport=function(e){this.exported.push(e)},n.getExported=function(){var e=this,t={};return this.exported.forEach(function(n){t[n]=e.ctx[n]}),t},t}(b),M=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n,r){if(this.env=t||new E,l.isObject(e))switch(e.type){case"code":this.tmplProps=e.obj;break;case"string":this.tmplStr=e.obj;break;default:throw new Error("Unexpected template object type "+e.type+"; expected 'code', or 'string'")}else{if(!l.isString(e))throw new Error("src must be a string or an object describing the source");this.tmplStr=e}if(this.path=n,r)try{this._compile()}catch(e){throw l._prettifyError(this.path,this.env.opts.dev,e)}else this.compiled=!1},n.render=function(e,t,n){var r=this;"function"==typeof e?(n=e,e={}):"function"==typeof t&&(n=t,t=null);var o=!t;try{this.compile()}catch(e){var i=l._prettifyError(this.path,this.env.opts.dev,e);if(n)return C(n,i);throw i}var a=new R(e||{},this.blocks,this.env),s=t?t.push(!0):new x;s.topLevel=!0;var c=null,u=!1;return this.rootRenderFunc(this.env,a,s,y,function(e,t){if(!u||!n||void 0===t)if(e&&(e=l._prettifyError(r.path,r.env.opts.dev,e),u=!0),n)o?C(n,e,t):n(e,t);else{if(e)throw e;c=t}}),c},n.getExported=function(e,t,n){"function"==typeof e&&(n=e,e={}),"function"==typeof t&&(n=t,t=null);try{this.compile()}catch(e){if(n)return n(e);throw e}var r=t?t.push():new x;r.topLevel=!0;var o=new R(e||{},this.blocks,this.env);this.rootRenderFunc(this.env,o,r,y,function(e){e?n(e,null):n(null,o.getExported())})},n.compile=function(){this.compiled||this._compile()},n._compile=function(){var e;if(this.tmplProps)e=this.tmplProps;else{var t=s.compile(this.tmplStr,this.env.asyncFilters,this.env.extensionsList,this.path,this.env.opts);e=new Function(t)()}this.blocks=this._getBlocks(e),this.rootRenderFunc=e.root,this.compiled=!0},n._getBlocks=function(e){var t={};return l.keys(e).forEach(function(n){"b_"===n.slice(0,2)&&(t[n.slice(2)]=e[n])}),t},t}(b);e.exports={Environment:E,Template:M}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(9),i=n(3),a=n(1).Obj,l=n(0),s=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var s=a.prototype;return s.init=function(e){this.tokens=e,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},s.nextToken=function(e){var t;if(this.peeked){if(e||this.peeked.type!==o.TOKEN_WHITESPACE)return t=this.peeked,this.peeked=null,t;this.peeked=null}if(t=this.tokens.nextToken(),!e)for(;t&&t.type===o.TOKEN_WHITESPACE;)t=this.tokens.nextToken();return t},s.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},s.pushToken=function(e){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=e},s.error=function(e,t,n){if(void 0===t||void 0===n){var r=this.peekToken()||{};t=r.lineno,n=r.colno}return void 0!==t&&(t+=1),void 0!==n&&(n+=1),new l.TemplateError(e,t,n)},s.fail=function(e,t,n){throw this.error(e,t,n)},s.skip=function(e){var t=this.nextToken();return!(!t||t.type!==e)||(this.pushToken(t),!1)},s.expect=function(e){var t=this.nextToken();return t.type!==e&&this.fail("expected "+e+", got "+t.type,t.lineno,t.colno),t},s.skipValue=function(e,t){var n=this.nextToken();return!(!n||n.type!==e||n.value!==t)||(this.pushToken(n),!1)},s.skipSymbol=function(e){return this.skipValue(o.TOKEN_SYMBOL,e)},s.advanceAfterBlockEnd=function(e){var t;return e||((t=this.peekToken())||this.fail("unexpected end of file"),t.type!==o.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),e=this.nextToken().value),(t=this.nextToken())&&t.type===o.TOKEN_BLOCK_END?"-"===t.value.charAt(0)&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+e+" statement"),t},s.advanceAfterVariableEnd=function(){var e=this.nextToken();e&&e.type===o.TOKEN_VARIABLE_END?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.VARIABLE_END.length-1):(this.pushToken(e),this.fail("expected variable end"))},s.parseFor=function(){var e,t,n=this.peekToken();if(this.skipSymbol("for")?(e=new i.For(n.lineno,n.colno),t="endfor"):this.skipSymbol("asyncEach")?(e=new i.AsyncEach(n.lineno,n.colno),t="endeach"):this.skipSymbol("asyncAll")?(e=new i.AsyncAll(n.lineno,n.colno),t="endall"):this.fail("parseFor: expected for{Async}",n.lineno,n.colno),e.name=this.parsePrimary(),e.name instanceof i.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===o.TOKEN_COMMA){var r=e.name;for(e.name=new i.Array(r.lineno,r.colno),e.name.addChild(r);this.skip(o.TOKEN_COMMA);){var a=this.parsePrimary();e.name.addChild(a)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',n.lineno,n.colno),e.arr=this.parseExpression(),this.advanceAfterBlockEnd(n.value),e.body=this.parseUntilBlocks(t,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),e.else_=this.parseUntilBlocks(t)),this.advanceAfterBlockEnd(),e},s.parseMacro=function(){var e=this.peekToken();this.skipSymbol("macro")||this.fail("expected macro");var t=this.parsePrimary(!0),n=this.parseSignature(),r=new i.Macro(e.lineno,e.colno,t,n);return this.advanceAfterBlockEnd(e.value),r.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),r},s.parseCall=function(){var e=this.peekToken();this.skipSymbol("call")||this.fail("expected call");var t=this.parseSignature(!0)||new i.NodeList,n=this.parsePrimary();this.advanceAfterBlockEnd(e.value);var r=this.parseUntilBlocks("endcall");this.advanceAfterBlockEnd();var o=new i.Symbol(e.lineno,e.colno,"caller"),a=new i.Caller(e.lineno,e.colno,o,t,r),l=n.args.children;return l[l.length-1]instanceof i.KeywordArgs||l.push(new i.KeywordArgs),l[l.length-1].addChild(new i.Pair(e.lineno,e.colno,o,a)),new i.Output(e.lineno,e.colno,[n])},s.parseWithContext=function(){var e=this.peekToken(),t=null;return this.skipSymbol("with")?t=!0:this.skipSymbol("without")&&(t=!1),null!==t&&(this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",e.lineno,e.colno)),t},s.parseImport=function(){var e=this.peekToken();this.skipSymbol("import")||this.fail("parseImport: expected import",e.lineno,e.colno);var t=this.parseExpression();this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',e.lineno,e.colno);var n=this.parseExpression(),r=this.parseWithContext(),o=new i.Import(e.lineno,e.colno,t,n,r);return this.advanceAfterBlockEnd(e.value),o},s.parseFrom=function(){var e=this.peekToken();this.skipSymbol("from")||this.fail("parseFrom: expected from");var t=this.parseExpression();this.skipSymbol("import")||this.fail("parseFrom: expected import",e.lineno,e.colno);for(var n,r=new i.NodeList;;){var a=this.peekToken();if(a.type===o.TOKEN_BLOCK_END){r.children.length||this.fail("parseFrom: Expected at least one import name",e.lineno,e.colno),"-"===a.value.charAt(0)&&(this.dropLeadingWhitespace=!0),this.nextToken();break}r.children.length>0&&!this.skip(o.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var l=this.parsePrimary();if("_"===l.value.charAt(0)&&this.fail("parseFrom: names starting with an underscore cannot be imported",l.lineno,l.colno),this.skipSymbol("as")){var s=this.parsePrimary();r.addChild(new i.Pair(l.lineno,l.colno,l,s))}else r.addChild(l);n=this.parseWithContext()}return new i.FromImport(e.lineno,e.colno,t,r,n)},s.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var t=new i.Block(e.lineno,e.colno);t.name=this.parsePrimary(),t.name instanceof i.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(t.name.value);var n=this.peekToken();return n||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(n.value),t},s.parseExtends=function(){var e="extends",t=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var n=new i.Extends(t.lineno,t.colno);return n.template=this.parseExpression(),this.advanceAfterBlockEnd(t.value),n},s.parseInclude=function(){var e="include",t=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var n=new i.Include(t.lineno,t.colno);return n.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(n.ignoreMissing=!0),this.advanceAfterBlockEnd(t.value),n},s.parseIf=function(){var e,t=this.peekToken();this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?e=new i.If(t.lineno,t.colno):this.skipSymbol("ifAsync")?e=new i.IfAsync(t.lineno,t.colno):this.fail("parseIf: expected if, elif, or elseif",t.lineno,t.colno),e.cond=this.parseExpression(),this.advanceAfterBlockEnd(t.value),e.body=this.parseUntilBlocks("elif","elseif","else","endif");var n=this.peekToken();switch(n&&n.value){case"elseif":case"elif":e.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),e.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":e.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return e},s.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var t,n=new i.Set(e.lineno,e.colno,[]);(t=this.parsePrimary())&&(n.targets.push(t),this.skip(o.TOKEN_COMMA)););return this.skipValue(o.TOKEN_OPERATOR,"=")?(n.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(o.TOKEN_BLOCK_END)?(n.body=new i.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),n.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),n},s.parseSwitch=function(){var e="switch",t="endswitch",n="case",r="default",o=this.peekToken();this.skipSymbol(e)||this.skipSymbol(n)||this.skipSymbol(r)||this.fail('parseSwitch: expected "switch," "case" or "default"',o.lineno,o.colno);var a=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(n,r,t);var l,s=this.peekToken(),c=[];do{this.skipSymbol(n);var u=this.parseExpression();this.advanceAfterBlockEnd(e);var d=this.parseUntilBlocks(n,r,t);c.push(new i.Case(s.line,s.col,u,d)),s=this.peekToken()}while(s&&s.value===n);switch(s.value){case r:this.advanceAfterBlockEnd(),l=this.parseUntilBlocks(t),this.advanceAfterBlockEnd();break;case t:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new i.Switch(o.lineno,o.colno,a,c,l)},s.parseStatement=function(){var e=this.peekToken();if(e.type!==o.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&-1!==l.indexOf(this.breakOnBlocks,e.value))return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var t=0;t<this.extensions.length;t++){var n=this.extensions[t];if(-1!==l.indexOf(n.tags||[],e.value))return n.parse(this,i,o)}this.fail("unknown block tag: "+e.value,e.lineno,e.colno)}},s.parseRaw=function(e){for(var t="end"+(e=e||"raw"),n=new RegExp("([\\s\\S]*?){%\\s*("+e+"|"+t+")\\s*(?=%})%}"),r=1,o="",a=null,l=this.advanceAfterBlockEnd();(a=this.tokens._extractRegex(n))&&r>0;){var s=a[0],c=a[1],u=a[2];u===e?r+=1:u===t&&(r-=1),0===r?(o+=c,this.tokens.backN(s.length-c.length)):o+=s}return new i.Output(l.lineno,l.colno,[new i.TemplateData(l.lineno,l.colno,o)])},s.parsePostfix=function(e){for(var t,n=this.peekToken();n;){if(n.type===o.TOKEN_LEFT_PAREN)e=new i.FunCall(n.lineno,n.colno,e,this.parseSignature());else if(n.type===o.TOKEN_LEFT_BRACKET)(t=this.parseAggregate()).children.length>1&&this.fail("invalid index"),e=new i.LookupVal(n.lineno,n.colno,e,t.children[0]);else{if(n.type!==o.TOKEN_OPERATOR||"."!==n.value)break;this.nextToken();var r=this.nextToken();r.type!==o.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+r.value,r.lineno,r.colno),t=new i.Literal(r.lineno,r.colno,r.value),e=new i.LookupVal(n.lineno,n.colno,e,t)}n=this.peekToken()}return e},s.parseExpression=function(){return this.parseInlineIf()},s.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var t=this.parseOr(),n=e;(e=new i.InlineIf(e.lineno,e.colno)).body=n,e.cond=t,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},s.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var t=this.parseAnd();e=new i.Or(e.lineno,e.colno,e,t)}return e},s.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var t=this.parseNot();e=new i.And(e.lineno,e.colno,e,t)}return e},s.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new i.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},s.parseIn=function(){for(var e=this.parseIs();;){var t=this.nextToken();if(!t)break;var n=t.type===o.TOKEN_SYMBOL&&"not"===t.value;if(n||this.pushToken(t),!this.skipSymbol("in")){n&&this.pushToken(t);break}var r=this.parseIs();e=new i.In(e.lineno,e.colno,e,r),n&&(e=new i.Not(e.lineno,e.colno,e))}return e},s.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var t=this.skipSymbol("not"),n=this.parseCompare();e=new i.Is(e.lineno,e.colno,e,n),t&&(e=new i.Not(e.lineno,e.colno,e))}return e},s.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],t=this.parseConcat(),n=[];;){var r=this.nextToken();if(!r)break;if(-1===e.indexOf(r.value)){this.pushToken(r);break}n.push(new i.CompareOperand(r.lineno,r.colno,this.parseConcat(),r.value))}return n.length?new i.Compare(n[0].lineno,n[0].colno,t,n):t},s.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(o.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new i.Concat(e.lineno,e.colno,e,t)}return e},s.parseAdd=function(){for(var e=this.parseSub();this.skipValue(o.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new i.Add(e.lineno,e.colno,e,t)}return e},s.parseSub=function(){for(var e=this.parseMul();this.skipValue(o.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new i.Sub(e.lineno,e.colno,e,t)}return e},s.parseMul=function(){for(var e=this.parseDiv();this.skipValue(o.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new i.Mul(e.lineno,e.colno,e,t)}return e},s.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(o.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new i.Div(e.lineno,e.colno,e,t)}return e},s.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(o.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new i.FloorDiv(e.lineno,e.colno,e,t)}return e},s.parseMod=function(){for(var e=this.parsePow();this.skipValue(o.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new i.Mod(e.lineno,e.colno,e,t)}return e},s.parsePow=function(){for(var e=this.parseUnary();this.skipValue(o.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new i.Pow(e.lineno,e.colno,e,t)}return e},s.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(o.TOKEN_OPERATOR,"-")?new i.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(o.TOKEN_OPERATOR,"+")?new i.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},s.parsePrimary=function(e){var t,n=this.nextToken(),r=null;if(n?n.type===o.TOKEN_STRING?t=n.value:n.type===o.TOKEN_INT?t=parseInt(n.value,10):n.type===o.TOKEN_FLOAT?t=parseFloat(n.value):n.type===o.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===o.TOKEN_NONE?t=null:n.type===o.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),void 0!==t?r=new i.Literal(n.lineno,n.colno,t):n.type===o.TOKEN_SYMBOL?r=new i.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),r=this.parseAggregate()),e||(r=this.parsePostfix(r)),r)return r;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},s.parseFilterName=function(){for(var e=this.expect(o.TOKEN_SYMBOL),t=e.value;this.skipValue(o.TOKEN_OPERATOR,".");)t+="."+this.expect(o.TOKEN_SYMBOL).value;return new i.Symbol(e.lineno,e.colno,t)},s.parseFilterArgs=function(e){return this.peekToken().type===o.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},s.parseFilter=function(e){for(;this.skip(o.TOKEN_PIPE);){var t=this.parseFilterName();e=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},s.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var r=new i.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var o=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[r].concat(n)));return new i.Output(t.lineno,t.colno,[o])},s.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case o.TOKEN_LEFT_PAREN:e=new i.Group(t.lineno,t.colno);break;case o.TOKEN_LEFT_BRACKET:e=new i.Array(t.lineno,t.colno);break;case o.TOKEN_LEFT_CURLY:e=new i.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===o.TOKEN_RIGHT_PAREN||n===o.TOKEN_RIGHT_BRACKET||n===o.TOKEN_RIGHT_CURLY){this.nextToken();break}if(e.children.length>0&&(this.skip(o.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",t.lineno,t.colno)),e instanceof i.Dict){var r=this.parsePrimary();this.skip(o.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",t.lineno,t.colno);var a=this.parseExpression();e.addChild(new i.Pair(r.lineno,r.colno,r,a))}else{var l=this.parseExpression();e.addChild(l)}}return e},s.parseSignature=function(e,t){var n=this.peekToken();if(!t&&n.type!==o.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",n.lineno,n.colno)}n.type===o.TOKEN_LEFT_PAREN&&(n=this.nextToken());for(var r=new i.NodeList(n.lineno,n.colno),a=new i.KeywordArgs(n.lineno,n.colno),l=!1;;){if(n=this.peekToken(),!t&&n.type===o.TOKEN_RIGHT_PAREN){this.nextToken();break}if(t&&n.type===o.TOKEN_BLOCK_END)break;if(l&&!this.skip(o.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",n.lineno,n.colno);else{var s=this.parseExpression();this.skipValue(o.TOKEN_OPERATOR,"=")?a.addChild(new i.Pair(s.lineno,s.colno,s,this.parseExpression())):r.addChild(s)}l=!0}return a.children.length&&r.addChild(a),r},s.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.breakOnBlocks=n;var o=this.parse();return this.breakOnBlocks=e,o},s.parseNodes=function(){for(var e,t=[];e=this.nextToken();)if(e.type===o.TOKEN_DATA){var n=e.value,r=this.peekToken(),a=r&&r.value;this.dropLeadingWhitespace&&(n=n.replace(/^\s*/,""),this.dropLeadingWhitespace=!1),r&&(r.type===o.TOKEN_BLOCK_START&&"-"===a.charAt(a.length-1)||r.type===o.TOKEN_VARIABLE_START&&"-"===a.charAt(this.tokens.tags.VARIABLE_START.length)||r.type===o.TOKEN_COMMENT&&"-"===a.charAt(this.tokens.tags.COMMENT_START.length))&&(n=n.replace(/\s*$/,"")),t.push(new i.Output(e.lineno,e.colno,[new i.TemplateData(e.lineno,e.colno,n)]))}else if(e.type===o.TOKEN_BLOCK_START){this.dropLeadingWhitespace=!1;var l=this.parseStatement();if(!l)break;t.push(l)}else if(e.type===o.TOKEN_VARIABLE_START){var s=this.parseExpression();this.dropLeadingWhitespace=!1,this.advanceAfterVariableEnd(),t.push(new i.Output(e.lineno,e.colno,[s]))}else e.type===o.TOKEN_COMMENT?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.COMMENT_END.length-1):this.fail("Unexpected token at top-level: "+e.type,e.lineno,e.colno);return t},s.parse=function(){return new i.NodeList(0,0,this.parseNodes())},s.parseAsRoot=function(){return new i.Root(0,0,this.parseNodes())},a}(a);e.exports={parse:function(e,t,n){var r=new s(o.lex(e,n));return void 0!==t&&(r.extensions=t),r.parseAsRoot()},Parser:s}},function(e,t,n){var r=n(0),o=" \n\t\r ",i="()[]{}%*-+~/#,:|.<>=!",a="string",l="whitespace",s="data",c="block-start",u="block-end",d="variable-start",p="variable-end",f="comment",h="left-paren",m="right-paren",g="left-bracket",b="right-bracket",v="left-curly",y="right-curly",w="operator",x="comma",S="colon",C="tilde",k="pipe",E="float",R="boolean",M="none",P="symbol",T="regex";function I(e,t,n,r){return{type:e,value:t,lineno:n,colno:r}}var O=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var O=this.current();if(this.isFinished())return null;if('"'===O||"'"===O)return I(a,this._parseString(O),t,n);if(e=this._extract(o))return I(l,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(O=this.current())?this.forward():"\r"===O&&(this.forward(),"\n"===(O=this.current())?this.forward():this.back())),I(u,e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,I(p,e,t,n);if("r"===O&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var D="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}D+=this.current(),this.forward()}for(var F=["g","i","m","y"],L="";!this.isFinished()&&-1!==F.indexOf(this.current());)L+=this.current(),this.forward();return I(T,{body:D,flags:L},t,n)}if(-1!==i.indexOf(O)){this.forward();var A,$=["==","===","!=","!==","<=",">=","//","**"],N=O+this.current();switch(-1!==r.indexOf($,N)&&(this.forward(),O=N,-1!==r.indexOf($,N+this.current())&&(O=N+this.current(),this.forward())),O){case"(":A=h;break;case")":A=m;break;case"[":A=g;break;case"]":A=b;break;case"{":A=v;break;case"}":A=y;break;case",":A=x;break;case":":A=S;break;case"~":A=C;break;case"|":A=k;break;default:A=w}return I(A,O,t,n)}if((e=this._extractUntil(o+i)).match(/^[-+]?[0-9]+$/)){if("."===this.current()){this.forward();var z=this._extract("0123456789");return I(E,e+"."+z,t,n)}return I("int",e,t,n)}if(e.match(/^(true|false)$/))return I(R,e,t,n);if("none"===e)return I(M,e,t,n);if("null"===e)return I(M,e,t,n);if(e)return I(P,e,t,n);throw new Error("Unexpected value while parsing: "+e)}var j,_=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,I(c,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,I(d,e,t,n);e="";var B=!1;for(this._matches(this.tags.COMMENT_START)&&(B=!0,e=this._extractString(this.tags.COMMENT_START));null!==(j=this._extractUntil(_));){if(e+=j,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!B){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=e.length){var H=e.slice(-this.colno);if(/^\s+$/.test(H)&&!(e=e.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!B)throw new Error("unexpected end of comment");e+=this._extractString(this.tags.COMMENT_END);break}e+=this.current(),this.forward()}if(null===j&&B)throw new Error("expected end of comment, got end of file");return I(B?f:s,e,t,n)},t._parseString=function(e){this.forward();for(var t="";!this.isFinished()&&this.current()!==e;){var n=this.current();if("\\"===n){switch(this.forward(),this.current()){case"n":t+="\n";break;case"t":t+="\t";break;case"r":t+="\r";break;default:t+=this.current()}this.forward()}else t+=n,this.forward()}return this.forward(),t},t._matches=function(e){return this.index+e.length>this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var r=this.current();this.forward();for(var o=t.indexOf(this.current());(e&&-1===o||!e&&-1!==o)&&!this.isFinished();)r+=this.current(),this.forward(),o=t.indexOf(this.current());return r}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t<e;t++)this.forward()},t.forward=function(){this.index++,"\n"===this.previous()?(this.lineno++,this.colno=0):this.colno++},t.backN=function(e){for(var t=0;t<e;t++)this.back()},t.back=function(){if(this.index--,"\n"===this.current()){this.lineno--;var e=this.src.lastIndexOf("\n",this.index-1);this.colno=-1===e?this.index:this.index-e}else this.colno--},t.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},t.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},t.previous=function(){return this.str.charAt(this.index-1)},e}();e.exports={lex:function(e,t){return new O(e,t)},TOKEN_STRING:a,TOKEN_WHITESPACE:l,TOKEN_DATA:s,TOKEN_BLOCK_START:c,TOKEN_BLOCK_END:u,TOKEN_VARIABLE_START:d,TOKEN_VARIABLE_END:p,TOKEN_COMMENT:f,TOKEN_LEFT_PAREN:h,TOKEN_RIGHT_PAREN:m,TOKEN_LEFT_BRACKET:g,TOKEN_RIGHT_BRACKET:b,TOKEN_LEFT_CURLY:v,TOKEN_RIGHT_CURLY:y,TOKEN_OPERATOR:w,TOKEN_COMMA:x,TOKEN_COLON:S,TOKEN_TILDE:C,TOKEN_PIPE:k,TOKEN_INT:"int",TOKEN_FLOAT:E,TOKEN_BOOLEAN:R,TOKEN_NONE:M,TOKEN_SYMBOL:P,TOKEN_SPECIAL:"special",TOKEN_REGEX:T}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(6),i=n(19).PrecompiledLoader,a=function(e){var t,n;function o(t,n){var r;return(r=e.call(this)||this).baseURL=t||".",n=n||{},r.useCache=!!n.useCache,r.async=!!n.async,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.resolve=function(e,t){throw new Error("relative templates not support in the browser yet")},i.getSource=function(e,t){var n,r=this,o=this.useCache;return this.fetch(this.baseURL+"/"+e,function(i,a){if(i)if(t)t(i.content);else{if(404!==i.status)throw i.content;n=null}else n={src:a,path:e,noCache:!o},r.emit("load",e,n),t&&t(null,n)}),n},i.fetch=function(e,t){if("undefined"==typeof window)throw new Error("WebLoader can only by used in a browser");var n=new XMLHttpRequest,r=!0;n.onreadystatechange=function(){4===n.readyState&&r&&(r=!1,0===n.status||200===n.status?t(null,n.responseText):t({status:n.status,content:n.responseText}))},e+=(-1===e.indexOf("?")?"?":"&")+"s="+(new Date).getTime(),n.open("GET",e,this.async),n.send()},o}(o);e.exports={WebLoader:a,PrecompiledLoader:i}},function(e,t,n){var r,o=n(0),i=n(7),a=i.Environment,l=i.Template,s=n(6),c=n(10),u=n(23),d=n(5),p=n(8),f=n(9),h=n(2),m=n(3),g=n(25);function b(e,t){var n;return t=t||{},o.isObject(e)&&(t=e,e=null),c.FileSystemLoader?n=new c.FileSystemLoader(e,{watch:t.watch,noCache:t.noCache}):c.WebLoader&&(n=new c.WebLoader(e,{useCache:t.web&&t.web.useCache,async:t.web&&t.web.async})),r=new a(n,t),t&&t.express&&r.express(t.express),r}e.exports={Environment:a,Template:l,Loader:s,FileSystemLoader:c.FileSystemLoader,NodeResolveLoader:c.NodeResolveLoader,PrecompiledLoader:c.PrecompiledLoader,WebLoader:c.WebLoader,compiler:d,parser:p,lexer:f,runtime:h,lib:o,nodes:m,installJinjaCompat:g,configure:b,reset:function(){r=void 0},compile:function(e,t,n,o){return r||b(),new l(e,t,n,o)},render:function(e,t,n){return r||b(),r.render(e,t,n)},renderString:function(e,t,n){return r||b(),r.renderString(e,t,n)},precompile:u?u.precompile:void 0,precompileString:u?u.precompileString:void 0}},function(e,t,n){var r=n(13),o=[],i=[],a=r.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function l(e){var t;(t=o.length?o.pop():new s).task=e,r(t)}function s(){this.task=null}e.exports=l,s.prototype.call=function(){try{this.task.call()}catch(e){l.onerror?l.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},function(e,t,n){(function(t){function n(e){o.length||r(),o[o.length]=e}e.exports=n;var r,o=[],i=0;function a(){for(;i<o.length;){var e=i;if(i+=1,o[e].call(),i>1024){for(var t=0,n=o.length-i;t<n;t++)o[t]=o[t+i];o.length-=i,i=0}}o.length=0,i=0}var l=void 0!==t?t:self,s=l.MutationObserver||l.WebKitMutationObserver;function c(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}r="function"==typeof s?function(e){var t=1,n=new s(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(a):c(a),n.requestFlush=r,n.makeRequestCallFromTimer=c}).call(t,n(14))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,o,i,a,l;o=function(){var e=Array.prototype.slice.call(arguments);"function"==typeof e[0]&&e[0].apply(null,e.splice(1))},i=function(e){"function"==typeof setImmediate?setImmediate(e):void 0!==pu&&pu.nextTick?pu.nextTick(e):setTimeout(e,0)},a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=function(e,t,n){var r=n?i:o;if(t=t||function(){},!a(e)){var l=new Error("First argument to waterfall must be an array of functions");return t(l)}if(!e.length)return t();var s=function(e){return function(n){if(n)t.apply(null,arguments),t=function(){};else{var o=Array.prototype.slice.call(arguments,1),i=e.next();i?o.push(s(i)):o.push(t),r(function(){e.apply(null,o)})}}};s(function(e){var t=function(n){var r=function(){return e.length&&e[n].apply(null,arguments),r.next()};return r.next=function(){return n<e.length-1?t(n+1):null},r};return t(0)}(e))()},void 0===(r=function(){return l}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}b(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,o,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,l;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,l=s,console&&console.warn&&console.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):g(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var c=s.length,u=g(s,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,o,i,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(3),o=n(0),i=0;function a(){return"hole_"+i++}function l(e,t){for(var n=null,r=0;r<e.length;r++){var o=t(e[r]);o!==e[r]&&(n||(n=e.slice()),n[r]=o)}return n||e}function s(e,t,n){if(!(e instanceof r.Node))return e;if(!n){var o=t(e);if(o&&o!==e)return o}if(e instanceof r.NodeList){var i=l(e.children,function(e){return s(e,t,n)});i!==e.children&&(e=new r[e.typename](e.lineno,e.colno,i))}else if(e instanceof r.CallExtension){var a=s(e.args,t,n),c=l(e.contentArgs,function(e){return s(e,t,n)});a===e.args&&c===e.contentArgs||(e=new r[e.typename](e.extName,e.prop,a,c))}else{var u=e.fields.map(function(t){return e[t]}),d=l(u,function(e){return s(e,t,n)});d!==u&&(e=new r[e.typename](e.lineno,e.colno),d.forEach(function(t,n){e[e.fields[n]]=t}))}return n&&t(e)||e}function c(e,t){return s(e,t,!0)}function u(e,t,n){var i=[],l=c(n?e[n]:e,function(e){var n;return e instanceof r.Block?e:((e instanceof r.Filter&&-1!==o.indexOf(t,e.name.value)||e instanceof r.CallExtensionAsync)&&(n=new r.Symbol(e.lineno,e.colno,a()),i.push(new r.FilterAsync(e.lineno,e.colno,e.name,e.args,n))),n)});return n?e[n]=l:e=l,i.length?(i.push(e),new r.NodeList(e.lineno,e.colno,i)):e}function d(e,t){return function(e){return c(e,function(e){if(e instanceof r.If||e instanceof r.For){var t=!1;if(s(e,function(e){if(e instanceof r.FilterAsync||e instanceof r.IfAsync||e instanceof r.AsyncEach||e instanceof r.AsyncAll||e instanceof r.CallExtensionAsync)return t=!0,e}),t){if(e instanceof r.If)return new r.IfAsync(e.lineno,e.colno,e.cond,e.body,e.else_);if(e instanceof r.For&&!(e instanceof r.AsyncAll))return new r.AsyncEach(e.lineno,e.colno,e.arr,e.name,e.body,e.else_)}}})}(function(e){return s(e,function(e){if(e instanceof r.Block){var t=!1,n=a();e.body=s(e.body,function(e){if(e instanceof r.FunCall&&"super"===e.name.value)return t=!0,new r.Symbol(e.lineno,e.colno,n)}),t&&e.body.children.unshift(new r.Super(0,0,e.name,new r.Symbol(0,0,n)))}})}(function(e,t){return c(e,function(e){return e instanceof r.Output?u(e,t):e instanceof r.Set?u(e,t,"value"):e instanceof r.For?u(e,t,"arr"):e instanceof r.If?u(e,t,"cond"):e instanceof r.CallExtension?u(e,t,"args"):void 0})}(e,t)))}e.exports={transform:function(e,t){return d(e,t||[])}}},function(e,t,n){var r=n(0),o=n(2);function i(e,t){return null==e||!1===e?t:e}function a(e){return e!=e}function l(e){var t=(e=i(e,"")).toLowerCase();return o.copySafeness(e,t.charAt(0).toUpperCase()+t.slice(1))}function s(e){if(r.isString(e))return e.split("");if(r.isObject(e))return r._entries(e||{}).map(function(e){return{key:e[0],value:e[1]}});if(r.isArray(e))return e;throw new r.TemplateError("list filter: type not iterable")}function c(e){return function(t,n,o){void 0===n&&(n="truthy");var i=this,a=i.env.getTest(n);return r.toArray(t).filter(function(t){return a.call(i,t,o)===e})}}function u(e){return o.copySafeness(e,e.replace(/^\s*|\s*$/g,""))}(t=e.exports={}).abs=Math.abs,t.batch=function(e,t,n){var r,o=[],i=[];for(r=0;r<e.length;r++)r%t===0&&i.length&&(o.push(i),i=[]),i.push(e[r]);if(i.length){if(n)for(r=i.length;r<t;r++)i.push(n);o.push(i)}return o},t.capitalize=l,t.center=function(e,t){if(t=t||80,(e=i(e,"")).length>=t)return e;var n=t-e.length,a=r.repeat(" ",n/2-n%2),l=r.repeat(" ",n/2);return o.copySafeness(e,a+e+l)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,t,n){if(!r.isObject(e))throw new r.TemplateError("dictsort filter: val must be an object");var o,i=[];for(var a in e)i.push([a,e[a]]);if(void 0===n||"key"===n)o=0;else{if("value"!==n)throw new r.TemplateError("dictsort filter: You can only sort by either key or value");o=1}return i.sort(function(e,n){var i=e[o],a=n[o];return t||(r.isString(i)&&(i=i.toUpperCase()),r.isString(a)&&(a=a.toUpperCase())),i>a?1:i===a?0:-1}),i},t.dump=function(e,t){return JSON.stringify(e,null,t)},t.escape=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(r.escape(e.toString())))},t.safe=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(e.toString()))},t.first=function(e){return e[0]},t.forceescape=function(e){return e=null==e?"":e,o.markSafe(r.escape(e.toString()))},t.groupby=function(e,t){return r.groupBy(e,t,this.env.opts.throwOnUndefined)},t.indent=function(e,t,n){if(""===(e=i(e,"")))return"";t=t||4;var a=e.split("\n"),l=r.repeat(" ",t),s=a.map(function(e,t){return 0!==t||n?""+l+e:e}).join("\n");return o.copySafeness(e,s)},t.join=function(e,t,n){return t=t||"",n&&(e=r.map(e,function(e){return e[n]})),e.join(t)},t.last=function(e){return e[e.length-1]},t.length=function(e){var t=i(e,"");return void 0!==t?"function"==typeof Map&&t instanceof Map||"function"==typeof Set&&t instanceof Set?t.size:!r.isObject(t)||t instanceof o.SafeString?t.length:r.keys(t).length:0},t.list=s,t.lower=function(e){return(e=i(e,"")).toLowerCase()},t.nl2br=function(e){return null==e?"":o.copySafeness(e,e.replace(/\r\n|\n/g,"<br />\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.reject=c(!1),t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.select=c(!0),t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,r){var i=e;if(t instanceof RegExp)return e.replace(t,n);void 0===r&&(r=-1);var a="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof o.SafeString))return e;if(""===t)return a=n+e.split("").join(n)+n,o.copySafeness(e,a);var l=e.indexOf(t);if(0===r||-1===l)return e;for(var s=0,c=0;l>-1&&(-1===r||c<r);)a+=e.substring(s,l)+n,s=l+t.length,c++,l=e.indexOf(t,s);return s<e.length&&(a+=e.substring(s)),o.copySafeness(i,a)},t.reverse=function(e){var t;return(t=r.isString(e)?s(e):r.map(e,function(e){return e})).reverse(),r.isString(e)?o.copySafeness(e,t.join("")):t},t.round=function(e,t,n){t=t||0;var r=Math.pow(10,t);return("ceil"===n?Math.ceil:"floor"===n?Math.floor:Math.round)(e*r)/r},t.slice=function(e,t,n){for(var r=Math.floor(e.length/t),o=e.length%t,i=[],a=0,l=0;l<t;l++){var s=a+l*r;l<o&&a++;var c=a+(l+1)*r,u=e.slice(s,c);n&&l>=o&&u.push(n),i.push(u)}return i},t.sum=function(e,t,n){return void 0===n&&(n=0),t&&(e=r.map(e,function(e){return e[t]})),n+e.reduce(function(e,t){return e+t},0)},t.sort=o.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(e,t,n,o){var i=this,a=r.map(e,function(e){return e}),l=r.getAttrGetter(o);return a.sort(function(e,a){var s=o?l(e):e,c=o?l(a):a;if(i.env.opts.throwOnUndefined&&o&&(void 0===s||void 0===c))throw new TypeError('sort: attribute "'+o+'" resolved to undefined');return!n&&r.isString(s)&&r.isString(c)&&(s=s.toLowerCase(),c=c.toLowerCase()),s<c?t?1:-1:s>c?t?-1:1:0}),a}),t.string=function(e){return o.copySafeness(e,e)},t.striptags=function(e,t){var n=u((e=i(e,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),r="";return r=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),o.copySafeness(e,r)},t.title=function(e){var t=(e=i(e,"")).split(" ").map(function(e){return l(e)});return o.copySafeness(e,t.join(" "))},t.trim=u,t.truncate=function(e,t,n,r){var a=e;if(t=t||255,(e=i(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var l=e.lastIndexOf(" ",t);-1===l&&(l=t),e=e.substring(0,l)}return e+=null!=r?r:"...",o.copySafeness(a,e)},t.upper=function(e){return(e=i(e,"")).toUpperCase()},t.urlencode=function(e){var t=encodeURIComponent;return r.isString(e)?t(e):(r.isArray(e)?e:r._entries(e)).map(function(e){var n=e[0],r=e[1];return t(n)+"="+t(r)}).join("&")};var d=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,p=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,h=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,t,n){a(t)&&(t=1/0);var r=!0===n?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var n=e.match(d),o=n?n[1]:e,i=o.substr(0,t);return f.test(o)?'<a href="'+o+'"'+r+">"+i+"</a>":h.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":p.test(o)?'<a href="mailto:'+o+'">'+o+"</a>":m.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":e}).join("")},t.wordcount=function(e){var t=(e=i(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return a(n)?t:n};var g=o.makeMacro(["value","default","base"],[],function(e,t,n){void 0===n&&(n=10);var r=parseInt(e,n);return a(r)?t:r});t.int=g,t.d=t.default,t.e=t.escape},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=function(e){var t,n;function o(t){var n;return(n=e.call(this)||this).precompiled=t||{},n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},o}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){var r=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t===0},t.escaped=function(e){return e instanceof r},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return e>=t},t.greaterthan=function(e,t){return e>t},t.gt=t.greaterthan,t.le=function(e,t){return e<=t},t.lessthan=function(e,t){return e<t},t.lt=t.lessthan,t.lower=function(e){return e.toLowerCase()===e},t.ne=function(e,t){return e!==t},t.null=function(e){return null===e},t.number=function(e){return"number"==typeof e},t.odd=function(e){return e%2==1},t.string=function(e){return"string"==typeof e},t.truthy=function(e){return!!e},t.undefined=function(e){return void 0===e},t.upper=function(e){return e.toUpperCase()===e},t.iterable=function(e){return"undefined"!=typeof Symbol?!!e[Symbol.iterator]:Array.isArray(e)||"string"==typeof e},t.mapping=function(e){var t=null!=e&&"object"==typeof e&&!Array.isArray(e);return Set?t&&!(e instanceof Set):t}},function(e,t,n){e.exports=function(){return{range:function(e,t,n){void 0===t?(t=e,e=0,n=1):n||(n=1);var r=[];if(n>0)for(var o=e;o<t;o+=n)r.push(o);else for(var i=e;i>t;i+=n)r.push(i);return r},cycler:function(){return function(e){var t=-1;return{current:null,reset:function(){t=-1,this.current=null},next:function(){return++t>=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(e){e=e||",";var t=!0;return function(){var n=t?"":e;return t=!1,n}}(e)}}}},function(e,t,n){var r=n(4);e.exports=function(e,t){function n(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=r.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return n.prototype.render=function(t,n){e.render(this.name,t,n)},t.set("view",n),t.set("nunjucksEnv",e),e}},function(e,t,n){var r=n(4),o=n(4),i=n(0)._prettifyError,a=n(5),l=n(7).Environment,s=n(24);function c(e,t){return!!Array.isArray(t)&&t.some(function(t){return e.match(t)})}function u(e,t){(t=t||{}).isString=!0;var n=t.env||new l([]),r=t.wrapper||s;if(!t.name)throw new Error('the "name" option is required when compiling a string');return r([d(e,t.name,n)],t)}function d(e,t,n){var r,o=(n=n||new l([])).asyncFilters,s=n.extensionsList;t=t.replace(/\\/g,"/");try{r=a.compile(e,o,s,t,n.opts)}catch(e){throw i(t,!1,e)}return{name:t,template:r}}e.exports={precompile:function(e,t){var n=(t=t||{}).env||new l([]),i=t.wrapper||s;if(t.isString)return u(e,t);var a=r.existsSync(e)&&r.statSync(e),p=[],f=[];if(a.isFile())p.push(d(r.readFileSync(e,"utf-8"),t.name||e,n));else if(a.isDirectory()){!function n(i){r.readdirSync(i).forEach(function(a){var l=o.join(i,a),s=l.substr(o.join(e,"/").length),u=r.statSync(l);u&&u.isDirectory()?c(s+="/",t.exclude)||n(l):c(s,t.include)&&f.push(l)})}(e);for(var h=0;h<f.length;h++){var m=f[h].replace(o.join(e,"/"),"");try{p.push(d(r.readFileSync(f[h],"utf-8"),m,n))}catch(e){if(!t.force)throw e;console.error(e)}}}return i(p,t)},precompileString:u}},function(e,t,n){e.exports=function(e,t){var n="";t=t||{};for(var r=0;r<e.length;r++){var o=JSON.stringify(e[r].name);n+="(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["+o+"] = (function() {\n"+e[r].template+"\n})();\n",t.asFunction&&(n+="return function(ctx, cb) { return nunjucks.render("+o+", ctx, cb); }\n"),n+="})();\n"}return n}},function(e,t,n){e.exports=function(){var e,t,n=this.runtime,r=this.lib,o=this.compiler.Compiler,i=this.parser.Parser,a=this.nodes,l=this.lexer,s=n.contextOrFrameLookup,c=n.memberLookup;function u(e){return{index:e.index,lineno:e.lineno,colno:e.colno}}if(o&&(e=o.prototype.assertType),i&&(t=i.prototype.parseAggregate),n.contextOrFrameLookup=function(e,t,n){var r=s.apply(this,arguments);if(void 0!==r)return r;switch(n){case"True":return!0;case"False":return!1;case"None":return null;default:return}},a&&o&&i){var d=a.Node.extend("Slice",{fields:["start","stop","step"],init:function(e,t,n,r,o){n=n||new a.Literal(e,t,null),r=r||new a.Literal(e,t,null),o=o||new a.Literal(e,t,1),this.parent(e,t,n,r,o)}});o.prototype.assertType=function(t){t instanceof d||e.apply(this,arguments)},o.prototype.compileSlice=function(e,t){this._emit("("),this._compileExpression(e.start,t),this._emit("),("),this._compileExpression(e.stop,t),this._emit("),("),this._compileExpression(e.step,t),this._emit(")")},i.prototype.parseAggregate=function(){var e=this,n=u(this.tokens);n.colno--,n.index--;try{return t.apply(this)}catch(t){var o=u(this.tokens),i=function(){return r._assign(e.tokens,o),t};r._assign(this.tokens,n),this.peeked=!1;var s=this.peekToken();if(s.type!==l.TOKEN_LEFT_BRACKET)throw i();this.nextToken();for(var c=new d(s.lineno,s.colno),p=!1,f=0;f<=c.fields.length&&!this.skip(l.TOKEN_RIGHT_BRACKET);f++){if(f===c.fields.length){if(!p)break;this.fail("parseSlice: too many slice components",s.lineno,s.colno)}this.skip(l.TOKEN_COLON)?p=!0:(c[c.fields[f]]=this.parseExpression(),p=this.skip(l.TOKEN_COLON)||p)}if(!p)throw i();return new a.Array(s.lineno,s.colno,[c])}}}function p(e,t,r,o){e=e||[],null===t&&(t=o<0?e.length-1:0),null===r?r=o<0?-1:e.length:r<0&&(r+=e.length),t<0&&(t+=e.length);for(var i=[],a=t;!(a<0||a>e.length||o>0&&a>=r||o<0&&a<=r);a+=o)i.push(n.memberLookup(e,a));return i}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h={pop:function(e){if(void 0===e)return this.pop();if(e>=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return this.splice(t,1);throw new Error("ValueError")},count:function(e){for(var t=0,n=0;n<this.length;n++)this[n]===e&&t++;return t},index:function(e){var t;if(-1===(t=this.indexOf(e)))throw new Error("ValueError");return t},find:function(e){return this.indexOf(e)},insert:function(e,t){return this.splice(e,0,t)}},m={items:function(){return r._entries(this)},values:function(){return r._values(this)},keys:function(){return r.keys(this)},get:function(e,t){var n=this[e];return void 0===n&&(n=t),n},has_key:function(e){return f(this,e)},pop:function(e,t){var n=this[e];if(void 0===n&&void 0!==t)n=t;else{if(void 0===n)throw new Error("KeyError");delete this[e]}return n},popitem:function(){var e=r.keys(this);if(!e.length)throw new Error("KeyError");var t=e[0],n=this[t];return delete this[t],[t,n]},setdefault:function(e,t){return void 0===t&&(t=null),e in this||(this[e]=t),this[e]},update:function(e){return r._assign(this,e),null}};return m.iteritems=m.items,m.itervalues=m.values,m.iterkeys=m.keys,n.memberLookup=function(e,t,n){return 4===arguments.length?p.apply(this,arguments):(e=e||{},r.isArray(e)&&f(h,t)?h[t].bind(e):r.isObject(e)&&f(m,t)?m[t].bind(e):c.apply(this,arguments))},function(){n.contextOrFrameLookup=s,n.memberLookup=c,o&&(o.prototype.assertType=e),i&&(i.prototype.parseAggregate=t)}}}])},e.exports=t()}(fu)),fu.exports),mu=t(hu);const gu={GoogleChart:function({chart:e,source:t,view:n,report:r,schema:o,dashboard:i,query:a}){const[l,u]=c.useState([]),d=_c(),[p,f]=c.useState([]);s.useEffect(()=>{(async()=>{const e=await jc.getDateRanges();f(e)})()},[]);const h=s.useMemo(()=>{const e="YYYY-MM-dd",t=a?.date_range?.name,n=p.find(e=>e.name===t);if(!n)return e;return Bc[n?.granularity]||e},[p,a]);return c.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];i.push(function(e,t){const n=[...t.doc.metrics,...t.doc.dimensions],r=e.columns.reduce((e,t)=>{const r=n.find(e=>e.name===t.name)||t;return e.push(r.title||r.name),e},[]);return r}(n,o));const a=fl(n,o);t?.forEach(e=>{const t=a(e);i.push(t)}),t?.length?u(i):u()},[e,t,n,r,o]),l?c.createElement("div",{style:{}},c.createElement(al,Xr({width:e?.doc.size?.width||"100%",chartType:e?.doc.chart?.type,data:l,options:(t=>{const n=["#468682","#ff686b","#6c757d","#FFD700","#073b4c"];if("Table"===e?.doc.chart?.type)return{...e?.doc.chart?.options,cssClassNames:d};if("AreaChart"===e?.doc.chart?.type){const r=e?.doc.chart?.options?.hAxis||{},o={...{ticks:t.slice(1).map(e=>e[0]),format:h},...r};return{...e?.doc.chart?.options,hAxis:o,focusTarget:"category",colors:n}}return{...e?.doc.chart?.options,colors:n}})(l)},e?.doc.chart?.props))):c.createElement("div",null)},LabelChart:function({chart:e,source:t,view:n,report:r,schema:o}){const[i,a]=c.useState([]),[l,s]=c.useState(),[u,d]=c.useState();return c.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];const l=fl(n,o);t.forEach(e=>i.push(l(e))),a(i);const c=e?.doc?.chart?.options||{},u=c?.index||0;if(i.length>0&&s(i[0][u]),c.subText?.format){mu.configure({autoescape:!1});const e=fl(n,o,"object")(t[0]),r=mu.renderString(c.subText?.format,e);d(r)}},[e,t,n,r,o]),c.createElement("div",{style:{display:"flex",justifyContent:"center",alignContent:"center",height:"100%",flexDirection:"column"}},c.createElement(si,{variant:"h6"},l?.f||l),c.createElement(si,{variant:"caption"},u))}};function bu(e,t){return void 0!==gu[e]?c.createElement(gu[e],t):c.createElement(Wa,t)}var vu=new Map,yu=new WeakMap,wu=0;function xu(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(n=e.root,n?(yu.has(n)||(wu+=1,yu.set(n,wu.toString())),yu.get(n)):"0"):e[t]}`;var n}).toString()}function Su(e,t,n={},r=undefined){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){const t=xu(e);let n=vu.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(t=>{t.forEach(t=>{var n;const i=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach(e=>{e(i,t)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},vu.set(t,n)}return n}(n),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),vu.delete(o))}}const Cu={black:"#000",white:"#fff"},ku="#e57373",Eu="#ef5350",Ru="#f44336",Mu="#d32f2f",Pu="#c62828",Tu="#f3e5f5",Iu="#ce93d8",Ou="#ba68c8",Du="#ab47bc",Fu="#9c27b0",Lu="#7b1fa2",Au="#e3f2fd",$u="#90caf9",Nu="#42a5f5",zu="#1976d2",ju="#1565c0",_u="#4fc3f7",Bu="#29b6f6",Hu="#03a9f4",Vu="#0288d1",Wu="#01579b",Uu="#81c784",Gu="#66bb6a",Ku="#4caf50",qu="#388e3c",Yu="#2e7d32",Xu="#1b5e20",Qu="#ffb74d",Zu="#ffa726",Ju="#ff9800",ed="#f57c00",td="#e65100",nd={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 rd(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var od="$$material";var id=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ad="-ms-",ld="-moz-",sd="-webkit-",cd="comm",ud="rule",dd="decl",pd="@keyframes",fd=Math.abs,hd=String.fromCharCode,md=Object.assign;function gd(e){return e.trim()}function bd(e,t,n){return e.replace(t,n)}function vd(e,t){return e.indexOf(t)}function yd(e,t){return 0|e.charCodeAt(t)}function wd(e,t,n){return e.slice(t,n)}function xd(e){return e.length}function Sd(e){return e.length}function Cd(e,t){return t.push(e),e}var kd=1,Ed=1,Rd=0,Md=0,Pd=0,Td="";function Id(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:kd,column:Ed,length:a,return:""}}function Od(e,t){return md(Id("",null,null,"",null,null,0),e,{length:-e.length},t)}function Dd(){return Pd=Md>0?yd(Td,--Md):0,Ed--,10===Pd&&(Ed=1,kd--),Pd}function Fd(){return Pd=Md<Rd?yd(Td,Md++):0,Ed++,10===Pd&&(Ed=1,kd++),Pd}function Ld(){return yd(Td,Md)}function Ad(){return Md}function $d(e,t){return wd(Td,e,t)}function Nd(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 zd(e){return kd=Ed=1,Rd=xd(Td=e),Md=0,[]}function jd(e){return Td="",e}function _d(e){return gd($d(Md-1,Vd(91===e?e+2:40===e?e+1:e)))}function Bd(e){for(;(Pd=Ld())&&Pd<33;)Fd();return Nd(e)>2||Nd(Pd)>3?"":" "}function Hd(e,t){for(;--t&&Fd()&&!(Pd<48||Pd>102||Pd>57&&Pd<65||Pd>70&&Pd<97););return $d(e,Ad()+(t<6&&32==Ld()&&32==Fd()))}function Vd(e){for(;Fd();)switch(Pd){case e:return Md;case 34:case 39:34!==e&&39!==e&&Vd(Pd);break;case 40:41===e&&Vd(e);break;case 92:Fd()}return Md}function Wd(e,t){for(;Fd()&&e+Pd!==57&&(e+Pd!==84||47!==Ld()););return"/*"+$d(t,Md-1)+"*"+hd(47===e?e:Fd())}function Ud(e){for(;!Nd(Ld());)Fd();return $d(e,Md)}function Gd(e){return jd(Kd("",null,null,null,[""],e=zd(e),0,[0],e))}function Kd(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",w=o,x=i,S=r,C=y;g;)switch(h=v,v=Fd()){case 40:if(108!=h&&58==yd(C,d-1)){-1!=vd(C+=bd(_d(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=_d(v);break;case 9:case 10:case 13:case 32:C+=Bd(h);break;case 92:C+=Hd(Ad()-1,7);continue;case 47:switch(Ld()){case 42:case 47:Cd(Yd(Wd(Fd(),Ad()),t,n),s);break;default:C+="/"}break;case 123*m:l[c++]=xd(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=bd(C,/\f/g,"")),f>0&&xd(C)-d&&Cd(f>32?Xd(C+";",r,n,d-1):Xd(bd(C," ","")+";",r,n,d-2),s);break;case 59:C+=";";default:if(Cd(S=qd(C,t,n,c,u,o,l,y,w=[],x=[],d),i),123===v)if(0===u)Kd(C,t,S,S,w,i,d,l,x);else switch(99===p&&110===yd(C,3)?100:p){case 100:case 108:case 109:case 115:Kd(e,S,S,r&&Cd(qd(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:Kd(C,S,S,S,[""],x,0,l,x)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+xd(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Dd())continue;switch(C+=hd(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(xd(C)-1)*b,b=1;break;case 64:45===Ld()&&(C+=_d(Fd())),p=Ld(),u=d=xd(y=C+=Ud(Ad())),v++;break;case 45:45===h&&2==xd(C)&&(m=0)}}return i}function qd(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Sd(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=wd(e,d+1,d=fd(m=a[h])),y=e;b<f;++b)(y=gd(m>0?p[b]+" "+v:bd(v,/&\f/g,p[b])))&&(s[g++]=y);return Id(e,t,n,0===o?ud:l,s,c,u)}function Yd(e,t,n){return Id(e,t,n,cd,hd(Pd),wd(e,2,-2),0)}function Xd(e,t,n,r){return Id(e,t,n,dd,wd(e,0,r),wd(e,r+1,-1),r)}function Qd(e,t){for(var n="",r=Sd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Zd(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case dd:return e.return=e.return||e.value;case cd:return"";case pd:return e.return=e.value+"{"+Qd(e.children,r)+"}";case ud:e.value=e.props.join(",")}return xd(n=Qd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jd(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ep=function(e,t,n){for(var r=0,o=0;r=o,o=Ld(),38===r&&12===o&&(t[n]=1),!Nd(o);)Fd();return $d(e,Md)},tp=function(e,t){return jd(function(e,t){var n=-1,r=44;do{switch(Nd(r)){case 0:38===r&&12===Ld()&&(t[n]=1),e[n]+=ep(Md-1,t,n);break;case 2:e[n]+=_d(r);break;case 4:if(44===r){e[++n]=58===Ld()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hd(r)}}while(r=Fd());return e}(zd(e),t))},np=new WeakMap,rp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||np.get(n))&&!r){np.set(e,!0);for(var o=[],i=tp(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},op=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ip(e,t){switch(function(e,t){return 45^yd(e,0)?(((t<<2^yd(e,0))<<2^yd(e,1))<<2^yd(e,2))<<2^yd(e,3):0}(e,t)){case 5103:return sd+"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 sd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return sd+e+ld+e+ad+e+e;case 6828:case 4268:return sd+e+ad+e+e;case 6165:return sd+e+ad+"flex-"+e+e;case 5187:return sd+e+bd(e,/(\w+).+(:[^]+)/,sd+"box-$1$2"+ad+"flex-$1$2")+e;case 5443:return sd+e+ad+"flex-item-"+bd(e,/flex-|-self/,"")+e;case 4675:return sd+e+ad+"flex-line-pack"+bd(e,/align-content|flex-|-self/,"")+e;case 5548:return sd+e+ad+bd(e,"shrink","negative")+e;case 5292:return sd+e+ad+bd(e,"basis","preferred-size")+e;case 6060:return sd+"box-"+bd(e,"-grow","")+sd+e+ad+bd(e,"grow","positive")+e;case 4554:return sd+bd(e,/([^-])(transform)/g,"$1"+sd+"$2")+e;case 6187:return bd(bd(bd(e,/(zoom-|grab)/,sd+"$1"),/(image-set)/,sd+"$1"),e,"")+e;case 5495:case 3959:return bd(e,/(image-set\([^]*)/,sd+"$1$`$1");case 4968:return bd(bd(e,/(.+:)(flex-)?(.*)/,sd+"box-pack:$3"+ad+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+sd+e+e;case 4095:case 3583:case 4068:case 2532:return bd(e,/(.+)-inline(.+)/,sd+"$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(xd(e)-1-t>6)switch(yd(e,t+1)){case 109:if(45!==yd(e,t+4))break;case 102:return bd(e,/(.+:)(.+)-([^]+)/,"$1"+sd+"$2-$3$1"+ld+(108==yd(e,t+3)?"$3":"$2-$3"))+e;case 115:return~vd(e,"stretch")?ip(bd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yd(e,t+1))break;case 6444:switch(yd(e,xd(e)-3-(~vd(e,"!important")&&10))){case 107:return bd(e,":",":"+sd)+e;case 101:return bd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sd+(45===yd(e,14)?"inline-":"")+"box$3$1"+sd+"$2$3$1"+ad+"$2box$3")+e}break;case 5936:switch(yd(e,t+11)){case 114:return sd+e+ad+bd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sd+e+ad+bd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sd+e+ad+bd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sd+e+ad+e+e}return e}var ap=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case dd:e.return=ip(e.value,e.length);break;case pd:return Qd([Od(e,{value:bd(e.value,"@","@"+sd)})],r);case ud:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qd([Od(e,{props:[bd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Qd([Od(e,{props:[bd(t,/:(plac\w+)/,":"+sd+"input-$1")]}),Od(e,{props:[bd(t,/:(plac\w+)/,":-moz-$1")]}),Od(e,{props:[bd(t,/:(plac\w+)/,ad+"input-$1")]})],r)}return""})}}],lp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||ap,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)});var s,c,u=[Zd,(c=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Sd(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}([rp,op].concat(i,u));o=function(e,t,n,r){s=n,function(e){Qd(Gd(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new id({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(l),p};function sp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var cp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},up=function(e,t,n){cp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var dp={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},pp=/[A-Z]|^ms/g,fp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hp=function(e){return 45===e.charCodeAt(1)},mp=function(e){return null!=e&&"boolean"!=typeof e},gp=Jd(function(e){return hp(e)?e:e.replace(pp,"-$&").toLowerCase()}),bp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fp,function(e,t,n){return yp={name:t,styles:n,next:yp},t})}return 1===dp[e]||hp(e)||"number"!=typeof t||0===t?t:t+"px"};function vp(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return yp={name:o.name,styles:o.styles,next:yp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)yp={name:a.name,styles:a.styles,next:yp},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=vp(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":mp(l)&&(r+=gp(i)+":"+bp(i,l)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=vp(e,t,a);switch(i){case"animation":case"animationName":r+=gp(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)mp(a[c])&&(r+=gp(i)+":"+bp(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=yp,s=n(e);return yp=l,vp(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var yp,wp=/label:\s*([^\s;{]+)\s*(;|$)/g;function xp(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";yp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=vp(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=vp(n,t,e[a]),r)o+=i[a]}wp.lastIndex=0;for(var l,s="";null!==(l=wp.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:yp}}var Sp=!!u.useInsertionEffect&&u.useInsertionEffect,Cp=Sp||function(e){return e()},kp=Sp||s.useLayoutEffect,Ep=s.createContext("undefined"!=typeof HTMLElement?lp({key:"css"}):null);Ep.Provider;var Rp,Mp,Pp=function(e){return s.forwardRef(function(t,n){var r=s.useContext(Ep);return e(t,r,n)})},Tp=s.createContext({}),Ip={}.hasOwnProperty,Op="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cp(t,n,r),Cp(function(){return up(t,n,r)}),null},Fp=Pp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Op],i=[r],a="";"string"==typeof e.className?a=sp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=xp(i,void 0,s.useContext(Tp));a+=t.key+"-"+l.name;var c={};for(var u in e)Ip.call(e,u)&&"css"!==u&&u!==Op&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),s.createElement(s.Fragment,null,s.createElement(Dp,{cache:t,serialized:l,isStringTag:"string"==typeof o}),s.createElement(o,c))}),Lp=Fp,Ap=function(e,t){var n=arguments;if(null==t||!Ip.call(t,"css"))return s.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Lp,o[1]=function(e,t){var n={};for(var r in t)Ip.call(t,r)&&(n[r]=t[r]);return n[Op]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return s.createElement.apply(null,o)};Rp=Ap||(Ap={}),Mp||(Mp=Rp.JSX||(Rp.JSX={}));var $p=Pp(function(e,t){var n=xp([e.styles],void 0,s.useContext(Tp)),r=s.useRef();return kp(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kp(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&up(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xp(t)}function zp(){var e=Np.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 jp=/^((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)-.*))$/,_p=Jd(function(e){return jp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Bp=function(e){return"theme"!==e},Hp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?_p:Bp},Vp=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return cp(t,n,r),Cp(function(){return up(t,n,r)}),null},Up=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Vp(t,n,i),c=l||Hp(a),u=!c("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var m=d.length,g=1;g<m;g++)p.push(d[g],h[g])}var b=Pp(function(e,t,n){var r=u&&e.as||a,i="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=s.useContext(Tp)}"string"==typeof e.className?i=sp(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=xp(p.concat(d),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===l?Hp(r):c,b={};for(var v in e)u&&"as"===v||g(v)&&(b[v]=e[v]);return b.className=i,n&&(b.ref=n),s.createElement(s.Fragment,null,s.createElement(Wp,{cache:t,serialized:m,isStringTag:"string"==typeof r}),s.createElement(r,b))});return b.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=p,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(t,r){return e(t,f({},n,r,{shouldForwardProp:Vp(b,r,!0)})).apply(void 0,p)},b}}.bind(null);["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"].forEach(function(e){Up[e]=Up(e)});var Gp,Kp,qp={exports:{}},Yp={};var Xp=(Kp||(Kp=1,qp.exports=function(){if(Gp)return Yp;Gp=1;var e=l(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!i.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:o.current}}return Yp.Fragment=n,Yp.jsx=a,Yp.jsxs=a,Yp}()),qp.exports);function Qp(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Xp.jsx($p,{styles:r})}
|
|
25
|
-
/**
|
|
26
|
-
* @mui/styled-engine v7.3.6
|
|
27
|
-
*
|
|
28
|
-
* @license MIT
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/function Zp(e,t){return Up(e,t)}const Jp=[];function ef(e){return Jp[0]=e,xp(Jp)}var tf,nf,rf={exports:{}},of={};function af(){if(tf)return of;tf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case s:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case l:case d:case u:case i:return f;default:return h}}case t:return h}}}return of.ContextConsumer=i,of.ContextProvider=a,of.Element=e,of.ForwardRef=l,of.Fragment=n,of.Lazy=d,of.Memo=u,of.Portal=t,of.Profiler=o,of.StrictMode=r,of.Suspense=s,of.SuspenseList=c,of.isContextConsumer=function(e){return h(e)===i},of.isContextProvider=function(e){return h(e)===a},of.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},of.isForwardRef=function(e){return h(e)===l},of.isFragment=function(e){return h(e)===n},of.isLazy=function(e){return h(e)===d},of.isMemo=function(e){return h(e)===u},of.isPortal=function(e){return h(e)===t},of.isProfiler=function(e){return h(e)===o},of.isStrictMode=function(e){return h(e)===r},of.isSuspense=function(e){return h(e)===s},of.isSuspenseList=function(e){return h(e)===c},of.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===f||void 0!==e.getModuleId)},of.typeOf=h,of}function lf(){return nf||(nf=1,rf.exports=af()),rf.exports}var sf=lf();function cf(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function uf(e){if(s.isValidElement(e)||sf.isValidElementType(e)||!cf(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=uf(e[n])}),t}function df(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return cf(e)&&cf(t)&&Object.keys(t).forEach(o=>{s.isValidElement(t[o])||sf.isValidElementType(t[o])?r[o]=t[o]:cf(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cf(e[o])?r[o]=df(e[o],t[o],n):n.clone?r[o]=cf(t[o])?uf(t[o]):t[o]:r[o]=t[o]}),r}function pf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function ff(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const hf={borderRadius:4};function mf(e,t){return t?df(e,t,{clone:!1}):e}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},bf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gf[e]}px)`},vf={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:gf[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||bf;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||bf;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(l=i)||l.startsWith("@")&&(a.some(e=>l.startsWith(`@${e}`))||l.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:vf,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||gf).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,l;return o},{})}return n(t)}function wf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function xf(e){if("string"!=typeof e)throw new Error(rd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sf(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Cf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Sf(e,n)||r,t&&(o=t(o,r,e)),o}function kf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Sf(e.theme,r)||{};return yf(e,i,e=>{let r=Cf(a,o,e);return e===r&&"string"==typeof e&&(r=Cf(a,o,`${t}${"default"===e?"":xf(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Ef={m:"margin",p:"padding"},Rf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pf=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Mf[e])return[e];e=Mf[e]}const[t,n]=e.split(""),r=Ef[t],o=Rf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Tf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],If=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Of(e,t,n,r){const o=Sf(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function Df(e){return Of(e,"spacing",8)}function Ff(e,t){return"string"==typeof t||null==t?t:e(t)}function Lf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Ff(t,n),e),{})}(Pf(n),r);return yf(e,e[n],o)}function Af(e,t){const n=Df(e.theme);return Object.keys(e).map(r=>Lf(e,t,r,n)).reduce(mf,{})}function $f(e){return Af(e,Tf)}function Nf(e){return Af(e,If)}function zf(e=8,t=Df({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function jf(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?mf(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function _f(e){return"number"!=typeof e?e:`${e}px solid`}function Bf(e,t){return kf({prop:e,themeKey:"borders",transform:t})}$f.propTypes={},$f.filterProps=Tf,Nf.propTypes={},Nf.filterProps=If;const Hf=Bf("border",_f),Vf=Bf("borderTop",_f),Wf=Bf("borderRight",_f),Uf=Bf("borderBottom",_f),Gf=Bf("borderLeft",_f),Kf=Bf("borderColor"),qf=Bf("borderTopColor"),Yf=Bf("borderRightColor"),Xf=Bf("borderBottomColor"),Qf=Bf("borderLeftColor"),Zf=Bf("outline",_f),Jf=Bf("outlineColor"),eh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Of(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ff(t,e)});return yf(e,e.borderRadius,n)}return null};eh.propTypes={},eh.filterProps=["borderRadius"],jf(Hf,Vf,Wf,Uf,Gf,Kf,qf,Yf,Xf,Qf,eh,Zf,Jf);const th=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Of(e.theme,"spacing",8),n=e=>({gap:Ff(t,e)});return yf(e,e.gap,n)}return null};th.propTypes={},th.filterProps=["gap"];const nh=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Of(e.theme,"spacing",8),n=e=>({columnGap:Ff(t,e)});return yf(e,e.columnGap,n)}return null};nh.propTypes={},nh.filterProps=["columnGap"];const rh=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Of(e.theme,"spacing",8),n=e=>({rowGap:Ff(t,e)});return yf(e,e.rowGap,n)}return null};rh.propTypes={},rh.filterProps=["rowGap"];function oh(e,t){return"grey"===t?t:e}jf(th,nh,rh,kf({prop:"gridColumn"}),kf({prop:"gridRow"}),kf({prop:"gridAutoFlow"}),kf({prop:"gridAutoColumns"}),kf({prop:"gridAutoRows"}),kf({prop:"gridTemplateColumns"}),kf({prop:"gridTemplateRows"}),kf({prop:"gridTemplateAreas"}),kf({prop:"gridArea"}));function ih(e){return e<=1&&0!==e?100*e+"%":e}jf(kf({prop:"color",themeKey:"palette",transform:oh}),kf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:oh}),kf({prop:"backgroundColor",themeKey:"palette",transform:oh}));const ah=kf({prop:"width",transform:ih}),lh=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||gf[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ih(t)}};return yf(e,e.maxWidth,t)}return null};lh.filterProps=["maxWidth"];const sh=kf({prop:"minWidth",transform:ih}),ch=kf({prop:"height",transform:ih}),uh=kf({prop:"maxHeight",transform:ih}),dh=kf({prop:"minHeight",transform:ih});kf({prop:"size",cssProperty:"width",transform:ih}),kf({prop:"size",cssProperty:"height",transform:ih});jf(ah,lh,sh,ch,uh,dh,kf({prop:"boxSizing"}));const ph={border:{themeKey:"borders",transform:_f},borderTop:{themeKey:"borders",transform:_f},borderRight:{themeKey:"borders",transform:_f},borderBottom:{themeKey:"borders",transform:_f},borderLeft:{themeKey:"borders",transform:_f},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_f},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eh},color:{themeKey:"palette",transform:oh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:oh},backgroundColor:{themeKey:"palette",transform:oh},p:{style:Nf},pt:{style:Nf},pr:{style:Nf},pb:{style:Nf},pl:{style:Nf},px:{style:Nf},py:{style:Nf},padding:{style:Nf},paddingTop:{style:Nf},paddingRight:{style:Nf},paddingBottom:{style:Nf},paddingLeft:{style:Nf},paddingX:{style:Nf},paddingY:{style:Nf},paddingInline:{style:Nf},paddingInlineStart:{style:Nf},paddingInlineEnd:{style:Nf},paddingBlock:{style:Nf},paddingBlockStart:{style:Nf},paddingBlockEnd:{style:Nf},m:{style:$f},mt:{style:$f},mr:{style:$f},mb:{style:$f},ml:{style:$f},mx:{style:$f},my:{style:$f},margin:{style:$f},marginTop:{style:$f},marginRight:{style:$f},marginBottom:{style:$f},marginLeft:{style:$f},marginX:{style:$f},marginY:{style:$f},marginInline:{style:$f},marginInlineStart:{style:$f},marginInlineEnd:{style:$f},marginBlock:{style:$f},marginBlockStart:{style:$f},marginBlockEnd:{style:$f},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:th},rowGap:{style:rh},columnGap:{style:nh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ih},maxWidth:{style:lh},minWidth:{transform:ih},height:{transform:ih},maxHeight:{transform:ih},minHeight:{transform:ih},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const fh=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Sf(n,l)||{};if(c)return c(o);return yf(o,t,t=>{let n=Cf(u,s,t);return t===n&&"string"==typeof t&&(n=Cf(u,s,`${e}${"default"===t?"":xf(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??ph;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const l=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),s=Object.keys(l);let c=l;return Object.keys(r).forEach(n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(a[n])c=mf(c,e(n,i,o,a));else{const e=yf({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=mf(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=mf(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":ff(o,wf(s,c))}:ff(o,wf(s,c))}return Array.isArray(r)?r.map(l):l(r)}}();function hh(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function mh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let l=df({breakpoints:pf(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:zf(o),shape:{...hf,...i}},a);return l=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(l),l.applyStyles=hh,l=t.reduce((e,t)=>df(e,t),l),l.unstable_sxConfig={...ph,...a?.unstable_sxConfig},l.unstable_sx=function(e){return fh({sx:e,theme:this})},l}function gh(e=null){const t=s.useContext(Tp);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}fh.filterProps=["sx"];const bh=mh();function vh(e=bh){return gh(e)}function yh(e){const t=ef(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function wh({styles:e,themeId:t,defaultTheme:n={}}){const r=vh(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>yh("function"==typeof e?e(o):e)):yh(i)),Xp.jsx(Qp,{styles:i})}function xh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ph;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return cf(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}const Sh=e=>e,Ch=(()=>{let e=Sh;return{configure(t){e=t},generate:t=>e(t),reset(){e=Sh}}})();function kh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kh(e))&&(r&&(r+=" "),r+=t);return r}const Rh={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 Mh(e,t,n="Mui"){const r=Rh[t];return r?`${n}-${r}`:`${Ch.generate(e)}-${t}`}function Ph(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Mh(e,t,n)}),r}function Th(e){const{variants:t,...n}=e,r={variants:t,style:ef(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=ef(e.style))}),r}const Ih=mh();function Oh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Dh(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Fh(e){return e?(t,n)=>n[e]:null}function Lh(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Lh(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Dh(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Dh(ef(o),n):o}return Ah(e,r.variants,[t],n)}return r?.isProcessed?n?Dh(ef(r.style),n):r.style:n?Dh(ef(r),n):r}function Ah(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Dh(ef(a.style(o)),r):a.style(o))):n.push(r?Dh(ef(a.style),r):a.style)}return n}function $h(e={}){const{themeId:t,defaultTheme:n=Ih,rootShouldForwardProp:r=Oh,slotShouldForwardProp:o=Oh}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==fh));const{name:n,slot:a,skipVariantsResolver:l,skipSx:s,overridesResolver:c=Fh(zh(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==l?l:a&&"Root"!==a&&"root"!==a||!1,f=s||!1;let h=Oh;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=Zp(e,{shouldForwardProp:h,label:Nh(),...u}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Lh(t,e,t.theme.modularCssLayers?d:void 0)};if(cf(e)){const t=Th(e);return function(e){return t.variants?Lh(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Dh(t.style,d):t.style}}return e},b=(...t)=>{const r=[],o=t.map(g),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=Lh(e,r[t],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!p&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Ah(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),f||a.push(fh),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const l=[...r,...o,...a],s=m(...l);return e.muiName&&(s.muiName=e.muiName),s};return m.withConfig&&(b.withConfig=m.withConfig),b}}function Nh(e,t){}function zh(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const jh=$h();function _h(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_h(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_h(e))&&(r&&(r+=" "),r+=t);return r}function Hh(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Hh(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=Bh(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function Vh(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Hh(t.components[n].defaultProps,r):r}const Wh="undefined"!=typeof window?s.useLayoutEffect:s.useEffect;function Uh(e,t,n,r,o){const[i,a]=s.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Wh(()=>{if(!n)return;const t=n(e),r=()=>{a(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,n]),i}const Gh={...u}.useSyncExternalStore;function Kh(e,t,n,r,o){const i=s.useCallback(()=>t,[t]),a=s.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i},[i,e,r,o,n]),[l,c]=s.useMemo(()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[i,n,e]);return Gh(c,l,a)}function qh(e={}){const{themeId:t}=e;return function(e,n={}){let r=gh();r&&t&&(r=r[t]||r);const o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:a=(o?window.matchMedia:null),ssrMatchMedia:l=null,noSsr:s=!1}=Vh({name:"MuiUseMediaQuery",props:n,theme:r});let c="function"==typeof e?e(r):e;c=c.replace(/^@media( ?)/m,""),c.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join("\n"));return(void 0!==Gh?Kh:Uh)(c,i,a,l,s)}}function Yh(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Xh(e){if(e.type)return e;if("#"===e.charAt(0))return Xh(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(rd(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(rd(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}qh();const Qh=(e,t)=>{try{return(e=>{const t=Xh(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Zh(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Jh(e){e=Xh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Zh({type:l,values:s})}function em(e){let t="hsl"===(e=Xh(e)).type||"hsla"===e.type?Xh(Jh(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tm(e,t){return e=Xh(e),t=Yh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Zh(e)}function nm(e,t,n){try{return tm(e,t)}catch(t){return e}}function rm(e,t){if(e=Xh(e),t=Yh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Zh(e)}function om(e,t,n){try{return rm(e,t)}catch(t){return e}}function im(e,t){if(e=Xh(e),t=Yh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Zh(e)}function am(e,t,n){try{return im(e,t)}catch(t){return e}}function lm(e,t=.15){return em(e)>.5?rm(e,t):im(e,t)}function sm(e,t,n){try{return lm(e,t)}catch(t){return e}}const cm=s.createContext(null);function um(){return s.useContext(cm)}var dm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pm(e){const{children:t,theme:n}=e,r=um(),o=s.useMemo(()=>{const e=null===r?{...n}:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(r,n);return null!=e&&(e[dm]=null!==r),e},[n,r]);return Xp.jsx(cm.Provider,{value:o,children:t})}const fm=s.createContext();function hm({value:e,...t}){return Xp.jsx(fm.Provider,{value:e??!0,...t})}const mm=()=>s.useContext(fm)??!1,gm=s.createContext(void 0);function bm({value:e,children:t}){return Xp.jsx(gm.Provider,{value:e,children:t})}function vm({props:e,name:t}){return function(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?Hh(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Hh(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:s.useContext(gm)}})}let ym=0;const wm={...u}.useId;function xm(e){if(void 0!==wm){const t=wm();return e??t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect(()=>{null==t&&(ym+=1,n(`mui-${ym}`))},[t]),r}(e)}const Sm={};function Cm(e,t,n,r=!1){return s.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function km(e){const{children:t,theme:n,themeId:r}=e,o=gh(Sm),i=um()||Sm,a=Cm(r,o,n),l=Cm(r,i,n,!0),s="rtl"===(r?a[r]:a).direction,c=function(e){const t=gh(),n=xm()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Wh(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const r=document.createElement("style");r.setAttribute("data-mui-layer-order",n),r.textContent=o,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?Xp.jsx(wh,{styles:o}):null}(a);return Xp.jsx(pm,{theme:l,children:Xp.jsx(Tp.Provider,{value:a,children:Xp.jsx(hm,{value:s,children:Xp.jsxs(bm,{value:r?a[r].components:a.components,children:[c,t]})})})})}const Em={theme:void 0};const Rm="mode",Mm="color-scheme",Pm="data-color-scheme";function Tm(){}const Im=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Tm;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Om(){}function Dm(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function Fm(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Lm(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Rm,colorSchemeStorageKey:a=Mm,storageWindow:l=("undefined"==typeof window?void 0:window),storageManager:c=Im,noSsr:u=!1}=e,d=o.join(","),p=o.length>1,f=s.useMemo(()=>c?.({key:i,storageWindow:l}),[c,i,l]),h=s.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),m=s.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[g,b]=s.useState(()=>{const e=f?.get(t)||t,o=h?.get(n)||n,i=m?.get(r)||r;return{mode:e,systemMode:Dm(e),lightColorScheme:o,darkColorScheme:i}}),[v,y]=s.useState(u||!p);s.useEffect(()=>{y(!0)},[]);const w=function(e){return Fm(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),x=s.useCallback(e=>{b(n=>{if(e===n.mode)return n;const r=e??t;return f?.set(r),{...n,mode:r,systemMode:Dm(r)}})},[f,t]),S=s.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):b(t=>{const n={...t};return Fm(t,t=>{"light"===t&&(h?.set(e),n.lightColorScheme=e),"dark"===t&&(m?.set(e),n.darkColorScheme=e)}),n}):b(t=>{const o={...t},i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;return i&&(d.includes(i)?(o.lightColorScheme=i,h?.set(i)):console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)),a&&(d.includes(a)?(o.darkColorScheme=a,m?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o}):b(e=>(h?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[d,h,m,n,r]),C=s.useCallback(e=>{"system"===g.mode&&b(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),k=s.useRef(C);return k.current=C,s.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;const e=(...e)=>k.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),s.useEffect(()=>{if(p){const e=f?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||x(e||t)})||Om,n=h?.subscribe(e=>{e&&!d.match(e)||S({light:e})})||Om,r=m?.subscribe(e=>{e&&!d.match(e)||S({dark:e})})||Om;return()=>{e(),n(),r()}}},[S,x,d,t,l,p,f,h,m]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?w:void 0,setMode:x,setColorScheme:S}}function Am(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const $m=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Nm(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var l,s;return l=(e,t,l)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:s}),$m(i,e,`var(${r})`,l),$m(a,e,`var(${r}, ${s})`,l)}},s=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!s||s&&!s([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):l([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function zm(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===l?"":" ")+t(r),l=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}function jm(e,t){return s.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}function _m(){return{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:Cu.white,default:Cu.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}}}const Bm=_m();function Hm(){return{text:{primary:Cu.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:Cu.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}}}const Vm=Hm();function Wm(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=im(e.main,o):"dark"===t&&(e.dark=rm(e.main,i)))}function Um(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function Gm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$u,light:Au,dark:Nu}:{main:zu,light:Nu,dark:ju}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:Iu,light:Tu,dark:Du}:{main:Fu,light:Ou,dark:Lu}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ru,light:ku,dark:Mu}:{main:Mu,light:Eu,dark:Pu}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Bu,light:_u,dark:Vu}:{main:Vu,light:Hu,dark:Wu}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Gu,light:Uu,dark:qu}:{main:Yu,light:Ku,dark:Xu}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Zu,light:Qu,dark:ed}:{main:"#ed6c02",light:Ju,dark:td}}(t);function p(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=em(e),r=em(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Vm.text.primary)>=n?Vm.text.primary:Bm.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(rd(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(rd(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(Um(o,e,"light",i,r),Um(o,e,"dark",a,r)):(Wm(e,"light",i,r),Wm(e,"dark",a,r)),e.contrastText||(e.contrastText=p(e.main)),e};let h;"light"===t?h=_m():"dark"===t&&(h=Hm());return df({common:{...Cu},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:nd,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...h},i)}function Km(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}function qm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}const Ym={textTransform:"uppercase"},Xm='"Roboto", "Helvetica", "Arial", sans-serif';function Qm(e,t){const{fontFamily:n=Xm,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:s=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,f=u||(e=>e/s*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===Xm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,Ym),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Ym),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return df({htmlFontSize:s,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},d,{clone:!1})}function Zm(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jm=["none",Zm(0,2,1,-1,0,1,1,0,0,1,3,0),Zm(0,3,1,-2,0,2,2,0,0,1,5,0),Zm(0,3,3,-2,0,3,4,0,0,1,8,0),Zm(0,2,4,-1,0,4,5,0,0,1,10,0),Zm(0,3,5,-1,0,5,8,0,0,1,14,0),Zm(0,3,5,-1,0,6,10,0,0,1,18,0),Zm(0,4,5,-2,0,7,10,1,0,2,16,1),Zm(0,5,5,-3,0,8,10,1,0,3,14,2),Zm(0,5,6,-3,0,9,12,1,0,3,16,2),Zm(0,6,6,-3,0,10,14,1,0,4,18,3),Zm(0,6,7,-4,0,11,15,1,0,4,20,3),Zm(0,7,8,-4,0,12,17,2,0,5,22,4),Zm(0,7,8,-4,0,13,19,2,0,5,24,4),Zm(0,7,9,-4,0,14,21,2,0,5,26,4),Zm(0,8,9,-5,0,15,22,2,0,6,28,5),Zm(0,8,10,-5,0,16,24,2,0,6,30,5),Zm(0,8,11,-5,0,17,26,2,0,6,32,5),Zm(0,9,11,-5,0,18,28,2,0,7,34,6),Zm(0,9,12,-6,0,19,29,2,0,7,36,6),Zm(0,10,13,-6,0,20,31,3,0,8,38,7),Zm(0,10,13,-6,0,21,33,3,0,8,40,7),Zm(0,10,14,-6,0,22,35,3,0,8,42,7),Zm(0,11,14,-7,0,23,36,3,0,9,44,8),Zm(0,11,15,-7,0,24,38,3,0,9,46,8)],eg={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)"},tg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ng(e){return`${Math.round(e)}ms`}function rg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function og(e){const t={...eg,...e.easing},n={...tg,...e.duration};return{getAutoHeightDuration:rg,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...l}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ng(o)} ${i} ${"string"==typeof a?a:ng(a)}`).join(",")},...e,easing:t,duration:n}}const ig={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ag(e){return cf(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function lg(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!ag(i)||o.startsWith("unstable_")?delete t[o]:cf(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function sg(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function cg(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:tm(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${sg(n)})`:im(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${sg(n)})`:rm(t,n)}})}function ug(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:s,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(rd(20));const d=Gm({...i,colorSpace:c}),p=mh(e);let f=df(p,{mixins:qm(p.breakpoints,r),palette:d,shadows:Jm.slice(),typography:Qm(d,l),transitions:og(a),zIndex:{...ig}});return f=df(f,u),f=t.reduce((e,t)=>df(e,t),f),f.unstable_sxConfig={...ph,...u?.unstable_sxConfig},f.unstable_sx=function(e){return fh({sx:e,theme:this})},f.toRuntimeSource=lg,cg(f),f}function dg(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const pg=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=dg(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fg(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function hg(e){return"dark"===e?pg:[]}function mg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var gg=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function bg(e,t,n){!e[t]&&n&&(e[t]=n)}function vg(e){return"string"==typeof e&&e.startsWith("hsl")?Jh(e):e}function yg(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Qh(vg(e[t])))}const wg=e=>{try{return e()}catch(e){}};function xg(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Gm({...t,colorSpace:o});return{palette:a,opacity:{...fg(a.mode),...n},overlays:r||hg(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...l}=ug({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...fg(i),...n?.opacity},overlays:n?.overlays||hg(i)},l}function Sg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=mg,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],p=r||(n.light&&"light"!==d?"light":d),f=((e="mui")=>Am(e))(i),{[p]:h,light:m,dark:g,...b}=n,v={...b};let y,w=h;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(w=!0),!w)throw new Error(rd(21,p));a&&(y="oklch");const x=xg(y,v,w,u,p);m&&!v.light&&xg(y,v,m,void 0,"light"),g&&!v.dark&&xg(y,v,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:c,getCssVar:f,colorSchemes:v,font:{...Km(x.typography),...x.font},spacing:(C=u.spacing,"number"==typeof C?`${C}px`:"string"==typeof C||"function"==typeof C||Array.isArray(C)?C:"8px")};var C;Object.keys(S.colorSchemes).forEach(e=>{const t=S.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};function r(e,t,n){if(y){let r;return e===nm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===om&&(r=`#000 ${(100*n).toFixed(0)}%`),e===am&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${y}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(bg(t.common,"background","#fff"),bg(t.common,"onBackground","#000")),"dark"===t.mode&&(bg(t.common,"background","#000"),bg(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){bg(t.Alert,"errorColor",r(om,t.error.light,.6)),bg(t.Alert,"infoColor",r(om,t.info.light,.6)),bg(t.Alert,"successColor",r(om,t.success.light,.6)),bg(t.Alert,"warningColor",r(om,t.warning.light,.6)),bg(t.Alert,"errorFilledBg",n("palette-error-main")),bg(t.Alert,"infoFilledBg",n("palette-info-main")),bg(t.Alert,"successFilledBg",n("palette-success-main")),bg(t.Alert,"warningFilledBg",n("palette-warning-main")),bg(t.Alert,"errorFilledColor",wg(()=>t.getContrastText(t.error.main))),bg(t.Alert,"infoFilledColor",wg(()=>t.getContrastText(t.info.main))),bg(t.Alert,"successFilledColor",wg(()=>t.getContrastText(t.success.main))),bg(t.Alert,"warningFilledColor",wg(()=>t.getContrastText(t.warning.main))),bg(t.Alert,"errorStandardBg",r(am,t.error.light,.9)),bg(t.Alert,"infoStandardBg",r(am,t.info.light,.9)),bg(t.Alert,"successStandardBg",r(am,t.success.light,.9)),bg(t.Alert,"warningStandardBg",r(am,t.warning.light,.9)),bg(t.Alert,"errorIconColor",n("palette-error-main")),bg(t.Alert,"infoIconColor",n("palette-info-main")),bg(t.Alert,"successIconColor",n("palette-success-main")),bg(t.Alert,"warningIconColor",n("palette-warning-main")),bg(t.AppBar,"defaultBg",n("palette-grey-100")),bg(t.Avatar,"defaultBg",n("palette-grey-400")),bg(t.Button,"inheritContainedBg",n("palette-grey-300")),bg(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),bg(t.Chip,"defaultBorder",n("palette-grey-400")),bg(t.Chip,"defaultAvatarColor",n("palette-grey-700")),bg(t.Chip,"defaultIconColor",n("palette-grey-700")),bg(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),bg(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),bg(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),bg(t.LinearProgress,"primaryBg",r(am,t.primary.main,.62)),bg(t.LinearProgress,"secondaryBg",r(am,t.secondary.main,.62)),bg(t.LinearProgress,"errorBg",r(am,t.error.main,.62)),bg(t.LinearProgress,"infoBg",r(am,t.info.main,.62)),bg(t.LinearProgress,"successBg",r(am,t.success.main,.62)),bg(t.LinearProgress,"warningBg",r(am,t.warning.main,.62)),bg(t.Skeleton,"bg",y?r(nm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),bg(t.Slider,"primaryTrack",r(am,t.primary.main,.62)),bg(t.Slider,"secondaryTrack",r(am,t.secondary.main,.62)),bg(t.Slider,"errorTrack",r(am,t.error.main,.62)),bg(t.Slider,"infoTrack",r(am,t.info.main,.62)),bg(t.Slider,"successTrack",r(am,t.success.main,.62)),bg(t.Slider,"warningTrack",r(am,t.warning.main,.62));const e=y?r(om,t.background.default,.6825):sm(t.background.default,.8);bg(t.SnackbarContent,"bg",e),bg(t.SnackbarContent,"color",wg(()=>y?Vm.text.primary:t.getContrastText(e))),bg(t.SpeedDialAction,"fabHoverBg",sm(t.background.paper,.15)),bg(t.StepConnector,"border",n("palette-grey-400")),bg(t.StepContent,"border",n("palette-grey-400")),bg(t.Switch,"defaultColor",n("palette-common-white")),bg(t.Switch,"defaultDisabledColor",n("palette-grey-100")),bg(t.Switch,"primaryDisabledColor",r(am,t.primary.main,.62)),bg(t.Switch,"secondaryDisabledColor",r(am,t.secondary.main,.62)),bg(t.Switch,"errorDisabledColor",r(am,t.error.main,.62)),bg(t.Switch,"infoDisabledColor",r(am,t.info.main,.62)),bg(t.Switch,"successDisabledColor",r(am,t.success.main,.62)),bg(t.Switch,"warningDisabledColor",r(am,t.warning.main,.62)),bg(t.TableCell,"border",r(am,r(nm,t.divider,1),.88)),bg(t.Tooltip,"bg",r(nm,t.grey[700],.92))}if("dark"===t.mode){bg(t.Alert,"errorColor",r(am,t.error.light,.6)),bg(t.Alert,"infoColor",r(am,t.info.light,.6)),bg(t.Alert,"successColor",r(am,t.success.light,.6)),bg(t.Alert,"warningColor",r(am,t.warning.light,.6)),bg(t.Alert,"errorFilledBg",n("palette-error-dark")),bg(t.Alert,"infoFilledBg",n("palette-info-dark")),bg(t.Alert,"successFilledBg",n("palette-success-dark")),bg(t.Alert,"warningFilledBg",n("palette-warning-dark")),bg(t.Alert,"errorFilledColor",wg(()=>t.getContrastText(t.error.dark))),bg(t.Alert,"infoFilledColor",wg(()=>t.getContrastText(t.info.dark))),bg(t.Alert,"successFilledColor",wg(()=>t.getContrastText(t.success.dark))),bg(t.Alert,"warningFilledColor",wg(()=>t.getContrastText(t.warning.dark))),bg(t.Alert,"errorStandardBg",r(om,t.error.light,.9)),bg(t.Alert,"infoStandardBg",r(om,t.info.light,.9)),bg(t.Alert,"successStandardBg",r(om,t.success.light,.9)),bg(t.Alert,"warningStandardBg",r(om,t.warning.light,.9)),bg(t.Alert,"errorIconColor",n("palette-error-main")),bg(t.Alert,"infoIconColor",n("palette-info-main")),bg(t.Alert,"successIconColor",n("palette-success-main")),bg(t.Alert,"warningIconColor",n("palette-warning-main")),bg(t.AppBar,"defaultBg",n("palette-grey-900")),bg(t.AppBar,"darkBg",n("palette-background-paper")),bg(t.AppBar,"darkColor",n("palette-text-primary")),bg(t.Avatar,"defaultBg",n("palette-grey-600")),bg(t.Button,"inheritContainedBg",n("palette-grey-800")),bg(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),bg(t.Chip,"defaultBorder",n("palette-grey-700")),bg(t.Chip,"defaultAvatarColor",n("palette-grey-300")),bg(t.Chip,"defaultIconColor",n("palette-grey-300")),bg(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),bg(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),bg(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),bg(t.LinearProgress,"primaryBg",r(om,t.primary.main,.5)),bg(t.LinearProgress,"secondaryBg",r(om,t.secondary.main,.5)),bg(t.LinearProgress,"errorBg",r(om,t.error.main,.5)),bg(t.LinearProgress,"infoBg",r(om,t.info.main,.5)),bg(t.LinearProgress,"successBg",r(om,t.success.main,.5)),bg(t.LinearProgress,"warningBg",r(om,t.warning.main,.5)),bg(t.Skeleton,"bg",y?r(nm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),bg(t.Slider,"primaryTrack",r(om,t.primary.main,.5)),bg(t.Slider,"secondaryTrack",r(om,t.secondary.main,.5)),bg(t.Slider,"errorTrack",r(om,t.error.main,.5)),bg(t.Slider,"infoTrack",r(om,t.info.main,.5)),bg(t.Slider,"successTrack",r(om,t.success.main,.5)),bg(t.Slider,"warningTrack",r(om,t.warning.main,.5));const e=y?r(am,t.background.default,.985):sm(t.background.default,.98);bg(t.SnackbarContent,"bg",e),bg(t.SnackbarContent,"color",wg(()=>y?Bm.text.primary:t.getContrastText(e))),bg(t.SpeedDialAction,"fabHoverBg",sm(t.background.paper,.15)),bg(t.StepConnector,"border",n("palette-grey-600")),bg(t.StepContent,"border",n("palette-grey-600")),bg(t.Switch,"defaultColor",n("palette-grey-300")),bg(t.Switch,"defaultDisabledColor",n("palette-grey-600")),bg(t.Switch,"primaryDisabledColor",r(om,t.primary.main,.55)),bg(t.Switch,"secondaryDisabledColor",r(om,t.secondary.main,.55)),bg(t.Switch,"errorDisabledColor",r(om,t.error.main,.55)),bg(t.Switch,"infoDisabledColor",r(om,t.info.main,.55)),bg(t.Switch,"successDisabledColor",r(om,t.success.main,.55)),bg(t.Switch,"warningDisabledColor",r(om,t.warning.main,.55)),bg(t.TableCell,"border",r(om,r(nm,t.divider,1),.68)),bg(t.Tooltip,"bg",r(nm,t.grey[700],.92))}yg(t.background,"default"),yg(t.background,"paper"),yg(t.common,"background"),yg(t.common,"onBackground"),yg(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&bg(t[e],"mainChannel",Qh(vg(n.main))),n.light&&bg(t[e],"lightChannel",Qh(vg(n.light))),n.dark&&bg(t[e],"darkChannel",Qh(vg(n.dark))),n.contrastText&&bg(t[e],"contrastTextChannel",Qh(vg(n.contrastText))),"text"===e&&(yg(t[e],"primary"),yg(t[e],"secondary")),"action"===e&&(n.active&&yg(t[e],"active"),n.selected&&yg(t[e],"selected")))})}),S=t.reduce((e,t)=>df(e,t),S);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:gg(S),enableContrastVars:a},{vars:E,generateThemeVars:R,generateStyleSheets:M}=function(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:s="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=Nm(c,t);let f=p;const h={},{[s]:m,...g}=a;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Nm(n,t);f=df(f,i),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=Nm(m,t);f=df(f,r),h[s]={css:e,vars:n}}function b(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=df(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[o]:s,...c}=h;if(s){const{css:e}=s,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};l(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};l(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(S,k);return S.vars=E,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=R,S.generateStyleSheets=M,S.generateSpacing=function(){return zf(u.spacing,Df(this))},S.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=l,S.unstable_sxConfig={...ph,...u?.unstable_sxConfig},S.unstable_sx=function(e){return fh({sx:e,theme:this})},S.toRuntimeSource=lg,S}function Cg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Gm({...!0===n?{}:n.palette,mode:t})})}function kg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",s=o?.[l],c={...o,...n?{[l]:{..."boolean"!=typeof s&&s,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return ug(e,...t);let r=n;"palette"in e||c[l]&&(!0!==c[l]?r=c[l].palette:"dark"===l&&(r={mode:"dark"}));const o=ug({...e,palette:r},...t);return o.defaultColorScheme=l,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Cg(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Cg(o,"light",c.light)),o}return n||"light"in c||"light"!==l||(c.light=!0),Sg({...a,colorSchemes:c,defaultColorScheme:l,..."boolean"!=typeof r&&r},...t)}const Eg=kg();function Rg(){const e=vh(Eg);return e[od]||e}function Mg({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=vh(n);return o=o[r]||o,Vh({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Eg,themeId:od})}function Pg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Tg=e=>Pg(e)&&"classes"!==e,Ig=$h({themeId:od,defaultTheme:Eg,rootShouldForwardProp:Tg});function Og({theme:e,...t}){const n=od in e?e[od]:void 0;return Xp.jsx(km,{...t,themeId:n?od:void 0,theme:n||e})}const Dg="mui-color-scheme",Fg="light",Lg="dark",Ag="mui-mode",{CssVarsProvider:$g}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=Rm,colorSchemeStorageKey:o=Mm,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=s.createContext(void 0),d={},p={},f="string"==typeof a?a:a.light,h="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){const{children:c,theme:f,modeStorageKey:h=r,colorSchemeStorageKey:m=o,disableTransitionOnChange:g=i,storageManager:b,storageWindow:v=("undefined"==typeof window?void 0:window),documentNode:y=("undefined"==typeof document?void 0:document),colorSchemeNode:w=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C="system",forceThemeRerender:k=!1,noSsr:E}=e,R=s.useRef(!1),M=um(),P=s.useContext(u),T=!!P&&!x,I=s.useMemo(()=>f||("function"==typeof n?n():n),[f]),O=I[t],D=O||I,{colorSchemes:F=d,components:L=p,cssVarPrefix:A}=D,$=Object.keys(F).filter(e=>!!F[e]).join(","),N=s.useMemo(()=>$.split(","),[$]),z="string"==typeof a?a:a.light,j="string"==typeof a?a:a.dark,_=F[z]&&F[j]?C:F[D.defaultColorScheme]?.palette?.mode||D.palette?.mode,{mode:B,setMode:H,systemMode:V,lightColorScheme:W,darkColorScheme:U,colorScheme:G,setColorScheme:K}=Lm({supportedColorSchemes:N,defaultLightColorScheme:z,defaultDarkColorScheme:j,modeStorageKey:h,colorSchemeStorageKey:m,defaultMode:_,storageManager:b,storageWindow:v,noSsr:E});let q=B,Y=G;T&&(q=P.mode,Y=P.colorScheme);let X=Y||D.defaultColorScheme;D.vars&&!k&&(X=D.defaultColorScheme);const Q=s.useMemo(()=>{const e=D.generateThemeVars?.()||D.vars,t={...D,components:L,colorSchemes:F,cssVarPrefix:A,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),X){const e=F[X];e&&"object"==typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return l?l(t):t},[D,X,L,F,A]),Z=D.colorSchemeSelector;Wh(()=>{if(Y&&w&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))w.classList.remove(...N.map(e=>t.substring(1).replace("%s",e))),w.classList.add(t.substring(1).replace("%s",Y));else{const e=t.replace("%s",Y).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||N.forEach(e=>{w.removeAttribute(t.replace(Y,e))}),w.setAttribute(t,n?n.replace(/"|'/g,""):"")}else w.setAttribute(t,Y)}}},[Y,Z,w,N]),s.useEffect(()=>{let e;if(g&&R.current&&y){const t=y.createElement("style");t.appendChild(y.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),y.head.appendChild(t),window.getComputedStyle(y.body),e=setTimeout(()=>{y.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Y,g,y]),s.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const J=s.useMemo(()=>({allColorSchemes:N,colorScheme:Y,darkColorScheme:U,lightColorScheme:W,mode:q,setColorScheme:K,setMode:H,systemMode:V}),[N,Y,U,W,q,K,H,V,Q.colorSchemeSelector]);let ee=!0;(S||!1===D.cssVariables||T&&M?.cssVarPrefix===A)&&(ee=!1);const te=Xp.jsxs(s.Fragment,{children:[Xp.jsx(km,{themeId:O?t:void 0,theme:Q,children:c}),ee&&Xp.jsx(Qp,{styles:Q.generateStyleSheets?.()||[]})]});return T?te:Xp.jsx(u.Provider,{value:J,children:te})},useColorScheme:()=>s.useContext(u)||c,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Rm,colorSchemeStorageKey:i=Mm,attribute:a=Pm,colorSchemeNode:l="document.documentElement",nonce:s}=e||{};let c="",u=a;if("class"===a&&(u=".%s"),"data"===a&&(u="[data-%s]"),u.startsWith(".")){const e=u.substring(1);c+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${l}.classList.add('${e}'.replace('%s', colorScheme));`}const d=u.match(/\[([^[\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(c+=`${l}.removeAttribute('${e}'.replace('%s', light));\n ${l}.removeAttribute('${e}'.replace('%s', dark));`),c+=`\n ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==u&&(c+=`${l}.setAttribute('${u}', colorScheme);`);return Xp.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?s:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${o}') || '${t}';\n const dark = localStorage.getItem('${i}-dark') || '${r}';\n const light = localStorage.getItem('${i}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}({themeId:od,theme:()=>kg({cssVariables:!0}),colorSchemeStorageKey:Dg,modeStorageKey:Ag,defaultColorScheme:{light:Fg,dark:Lg},resolveTheme:e=>{const t={...e,typography:Qm(e.palette,e.typography)};return t.unstable_sx=function(e){return fh({sx:e,theme:this})},t}}),Ng=$g;function zg({theme:e,...t}){const n=s.useMemo(()=>{if("function"==typeof e)return e;const t=od in e?e[od]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?Xp.jsx(Og,{theme:n,...t}):Xp.jsx(Ng,{theme:e,...t})}function jg(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function _g(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_g(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_g(e))&&(r&&(r+=" "),r+=t);return r}function Hg(e){return Xp.jsx(wh,{...e,defaultTheme:Eg,themeId:od})}const Vg=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Em.theme=r.theme,o=Th(e(Em)),t=o,n=r.theme),o}};function Wg(e){return vm(e)}function Ug(e){return Mh("MuiSvgIcon",e)}Ph("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gg=Ig("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${xf(n.color)}`],t[`fontSize${xf(n.fontSize)}`]]}})(Vg(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Kg=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,h=s.isValidElement(r)&&"svg"===r.type,m={...n,color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h},g={};u||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return zm({root:["root","inherit"!==t&&`color${xf(t)}`,`fontSize${xf(n)}`]},Ug,r)})(m);return Xp.jsxs(Gg,{as:a,className:Bg(b.root,o),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...f,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?Xp.jsx("title",{children:d}):null]})});function qg(e,t){function n(t,n){return Xp.jsx(Kg,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Kg.muiName,s.memo(s.forwardRef(n))}function Yg(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Xg(e){return e&&e.ownerDocument||document}function Qg(e){return Xg(e).defaultView||window}function Zg(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Jg(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=s.useRef(void 0!==t),[a,l]=s.useState(n);return[i?t:a,s.useCallback(e=>{i||l(e)},[])]}function eb(e){const t=s.useRef(e);return Wh(()=>{t.current=e}),s.useRef((...e)=>(0,t.current)(...e)).current}function tb(...e){const t=s.useRef(void 0),n=s.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return s.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function nb(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=Bg(r?.className,o?.className,i?.className),l=n(i,o);return{...o,...i,...l,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=Bg(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Kg.muiName="SvgIcon";const rb={};function ob(e,t){const n=s.useRef(rb);return n.current===rb&&(n.current=e(t)),n}const ib=[];function ab(e){s.useEffect(e,ib)}class lb{static create(){return new lb}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function sb(){const e=ob(lb.create).current;return ab(e.disposeEffect),e}const cb=e=>e.scrollTop;function ub(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function db(e){return"string"==typeof e}function pb(e,t,n){return void 0===e||db(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function fb(e,t,n){return"function"==typeof e?e(t,n):e}function hb(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function mb(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function gb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Bh(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=hb({...o,...r}),l=mb(r),s=mb(o),c=t(a),u=Bh(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...s,...l};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function bb(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=fb(d[e],o),{props:{component:m,...g},internalRef:b}=gb({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),v=tb(b,h?.ref,t.ref),y="root"===e?m||c:m;return[f,pb(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...y&&!l&&{as:y},...y&&l&&{component:y},ref:v},o)]}function vb(e){return Mh("MuiPaper",e)}Ph("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 yb=Ig("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Vg(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),wb=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiPaper"}),r=Rg(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation",...c}=n,u={...n,component:i,elevation:a,square:l,variant:s},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return zm({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},vb,o)})(u);return Xp.jsx(yb,{as:i,ownerState:u,className:Bg(d.root,o),ref:t,...c,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${tm("#fff",dg(a))}, ${tm("#fff",dg(a))})`}},...c.style}})}),xb=C.oneOfType([C.func,C.object]);function Sb(e){try{return e.matches(":focus-visible")}catch(e){}return!1}class Cb{static create(){return new Cb}static use(){const e=ob(Cb.create).current,[t,n]=s.useState(!1);return e.shouldMount=t,e.setShouldMount=n,s.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const kb=Ph("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Eb=zp`
|
|
32
|
-
0% {
|
|
33
|
-
transform: scale(0);
|
|
34
|
-
opacity: 0.1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
100% {
|
|
38
|
-
transform: scale(1);
|
|
39
|
-
opacity: 0.3;
|
|
40
|
-
}
|
|
41
|
-
`,Rb=zp`
|
|
42
|
-
0% {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
100% {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
`,Mb=zp`
|
|
50
|
-
0% {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
50% {
|
|
55
|
-
transform: scale(0.92);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
100% {
|
|
59
|
-
transform: scale(1);
|
|
60
|
-
}
|
|
61
|
-
`,Pb=Ig("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tb=Ig(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=s.useState(!1),f=Bg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Bg(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||p(!0),s.useEffect(()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}},[c,l,u]),Xp.jsx("span",{className:f,style:h,children:Xp.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
62
|
-
opacity: 0;
|
|
63
|
-
position: absolute;
|
|
64
|
-
|
|
65
|
-
&.${kb.rippleVisible} {
|
|
66
|
-
opacity: 0.3;
|
|
67
|
-
transform: scale(1);
|
|
68
|
-
animation-name: ${Eb};
|
|
69
|
-
animation-duration: ${550}ms;
|
|
70
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.${kb.ripplePulsate} {
|
|
74
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
& .${kb.child} {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
display: block;
|
|
80
|
-
width: 100%;
|
|
81
|
-
height: 100%;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
background-color: currentColor;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
& .${kb.childLeaving} {
|
|
87
|
-
opacity: 0;
|
|
88
|
-
animation-name: ${Rb};
|
|
89
|
-
animation-duration: ${550}ms;
|
|
90
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
& .${kb.childPulsate} {
|
|
94
|
-
position: absolute;
|
|
95
|
-
/* @noflip */
|
|
96
|
-
left: 0px;
|
|
97
|
-
top: 0;
|
|
98
|
-
animation-name: ${Mb};
|
|
99
|
-
animation-duration: 2500ms;
|
|
100
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
101
|
-
animation-iteration-count: infinite;
|
|
102
|
-
animation-delay: 200ms;
|
|
103
|
-
}
|
|
104
|
-
`,Ib=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[l,c]=s.useState([]),u=s.useRef(0),d=s.useRef(null);s.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=s.useRef(!1),f=sb(),h=s.useRef(null),m=s.useRef(null),g=s.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c(e=>[...e,Xp.jsx(Tb,{classes:{ripple:Bg(o.ripple,kb.ripple),rippleVisible:Bg(o.rippleVisible,kb.rippleVisible),ripplePulsate:Bg(o.ripplePulsate,kb.ripplePulsate),child:Bg(o.child,kb.child),childLeaving:Bg(o.childLeaving,kb.childLeaving),childPulsate:Bg(o.childPulsate,kb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,d.current=a},[o]),b=s.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,g,f]),v=s.useCallback(()=>{b({},{pulsate:!0})},[b]),y=s.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void f.start(0,()=>{y(e,t)});h.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return s.useImperativeHandle(t,()=>({pulsate:v,start:b,stop:y}),[v,b,y]),Xp.jsx(Pb,{className:Bg(kb.root,o.root,i),ref:m,...a,children:Xp.jsx(Zo,{component:null,exit:!0,children:l})})});function Ob(e){return Mh("MuiButtonBase",e)}const Db=Ph("MuiButtonBase",["root","disabled","focusVisible"]),Fb=Ig("button",{name:"MuiButtonBase",slot:"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"},[`&.${Db.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lb=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:f,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:v,onFocus:y,onFocusVisible:w,onKeyDown:x,onKeyUp:S,onMouseDown:C,onMouseLeave:k,onMouseUp:E,onTouchEnd:R,onTouchMove:M,onTouchStart:P,tabIndex:T=0,TouchRippleProps:I,touchRippleRef:O,type:D,...F}=n,L=s.useRef(null),A=Cb.use(),$=tb(A.ref,O),[N,z]=s.useState(!1);c&&N&&z(!1),s.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),L.current.focus()}}),[]);const j=A.shouldMount&&!u&&!c;s.useEffect(()=>{N&&p&&!u&&A.pulsate()},[u,p,N,A]);const _=Ab(A,"start",C,d),B=Ab(A,"stop",b,d),H=Ab(A,"stop",v,d),V=Ab(A,"stop",E,d),W=Ab(A,"stop",e=>{N&&e.preventDefault(),k&&k(e)},d),U=Ab(A,"start",P,d),G=Ab(A,"stop",R,d),K=Ab(A,"stop",M,d),q=Ab(A,"stop",e=>{Sb(e.target)||z(!1),m&&m(e)},!1),Y=eb(e=>{L.current||(L.current=e.currentTarget),Sb(e.target)&&(z(!0),w&&w(e)),y&&y(e)}),X=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},Q=eb(e=>{p&&!e.repeat&&N&&" "===e.key&&A.stop(e,()=>{A.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))}),Z=eb(e=>{p&&" "===e.key&&N&&!e.defaultPrevented&&A.stop(e,()=>{A.pulsate(e)}),S&&S(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let J=l;"button"===J&&(F.href||F.to)&&(J=h);const ee={};if("button"===J){const e=!!F.formAction;ee.type=void 0!==D||e?D:"button",ee.disabled=c}else F.href||F.to||(ee.role="button"),c&&(ee["aria-disabled"]=c);const te=tb(t,L),ne={...n,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:T,focusVisible:N},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=zm({root:["root",t&&"disabled",n&&"focusVisible"]},Ob,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return Xp.jsxs(Fb,{as:J,className:Bg(re.root,a),ownerState:ne,onBlur:q,onClick:g,onContextMenu:B,onFocus:Y,onKeyDown:Q,onKeyUp:Z,onMouseDown:_,onMouseLeave:W,onMouseUp:V,onDragLeave:H,onTouchEnd:G,onTouchMove:K,onTouchStart:U,ref:te,tabIndex:c?-1:T,type:D,...ee,...F,children:[i,j?Xp.jsx(Ib,{ref:$,center:o,...I}):null]})});function Ab(e,t,n,r=!1){return eb(o=>(n&&n(o),r||e[t](o),!0))}function $b(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function Nb(e){return Mh("MuiAlert",e)}const zb=Ph("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function jb(e){return Mh("MuiCircularProgress",e)}Ph("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _b=44,Bb=zp`
|
|
105
|
-
0% {
|
|
106
|
-
transform: rotate(0deg);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
100% {
|
|
110
|
-
transform: rotate(360deg);
|
|
111
|
-
}
|
|
112
|
-
`,Hb=zp`
|
|
113
|
-
0% {
|
|
114
|
-
stroke-dasharray: 1px, 200px;
|
|
115
|
-
stroke-dashoffset: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
50% {
|
|
119
|
-
stroke-dasharray: 100px, 200px;
|
|
120
|
-
stroke-dashoffset: -15px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
100% {
|
|
124
|
-
stroke-dasharray: 1px, 200px;
|
|
125
|
-
stroke-dashoffset: -126px;
|
|
126
|
-
}
|
|
127
|
-
`,Vb="string"!=typeof Bb?Np`
|
|
128
|
-
animation: ${Bb} 1.4s linear infinite;
|
|
129
|
-
`:null,Wb="string"!=typeof Hb?Np`
|
|
130
|
-
animation: ${Hb} 1.4s ease-in-out infinite;
|
|
131
|
-
`:null,Ub=Ig("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xf(n.color)}`]]}})(Vg(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Vb||{animation:`${Bb} 1.4s linear infinite`}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Gb=Ig("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Kb=Ig("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xf(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vg(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Wb||{animation:`${Hb} 1.4s ease-in-out infinite`}}]}))),qb=Ig("circle",{name:"MuiCircularProgress",slot:"Track"})(Vg(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Yb=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:l=40,style:s,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:l,thickness:c,value:u,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return zm({root:["root",n,`color${xf(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${xf(n)}`,o&&"circleDisableShrink"]},jb,t)})(f),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((_b-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return Xp.jsx(Ub,{className:Bg(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...b,...p,children:Xp.jsxs(Gb,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?Xp.jsx(qb,{className:h.track,ownerState:f,cx:_b,cy:_b,r:(_b-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,Xp.jsx(Kb,{className:h.circle,style:m,ownerState:f,cx:_b,cy:_b,r:(_b-c)/2,fill:"none",strokeWidth:c})]})})});function Xb(e){return Mh("MuiIconButton",e)}const Qb=Ph("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Zb=Ig(Lb,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${xf(n.color)}`],n.edge&&t[`edge${xf(n.edge)}`],t[`size${xf(n.size)}`]]}})(Vg(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Vg(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Qb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Qb.loading}`]:{color:"transparent"}}))),Jb=Ig("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ev=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=xm(u),m=p??Xp.jsx(Yb,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:l,disableFocusRipple:s,loading:d,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return zm({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${xf(r)}`,o&&`edge${xf(o)}`,`size${xf(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Xb,t)})(g);return Xp.jsxs(Zb,{id:d?h:u,className:Bg(b.root,i),centerRipple:!0,focusRipple:!s,disabled:l||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&Xp.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:Xp.jsx(Jb,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})});var tv=qg(Xp.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),nv=qg(Xp.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),rv=qg(Xp.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),ov=qg(Xp.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),iv=qg(Xp.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"}));const av=Ig(wb,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xf(n.color||n.severity)}`]]}})(Vg(({theme:e})=>{const t="light"===e.palette.mode?e.darken:e.lighten,n="light"===e.palette.mode?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter($b(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${zb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter($b(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${zb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter($b(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),lv=Ig("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),sv=Ig("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),cv=Ig("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),uv={success:Xp.jsx(tv,{fontSize:"inherit"}),warning:Xp.jsx(nv,{fontSize:"inherit"}),error:Xp.jsx(rv,{fontSize:"inherit"}),info:Xp.jsx(ov,{fontSize:"inherit"})},dv=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiAlert"}),{action:r,children:o,className:i,closeText:a="Close",color:l,components:s={},componentsProps:c={},icon:u,iconMapping:d=uv,onClose:p,role:f="alert",severity:h="success",slotProps:m={},slots:g={},variant:b="standard",...v}=n,y={...n,color:l,severity:h,variant:b,colorSeverity:l||h},w=(e=>{const{variant:t,color:n,severity:r,classes:o}=e;return zm({root:["root",`color${xf(n||r)}`,`${t}${xf(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},Nb,o)})(y),x={slots:{closeButton:s.CloseButton,closeIcon:s.CloseIcon,...g},slotProps:{...c,...m}},[S,C]=bb("root",{ref:t,shouldForwardComponentProp:!0,className:Bg(w.root,i),elementType:av,externalForwardedProps:{...x,...v},ownerState:y,additionalProps:{role:f,elevation:0}}),[k,E]=bb("icon",{className:w.icon,elementType:lv,externalForwardedProps:x,ownerState:y}),[R,M]=bb("message",{className:w.message,elementType:sv,externalForwardedProps:x,ownerState:y}),[P,T]=bb("action",{className:w.action,elementType:cv,externalForwardedProps:x,ownerState:y}),[I,O]=bb("closeButton",{elementType:ev,externalForwardedProps:x,ownerState:y}),[D,F]=bb("closeIcon",{elementType:iv,externalForwardedProps:x,ownerState:y});return Xp.jsxs(S,{...C,children:[!1!==u?Xp.jsx(k,{...E,children:u||d[h]||uv[h]}):null,Xp.jsx(R,{...M,children:o}),null!=r?Xp.jsx(P,{...T,children:r}):null,null==r&&p?Xp.jsx(P,{...T,children:Xp.jsx(I,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...O,children:Xp.jsx(D,{fontSize:"small",...F})})}):null]})});function pv(e){return Mh("MuiTypography",e)}const fv=Ph("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mv=xh,gv=Ig("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${xf(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Vg(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${xf(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),bv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vv=s.forwardRef(function(e,t){const{color:n,...r}=Wg({props:e,name:"MuiTypography"}),o=mv({...r,...!hv[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bv,...f}=o,h={...o,align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p},m=l||(u?"p":p[d]||bv[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return zm({root:["root",i,"inherit"!==e.align&&`align${xf(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},pv,a)})(h);return Xp.jsx(gv,{as:m,ref:t,className:Bg(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})});function yv(e){const t=s.useRef({});return s.useEffect(()=>{t.current=e}),t.current}function wv({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function xv(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Sv=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=xv(c));const u=c?e.filter(e=>{let r=(i||s)(e);return n&&(r=r.toLowerCase()),t&&(r=xv(r)),"start"===o?r.startsWith(c):r.includes(c)}):e;return"number"==typeof r?u.slice(0,r):u}}(),Cv=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),kv=[];function Ev(e,t,n,r){if(t||null==e||r)return"";const o=n(e);return"string"==typeof o?o:""}function Rv(e){const{unstable_isActiveElementInListbox:t=Cv,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?kv:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=Sv,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:S=e=>e.label??e,groupBy:C,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:R=!1,inputValue:M,isOptionEqualToValue:P=(e,t)=>e===t,multiple:T=!1,onChange:I,onClose:O,onHighlightChange:D,onInputChange:F,onOpen:L,open:A,openOnFocus:$=!1,options:N,readOnly:z=!1,renderValue:j,selectOnFocus:_=!e.freeSolo,value:B}=e,H=xm(E);let V=S;V=e=>{const t=S(e);return"string"!=typeof t?String(t):t};const W=s.useRef(!1),U=s.useRef(!0),G=s.useRef(null),K=s.useRef(null),[q,Y]=s.useState(null),[X,Q]=s.useState(-1),Z=o?0:-1,J=s.useRef(Z),ee=s.useRef(Ev(d??B,T,V)).current,[te,ne]=Jg({controlled:B,default:d,name:u}),[re,oe]=Jg({controlled:M,default:ee,name:u,state:"inputValue"}),[ie,ae]=s.useState(!1),le=s.useCallback((e,t,n)=>{if(!(T?te.length<t.length:null!==t)&&!l)return;const r=Ev(t,T,V,j);re!==r&&(oe(r),F&&F(e,r,n))},[V,re,T,F,oe,l,te,j]),[se,ce]=Jg({controlled:A,default:!1,name:u,state:"open"}),[ue,de]=s.useState(!0),pe=!T&&null!=te&&re===V(te),fe=se&&!z,he=fe?b(N.filter(e=>!v||!(T?te:[te]).some(t=>null!==t&&P(e,t))),{inputValue:pe&&ue?"":re,getOptionLabel:V}):[],me=yv({filteredOptions:he,value:te,inputValue:re});s.useEffect(()=>{const e=te!==me.value;ie&&!e||y&&!e||le(null,te,"reset")},[te,le,ie,me.value,y]);const ge=se&&he.length>0&&!z,be=eb(e=>{if(-1===e)G.current.focus();else{const t=j?"data-item-index":"data-tag-index";q.querySelector(`[${t}="${e}"]`).focus()}});s.useEffect(()=>{T&&X>te.length-1&&(Q(-1),be(-1))},[te,T,X,be]);const ve=eb(({event:e,index:t,reason:r})=>{if(J.current=t,-1===t?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${H}-option-${t}`),D&&["mouse","keyboard","touch"].includes(r)&&D(e,-1===t?null:he[t],r),!K.current)return;const o=K.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let i=K.current;if("listbox"!==K.current.getAttribute("role")&&(i=K.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=K.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}}),ye=eb(({event:e,diff:t,direction:n="next",reason:o})=>{if(!fe)return;const i=function(e,t){if(!K.current||e<0||e>=he.length)return-1;let n=e;for(;;){const r=K.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%he.length:(n-1+he.length)%he.length,n===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&R?-1:g&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&R?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ve({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)G.current.value=re;else{const e=V(he[i]);G.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&G.current.setSelectionRange(re.length,e.length)}}),we=!wv({array1:me.filteredOptions,array2:he,parser:V}),xe=s.useCallback(()=>{if(!fe)return;const e=(()=>{if(-1!==J.current&&!wv({array1:me.filteredOptions,array2:he,parser:V})&&me.inputValue===re&&(T?te.length===me.value.length&&me.value.every((e,t)=>V(te[t])===V(e)):(e=me.value,t=te,(e?V(e):"")===(t?V(t):"")))){const e=me.filteredOptions[J.current];if(e)return he.findIndex(t=>V(t)===V(e))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=T?te[0]:te;if(0!==he.length&&null!=t){if(K.current){if(null!=t){const e=he[J.current];if(T&&e&&-1!==te.findIndex(t=>P(e,t)))return;const n=he.findIndex(e=>P(e,t));return void(-1===n?ye({diff:"reset"}):ve({index:n}))}J.current>=he.length-1?ve({index:he.length-1}):ve({index:J.current})}}else ye({diff:"reset"})},[he.length,!T&&te,ye,ve,fe,re,T]),Se=eb(e=>{Zg(K,e),e&&xe()});s.useEffect(()=>{(we||fe)&&xe()},[xe,we,fe]);const Ce=e=>{se||(ce(!0),de(!0),L&&L(e))},ke=(e,t)=>{se&&(ce(!1),O&&O(e,t))},Ee=(e,t,n,r)=>{if(T){if(te.length===t.length&&te.every((e,n)=>e===t[n]))return}else if(te===t)return;I&&I(e,t,n,r),ne(t)},Re=s.useRef(!1),Me=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(T){i=Array.isArray(te)?te.slice():[];const e=i.findIndex(e=>P(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}le(e,i,o),Ee(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||ke(e,o),(!0===a||"touch"===a&&Re.current||"mouse"===a&&!Re.current)&&G.current.blur()};const Pe=(e,t)=>{if(!T)return;""===re&&ke(e,"toggleInput");let n=X;-1===X?""===re&&"previous"===t&&(n=te.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===te.length||"previous"===t&&-1===n)return-1;const e=j?"data-item-index":"data-tag-index",r=q.querySelector(`[${e}="${n}"]`);if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Q(n),be(n)},Te=e=>{W.current=!0,oe(""),F&&F(e,"","clear"),Ee(e,T?[]:null,"clear")},Ie=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===X||["ArrowLeft","ArrowRight"].includes(t.key)||(Q(-1),be(-1)),229!==t.which))switch(t.key){case"Home":fe&&k&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&k&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ce(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),Ce(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),Ce(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ce(t);break;case"ArrowLeft":!T&&j&&null!=te?(Q(0),be(0)):Pe(t,"previous");break;case"ArrowRight":!T&&j?(Q(-1),be(-1)):Pe(t,"next");break;case"Enter":if(-1!==J.current&&fe){const e=he[J.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Me(t,e,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else y&&""!==re&&!1===pe&&(T&&t.preventDefault(),Me(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),ke(t,"escape")):c&&(""!==re||T&&te.length>0||j)&&(t.preventDefault(),t.stopPropagation(),Te(t));break;case"Backspace":if(T&&!z&&""===re&&te.length>0){const e=-1===X?te.length-1:X,n=te.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:te[e]})}T||!j||z||(ne(null),Q(-1),be(-1));break;case"Delete":if(T&&!z&&""===re&&te.length>0&&-1!==X){const e=X,n=te.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:te[e]})}T||!j||z||(ne(null),Q(-1),be(-1))}},Oe=e=>{ae(!0),-1!==X&&(Q(-1),be(-1)),$&&!W.current&&Ce(e)},De=e=>{t(K)?G.current.focus():(ae(!1),U.current=!0,W.current=!1,i&&-1!==J.current&&fe?Me(e,he[J.current],"blur"):i&&y&&""!==re?Me(e,re,"blur","freeSolo"):l&&le(e,te,"blur"),ke(e,"blur"))},Fe=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),F&&F(e,t,"input")),""===t?p||T||Ee(e,null,"clear"):Ce(e)},Le=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ve({event:e,index:t,reason:"mouse"})},Ae=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Re.current=!0},$e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Me(e,he[t],"selectOption"),Re.current=!1},Ne=e=>t=>{const n=te.slice();n.splice(e,1),Ee(t,n,"removeOption",{option:te[e]})},ze=e=>{Ee(e,null,"removeOption",{option:te})},je=e=>{se?ke(e,"toggleInput"):Ce(e)},_e=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==H&&e.preventDefault()},Be=e=>{e.currentTarget.contains(e.target)&&(G.current.focus(),_&&U.current&&G.current.selectionEnd-G.current.selectionStart===0&&G.current.select(),U.current=!1)},He=e=>{h||""!==re&&se||je(e)};let Ve=y&&re.length>0;Ve=Ve||(T?te.length>0:null!==te);let We=he;return C&&(We=he.reduce((e,t,n)=>{const r=C(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),h&&ie&&De(),{getRootProps:(e={})=>({...e,onKeyDown:Ie(e),onMouseDown:_e,onClick:Be}),getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:re,onBlur:De,onFocus:Oe,onChange:Fe,onMouseDown:He,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${H}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Te}),getItemProps:({index:e=0}={})=>({...T&&{key:e},...j?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!z&&{onDelete:T?Ne(e):ze}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!z&&{onDelete:Ne(e)}}),getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:Se,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?te:[te]).some(e=>null!=e&&P(t,e)),r=!!w&&w(t);return{key:x?.(t)??V(t),tabIndex:-1,role:"option",id:`${H}-option-${e}`,onMouseMove:Le,onClick:$e,onTouchStart:Ae,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:H,inputValue:re,value:te,dirty:Ve,expanded:fe&&q,popupOpen:fe,focused:ie||-1!==X,anchorEl:q,setAnchorEl:Y,focusedItem:X,focusedTag:X,groupedOptions:We}}var Mv="top",Pv="bottom",Tv="right",Iv="left",Ov="auto",Dv=[Mv,Pv,Tv,Iv],Fv="start",Lv="end",Av="viewport",$v="popper",Nv=Dv.reduce(function(e,t){return e.concat([t+"-"+Fv,t+"-"+Lv])},[]),zv=[].concat(Dv,[Ov]).reduce(function(e,t){return e.concat([t,t+"-"+Fv,t+"-"+Lv])},[]),jv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _v(e){return e?(e.nodeName||"").toLowerCase():null}function Bv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hv(e){return e instanceof Bv(e).Element||e instanceof Element}function Vv(e){return e instanceof Bv(e).HTMLElement||e instanceof HTMLElement}function Wv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Bv(e).ShadowRoot||e instanceof ShadowRoot)}var Uv={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Vv(o)&&_v(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Vv(r)&&_v(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Gv(e){return e.split("-")[0]}var Kv=Math.max,qv=Math.min,Yv=Math.round;function Xv(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qv(){return!/^((?!chrome|android).)*safari/i.test(Xv())}function Zv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Vv(e)&&(o=e.offsetWidth>0&&Yv(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Yv(r.height)/e.offsetHeight||1);var a=(Hv(e)?Bv(e):window).visualViewport,l=!Qv()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Jv(e){var t=Zv(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 ey(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Wv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ty(e){return Bv(e).getComputedStyle(e)}function ny(e){return["table","td","th"].indexOf(_v(e))>=0}function ry(e){return((Hv(e)?e.ownerDocument:e.document)||window.document).documentElement}function oy(e){return"html"===_v(e)?e:e.assignedSlot||e.parentNode||(Wv(e)?e.host:null)||ry(e)}function iy(e){return Vv(e)&&"fixed"!==ty(e).position?e.offsetParent:null}function ay(e){for(var t=Bv(e),n=iy(e);n&&ny(n)&&"static"===ty(n).position;)n=iy(n);return n&&("html"===_v(n)||"body"===_v(n)&&"static"===ty(n).position)?t:n||function(e){var t=/firefox/i.test(Xv());if(/Trident/i.test(Xv())&&Vv(e)&&"fixed"===ty(e).position)return null;var n=oy(e);for(Wv(n)&&(n=n.host);Vv(n)&&["html","body"].indexOf(_v(n))<0;){var r=ty(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ly(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sy(e,t,n){return Kv(e,qv(t,n))}function cy(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function uy(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var dy={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Gv(n.placement),s=ly(l),c=[Iv,Tv].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return cy("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:uy(e,Dv))}(o.padding,n),d=Jv(i),p="y"===s?Mv:Iv,f="y"===s?Pv:Tv,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=ay(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],w=b-d[c]-u[f],x=b/2-d[c]/2+v,S=sy(y,x,w),C=s;n.modifiersData[r]=((t={})[C]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ey(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function py(e){return e.split("-")[1]}var fy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=Iv,w=Mv,x=window;if(c){var S=ay(n),C="clientHeight",k="clientWidth";if(S===Bv(n)&&"static"!==ty(S=ry(n)).position&&"absolute"===l&&(C="scrollHeight",k="scrollWidth"),o===Mv||(o===Iv||o===Tv)&&i===Lv)w=Pv,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[C])-r.height,m*=s?1:-1;if(o===Iv||(o===Mv||o===Pv)&&i===Lv)y=Tv,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-r.width,f*=s?1:-1}var E,R=Object.assign({position:l},c&&fy),M=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Yv(n*o)/o||0,y:Yv(r*o)/o||0}}({x:f,y:m},Bv(n)):{x:f,y:m};return f=M.x,m=M.y,s?Object.assign({},R,((E={})[w]=v?"0":"",E[y]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},R,((t={})[w]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var my={passive:!0};var gy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Bv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,my)}),l&&s.addEventListener("resize",n.update,my),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,my)}),l&&s.removeEventListener("resize",n.update,my)}},data:{}},by={left:"right",right:"left",bottom:"top",top:"bottom"};function vy(e){return e.replace(/left|right|bottom|top/g,function(e){return by[e]})}var yy={start:"end",end:"start"};function wy(e){return e.replace(/start|end/g,function(e){return yy[e]})}function xy(e){var t=Bv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sy(e){return Zv(ry(e)).left+xy(e).scrollLeft}function Cy(e){var t=ty(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ky(e){return["html","body","#document"].indexOf(_v(e))>=0?e.ownerDocument.body:Vv(e)&&Cy(e)?e:ky(oy(e))}function Ey(e,t){var n;void 0===t&&(t=[]);var r=ky(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Bv(r),a=o?[i].concat(i.visualViewport||[],Cy(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Ey(oy(a)))}function Ry(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function My(e,t,n){return t===Av?Ry(function(e,t){var n=Bv(e),r=ry(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Qv();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Sy(e),y:s}}(e,n)):Hv(t)?function(e,t){var n=Zv(e,!1,"fixed"===t);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}(t,n):Ry(function(e){var t,n=ry(e),r=xy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Kv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Kv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Sy(e),s=-r.scrollTop;return"rtl"===ty(o||n).direction&&(l+=Kv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(ry(e)))}function Py(e,t,n,r){var o="clippingParents"===t?function(e){var t=Ey(oy(e)),n=["absolute","fixed"].indexOf(ty(e).position)>=0&&Vv(e)?ay(e):e;return Hv(n)?t.filter(function(e){return Hv(e)&&ey(e,n)&&"body"!==_v(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=My(e,n,r);return t.top=Kv(o.top,t.top),t.right=qv(o.right,t.right),t.bottom=qv(o.bottom,t.bottom),t.left=Kv(o.left,t.left),t},My(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ty(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Gv(o):null,a=o?py(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Mv:t={x:l,y:n.y-r.height};break;case Pv:t={x:l,y:n.y+n.height};break;case Tv:t={x:n.x+n.width,y:s};break;case Iv:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?ly(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Fv:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Lv:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Iy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Av:c,d=n.elementContext,p=void 0===d?$v:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=cy("number"!=typeof g?g:uy(g,Dv)),v=p===$v?"reference":$v,y=e.rects.popper,w=e.elements[h?v:p],x=Py(Hv(w)?w:w.contextElement||ry(e.elements.popper),s,u,a),S=Zv(e.elements.reference),C=Ty({reference:S,element:y,placement:o}),k=Ry(Object.assign({},y,C)),E=p===$v?k:S,R={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},M=e.modifiersData.offset;if(p===$v&&M){var P=M[o];Object.keys(R).forEach(function(e){var t=[Tv,Pv].indexOf(e)>=0?1:-1,n=[Mv,Pv].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t})}return R}function Oy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?zv:s,u=py(r),d=u?l?Nv:Nv.filter(function(e){return py(e)===u}):Dv,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Iy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Gv(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Dy={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=Gv(g),v=s||(b===g||!h?[vy(g)]:function(e){if(Gv(e)===Ov)return[];var t=vy(e);return[wy(e),t,wy(t)]}(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Gv(n)===Ov?Oy(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,k=y[0],E=0;E<y.length;E++){var R=y[E],M=Gv(R),P=py(R)===Fv,T=[Mv,Pv].indexOf(M)>=0,I=T?"width":"height",O=Iy(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=T?P?Tv:Iv:P?Pv:Mv;w[I]>x[I]&&(D=vy(D));var F=vy(D),L=[];if(i&&L.push(O[M]<=0),l&&L.push(O[D]<=0,O[F]<=0),L.every(function(e){return e})){k=R,C=!1;break}S.set(R,L)}if(C)for(var A=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},$=h?3:1;$>0;$--){if("break"===A($))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Fy(e,t,n){return void 0===n&&(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 Ly(e){return[Mv,Tv,Pv,Iv].some(function(t){return e[t]>=0})}var Ay={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Iy(t,{elementContext:"reference"}),l=Iy(t,{altBoundary:!0}),s=Fy(a,r),c=Fy(l,o,i),u=Ly(s),d=Ly(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var $y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=zv.reduce(function(e,n){return e[n]=function(e,t,n){var r=Gv(e),o=[Iv,Mv].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Iv,Tv].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Ny={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ty({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var zy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Iy(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Gv(t.placement),v=py(t.placement),y=!v,w=ly(b),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(i){var T,I="y"===w?Mv:Iv,O="y"===w?Pv:Tv,D="y"===w?"height":"width",F=S[w],L=F+g[I],A=F-g[O],$=f?-k[D]/2:0,N=v===Fv?C[D]:k[D],z=v===Fv?-k[D]:-C[D],j=t.elements.arrow,_=f&&j?Jv(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[I],V=B[O],W=sy(0,C[D],_[D]),U=y?C[D]/2-$-W-H-R.mainAxis:N-W-H-R.mainAxis,G=y?-C[D]/2+$+W+V+R.mainAxis:z+W+V+R.mainAxis,K=t.elements.arrow&&ay(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(T=null==M?void 0:M[w])?T:0,X=F+G-Y,Q=sy(f?qv(L,F+U-Y-q):L,F,f?Kv(A,X):A);S[w]=Q,P[w]=Q-F}if(l){var Z,J="x"===w?Mv:Iv,ee="x"===w?Pv:Tv,te=S[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[Mv,Iv].indexOf(b),ae=null!=(Z=null==M?void 0:M[x])?Z:0,le=ie?re:te-C[ne]-k[ne]-ae+R.altAxis,se=ie?te+C[ne]+k[ne]-ae-R.altAxis:oe,ce=f&&ie?function(e,t,n){var r=sy(e,t,n);return r>n?n:r}(le,te,se):sy(f?le:re,te,f?se:oe);S[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function jy(e,t,n){void 0===n&&(n=!1);var r=Vv(t),o=Vv(t)&&function(e){var t=e.getBoundingClientRect(),n=Yv(t.width)/e.offsetWidth||1,r=Yv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ry(t),a=Zv(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==_v(t)||Cy(i))&&(l=function(e){return e!==Bv(e)&&Vv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:xy(e);var t}(t)),Vv(t)?((s=Zv(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Sy(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function _y(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var By={placement:"bottom",modifiers:[],strategy:"absolute"};function Hy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Vy(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?By:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},By,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:Hv(e)?Ey(e):e.contextElement?Ey(e.contextElement):[],popper:Ey(t)};var a,c,p=function(e){var t=_y(e);return jv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,l.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return l.orderedModifiers=p.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:u,options:r}),a=function(){};s.push(i||a)}}),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Hy(t,n)){l.rects={reference:jy(t,ay(n),"fixed"===l.options.strategy),popper:Jv(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),c=!0}};if(!Hy(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Wy=Vy({defaultModifiers:[gy,Ny,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Gv(t.placement),variation:py(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,hy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,hy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Uv,$y,Dy,zy,dy,Ay]});function Uy(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:fb(n,r),{props:l,internalRef:s}=gb({...i,externalSlotProps:a});return pb(t,{...l,ref:tb(s,a?.ref,e.additionalProps?.ref)},r)}function Gy(e){return parseInt(s.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Ky=s.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=s.useState(null),l=tb(s.isValidElement(n)?Gy(n):null,t);if(Wh(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Wh(()=>{if(i&&!o)return Zg(t,i),()=>{Zg(t,null)}},[t,i,o]),o){if(s.isValidElement(n)){const e={ref:l};return s.cloneElement(n,e)}return n}return i?So.createPortal(n,i):i});function qy(e){return Mh("MuiPopper",e)}function Yy(e){return"function"==typeof e?e():e}Ph("MuiPopper",["root"]);const Xy={},Qy=s.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,b=s.useRef(null),v=tb(b,t),y=s.useRef(null),w=tb(y,d),x=s.useRef(w);Wh(()=>{x.current=w},[w]),s.useImperativeHandle(d,()=>y.current,[]);const S=function(e,t){if("ltr"===t)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}}(c,o),[C,k]=s.useState(S),[E,R]=s.useState(Yy(n));s.useEffect(()=>{y.current&&y.current.forceUpdate()}),s.useEffect(()=>{n&&R(Yy(n))},[n]),Wh(()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=a&&(e=e.concat(a)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Wy(E,b.current,{placement:S,...u,modifiers:e});return x.current(t),()=>{t.destroy(),x.current(null)}},[E,i,a,l,u,S]);const M={placement:C};null!==h&&(M.TransitionProps=h);const P=(e=>{const{classes:t}=e;return zm({root:["root"]},qy,t)})(e),T=f.root??"div",I=Uy({elementType:T,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:P.root});return Xp.jsx(T,{...I,children:"function"==typeof r?r(M):r})}),Zy=s.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Xy,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:b={},...v}=e,[y,w]=s.useState(!0);if(!l&&!u&&(!m||y))return null;let x;if(o)x=o;else if(n){const e=Yy(n);x=e&&void 0!==e.nodeType?Xg(e).body:Xg(null).body}const S=u||!l||m&&!y?void 0:"none",C=m?{in:u,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return Xp.jsx(Ky,{disablePortal:a,container:x,children:Xp.jsx(Qy,{anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:m?!y:u,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:b,...v,style:{position:"fixed",top:0,left:0,display:S,...h},TransitionProps:C,children:r})})}),Jy=Ig(Zy,{name:"MuiPopper",slot:"Root"})({}),ew=s.forwardRef(function(e,t){const n=mm(),r=Wg({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:l,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:b,slotProps:v,...y}=r,w=b?.root??a?.Root,x={anchorEl:o,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...y};return Xp.jsx(Jy,{as:i,direction:n?"rtl":"ltr",slots:{root:w},slotProps:v??l,...x,ref:t})});function tw(e){return Mh("MuiListSubheader",e)}Ph("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const nw=Ig("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${xf(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Vg(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),rw=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:l=!1,inset:s=!1,...c}=n,u={...n,color:o,component:i,disableGutters:a,disableSticky:l,inset:s},d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return zm({root:["root","default"!==n&&`color${xf(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},tw,t)})(u);return Xp.jsx(nw,{as:i,className:Bg(d.root,r),ref:t,ownerState:u,...c})});rw&&(rw.muiSkipListHighlight=!0);var ow=qg(Xp.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"}));function iw(e){return Mh("MuiChip",e)}const aw=Ph("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),lw=Ig("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:s}=n;return[{[`& .${aw.avatar}`]:t.avatar},{[`& .${aw.avatar}`]:t[`avatar${xf(l)}`]},{[`& .${aw.avatar}`]:t[`avatarColor${xf(r)}`]},{[`& .${aw.icon}`]:t.icon},{[`& .${aw.icon}`]:t[`icon${xf(l)}`]},{[`& .${aw.icon}`]:t[`iconColor${xf(o)}`]},{[`& .${aw.deleteIcon}`]:t.deleteIcon},{[`& .${aw.deleteIcon}`]:t[`deleteIcon${xf(l)}`]},{[`& .${aw.deleteIcon}`]:t[`deleteIconColor${xf(r)}`]},{[`& .${aw.deleteIcon}`]:t[`deleteIcon${xf(s)}Color${xf(r)}`]},t.root,t[`size${xf(l)}`],t[`color${xf(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${xf(r)}`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${xf(r)}`],t[s],t[`${s}${xf(r)}`]]}})(Vg(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,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",[`&.${aw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${aw.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${aw.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${aw.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${aw.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${aw.icon}`]:{marginLeft:5,marginRight:-6},[`& .${aw.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${aw.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${aw.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter($b(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${aw.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${aw.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${aw.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${aw.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter($b(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${aw.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${aw.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter($b(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${aw.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${aw.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${aw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${aw.avatar}`]:{marginLeft:4},[`& .${aw.avatarSmall}`]:{marginLeft:2},[`& .${aw.icon}`]:{marginLeft:4},[`& .${aw.iconSmall}`]:{marginLeft:2},[`& .${aw.deleteIcon}`]:{marginRight:5},[`& .${aw.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${aw.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${aw.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${aw.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),sw=Ig("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${xf(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function cw(e){return"Backspace"===e.key||"Delete"===e.key}const uw=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:g,size:b="medium",variant:v="filled",tabIndex:y,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:S={},...C}=n,k=tb(s.useRef(null),t),E=e=>{e.stopPropagation(),h&&h(e)},R=!(!1===i||!f)||i,M=R||h?Lb:l||"div",P={...n,component:M,disabled:u,size:b,color:a,iconColor:s.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:R,variant:v},T=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:s}=e;return zm({root:["root",s,n&&"disabled",`size${xf(r)}`,`color${xf(o)}`,l&&"clickable",l&&`clickableColor${xf(o)}`,a&&"deletable",a&&`deletableColor${xf(o)}`,`${s}${xf(o)}`],label:["label",`label${xf(r)}`],avatar:["avatar",`avatar${xf(r)}`,`avatarColor${xf(o)}`],icon:["icon",`icon${xf(r)}`,`iconColor${xf(i)}`],deleteIcon:["deleteIcon",`deleteIcon${xf(r)}`,`deleteIconColor${xf(o)}`,`deleteIcon${xf(s)}Color${xf(o)}`]},iw,t)})(P),I=M===Lb?{component:l||"div",focusVisibleClassName:T.focusVisible,...h&&{disableRipple:!0}}:{};let O=null;h&&(O=c&&s.isValidElement(c)?s.cloneElement(c,{className:Bg(c.props.className,T.deleteIcon),onClick:E}):Xp.jsx(ow,{className:T.deleteIcon,onClick:E}));let D=null;r&&s.isValidElement(r)&&(D=s.cloneElement(r,{className:Bg(T.avatar,r.props.className)}));let F=null;d&&s.isValidElement(d)&&(F=s.cloneElement(d,{className:Bg(T.icon,d.props.className)}));const L={slots:x,slotProps:S},[A,$]=bb("root",{elementType:lw,externalForwardedProps:{...L,...C},ownerState:P,shouldForwardComponentProp:!0,ref:k,className:Bg(T.root,o),additionalProps:{disabled:!(!R||!u)||void 0,tabIndex:w&&u?-1:y,...I},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&cw(e)&&e.preventDefault(),m&&m(e)})(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&h&&cw(e)&&h(e),g&&g(e)})(t)}})}),[N,z]=bb("label",{elementType:sw,externalForwardedProps:L,ownerState:P,className:T.label});return Xp.jsxs(A,{as:M,...$,children:[D||F,Xp.jsx(N,{...z,children:p}),O]})});function dw(e){return parseInt(e,10)||0}const pw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function fw(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const hw=s.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...l}=e,{current:c}=s.useRef(null!=a),u=s.useRef(null),d=tb(t,u),p=s.useRef(null),f=s.useRef(null),h=s.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=Qg(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=dw(i.paddingBottom)+dw(i.paddingTop),s=dw(i.borderBottomWidth)+dw(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?l+s:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),m=eb(()=>{const e=u.current,t=h();if(!e||!t||fw(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=s.useCallback(()=>{const e=u.current,t=h();if(!e||!t||fw(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=s.useRef(-1);Wh(()=>{const e=Yg(g),t=u?.current;if(!t)return;const n=Qg(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(b.current),g(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),Wh(()=>{g()});return Xp.jsxs(s.Fragment,{children:[Xp.jsx("textarea",{value:a,onChange:e=>{c||g();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:i,...l}),Xp.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...pw,...i,paddingTop:0,paddingBottom:0}})]})});function mw({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const gw=s.createContext(void 0);function bw(){return s.useContext(gw)}function vw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yw(e,t=!1){return e&&(vw(e.value)&&""!==e.value||t&&vw(e.defaultValue)&&""!==e.defaultValue)}function ww(e){return Mh("MuiInputBase",e)}const xw=Ph("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Sw;const Cw=(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,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xf(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Ew=Ig("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cw})(Vg(({theme:e})=>({...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",[`&.${xw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Rw=Ig("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kw})(Vg(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${xw.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${xw.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Mw=function(e){return function(t){return Xp.jsx(Hg,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Pw=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:b,inputComponent:v="input",inputProps:y={},inputRef:w,margin:x,maxRows:S,minRows:C,multiline:k=!1,name:E,onBlur:R,onChange:M,onClick:P,onFocus:T,onKeyDown:I,onKeyUp:O,placeholder:D,readOnly:F,renderSuffix:L,rows:A,size:$,slotProps:N={},slots:z={},startAdornment:j,type:_="text",value:B,...H}=n,V=null!=y.value?y.value:B,{current:W}=s.useRef(null!=V),U=s.useRef(),G=s.useCallback(e=>{},[]),K=tb(U,w,y.ref,G),[q,Y]=s.useState(!1),X=bw(),Q=mw({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:q,s.useEffect(()=>{!X&&p&&q&&(Y(!1),R&&R())},[X,p,q,R]);const Z=X&&X.onFilled,J=X&&X.onEmpty,ee=s.useCallback(e=>{yw(e)?Z&&Z():J&&J()},[Z,J]);Wh(()=>{W&&ee({value:V})},[V,ee,W]);s.useEffect(()=>{ee(U.current)},[]);let te=v,ne=y;k&&"input"===te&&(ne=A?{type:void 0,minRows:A,maxRows:A,...ne}:{type:void 0,maxRows:S,minRows:C,...ne},te=hw);s.useEffect(()=>{X&&X.setAdornedStart(Boolean(j))},[X,j]);const re={...n,color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:k,size:Q.size,startAdornment:j,type:_},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return zm({root:["root",`color${xf(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${xf(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ww,t)})(re),ie=z.root||c.Root||Ew,ae=N.root||u.root||{},le=z.input||c.Input||Rw;return ne={...ne,...N.input??u.input},Xp.jsxs(s.Fragment,{children:[!f&&"function"==typeof Mw&&(Sw||(Sw=Xp.jsx(Mw,{}))),Xp.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...H,...!db(ie)&&{ownerState:{...re,...ae.ownerState}},className:Bg(oe.root,ae.className,a,F&&"MuiInputBase-readOnly"),children:[j,Xp.jsx(gw.Provider,{value:null,children:Xp.jsx(le,{"aria-invalid":Q.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:d,disabled:Q.disabled,id:b,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:E,placeholder:D,readOnly:F,required:Q.required,rows:A,value:V,onKeyDown:I,onKeyUp:O,type:_,...ne,...!db(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:K,className:Bg(oe.input,ne.className,F&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),y.onBlur&&y.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||U.current;if(null==t)throw new Error(rd(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),M&&M(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0)}})}),h,L?L({...Q,startAdornment:j}):null]})]})});function Tw(e){return Mh("MuiInput",e)}const Iw={...xw,...Ph("MuiInput",["root","underline","input"])};function Ow(e){return Mh("MuiOutlinedInput",e)}const Dw={...xw,...Ph("MuiOutlinedInput",["root","notchedOutline","input"])};function Fw(e){return Mh("MuiFilledInput",e)}const Lw={...xw,...Ph("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};var Aw=qg(Xp.jsx("path",{d:"M7 10l5 5 5-5z"}));function $w(e){return Mh("MuiAutocomplete",e)}const Nw=Ph("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 zw,jw;const _w=Ig("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${Nw.tag}`]:t.tag},{[`& .${Nw.tag}`]:t[`tagSize${xf(l)}`]},{[`& .${Nw.inputRoot}`]:t.inputRoot},{[`& .${Nw.input}`]:t.input},{[`& .${Nw.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Nw.focused} .${Nw.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Nw.clearIndicator}`]:{visibility:"visible"}},[`& .${Nw.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Nw.inputRoot}`]:{[`.${Nw.hasPopupIcon}&, .${Nw.hasClearIcon}&`]:{paddingRight:30},[`.${Nw.hasPopupIcon}.${Nw.hasClearIcon}&`]:{paddingRight:56},[`& .${Nw.input}`]:{width:0,minWidth:30}},[`& .${Iw.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Iw.root}.${xw.sizeSmall}`]:{[`& .${Iw.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Dw.root}`]:{padding:9,[`.${Nw.hasPopupIcon}&, .${Nw.hasClearIcon}&`]:{paddingRight:39},[`.${Nw.hasPopupIcon}.${Nw.hasClearIcon}&`]:{paddingRight:65},[`& .${Nw.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Nw.endAdornment}`]:{right:9}},[`& .${Dw.root}.${xw.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Nw.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Lw.root}`]:{paddingTop:19,paddingLeft:8,[`.${Nw.hasPopupIcon}&, .${Nw.hasClearIcon}&`]:{paddingRight:39},[`.${Nw.hasPopupIcon}.${Nw.hasClearIcon}&`]:{paddingRight:65},[`& .${Lw.input}`]:{padding:"7px 4px"},[`& .${Nw.endAdornment}`]:{right:9}},[`& .${Lw.root}.${xw.sizeSmall}`]:{paddingBottom:1,[`& .${Lw.input}`]:{padding:"2.5px 4px"}},[`& .${xw.hiddenLabel}`]:{paddingTop:8},[`& .${Lw.root}.${xw.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Nw.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Lw.root}.${xw.hiddenLabel}.${xw.sizeSmall}`]:{[`& .${Nw.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Nw.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Nw.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Nw.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Nw.inputRoot}`]:{flexWrap:"wrap"}}}]}),Bw=Ig("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Hw=Ig(ev,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Vw=Ig(ev,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Ww=Ig(ew,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nw.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Vg(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Uw=Ig(wb,{name:"MuiAutocomplete",slot:"Paper"})(Vg(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Gw=Ig("div",{name:"MuiAutocomplete",slot:"Loading"})(Vg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Kw=Ig("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Vg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),qw=Ig("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Vg(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Nw.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"},[`&.${Nw.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"},[`&.${Nw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Nw.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Nw.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Yw=Ig(rw,{name:"MuiAutocomplete",slot:"GroupLabel"})(Vg(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Xw=Ig("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Nw.option}`]:{paddingLeft:24}}),Qw=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=zw||(zw=Xp.jsx(iv,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:h="Close",componentsProps:m,defaultValue:g=(n.multiple?[]:null),disableClearable:b=!1,disableCloseOnSelect:v=!1,disabled:y=!1,disabledItemsFocusable:w=!1,disableListWrap:x=!1,disablePortal:S=!1,filterOptions:C,filterSelectedOptions:k=!1,forcePopupIcon:E="auto",freeSolo:R=!1,fullWidth:M=!1,getLimitTagsText:P=e=>`+${e}`,getOptionDisabled:T,getOptionKey:I,getOptionLabel:O,isOptionEqualToValue:D,groupBy:F,handleHomeEndKeys:L=!n.freeSolo,id:A,includeInputInList:$=!1,inputValue:N,limitTags:z=-1,ListboxComponent:j,ListboxProps:_,loading:B=!1,loadingText:H="Loading…",multiple:V=!1,noOptionsText:W="No options",onChange:U,onClose:G,onHighlightChange:K,onInputChange:q,onOpen:Y,open:X,openOnFocus:Q=!1,openText:Z="Open",options:J,PaperComponent:ee,PopperComponent:te,popupIcon:ne=jw||(jw=Xp.jsx(Aw,{})),readOnly:re=!1,renderGroup:oe,renderInput:ie,renderOption:ae,renderTags:le,renderValue:se,selectOnFocus:ce=!n.freeSolo,size:ue="medium",slots:de={},slotProps:pe={},value:fe,...he}=n,{getRootProps:me,getInputProps:ge,getInputLabelProps:be,getPopupIndicatorProps:ve,getClearProps:ye,getItemProps:we,getListboxProps:xe,getOptionProps:Se,value:Ce,dirty:ke,expanded:Ee,id:Re,popupOpen:Me,focused:Pe,focusedItem:Te,anchorEl:Ie,setAnchorEl:Oe,inputValue:De,groupedOptions:Fe}=Rv({...n,componentName:"Autocomplete"}),Le=!b&&!y&&ke&&!re,Ae=(!R||!0===E)&&!1!==E,{onMouseDown:$e}=ge(),{ref:Ne,...ze}=xe(),je=O||(e=>e.label??e),_e={...n,disablePortal:S,expanded:Ee,focused:Pe,fullWidth:M,getOptionLabel:je,hasClearIcon:Le,hasPopupIcon:Ae,inputFocused:-1===Te,popupOpen:Me,size:ue},Be=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:s,popupOpen:c,size:u}=e;return zm({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${xf(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"]},$w,t)})(_e),He={slots:{paper:ee,popper:te,...de},slotProps:{chip:l,listbox:_,...m,...pe}},[Ve,We]=bb("listbox",{elementType:qw,externalForwardedProps:He,ownerState:_e,className:Be.listbox,additionalProps:ze,ref:Ne}),[Ue,Ge]=bb("paper",{elementType:wb,externalForwardedProps:He,ownerState:_e,className:Be.paper}),[Ke,qe]=bb("popper",{elementType:ew,externalForwardedProps:He,ownerState:_e,className:Be.popper,additionalProps:{disablePortal:S,style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:Me}});let Ye;const Xe=e=>({className:Be.tag,disabled:y,...we(e)});if(V?Ce.length>0&&(Ye=le?le(Ce,Xe,_e):se?se(Ce,Xe,_e):Ce.map((e,t)=>{const{key:n,...r}=Xe({index:t});return Xp.jsx(uw,{label:je(e),size:ue,...r,...He.slotProps.chip},n)})):se&&null!=Ce&&(Ye=se(Ce,Xe,_e)),z>-1&&Array.isArray(Ye)){const e=Ye.length-z;!Pe&&e>0&&(Ye=Ye.splice(0,z),Ye.push(Xp.jsx("span",{className:Be.tag,children:P(e)},Ye.length)))}const Qe=oe||(e=>Xp.jsxs("li",{children:[Xp.jsx(Yw,{className:Be.groupLabel,ownerState:_e,component:"div",children:e.group}),Xp.jsx(Xw,{className:Be.groupUl,ownerState:_e,children:e.children})]},e.key)),Ze=ae||((e,t)=>{const{key:n,...r}=e;return Xp.jsx("li",{...r,children:je(t)},n)}),Je=(e,t)=>{const n=Se({option:e,index:t});return Ze({...n,className:Be.option},e,{selected:n["aria-selected"],index:t,inputValue:De},_e)},et=He.slotProps.clearIndicator,tt=He.slotProps.popupIndicator;return Xp.jsxs(s.Fragment,{children:[Xp.jsx(_w,{ref:t,className:Bg(Be.root,c),ownerState:_e,...me(he),children:ie({id:Re,disabled:y,fullWidth:!0,size:"small"===ue?"small":void 0,InputLabelProps:be(),InputProps:{ref:Oe,className:Be.inputRoot,startAdornment:Ye,onMouseDown:e=>{e.target===e.currentTarget&&$e(e)},...(Le||Ae)&&{endAdornment:Xp.jsxs(Bw,{className:Be.endAdornment,ownerState:_e,children:[Le?Xp.jsx(Hw,{...ye(),"aria-label":f,title:f,ownerState:_e,...et,className:Bg(Be.clearIndicator,et?.className),children:u}):null,Ae?Xp.jsx(Vw,{...ve(),disabled:y,"aria-label":Me?h:Z,title:Me?h:Z,ownerState:_e,...tt,className:Bg(Be.popupIndicator,tt?.className),children:ne}):null]})}},inputProps:{className:Be.input,disabled:y,readOnly:re,...ge()}})}),Ie?Xp.jsx(Ww,{as:Ke,...qe,children:Xp.jsxs(Uw,{as:Ue,...Ge,children:[B&&0===Fe.length?Xp.jsx(Gw,{className:Be.loading,ownerState:_e,children:H}):null,0!==Fe.length||R||B?null:Xp.jsx(Kw,{className:Be.noOptions,ownerState:_e,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:W}),Fe.length>0?Xp.jsx(Ve,{as:j,...We,children:Fe.map((e,t)=>F?Qe({key:e.key,group:e.group,children:e.options.map((t,n)=>Je(t,e.index+n))}):Je(e,t))}):null]})}):null]})}),Zw={entering:{opacity:1},entered:{opacity:1}},Jw=s.forwardRef(function(e,t){const n=Rg(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=Vo,...y}=e,w=s.useRef(null),x=tb(w,Gy(a),t),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},C=S(p),k=S((e,t)=>{cb(e);const r=ub({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),E=S(d),R=S(m),M=S(e=>{const t=ub({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),P=S(h);return Xp.jsx(v,{appear:i,in:c,nodeRef:w,onEnter:k,onEntered:E,onEntering:C,onExit:M,onExited:P,onExiting:R,addEndListener:e=>{o&&o(w.current,e)},timeout:b,...y,children:(e,{ownerState:t,...n})=>s.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...Zw[e],...g,...a.props.style},ref:x,...n})})});function ex(e){return Mh("MuiBackdrop",e)}Ph("MuiBackdrop",["root","invisible"]);const tx=Ig("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),nx=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return zm({root:["root",n&&"invisible"]},ex,t)})(m),b={component:i,slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[v,y]=bb("root",{elementType:tx,externalForwardedProps:b,className:Bg(g.root,o),ownerState:m}),[w,x]=bb("transition",{elementType:Jw,externalForwardedProps:b,ownerState:m});return Xp.jsx(w,{in:l,timeout:f,...h,...x,children:Xp.jsx(v,{"aria-hidden":!0,...y,classes:g,ref:t,children:r})})});function rx(e){return Mh("MuiBadge",e)}const ox=Ph("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"]),ix=Ig("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ax=Ig("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${xf(n.anchorOrigin.vertical)}${xf(n.anchorOrigin.horizontal)}${xf(n.overlap)}`],"default"!==n.color&&t[`color${xf(n.color)}`],n.invisible&&t.invisible]}})(Vg(({theme:e})=>({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:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter($b(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ox.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ox.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})}}]})));function lx(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const sx=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:l={},componentsProps:s={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:b=!1,variant:v="standard",...y}=n,{badgeContent:w,invisible:x,max:S,displayValue:C}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=yv({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:p,badgeContent:h,showZero:b}),k=yv({anchorOrigin:lx(r),color:d,overlap:u,variant:v,badgeContent:h}),E=x||null==w&&"dot"!==v,{color:R=d,overlap:M=u,anchorOrigin:P,variant:T=v}=E?k:n,I=lx(P),O="dot"!==T?C:void 0,D={...n,badgeContent:w,invisible:E,max:S,displayValue:O,showZero:b,anchorOrigin:I,color:R,overlap:M,variant:T},F=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return zm({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${xf(n.vertical)}${xf(n.horizontal)}`,`anchorOrigin${xf(n.vertical)}${xf(n.horizontal)}${xf(o)}`,`overlap${xf(o)}`,"default"!==t&&`color${xf(t)}`]},rx,a)})(D),L={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[A,$]=bb("root",{elementType:ix,externalForwardedProps:{...L,...y},ownerState:D,className:Bg(F.root,o),ref:t,additionalProps:{as:a}}),[N,z]=bb("badge",{elementType:ax,externalForwardedProps:L,ownerState:D,className:F.badge});return Xp.jsxs(A,{...$,children:[c,Xp.jsx(N,{...z,children:O})]})}),cx=Ph("MuiBox",["root"]),ux=kg(),dx=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Zp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fh);return s.forwardRef(function(e,a){const l=vh(n),{className:s,component:c="div",...u}=xh(e);return Xp.jsx(i,{as:c,ref:a,className:Eh(s,o?o(r):r),theme:t&&l[t]||l,...u})})}({themeId:od,defaultTheme:ux,defaultClassName:cx.root,generateClassName:Ch.generate});function px(e){return Mh("MuiButton",e)}const fx=Ph("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),hx=s.createContext({}),mx=s.createContext(void 0),gx=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],bx=Ig(Lb,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xf(n.color)}`],t[`size${xf(n.size)}`],t[`${n.variant}Size${xf(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Vg(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${fx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${fx.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fx.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${fx.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fx.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${fx.loading}`]:{color:"transparent"}}}]}})),vx=Ig("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${xf(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...gx]})),yx=Ig("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${xf(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...gx]})),wx=Ig("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xx=Ig("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Sx=s.forwardRef(function(e,t){const n=s.useContext(hx),r=s.useContext(mx),o=Wg({props:Hh(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,id:g,loading:b=null,loadingIndicator:v,loadingPosition:y="center",size:w="medium",startIcon:x,type:S,variant:C="text",...k}=o,E=xm(g),R=v??Xp.jsx(Yb,{"aria-labelledby":E,color:"inherit",size:16}),M={...o,color:a,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,loading:b,loadingIndicator:R,loadingPosition:y,size:w,type:S,variant:C},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:s}=e,c=zm({root:["root",a&&"loading",i,`${i}${xf(t)}`,`size${xf(o)}`,`${i}Size${xf(o)}`,`color${xf(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${xf(l)}`],startIcon:["icon","startIcon",`iconSize${xf(o)}`],endIcon:["icon","endIcon",`iconSize${xf(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},px,s);return{...s,...c}})(M),T=(x||b&&"start"===y)&&Xp.jsx(vx,{className:P.startIcon,ownerState:M,children:x||Xp.jsx(xx,{className:P.loadingIconPlaceholder,ownerState:M})}),I=(f||b&&"end"===y)&&Xp.jsx(yx,{className:P.endIcon,ownerState:M,children:f||Xp.jsx(xx,{className:P.loadingIconPlaceholder,ownerState:M})}),O=r||"",D="boolean"==typeof b?Xp.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:b&&Xp.jsx(wx,{className:P.loadingIndicator,ownerState:M,children:R})}):null;return Xp.jsxs(bx,{ownerState:M,className:Bg(n.className,P.root,c,O),component:l,disabled:u||b,focusRipple:!p,focusVisibleClassName:Bg(P.focusVisible,h),ref:t,type:S,id:b?E:g,...k,classes:P,children:[T,"end"!==y&&D,i,"end"===y&&D,I]})});function Cx(e){return Mh("PrivateSwitchBase",e)}Ph("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kx=Ig(Lb,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),Ex=Ig("input",{name:"MuiSwitchBase",shouldForwardProp:Tg})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rx=s.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:b,required:v=!1,tabIndex:y,type:w,value:x,slots:S={},slotProps:C={},...k}=e,[E,R]=Jg({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),M=bw();let P=a;M&&void 0===P&&(P=M.disabled);const T="checkbox"===w||"radio"===w,I={...e,checked:E,disabled:P,disableFocusRipple:l,edge:s},O=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return zm({root:["root",n&&"checked",r&&"disabled",o&&`edge${xf(o)}`],input:["input"]},Cx,t)})(I),D={slots:S,slotProps:{input:d,...C}},[F,L]=bb("root",{ref:t,elementType:kx,className:O.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...k},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),M&&M.onFocus&&M.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),M&&M.onBlur&&M.onBlur(e)})(t)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:P,role:void 0,tabIndex:null}}),[A,$]=bb("input",{ref:p,elementType:Ex,className:O.input,externalForwardedProps:D,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),m&&m(e,t)})(t)}}),ownerState:I,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:T?u:void 0,name:f,readOnly:b,required:v,tabIndex:y,type:w,..."checkbox"===w&&void 0===x?{}:{value:x}}});return Xp.jsxs(F,{...L,children:[Xp.jsx(A,{...$}),E?o:c]})});var Mx=qg(Xp.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"})),Px=qg(Xp.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"})),Tx=qg(Xp.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"}));function Ix(e){return Mh("MuiCheckbox",e)}const Ox=Ph("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Dx=Ig(Rx,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${xf(n.size)}`],"default"!==n.color&&t[`color${xf(n.color)}`]]}})(Vg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{[`&.${Ox.checked}, &.${Ox.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ox.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Fx=Xp.jsx(Px,{}),Lx=Xp.jsx(Mx,{}),Ax=Xp.jsx(Tx,{}),$x=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Fx,color:o="primary",icon:i=Lx,indeterminate:a=!1,indeterminateIcon:l=Ax,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:h={},...m}=n,g=a?l:i,b=a?l:r,v={...n,disableRipple:d,color:o,indeterminate:a,size:u},y=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=zm({root:["root",n&&"indeterminate",`color${xf(r)}`,`size${xf(o)}`]},Ix,t);return{...t,...i}})(v),w=h.input??c,[x,S]=bb("root",{ref:t,elementType:Dx,className:Bg(y.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...m},ownerState:v,additionalProps:{type:"checkbox",icon:s.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:s.cloneElement(b,{fontSize:b.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:nb("function"==typeof w?w(v):w,{"data-indeterminate":a})}}});return Xp.jsx(x,{...S,classes:y})});function Nx(e){return e.substring(2).toLowerCase()}function zx(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=s.useRef(!1),l=s.useRef(null),c=s.useRef(!1),u=s.useRef(!1);s.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=tb(Gy(t),l),p=eb(e=>{const t=u.current;u.current=!1;const r=Xg(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(a.current)return void(a.current=!1);let i;i=e.composedPath?e.composedPath().includes(l.current):!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},h={ref:d};return!1!==i&&(h[i]=f(i)),s.useEffect(()=>{if(!1!==i){const e=Nx(i),t=Xg(l.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}},[p,i]),!1!==r&&(h[r]=f(r)),s.useEffect(()=>{if(!1!==r){const e=Nx(r),t=Xg(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,r]),s.cloneElement(t,h)}function jx(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _x(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bx(e){return parseInt(Qg(e).getComputedStyle(e).paddingRight,10)||0}function Hx(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&_x(e,o)})}function Vx(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Wx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Xg(e);return t.body===e?Qg(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=jx(Qg(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Bx(r)+e}px`;const t=Xg(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Bx(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Xg(r).body;else{const t=r.parentElement,n=Qg(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Ux(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const Gx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kx(e){const t=[],n=[];return Array.from(e.querySelectorAll(Gx)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function qx(){return!0}function Yx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Kx,isEnabled:a=qx,open:l}=e,c=s.useRef(!1),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),f=s.useRef(null),h=s.useRef(!1),m=s.useRef(null),g=tb(Gy(t),m),b=s.useRef(null);s.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),s.useEffect(()=>{if(!l||!m.current)return;const e=Ux(Xg(m.current));return m.current.contains(e)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),s.useEffect(()=>{if(!l||!m.current)return;const e=Xg(m.current),t=Ux(e),n=e=>{b.current=e,!r&&a()&&"Tab"===e.key&&t===m.current&&e.shiftKey&&(c.current=!0,d.current&&d.current.focus())},o=()=>{const t=m.current;if(null===t)return;const n=Ux(e);if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(n))return;if(r&&n!==u.current&&n!==d.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let o=[];if(n!==u.current&&n!==d.current||(o=i(m.current)),o.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",o),e.addEventListener("keydown",n,!0);const s=setInterval(()=>{const t=Ux(e);t&&"BODY"===t.tagName&&o()},50);return()=>{clearInterval(s),e.removeEventListener("focusin",o),e.removeEventListener("keydown",n,!0)}},[n,r,o,a,l,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Xp.jsxs(s.Fragment,{children:[Xp.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xp.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Xx=()=>{},Qx=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_x(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Hx(t,e.mount,e.modalRef,r,!0);const o=Vx(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Vx(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Wx(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Vx(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&_x(e.modalRef,t),Hx(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&_x(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Zx(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=s.useRef({}),f=s.useRef(null),h=s.useRef(null),m=tb(h,d),[g,b]=s.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const w=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{Qx.mount(w(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},S=eb(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Xg(f.current).body;Qx.add(w(),e),h.current&&x()}),C=()=>Qx.isTopModal(w()),k=eb(e=>{f.current=e,e&&(u&&C()?x():h.current&&_x(h.current,y))}),E=s.useCallback(()=>{Qx.remove(w(),y)},[y]);s.useEffect(()=>()=>{E()},[E]),s.useEffect(()=>{u?S():v&&o||E()},[u,E,v,o,S]);const R=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hb(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:R(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:M(t),open:u}},getTransitionProps:()=>({onEnter:jg(()=>{b(!1),i&&i()},l?.props.onEnter??Xx),onExited:jg(()=>{b(!0),a&&a(),o&&E()},l?.props.onExited??Xx)}),rootRef:m,portalRef:k,isTopModal:C,exited:g,hasTransition:v}}function Jx(e){return Mh("MuiModal",e)}Ph("MuiModal",["root","hidden","backdrop"]);const eS=Ig("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vg(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),tS=Ig(nx,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),nS=s.forwardRef(function(e,t){const n=Wg({name:"MuiModal",props:e}),{BackdropComponent:r=tS,BackdropProps:o,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:b=!1,disableRestoreFocus:v=!1,disableScrollLock:y=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:S,onTransitionEnter:C,onTransitionExited:k,open:E,slotProps:R={},slots:M={},theme:P,...T}=n,I={...n,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:b,disableRestoreFocus:v,disableScrollLock:y,hideBackdrop:w,keepMounted:x},{getRootProps:O,getBackdropProps:D,getTransitionProps:F,portalRef:L,isTopModal:A,exited:$,hasTransition:N}=Zx({...I,rootRef:t}),z={...I,exited:$},j=(e=>{const{open:t,exited:n,classes:r}=e;return zm({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Jx,r)})(z),_={};if(void 0===c.props.tabIndex&&(_.tabIndex="-1"),N){const{onEnter:e,onExited:t}=F();_.onEnter=e,_.onExited=t}const B={slots:{root:p.Root,backdrop:p.Backdrop,...M},slotProps:{...f,...R}},[H,V]=bb("root",{ref:t,elementType:eS,externalForwardedProps:{...B,...T,component:d},getSlotProps:O,ownerState:z,className:Bg(a,j?.root,!z.open&&z.exited&&j?.hidden)}),[W,U]=bb("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Bg(o?.className,j?.backdrop),ownerState:z});return x||E||N&&!$?Xp.jsx(Ky,{ref:L,container:u,disablePortal:b,children:Xp.jsxs(H,{...V,children:[!w&&r?Xp.jsx(W,{...U}):null,Xp.jsx(Yx,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:v,isEnabled:A,open:E,children:s.cloneElement(c,_)})]})}):null});function rS(e){return Mh("MuiDialog",e)}const oS=Ph("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),iS=s.createContext({}),aS=Ig(nx,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lS=Ig(nS,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),sS=Ig("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${xf(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cS=Ig(wb,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${xf(n.scroll)}`],t[`paperWidth${xf(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Vg(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${oS.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${oS.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${oS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),uS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDialog"}),r=Rg(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:g="sm",onClick:b,onClose:v,open:y,PaperComponent:w=wb,PaperProps:x={},scroll:S="paper",slots:C={},slotProps:k={},TransitionComponent:E=Jw,transitionDuration:R=o,TransitionProps:M,...P}=n,T={...n,disableEscapeKeyDown:f,fullScreen:h,fullWidth:m,maxWidth:g,scroll:S},I=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e;return zm({root:["root"],container:["container",`scroll${xf(n)}`],paper:["paper",`paperScroll${xf(n)}`,`paperWidth${xf(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},rS,t)})(T),O=s.useRef(),D=xm(a),F=s.useMemo(()=>({titleId:D}),[D]),L={slots:{transition:E,...C},slotProps:{transition:M,paper:x,backdrop:u,...k}},[A,$]=bb("root",{elementType:lS,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:T,className:Bg(I.root,p),ref:t}),[N,z]=bb("backdrop",{elementType:aS,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:T}),[j,_]=bb("paper",{elementType:cS,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:T,className:Bg(I.paper,x.className)}),[B,H]=bb("container",{elementType:sS,externalForwardedProps:L,ownerState:T,className:I.container}),[V,W]=bb("transition",{elementType:Jw,externalForwardedProps:L,ownerState:T,additionalProps:{appear:!0,in:y,timeout:R,role:"presentation"}});return Xp.jsx(A,{closeAfterTransition:!0,slots:{backdrop:N},slotProps:{backdrop:{transitionDuration:R,as:c,...z}},disableEscapeKeyDown:f,onClose:v,open:y,onClick:e=>{b&&b(e),O.current&&(O.current=null,v&&v(e,"backdropClick"))},...$,...P,children:Xp.jsx(V,{...W,children:Xp.jsx(B,{onMouseDown:e=>{O.current=e.target===e.currentTarget},...H,children:Xp.jsx(j,{as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D,"aria-modal":l,..._,children:Xp.jsx(iS.Provider,{value:F,children:d})})})})})});function dS(e){return Mh("MuiDialogActions",e)}Ph("MuiDialogActions",["root","spacing"]);const pS=Ig("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),fS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...i}=n,a={...n,disableSpacing:o},l=(e=>{const{classes:t,disableSpacing:n}=e;return zm({root:["root",!n&&"spacing"]},dS,t)})(a);return Xp.jsx(pS,{className:Bg(l.root,r),ownerState:a,ref:t,...i})});function hS(e){return Mh("MuiDialogContent",e)}function mS(e){return Mh("MuiDialogTitle",e)}Ph("MuiDialogContent",["root","dividers"]);const gS=Ph("MuiDialogTitle",["root"]),bS=Ig("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Vg(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${gS.root} + &`]:{paddingTop:0}}}]}))),vS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...i}=n,a={...n,dividers:o},l=(e=>{const{classes:t,dividers:n}=e;return zm({root:["root",n&&"dividers"]},hS,t)})(a);return Xp.jsx(bS,{className:Bg(l.root,r),ownerState:a,ref:t,...i})});function yS(e){return Mh("MuiDialogContentText",e)}Ph("MuiDialogContentText",["root"]);const wS=Ig(vv,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root"})({}),xS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDialogContentText"}),{children:r,className:o,...i}=n,a=(e=>{const{classes:t}=e,n=zm({root:["root"]},yS,t);return{...t,...n}})(i);return Xp.jsx(wS,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:i,className:Bg(a.root,o),...n,classes:a})}),SS=Ig(vv,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),CS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...i}=n,a=n,l=(e=>{const{classes:t}=e;return zm({root:["root"]},mS,t)})(a),{titleId:c=o}=s.useContext(iS);return Xp.jsx(SS,{component:"h2",className:Bg(l.root,r),ownerState:a,ref:t,variant:"h6",id:o??c,...i})});function kS(e){return Mh("MuiDivider",e)}const ES=Ph("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),RS=Ig("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,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Vg(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),MS=Ig("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Vg(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),PS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:l=(o||"vertical"===a?"div":"hr"),flexItem:s=!1,light:c=!1,role:u=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:l,flexItem:s,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return zm({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},kS,r)})(h);return Xp.jsx(RS,{as:l,className:Bg(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?Xp.jsx(MS,{className:m.wrapper,ownerState:h,children:o}):null})});PS&&(PS.muiSkipListHighlight=!0);const TS=Ig(Ew,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cw(e,t),!n.disableUnderline&&t.underline]}})(Vg(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Lw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Lw.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{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"},[`&.${Lw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,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(.${Lw.disabled}, .${Lw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Lw.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),IS=Ig(Rw,{name:"MuiFilledInput",slot:"Input",overridesResolver:kw})(Vg(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),OS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:s="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...f}=n,h={...n,disableUnderline:r,fullWidth:a,inputComponent:s,multiline:c,type:p},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:l}=e,s=zm({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===i&&`size${xf(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},Fw,t);return{...t,...s}})(n),g={root:{ownerState:h},input:{ownerState:h}},b=u??i?df(g,u??i):g,v=d.root??o.Root??TS,y=d.input??o.Input??IS;return Xp.jsx(Pw,{slots:{root:v,input:y},slotProps:b,fullWidth:a,inputComponent:s,multiline:c,ref:t,type:p,...f,classes:m})});function DS(e){return Mh("MuiFormControl",e)}OS.muiName="Input",Ph("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FS=Ig("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${xf(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),LS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:g="outlined",...b}=n,v={...n,color:i,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:g},y=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return zm({root:["root","none"!==n&&`margin${xf(n)}`,r&&"fullWidth"]},DS,t)})(v),[w,x]=s.useState(()=>{let e=!1;return r&&s.Children.forEach(r,t=>{if(!jm(t,["Input","Select"]))return;const n=jm(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[S,C]=s.useState(()=>{let e=!1;return r&&s.Children.forEach(r,t=>{jm(t,["Input","Select"])&&(yw(t.props,!0)||yw(t.props.inputProps,!0))&&(e=!0)}),e}),[k,E]=s.useState(!1);l&&k&&E(!1);const R=void 0===u||l?k:u;let M;s.useRef(!1);const P=s.useCallback(()=>{C(!0)},[]),T=s.useCallback(()=>{C(!1)},[]),I=s.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:i,disabled:l,error:c,filled:S,focused:R,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:T,onFilled:P,registerEffect:M,required:h,variant:g}),[w,i,l,c,S,R,d,p,M,T,P,h,m,g]);return Xp.jsx(gw.Provider,{value:I,children:Xp.jsx(FS,{as:a,ownerState:v,className:Bg(y.root,o),ref:t,...b,children:r})})});function AS(e){return Mh("MuiFormControlLabel",e)}const $S=Ph("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),NS=Ig("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$S.label}`]:t.label},t.root,t[`labelPlacement${xf(n.labelPlacement)}`]]}})(Vg(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$S.disabled}`]:{cursor:"default"},[`& .${$S.label}`]:{[`&.${$S.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),zS=Ig("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Vg(({theme:e})=>({[`&.${$S.error}`]:{color:(e.vars||e).palette.error.main}}))),jS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:p="end",name:f,onChange:h,required:m,slots:g={},slotProps:b={},value:v,...y}=n,w=bw(),x=l??a.props.disabled??w?.disabled,S=m??a.props.required,C={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(C[e]=n[e])});const k=mw({props:n,muiFormControl:w,states:["error"]}),E={...n,disabled:x,labelPlacement:p,required:S,error:k.error},R=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return zm({root:["root",n&&"disabled",`labelPlacement${xf(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},AS,t)})(E),M={slots:g,slotProps:{...i,...b}},[P,T]=bb("typography",{elementType:vv,externalForwardedProps:M,ownerState:E});let I=d;return null==I||I.type===vv||c||(I=Xp.jsx(P,{component:"span",...T,className:Bg(R.label,T?.className),children:I})),Xp.jsxs(NS,{className:Bg(R.root,o),ownerState:E,ref:t,...y,children:[s.cloneElement(a,C),S?Xp.jsxs("div",{children:[I,Xp.jsxs(zS,{ownerState:E,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):I]})});function _S(e){return Mh("MuiFormHelperText",e)}const BS=Ph("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var HS;const VS=Ig("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xf(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Vg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${BS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${BS.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),WS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:l,filled:s,focused:c,margin:u,required:d,variant:p,...f}=n,h=mw({props:n,muiFormControl:bw(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:i,contained:"filled"===h.variant||"outlined"===h.variant,variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete m.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e;return zm({root:["root",o&&"disabled",i&&"error",r&&`size${xf(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]},_S,t)})(m);return Xp.jsx(VS,{as:i,className:Bg(g.root,o),ref:t,...f,ownerState:m,children:" "===r?HS||(HS=Xp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function US(e){return Mh("MuiFormLabel",e)}const GS=Ph("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),KS=Ig("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Vg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{[`&.${GS.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${GS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${GS.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),qS=Ig("span",{name:"MuiFormLabel",slot:"Asterisk"})(Vg(({theme:e})=>({[`&.${GS.error}`]:{color:(e.vars||e).palette.error.main}}))),YS=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:l,error:s,filled:c,focused:u,required:d,...p}=n,f=mw({props:n,muiFormControl:bw(),states:["color","required","focused","disabled","error","filled"]}),h={...n,color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},m=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e;return zm({root:["root",`color${xf(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]},US,t)})(h);return Xp.jsxs(KS,{as:a,ownerState:h,className:Bg(m.root,o),ref:t,...p,children:[r,f.required&&Xp.jsxs(qS,{ownerState:h,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})});function XS(e){return`scale(${e}, ${e**2})`}const QS={entering:{opacity:1,transform:XS(1)},entered:{opacity:1,transform:"none"}},ZS="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),JS=s.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Vo,...b}=e,v=sb(),y=s.useRef(),w=Rg(),x=s.useRef(null),S=tb(x,Gy(o),t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=C(u),E=C((e,t)=>{cb(e);const{duration:n,delay:r,easing:o}=ub({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:ZS?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)}),R=C(c),M=C(f),P=C(e=>{const{duration:t,delay:n,easing:r}=ub({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:ZS?o:.666*o,delay:ZS?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=XS(.75),d&&d(e)}),T=C(p);return Xp.jsx(g,{appear:r,in:a,nodeRef:x,onEnter:E,onEntered:R,onEntering:k,onExit:P,onExited:T,onExiting:M,addEndListener:e=>{"auto"===m&&v.start(y.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m,...b,children:(e,{ownerState:t,...n})=>s.cloneElement(o,{style:{opacity:0,transform:XS(.75),visibility:"exited"!==e||a?void 0:"hidden",...QS[e],...h,...o.props.style},ref:S,...n})})});JS&&(JS.muiSupportAuto=!0);const eC=Ig(Ew,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cw(e,t),!n.disableUnderline&&t.underline]}})(Vg(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{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"},[`&.${Iw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Iw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,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(.${Iw.disabled}, .${Iw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Iw.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),tC=Ig(Rw,{name:"MuiInput",slot:"Input",overridesResolver:kw})({}),nC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:s=!1,slotProps:c,slots:u={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=zm({root:["root",!n&&"underline"],input:["input"]},Tw,t);return{...t,...r}})(n),h={root:{ownerState:{disableUnderline:r}}},m=c??i?df(c??i,h):h,g=u.root??o.Root??eC,b=u.input??o.Input??tC;return Xp.jsx(Pw,{slots:{root:g,input:b},slotProps:m,fullWidth:a,inputComponent:l,multiline:s,ref:t,type:d,...p,classes:f})});function rC(e){return Mh("MuiInputAdornment",e)}nC.muiName="Input";const oC=Ph("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var iC;const aC=Ig("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xf(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Vg(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${oC.positionStart}&:not(.${oC.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),lC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=n,p=bw()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const h={...n,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:f},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return zm({root:["root",n&&"disablePointerEvents",o&&`position${xf(o)}`,a,r&&"hiddenLabel",i&&`size${xf(i)}`]},rC,t)})(h);return Xp.jsx(gw.Provider,{value:null,children:Xp.jsx(aC,{as:i,ownerState:h,className:Bg(m.root,o),ref:t,...d,children:"string"!=typeof r||l?Xp.jsxs(s.Fragment,{children:["start"===c?iC||(iC=Xp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):Xp.jsx(vv,{color:"textSecondary",children:r})})})});function sC(e){return Mh("MuiInputLabel",e)}Ph("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const cC=Ig(YS,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${GS.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Vg(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),uC=s.forwardRef(function(e,t){const n=Wg({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:l,...s}=n,c=bw();let u=i;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);const d=mw({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,s=zm({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"medium"!==r&&`size${xf(r)}`,a],asterisk:[l&&"asterisk"]},sC,t);return{...t,...s}})(p);return Xp.jsx(cC,{"data-shrink":u,ref:t,className:Bg(f.root,l),...s,ownerState:p,classes:f})});function dC(e){return Mh("MuiLinearProgress",e)}Ph("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const pC=zp`
|
|
132
|
-
0% {
|
|
133
|
-
left: -35%;
|
|
134
|
-
right: 100%;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
60% {
|
|
138
|
-
left: 100%;
|
|
139
|
-
right: -90%;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
100% {
|
|
143
|
-
left: 100%;
|
|
144
|
-
right: -90%;
|
|
145
|
-
}
|
|
146
|
-
`,fC="string"!=typeof pC?Np`
|
|
147
|
-
animation: ${pC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
148
|
-
`:null,hC=zp`
|
|
149
|
-
0% {
|
|
150
|
-
left: -200%;
|
|
151
|
-
right: 100%;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
60% {
|
|
155
|
-
left: 107%;
|
|
156
|
-
right: -8%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
100% {
|
|
160
|
-
left: 107%;
|
|
161
|
-
right: -8%;
|
|
162
|
-
}
|
|
163
|
-
`,mC="string"!=typeof hC?Np`
|
|
164
|
-
animation: ${hC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
165
|
-
`:null,gC=zp`
|
|
166
|
-
0% {
|
|
167
|
-
opacity: 1;
|
|
168
|
-
background-position: 0 -23px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
60% {
|
|
172
|
-
opacity: 0;
|
|
173
|
-
background-position: 0 -23px;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
100% {
|
|
177
|
-
opacity: 1;
|
|
178
|
-
background-position: -200px -23px;
|
|
179
|
-
}
|
|
180
|
-
`,bC="string"!=typeof gC?Np`
|
|
181
|
-
animation: ${gC} 3s infinite linear;
|
|
182
|
-
`:null,vC=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),yC=Ig("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${xf(n.color)}`],t[n.variant]]}})(Vg(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{backgroundColor:vC(e,t)}})),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),wC=Ig("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${xf(n.color)}`]]}})(Vg(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter($b()).map(([t])=>{const n=vC(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),bC||{animation:`${gC} 3s infinite linear`}),xC=Ig("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${xf(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(Vg(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:fC||{animation:`${pC} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),SC=Ig("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${xf(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(Vg(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:vC(e,t),transition:"transform .4s linear"}})),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:mC||{animation:`${hC} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),CC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:i,valueBuffer:a,variant:l="indeterminate",...s}=n,c={...n,color:o,variant:l},u=(e=>{const{classes:t,variant:n,color:r}=e;return zm({root:["root",`color${xf(r)}`,n],dashed:["dashed",`dashedColor${xf(r)}`],bar1:["bar","bar1",`barColor${xf(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==n&&`barColor${xf(r)}`,"buffer"===n&&`color${xf(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},dC,t)})(c),d=mm(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==i){p["aria-valuenow"]=Math.round(i),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=i-100;d&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==a){let e=(a||0)-100;d&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return Xp.jsxs(yC,{className:Bg(u.root,r),ownerState:c,role:"progressbar",...p,ref:t,...s,children:["buffer"===l?Xp.jsx(wC,{className:u.dashed,ownerState:c}):null,Xp.jsx(xC,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===l?null:Xp.jsx(SC,{className:u.bar2,ownerState:c,style:f.bar2})]})}),kC=s.createContext({});function EC(e){return Mh("MuiList",e)}Ph("MuiList",["root","padding","dense","subheader"]);const RC=Ig("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),MC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=n,d=s.useMemo(()=>({dense:a}),[a]),p={...n,component:i,dense:a,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return zm({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},EC,t)})(p);return Xp.jsx(kC.Provider,{value:d,children:Xp.jsxs(RC,{as:i,className:Bg(f.root,o),ref:t,ownerState:p,...u,children:[c,r]})})});function PC(e){return Mh("MuiListItem",e)}Ph("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const TC=Ph("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function IC(e){return Mh("MuiListItemSecondaryAction",e)}Ph("MuiListItemSecondaryAction",["root","disableGutters"]);const OC=Ig("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),DC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=s.useContext(kC),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return zm({root:["root",t&&"disableGutters"]},IC,n)})(a);return Xp.jsx(OC,{className:Bg(l.root,r),ownerState:a,ref:t,...o})});DC.muiName="ListItemSecondaryAction";const FC=Ig("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Vg(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${TC.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),LC=Ig("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),AC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:h=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:b,slotProps:v={},slots:y={},...w}=n,x=s.useContext(kC),S=s.useMemo(()=>({dense:f||x.dense||!1,alignItems:r,disableGutters:h}),[r,x.dense,f,h]),C=s.useRef(null),k=s.Children.toArray(o),E=k.length&&jm(k[k.length-1],["ListItemSecondaryAction"]),R={...n,alignItems:r,dense:S.dense,disableGutters:h,disablePadding:m,divider:g,hasSecondaryAction:E},M=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return zm({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},PC,n)})(R),P=tb(C,t),T={slots:y,slotProps:v},[I,O]=bb("secondaryAction",{elementType:DC,externalForwardedProps:T,ownerState:R,className:M.secondaryAction}),D=y.root||l.Root||FC,F=v.root||c.root||{},L={className:Bg(M.root,F.className,i),...w};let A=a||"li";return E?(A=L.component||a?A:"div","li"===u&&("li"===A?A="div":"li"===L.component&&(L.component="div")),Xp.jsx(kC.Provider,{value:S,children:Xp.jsxs(LC,{as:u,className:Bg(M.container,d),ref:P,ownerState:R,...p,children:[Xp.jsx(D,{...F,...!db(D)&&{as:A,ownerState:{...R,...F.ownerState}},...L,children:k}),k.pop()]})})):Xp.jsx(kC.Provider,{value:S,children:Xp.jsxs(D,{...F,as:A,ref:P,...!db(D)&&{ownerState:{...R,...F.ownerState}},...L,children:[k,b&&Xp.jsx(I,{...O,children:b})]})})});function $C(e){return Mh("MuiListItemIcon",e)}const NC=Ph("MuiListItemIcon",["root","alignItemsFlexStart"]),zC=Ig("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Vg(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),jC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=s.useContext(kC),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return zm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$C,n)})(a);return Xp.jsx(zC,{className:Bg(l.root,r),ownerState:a,ref:t,...o})});function _C(e){return Mh("MuiListItemText",e)}const BC=Ph("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),HC=Ig("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BC.primary}`]:t.primary},{[`& .${BC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${fv.root}:where(& .${BC.primary})`]:{display:"block"},[`.${fv.root}:where(& .${BC.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),VC=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:f={},...h}=n,{dense:m}=s.useContext(kC);let g=null!=l?l:r,b=u;const v={...n,disableTypography:i,inset:a,primary:!!g,secondary:!!b,dense:m},y=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return zm({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},_C,t)})(v),w={slots:p,slotProps:{primary:c,secondary:d,...f}},[x,S]=bb("root",{className:Bg(y.root,o),elementType:HC,externalForwardedProps:{...w,...h},ownerState:v,ref:t}),[C,k]=bb("primary",{className:y.primary,elementType:vv,externalForwardedProps:w,ownerState:v}),[E,R]=bb("secondary",{className:y.secondary,elementType:vv,externalForwardedProps:w,ownerState:v});return null==g||g.type===vv||i||(g=Xp.jsx(C,{variant:m?"body2":"body1",component:k?.variant?void 0:"span",...k,children:g})),null==b||b.type===vv||i||(b=Xp.jsx(E,{variant:"body2",color:"textSecondary",...R,children:b})),Xp.jsxs(x,{...S,children:[g,b]})});function WC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function UC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function GC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function KC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&GC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const qC=s.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=s.useRef(null),h=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wh(()=>{r&&f.current.focus()},[r]),s.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${jx(Qg(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=tb(f,t);let g=-1;s.Children.forEach(i,(e,t)=>{s.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const b=s.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),s.cloneElement(e,t)}return e});return Xp.jsx(MC,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=Ux(Xg(t));if("ArrowDown"===n)e.preventDefault(),KC(t,r,c,l,WC);else if("ArrowUp"===n)e.preventDefault(),KC(t,r,c,l,UC);else if("Home"===n)e.preventDefault(),KC(t,null,c,l,WC);else if("End"===n)e.preventDefault(),KC(t,null,c,l,UC);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&GC(r,o);o.previousKeyMatched&&(s||KC(t,r,!1,l,WC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:b})});function YC(e){return Mh("MuiPopover",e)}function XC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function QC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ZC(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function JC(e){return"function"==typeof e?e():e}Ph("MuiPopover",["root","paper"]);const ek=Ig(nS,{name:"MuiPopover",slot:"Root"})({}),tk=Ig(wb,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nk=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:g={},slotProps:b={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:S=!1,...C}=n,k=s.useRef(),E={...n,anchorOrigin:i,anchorReference:l,elevation:p,marginThreshold:f,transformOrigin:v,TransitionComponent:y,transitionDuration:w,TransitionProps:x},R=(e=>{const{classes:t}=e;return zm({root:["root"],paper:["paper"]},YC,t)})(E),M=s.useCallback(()=>{if("anchorPosition"===l)return a;const e=JC(o),t=(e&&1===e.nodeType?e:Xg(k.current).body).getBoundingClientRect();return{top:t.top+XC(t,i.vertical),left:t.left+QC(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),P=s.useCallback(e=>({vertical:XC(e,v.vertical),horizontal:QC(e,v.horizontal)}),[v.horizontal,v.vertical]),T=s.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:ZC(n)};const r=M();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Qg(JC(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(c>p){const e=c-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:ZC(n)}},[o,l,M,P,f]),[I,O]=s.useState(h),D=s.useCallback(()=>{const e=k.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)},[T]);s.useEffect(()=>(S&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[o,S,D]);s.useEffect(()=>{h&&D()}),s.useImperativeHandle(r,()=>h?{updatePosition:()=>{D()}}:null,[h,D]),s.useEffect(()=>{if(!h)return;const e=Yg(()=>{D()}),t=Qg(JC(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,D]);let F=w;const L={slots:{transition:y,...g},slotProps:{transition:x,paper:m,...b}},[A,$]=bb("transition",{elementType:JS,externalForwardedProps:L,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),D()},onExited:t=>{e.onExited?.(t),O(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||A.muiSupportAuto||(F=void 0);const N=d||(o?Xg(JC(o)).body:void 0),[z,{slots:j,slotProps:_,...B}]=bb("root",{ref:t,elementType:ek,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:nb("function"==typeof b.backdrop?b.backdrop(E):b.backdrop,{invisible:!0})},container:N,open:h},ownerState:E,className:Bg(R.root,u)}),[H,V]=bb("paper",{ref:k,className:R.paper,elementType:tk,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:I?void 0:{opacity:0}},ownerState:E});return Xp.jsx(z,{...B,...!db(z)&&{slots:j,slotProps:_,disableScrollLock:S},children:Xp.jsx(A,{...$,timeout:F,children:Xp.jsx(H,{...V,children:c})})})});function rk(e){return Mh("MuiMenu",e)}Ph("MuiMenu",["root","paper","list"]);const ok={vertical:"top",horizontal:"right"},ik={vertical:"top",horizontal:"left"},ak=Ig(nk,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),lk=Ig(tk,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sk=Ig(qC,{name:"MuiMenu",slot:"List"})({outline:0}),ck=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:h,...m}={},variant:g="selectedMenu",slots:b={},slotProps:v={},...y}=n,w=mm(),x={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:l,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:m,variant:g},S=(e=>{const{classes:t}=e;return zm({root:["root"],paper:["paper"],list:["list"]},rk,t)})(x),C=r&&!a&&u,k=s.useRef(null);let E=-1;s.Children.map(o,(e,t)=>{s.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===E)&&(E=t))});const R={slots:b,slotProps:{list:l,transition:m,paper:d,...v}},M=Uy({elementType:b.root,externalSlotProps:v.root,ownerState:x,className:[S.root,i]}),[P,T]=bb("paper",{className:S.paper,elementType:lk,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:x}),[I,O]=bb("list",{className:Bg(S.list,l.className),elementType:sk,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:x}),D="function"==typeof R.slotProps.transition?R.slotProps.transition(x):R.slotProps.transition;return Xp.jsx(ak,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?ok:ik,slots:{root:b.root,paper:P,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:M,paper:T,backdrop:"function"==typeof v.backdrop?v.backdrop(x):v.backdrop,transition:{...D,onEntering:(...e)=>{((e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),h&&h(e,t)})(...e),D?.onEntering?.(...e)}}},open:u,ref:t,transitionDuration:f,ownerState:x,...y,classes:p,children:Xp.jsx(I,{actions:k,autoFocus:r&&(-1===E||a),autoFocusItem:C,variant:g,...O,children:o})})});function uk(e){return Mh("MuiMenuItem",e)}const dk=Ph("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pk=Ig(Lb,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Vg(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dk.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${dk.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${dk.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${dk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ES.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ES.inset}`]:{marginLeft:52},[`& .${BC.root}`]:{marginTop:0,marginBottom:0},[`& .${BC.inset}`]:{paddingLeft:36},[`& .${NC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${NC.root} svg`]:{fontSize:"1.25rem"}}}]}))),fk=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=n,h=s.useContext(kC),m=s.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),g=s.useRef(null);Wh(()=>{r&&g.current&&g.current.focus()},[r]);const b={...n,dense:m.dense,divider:a,disableGutters:l},v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=zm({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},uk,a);return{...a,...l}})(n),y=tb(g,t);let w;return n.disabled||(w=void 0!==d?d:-1),Xp.jsx(kC.Provider,{value:m,children:Xp.jsx(pk,{ref:y,role:u,tabIndex:w,component:o,focusVisibleClassName:Bg(v.focusVisible,c),className:Bg(v.root,p),...f,ownerState:b,classes:v})})});function hk(e){return Mh("MuiNativeSelect",e)}const mk=Ph("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gk=Ig("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${mk.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),bk=Ig(gk,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tg,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${mk.multiple}`]:t.multiple}]}})({}),vk=Ig("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${mk.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),yk=Ig(vk,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xf(n.variant)}`],n.open&&t.iconOpen]}})({}),wk=s.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard",...c}=e,u={...e,disabled:r,variant:l,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return zm({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xf(n)}`,i&&"iconOpen",r&&"disabled"]},hk,t)})(u);return Xp.jsxs(s.Fragment,{children:[Xp.jsx(bk,{ownerState:u,className:Bg(d.select,n),disabled:r,ref:a||t,...c}),e.multiple?null:Xp.jsx(yk,{as:i,ownerState:u,className:d.icon})]})});var xk;const Sk=Ig("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Tg})({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%"}),Ck=Ig("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Tg})(Vg(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const kk=Ig(Ew,{shouldForwardProp:e=>Tg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cw})(Vg(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Dw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Dw.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Dw.focused} .${Dw.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{[`&.${Dw.focused} .${Dw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dw.error} .${Dw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Dw.disabled} .${Dw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),Ek=Ig(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=null!=o&&""!==o,s={...e,notched:i,withLabel:l};return Xp.jsx(Sk,{"aria-hidden":!0,className:r,ownerState:s,...a,children:Xp.jsx(Ck,{ownerState:s,children:l?Xp.jsx("span",{children:o}):xk||(xk=Xp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Vg(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Rk=Ig(Rw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kw})(Vg(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Mk=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...f}=n,h=(e=>{const{classes:t}=e,n=zm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ow,t);return{...t,...n}})(n),m=bw(),g=mw({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:p},v=u.root??r.Root??kk,y=u.input??r.Input??Rk,[w,x]=bb("notchedOutline",{elementType:Ek,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=a&&""!==a&&g.required?Xp.jsxs(s.Fragment,{children:[a," ","*"]}):a}});return Xp.jsx(Pw,{slots:{root:v,input:y},slotProps:d,renderSuffix:e=>Xp.jsx(w,{...x,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:l,ref:t,type:p,...f,classes:{...h,notchedOutline:null}})});Mk.muiName="Input";var Pk=qg(Xp.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Tk=qg(Xp.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}));function Ik(e){return Mh("MuiSelect",e)}const Ok=Ph("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dk;const Fk=Ig(gk,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ok.select}`]:t.select},{[`&.${Ok.select}`]:t[n.variant]},{[`&.${Ok.error}`]:t.error},{[`&.${Ok.multiple}`]:t.multiple}]}})({[`&.${Ok.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lk=Ig(vk,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xf(n.variant)}`],n.open&&t.iconOpen]}})({}),Ak=Ig("input",{shouldForwardProp:e=>Pg(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $k(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Nk(e){return null==e||"string"==typeof e&&!e.trim()}const zk=s.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:w,onChange:x,onClose:S,onFocus:C,onKeyDown:k,onMouseDown:E,onOpen:R,open:M,readOnly:P,renderValue:T,required:I,SelectDisplayProps:O={},tabIndex:D,type:F,value:L,variant:A="standard",...$}=e,[N,z]=Jg({controlled:L,default:u,name:"Select"}),[j,_]=Jg({controlled:M,default:c,name:"Select"}),B=s.useRef(null),H=s.useRef(null),[V,W]=s.useState(null),{current:U}=s.useRef(null!=M),[G,K]=s.useState(),q=tb(t,m),Y=s.useCallback(e=>{H.current=e,e&&W(e)},[]),X=V?.parentNode;s.useImperativeHandle(q,()=>({focus:()=>{H.current.focus()},node:B.current,value:N}),[N]),s.useEffect(()=>{c&&j&&V&&!U&&(K(i?null:X.clientWidth),H.current.focus())},[V,i]),s.useEffect(()=>{o&&H.current.focus()},[o]),s.useEffect(()=>{if(!g)return;const e=Xg(H.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Q=(e,t)=>{e?R&&R(t):S&&S(t),U||(K(i?null:X.clientWidth),_(e))},Z=s.Children.toArray(a),J=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(N)?N.slice():[];const t=N.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),N!==n&&(z(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),x(o,e)}v||Q(!1,t)}},ee=null!==V&&j;let te,ne;delete $["aria-invalid"];const re=[];let oe=!1;(yw({value:N})||p)&&(T?te=T(N):oe=!0);const ie=Z.map(e=>{if(!s.isValidElement(e))return null;let t;if(v){if(!Array.isArray(N))throw new Error(rd(2));t=N.some(t=>$k(t,e.props.value)),t&&oe&&re.push(e.props.children)}else t=$k(N,e.props.value),t&&oe&&(ne=e.props.children);return s.cloneElement(e,{"aria-selected":t?"true":"false",onClick:J(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});oe&&(te=v?0===re.length?null:re.reduce((e,t,n)=>(e.push(t),n<re.length-1&&e.push(", "),e),[]):ne);let ae,le=G;!i&&U&&V&&(le=X.clientWidth),ae=void 0!==D?D:d?null:0;const se=O.id||(y?`mui-component-select-${y}`:void 0),ce={...e,variant:A,value:N,open:ee,error:f},ue=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return zm({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${xf(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Ik,t)})(ce),de={...b.PaperProps,..."function"==typeof b.slotProps?.paper?b.slotProps.paper(ce):b.slotProps?.paper},pe={...b.MenuListProps,..."function"==typeof b.slotProps?.list?b.slotProps.list(ce):b.slotProps?.list},fe=xm();return Xp.jsxs(s.Fragment,{children:[Xp.jsx(Fk,{as:"div",ref:Y,tabIndex:ae,role:"combobox","aria-controls":ee?fe:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,se].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":I?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{if(!P){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Q(!0,e)),k?.(e)}},onMouseDown:d||P?null:e=>{E?.(e),0===e.button&&(e.preventDefault(),H.current.focus(),Q(!0,e))},onBlur:e=>{!ee&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:y}}),w(e))},onFocus:C,...O,ownerState:ce,className:Bg(O.className,ue.select,l),id:se,children:Nk(te)?Dk||(Dk=Xp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):te}),Xp.jsx(Ak,{"aria-invalid":f,value:Array.isArray(N)?N.join(","):N,name:y,ref:B,"aria-hidden":!0,onChange:e=>{const t=Z.find(t=>t.props.value===e.target.value);void 0!==t&&(z(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:d,className:ue.nativeInput,autoFocus:o,required:I,...$,ownerState:ce}),Xp.jsx(Lk,{as:h,className:ue.icon,ownerState:ce}),Xp.jsx(ck,{id:`menu-${y||""}`,anchorEl:X,open:ee,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:fe,...pe},paper:{...de,style:{minWidth:le,...null!=de?de.style:null}}},children:ie})]})}),jk={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Tg(e)&&"variant"!==e},_k=Ig(nC,jk)(""),Bk=Ig(Mk,jk)(""),Hk=Ig(OS,jk)(""),Vk=s.forwardRef(function(e,t){const n=Wg({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Aw,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:w,open:x,renderValue:S,SelectDisplayProps:C,variant:k="outlined",...E}=n,R=v?wk:zk,M=mw({props:n,muiFormControl:bw(),states:["variant","error"]}),P=M.variant||k,T={...n,variant:P,classes:i},I=(e=>{const{classes:t}=e,n=zm({root:["root"]},Ik,t);return{...t,...n}})(T),{root:O,...D}=I,F=p||{standard:Xp.jsx(_k,{ownerState:T}),outlined:Xp.jsx(Bk,{label:h,ownerState:T}),filled:Xp.jsx(Hk,{ownerState:T})}[P],L=tb(t,Gy(F));return Xp.jsx(s.Fragment,{children:s.cloneElement(F,{inputComponent:R,inputProps:{children:o,error:M.error,IconComponent:u,variant:P,type:void 0,multiple:b,...v?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:y,onOpen:w,open:x,renderValue:S,SelectDisplayProps:{id:d,...C}},...f,classes:f?df(D,f.classes):D,...p?p.props.inputProps:{}},...(b&&v||c)&&"outlined"===P?{notched:!0}:{},ref:L,className:Bg(F.props.className,a,I.root),...!p&&{variant:P},...E})})});function Wk(e){return Mh("MuiSkeleton",e)}Vk.muiName="Select",Ph("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Uk=zp`
|
|
183
|
-
0% {
|
|
184
|
-
opacity: 1;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
50% {
|
|
188
|
-
opacity: 0.4;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
100% {
|
|
192
|
-
opacity: 1;
|
|
193
|
-
}
|
|
194
|
-
`,Gk=zp`
|
|
195
|
-
0% {
|
|
196
|
-
transform: translateX(-100%);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
50% {
|
|
200
|
-
/* +0.5s of delay between each loop */
|
|
201
|
-
transform: translateX(100%);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
100% {
|
|
205
|
-
transform: translateX(100%);
|
|
206
|
-
}
|
|
207
|
-
`,Kk="string"!=typeof Uk?Np`
|
|
208
|
-
animation: ${Uk} 2s ease-in-out 0.5s infinite;
|
|
209
|
-
`:null,qk="string"!=typeof Gk?Np`
|
|
210
|
-
&::after {
|
|
211
|
-
animation: ${Gk} 2s linear 0.5s infinite;
|
|
212
|
-
}
|
|
213
|
-
`:null,Yk=Ig("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Vg(({theme:e})=>{const t=(n=e.shape.borderRadius,String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px");var n;const r=function(e){return parseFloat(e)}(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Kk||{animation:`${Uk} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:qk||{"&::after":{animation:`${Gk} 2s linear 0.5s infinite`}}}]}})),Xk=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:i="span",height:a,style:l,variant:s="text",width:c,...u}=n,d={...n,animation:r,component:i,variant:s,hasChildren:Boolean(u.children)},p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return zm({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},Wk,t)})(d);return Xp.jsx(Yk,{as:i,ref:t,className:Bg(p.root,o),ownerState:d,...u,style:{width:c,height:a,...l}})});function Qk(e){return Mh("MuiSnackbarContent",e)}Ph("MuiSnackbarContent",["root","message","action"]);const Zk=Ig(wb,{name:"MuiSnackbarContent",slot:"Root"})(Vg(({theme:e})=>{const t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(lm(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:lm(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Jk=Ig("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),eE=Ig("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),tE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:i,role:a="alert",...l}=n,s=n,c=(e=>{const{classes:t}=e;return zm({root:["root"],action:["action"],message:["message"]},Qk,t)})(s);return Xp.jsxs(Zk,{role:a,elevation:6,className:Bg(c.root,o),ownerState:s,ref:t,...l,children:[Xp.jsx(Jk,{className:c.message,ownerState:s,children:i}),r?Xp.jsx(eE,{className:c.action,ownerState:s,children:r}):null]})});function nE(e){return Mh("MuiSnackbar",e)}Ph("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const rE=Ig("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${xf(n.anchorOrigin.vertical)}${xf(n.anchorOrigin.horizontal)}`]]}})(Vg(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),oE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiSnackbar"}),r=Rg(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:h=!1,message:m,onBlur:g,onClose:b,onFocus:v,onMouseEnter:y,onMouseLeave:w,open:x,resumeHideDuration:S,slots:C={},slotProps:k={},TransitionComponent:E,transitionDuration:R=o,TransitionProps:{onEnter:M,onExited:P,...T}={},...I}=n,O={...n,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:h,TransitionComponent:E,transitionDuration:R},D=(e=>{const{classes:t,anchorOrigin:n}=e;return zm({root:["root",`anchorOrigin${xf(n.vertical)}${xf(n.horizontal)}`]},nE,t)})(O),{getRootProps:F,onClickAway:L}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=sb();s.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}},[o,r]);const l=eb((e,t)=>{r?.(e,t)}),c=eb(e=>{r&&null!=e&&a.start(e,()=>{l(null,"timeout")})});s.useEffect(()=>(o&&c(t),a.clear),[o,t,c,a]);const u=a.clear,d=s.useCallback(()=>{null!=t&&c(null!=i?i:.5*t)},[t,i,c]),p=e=>t=>{const n=e.onFocus;n?.(t),u()},f=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return s.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(t={})=>{const n={...hb(e),...hb(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:h(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}}(O),[A,$]=s.useState(!0),N={slots:{transition:E,...C},slotProps:{content:f,clickAwayListener:p,transition:T,...k}},[z,j]=bb("root",{ref:t,className:[D.root,d],elementType:rE,getSlotProps:F,externalForwardedProps:{...N,...I},ownerState:O}),[_,{ownerState:B,...H}]=bb("clickAwayListener",{elementType:zx,externalForwardedProps:N,getSlotProps:e=>({onClickAway:(...t)=>{const n=t[0];e.onClickAway?.(...t),n?.defaultMuiPrevented||L(...t)}}),ownerState:O}),[V,W]=bb("content",{elementType:tE,shouldForwardComponentProp:!0,externalForwardedProps:N,additionalProps:{message:m,action:i},ownerState:O}),[U,G]=bb("transition",{elementType:JS,externalForwardedProps:N,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{$(!1),M&&M(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{$(!0),P&&P(e)})(...t)}}),additionalProps:{appear:!0,in:x,timeout:R,direction:"top"===a?"down":"up"},ownerState:O});return!x&&A?null:Xp.jsx(_,{...H,...C.clickAwayListener&&{ownerState:B},children:Xp.jsx(z,{...j,children:Xp.jsx(U,{...G,children:u||Xp.jsx(V,{...W})})})})});function iE(e){return Mh("MuiTooltip",e)}const aE=Ph("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const lE=Ig(ew,{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]}})(Vg(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${aE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${aE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${aE.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${aE.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${aE.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${aE.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${aE.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${aE.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),sE=Ig("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${xf(n.placement.split("-")[0])}`]]}})(Vg(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${aE.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${aE.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${aE.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${aE.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${aE.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${aE.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${aE.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${aE.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${aE.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${aE.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${aE.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${aE.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${aE.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${aE.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),cE=Ig("span",{name:"MuiTooltip",slot:"Arrow"})(Vg(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let uE=!1;const dE=new lb;let pE={x:0,y:0};function fE(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const hE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:h=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:b=!1,id:v,leaveDelay:y=0,leaveTouchDelay:w=1500,onClose:x,onOpen:S,open:C,placement:k="bottom",PopperComponent:E,PopperProps:R={},slotProps:M={},slots:P={},title:T,TransitionComponent:I,TransitionProps:O,...D}=n,F=s.isValidElement(o)?o:Xp.jsx("span",{children:o}),L=Rg(),A=mm(),[$,N]=s.useState(),[z,j]=s.useState(null),_=s.useRef(!1),B=p||b,H=sb(),V=sb(),W=sb(),U=sb(),[G,K]=Jg({controlled:C,default:!1,name:"Tooltip",state:"open"});let q=G;const Y=xm(v),X=s.useRef(),Q=eb(()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),U.clear()});s.useEffect(()=>Q,[Q]);const Z=e=>{dE.clear(),uE=!0,K(!0),S&&!q&&S(e)},J=eb(e=>{dE.start(800+y,()=>{uE=!1}),K(!1),x&&q&&x(e),H.start(L.transitions.duration.shortest,()=>{_.current=!1})}),ee=e=>{_.current&&"touchstart"!==e.type||($&&$.removeAttribute("title"),V.clear(),W.clear(),h||uE&&m?V.start(uE?m:h,()=>{Z(e)}):Z(e))},te=e=>{V.clear(),W.start(y,()=>{J(e)})},[,ne]=s.useState(!1),re=e=>{Sb(e.target)||(ne(!1),te(e))},oe=e=>{$||N(e.currentTarget),Sb(e.target)&&(ne(!0),ee(e))},ie=e=>{_.current=!0;const t=F.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{ie(e),W.clear(),H.clear(),Q(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(g,()=>{document.body.style.WebkitUserSelect=X.current,ee(e)})},le=e=>{F.props.onTouchEnd&&F.props.onTouchEnd(e),Q(),W.start(w,()=>{J(e)})};s.useEffect(()=>{if(q)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(e)}},[J,q]);const se=tb(Gy(F),N,t);T||0===T||(q=!1);const ce=s.useRef(),ue={},de="string"==typeof T;c?(ue.title=q||!de||d?null:T,ue["aria-describedby"]=q?Y:null):(ue["aria-label"]=de?T:null,ue["aria-labelledby"]=q&&!de?Y:null);const pe={...ue,...D,...F.props,className:Bg(D.className,F.props.className),onTouchStart:ie,ref:se,...b?{onMouseMove:e=>{const t=F.props;t.onMouseMove&&t.onMouseMove(e),pE={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};f||(pe.onTouchStart=ae,pe.onTouchEnd=le),d||(pe.onMouseOver=fE(ee,pe.onMouseOver),pe.onMouseLeave=fE(te,pe.onMouseLeave),B||(fe.onMouseOver=ee,fe.onMouseLeave=te)),u||(pe.onFocus=fE(oe,pe.onFocus),pe.onBlur=fE(re,pe.onBlur),B||(fe.onFocus=oe,fe.onBlur=re));const he={...n,isRtl:A,arrow:r,disableInteractive:B,placement:k,PopperComponentProp:E,touch:_.current},me="function"==typeof M.popper?M.popper(he):M.popper,ge=s.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return R.popperOptions?.modifiers&&(e=e.concat(R.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...R.popperOptions,...me?.popperOptions,modifiers:e}},[z,R.popperOptions,me?.popperOptions]),be=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return zm({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${xf(i.split("-")[0])}`],arrow:["arrow"]},iE,t)})(he),ve="function"==typeof M.transition?M.transition(he):M.transition,ye={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...P},slotProps:{arrow:M.arrow??l.arrow,popper:{...R,...me??l.popper},tooltip:M.tooltip??l.tooltip,transition:{...O,...ve??l.transition}}},[we,xe]=bb("popper",{elementType:lE,externalForwardedProps:ye,ownerState:he,className:Bg(be.popper,R?.className)}),[Se,Ce]=bb("transition",{elementType:JS,externalForwardedProps:ye,ownerState:he}),[ke,Ee]=bb("tooltip",{elementType:sE,className:be.tooltip,externalForwardedProps:ye,ownerState:he}),[Re,Me]=bb("arrow",{elementType:cE,className:be.arrow,externalForwardedProps:ye,ownerState:he,ref:j});return Xp.jsxs(s.Fragment,{children:[s.cloneElement(F,pe),Xp.jsx(we,{as:E??ew,placement:k,anchorEl:b?{getBoundingClientRect:()=>({top:pE.y,left:pE.x,right:pE.x,bottom:pE.y,width:0,height:0})}:$,popperRef:ce,open:!!$&&q,id:Y,transition:!0,...fe,...xe,popperOptions:ge,children:({TransitionProps:e})=>Xp.jsx(Se,{timeout:L.transitions.duration.shorter,...e,...Ce,children:Xp.jsxs(ke,{...Ee,children:[T,r?Xp.jsx(Re,{...Me}):null]})})})]})});function mE(e){return Mh("MuiSwitch",e)}const gE=Ph("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),bE=Ig("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${xf(n.edge)}`],t[`size${xf(n.size)}`]]}})({display:"inline-flex",width:58,height:38,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,[`& .${gE.thumb}`]:{width:16,height:16},[`& .${gE.switchBase}`]:{padding:4,[`&.${gE.checked}`]:{transform:"translateX(16px)"}}}}]}),vE=Ig(Rx,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${gE.input}`]:t.input},"default"!==n.color&&t[`color${xf(n.color)}`]]}})(Vg(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${gE.checked}`]:{transform:"translateX(20px)"},[`&.${gE.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${gE.checked} + .${gE.track}`]:{opacity:.5},[`&.${gE.disabled} + .${gE.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${gE.input}`]:{left:"-100%",width:"300%"}})),Vg(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter($b(["light"])).map(([t])=>({props:{color:t},style:{[`&.${gE.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gE.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${gE.checked} + .${gE.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),yE=Ig("span",{name:"MuiSwitch",slot:"Track"})(Vg(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),wE=Ig("span",{name:"MuiSwitch",slot:"Thumb"})(Vg(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),xE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:i=!1,size:a="medium",sx:l,slots:s={},slotProps:c={},...u}=n,d={...n,color:o,edge:i,size:a},p=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l=zm({root:["root",n&&`edge${xf(n)}`,`size${xf(r)}`],switchBase:["switchBase",`color${xf(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},mE,t);return{...t,...l}})(d),f={slots:s,slotProps:c},[h,m]=bb("root",{className:Bg(p.root,r),elementType:bE,externalForwardedProps:f,ownerState:d,additionalProps:{sx:l}}),[g,b]=bb("thumb",{className:p.thumb,elementType:wE,externalForwardedProps:f,ownerState:d}),v=Xp.jsx(g,{...b}),[y,w]=bb("track",{className:p.track,elementType:yE,externalForwardedProps:f,ownerState:d});return Xp.jsxs(h,{...m,children:[Xp.jsx(vE,{type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:d,...u,classes:{...p,root:p.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(d):c.switchBase},input:{role:"switch"},...c.input&&{input:"function"==typeof c.input?c.input(d):c.input}}}),Xp.jsx(y,{...w})]})});function SE(e){return Mh("MuiTab",e)}const CE=Ph("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),kE=Ig(Lb,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${xf(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${CE.iconWrapper}`]:t.iconWrapper},{[`& .${CE.icon}`]:t.icon}]}})(Vg(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${CE.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${CE.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${CE.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${CE.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${CE.selected}`]:{opacity:1},[`&.${CE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${CE.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${CE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${CE.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${CE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),EE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:h,selected:m,selectionFollowsFocus:g,textColor:b="inherit",value:v,wrapped:y=!1,...w}=n,x={...n,disabled:o,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:a,textColor:b,wrapped:y},S=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:l,disabled:s}=e;return zm({root:["root",i&&a&&"labelIcon",`textColor${xf(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]},SE,t)})(x),C=l&&d&&s.isValidElement(l)?s.cloneElement(l,{className:Bg(S.icon,l.props.className)}):l;return Xp.jsxs(kE,{focusRipple:!i,className:Bg(S.root,r),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&p&&p(e,v),f&&f(e)},onFocus:e=>{g&&!m&&p&&p(e,v),h&&h(e)},ownerState:x,tabIndex:m?0:-1,...w,children:["top"===c||"start"===c?Xp.jsxs(s.Fragment,{children:[C,d]}):Xp.jsxs(s.Fragment,{children:[d,C]}),u]})}),RE=s.createContext(),ME=s.createContext();function PE(e){return Mh("MuiTableCell",e)}const TE=Ph("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),IE=Ig("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${xf(n.size)}`],"normal"!==n.padding&&t[`padding${xf(n.padding)}`],"inherit"!==n.align&&t[`align${xf(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Vg(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${TE.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),OE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:c,sortDirection:u,variant:d,...p}=n,f=s.useContext(RE),h=s.useContext(ME),m=h&&"head"===h.variant;let g;g=i||(m?"th":"td");let b=l;"td"===g?b=void 0:!b&&m&&(b="col");const v=d||h&&h.variant,y={...n,align:r,component:g,padding:a||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return zm({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${xf(r)}`,"normal"!==o&&`padding${xf(o)}`,`size${xf(i)}`]},PE,t)})(y);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Xp.jsx(IE,{as:g,ref:t,className:Bg(w.root,o),"aria-sort":x,scope:b,ownerState:y,...p})});function DE(e){return Mh("MuiToolbar",e)}Ph("MuiToolbar",["root","gutters","regular","dense"]);const FE=Ig("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Vg(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),LE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular",...l}=n,s={...n,component:o,disableGutters:i,variant:a},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return zm({root:["root",!n&&"gutters",r]},DE,t)})(s);return Xp.jsx(FE,{as:o,className:Bg(c.root,r),ref:t,ownerState:s,...l})});var AE=qg(Xp.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),$E=qg(Xp.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function NE(e){return Mh("MuiTablePaginationActions",e)}Ph("MuiTablePaginationActions",["root"]);const zE=Ig("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),jE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:r,className:o,count:i,disabled:a=!1,getItemAriaLabel:l,nextIconButtonProps:s,onPageChange:c,page:u,rowsPerPage:d,showFirstButton:p,showLastButton:f,slots:h={},slotProps:m={},...g}=n,b=mm(),v=(e=>{const{classes:t}=e;return zm({root:["root"]},NE,t)})(n),y=h.firstButton??ev,w=h.lastButton??ev,x=h.nextButton??ev,S=h.previousButton??ev,C=h.firstButtonIcon??Pk,k=h.lastButtonIcon??Tk,E=h.nextButtonIcon??$E,R=h.previousButtonIcon??AE,M=b?w:y,P=b?x:S,T=b?S:x,I=b?y:w,O=b?m.lastButton:m.firstButton,D=b?m.nextButton:m.previousButton,F=b?m.previousButton:m.nextButton,L=b?m.firstButton:m.lastButton;return Xp.jsxs(zE,{ref:t,className:Bg(v.root,o),...g,children:[p&&Xp.jsx(M,{onClick:e=>{c(e,0)},disabled:a||0===u,"aria-label":l("first",u),title:l("first",u),...O,children:b?Xp.jsx(k,{...m.lastButtonIcon}):Xp.jsx(C,{...m.firstButtonIcon})}),Xp.jsx(P,{onClick:e=>{c(e,u-1)},disabled:a||0===u,color:"inherit","aria-label":l("previous",u),title:l("previous",u),...D??r,children:b?Xp.jsx(E,{...m.nextButtonIcon}):Xp.jsx(R,{...m.previousButtonIcon})}),Xp.jsx(T,{onClick:e=>{c(e,u+1)},disabled:a||-1!==i&&u>=Math.ceil(i/d)-1,color:"inherit","aria-label":l("next",u),title:l("next",u),...F??s,children:b?Xp.jsx(R,{...m.previousButtonIcon}):Xp.jsx(E,{...m.nextButtonIcon})}),f&&Xp.jsx(I,{onClick:e=>{c(e,Math.max(0,Math.ceil(i/d)-1))},disabled:a||u>=Math.ceil(i/d)-1,"aria-label":l("last",u),title:l("last",u),...L,children:b?Xp.jsx(C,{...m.firstButtonIcon}):Xp.jsx(k,{...m.lastButtonIcon})})]})});function _E(e){return Mh("MuiTablePagination",e)}const BE=Ph("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var HE;const VE=Ig(OE,{name:"MuiTablePagination",slot:"Root"})(Vg(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),WE=Ig(LE,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${BE.actions}`]:t.actions,...t.toolbar})})(Vg(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${BE.actions}`]:{flexShrink:0,marginLeft:20}}))),UE=Ig("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),GE=Ig("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Vg(({theme:e})=>({...e.typography.body2,flexShrink:0}))),KE=Ig(Vk,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${BE.selectIcon}`]:t.selectIcon,[`& .${BE.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${BE.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),qE=Ig(fk,{name:"MuiTablePagination",slot:"MenuItem"})({}),YE=Ig("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Vg(({theme:e})=>({...e.typography.body2,flexShrink:0})));function XE({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function QE(e){return`Go to ${e} page`}const ZE=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTablePagination"}),{ActionsComponent:r=jE,backIconButtonProps:o,colSpan:i,component:a=OE,count:l,disabled:c=!1,getItemAriaLabel:u=QE,labelDisplayedRows:d=XE,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:h,onRowsPerPageChange:m,page:g,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:x=!1,slotProps:S={},slots:C={},...k}=n,E=n,R=(e=>{const{classes:t}=e;return zm({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},_E,t)})(E),M=S?.select??y,P=M.native?"option":qE;let T;a!==OE&&"td"!==a||(T=i||1e3);const I=xm(M.id),O=xm(M.labelId),D={slots:C,slotProps:S},[F,L]=bb("root",{ref:t,className:R.root,elementType:VE,externalForwardedProps:{...D,component:a,...k},ownerState:E,additionalProps:{colSpan:T}}),[A,$]=bb("toolbar",{className:R.toolbar,elementType:WE,externalForwardedProps:D,ownerState:E}),[N,z]=bb("spacer",{className:R.spacer,elementType:UE,externalForwardedProps:D,ownerState:E}),[j,_]=bb("selectLabel",{className:R.selectLabel,elementType:GE,externalForwardedProps:D,ownerState:E,additionalProps:{id:O}}),[B,H]=bb("select",{className:R.select,elementType:KE,externalForwardedProps:D,ownerState:E}),[V,W]=bb("menuItem",{className:R.menuItem,elementType:P,externalForwardedProps:D,ownerState:E}),[U,G]=bb("displayedRows",{className:R.displayedRows,elementType:YE,externalForwardedProps:D,ownerState:E});return Xp.jsx(F,{...L,children:Xp.jsxs(A,{...$,children:[Xp.jsx(N,{...z}),v.length>1&&Xp.jsx(j,{..._,children:p}),v.length>1&&Xp.jsx(B,{variant:"standard",...!M.variant&&{input:HE||(HE=Xp.jsx(Pw,{}))},value:b,onChange:m,id:I,labelId:O,...M,classes:{...M.classes,root:Bg(R.input,R.selectRoot,(M.classes||{}).root),select:Bg(R.select,(M.classes||{}).select),icon:Bg(R.selectIcon,(M.classes||{}).icon)},disabled:c,...H,children:v.map(e=>s.createElement(V,{...W,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),Xp.jsx(U,{...G,children:d({from:0===l?0:g*b+1,to:-1===l?(g+1)*b:-1===b?l:Math.min(l,(g+1)*b),count:-1===l?-1:l,page:g})}),Xp.jsx(r,{className:R.actions,backIconButtonProps:o,count:l,nextIconButtonProps:f,onPageChange:h,page:g,rowsPerPage:b,showFirstButton:w,showLastButton:x,slotProps:S.actions,slots:C.actions,getItemAriaLabel:u,disabled:c})]})})});function JE(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const eR={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function tR(e){return Mh("MuiTabScrollButton",e)}const nR=Ph("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),rR=Ig(Lb,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${nR.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),oR=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:i={},direction:a,orientation:l,disabled:s,...c}=n,u=mm(),d={isRtl:u,...n},p=(e=>{const{classes:t,orientation:n,disabled:r}=e;return zm({root:["root",n,r&&"disabled"]},tR,t)})(d),f=o.StartScrollButtonIcon??AE,h=o.EndScrollButtonIcon??$E,m=Uy({elementType:f,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=Uy({elementType:h,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Xp.jsx(rR,{component:"div",className:Bg(p.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...c,style:{...c.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:"left"===a?Xp.jsx(f,{...m}):Xp.jsx(h,{...g})})});function iR(e){return Mh("MuiTabs",e)}const aR=Ph("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),lR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,sR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,cR=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},uR=Ig("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aR.scrollButtons}`]:t.scrollButtons},{[`& .${aR.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Vg(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${aR.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),dR=Ig("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),pR=Ig("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),fR=Ig("span",{name:"MuiTabs",slot:"Indicator"})(Vg(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),hR=Ig(function(e){const{onChange:t,...n}=e,r=s.useRef(),o=s.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Wh(()=>{const e=Yg(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Qg(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),s.useEffect(()=>{i(),t(r.current)},[t]),Xp.jsx("div",{style:eR,...n,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),mR={},gR=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTabs"}),r=Rg(),o=mm(),{"aria-label":i,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:h="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:y,slots:w={},slotProps:x={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:k="primary",value:E,variant:R="standard",visibleScrollbar:M=!1,...P}=n,T="scrollable"===R,I="vertical"===g,O=I?"scrollTop":"scrollLeft",D=I?"top":"left",F=I?"bottom":"right",L=I?"clientHeight":"clientWidth",A=I?"height":"width",$={...n,component:p,allowScrollButtonsMobile:f,indicatorColor:h,orientation:g,vertical:I,scrollButtons:v,textColor:k,variant:R,visibleScrollbar:M,fixed:!T,hideScrollbar:T&&!M,scrollableX:T&&!I,scrollableY:T&&I,centered:c&&!T,scrollButtonsHideMobile:!f},N=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return zm({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},iR,s)})($),z=Uy({elementType:w.StartScrollButtonIcon,externalSlotProps:x.startScrollButtonIcon,ownerState:$}),j=Uy({elementType:w.EndScrollButtonIcon,externalSlotProps:x.endScrollButtonIcon,ownerState:$}),[_,B]=s.useState(!1),[H,V]=s.useState(mR),[W,U]=s.useState(!1),[G,K]=s.useState(!1),[q,Y]=s.useState(!1),[X,Q]=s.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,J=s.useRef(null),ee=s.useRef(null),te={slots:w,slotProps:{indicator:S,scrollButton:C,...x}},ne=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==E){const e=ee.current.children;if(e.length>0){const t=e[Z.get(E)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},re=eb(()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,r=0;I?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=o?"right":"left",t&&e&&(r=(o?-1:1)*(t[n]-e[n]+e.scrollLeft)));const i={[n]:r,[A]:t?t[A]:0};if("number"!=typeof H[n]||"number"!=typeof H[A])V(i);else{const e=Math.abs(H[n]-i[n]),t=Math.abs(H[A]-i[A]);(e>=1||t>=1)&&V(i)}}),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=JE,duration:a=300}=r;let l=null;const s=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=r);const u=Math.min(1,(r-l)/a);t[e]=i(u)*(n-s)+s,u>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};s===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(O,J.current,e,{duration:r.transitions.duration.standard}):J.current[O]=e},ie=e=>{let t=J.current[O];t+=I?e:e*(o?-1:1),oe(t)},ae=()=>{const e=J.current[L];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[L]>e){0===r&&(t=e);break}t+=o[L]}return t},le=()=>{ie(-1*ae())},se=()=>{ie(ae())},[ce,{onChange:ue,...de}]=bb("scrollbar",{className:Bg(N.scrollableX,N.hideScrollbar),elementType:hR,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:$}),pe=s.useCallback(e=>{ue?.(e),Q({overflow:null,scrollbarWidth:e})},[ue]),[fe,he]=bb("scrollButtons",{className:Bg(N.scrollButtons,C.className),elementType:oR,externalForwardedProps:te,ownerState:$,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:j}}}),me=eb(e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[D]<t[D]){const r=t[O]+(n[D]-t[D]);oe(r,{animation:e})}else if(n[F]>t[F]){const r=t[O]+(n[F]-t[F]);oe(r,{animation:e})}}),ge=eb(()=>{T&&!1!==v&&Y(!q)});s.useEffect(()=>{const e=Yg(()=>{J.current&&re()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ge()},r=Qg(J.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ee.current,{childList:!0})),()=>{e.clear(),r.removeEventListener("resize",e),o?.disconnect(),t?.disconnect()}},[re,ge]),s.useEffect(()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&T&&!1!==v){const n=e[0],r=e[t-1],o={root:J.current,threshold:.99},i=new IntersectionObserver(e=>{U(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[T,v,q,u?.length]),s.useEffect(()=>{B(!0)},[]),s.useEffect(()=>{re()}),s.useEffect(()=>{me(mR!==H)},[me,H]),s.useImperativeHandle(l,()=>({updateIndicator:re,updateScrollButtons:ge}),[re,ge]);const[be,ve]=bb("indicator",{className:Bg(N.indicator,S.className),elementType:fR,externalForwardedProps:te,ownerState:$,additionalProps:{style:H}}),ye=Xp.jsx(be,{...ve});let we=0;const xe=s.Children.map(u,e=>{if(!s.isValidElement(e))return null;const t=void 0===e.props.value?we:e.props.value;Z.set(t,we);const n=t===E;return we+=1,s.cloneElement(e,{fullWidth:"fullWidth"===R,indicator:n&&!_&&ye,selected:n,selectionFollowsFocus:y,onChange:m,textColor:k,value:t,...1!==we||!1!==E||e.props.tabIndex?{}:{tabIndex:0}})}),Se=(()=>{const e={};e.scrollbarSizeListener=T?Xp.jsx(ce,{...de,onChange:pe}):null;const t=T&&("auto"===v&&(W||G)||!0===v);return e.scrollButtonStart=t?Xp.jsx(fe,{direction:o?"right":"left",onClick:le,disabled:!W,...he}):null,e.scrollButtonEnd=t?Xp.jsx(fe,{direction:o?"left":"right",onClick:se,disabled:!G,...he}):null,e})(),[Ce,ke]=bb("root",{ref:t,className:Bg(N.root,d),elementType:uR,externalForwardedProps:{...te,...P,component:p},ownerState:$}),[Ee,Re]=bb("scroller",{ref:J,className:N.scroller,elementType:dR,externalForwardedProps:te,ownerState:$,additionalProps:{style:{overflow:X.overflow,[I?"margin"+(o?"Left":"Right"):"marginBottom"]:M?void 0:-X.scrollbarWidth}}}),[Me,Pe]=bb("list",{ref:ee,className:Bg(N.list,N.flexContainer),elementType:pR,externalForwardedProps:te,ownerState:$,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=ee.current,n=Ux(Xg(t)),r=n?.getAttribute("role");if("tab"!==r)return;let i="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&o&&(i="ArrowRight",a="ArrowLeft"),e.key){case i:e.preventDefault(),cR(t,n,sR);break;case a:e.preventDefault(),cR(t,n,lR);break;case"Home":e.preventDefault(),cR(t,null,lR);break;case"End":e.preventDefault(),cR(t,null,sR)}})(t),e.onKeyDown?.(t)}})});return Xp.jsxs(Ce,{...ke,children:[Se.scrollButtonStart,Se.scrollbarSizeListener,Xp.jsxs(Ee,{...Re,children:[Xp.jsx(Me,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===g?"vertical":null,role:"tablist",...Pe,children:xe}),_&&ye]}),Se.scrollButtonEnd]})});function bR(e){return Mh("MuiTextField",e)}Ph("MuiTextField",["root"]);const vR={standard:nC,filled:OS,outlined:Mk},yR=Ig(LS,{name:"MuiTextField",slot:"Root"})({}),wR=s.forwardRef(function(e,t){const n=Wg({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:l="primary",defaultValue:s,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:g,InputProps:b,inputRef:v,label:y,maxRows:w,minRows:x,multiline:S=!1,name:C,onBlur:k,onChange:E,onFocus:R,placeholder:M,required:P=!1,rows:T,select:I=!1,SelectProps:O,slots:D={},slotProps:F={},type:L,value:A,variant:$="outlined",...N}=n,z={...n,autoFocus:o,color:l,disabled:c,error:u,fullWidth:p,multiline:S,required:P,select:I,variant:$},j=(e=>{const{classes:t}=e;return zm({root:["root"]},bR,t)})(z),_=xm(h),B=f&&_?`${_}-helper-text`:void 0,H=y&&_?`${_}-label`:void 0,V=vR[$],W={slots:D,slotProps:{input:b,inputLabel:m,htmlInput:g,formHelperText:d,select:O,...F}},U={},G=W.slotProps.inputLabel;"outlined"===$&&(G&&void 0!==G.shrink&&(U.notched=G.shrink),U.label=y),I&&(O&&O.native||(U.id=void 0),U["aria-describedby"]=void 0);const[K,q]=bb("root",{elementType:yR,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...N},ownerState:z,className:Bg(j.root,a),ref:t,additionalProps:{disabled:c,error:u,fullWidth:p,required:P,color:l,variant:$}}),[Y,X]=bb("input",{elementType:V,externalForwardedProps:W,additionalProps:U,ownerState:z}),[Q,Z]=bb("inputLabel",{elementType:uC,externalForwardedProps:W,ownerState:z}),[J,ee]=bb("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:z}),[te,ne]=bb("formHelperText",{elementType:WS,externalForwardedProps:W,ownerState:z}),[re,oe]=bb("select",{elementType:Vk,externalForwardedProps:W,ownerState:z}),ie=Xp.jsx(Y,{"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:p,multiline:S,name:C,rows:T,maxRows:w,minRows:x,type:L,value:A,id:_,inputRef:v,onBlur:k,onChange:E,onFocus:R,placeholder:M,inputProps:ee,slots:{input:D.htmlInput?J:void 0},...X});return Xp.jsxs(K,{...q,children:[null!=y&&""!==y&&Xp.jsx(Q,{htmlFor:_,id:H,...Z,children:y}),I?Xp.jsx(re,{"aria-describedby":B,id:_,labelId:H,value:A,input:ie,...oe,children:i}):ie,f&&Xp.jsx(te,{id:B,...ne,children:f})]})});function xR(e){return Mh("MuiToggleButton",e)}const SR=Ph("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),CR=s.createContext({}),kR=s.createContext(void 0);function ER(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const RR=Ig(Lb,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${xf(n.size)}`]]}})(Vg(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${SR.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${SR.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter($b()).map(([t])=>({props:{color:t},style:{[`&.${SR.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),MR=s.forwardRef(function(e,t){const{value:n,...r}=s.useContext(CR),o=s.useContext(kR),i=Wg({props:Hh({...r,selected:ER(e.value,n)},e),name:"MuiToggleButton"}),{children:a,className:l,color:c="standard",disabled:u=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:f,onClick:h,selected:m,size:g="medium",value:b,...v}=i,y={...i,color:c,disabled:u,disableFocusRipple:d,fullWidth:p,size:g},w=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e;return zm({root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${xf(i)}`,a]},xR,t)})(y),x=o||"";return Xp.jsx(RR,{className:Bg(r.className,w.root,l,x),disabled:u,focusRipple:!d,ref:t,onClick:e=>{h&&(h(e,b),e.defaultPrevented)||f&&f(e,b)},onChange:f,value:b,ownerState:y,"aria-pressed":m,...v,children:a})}),PR=qh({themeId:od}),TR=Number("7");var IR=qg(Xp.jsx("path",{d:"M19 5v14H5V5zm0-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-2"})),OR=qg(Xp.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));const DR=s.createElement(IR,{fontSize:"small"}),FR=s.createElement(OR,{fontSize:"small"});function LR({items:e,selectedKeys:t,defaultSelectedKeys:n,onChange:r,inputValue:o,defaultInputValue:i,onInputChange:a,debounceMs:l=300,label:c,placeholder:u,loading:d,disabled:p,size:f="small",error:h,helperText:m,limitTags:g=3,disableClearable:b,id:v,textFieldProps:y}){const w=s.useMemo(()=>Array.isArray(e)?e:[],[e]),x=Array.isArray(t),[S,C]=s.useState(Array.isArray(n)?n:[]),k=x?t:S,E=s.useMemo(()=>{const e=new Map;for(const t of w)e.set(t&&t.key,t);return e},[w]),R=s.useMemo(()=>(Array.isArray(k)?k:[]).map(e=>E.get(e)).filter(Boolean),[k,E]),M="string"==typeof o,[P,T]=s.useState("string"==typeof i?i:""),I=M?o:P,O=function(e,t=300){const n=s.useRef(e),r=s.useRef(null);return n.current=e,s.useEffect(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),s.useCallback((...e)=>{n.current&&(r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n.current&&n.current(...e)},t))},[t])}(e=>{a&&a(e)},l),D=R;return s.createElement(LS,{fullWidth:!0,error:h,disabled:p},s.createElement(Qw,{openOnFocus:!0,forcePopupIcon:!0,id:v,multiple:!0,disableCloseOnSelect:!0,options:w,value:D,inputValue:I,getOptionLabel:e=>e&&"object"==typeof e?e.value??"":"",isOptionEqualToValue:(e,t)=>e&&t&&e.key===t.key,loading:d,limitTags:g,disableClearable:b,onChange:(e,t)=>{const n=Array.isArray(t)?t.map(e=>e&&e.key):[];x||C(n),r&&r(n,Array.isArray(t)?t:[])},onInputChange:(e,t,n)=>{M||T(t??""),"input"===n?O(t??""):"clear"===n&&O("")},renderOption:(e,t,{selected:n})=>s.createElement("li",Xr({},e,{key:t&&t.key||Math.random().toString(36)}),s.createElement($x,{icon:DR,checkedIcon:FR,style:{marginRight:8},checked:!!n}),t&&t.value),renderTags:(e,t)=>(Array.isArray(e)?e:[]).map((e,n)=>s.createElement(uw,Xr({},t({index:n}),{key:e&&e.key||n,label:e&&e.value||""}))),renderInput:e=>s.createElement(wR,Xr({},e,{label:c,placeholder:u,InputProps:{...e.InputProps,endAdornment:s.createElement(s.Fragment,null,d?s.createElement(Yb,{size:18}):null,e.InputProps.endAdornment)},size:f},y))}),m?s.createElement(WS,null,m):null)}const AR=({filter:e,channel:t,query:n})=>{const[r,o]=s.useState([]),[i,a]=s.useState([]),[l,u]=s.useState(!1),[d,p]=s.useState("");return s.useEffect(()=>{a(n?.filter?.[e?.filter]||[])},[n]),s.useEffect(()=>{(async()=>{u(!0);const t=await async function(e,t){return t?.source?(await jc.runReport({id:t.source})).map(e=>({key:e[t.field],value:e[t.field]})):[]}(0,e);o(t),u(!1)})()},[d]),c.createElement("div",{style:{display:"flex"}},c.createElement("div",{style:{maxWidth:640,minWidth:200}},c.createElement(LR,{id:e?.title,label:e?.title,placeholder:"Type to search…",items:r,selectedKeys:i,onChange:(n,r)=>{a(n),t.emit("filterChanged",e,{[e.filter]:n})},onInputChange:e=>{p(e)},loading:l,debounceMs:300,helperText:i.length?`${i.length} selected`:""})))},$R=e=>e?.replace(/([a-z])([A-Z])/g,"$1 $2")?.replace(/_/g," ")?.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase());function NR({items:e,value:t,onChange:n,sx:r={width:"100%"},disabled:o=!1,label:i}){const a=e.some(e=>e.key===t)?t:"";return c.createElement(dx,{sx:r},c.createElement(LS,{fullWidth:!0,size:"small"},c.createElement(Vk,{value:a,onChange:n,disabled:o,displayEmpty:!0,MenuProps:{style:{maxHeight:300}},sx:{height:"40px",borderRadius:"8px",fontFamily:"system-ui",backgroundColor:"white","& .MuiSelect-select":{display:"flex",alignItems:"center",padding:"8px 12px"},"& fieldset":{borderColor:"rgba(0,0,0,0.23)"},"&:hover fieldset":{borderColor:"rgb(70, 134, 128) !important"},"&.Mui-focused fieldset":{borderColor:"rgb(70, 134, 128) !important"}}},c.createElement(fk,{value:"",disabled:!0,sx:{color:"rgba(37, 37, 37, 0.58)"}},$R(i)),e.map(e=>{const{key:t,value:n,disabled:r}=e;return c.createElement(fk,{key:t,value:t,disabled:r,sx:{fontFamily:"system-ui",minHeight:"36px"}},$R(n))}))))}const zR=({filter:e,channel:t,query:n})=>{const[r,o]=s.useState([]),[i,a]=s.useState("");return s.useEffect(()=>{a(n?.date_range?.name)},[n]),s.useEffect(()=>{(async()=>{const t=(await jc.getDateRanges()).filter(t=>!(e.allowedOptions.length>0)||e.allowedOptions.some(e=>e===t.name)).map(e=>({key:e.name,value:e.title}));o(t)})()},[]),c.createElement("div",{style:{minWidth:"200px",maxWidth:"640px"}},c.createElement(NR,{items:r,value:i,label:e?.title,onChange:(n,r)=>{const o=n.target.value;a(o),t.emit("filterChanged",e,{date_range:{name:o}})}}))},jR=({filters:e=[],channel:t,query:n})=>c.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"}},e.map(e=>"multi-select"===e.type?c.createElement(AR,{key:e.title,channel:t,filter:e,query:n}):"date-range"===e.type?c.createElement(zR,{key:e.title,channel:t,filter:e,query:n}):null));var _R,BR={exports:{}};var HR=(_R||(_R=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];u[c].fn.apply(u[c].context,s)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&c.push(l[s]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(BR)),BR.exports),VR=t(HR),WR=e=>c.useRef(e||new VR).current,UR=e=>{const t=c.useState({}),n=c.useCallback((n,r)=>{let o={...t.current,...r};for(var i in t.current=o,o)"date_range"===i||o[i].length||delete o[i];e?.emit("mergedFilterChanged",{value:o})},[e]);c.useEffect(()=>(e?.on("filterChanged",n),()=>{e?.off("filterChanged",n)}),[e])},GR=({id:e,cache:t,dashboard:n,channel:r,...o})=>{const[i,a]=c.useState(),[l,u]=c.useState(),[d,p]=c.useState(),[f,h]=c.useState(),[m,g]=c.useState(bu()),[b,v]=c.useState(),[y,w]=c.useState(0),[x,S]=c.useState(!1),[C,k]=c.useState(),[E,R]=c.useState(!1),M=c.useRef({value:o?.filter}),[P,T]=c.useState({}),{ref:I,inView:O}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[p,f]=s.useState(null),h=s.useRef(u),m=s.useRef(l),[g,b]=s.useState({inView:!!l,entry:void 0});h.current=u,s.useEffect(()=>{if(void 0===m.current&&(m.current=l),a||!p)return;let s;return s=Su(p,(e,t)=>{const n=m.current;m.current=e,(void 0!==n||e)&&(b({inView:e,entry:t}),h.current&&h.current(e,t),t.isIntersecting&&i&&s&&(s(),s=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,p,o,r,i,a,n,c,t]);const v=null==(d=g.entry)?void 0:d.target,y=s.useRef(void 0);p||!v||i||a||y.current===v||(y.current=v,b({inView:!!l,entry:void 0}),m.current=l);const w=[f,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({threshold:.1,delay:1e3}),D=WR(r);UR(D);const F=c.useCallback(e=>{const t=e.target.value;w(t),v(i.doc.view[t])},[i]);c.useEffect(()=>{e&&(async()=>{const n=e,r=t?.[n]||await jc.getChart({id:n}),i=r.doc.source?.id,l=i?t?.[i]||await jc.getReport({id:i}):void 0,s=t?.[`schema_${i}`]||o?.schema||await jc.getReportSchema({id:i}),c=r.doc?.view?.[0];w(0),u(l),a(r),v(c),p(s),R(!0)})().catch(e=>{console.error(e.message)})},[e]),c.useEffect(()=>{i&&f&&(!i?.doc?.source?.id||l)&&d&&(async()=>{g(bu(i.doc.chart?.component,{view:b,source:f,chart:i,report:l,schema:d,dashboard:n,query:P}))})().catch(e=>{console.error(e.message)})},[i,f,b,l,d]);const L=e=>{const t={...l?.doc.query.filter||{},...o?.filter,...e?.value},n=t.date_range||l?.doc.query.date_range;if(delete t.date_range,R(!1),k(),S(!0),"context"===i?.doc?.source?.type)return h({filter:t}),void S(!1);const r={filter:t,date_range:n,parameters:o?.params};T(r),jc.runReport({id:l.id,query:r}).then(e=>{h(i.doc.source.reverse?e.reverse():e)}).catch(e=>{h([])}).finally(()=>{S(!1)})},A=e=>{M.current=e,O?L(e):(k(e),R(!0))};return c.useEffect(()=>(D?.on("mergedFilterChanged",A),()=>{D?.off("mergedFilterChanged",A)}),[D,l,i,O]),c.useEffect(()=>{O&&E&&L(C)},[O,E]),c.useEffect(()=>{R(!0)},[o.params]),c.createElement(Yr,{ref:I,elevation:0,style:{borderRadius:12,padding:20,border:"1px solid #e5e5e5",background:"#fff",display:"flex",flexDirection:"column",gap:"12px",height:"100%"}},i&&c.createElement("div",{style:{display:"flex",alignItems:"center",lineHeight:0}},c.createElement(si,{variant:"subtitle2",style:{fontWeight:600,color:"#252525"}},o?.title||i.doc.name," ")),x?c.createElement(Wa,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"}}):c.createElement(c.Fragment,null,c.createElement("div",{style:{display:"flex"}},c.createElement("div",{style:{flexGrow:1}}),c.createElement("div",null,i?.doc?.view?.length>1&&c.createElement(Vi,null,c.createElement(Ha,{labelId:"date-range-select-label",id:"date-range-select",value:y,onChange:F,style:{fontSize:"12px"},disableUnderline:!0},i.doc.view.map((e,t)=>c.createElement(Ea,{key:t,value:t},e.title)))))),c.createElement("div",{style:{position:"relative",flexGrow:n?void 0:1,display:"flex",flexDirection:"column"}},c.createElement(jR,{filters:i?.doc?.filters,channel:D,query:P}),m)))};const KR=s.createContext(void 0),qR=({defaultParameters:e={},defaultApi:t={},children:n})=>{const r={base_currency:"EUR",...e},[o,i]=s.useState(r),[a,l]=s.useState(t);s.useEffect(()=>{const t={base_currency:"EUR",...e};i(t)},[e]),s.useEffect(()=>{l(t)},[t]);const u={parameters:o,setParameters:e=>{const t={base_currency:"EUR",...e};i(t)},api:a,setApi:l,setReportingContext:({parameters:e,api:t})=>{if(void 0!==e){const t={base_currency:"EUR",...e};i(t)}void 0!==t&&l(t)}};return c.createElement(KR.Provider,{value:u},n)},YR=()=>s.useContext(KR);const XR=s.createContext(),QR=({children:e})=>{const[t,n]=s.useState({open:!1,message:"",severity:"info",duration:6e3}),r=(e,t="info",r=6e3)=>{n({open:!0,message:e,severity:t,duration:r})},o=(e,t)=>{"clickaway"!==t&&n(e=>({...e,open:!1}))},i={success:(e,t)=>r(e,"success",t),error:(e,t)=>r(e,"error",t),warning:(e,t)=>r(e,"warning",t),info:(e,t)=>r(e,"info",t)};return c.createElement(XR.Provider,{value:i},e,c.createElement(oE,{open:t.open,autoHideDuration:t.duration,onClose:o,anchorOrigin:{vertical:"top",horizontal:"right"}},c.createElement(dv,{onClose:o,severity:t.severity,variant:"filled",sx:{width:"100%"}},t.message)))},ZR=()=>{const e=s.useContext(XR);if(!e)throw new Error("useNotify must be used within a NotifyProvider");return e};function JR(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=JR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function eM(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=JR(e))&&(r&&(r+=" "),r+=t);return r}var tM=parseInt(s.version,10);const nM=e=>{if(tM>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return s.forwardRef(e)},rM=qg,oM=rM(Xp.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),iM=rM(Xp.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),aM=rM(Xp.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),lM=rM(Xp.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),sM=rM(Xp.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),cM=rM(Xp.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"})),uM=rM(Xp.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"}));rM(Xp.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})),rM(Xp.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"}));const dM=rM(Xp.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),pM=rM(Xp.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),fM=rM(Xp.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),hM=rM(Xp.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),mM=rM(Xp.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),gM=rM(Xp.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"})),bM=rM(Xp.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"})),vM=rM(Xp.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),yM=rM(Xp.jsx("path",{d:"M19 13H5v-2h14v2z"})),wM=rM(Xp.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"})),xM=rM(Xp.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"})),SM=rM(Xp.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),CM=rM(Xp.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"})),kM=rM(Xp.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"})),EM=rM(Xp.jsx("g",{children:Xp.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),RM=rM(Xp.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"})),MM=rM(Xp.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"})),PM=rM(Xp.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"})),TM=rM(Xp.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),IM=s.createContext(void 0),OM=()=>{const e=s.useContext(IM);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},DM=["sortingOrder"],FM=s.memo(function(e){const{sortingOrder:t}=e,n=d(e,DM),r=OM(),[o]=t,i="asc"===o?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return i?Xp.jsx(i,f({},n)):null}),LM=s.createContext(void 0);function AM(){const e=s.useContext(LM);if(void 0===e)throw new Error(["MUI X: 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("\n"));return e}const $M=new TextEncoder;let NM=2048,zM=new ArrayBuffer(NM),jM=new Uint8Array(zM),_M=new Int32Array(zM);const BM=function(e){const t=2*e.length;t>NM&&(NM=t+(4-t%4),zM=new ArrayBuffer(NM),jM=new Uint8Array(zM),_M=new Int32Array(zM));const n=$M.encodeInto(e,jM).written,r=0|n;let o=0,i=374761393+(0+r|0)|0;if(r<16)for(;(o+3|0)<r;o=o+4|0)i=Math.imul(0|HM(i+Math.imul(0|_M[o],3266489917)|0,17),668265263);else{let e=606290984,t=-2048144777,n=0,a=1640531535;for(;(o+15|0)<r;o=o+16|0)e=Math.imul(0|HM(e+Math.imul(0|_M[o+0|0],2246822519)|0,13),2654435761),t=Math.imul(0|HM(t+Math.imul(0|_M[o+4|0],2246822519)|0,13),2654435761),n=Math.imul(0|HM(n+Math.imul(0|_M[o+8|0],2246822519)|0,13),2654435761),a=Math.imul(0|HM(a+Math.imul(0|_M[o+12|0],2246822519)|0,13),2654435761);for(i=(((HM(e,1)|0+HM(t,7)|0)+HM(n,12)|0)+HM(a,18)|0)+r|0;(o+3|0)<r;o=o+4|0)i=Math.imul(0|HM(i+Math.imul(0|_M[o],3266489917)|0,17),668265263)}for(;o<r;o=o+1|0)i=Math.imul(0|HM(i+Math.imul(0|jM[o],374761393)|0,11),2654435761);return i=Math.imul(i^i>>>15,2246822519),i=Math.imul(i^i>>>13,3266489917),((i^i>>>16)>>>0).toString()};function HM(e,t){return e<<t|e>>>32-t}const VM={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=VM.values;return`@media (min-width:${"number"==typeof t[e]?t[e]:e}px)`}},WM={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},UM=function e(t){if("string"==typeof t)return`var(${t})`;const n={};for(const r in t)Object.hasOwn(t,r)&&(n[r]=e(t[r]));return n}(WM),GM=f({breakpoints:VM,spacing:function(e,t,n,r){if(void 0===e)return KM(1);if(void 0===t)return KM(e);if(void 0===n)return KM(e)+" "+KM(t);if(void 0===r)return KM(e)+" "+KM(t)+" "+KM(n);return KM(e)+" "+KM(t)+" "+KM(n)+" "+KM(r)},transition:function(e,t){const{duration:n=GM.transitions.duration.base,easing:r=GM.transitions.easing.easeInOut,delay:o=0}=t??{};return e.map(e=>`${e} ${n} ${r} ${o}ms`).join(", ")},keys:WM},UM);function KM(e){return 0===e?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function qM(e){return Mh("MuiDataGrid",e)}const YM=Ph("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--pinnedRight","scrollShadow","scrollShadow--vertical","scrollShadow--horizontal","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]),XM=Object.is;function QM(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!XM(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r}var ZM,JM,eP={exports:{}},tP={};function nP(){return JM||(JM=1,eP.exports=function(){if(ZM)return tP;ZM=1;var e=l(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var l=t(),s=n({inst:{value:l,getSnapshot:t}}),c=s[0].inst,u=s[1];return o(function(){c.value=l,c.getSnapshot=t,a(c)&&u({inst:c})},[e,l,t]),r(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),i(l),l};return tP.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,tP}()),eP.exports}var rP=nP();const oP=Object.is,iP=QM,aP=(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>e===t[n]),lP=()=>({state:null,equals:null,selector:null,args:void 0}),sP=[],cP=()=>null;function uP(e,t,n=void 0,r=oP){e.current.state;const o=ob(lP),i=null!==o.current.selector,[a,l]=s.useState(i?null:t(e,n));o.current.state=a,o.current.equals=r,o.current.selector=t;const c=o.current.args;if(o.current.args=n,i&&!((e,t)=>{let n=Object.is;return t instanceof Array?n=aP:t instanceof Object&&(n=iP),n(e,t)})(c,n)){const t=o.current.selector(e,o.current.args);o.current.equals(o.current.state,t)||(o.current.state=t,l(t))}const u=s.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const t=o.current.selector(e,o.current.args);o.current.equals(o.current.state,t)||(o.current.state=t,l(t))})),null),sP),d=s.useCallback(()=>(o.current.subscription||u(),()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)}),sP);return rP.useSyncExternalStore(d,u,cP),a}const dP=s.createContext(void 0);function pP(){const e=s.useContext(dP);if(void 0===e)throw new Error(["MUI X: 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("\n"));return e}const fP={width:3,rx:1.5,x:10.5},hP=e=>e.current.state.dimensions.isReady?e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||0===e.current.state.dimensions.scrollbarSize):0===e.current.state.dimensions.scrollbarSize,mP=Ig("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${YM.autoHeight}`]:t.autoHeight},{[`&.${YM.autosizing}`]:t.autosizing},{[`&.${YM["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${YM["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${YM["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${YM["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${YM["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${YM.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${YM.actionsCell}`]:t.actionsCell},{[`& .${YM.booleanCell}`]:t.booleanCell},{[`& .${YM.cell}`]:t.cell},{[`& .${YM["cell--editable"]}`]:t["cell--editable"]},{[`& .${YM["cell--editing"]}`]:t["cell--editing"]},{[`& .${YM["cell--flex"]}`]:t["cell--flex"]},{[`& .${YM["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${YM["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${YM["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${YM["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${YM["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${YM["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${YM["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${YM["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${YM["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${YM["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${YM["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${YM["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${YM.cellCheckbox}`]:t.cellCheckbox},{[`& .${YM.cellEmpty}`]:t.cellEmpty},{[`& .${YM.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${YM.cellSkeleton}`]:t.cellSkeleton},{[`& .${YM.checkboxInput}`]:t.checkboxInput},{[`& .${YM.columnHeader}`]:t.columnHeader},{[`& .${YM["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${YM["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${YM["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${YM["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${YM["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${YM["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${YM["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${YM["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${YM["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${YM["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${YM["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${YM["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${YM["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${YM["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${YM["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${YM["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${YM["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${YM.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${YM.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${YM.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${YM.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${YM.columnSeparator}`]:t.columnSeparator},{[`& .${YM["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${YM["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${YM["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${YM["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${YM["container--bottom"]}`]:t["container--bottom"]},{[`& .${YM["container--top"]}`]:t["container--top"]},{[`& .${YM.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${YM["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${YM.editBooleanCell}`]:t.editBooleanCell},{[`& .${YM.filterIcon}`]:t.filterIcon},{[`& .${YM["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${YM["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${YM["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${YM.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${YM.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${YM.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${YM.headerFilterRow}`]:t.headerFilterRow},{[`& .${YM.iconSeparator}`]:t.iconSeparator},{[`& .${YM.menuIcon}`]:t.menuIcon},{[`& .${YM.menuIconButton}`]:t.menuIconButton},{[`& .${YM.menuList}`]:t.menuList},{[`& .${YM.menuOpen}`]:t.menuOpen},{[`& .${YM.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${YM.pinnedRows}`]:t.pinnedRows},{[`& .${YM["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${YM["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${YM.row}`]:t.row},{[`& .${YM["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${YM["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${YM["row--dragging"]}`]:t["row--dragging"]},{[`& .${YM["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${YM["row--editable"]}`]:t["row--editable"]},{[`& .${YM["row--editing"]}`]:t["row--editing"]},{[`& .${YM["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${YM["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${YM.rowReorderCell}`]:t.rowReorderCell},{[`& .${YM["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${YM.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${YM.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${YM.rowSkeleton}`]:t.rowSkeleton},{[`& .${YM.scrollbar}`]:t.scrollbar},{[`& .${YM["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${YM["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${YM.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${YM["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${YM.sortIcon}`]:t.sortIcon},{[`& .${YM.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${YM.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${YM.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${YM.withBorderColor}`]:t.withBorderColor},{[`& .${YM["row--beingDragged"]}`]:t["row--beingDragged"]}]})(()=>{const e=uP(pP(),hP),t=GM.colors.background.base,n=GM.header.background.base,r=GM.cell.background.pinned,o=function(e){return gP(e,1)}(GM.colors.interactive.hover),i=GM.colors.interactive.hoverOpacity,a=GM.colors.interactive.selected,l=GM.colors.interactive.selectedOpacity,s=a,c=`calc(${l} + ${i})`,u={hover:GM.colors.interactive.hover,selected:a,selectedHover:a},d=yP(t,o,i,u.hover),p=yP(t,a,l,u.selected),f=yP(t,s,c,u.selectedHover),h=yP(r,o,i,u.hover),m=yP(r,a,l,u.selected),g=yP(r,s,c,u.selectedHover),b=e=>({[`& .${YM["cell--pinnedLeft"]}, & .${YM["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:yP(e,p,l,u.selected),"&:hover":{backgroundColor:yP(e,f,c,u.selectedHover)}}}}),v=b(h),y=b(m),w=b(g),x={backgroundColor:p,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":GM.radius.base,"--unstable_DataGrid-headWeight":GM.typography.fontWeight.medium,"--DataGrid-rowBorderColor":GM.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:GM.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:GM.colors.background.base,color:GM.colors.foreground.base,font:GM.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${YM.main} > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${YM.autoHeight}`]:{height:"auto"},[`&.${YM.autosizing}`]:{[`& .${YM.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${YM.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${YM.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${YM.groupingCriteriaCell}`]:{width:"unset"},[`& .${YM.treeDataGroupingCell}`]:{width:"unset"}},[`&.${YM.withSidePanel}`]:{flexDirection:"row"},[`& .${YM.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${YM.columnHeader}, & .${YM.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${YM.columnHeader}:focus-within, & .${YM.cell}:focus-within`]:{outline:`solid ${gP(GM.colors.interactive.focus,.5)} 1px`,outlineOffset:-1},[`& .${YM.columnHeader}:focus, & .${YM.cell}:focus`]:{outline:`solid ${GM.colors.interactive.focus} 1px`,outlineOffset:-1},[`& .${YM.columnHeader}:focus,\n & .${YM["columnHeader--withLeftBorder"]},\n & .${YM["columnHeader--withRightBorder"]},\n & .${YM["columnHeader--siblingFocused"]}\n `]:{[`& .${YM.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${YM["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${YM["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${YM["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${YM["root--noToolbar"]} [aria-rowindex="1"] .${YM["columnHeader--last"]}`]:{borderTopRightRadius:e?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${YM.columnHeaderCheckbox}, & .${YM.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${YM.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:n},[`& .${YM.columnHeader} .${YM.sortButton}`]:{backgroundColor:GM.header.background.base},[`& .${YM["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${YM["virtualScroller--hasScrollX"]} .${YM["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${YM["pivotPanelField--sorted"]} .${YM.iconButtonContainer},\n & .${YM["columnHeader--sorted"]} .${YM.iconButtonContainer},\n & .${YM["columnHeader--filtered"]} .${YM.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}) .${YM.sortButton},\n & .${YM.columnHeader}:not(.${YM["columnHeader--sorted"]}) .${YM.sortButton}`]:{opacity:0,transition:GM.transition(["opacity"],{duration:GM.transitions.duration.short})},[`& .${YM.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:GM.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${YM.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${YM["columnHeader--filledGroup"]} .${YM.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${YM.sortIcon}, & .${YM.filterIcon}`]:{fontSize:"inherit"},[`& .${YM["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${YM["columnHeader--alignCenter"]} .${YM.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${YM["columnHeader--alignRight"]} .${YM.columnHeaderDraggableContainer}, & .${YM["columnHeader--alignRight"]} .${YM.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${YM["columnHeader--alignCenter"]} .${YM.menuIcon}`]:{marginLeft:"auto"},[`& .${YM["columnHeader--alignRight"]} .${YM.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${YM["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${YM["columnHeader--pinnedLeft"]}, & .${YM["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:GM.header.background.base},[`& .${YM.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:GM.colors.border.base},[`& .${YM.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:n},"@media (hover: hover)":{[`& .${YM.columnHeader}:hover`]:{[`& .${YM.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${YM.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${YM.columnHeader}:not(.${YM["columnHeader--sorted"]}):hover .${YM.sortButton},\n & .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}):hover .${YM.sortButton},\n & .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}) .${YM.sortButton}:focus-visible`]:{opacity:1},[`& .${YM.columnHeader}:not(.${YM["columnHeader--sorted"]}):hover .${YM.sortButton} > *,\n & .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}):hover .${YM.sortButton} > *,\n & .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}) .${YM.sortButton}:focus-visible > *`]:{opacity:.78},[`& .${YM.pivotPanelFieldActionContainer} button:hover`]:{backgroundColor:GM.colors.background.base}},"@media (hover: none)":{[`& .${YM.columnHeader} .${YM.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${YM.columnHeader}:focus,\n & .${YM["columnHeader--siblingFocused"]}`]:{[`.${YM["columnSeparator--resizable"]}`]:{color:GM.colors.foreground.accent}},[`& .${YM.pivotPanelField}:not(.${YM["pivotPanelField--sorted"]}) .${YM.sortButton}`]:{opacity:.78}},[`& .${YM["columnHeader--withLeftBorder"]} .${YM["columnSeparator--sideLeft"]}:not(.${YM["columnSeparator--resizable"]}), & .${YM["columnHeader--withRightBorder"]} .${YM["columnSeparator--sideRight"]}:not(.${YM["columnSeparator--resizable"]})`]:{display:"none"},[`& .${YM["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${YM["columnSeparator--sideRight"]}`]:{right:-5},[`& .${YM["columnHeader--withRightBorder"]} .${YM["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${YM["columnHeader--withRightBorder"]} .${YM["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${YM["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${YM["columnSeparator--resizing"]}`]:{color:GM.colors.foreground.accent},"@media (hover: none)":{[`& .${YM.iconSeparator} rect`]:fP},"@media (hover: hover)":{"&:hover":{color:GM.colors.foreground.accent,[`& .${YM.iconSeparator} rect`]:fP}},"& svg":{pointerEvents:"none"}},[`& .${YM.iconSeparator}`]:{color:"inherit",transition:GM.transition(["color","width"],{duration:GM.transitions.duration.short})},[`& .${YM.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${YM.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${YM.headerFilterRow}`]:{[`& .${YM.columnHeader}, & .${YM.scrollbarFiller}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${YM["row--borderBottom"]} .${YM.columnHeader},\n & .${YM["row--borderBottom"]} .${YM.filler},\n & .${YM["row--borderBottom"]} .${YM.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${YM["row--borderBottom"]} .${YM.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${YM.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${YM["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${YM.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":x,position:"relative"},[`& .${YM.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":x},[`& .${YM["virtualScrollerContent--overflowed"]} .${YM["row--lastVisible"]} .${YM.cell}`]:{borderTopColor:"transparent"},[`& .${YM.pinnedRows} .${YM.row}, .${YM.aggregationRowOverlayWrapper} .${YM.row}`]:{backgroundColor:r,"&:hover":{backgroundColor:h}},[`& .${YM["pinnedRows--top"]} :first-of-type`]:{[`& .${YM.cell}, .${YM.scrollbarFiller}`]:{borderTop:"none"}},[`&.${YM["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${YM["row--dynamicHeight"]} > .${YM.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${YM.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${YM.cell}.${YM["cell--selectionMode"]}`]:{cursor:"default"},[`& .${YM.cell}.${YM["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:GM.shadows.base,backgroundColor:GM.colors.background.overlay,"&:focus-within":{outline:`1px solid ${GM.colors.interactive.focus}`,outlineOffset:-1}},[`& .${YM["cell--editing"]}`]:{"& .MuiInputBase-root":{height:"100%"}},[`& .${YM["row--editing"]}`]:{boxShadow:GM.shadows.base},[`& .${YM["row--editing"]} .${YM.cell}`]:{boxShadow:"none",backgroundColor:GM.colors.background.overlay},[`& .${YM.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${YM.booleanCell}[data-value="true"]`]:{color:GM.colors.foreground.muted},[`& .${YM.booleanCell}[data-value="false"]`]:{color:GM.colors.foreground.disabled},[`& .${YM.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:GM.spacing(1)},[`& .${YM.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:GM.colors.interactive.disabledOpacity},[`& .${YM["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${YM.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${YM.withBorderColor}`]:{borderColor:GM.colors.border.base},[`& .${YM["cell--withLeftBorder"]}, & .${YM["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${YM["cell--withRightBorder"]}, & .${YM["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${YM["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${YM["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${YM["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${YM["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${YM["cell--pinnedLeft"]}, & .${YM["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:GM.cell.background.pinned,"&.Mui-selected":{backgroundColor:m}},[`& .${YM.row}`]:{"&:hover":v,"&.Mui-selected":y,"&.Mui-selected:hover":w},[`& .${YM.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${YM.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${YM.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${YM.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${YM["columnHeader--dragging"]}`]:{background:GM.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:GM.colors.interactive.disabledOpacity},[`& .${YM["row--dragging"]}`]:{background:GM.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",border:"1px solid var(--DataGrid-rowBorderColor)",color:GM.colors.foreground.base,transform:"translateZ(0)",[`& .${YM.rowReorderCellPlaceholder}`]:{padding:"0 6px",display:"flex"}},[`& .${YM.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${YM.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:GM.spacing(2)},[`& .${YM.treeDataGroupingCellLoadingContainer}, .${YM.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${YM.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${YM.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:GM.spacing(2)},[`& .${YM.columnHeaders} .${YM.scrollbarFiller}`]:{backgroundColor:n},[`.${YM.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",backgroundColor:n,[`&.${YM["scrollbarFiller--pinnedRight"]}`]:{position:"sticky",zIndex:40,right:0}},[`& .${YM.filler}`]:{flex:"1 0 auto"},[`& .${YM["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${YM.columnHeaders} .${YM.filler}`]:{backgroundColor:n},[`& .${YM["main--hiddenContent"]}`]:{[`& .${YM.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${YM.pinnedRows}`]:{display:"none"}},[`& .${YM["row--beingDragged"]}`]:{color:GM.colors.foreground.disabled,"&:hover":{backgroundColor:"transparent"}}}});function gP(e,t){return`rgba(from ${e} r g b / ${t})`}const bP="undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("color","color-mix(in srgb, red 50%, blue 50%)"),vP=(e,t)=>bP?e:t;function yP(e,t,n,r){return vP(`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`,r)}function wP(e){return function(e,t){return`rgba(from ${e} r g b / ${t})`}(e,1)}function xP(e){if(!e)return;const t="number"==typeof e.fontSize?`${e.fontSize}px`:e.fontSize;return`${e.fontWeight} ${t} / ${e.lineHeight} ${e.fontFamily}`}const SP=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],CP=["onRowsPerPageChange","material","disabled"],kP=["material"],EP=["autoFocus","label","fullWidth","slotProps","className","material"],RP=["material"],MP=["material"],PP=["material"],TP=["material"],IP=["material"],OP=["material"],DP=["material"],FP=["material"],LP=["material"],AP=["material","label","className"],$P=["material"],NP=["inert","iconStart","iconEnd","children","material"],zP=["slotProps","material"],jP=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],_P=["key"],BP=["inputProps","InputProps","InputLabelProps"],HP=["slotProps","material"],VP=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],WP=["native"],UP=["children","value","active"],GP=["items","value","material"],KP=Ig(lC)(({theme:e})=>({[`&.${oC.positionEnd} .${Qb.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),qP=Ig(jS,{shouldForwardProp:e=>"fullWidth"!==e})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${$S.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),YP=Ig($x,{shouldForwardProp:e=>"density"!==e})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),XP=Ig(VC)({[`& .${BC.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),QP=nM(function(e,t){const{id:n,label:r,labelId:o,material:i,disabled:a,slotProps:l,onChange:s,onKeyDown:c,onOpen:u,onClose:p,size:h,style:m,fullWidth:g}=e,b=d(e,SP),v=Rg(),y=v.components?.MuiTextField?.defaultProps??{},w=h??y.size,x=y.variant??"outlined",S={PaperProps:{onKeyDown:c}};return p&&(S.onClose=p),Xp.jsxs(LS,{size:w,fullWidth:g,style:m,disabled:a,ref:t,children:[Xp.jsx(uC,{id:o,htmlFor:n,shrink:!0,variant:x,children:r}),Xp.jsx(Vk,f({id:n,labelId:o,label:r,displayEmpty:!0,onChange:s,variant:x},b,{inputProps:l?.htmlInput,onOpen:u,MenuProps:S,size:w},i))]})}),ZP=Ig(ZE)(({theme:e})=>({[`& .${BE.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${BE.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),JP=nM(function(e,t){const{onRowsPerPageChange:n,material:r,disabled:o}=e,i=d(e,CP),a=s.useMemo(()=>{if(o)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[o]),l=AM(),c=OM(),{estimatedRowCount:u}=c;return Xp.jsx(ZP,f({component:"div",onRowsPerPageChange:eb(e=>{n?.(Number(e.target.value))}),labelRowsPerPage:l.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:e=>l.current.getLocaleText("paginationDisplayedRows")(f({},e,{estimated:u})),getItemAriaLabel:l.current.getLocaleText("paginationItemAriaLabel")},a,i,r,{ref:t}))}),eT=nM(function(e,t){const{material:n}=e,r=d(e,kP);return Xp.jsx(sx,f({},r,n,{ref:t}))}),tT=nM(function(e,t){const{autoFocus:n,label:r,fullWidth:o,slotProps:i,className:a,material:l}=e,c=d(e,EP),u=s.useRef(null),p=tb(u,t),h=s.useRef(null);return s.useEffect(()=>{if(n){const e=u.current?.querySelector("input");e?.focus({preventScroll:!0})}else!1===n&&h.current&&h.current.stop({})},[n]),r?Xp.jsx(qP,{className:a,control:Xp.jsx(YP,f({},c,l,{inputProps:i?.htmlInput,ref:p,touchRippleRef:h})),label:r,fullWidth:o}):Xp.jsx(YP,f({},c,l,{className:eM(a,l?.className),inputProps:i?.htmlInput,ref:p,touchRippleRef:h}))}),nT=nM(function(e,t){const{material:n}=e,r=d(e,RP);return Xp.jsx(Yb,f({},r,n,{ref:t}))}),rT=nM(function(e,t){const{material:n}=e,r=d(e,MP);return Xp.jsx(PS,f({},r,n,{ref:t}))}),oT=nM(function(e,t){const{material:n}=e,r=d(e,PP);return Xp.jsx(CC,f({},r,n,{ref:t}))}),iT=nM(function(e,t){const{material:n}=e,r=d(e,TP);return Xp.jsx(Sx,f({},r,n,{ref:t}))}),aT=Ig(MR)(({theme:e})=>({gap:e.spacing(1),border:0})),lT=nM(function(e,t){const{material:n}=e,r=d(e,IP);return Xp.jsx(aT,f({size:"small",color:"primary"},r,n,{ref:t}))}),sT=nM(function(e,t){const{material:n}=e,r=d(e,OP);return Xp.jsx(uw,f({},r,n,{ref:t}))}),cT=nM(function(e,t){const{material:n}=e,r=d(e,DP);return Xp.jsx(ev,f({},r,n,{ref:t}))}),uT=nM(function(e,t){const{material:n}=e,r=d(e,FP);return Xp.jsx(hE,f({},r,n,{ref:t}))}),dT=nM(function(e,t){const{material:n}=e,r=d(e,LP);return Xp.jsx(Xk,f({},r,n,{ref:t}))}),pT=nM(function(e,t){const{material:n,label:r,className:o}=e,i=d(e,AP);return r?Xp.jsx(qP,{className:o,control:Xp.jsx(xE,f({},i,n,{ref:t})),label:r}):Xp.jsx(xE,f({},i,n,{className:o,ref:t}))}),fT=nM(function(e,t){const{material:n}=e,r=d(e,$P);return Xp.jsx(qC,f({},r,n,{ref:t}))});function hT(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,o=d(e,HP);t&&(o.startAdornment&&(o.startAdornment=Xp.jsx(KP,{position:"start",children:o.startAdornment})),o.endAdornment&&(o.endAdornment=Xp.jsx(KP,{position:"end",children:o.endAdornment})));for(const e in r)Object.hasOwn(r,e)&&(o[e]=r[e]);return n?.htmlInput&&(o.inputProps?o.inputProps=f({},o.inputProps,n?.htmlInput):o.inputProps=n?.htmlInput),o}const mT={"bottom-start":"top left","bottom-end":"top right"};function gT(e,t){return function(e,t){if(void 0===e.focusTrap)return t;return Xp.jsx(Yx,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:Xp.jsx("div",{tabIndex:-1,children:t})})}(e,function(e,t){if(void 0===e.onClickAway)return t;return Xp.jsx(zx,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}(e,t))}const bT=Ig(gR,{name:"MuiDataGrid",slot:"Tabs"})(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`})),vT=Ig(EE,{name:"MuiDataGrid",slot:"Tab"})({flex:1,minWidth:"fit-content"}),yT=Ig("div",{name:"MuiDataGrid",slot:"TabPanel"})({flex:1,display:"flex",flexDirection:"column",overflow:"hidden"});function wT(e){const{children:t,active:n}=e,r=d(e,UP);return Xp.jsx(yT,f({role:"tabpanel",style:{display:n?"flex":"none"}},r,{children:t}))}const xT={baseAutocomplete:function(e){const t=OM(),{id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:s,onChange:c,label:u,placeholder:p,slotProps:h,material:m}=e,g=d(e,jP);return Xp.jsx(Qw,f({id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:s,onChange:c,renderTags:(e,t)=>e.map((e,n)=>{const r=t({index:n}),{key:o}=r,i=d(r,_P);return Xp.jsx(uw,f({variant:"outlined",size:"small",label:"string"==typeof e?e:a?.(e)},i),o)}),renderInput:e=>{const{inputProps:n,InputProps:r,InputLabelProps:o}=e,i=d(e,BP);return Xp.jsx(wR,f({},i,{label:u,placeholder:p,inputProps:n,InputProps:hT(r,!1),InputLabelProps:f({shrink:!0},o)},h?.textField,t.slotProps?.baseTextField))}},g,m))},baseBadge:eT,baseCheckbox:tT,baseChip:sT,baseCircularProgress:nT,baseDivider:rT,baseInput:function(e){return Xp.jsx(Pw,f({},hT(e)))},baseLinearProgress:oT,baseMenuList:fT,baseMenuItem:function(e){const{inert:t,iconStart:n,iconEnd:r,children:o,material:i}=e,a=d(e,NP);return t&&(a.disableRipple=!0),s.createElement(fk,f({},a,i),[n&&Xp.jsx(jC,{children:n},"1"),Xp.jsx(XP,{children:o},"2"),r&&Xp.jsx(jC,{children:r},"3")])},baseTextField:function(e){const{slotProps:t,material:n}=e,r=d(e,zP),o=Rg(),i=o.components?.MuiTextField?.defaultProps??{},a=r.variant??i.variant??"outlined",l=r.size??i.size;return Xp.jsx(wR,f({variant:a,size:l},r,n,{inputProps:t?.htmlInput,InputProps:hT(t?.input),InputLabelProps:f({shrink:!0},t?.inputLabel)}))},baseButton:iT,baseIconButton:cT,baseToggleButton:lT,baseTooltip:uT,baseTabs:function(e){let{items:t,value:n,material:r}=e,o=d(e,GP);const i=xm(),a=`${i}-tab-${n}`,l=`${i}-tabpanel-${n}`;return Xp.jsxs(s.Fragment,{children:[Xp.jsx(bT,f({},o,{value:n,variant:"scrollable",scrollButtons:"auto"},r,{children:t.map(e=>Xp.jsx(vT,{value:e.value,label:e.label,id:a,"aria-controls":l},e.value))})),t.map(e=>Xp.jsx(wT,{value:e.value,active:n===e.value,id:l,"aria-labelledby":a,children:e.children},e.value))]})},basePagination:JP,basePopper:function(e){const{open:t,children:n,className:r,flip:o,onExited:i,onDidShow:a,onDidHide:l,id:c,target:u,transition:p,placement:h,material:m}=e,g=d(e,VP),b=s.useMemo(()=>{const e=[{name:"preventOverflow",options:{padding:8}}];return o&&e.push({name:"flip",enabled:!0}),(a||l)&&e.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a?.()},effect:()=>()=>{l?.()}}),e},[o,a,l]);let v;if(p){const t=e=>t=>{e&&e(),i&&i(t)};v=r=>gT(e,Xp.jsx(JS,f({},r.TransitionProps,{style:{transformOrigin:mT[r.placement]},onExited:t(r.TransitionProps?.onExited),children:Xp.jsx(wb,{children:n})})))}else v=gT(e,n);return Xp.jsx(ew,f({id:c,className:r,open:t,anchorEl:u,transition:p,placement:h,modifiers:b},g,m,{children:v}))},baseSelect:QP,baseSelectOption:function(e){let{native:t}=e,n=d(e,WP);return t?Xp.jsx("option",f({},n)):Xp.jsx(fk,f({},n))},baseSkeleton:dT,baseSwitch:pT},ST=f({},xT,{booleanCellTrueIcon:SM,booleanCellFalseIcon:bM,columnMenuIcon:gM,openFilterButtonIcon:sM,filterPanelDeleteIcon:bM,columnFilteredIcon:cM,columnSelectorIcon:dM,columnUnsortedIcon:FM,columnSortedAscendingIcon:oM,columnSortedDescendingIcon:iM,columnResizeIcon:pM,densityCompactIcon:fM,densityStandardIcon:hM,densityComfortableIcon:mM,exportIcon:TM,moreActionsIcon:CM,treeDataCollapseIcon:lM,treeDataExpandIcon:aM,groupingCriteriaCollapseIcon:lM,groupingCriteriaExpandIcon:aM,detailPanelExpandIcon:vM,detailPanelCollapseIcon:yM,rowReorderIcon:xM,quickFilterIcon:uM,quickFilterClearIcon:RM,columnMenuHideIcon:kM,columnMenuSortAscendingIcon:oM,columnMenuSortDescendingIcon:iM,columnMenuUnsortIcon:null,columnMenuFilterIcon:cM,columnMenuManageColumnsIcon:EM,columnMenuClearIcon:RM,loadIcon:wM,filterPanelAddIcon:vM,filterPanelRemoveAllIcon:PM,columnReorderIcon:xM,menuItemCheckIcon:SM});var CT=Symbol("NOT_FOUND");var kT=e=>Array.isArray(e)?e:[e];function ET(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}var RT=(e,t)=>e===t;function MT(e,t){const n="object"==typeof t?t:{equalityCheck:t},{equalityCheck:r=RT,maxSize:o=1,resultEqualityCheck:i}=n,a=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(r);let l=0;const s=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:CT,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(a):function(e,t){let n=[];function r(e){const r=n.findIndex(n=>t(e,n.key));if(r>-1){const e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return CT}return{get:r,put:function(t,o){r(t)===CT&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,a);function c(){let t=s.get(arguments);if(t===CT){if(t=e.apply(null,arguments),l++,i){const e=s.getEntries().find(e=>i(e.value,t));e&&(t=e.value,0!==l&&l--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>l,c.resetResultsCount=()=>{l=0},c}var PT="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function TT(){return{s:0,v:void 0,o:null,p:null}}function IT(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=TT(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=TT(),e.set(n,t)):t=r}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,s)&&(s=e,0!==i&&i--);o="object"==typeof s&&null!==s||"function"==typeof s?new PT(s):s}return l.s=1,l.v=s,s}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function OT(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...n,...i},{memoize:s,memoizeOptions:c=[],argsMemoize:u=IT,argsMemoizeOptions:d=[]}=l,p=kT(c),f=kT(d),h=ET(e),m=s(function(){return r++,a.apply(null,arguments)},...p),g=u(function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(h,arguments);return t=m.apply(null,e),t},...f);return Object.assign(g,{resultFunc:a,memoizedResultFunc:m,dependencies:h,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:s,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var DT=OT(IT),FT=Object.assign((e,t=DT)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=n.map(t=>e[t]),o=t(r,(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}));return o},{withTypes:()=>FT});const LT=OT({memoize:MT,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),AT=(e,t,n,r,o,i,a,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let c;if(e&&t&&n&&r&&o&&i&&a&&l)c=(s,c,u,d)=>{const p=e(s,c,u,d),f=t(s,c,u,d),h=n(s,c,u,d),m=r(s,c,u,d),g=o(s,c,u,d),b=i(s,c,u,d),v=a(s,c,u,d);return l(p,f,h,m,g,b,v,c,u,d)};else if(e&&t&&n&&r&&o&&i&&a)c=(l,s,c,u)=>{const d=e(l,s,c,u),p=t(l,s,c,u),f=n(l,s,c,u),h=r(l,s,c,u),m=o(l,s,c,u),g=i(l,s,c,u);return a(d,p,f,h,m,g,s,c,u)};else if(e&&t&&n&&r&&o&&i)c=(a,l,s,c)=>{const u=e(a,l,s,c),d=t(a,l,s,c),p=n(a,l,s,c),f=r(a,l,s,c),h=o(a,l,s,c);return i(u,d,p,f,h,l,s,c)};else if(e&&t&&n&&r&&o)c=(i,a,l,s)=>{const c=e(i,a,l,s),u=t(i,a,l,s),d=n(i,a,l,s),p=r(i,a,l,s);return o(c,u,d,p,a,l,s)};else if(e&&t&&n&&r)c=(o,i,a,l)=>{const s=e(o,i,a,l),c=t(o,i,a,l),u=n(o,i,a,l);return r(s,c,u,i,a,l)};else if(e&&t&&n)c=(r,o,i,a)=>{const l=e(r,o,i,a),s=t(r,o,i,a);return n(l,s,o,i,a)};else if(e&&t)c=(n,r,o,i)=>{const a=e(n,r,o,i);return t(a,r,o,i)};else{if(!e)throw new Error("Missing arguments");c=e}return c},$T=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],o=e.length-1||1,i=Math.max(r.length-o,0);if(i>3)throw new Error("Unsupported number of arguments");return(o,a,l,s)=>{let c=o.__cacheKey__;c||(c={id:n},o.__cacheKey__=c,n+=1);let u=t.get(c);if(!u){const n=1===e.length?[e=>e,r]:e;let o=e;const a=[void 0,void 0,void 0];switch(i){case 0:break;case 1:o=[...n.slice(0,-1),()=>a[0],r];break;case 2:o=[...n.slice(0,-1),()=>a[0],()=>a[1],r];break;case 3:o=[...n.slice(0,-1),()=>a[0],()=>a[1],()=>a[2],r];break;default:throw new Error("Unsupported number of arguments")}u=LT(...o),u.selectorArgs=a,t.set(c,u)}switch(i){case 3:u.selectorArgs[2]=s;case 2:u.selectorArgs[1]=l;case 1:u.selectorArgs[0]=a}switch(i){case 0:return u(o);case 1:return u(o,a);case 2:return u(o,a,l);case 3:return u(o,a,l,s);default:throw new Error("unreachable")}}};var NT,zT,jT={exports:{}},_T={};var BT=(zT||(zT=1,jT.exports=function(){if(NT)return _T;NT=1;var e=l(),t=nP(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return _T.useSyncExternalStoreWithSelector=function(e,t,l,c,u){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=a(function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return o=t}return o=e}if(t=o,n(r,e))return t;var a=c(e);return void 0!==u&&u(t,a)?(r=e,t):(r=e,o=a)}var r,o,i=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,l,c,u]);var f=r(e,d[0],d[1]);return i(function(){p.hasValue=!0,p.value=f},[f]),s(f),f},_T}()),jT.exports);const HT=tM>=19?function(e,t,n,r,o){const i=s.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return rP.useSyncExternalStore(e.subscribe,i,i)}:function(e,t,n,r,o){return BT.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};function VT(e,t,n,r,o){return HT(e,t,n,r,o)}const WT=()=>{};function UT(e,t,n){const r=ob(GT,{store:e,selector:t}).current;r.effect=n,ab(r.onMount)}function GT(e){const{store:t,selector:n}=e;let r=n(t.state);const o={effect:WT,dispose:null,subscribe:()=>{o.dispose??=t.subscribe(e=>{const t=n(e);if(!Object.is(r,t)){const e=r;r=t,o.effect(e,t)}})},onMount:()=>(o.subscribe(),()=>{o.dispose?.(),o.dispose=null})};return o.subscribe(),o}class KT{static create(e){return new KT(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;const t=this.updateTick,n=this.listeners.values();let r;for(;r=n.next(),!r.done;){if(t!==this.updateTick)return;(0,r.value)(e)}}update(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.setState(f({},this.state,e))}set(e,t){Object.is(this.state[e],t)||this.setState(f({},this.state,{[e]:t}))}use=(()=>(e,t,n,r)=>VT(this,e,t,n,r))()}const qT=(...e)=>{const t=AT(...e);return(e,n,r,o)=>t(QT(e),n,r,o)},YT=(...e)=>{const t=$T(...e);return(e,n,r,o)=>t(QT(e),n,r,o)},XT=e=>(t,n)=>e(QT(t),n);function QT(e){return"current"in e?e.current.state:e}const ZT=XT(e=>e.dimensions),JT=qT(ZT,e=>e.columnsTotalWidth),eI=qT(ZT,e=>e.rowHeight);qT(ZT,e=>e.contentSize.height);const tI=qT(ZT,e=>e.hasScrollX),nI=qT(ZT,e=>e.hasScrollY),rI=qT(ZT,e=>e.columnsTotalWidth<e.viewportOuterSize.width),oI=qT(ZT,e=>e.headerHeight),iI=qT(ZT,e=>e.groupHeaderHeight);qT(ZT,e=>e.headerFilterHeight);const aI=qT(ZT,e=>e.hasScrollX?e.scrollbarSize:0),lI=qT(ZT,e=>e.hasScrollY?e.scrollbarSize:0),sI=qT(ZT,aI,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(0===t&&!n)}),cI=XT(e=>e.rowsMeta),uI=XT(e=>e.rows),dI=qT(uI,e=>e.totalRowCount),pI=qT(uI,e=>e.loading),fI=qT(uI,e=>e.totalTopLevelRowCount),hI=qT(uI,e=>e.dataRowIdToModelLookup);qT(hI,(e,t)=>e[t]);const mI=qT(uI,e=>e.tree),gI=qT(mI,(e,t)=>e[t]),bI=qT(uI,e=>e.groupsToFetch),vI=qT(uI,e=>e.groupingName),yI=qT(uI,e=>e.treeDepths),wI=YT(uI,e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:(t.filter(([,e])=>e>0).map(([e])=>Number(e)).sort((e,t)=>t-e)[0]??0)+1}),xI=qT(uI,e=>e.dataRowIds),SI=YT(xI,hI,(e,t)=>e.reduce((e,n)=>t[n]?(e.push(t[n]),e):e,[])),CI=YT(qT(uI,e=>e?.additionalRowGroups),e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(e=>({id:e.id,model:e.model??{}}))??[],top:t?.top?.map(e=>({id:e.id,model:e.model??{}}))??[]}}),kI=qT(CI,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),EI="auto-generated-group-node-root",RI=Symbol("mui.id_autogenerated");const MI=(e,t,n)=>{const r=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI X: 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("\n"))}(r,e,n),r},PI=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const o=e[t.field];return t.valueGetter(o,e,t,n)},TI=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={};for(let n=0;n<e.length;n+=1){const r=e[n],a=MI(r,t);i[a]=r,o.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToModelLookup:i}},II=({tree:e,rowCountProp:t=0})=>{const n=e[EI];return Math.max(t,n.children.length+(null==n.footerId?0:1))},OI=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:l,treeDepths:s,dataRowIds:c,groupingName:u,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:s,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},f({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:II({tree:p.tree,rowCountProp:t}),groupingName:u,loading:n,groupsToFetch:d})},DI=e=>RI in e,FI=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,LI=(e,t,n,r)=>{const o=e[t];if("group"!==o.type)return[];const i=[];for(let t=0;t<o.children.length;t+=1){const a=o.children[t];if(n&&FI(e[a])||i.push(a),r)continue;const l=LI(e,a,n,r);for(let e=0;e<l.length;e+=1)i.push(l[e])}return n||null==o.footerId||i.push(o.footerId),i},AI=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if("full"===e.updates.type)throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(e=>{const n=MI(e,t,"A row was provided without id when calling updateRows():");o.has(n)?o.set(n,f({},o.get(n),e)):o.set(n,e)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:f({},e.updates.idToActionLookup),groupKeys:r},a=f({},e.dataRowIdToModelLookup),l={insert:{},modify:{},remove:{}};o.forEach((e,t)=>{const n=i.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!a[t])return;return null!=n&&(l[n][t]=!0),i.actions.remove.push(t),void delete a[t]}const r=a[t];if(r)return"remove"===n?(l.remove[t]=!0,i.actions.modify.push(t)):null==n&&i.actions.modify.push(t),void(a[t]=f({},r,e));"remove"===n?(l.remove[t]=!0,i.actions.insert.push(t)):null==n&&i.actions.insert.push(t),a[t]=e});const s=Object.keys(l);for(let e=0;e<s.length;e+=1){const t=s[e],n=l[t];Object.keys(n).length>0&&(i.actions[t]=i.actions[t].filter(e=>!n[e]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},$I="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function NI(e,t,n){const r=[];return t.forEach(t=>{const o=MI(t,n,"A row was provided without id when calling updateRows():"),i=gI(e,o);if("pinnedRow"===i?.type){const n=e.current.caches.pinnedRows,r=n.idLookup[o];r&&(n.idLookup[o]=f({},r,t))}else r.push(t)}),r}const zI=(e,t,n)=>"number"==typeof e&&e>0?e:t;function jI(e){return s.memo(e,QM)}const _I={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",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=>1!==e?`${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",toolbarPivot:"Pivot",toolbarCharts:"Charts",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",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",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",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",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",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",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnMenuManageCharts:"Manage charts",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${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",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`;return`${e}–${t} of ${-1!==n?n:r&&r>t?`around ${r}`:`more than ${t}`}`},paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelNone:"none",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",chartsNoCharts:"There are no charts available",chartsChartNotSelected:"Select a chart type to configure its options",chartsTabChart:"Chart",chartsTabFields:"Fields",chartsTabCustomize:"Customize",chartsCloseButton:"Close charts configuration",chartsSyncButtonLabel:"Sync chart",chartsSearchPlaceholder:"Search fields",chartsSearchLabel:"Search fields",chartsSearchClear:"Clear search",chartsNoFields:"No fields",chartsFieldBlocked:"This field cannot be added to any section",chartsCategories:"Categories",chartsSeries:"Series",chartsMenuAddToDimensions:e=>`Add to ${e}`,chartsMenuAddToValues:e=>`Add to ${e}`,chartsMenuMoveUp:"Move up",chartsMenuMoveDown:"Move down",chartsMenuMoveToTop:"Move to top",chartsMenuMoveToBottom:"Move to bottom",chartsMenuOptions:"Field options",chartsMenuRemove:"Remove",chartsDragToDimensions:e=>`Drag here to use column as ${e}`,chartsDragToValues:e=>`Drag here to use column as ${e}`,aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>"is any of"===t?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>"is any of"===t?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`,promptChangeChartsLabel:(e,t)=>`Dimensions (${e}), Values (${t})`};let BI=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});class HI{timeouts=(()=>new Map)();cleanupTimeout=1e3;constructor(e=1e3){this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),this.timeouts=void 0)}}class VI{registry=(()=>new FinalizationRegistry(e=>{"function"==typeof e&&e()}))();register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class WI{static create(){return new WI}}const UI={current:"undefined"!=typeof FinalizationRegistry?new VI:new HI};let GI=0;function KI(e,t,n,r){const o=s.useState(WI.create)[0],i=s.useRef(null),a=s.useRef(null);a.current=n;const l=s.useRef(null);if(!i.current&&a.current){const n=(e,t,n)=>{t&&!t.defaultMuiPrevented&&a.current?.(e,t,n)};i.current=e.current.subscribeEvent(t,n,r),GI+=1,l.current={cleanupToken:GI},UI.current.register(o,()=>{i.current?.(),i.current=null,l.current=null},l.current)}else!a.current&&i.current&&(i.current(),i.current=null,l.current&&(UI.current.unregister(l.current),l.current=null));s.useEffect(()=>{if(!i.current&&a.current){const n=(e,t,n)=>{t&&!t.defaultMuiPrevented&&a.current?.(e,t,n)};i.current=e.current.subscribeEvent(t,n,r)}return l.current&&UI.current&&(UI.current.unregister(l.current),l.current=null),()=>{i.current?.(),i.current=null}},[e,t,r])}const qI={isFirst:!0};function YI(e,t,n){KI(e,t,n,qI)}const XI={compact:.7,comfortable:1.3,standard:1},QI=XT(e=>e.density),ZI=qT(QI,e=>XI[e]);function JI(e){throw new Error("Failed assertion: should not be rendered")}const eO=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],tO=Ig(JI,{name:"MuiDataGrid",slot:"EditInputCell"})({font:GM.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),nO=nM((e,t)=>{const n=OM(),{id:r,value:o,field:i,colDef:a,hasFocus:l,debounceMs:c=200,isProcessingProps:u,onValueChange:p,slotProps:h}=e,m=d(e,eO),g=AM(),b=s.useRef(null),[v,y]=s.useState(o),w=(e=>{const{classes:t}=e;return zm({root:["editInputCell"]},qM,t)})(n),x=s.useCallback(async e=>{const t=e.target.value,n=g.current.getColumn(i);let o=t;n.valueParser&&(o=n.valueParser(t,g.current.getRow(r),n,g)),y(o),g.current.setEditCellValue({id:r,field:i,value:o,debounceMs:c,unstable_skipValueParser:!0},e),p&&await p(e,t)},[g,c,i,r,p]),S=g.current.unstable_getEditCellMeta(r,i);return s.useEffect(()=>{"debouncedSetEditCellValue"!==S?.changeReason&&y(o)},[S,o]),Wh(()=>{l&&b.current.focus()},[l]),Xp.jsx(tO,f({as:n.slots.baseInput,inputRef:b,className:w.root,ownerState:n,fullWidth:!0,type:"number"===a.type?a.type:"text",value:v??"",onChange:x,endAdornment:u?Xp.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},m,h?.root,{ref:t}))}),rO=(e,t)=>t&&e.length>1?[e[0]]:e,oO=(e,t)=>n=>f({},n,{sorting:f({},n.sorting,{sortModel:rO(e,t)})}),iO=(e,t)=>{const n=e.map(e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n||null===e.sort)return null;let r;return r=n.getSortComparator?n.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator,r?{getSortCellParams:e=>({id:e,field:n.field,rowNode:gI(t,e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:r}:null})(e,t)).filter(e=>!!e);return 0===n.length?null:e=>e.map(e=>({node:e,params:n.map(t=>t.getSortCellParams(e.id))})).sort((e,t)=>{return r=e,o=t,n.reduce((e,t,n)=>{if(0!==e)return e;const i=r.params[n],a=o.params[n];return t.comparator(i.value,a.value,i,a)},0);var r,o}).map(e=>e.node.id)},aO=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},lO=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,sO=new Intl.Collator,cO=(e,t)=>{const n=lO(e,t);return null!==n?n:Number(e)-Number(t)},uO=(e,t)=>{const n=lO(e,t);return null!==n?n:e>t?1:e<t?-1:0},dO=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function pO(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:l,slotProps:c,clearButton:u,headerFilterMenu:p}=e,h=d(e,dO),m=c?.root,g=sb(),[b,v]=s.useState(fO(t.value)),[y,w]=s.useState(!1),x=xm(),S=OM(),C=s.useCallback(e=>{const o=fO(e.target.value);v(o),w(!0),g.start(S.filterDebounceMs,()=>{const e=f({},t,{value:"number"!==r||Number.isNaN(Number(o))?o:Number(o),fromInput:x});n(e),w(!1)})},[g,S.filterDebounceMs,t,r,x,n]);return s.useEffect(()=>{t.fromInput===x&&null!=t.value||v(fO(t.value))},[x,t]),Xp.jsxs(s.Fragment,{children:[Xp.jsx(S.slots.baseTextField,f({id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:b??"",onChange:C,type:r||"text",disabled:l,slotProps:f({},m?.slotProps,{input:f({endAdornment:y?Xp.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},m?.slotProps?.input),htmlInput:f({tabIndex:a},m?.slotProps?.htmlInput)}),inputRef:i},S.slotProps?.baseTextField,h,m)),p,u]})}function fO(e){if(null!=e&&""!==e)return String(e)}function hO(e){return"object"==typeof e&&null!==e}function mO(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const gO=(e,t,n)=>Math.max(t,Math.min(n,e));function bO(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const vO=(e,t)=>n=>{e&&t(n)};function yO(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=xm(),[c,u]=s.useState([]),[d,p]=s.useState(t.value||[]),h=OM();s.useEffect(()=>{const e=t.value??[];p(e.map(String))},[t.value]);const m=s.useCallback((e,o)=>{p(o.map(String)),n(f({},t,{value:[...o.map(e=>"number"===r?Number(e):e)]}))},[n,t,r]),g=s.useCallback((e,t)=>{u(""===t?[]:[t])},[u]),b=h.slots.baseAutocomplete;return Xp.jsx(b,f({multiple:!0,freeSolo:!0,options:c,id:l,value:d,onChange:m,onInputChange:g,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},a?.root))}var wO=function(e){return e.Cell="cell",e.Row="row",e}(wO||{}),xO=function(e){return e.Edit="edit",e.View="view",e}(xO||{}),SO=function(e){return e.Edit="edit",e.View="view",e}(SO||{}),CO=function(e){return e.And="and",e.Or="or",e}(CO||{});class kO{constructor(e){this.data=e.ids}has(e){return this.data.has(e)}select(e){this.data.add(e)}unselect(e){this.data.delete(e)}}class EO{constructor(e){this.data=e.ids}has(e){return!this.data.has(e)}select(e){this.data.delete(e)}unselect(e){this.data.add(e)}}const RO=e=>"include"===e.type?new kO(e):new EO(e);var MO=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(MO||{}),PO=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(PO||{}),TO=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(TO||{}),IO=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(IO||{});function OO(e){return void 0!==e.field}const DO={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},FO=()=>({items:[],logicOperator:CO.And,quickFilterValues:[],quickFilterLogicOperator:CO.And});function LO(e){return{current:e.current.getPublicApi()}}let AO=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const $O={left:[],right:[]},NO=XT(e=>e.isRtl),zO=XT(e=>e.props.listView??!1),jO=XT(e=>e.listViewColumn),_O=XT(e=>e.columns),BO=qT(_O,e=>e.orderedFields),HO=qT(_O,e=>e.lookup),VO=YT(BO,HO,(e,t)=>e.map(e=>t[e])),WO=qT(_O,e=>e.columnVisibilityModel),UO=qT(_O,e=>e.initialColumnVisibilityModel),GO=YT(VO,WO,zO,jO,(e,t,n,r)=>n&&r?[r]:e.filter(e=>!1!==t[e.field])),KO=YT(GO,e=>e.map(e=>e.field)),qO=XT(e=>e.pinnedColumns);YT(qO,BO,NO,(e,t,n)=>XO(e,t,n));const YO=YT(_O,qO,KO,NO,zO,(e,t,n,r,o)=>{if(o)return $O;const i=XO(t,n,r);return{left:i.left.map(t=>e.lookup[t]),right:i.right.map(t=>e.lookup[t])}});function XO(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right))return $O;if(0===e.left?.length&&0===e.right?.length)return $O;const r=(e,t)=>Array.isArray(e)?e.filter(e=>t.includes(e)):[],o=r(e.left,t),i=t.filter(e=>!o.includes(e)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const QO=YT(GO,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),ZO=YT(VO,e=>e.filter(e=>e.filterable)),JO=YT(VO,e=>e.reduce((e,t)=>(t.filterable&&(e[t.field]=t),e),{})),eD=YT(VO,e=>e.some(e=>void 0!==e.colSpan));let tD;const nD=(e,t)=>{const n=f({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=HO(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},rD=(e,t,n)=>{const r=e.items.length>1;let o;o=r&&t?[e.items[0]]:e.items;const i=r&&o.some(e=>null==e.id);return o.some(e=>null==e.operator)||i?f({},e,{items:o.map(e=>nD(e,n))}):e.items!==o?f({},e,{items:o}):e},oD=(e,t,n)=>r=>f({},r,{filterModel:rD(e,t,n)}),iD=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,aD=(e,t,n)=>{if(!e.field||!e.operator)return null;const r=n.current.getColumn(e.field);if(!r)return null;let o;if(r.valueParser){const t=r.valueParser;o=Array.isArray(e.value)?e.value?.map(e=>t(e,void 0,r,n)):t(e.value,void 0,r,n)}else o=e.value;const{ignoreDiacritics:i}=n.current.rootProps;i&&(o=iD(o));const a=f({},e,{value:o}),l=r.filterOperators;if(!l?.length)throw new Error(`MUI X: No filter operators found for column '${r.field}'.`);const s=l.find(e=>e.value===a.operator);if(!s)throw new Error(`MUI X: No filter operator found for column '${r.field}' and operator value '${a.operator}'.`);const c=LO(n),u=s.getApplyFilterFn(a,r);return"function"!=typeof u?null:{item:a,fn:e=>{let n=t(e,r);return i&&(n=iD(n)),u(n,e,r,c)}}};let lD=1;const sD=(e,t,n,r)=>{const{items:o}=e,i=o.map(e=>aD(e,t,n)).filter(e=>!!e);if(0===i.length)return null;if(r||!function(){if(void 0!==tD)return tD;try{tD=new Function("return true")()}catch(e){tD=!1}return tD}())return(e,t)=>{const n={};for(let r=0;r<i.length;r+=1){const o=i[r];t&&!t(o.item.field)||(n[o.item.id]=o.fn(e))}return n};const a=new Function("appliers","row","shouldApplyFilter",`"use strict";\n${i.map((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`).join("\n")}\n\nconst result$$ = {\n${i.map((e,t)=>` ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(lD)));lD+=1;return(e,t)=>a(i,e,t)},cD=e=>e.quickFilterExcludeHiddenColumns??!0,uD=(e,t,n,r)=>{const o=sD(e,t,n,r),i=((e,t,n)=>{const r=e.quickFilterValues?.filter(Boolean)??[];if(0===r.length)return null;const o=BO(n),i=WO(n);let a;a=cD(e)?o.filter(e=>!1!==i[e]):o;const l=[],{ignoreDiacritics:s}=n.current.rootProps,c=LO(n);return a.forEach(e=>{const t=n.current.getColumn(e),o=t?.getApplyQuickFilterFn;o&&l.push({column:t,appliers:r.map(e=>{const n=s?iD(e):e;return{fn:o(n,t,c)}})})}),function(e,n){const o={};e:for(let i=0;i<r.length;i+=1){const a=r[i];for(let r=0;r<l.length;r+=1){const{column:u,appliers:d}=l[r],{field:p}=u;if(n&&!n(p))continue;const f=d[i];let h=t(e,u);if(null!==f.fn&&(s&&(h=iD(h)),f.fn(h,e,u,c))){o[a]=!0;continue e}}o[a]=!1}return o}})(e,t,n);return function(e,t,n){n.passingFilterItems=o?.(e,t)??null,n.passingQuickFilterValues=i?.(e,t)??null}},dD=e=>null!=e,pD=(e,t,n,r,o,i)=>{const a=((e,t,n,r)=>(e.cleanedFilterItems||(e.cleanedFilterItems=r.filter(e=>null!==aD(e,t,n))),e.cleanedFilterItems))(i,r,o,n.items),l=e.filter(dD),s=t.filter(dD);if(l.length>0){const e=e=>l.some(t=>t[e.id]);if((n.logicOperator??FO().logicOperator)===CO.And){if(!a.every(e))return!1}else{if(!a.some(e))return!1}}if(s.length>0&&null!=n.quickFilterValues){const e=e=>s.some(t=>t[e]);if((n.quickFilterLogicOperator??FO().quickFilterLogicOperator)===CO.And){if(!n.quickFilterValues.every(e))return!1}else{if(!n.quickFilterValues.some(e))return!1}}return!0},fD=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(mO(r),"i");return e=>{if(null==e)return t;const n=o.test(String(e));return t?!n:n}},hD=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>{if(null==e)return t;const n=0===o.compare(r,e.toString());return t?!n:n}},mD=e=>()=>t=>{const n=""===t||null==t;return e?!n:n},gD={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,chartable:!0,editable:!1,sortComparator:(e,t)=>{const n=lO(e,t);return null!==n?n:"string"==typeof e?sO.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:fD(e,!1),InputComponent:pO},{value:"doesNotContain",getApplyFilterFn:fD(e,!0),InputComponent:pO},{value:"equals",getApplyFilterFn:hD(e,!1),InputComponent:pO},{value:"doesNotEqual",getApplyFilterFn:hD(e,!0),InputComponent:pO},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${mO(n)}.*$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:pO},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${mO(n)}$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:pO},{value:"isEmpty",getApplyFilterFn:mD(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:mD(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map(e=>e.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some(t=>0===r.compare(t,e.toString()||""))},InputComponent:yO}])(),renderEditCell:e=>Xp.jsx(nO,f({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(mO(e),"i");return(e,n,r,o)=>{let i=o.current.getRowFormattedValue(n,r);return o.current.ignoreDiacritics&&(i=iD(i)),null!=i&&t.test(i.toString())}}};function bD(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const vD=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,yD=e=>"Tab"===e||"Escape"===e;function wD(e){return(e.ctrlKey||e.metaKey)&&"V"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}const xD=s.createContext(void 0),SD=()=>{const e=s.useContext(xD);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid configuration 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("\n"));return e},CD=s.createContext({className:"unset",tag:Xp.jsx("style",{href:"/unset"})});function kD(){return s.useContext(CD).className}function ED(e){const t=SD(),n=OM(),r=t.hooks.useCSSVariables(),o=s.useMemo(()=>{const e=`MuiDataGridVariables-${r.id}`,t=`.${e}{${function(e){let t="";for(const n in e)Object.hasOwn(e,n)&&void 0!==e[n]&&(t+=`${n}:${e[n]};`);return t}(r.variables)}}`;return{className:e,tag:Xp.jsx("style",{href:`/${e}`,nonce:n.nonce,children:t})}},[n.nonce,r]);return Xp.jsx(CD.Provider,{value:o,children:e.children})}const RD=["open","target","onClose","children","position","className","onExited"],MD=Ig(JI,{name:"MuiDataGrid",slot:"Menu"})({zIndex:GM.zIndex.menu,[`& .${YM.menuList}`]:{outline:0}});function PD(e){const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:l}=e,c=d(e,RD),u=AM(),p=OM(),h=(e=>{const{classes:t}=e;return zm({root:["menu"]},qM,t)})(p),m=kD(),g=s.useRef(null);Wh(()=>{t?g.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(g.current?.focus?.(),g.current=null)},[t]),s.useEffect(()=>{const e=t?"menuOpen":"menuClose";u.current.publishEvent(e,{target:n})},[u,t,n]);return Xp.jsx(MD,f({as:p.slots.basePopper,className:eM(h.root,a,m),ownerState:p,open:t,target:n,transition:!0,placement:i,onClickAway:e=>{e.target&&(n===e.target||n?.contains(e.target))||r(e)},onExited:l,clickAwayMouseEvent:"onMouseDown",onKeyDown:e=>{yD(e.key)&&r(e)}},c,p.slotProps?.basePopper,{children:o}))}const TD=["label","icon","showInMenu","onClick"],ID=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],OD=nM((e,t)=>{const n=OM();if(!e.showInMenu){const{label:r,icon:o,onClick:i}=e,a=d(e,TD),l=e=>{i?.(e)};return Xp.jsx(n.slots.baseIconButton,f({size:"small",role:"menuitem","aria-label":r},a,{onClick:l},n.slotProps?.baseIconButton,{ref:t,children:s.cloneElement(o,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:l}=e,c=d(e,ID);return Xp.jsx(n.slots.baseMenuItem,f({ref:t},c,{onClick:e=>{i?.(e),a&&l?.()},iconStart:o,children:r}))}),DD=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","children","suppressChildrenValidation"];function FD(e){const{hasFocus:t,tabIndex:n,position:r="bottom-end",children:o,suppressChildrenValidation:i}=e,a=d(e,DD),[l,c]=s.useState(-1),[u,p]=s.useState(!1),h=AM(),m=s.useRef(null),g=s.useRef(null),b=s.useRef(!1),v=s.useRef({}),y=mm(),w=xm(),x=xm(),S=OM(),C=[];s.Children.forEach(o,e=>{s.isValidElement(e)&&(e.type===s.Fragment?s.Children.forEach(e.props.children,e=>{s.isValidElement(e)&&C.push(e)}):e.type===OD||i?C.push(e):"function"==typeof e.type?e.type.name:e.type)});const k=C.filter(e=>!e.props.showInMenu),E=C.filter(e=>e.props.showInMenu),R=k.length+(E.length?1:0);s.useLayoutEffect(()=>{t||Object.entries(v.current).forEach(([e,t])=>{t?.stop({},()=>{delete v.current[e]})})},[t]),s.useEffect(()=>{if(l<0||!m.current)return;if(l>=m.current.children.length)return;m.current.children[l].focus({preventScroll:!0})},[l]);const M=C.findIndex(e=>!e.props.disabled);s.useEffect(()=>{t&&-1===l&&c(M),t||(c(-1),b.current=!1)},[t,l,M]),s.useEffect(()=>{l>=R&&c(R-1)},[l,R]);const P=()=>{p(!1)},T=e=>t=>{v.current[e]=t},I=(e,t)=>n=>{c(e),b.current=!0,t&&t(n)},O=R>0?{role:"menu",onKeyDown:e=>{if(R<=1)return;const t=(e,n)=>{if(e<0||e>C.length)return e;const r=("left"===n?-1:1)*(y?-1:1);return C[e+r]?.props.disabled?t(e+r,n):e+r};let n=l;"ArrowRight"===e.key?n=t(l,"right"):"ArrowLeft"===e.key&&(n=t(l,"left")),n<0||n>=R||n!==l&&(e.preventDefault(),e.stopPropagation(),c(n))}}:void 0;return Xp.jsxs("div",f({ref:m,tabIndex:-1,className:YM.actionsCell},O,a,{children:[k.map((e,t)=>s.cloneElement(e,{key:t,touchRippleRef:T(t),onClick:I(t,e.props.onClick),tabIndex:l===t?n:-1})),E.length>0&&x&&Xp.jsx(S.slots.baseIconButton,f({ref:g,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?w:void 0,role:"menuitem",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),u?P():(p(!0),c(R-1),b.current=!0)},touchRippleRef:T(x),tabIndex:l===k.length?n:-1},S.slotProps?.baseIconButton,{children:Xp.jsx(S.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&Xp.jsx(PD,{open:u,target:g.current,position:r,onClose:P,children:Xp.jsx(S.slots.baseMenuList,{id:w,className:YM.menuList,"aria-labelledby":x,autoFocusItem:!0,children:E.map((e,t)=>s.cloneElement(e,{key:t,closeMenu:P}))})})]}))}function LD(e){const{colDef:t,id:n}=e,r=AM();if(!(e=>"function"==typeof e.getActions)(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const o=t.getActions(r.current.getRowParams(n));return Xp.jsx(FD,f({suppressChildrenValidation:!0},e,{children:o}))}const AD="actions",$D=f({},gD,{sortable:!1,filterable:!1,aggregable:!1,chartable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>Xp.jsx(LD,f({},e)),getApplyQuickFilterFn:()=>null}),ND="__row_group_by_columns_group__",zD="__detail_panel_toggle__";let jD=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const _D=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function BD(e){const{value:t,rowNode:n}=e,r=d(e,_D),o=AM(),i=OM(),a=(e=>{const{classes:t}=e;return zm({root:["booleanCell"]},qM,t)})({classes:i.classes}),l=uP(o,wI)>0&&"group"===n.type&&!1===i.treeData,c=s.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return l&&void 0===t?null:Xp.jsx(c,f({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}const HD=s.memo(BD),VD=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function WD(e){const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,l=d(e,VD),c=AM(),u=s.useRef(null),p=xm(),[h,m]=s.useState(n),g=OM(),b=(e=>{const{classes:t}=e;return zm({root:["editBooleanCell"]},qM,t)})({classes:g.classes}),v=s.useCallback(async e=>{const n=e.target.checked;a&&await a(e,n),m(n),await c.current.setEditCellValue({id:t,field:r,value:n},e)},[c,r,t,a]);return s.useEffect(()=>{m(n)},[n]),Wh(()=>{i&&u.current.focus()},[i]),Xp.jsx("label",f({htmlFor:p,className:eM(b.root,o)},l,{children:Xp.jsx(g.slots.baseCheckbox,f({id:p,inputRef:u,checked:Boolean(h),onChange:v,size:"small"},g.slotProps?.baseCheckbox))}))}const UD=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function GD(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,headerFilterMenu:i,clearButton:a,tabIndex:l,slotProps:c}=e,u=d(e,UD),[p,h]=s.useState(KD(t.value)),m=OM(),g=xm(),b=xm(),v=m.slotProps?.baseSelect||{},y=v.native??!1,w=m.slotProps?.baseSelectOption||{},x=s.useCallback(e=>{const r=KD(e.target.value);h(r),n(f({},t,{value:r}))},[n,t]);s.useEffect(()=>{h(KD(t.value))},[t.value]);const S=c?.root.label??r.current.getLocaleText("filterPanelInputLabel"),C=c?.root.slotProps;return Xp.jsxs(s.Fragment,{children:[Xp.jsxs(m.slots.baseSelect,f({fullWidth:!0,labelId:g,id:b,label:S,value:void 0===p?"":String(p),onChange:x,native:y,slotProps:{htmlInput:f({ref:o,tabIndex:l},C?.htmlInput)}},v,u,c?.root,{children:[Xp.jsx(m.slots.baseSelectOption,f({},w,{native:y,value:"",children:r.current.getLocaleText("filterValueAny")})),Xp.jsx(m.slots.baseSelectOption,f({},w,{native:y,value:"true",children:r.current.getLocaleText("filterValueTrue")})),Xp.jsx(m.slots.baseSelectOption,f({},w,{native:y,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function KD(e){return"true"===String(e).toLowerCase()||"false"!==String(e).toLowerCase()&&void 0}const qD=f({},gD,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:e=>e.field!==ND&&FI(e.rowNode)?"":Xp.jsx(HD,f({},e)),renderEditCell:e=>Xp.jsx(WD,f({},e)),sortComparator:cO,valueFormatter:(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),filterOperators:[{value:"is",getApplyFilterFn:e=>{const t=KD(e.value);return void 0===t?null:e=>Boolean(e)===t},InputComponent:GD}],getApplyQuickFilterFn:()=>null,aggregable:!1,chartable:!1,pastedValueParser:e=>(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}})(e)});function YD(e){for(const t in e)return!1;return!0}const XD=XT(e=>e.sorting),QD=qT(XD,e=>e.sortedRows),ZD=YT(QD,hI,mI,(e,t,n)=>e.reduce((e,r)=>{const o=t[r];if(o)e.push({id:r,model:o});else{const t=n[r];t&&FI(t)&&e.push({id:r,model:{[RI]:r}})}return e},[])),JD=qT(XD,e=>e.sortModel),eF=YT(JD,e=>{const t=e.reduce((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t),{});return t});YT(QD,e=>e.reduce((e,t,n)=>(e[t]=n,e),Object.create(null)));const tF=XT(e=>e.filter),nF=qT(tF,e=>e.filterModel),rF=qT(nF,e=>e.quickFilterValues),oF=XT(e=>e.visibleRowsLookup),iF=qT(tF,e=>e.filteredRowsLookup);qT(tF,e=>e.filteredChildrenCountLookup),qT(tF,e=>e.filteredDescendantCountLookup);const aF=YT(oF,ZD,(e,t)=>YD(e)?t:t.filter(t=>!1!==e[t.id])),lF=YT(aF,e=>e.map(e=>e.id)),sF=YT(iF,ZD,(e,t)=>YD(e)?t:t.filter(t=>!1!==e[t.id])),cF=YT(sF,e=>e.map(e=>e.id));YT(lF,mI,(e,t)=>{const n={};let r=0;return e.reduce((e,o)=>{const i=t[o];return n[i.depth]||(n[i.depth]=0),i.depth>r&&(n[i.depth]=0),r=i.depth,n[i.depth]+=1,e[o]=n[i.depth],e},{})});const uF=qT(YT(sF,mI,wI,(e,t,n)=>n<2?[e]:e.reduce((e,n)=>{const r=t[n.id]?.depth;return void 0===r||(e[r]||(e[r]=[]),e[r].push(n)),e},[[]])),e=>e[0]??[]),dF=qT(aF,e=>e.length),pF=qT(uF,e=>e.length),fF=qT(sF,e=>e.length);qT(fF,pF,(e,t)=>e-t);const hF=YT(nF,HO,(e,t)=>e.items?.filter(e=>{if(!e.field)return!1;const n=t[e.field];if(!n?.filterOperators||0===n?.filterOperators?.length)return!1;const r=n.filterOperators.find(t=>t.value===e.operator);return!!r&&(!r.InputComponent||null!=e.value&&""!==e.value?.toString())})),mF=YT(hF,e=>{const t=e.reduce((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e),{});return t}),gF=YT(lF,e=>e.reduce((e,t,n)=>(e[t]=n,e),Object.create(null))),bF=XT(e=>e.rowSelection),vF=YT(bF,RO),yF=qT(bF,fF,(e,t)=>"include"===e.type?e.ids.size:t-e.ids.size),wF=YT(bF,hI,xI,(e,t,n)=>{const r=new Map;if("include"===e.type)for(const n of e.ids)r.set(n,t[n]);else for(let o=0;o<n.length;o+=1){const i=n[o];e.ids.has(i)||r.set(i,t[i])}return r}),xF=XT((e,t)=>RI in t?t[RI]:e.props.getRowId?e.props.getRowId(t):t.id),SF=XT(e=>e.props.isRowSelectable);function CF(e,t){const n=mI(e),r=QD(e),o=iF(e),i=n[t];if(!i||"group"!==i.type)return[];const a=[];for(let l=r.findIndex(e=>e===t)+1;l<r.length&&n[r[l]]?.depth>i.depth;l+=1){const t=r[l];!1!==o[t]&&e.current.isRowSelectable(t)&&a.push(t)}return a}const kF=qT(VO,mI,iF,vF,hI,SF,(e,t,n,r,o,i,{groupId:a,autoSelectParents:l})=>{const s=t[a],c={id:a,row:o[a],columns:e};let u=!0;if("function"==typeof i&&(u=i(c)),!s||"group"!==s.type||r.has(a))return{isIndeterminate:!1,isChecked:r.has(a),isSelectable:u};let d=!1,p=!1;const f=e=>{if(!1===n[e]||d&&p)return;const o=t[e];"group"===o?.type&&o.children.forEach(f),r.has(e)?d=!0:p=!0};return f(a),{isIndeterminate:d&&p,isChecked:!!l&&(d&&!p),isSelectable:u}});function EF(e){return e.signature===BI.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}const RF=(e,t,n,r,o,i,a=vF(e))=>{const l=iF(e),s=new Set([]);if((r||o)&&!1!==l[n]){if(r){const r=t[n];if("group"===r?.type){CF(e,n).forEach(e=>{i(e),s.add(e)})}}if(o){const r=e=>{if(!a.has(e)&&!s.has(e))return!1;const n=t[e];return!!n&&("group"!==n.type||n.children.every(r))},o=n=>{const a=((e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return null==o?[]:e[o].children.filter(e=>e!==n&&!1!==t[e])})(t,l,n);if(0===a.length||a.every(r)){const r=t[n],a=r?.parent;null!=a&&a!==EI&&e.current.isRowSelectable(a)&&(i(a),s.add(a),o(a))}},c=t[n];if(!c||c.parent===EI)return;o(n)}}},MF=(e,t,n,r,o,i)=>{const a=vF(e);if(o||r){if(o){const e=((e,t)=>{const n=[];let r=t;for(;null!=r&&r!==EI;){const t=e[r];if(!t)return n;n.push(r),r=t.parent}return n})(t,n);e.forEach(e=>{a.has(e)&&i(e)})}if(r){const r=t[n];if("group"===r?.type){CF(e,n).forEach(e=>{i(e)})}}}},PF=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],TF=nM(function(e,t){const{field:n,id:r,rowNode:o,tabIndex:i}=e,a=d(e,PF),l=AM(),c=OM(),u=(e=>{const{classes:t}=e;return zm({root:["checkboxInput"]},qM,t)})({classes:c.classes}),{isIndeterminate:p,isChecked:h,isSelectable:m}=uP(l,kF,{groupId:r,autoSelectParents:c.rowSelectionPropagation?.parents??!1}),g=!m;s.useLayoutEffect(()=>{if(0===i){const e=l.current.getCellElement(r,n);e&&(e.tabIndex=-1)}},[l,i,r,n]);const b=eb(e=>{" "===e.key&&e.stopPropagation()}),v=eb(e=>{g&&e.preventDefault()}),y=eb(()=>{});if("footer"===o.type||"pinnedRow"===o.type)return null;const w=l.current.getLocaleText(h&&!p?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return Xp.jsx(c.slots.baseCheckbox,f({tabIndex:i,checked:h&&!p,onChange:e=>{if(g)return;const t={value:e.target.checked,id:r};l.current.publishEvent("rowSelectionCheckboxChange",t,e)},onClick:v,onMouseDown:y,className:eM(u.root,g&&"Mui-disabled"),material:{disableRipple:g},slotProps:{htmlInput:{"aria-disabled":g||void 0,"aria-label":w,name:"select_row"}},onKeyDown:b,indeterminate:p},c.slotProps?.baseCheckbox,a,{ref:t}))}),IF=TF,OF=XT(e=>e.focus),DF=qT(OF,e=>e.cell),FF=qT(OF,e=>e.columnHeader);qT(OF,e=>e.columnHeaderFilter);const LF=qT(OF,e=>e.columnGroupHeader),AF=XT(e=>e.tabIndex),$F=qT(AF,e=>e.cell),NF=qT(AF,e=>e.columnHeader);qT(AF,e=>e.columnHeaderFilter);const zF=qT(AF,e=>e.columnGroupHeader),jF=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):-1===e?n+2:0,_F=e=>({page:0,pageSize:e?0:100}),BF=(e,t)=>{if(t===BI.DataGrid&&e>100)throw new Error(["MUI X: `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("\n"))},HF=XT(e=>e.pagination),VF=qT(HF,e=>e.enabled&&"client"===e.paginationMode),WF=qT(HF,e=>e.paginationModel),UF=qT(HF,e=>e.rowCount),GF=qT(HF,e=>e.meta),KF=qT(WF,e=>e.page),qF=qT(WF,e=>e.pageSize),YF=qT(WF,UF,(e,t)=>jF(t,e.pageSize,e.page)),XF=YT(VF,WF,mI,wI,aF,uF,(e,t,n,r,o,i)=>{if(!e)return null;const a=i.length,l=Math.min(t.pageSize*t.page,a-1),s=-1===t.pageSize?a-1:Math.min(l+t.pageSize-1,a-1);if(-1===l||-1===s)return null;if(r<2)return{firstRowIndex:l,lastRowIndex:s};const c=i[l],u=s-l+1,d=o.findIndex(e=>e.id===c.id);let p=d,f=0;for(;p<o.length&&f<=u;){const e=o[p],t=n[e.id]?.depth;void 0===t?p+=1:((f<u||t>0)&&(p+=1),0===t&&(f+=1))}return{firstRowIndex:d,lastRowIndex:p-1}}),QF=YT(aF,XF,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),ZF=YT(lF,XF,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),JF=YT(VF,XF,QF,aF,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((e,t,n)=>(e.set(t.id,n),e),new Map)}:{rows:r,range:0===r.length?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((e,t,n)=>(e.set(t.id,n),e),new Map)}),eL=["field","colDef"],tL=nM(function(e,t){const n=d(e,eL),[,r]=s.useState(!1),o=AM(),i=OM(),a=(e=>{const{classes:t}=e;return zm({root:["checkboxInput"]},qM,t)})({classes:i.classes}),l=uP(o,NF),c=uP(o,bF),u=uP(o,lF),p=uP(o,ZF),h=s.useMemo(()=>{const e=i.isRowSelectable;if("function"!=typeof e)return c;if("exclude"===c.type)return c;const t={type:"include",ids:new Set};for(const n of c.ids)i.keepNonExistentRowsSelected&&t.ids.add(n),o.current.getRow(n)&&e(o.current.getRowParams(n))&&t.ids.add(n);return t},[o,i.isRowSelectable,i.keepNonExistentRowsSelected,c]),m=s.useMemo(()=>{const e=i.pagination&&i.checkboxSelectionVisibleOnly&&"server"!==i.paginationMode?p:u,t=new Set;for(let n=0;n<e.length;n+=1){const r=e[n];o.current.getRow(r)&&(o.current.isRowSelectable(r)&&t.add(r))}return t},[o,i.pagination,i.paginationMode,i.checkboxSelectionVisibleOnly,p,u]),g=s.useMemo(()=>{const e=RO(h);let t=0;for(const n of m)e.has(n)&&(t+=1);return t},[h,m]),b=s.useMemo(()=>{if(0===g)return!1;const e=RO(h);for(const t of m)if(!e.has(t))return!0;return!1},[g,h,m]),v=g>0,y=null!==l&&l.field===e.field?0:-1;s.useLayoutEffect(()=>{const t=o.current.getColumnHeaderElement(e.field);0===y&&t&&(t.tabIndex=-1)},[y,o,e.field]);const w=s.useCallback(e=>{" "===e.key&&o.current.publishEvent("headerSelectionCheckboxChange",{value:!v})},[o,v]),x=s.useCallback(()=>{r(e=>!e)},[]);s.useEffect(()=>o.current.subscribeEvent("rowSelectionChange",x),[o,x]);const S=o.current.getLocaleText(v&&!b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return Xp.jsx(i.slots.baseCheckbox,f({indeterminate:b,checked:v&&!b,onChange:e=>{const t={value:e.target.checked};o.current.publishEvent("headerSelectionCheckboxChange",t)},className:a.root,slotProps:{htmlInput:{"aria-label":S,name:"select_all_rows"}},tabIndex:y,onKeyDown:w,disabled:!EF(i)},i.slotProps?.baseCheckbox,n,{ref:t}))}),nL="__check__",rL=f({},qD,{type:"custom",field:nL,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,chartable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const o=xF(r,t);return r.current.isRowSelected(o)},rowSpanValueGetter:(e,t,n,r)=>xF(r,t),renderHeader:e=>Xp.jsx(tL,f({},e)),renderCell:e=>Xp.jsx(IF,f({},e))}),oL=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function iL(e,t){if(null==e)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":"date"===t?n.toISOString().substring(0,10):"datetime-local"===t?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function aL(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a,headerFilterMenu:l,clearButton:c,tabIndex:u,disabled:p}=e,h=d(e,oL),m=a?.root.slotProps,g=sb(),[b,v]=s.useState(()=>iL(t.value,r)),[y,w]=s.useState(!1),x=xm(),S=OM(),C=s.useCallback(e=>{g.clear();const r=e.target.value;v(r),w(!0),g.start(S.filterDebounceMs,()=>{const e=new Date(r);n(f({},t,{value:Number.isNaN(e.getTime())?void 0:e})),w(!1)})},[n,t,S.filterDebounceMs,g]);return s.useEffect(()=>{const e=iL(t.value,r);v(e)},[t.value,r]),Xp.jsxs(s.Fragment,{children:[Xp.jsx(S.slots.baseTextField,f({fullWidth:!0,id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:C,type:r||"text",disabled:p,inputRef:i,slotProps:f({},m,{input:f({endAdornment:y?Xp.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},m?.input),htmlInput:f({max:"datetime-local"===r?"9999-12-31T23:59":"9999-12-31",tabIndex:u},m?.htmlInput)})},S.slotProps?.baseTextField,h,a?.root)),l,c]})}function lL(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return e=>{if(!e)return!1;if(r)return t(e.getTime(),i);const o=new Date(e);return n?o.setSeconds(0,0):o.setHours(0,0,0,0),t(o.getTime(),i)}}const sL=e=>[{value:"is",getApplyFilterFn:t=>lL(t,(e,t)=>e===t,e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>lL(t,(e,t)=>e!==t,e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>lL(t,(e,t)=>e>t,e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>lL(t,(e,t)=>e>=t,e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>lL(t,(e,t)=>e<t,e,!e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>lL(t,(e,t)=>e<=t,e),InputComponent:aL,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}],cL=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],uL=Ig(JI)({fontSize:"inherit"});function dL(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,onValueChange:a,slotProps:l}=e,c=d(e,cL),u="dateTime"===o.type,p=AM(),h=s.useRef(null),m=s.useMemo(()=>{let e,t;if(e=null==n?null:n instanceof Date?n:new Date((n??"").toString()),null==e||Number.isNaN(e.getTime()))t="";else{t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,u?16:10)}return{parsed:e,formatted:t}},[n,u]),[g,b]=s.useState(m),v=OM(),y=(e=>{const{classes:t}=e;return zm({root:["editInputCell"]},qM,t)})({classes:v.classes}),w=s.useCallback(e=>{if(""===e)return null;const[t,n]=e.split("T"),[r,o,i]=t.split("-"),a=new Date;if(a.setFullYear(Number(r),Number(o)-1,Number(i)),a.setHours(0,0,0,0),n){const[e,t]=n.split(":");a.setHours(Number(e),Number(t),0,0)}return a},[]),x=s.useCallback(async e=>{const n=e.target.value,o=w(n);a&&await a(e,o),b({parsed:o,formatted:n}),p.current.setEditCellValue({id:t,field:r,value:o},e)},[p,r,t,a,w]);return s.useEffect(()=>{b(e=>m.parsed!==e.parsed&&m.parsed?.getTime()!==e.parsed?.getTime()?m:e)},[m]),Wh(()=>{i&&h.current.focus()},[i]),Xp.jsx(uL,f({as:v.slots.baseInput,inputRef:h,fullWidth:!0,className:y.root,type:u?"datetime-local":"date",value:g.formatted,onChange:x},c,l?.root,{slotProps:{htmlInput:f({max:u?"9999-12-31T23:59":"9999-12-31"},l?.root?.slotProps?.htmlInput)}}))}const pL=e=>Xp.jsx(dL,f({},e));function fL({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${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("\n"))}const hL=f({},gD,{type:"date",sortComparator:uO,valueFormatter:(e,t,n,r)=>{if(!e)return"";const o=xF(r,t);return!DI(t)||e instanceof Date?(fL({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()):e},filterOperators:sL(),renderEditCell:pL,pastedValueParser:e=>new Date(e)}),mL=f({},gD,{type:"dateTime",sortComparator:uO,valueFormatter:(e,t,n,r)=>{if(!e)return"";const o=xF(r,t);return!DI(t)||e instanceof Date?(fL({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()):e},filterOperators:sL(!0),renderEditCell:pL,pastedValueParser:e=>new Date(e)}),gL=e=>null==e?null:Number(e),bL=f({},gD,{type:"number",align:"right",headerAlign:"right",sortComparator:cO,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)?e.toLocaleString():e||"",filterOperators:[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>gL(t)===e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>gL(t)!==e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&gL(t)>e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&gL(t)>=e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&gL(t)<e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&gL(t)<=e.value,InputComponent:pO,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:yO,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:t=>gL(t)===gL(e)});function vL(e){return"singleSelect"===e?.type}function yL(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions(f({field:e.field},t)):e.valueOptions}function wL(e,t,n){if(void 0===t)return;const r=t.find(t=>{const r=n(t);return String(r)===String(e)});return n(r)}const xL=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function SL(e){const t=OM(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:l,error:c,onValueChange:u,initialOpen:p=t.editMode===wO.Cell,slotProps:h}=e,m=d(e,xL),g=AM(),b=s.useRef(null),v=s.useRef(null),[y,w]=s.useState(p),x=(t.slotProps?.baseSelect||{}).native??!1;if(Wh(()=>{l&&v.current?.focus()},[l]),!vL(a))return null;const S=yL(a,{id:n,row:i});if(!S)return null;const C=a.getOptionValue,k=a.getOptionLabel;return S&&a?Xp.jsx(t.slots.baseSelect,f({ref:b,value:r,onChange:async e=>{if(!vL(a)||!S)return;w(!1);const t=wL(e.target.value,S,C);u&&await u(e,t),await g.current.setEditCellValue({id:n,field:o,value:t},e)},open:y,onOpen:e=>{(function(e){return"key"in e&&!!e.key})(e)&&"Enter"===e.key||w(!0)},onClose:(e,r)=>{if(t.editMode!==wO.Row){if("backdropClick"===r||"Escape"===e.key){const t=g.current.getCellParams(n,o);g.current.publishEvent("cellEditStop",f({},t,{reason:"Escape"===e.key?PO.escapeKeyDown:PO.cellFocusOut}))}}else w(!1)},error:c,native:x,fullWidth:!0,slotProps:{htmlInput:{ref:v}}},m,h?.root,t.slotProps?.baseSelect,{children:S.map(e=>{const n=C(e);return s.createElement(t.slots.baseSelectOption,f({},t.slotProps?.baseSelectOption||{},{native:x,key:n,value:n}),k(e))})})):null}const CL=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],kL=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...yL(e)||[]].map(e=>{const a=r(e);let l=n(e);return""===l&&(l=" "),s.createElement(t,f({},i,{native:o,key:a,value:a}),l)});function EL(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,clearButton:l,headerFilterMenu:c,slotProps:u}=e,p=d(e,CL),h=t.value??"",m=xm(),g=xm(),b=OM(),v=b.slotProps?.baseSelect?.native??!1,y=o.current.getColumn(t.field),w=y.getOptionValue,x=y.getOptionLabel,S=s.useMemo(()=>yL(y),[y]),C=s.useCallback(e=>{let r=e.target.value;r=wL(r,S,w),n(f({},t,{value:r}))},[S,w,n,t]);if(!y||!vL(y))return null;const k=u?.root.label??o.current.getLocaleText("filterPanelInputLabel");return Xp.jsxs(s.Fragment,{children:[Xp.jsx(b.slots.baseSelect,f({fullWidth:!0,id:m,label:k,labelId:g,value:h,onChange:C,slotProps:{htmlInput:f({tabIndex:a,ref:i,type:r||"text",placeholder:u?.root.placeholder??o.current.getLocaleText("filterPanelInputPlaceholder")},u?.root.slotProps?.htmlInput)},native:v},b.slotProps?.baseSelect,p,u?.root,{children:kL({column:y,OptionComponent:b.slots.baseSelectOption,getOptionLabel:x,getOptionValue:w,isSelectNative:v,baseSelectOptionProps:b.slotProps?.baseSelectOption})})),c,l]})}const RL=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function ML(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=d(e,RL),c=xm(),u=OM(),p=o.current.getColumn(t.field),h=p.getOptionValue,m=p.getOptionLabel,g=s.useCallback((e,t)=>h(e)===h(t),[h]),b=s.useMemo(()=>yL(p)||[],[p]),v=s.useMemo(()=>Array.isArray(t.value)?t.value.reduce((e,t)=>{const n=b.find(e=>h(e)===t);return null!=n&&e.push(n),e},[]):[],[h,t.value,b]),y=s.useCallback((e,r)=>{n(f({},t,{value:r.map(h)}))},[n,t,h]);if(!p||!vL(p))return null;const w=u.slots.baseAutocomplete;return Xp.jsx(w,f({multiple:!0,options:b,isOptionEqualToValue:g,id:c,value:v,onChange:y,getOptionLabel:m,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},l,a?.root))}const PL=e=>null!=e&&hO(e)?e.value:e,TL=f({},gD,{type:"singleSelect",getOptionLabel:e=>hO(e)?e.label:String(e),getOptionValue:e=>hO(e)?e.value:e,valueFormatter(e,t,n,r){const o=xF(r,t);if(!vL(n))return"";const i=yL(n,{id:o,row:t});if(null==e)return"";if(!i)return e;if("object"!=typeof i[0])return n.getOptionLabel(e);const a=i.find(t=>n.getOptionValue(t)===e);return a?n.getOptionLabel(a):""},renderEditCell:e=>Xp.jsx(SL,f({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>PL(t)===PL(e.value),InputComponent:EL},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>PL(t)!==PL(e.value),InputComponent:EL},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(PL);return e=>t.includes(PL(e))},InputComponent:ML}],pastedValueParser:(e,t,n)=>{const r=n,o=yL(r)||[],i=r.getOptionValue;if(o.find(t=>i(t)===e))return e}}),IL=XT(e=>e.headerFiltering),OL=qT(IL,e=>e?.enabled??!1),DL=qT(IL,e=>e.editing),FL=qT(IL,e=>e.menuOpen),LL=XT(e=>e.columnGrouping),AL=YT(LL,e=>e?.unwrappedGroupingModel??{}),$L=YT(LL,e=>e?.lookup??{}),NL=YT(LL,e=>e?.headerStructure??[]),zL=qT(LL,e=>e?.maxDepth??0),jL=["maxWidth","minWidth","width","flex"],_L={string:gD,number:bL,date:hL,dateTime:mL,boolean:qD,singleSelect:TL,[AD]:$D,custom:gD};const BL=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(t=>{let a=e.lookup[t],l=0,s=!1;!1!==e.columnVisibilityModel[t]&&(a.flex&&a.flex>0?(r+=a.flex,s=!0):l=gO(a.width||gD.width,a.minWidth||gD.minWidth,a.maxWidth||gD.maxWidth),o+=l),a.computedWidth!==l&&(a=f({},a,{computedWidth:l})),s&&i.push(a),n[t]=a});const a=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),l=Math.max(a-o,0);if(r>0&&a>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(e=>e.field)),o={all:{},frozenFields:[],freeze:e=>{const t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,c=0;o.frozenFields.forEach(e=>{l-=o.all[e].computedWidth,s-=o.all[e].flex});for(let e=0;e<n.length;e+=1){const t=n[e];if(o.all[t.field]&&!0===o.all[t.field].frozen)continue;let r=l/s*t.flex;r<t.minWidth?(c+=t.minWidth-r,r=t.minWidth,a.min[t.field]=!0):r>t.maxWidth&&(c+=t.maxWidth-r,r=t.maxWidth,a.max[t.field]=!0),o.all[t.field]={frozen:!1,computedWidth:r,flex:t.flex}}c<0?Object.keys(a.max).forEach(e=>{o.freeze(e)}):c>0?Object.keys(a.min).forEach(e=>{o.freeze(e)}):n.forEach(({field:e})=>{o.freeze(e)}),i()}(),o.all}({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(e).forEach(t=>{n[t]=f({},n[t],{computedWidth:e[t].computedWidth})})}return f({},e,{lookup:n})};function HL(e){let t=_L.string;return e&&_L[e]&&(t=_L[e]),t}const VL=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=WO(e),keepOnlyColumnsToUpsert:o=!1,updateInitialVisibilityModel:i=!1})=>{const a=!e.current.state.columns;let l;if(a)l={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const t=_O(e);l={orderedFields:o?[]:[...t.orderedFields],lookup:f({},t.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:t.initialColumnVisibilityModel}}const s={};if(o&&!a)for(const e in l.lookup)Object.prototype.hasOwnProperty.call(l.lookup,e)&&(s[e]=!1);t.forEach(e=>{const{field:t}=e;s[t]=!0;let n=l.lookup[t];null==n?(n=f({},HL(e.type),{field:t,hasBeenResized:!1}),l.orderedFields.push(t)):o&&l.orderedFields.push(t),n&&n.type!==e.type&&(n=f({},HL(e.type),{field:t}));let r=n.hasBeenResized;jL.forEach(t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))}),l.lookup[t]=Hh(n,f({},HL(e.type),e,{hasBeenResized:r}))}),o&&!a&&Object.keys(l.lookup).forEach(e=>{s[e]||delete l.lookup[e]});const c=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(0===o.length&&0===n.length)return e;const i={},a=[];for(let t=0;t<n.length;t+=1){const r=n[t];e.lookup[r]&&(i[r]=!0,a.push(r))}const l=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter(e=>!i[e])],s=f({},e.lookup);for(let e=0;e<o.length;e+=1){const t=o[e],n=f({},s[t],{hasBeenResized:!0});Object.entries(r[t]).forEach(([e,t])=>{n[e]=-1===t?1/0:t}),s[t]=n}return f({},e,{orderedFields:l,lookup:s})})(e.current.unstable_applyPipeProcessors("hydrateColumns",l),n);return BL(c,e.current.getRootDimensions?.()??void 0)};function WL(e,t){if(t.listView)return 0;const n=ZI(e),r=zL(e),o=OL(e);return Math.floor(t.columnHeaderHeight*n)+Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n)*r+(o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0)}const UL=jh("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${YM["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${YM["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${YM["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${YM["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${YM["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${YM["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${YM["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${YM["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),GL=qT(ZT,(e,t)=>"left"===t?e.leftPinnedWidth:"right"===t?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function KL(e){const{scrollDirection:t,scrollPosition:n}=e,r=s.useRef(null),o=AM(),i=sb(),a=uP(o,ZI),l=uP(o,JT),c=uP(o,GL,t),u=OM(),d=WL(o,u),p=Math.floor(u.columnHeaderHeight*a),h=f({height:p,top:d-p},"left"===t?{left:c}:{},"right"===t?{right:c}:{}),m=eb(e=>{let a;if(e.preventDefault(),"left"===t)a=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("MUI X: Wrong drag direction");a=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}a=1.5*(a-1)+1,i.start(0,()=>{o.current.scroll({left:n.current.left+a,top:n.current.top})})});return Xp.jsx(YL,f({},e,{ref:r,getCanScrollMore:()=>{const e=ZT(o);if("left"===t)return n.current.left>0;if("right"===t){const t=l-e.viewportInnerSize.width;return n.current.left<t}return!1},style:h,handleDragOver:m}))}function qL(e){const{scrollDirection:t,scrollPosition:n}=e,r=s.useRef(null),o=AM(),i=sb(),a=uP(o,cI),l=OM(),c=WL(o,l),u={top:"up"===t?c:void 0,bottom:"down"===t?0:void 0},d=eb(e=>{let a;if(e.preventDefault(),"up"===t)a=e.clientY-r.current.getBoundingClientRect().bottom;else{if("down"!==t)throw new Error("MUI X: Wrong drag direction");a=Math.max(1,e.clientY-r.current.getBoundingClientRect().top)}a=1.5*(a-1)+1,i.start(0,()=>{o.current.scroll({left:n.current.left,top:n.current.top+a})})});return Xp.jsx(YL,f({},e,{ref:r,getCanScrollMore:()=>{const e=ZT(o);if("up"===t)return n.current.top>0;if("down"===t){const t=(a.currentPageTotalHeight||0)-e.viewportInnerSize.height-(e.hasScrollX?e.scrollbarSize:0);return n.current.top<t}return!1},style:u,handleDragOver:d}))}const YL=nM(function(e,t){const{scrollDirection:n,getCanScrollMore:r,style:o,handleDragOver:i}=e,a=AM(),[l,c]=s.useState(r),u=f({},OM(),{scrollDirection:n}),d=(e=>{const{scrollDirection:t,classes:n}=e;return zm({root:["scrollArea",`scrollArea--${t}`]},qM,n)})(u);return KI(a,"scrollPositionChange",()=>{c(r)}),l?Xp.jsx(UL,{ref:t,className:d.root,ownerState:u,onDragOver:i,style:o}):null}),XL=jI(function(e){const t=AM(),[n,r]=s.useState("none");return KI(t,"columnHeaderDragStart",()=>r("horizontal")),KI(t,"columnHeaderDragEnd",()=>r("none")),KI(t,"rowDragStart",()=>r("vertical")),KI(t,"rowDragEnd",()=>r("none")),"none"===n?null:"horizontal"===n?Xp.jsx(KL,f({},e)):Xp.jsx(qL,f({},e))}),QL=()=>{};function ZL(e,t,n){const r=s.useRef(!0);Wh(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function JL(e,t){const n=s.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const eA=(e,t,n,r,o)=>{const i=JL(e,"useNativeEventListener");YI(e,"rootMount",()=>{const e=t();if(e&&n)return i.debug(`Binding native ${n} event`),e.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),e.removeEventListener(n,r,o)}})};function tA(e){const t=s.useRef(!0);t.current&&(t.current=!1,e())}const nA=XT(e=>e.pivoting),rA=qT(nA,e=>e?.active),oA=new Map,iA=qT(nA,e=>e?.initialColumns||oA),aA=(e,t)=>{const n=uP(e,dI),r=uP(e,dF),o=uP(e,kI),i=uP(e,GO),a=0===n&&0===o,l=uP(e,pI),s=uP(e,rA),c=!l&&a,u=!l&&n>0&&0===r;let d=null,p=null;return c&&(d="noRowsOverlay"),!l&&0===i.length&&(d="noColumnsOverlay"),c&&s&&(d="emptyPivotOverlay"),u&&(d="noResultsOverlay"),l&&(d="loadingOverlay",p=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress")),{overlayType:d,loadingOverlayVariant:p}},lA=XT(e=>e.columnMenu);const sA=jI(function(){const e=pP(),t=OM(),n=uP(e,GO),r=uP(e,mF),o=uP(e,eF),i=uP(e,NF),a=uP(e,()=>null===$F(e)),l=uP(e,zF),s=uP(e,FF),c=uP(e,LF),u=uP(e,zL),d=uP(e,lA),p=uP(e,WO),h=uP(e,NL),m=!(null===l&&null===i&&a),g=e.current.columnHeadersContainerRef;return Xp.jsx(t.slots.columnHeaders,f({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:s,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m},t.slotProps?.columnHeaders))}),cA=jh("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),uA=jh("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:o}=e,i="skeleton"===r||"noColumnsOverlay"===o;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),dA=nM((e,t)=>{const{ownerState:n}=e,r=OM(),o=SD().hooks.useGridAriaAttributes();return Xp.jsxs(uA,f({ownerState:n,className:e.className,tabIndex:-1},o,r.slotProps?.main,{ref:t,children:[Xp.jsx(cA,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),pA=jh("div")({position:"sticky",zIndex:40,top:0});function fA(e){const t=zm({root:["topContainer"]},qM,{});return Xp.jsx(pA,f({},e,{className:eM(t.root,YM["container--top"]),role:"presentation"}))}const hA=jh("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),mA=nM(function(e,t){const n=OM(),r=!n.autoHeight&&"auto"===e.style?.minHeight,o=((e,t)=>{const{classes:n}=e;return zm({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},qM,n)})(n,r),i={classes:n.classes,overflowedContent:r};return Xp.jsx(hA,f({},e,{ownerState:i,className:eM(o.root,e.className),ref:t}))}),gA=jh("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),bA=jh("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:GM.cell.background.pinned}),vA=jh(bA)({left:0}),yA=jh(bA)({right:0}),wA=jh("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});const xA=jI(function({rowsLength:e}){const t=AM(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:s}=uP(t,ZT),c=o?a:0,u=n.height-r.height>0;return 0!==c||u?Xp.jsxs(gA,{className:YM.filler,role:"presentation",style:{height:c,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&Xp.jsx(vA,{className:YM["filler--pinnedLeft"],style:{width:l}}),Xp.jsx(wA,{}),s>0&&Xp.jsx(yA,{className:YM["filler--pinnedRight"],style:{width:s+(i?a:0)}})]}):null}),SA=jh("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),CA=nM(function(e,t){const n=OM(),r=(e=>{const{classes:t}=e;return zm({root:["virtualScrollerRenderZone"]},qM,t)})(n);return Xp.jsx(SA,f({ownerState:n},e,{className:eM(r.root,e.className),ref:t}))}),kA={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},EA=XT(e=>e.editRows),RA=qT(EA,(e,{rowId:t,editMode:n})=>n===wO.Row&&Boolean(e[t])),MA=qT(EA,(e,{rowId:t,field:n})=>e[t]?.[n]??null),PA=XT(e=>e.preferencePanel),TA=qT(PA,(e,t)=>!(!e.open||e.labelId!==t));var IA=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(IA||{});const OA={initialize:function(e){return{colspanMap:new Map}},use:function(e,t,n){const r=t.colspan?.getColspan,o=eb(r?(t,n,o,i)=>{for(let a=n;a<o;a+=1){const l=DA(e.state.colspanMap,a,t,n,o,i,r);l.colSpan>1&&(a+=l.colSpan-1)}}:()=>{});return n.calculateColSpan=o,{resetColSpan:()=>{e.state.colspanMap=new Map},getCellColSpanInfo:(t,n)=>e.state.colspanMap.get(t)?.[n],calculateColSpan:o}},selectors:{}};function DA(e,t,n,r,o,i,a){const l=i.length,s=i[t],c=a(n,s,t);if(!c||1===c)return FA(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:s.computedWidth}}),{colSpan:1};let u=s.computedWidth;for(let a=1;a<c;a+=1){const s=t+a;if(s>=r&&s<o){u+=i[s].computedWidth,FA(e,n,t+a,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+c,l-1),leftVisibleCellIndex:t})}FA(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:c,width:u}})}return{colSpan:c}}function FA(e,t,n,r){let o=e.get(t);o||(o={},e.set(t,o)),o[n]=r}function LA(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!LA(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const r=n[e];if(!LA(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])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 e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=0;o<r;o+=1){const r=n[o];if(!LA(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function AA(e,t){return Math.round(e*10**t)/10**t}const $A={EMPTY:{width:0,height:0},equals:(e,t)=>e.width===t.width&&e.height===t.height},NA={EMPTY:{top:[],bottom:[]}},zA={EMPTY:{left:[],right:[]}},jA={EMPTY:{top:0,left:0}};let _A=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}({});(_A||(_A={})).forDelta=function(e,t){return 0===e&&0===t?_A.NONE:Math.abs(t)>=Math.abs(e)?t>0?_A.DOWN:_A.UP:e>0?_A.RIGHT:_A.LEFT};const BA={isReady:!1,root:$A.EMPTY,viewportOuterSize:$A.EMPTY,viewportInnerSize:$A.EMPTY,contentSize:$A.EMPTY,minimumSize:$A.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},HA={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,columnsTotalWidth:e=>e.dimensions.columnsTotalWidth,contentHeight:e=>e.dimensions.contentSize.height,autoHeight:e=>e.dimensions.autoHeight,minimalContentHeight:e=>e.dimensions.minimalContentHeight,rowsMeta:e=>e.rowsMeta,rowPositions:e=>e.rowsMeta.positions,columnPositions:$T((e,t)=>{const n=[];let r=0;for(let e=0;e<t.length;e+=1)n.push(r),r+=t[e].computedWidth;return n}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},VA={initialize:function(e){const t=f({},BA,e.dimensions,{autoHeight:e.dimensions.autoHeight,minimalContentHeight:e.dimensions.minimalContentHeight}),{rowCount:n}=e,{rowHeight:r}=t,o={currentPageTotalHeight:n*r,positions:Array.from({length:n},(e,t)=>t*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},i=new Map;return{rootSize:$A.EMPTY,dimensions:t,rowsMeta:o,rowHeights:i}},use:function(e,t,n){const r=s.useRef(!0),{layout:o,dimensions:{rowHeight:i,columnsTotalWidth:a,leftPinnedWidth:l,rightPinnedWidth:c,topPinnedHeight:u,bottomPinnedHeight:d},onResize:p}=t,h=s.useCallback(n=>{if(n&&(r.current=!1),r.current)return;const s=o.refs.container.current,f=HA.rootSize(e.state),h=HA.rowsMeta(e.state),m=function(e,t){if(void 0!==t)return t;if(null===e)return 0;const n=WA.get(e);if(void 0!==n)return n;const r=Xg(e).createElement("div");r.style.width="99px",r.style.height="99px",r.style.position="absolute",r.style.overflow="scroll",r.className="scrollDiv",e.appendChild(r);const o=r.offsetWidth-r.clientWidth;return e.removeChild(r),WA.set(e,o),o}(s,t.dimensions.scrollbarSize),g=u+h.pinnedTopRowsTotalHeight,b=d+h.pinnedBottomRowsTotalHeight,v={width:a,height:AA(h.currentPageTotalHeight,1)};let y,w,x=!1,S=!1;if(t.dimensions.autoHeight)S=!1,x=Math.round(a)>Math.round(f.width),y={width:f.width,height:g+b+v.height},w={width:Math.max(0,y.width-(S?m:0)),height:Math.max(0,y.height-(x?m:0))};else{y={width:f.width,height:f.height},w={width:Math.max(0,y.width),height:Math.max(0,y.height-g-b)};const e=v,t=w,n=e.width>t.width,r=e.height>t.height;(n||r)&&(S=r,x=e.width+(S?m:0)>t.width,x&&(S=e.height+m>t.height)),S&&(w.width-=m),x&&(w.height-=m)}t.disableHorizontalScroll&&(x=!1),t.disableVerticalScroll&&(S=!1);const C=Math.max(y.width,a+(S?m:0)),k={isReady:!0,root:f,viewportOuterSize:y,viewportInnerSize:w,contentSize:v,minimumSize:{width:a,height:g+v.height+b},hasScrollX:x,hasScrollY:S,scrollbarSize:m,rowWidth:C,rowHeight:i,columnsTotalWidth:a,leftPinnedWidth:l,rightPinnedWidth:c,topContainerHeight:g,bottomContainerHeight:b,autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight};LA(e.state.dimensions,k)||(e.update({dimensions:k}),p?.(k.root))},[e,o.refs.container,t.dimensions.scrollbarSize,t.dimensions.autoHeight,t.dimensions.minimalContentHeight,t.disableHorizontalScroll,t.disableVerticalScroll,p,i,a,l,c,u,d]),{resizeThrottleMs:m}=t,g=eb(h),b=s.useMemo(()=>m>0?function(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...e){r=e,void 0===n&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}(g,m):void 0,[m,g]);s.useEffect(()=>b?.clear,[b]),Wh(h,[h]),Wh(()=>{e.update({dimensions:f({},e.state.dimensions,{autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight})})},[e,t.dimensions.autoHeight,t.dimensions.minimalContentHeight]);const v=function(e,t,n){const r=e.state.rowHeights,{rows:o,getRowHeight:i,getRowSpacing:a,getEstimatedRowHeight:l}=t,c=s.useRef(-1),u=s.useRef(!1),d=s.useRef(!1),p=t.pinnedRows,f=VT(e,HA.rowHeight),h=eb(t=>{let n=r.get(t);return void 0===n&&(n={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(t,n)),n}),{applyRowHeight:m}=t,g=s.useCallback(t=>{const n=HA.dimensions(e.state),r=n.rowHeight,o=h(t.id);if(i){const e=i(t);if("auto"===e){if(o.needsFirstMeasurement){const e=l?l(t):r;o.content=e??r}u.current=!0,o.autoHeight=!0}else o.content=e??n.rowHeight,o.needsFirstMeasurement=!1,o.autoHeight=!1}else o.content=r,o.needsFirstMeasurement=!1;if(a){const e=a(t);o.spacingTop=e.top??0,o.spacingBottom=e.bottom??0}else o.spacingTop=0,o.spacingBottom=0;return m?.(o,t),o},[e,i,h,l,f,a,m]),b=s.useCallback(()=>{u.current=!1;const t=p?.top.reduce((e,t)=>{const n=g(t);return e+n.content+n.spacingTop+n.spacingBottom+n.detail},0)??0,r=p?.bottom.reduce((e,t)=>{const n=g(t);return e+n.content+n.spacingTop+n.spacingBottom+n.detail},0)??0,i=[],a=o.reduce((e,t)=>{i.push(e);const n=g(t);return e+(n.content+n.spacingTop+n.spacingBottom+n.detail)},0);u.current||(c.current=1/0);const l=t!==e.state.rowsMeta.pinnedTopRowsTotalHeight||r!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||a!==e.state.rowsMeta.currentPageTotalHeight,s={currentPageTotalHeight:a,positions:i,pinnedTopRowsTotalHeight:t,pinnedBottomRowsTotalHeight:r};e.set("rowsMeta",s),l&&n(),d.current=!0},[e,p,o,g,n]),v=eb(b),y=t=>r.get(t)?.content??HA.rowHeight(e.state),w=(e,t)=>{const n=h(e),r=n.content!==t;n.needsFirstMeasurement=!1,n.content=t,d.current&&=!r},x=e=>r.get(e)?.autoHeight??!1,S=()=>c.current,C=e=>{u.current&&e>c.current&&(c.current=e)},k=()=>{r.clear(),b()},E=ob(()=>"undefined"==typeof ResizeObserver?void 0:new ResizeObserver(e=>{for(let n=0;n<e.length;n+=1){const r=e[n],o=r.borderBoxSize&&r.borderBoxSize.length>0?r.borderBoxSize[0].blockSize:r.contentRect.height,i=r.target.__mui_id,a=t.focusedVirtualCell?.()?.id;if(a===i&&0===o)return;w(i,o)}d.current||requestAnimationFrame(()=>{v()})})).current,R=(e,t)=>(e.__mui_id=t,E?.observe(e),()=>E?.unobserve(e));return Wh(()=>{b()},[b]),{getRowHeight:y,setLastMeasuredRowIndex:C,storeRowHeightMeasurement:w,hydrateRowsMeta:b,observeRowHeight:R,rowHasAutoHeight:x,getRowHeightEntry:h,getLastMeasuredRowIndex:S,resetRowHeights:k}}(e,t,h);return{updateDimensions:h,debouncedUpdateDimensions:b,rowsMeta:v}},selectors:HA};const WA=new WeakMap;const UA=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox"),GA="undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent),KA=(e,t,n)=>Math.max(t,Math.min(n,e)),qA={top:0,left:0},YA=Object.freeze(new Map),XA={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},QA=(()=>{const e=AT(e=>e.virtualization.renderContext.firstRowIndex);return{store:AT(e=>e.virtualization),renderContext:AT(e=>e.virtualization.renderContext),enabledForRows:AT(e=>e.virtualization.enabledForRows),enabledForColumns:AT(e=>e.virtualization.enabledForColumns),offsetTop:AT(VA.selectors.rowPositions,e,(e,t)=>e[t]??0),context:AT(e=>e.virtualization.context),scrollPosition:AT(e=>e.virtualization.scrollPosition)}})(),ZA={initialize:function(e){const t={virtualization:f({enabled:!GA,enabledForRows:!GA,enabledForColumns:!GA,renderContext:XA,props:e.layout.constructor.elements.reduce((e,t)=>(e[t],e),{}),context:{},scrollPosition:{current:jA.EMPTY}},e.initialState?.virtualization),getters:null};return t},use:function(e,t,n){const{layout:r,dimensions:{rowHeight:o,columnsTotalWidth:i=0},virtualization:{isRtl:a=!1,rowBufferPx:l=150,columnBufferPx:c=150},colspan:u,initialState:d,rows:p,range:h,columns:m,pinnedRows:g=NA.EMPTY,pinnedColumns:b=zA.EMPTY,onWheel:v,onTouchMove:y,onRenderContextChange:w,onScrollChange:x,scrollReset:S,renderRow:C,renderInfiniteLoadingTrigger:k}=t,E=g.bottom.length>0,[R,M]=s.useState(YA),P=s.useRef(!1),T=s.useRef(!1),I=VT(e,QA.renderContext),O=VT(e,QA.enabledForRows),D=VT(e,QA.enabledForColumns),F=VT(e,VA.selectors.contentHeight),L=s.useRef(d?.scroll??qA),A=s.useRef(!1),$=s.useRef(qA),N=s.useRef(XA),z=sb(),j=s.useRef(void 0),_=ob(()=>function(e,t,n,r,o){return{direction:_A.NONE,buffer:l$(e,_A.NONE,t,n,r,o)}}(a,l,c,15*o,300)).current,B=s.useCallback(t=>{i$(t,e.state.virtualization.renderContext)||e.set("virtualization",f({},e.state.virtualization,{renderContext:t,scrollPosition:{current:f({},L.current)}}));const n=VA.selectors.dimensions(e.state).isReady,r=t.firstRowIndex!==N.current.firstRowIndex||t.lastRowIndex!==N.current.lastRowIndex;n&&r&&(N.current=t,w?.(t)),$.current=L.current},[e,w]),H=eb(()=>{const i=r.refs.scroller.current;if(!i)return;const s=VA.selectors.dimensions(e.state),u=Math.ceil(s.contentSize.height-s.viewportInnerSize.height),d=Math.ceil(s.contentSize.width-s.viewportInnerSize.width),p={top:KA(i.scrollTop,0,u),left:a?KA(i.scrollLeft,-Math.abs(d),0):KA(i.scrollLeft,0,d)},h=p.left-L.current.left,m=p.top-L.current.top,g=0!==h||0!==m;L.current=p;const b=g?_A.forDelta(h,m):_A.NONE,v=Math.abs(L.current.top-$.current.top),y=Math.abs(L.current.left-$.current.left),w=v>=o||y>=50,x=_.direction!==b;if(!(w||x))return e.set("virtualization",f({},e.state.virtualization,{scrollPosition:{current:f({},L.current)}})),I;if(x)switch(b){case _A.NONE:case _A.LEFT:case _A.RIGHT:j.current=void 0;break;default:j.current=I}_.direction=b,_.buffer=l$(a,b,l,c,15*o,300);const S=t$(e$(e,t,n,O,D),L.current,_);return i$(S,I)||(So.flushSync(()=>{B(S)}),z.start(1e3,H)),S}),V=()=>{if(!VA.selectors.dimensions(e.state).isReady&&(O||D))return;const r=t$(e$(e,t,n,O,D),L.current,_);j.current=void 0,B(r)},W=eb(V);UT(e,VA.selectors.dimensions,(e,t)=>{t.isReady&&V()}),Wh(()=>{P.current&&(V(),P.current=!1)});const U=eb(()=>{if(A.current)return void(A.current=!1);const e=H();e&&x?.(L.current,e)}),G=s.useRef(null);Wh(()=>{T.current&&W()},[D,O,W]),Wh(()=>{r.refs.scroller.current&&(r.refs.scroller.current.scrollLeft=0)},[r.refs.scroller,S]),((e,t)=>{const n=s.useRef(!1);Wh(()=>n.current||!e?QL:(n.current=!0,t()),[n.current||e])})(I!==XA,()=>{if(x?.(L.current,I),T.current=!0,d?.scroll&&r.refs.scroller.current){const e=r.refs.scroller.current,{top:t,left:n}=d.scroll,o={top:!(t>0),left:!(n>0)};!o.left&&i&&(e.scrollLeft=n,o.left=!0,A.current=!0),!o.top&&F&&(e.scrollTop=t,A.current=!0),o.top&&o.left||(G.current=(r,i)=>{!o.left&&r&&(e.scrollLeft=n,o.left=!0,A.current=!0),!o.top&&i&&(e.scrollTop=t,o.top=!0,A.current=!0),o.left&&o.top&&(G.current=null)})}}),UT(e,VA.selectors.dimensions,V),Wh(()=>{r.refs.scroller&&G.current?.(i,F)},[r.refs.scroller,i,F]);const K=s.useRef(!0),q=JA(t=>{r.refs.container.current=t;const o=function(e,t,n){if(!e)return;const r=e.getBoundingClientRect(),o={width:AA(r.width,1),height:AA(r.height,1)};if(t.state.rootSize!==$A.EMPTY&&$A.equals(o,t.state.rootSize)||n(o),"undefined"==typeof ResizeObserver)return;const i=new ResizeObserver(([e])=>{if(!e)return;const r={width:AA(e.contentRect.width,1),height:AA(e.contentRect.height,1)};$A.equals(r,t.state.rootSize)||n(r)});return i.observe(e),()=>{i.disconnect()}}(t,e,t=>{0===t.width&&0===t.height&&0!==e.state.rootSize.height&&0!==e.state.rootSize.width||(e.state.rootSize=t,K.current||!n.debouncedUpdateDimensions?(n.updateDimensions(K.current),K.current=!1):n.debouncedUpdateDimensions())});return()=>{o?.(),r.refs.container.current=null}}),Y=JA(e=>{r.refs.scroller.current=e;const t={passive:!0};return e.addEventListener("scroll",U,t),e.addEventListener("wheel",v,t),e.addEventListener("touchmove",y,t),()=>{e.removeEventListener("scroll",U,t),e.removeEventListener("wheel",v,t),e.removeEventListener("touchmove",y,t),r.refs.scroller.current=null}}),X={containerRef:q,scrollerRef:Y},Q=r.use(e,t,n,X),Z=f({setPanels:M,getRows:(r={},o)=>{if(!r.rows&&!h)return[];let a=I;r.renderContext&&(a=r.renderContext,a.firstColumnIndex=I.firstColumnIndex,a.lastColumnIndex=I.lastColumnIndex);const l=!E&&void 0===r.position||E&&"bottom"===r.position,s=void 0!==r.position;let c;switch(r.position){case"top":c=0;break;case"bottom":c=g.top.length+p.length;break;default:c=g.top.length}const d=r.rows??p,f=a.firstRowIndex,v=Math.min(a.lastRowIndex,d.length),y=r.rows?s$(0,r.rows.length):s$(f,v);let w=-1;const x=t.focusedVirtualCell?.();!s&&x&&(x.rowIndex<f&&(y.unshift(x.rowIndex),w=x.rowIndex),x.rowIndex>v&&(y.push(x.rowIndex),w=x.rowIndex));const S=[],M=VA.selectors.columnPositions(e.state,m);return y.forEach(e=>{const{id:t,model:f}=d[e];if(o&&!o[t])return;const g=(h?.firstRowIndex||0)+c+e;if(u?.enabled){const e=b.left.length,r=m.length-b.right.length;n.calculateColSpan(t,e,r,m),b.left.length>0&&n.calculateColSpan(t,0,b.left.length,m),b.right.length>0&&n.calculateColSpan(t,m.length-b.right.length,m.length,m)}const v=n.rowsMeta.rowHasAutoHeight(t)?"auto":n.rowsMeta.getRowHeight(t);let y=!1;void 0===r.position&&(y=0===e);let E=!1;const P=e===d.length-1;l&&(s?E=P:e===p.length-1&&(E=!0));let T=a;j.current&&e>=j.current.firstRowIndex&&e<j.current.lastRowIndex&&(T=j.current);const I=e===w,O=x?.rowIndex===g,D=a$(M,T,b.left.length),F=P&&"top"===r.position,L=T.firstColumnIndex,A=T.lastColumnIndex;if(S.push(C({id:t,model:f,rowIndex:g,offsetLeft:D,columnsTotalWidth:i,baseRowHeight:v,firstColumnIndex:L,lastColumnIndex:A,focusedColumnIndex:O?x.columnIndex:void 0,isFirstVisible:y,isLastVisible:E,isVirtualFocusRow:I,showBottomBorder:F})),I)return;const $=R.get(t);$&&S.push($),void 0===r.position&&P&&k&&S.push(k(t))}),S},rows:t.rows},Q);return f({getters:Z,setPanels:M,forceUpdateRenderContext:V,scheduleUpdateRenderContext:()=>{P.current=!0}},{getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}})},selectors:QA};function JA(e){const t=s.useRef(void 0),n=eb(n=>{if(n)return t.current=e(n),tM>=19?t.current:void 0;t.current?.()});return n}function e$(e,t,n,r,o){const i=VA.selectors.dimensions(e.state),a=t.rows,l=t.range,s=t.columns,c=n.getHiddenCellsOrigin(),u=t.rows.at(-1)?.id,d=s.at(-1);return{api:n,enabledForRows:r,enabledForColumns:o,autoHeight:i.autoHeight,rowBufferPx:t.virtualization.rowBufferPx,columnBufferPx:t.virtualization.columnBufferPx,leftPinnedWidth:i.leftPinnedWidth,columnsTotalWidth:i.columnsTotalWidth,viewportInnerWidth:i.viewportInnerSize.width,viewportInnerHeight:i.viewportInnerSize.height,lastRowHeight:void 0!==u?n.rowsMeta.getRowHeight(u):0,lastColumnWidth:d?.computedWidth??0,rowsMeta:VA.selectors.rowsMeta(e.state),columnPositions:VA.selectors.columnPositions(e.state,t.columns),rows:a,range:l,pinnedColumns:t.pinnedColumns,columns:s,hiddenCellsOriginMap:c,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function t$(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let t=Math.min(n$(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const n=e.hiddenCellsOriginMap[t];if(n){const e=Math.min(...Object.values(n));t=Math.min(t,e)}const i=e.autoHeight?t+e.rows.length:n$(e,o+e.viewportInnerHeight);r.firstRowIndex=t,r.lastRowIndex=i}if(e.enabledForColumns){let t=0,o=e.columnPositions.length,i=!1;const[l,s]=o$({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let t=l;t<s&&!i;t+=1){const n=e.rows[t];i=e.api.rowsMeta.rowHasAutoHeight(n.id)}i&&!e.virtualizeColumnsWithAutoRowHeight||(t=r$(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),o=r$(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=t,r.lastColumnIndex=o}const l=function(e,t,n){const[r,o]=o$({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=o$({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns?.left.length??0,maxLastIndex:e.columns.length-(e.pinnedColumns?.right.length??0),bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),l=function({api:e,firstColumnToRender:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=t,a=!1;for(;!a&&i>=0;){a=!0;for(let t=n;t<r;t+=1){if(o[t]){const n=o[t].id,r=e.getCellColSpanInfo(n,i);if(r&&r.spannedByColSpan&&r.leftVisibleCellIndex<i){i=r.leftVisibleCellIndex,a=!1;break}}}}return i}({api:e.api,firstColumnToRender:i,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:l,lastColumnIndex:a}}(e,r,n);return l}function n$(e,t,n){const r=e.api.rowsMeta.getLastMeasuredRowIndex();let o=r===1/0;e.range?.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=KA(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?r$(t,e.rowsMeta.positions,n):function(e,t,n,r){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return r$(e,t,r,Math.floor(n/2),Math.min(n,t.length))}(t,e.rowsMeta.positions,i,n)}function r$(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let l;if(n?.atStart){l=e-((i===t.length-1?n.lastPosition:t[i+1])-a)<a}else l=e<=a;return l?r$(e,t,n,r,i):r$(e,t,n,i+1,o)}function o$({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:l}){const s=a[e]-n,c=a[t]+r,u=r$(s,a,{atStart:!0,lastPosition:a[a.length-1]+l}),d=r$(c,a);return[KA(u,o,i),KA(d,o,i)]}function i$(e,t){return e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function a$(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function l$(e,t,n,r,o,i){if(e)switch(t){case _A.LEFT:t=_A.RIGHT;break;case _A.RIGHT:t=_A.LEFT}switch(t){case _A.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case _A.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case _A.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case _A.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case _A.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function s$(e,t){return Array.from({length:t-e}).map((t,n)=>e+n)}class c${static elements=["scroller","container"];constructor(e){this.refs=e}refSetter(e){return t=>{t&&this.refs[e].current!==t&&(this.refs[e].current=t)}}}class u$ extends c${static elements=["scroller","container","content","positioner","scrollbarVertical","scrollbarHorizontal"];use(e,t,n,r){const{scrollerRef:o,containerRef:i}=r,a=eb(this.refSetter("scrollbarVertical")),l=eb(this.refSetter("scrollbarHorizontal"));e.state.virtualization.context={scrollerRef:o,containerRef:i,scrollbarVerticalRef:a,scrollbarHorizontalRef:l}}static selectors=(()=>({containerProps:$T(ZA.selectors.context,e=>({ref:e.containerRef})),scrollerProps:$T(ZA.selectors.context,VA.selectors.autoHeight,VA.selectors.needsHorizontalScrollbar,(e,t,n)=>({ref:e.scrollerRef,style:{overflowX:n?void 0:"hidden",overflowY:t?"hidden":void 0},role:"presentation",tabIndex:UA?-1:void 0})),contentProps:$T(VA.selectors.contentHeight,VA.selectors.minimalContentHeight,VA.selectors.columnsTotalWidth,VA.selectors.needsHorizontalScrollbar,(e,t,n,r)=>({style:{width:r?n:"auto",flexBasis:0===e?t:e,flexShrink:0},role:"presentation"})),positionerProps:$T(ZA.selectors.offsetTop,e=>({style:{transform:`translate3d(0, ${e}px, 0)`}})),scrollbarHorizontalProps:$T(ZA.selectors.context,ZA.selectors.scrollPosition,(e,t)=>({ref:e.scrollbarHorizontalRef,scrollPosition:t})),scrollbarVerticalProps:$T(ZA.selectors.context,ZA.selectors.scrollPosition,(e,t)=>({ref:e.scrollbarVerticalRef,scrollPosition:t})),scrollAreaProps:$T(ZA.selectors.scrollPosition,e=>({scrollPosition:e}))}))()}class d$ extends u${use(e,t,n,r){super.use(e,t,n,r);const o=e.use(u$.selectors.containerProps),i=e.use(u$.selectors.scrollerProps),a=e.use(u$.selectors.contentProps),l=e.use(u$.selectors.positionerProps),s=e.use(u$.selectors.scrollbarVerticalProps),c=e.use(u$.selectors.scrollbarHorizontalProps),u=e.use(u$.selectors.scrollAreaProps);return{getContainerProps:()=>o,getScrollerProps:()=>i,getContentProps:()=>a,getPositionerProps:()=>l,getScrollbarVerticalProps:()=>s,getScrollbarHorizontalProps:()=>c,getScrollAreaProps:()=>u}}}$T(ZA.selectors.context,VA.selectors.autoHeight,VA.selectors.needsHorizontalScrollbar,(e,t,n)=>({ref:e.mergedRef,style:{overflowX:n?void 0:"hidden",overflowY:t?"hidden":void 0,position:"relative"},role:"presentation",tabIndex:UA?-1:void 0})),$T(VA.selectors.contentHeight,e=>({style:{position:"absolute",display:"inline-block",width:"100%",height:e,top:0,left:0,zIndex:-1},role:"presentation"})),$T(ZA.selectors.offsetTop,e=>({style:{height:e}}));const p$={initialize:function(e){return{}},use:function(e,t,n){return{getViewportPageSize:()=>{const n=VA.selectors.dimensions(e.state);if(!n.isReady)return 0;if(t.getRowHeight){const n=ZA.selectors.renderContext(e.state),r=n.lastRowIndex-n.firstRowIndex;return Math.min(r-1,t.rows.length)}const r=Math.floor(n.viewportInnerSize.height/n.rowHeight);return Math.min(r,t.rows.length)}}},selectors:{}};const f$={firstRowIndex:0,lastRowIndex:0},h$={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},m$={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},g$={initialize:function(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:h$,processedRange:f$}}},use:function(e,t,n){return{getHiddenCellsOrigin:()=>m$.hiddenCellsOriginMap(e.state)}},selectors:m$};const b$={resizeThrottleMs:100,columns:[{field:"DEFAULT_COLUMN"}],dimensions:{autoHeight:!1,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topPinnedHeight:0,bottomPinnedHeight:0},virtualization:{isRtl:!1,rowBufferPx:150,columnBufferPx:150}},v$=[VA,ZA,OA,g$,p$],y$=e=>{const t=w$(e,b$),n=ob(()=>new KT(v$.map(e=>e.initialize(t)).reduce((e,t)=>Object.assign(e,t),{}))).current,r={};for(const e of v$)Object.assign(r,e.use(n,t,r));return{store:n,api:r}};function w$(e,t){const n=f({},e);for(const r in t)if(Object.hasOwn(t,r)){const o=t[r];null===o||"object"!=typeof o||Array.isArray(o)?n[r]=e[r]??o:n[r]=w$(e[r]??{},o)}return n}const x$=!("undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent)),S$=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return f({},e,{virtualization:{enabled:!n&&x$,enabledForColumns:!n&&x$,enabledForRows:!n&&!r&&x$,renderContext:XA}})};const C$=XT(e=>e.virtualization);qT(C$,e=>e.enabled);const k$=qT(C$,e=>e.enabledForColumns);qT(C$,e=>e.enabledForRows);const E$=qT(C$,e=>e.renderContext),R$=YT(XT(e=>e.virtualization.renderContext.firstColumnIndex),XT(e=>e.virtualization.renderContext.lastColumnIndex),(e,t)=>({firstColumnIndex:e,lastColumnIndex:t}));function M$(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class P${constructor({ttl:e=3e5,getKey:t=M$}){this.cache={},this.ttl=e,this.getKey=t}set(e,t){const n=this.getKey(e),r=Date.now()+this.ttl;this.cache[n]={value:t,expiry:r}}get(e){const t=this.getKey(e),n=this.cache[t];if(n){if(!(Date.now()>n.expiry))return n.value;delete this.cache[t]}}clear(){this.cache={}}}class T$ extends Error{constructor(e){super(e.message),this.name="GridGetRowsError",this.params=e.params,this.cause=e.cause}}class I$ extends Error{constructor(e){super(e.message),this.name="GridUpdateRowError",this.params=e.params,this.cause=e.cause}}const O$="calc(max(var(--DataGrid-scrollbarSize), 14px))",D$=jh("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":O$}),F$=jh(D$)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-headersTotalHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-headersTotalHeight)",right:0}),L$=jh(D$)({width:"calc(var(--DataGrid-hasScrollX) * (100% - var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:0}),A$=jh(D$)({width:"var(--size)",height:"var(--size)",right:0,bottom:0,overflow:"scroll","@media print":{display:"none"}}),$$=nM(function(e,t){const n=pP(),r=OM(),o=s.useRef(!1),i=s.useRef(0),a=s.useRef(null),l=((e,t)=>{const{classes:n}=e;return zm({root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]},qM,n)})(r,e.position),c=uP(n,ZT),u="vertical"===e.position?"height":"width",d="vertical"===e.position?"scrollTop":"scrollLeft",p="vertical"===e.position?"top":"left",f="horizontal"===e.position?c.minimumSize.width:c.minimumSize.height-c.headersTotalHeight,h=eb(()=>{const t=a.current,n=e.scrollPosition.current;t&&n[p]!==i.current&&(i.current=n[p],o.current?o.current=!1:(o.current=!0,t[d]=e.scrollPosition.current[p]))}),m=eb(()=>{const e=n.current.virtualScrollerRef.current,t=a.current;t&&(o.current?o.current=!1:(o.current=!0,e[d]=t[d]))});ab(()=>{const e=n.current.virtualScrollerRef.current,t=a.current,r={passive:!0};return e.addEventListener("scroll",h,r),t.addEventListener("scroll",m,r),()=>{e.removeEventListener("scroll",h,r),t.removeEventListener("scroll",m,r)}});const g="vertical"===e.position?F$:L$,b=s.useMemo(()=>({[u]:`${f}px`}),[u,f]);return Xp.jsx(g,{ref:tb(t,a),className:l.root,tabIndex:-1,"aria-hidden":"true",onFocus:e=>{e.target.blur()},children:Xp.jsx("div",{className:l.content,style:b})})}),N$=jh("div",{name:"MuiDataGrid",slot:"ScrollShadow",overridesResolver:(e,t)=>[t.root,t[e.position]]})(({theme:e})=>({position:"absolute",inset:0,pointerEvents:"none",transition:GM.transition(["box-shadow"],{duration:GM.transitions.duration.short}),"--length":"dark"===e.palette.mode?"8px":"6px","--length-inverse":"calc(var(--length) * -1)","--opacity":"dark"===e.palette.mode?"0.7":"0.18","--blur":"var(--length)","--spread":"calc(var(--length) * -1)","--color":"0, 0, 0","--color-start":"rgba(var(--color), calc(var(--hasScrollStart) * var(--opacity)))","--color-end":"rgba(var(--color), calc(var(--hasScrollEnd) * var(--opacity)))",variants:[{props:{position:"vertical"},style:{top:"var(--DataGrid-topContainerHeight)",bottom:"calc(var(--DataGrid-bottomContainerHeight) + var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))",boxShadow:"inset 0 var(--length) var(--blur) var(--spread) var(--color-start), inset 0 var(--length-inverse) var(--blur) var(--spread) var(--color-end)"}},{props:{position:"horizontal"},style:{left:"var(--DataGrid-leftPinnedWidth)",right:"calc(var(--DataGrid-rightPinnedWidth) + var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",boxShadow:"inset var(--length) 0 var(--blur) var(--spread) var(--color-start), inset var(--length-inverse) 0 var(--blur) var(--spread) var(--color-end)"}}]}));function z$(e){const{position:t}=e,n={classes:OM().classes,position:t},r=(e=>{const{classes:t,position:n}=e;return zm({root:["scrollShadow",`scrollShadow--${n}`]},qM,t)})(n),o=s.useRef(null),i=pP(),a=uP(i,tI),l=uP(i,nI),c=uP(i,CI),u=uP(i,qO),d="vertical"===t?l&&c?.bottom?.length>0:a&&void 0!==u?.right?.length&&u?.right?.length>0,p=mm(),f=s.useCallback(e=>{if(!o.current)return;const n=Math.abs(Math.round(e)),r=ZT(i),a=Math.round(r.contentSize["vertical"===t?"height":"width"]-r.viewportInnerSize["vertical"===t?"height":"width"]),l="vertical"===t?c?.top?.length>0:void 0!==u?.left?.length&&u?.left?.length>0,s="vertical"===t?c?.bottom?.length>0:void 0!==u?.right?.length&&u?.right?.length>0,d=p?n<a:n>0,f=p?n>0:n<a;o.current.style.setProperty("--hasScrollStart",l&&d?"1":"0"),o.current.style.setProperty("--hasScrollEnd",s&&f?"1":"0")},[c,u,p,t,i]);return KI(i,"scrollPositionChange",e=>{f(e["vertical"===t?"top":"left"])}),KI(i,"columnResizeStop",()=>{"horizontal"===t&&f(i.current.virtualScrollerRef?.current?.scrollLeft||0)}),s.useEffect(()=>{f(("horizontal"===t?i.current.virtualScrollerRef?.current?.scrollLeft:i.current.virtualScrollerRef?.current?.scrollTop)??0)},[f,i,t]),Xp.jsx(N$,{className:r.root,ownerState:n,ref:o,style:{"--hasScrollStart":0,"--hasScrollEnd":d?"1":"0"}})}const j$=jh("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e&&"right"!==e})(({overlayType:e,loadingOverlayVariant:t,right:n})=>"skeleton"!==t?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}:{}),_$=jh("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e})({});function B$(e){const t=AM(),n=OM(),r=uP(t,ZT);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);0===o&&(o=$I);const i=(e=>{const{classes:t}=e;return zm({root:["overlayWrapper"],inner:["overlayWrapperInner"]},qM,t)})(f({},e,{classes:n.classes}));return Xp.jsx(j$,f({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:Xp.jsx(_$,f({className:i.inner,style:{height:o,width:r.viewportOuterSize.width}},e))}))}const H$=(e,t)=>JF(e),V$=(e,t)=>uP(e,JF),W$=qT(DF,E$,JF,GO,(e,t,n,r)=>{if(!e)return!1;const o=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(t=>t.field===e.field);return!(void 0!==o&&-1!==i&&o>=t.firstRowIndex&&o<=t.lastRowIndex)}),U$=YT(W$,GO,JF,DF,(e,t,n,r)=>{if(!e)return null;const o=n.rowIdToIndexMap.get(r.id);if(void 0===o)return null;const i=t.findIndex(e=>e.field===r.field);return-1===i?null:f({},r,{rowIndex:o,columnIndex:i})}),G$={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"\t",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableRowSelectionExcludeModel:!1,disableVirtualization:!1,editMode:wO.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1,tabNavigation:"none"},K$=(e,t,n,r=!0)=>{const o=s.useRef(null),i=s.useRef(`mui-${Math.round(1e9*Math.random())}`),a=s.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);tA(()=>{r&&a()});const l=s.useRef(!0);s.useEffect(()=>(l.current?l.current=!1:r&&a(),()=>{o.current&&(o.current(),o.current=null)}),[a,r])},q$=(e,t,n)=>{const r=s.useRef(null),o=s.useRef(`mui-${Math.round(1e9*Math.random())}`),i=s.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);tA(()=>{i()});const a=s.useRef(!0);s.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Y$=(e,t,n)=>{const r=eI(n),o=dI(n),i=HF(n),a=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return f({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(e,t)=>t*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},X$=qT(GO,QO,(e,t)=>{const n=e.length;return 0===n?0:AA(t[n-1]+e[n-1].computedWidth,1)}),Q$=()=>MT((e,t,n,r,o)=>f({},e,{headerHeight:t,groupHeaderHeight:n,headerFilterHeight:r,headersTotalHeight:o}),{maxSize:1});function Z$(){const e=mm(),t=OM(),n=pP(),{listView:r}=t,o=uP(n,GO),i=uP(n,CI),a=YO(n),l=uP(n,vF),c=s.useCallback(e=>l.has(e)&&n.current.isRowSelectable(e),[l,n]),u=V$(n),d=uP(n,eD),p=uP(n,lI),h=uP(n,rI),{autoHeight:m}=t,g=r,b=uP(n,ZI),v=zI(t.rowHeight,G$.rowHeight),y=Math.floor(v*b),w=Math.floor(t.columnHeaderHeight*b),x=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*b),S=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*b),C=uP(n,X$),k=WL(n,t),E=a.left.reduce((e,t)=>e+t.computedWidth,0),R=a.right.reduce((e,t)=>e+t.computedWidth,0),M=aA(n,t),P={rowHeight:y,headerHeight:w,columnsTotalWidth:C,leftPinnedWidth:E,rightPinnedWidth:R,topPinnedHeight:k,bottomPinnedHeight:0,autoHeight:m,minimalContentHeight:$I,scrollbarSize:t.scrollbarSize},T=ob(Q$).current,I=uP(n,dI),O=uP(n,HF),D=Math.min(O.enabled?O.paginationModel.pageSize:I,I),{getRowHeight:F,getEstimatedRowHeight:L,getRowSpacing:A}=t,$=t.slots.row,N=t.slotProps?.row;uP(n,U$);const z=ob(()=>new d$({container:n.current.mainElementRef,scroller:n.current.virtualScrollerRef,scrollbarVertical:n.current.virtualScrollbarVerticalRef,scrollbarHorizontal:n.current.virtualScrollbarHorizontalRef})).current,j=y$({layout:z,dimensions:P,virtualization:{isRtl:e,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx},colspan:{enabled:d,getColspan:s.useCallback((e,t)=>{if("function"==typeof t.colSpan){const r=n.current.getRow(e),o=n.current.getRowValue(r,t);return t.colSpan(o,r,t,n)??0}return t.colSpan??1},[n])},initialState:{scroll:t.initialState?.scroll,rowSpanning:n.current.state.rowSpanning,virtualization:n.current.state.virtualization},rows:u.rows,range:u.range,rowCount:D,columns:o,pinnedRows:i,pinnedColumns:a,disableHorizontalScroll:r,disableVerticalScroll:"noColumnsOverlay"===M.overlayType||"skeleton"===M.loadingOverlayVariant,getRowHeight:s.useMemo(()=>{if(F)return e=>F(f({},e,{densityFactor:b}))},[F,b]),getEstimatedRowHeight:s.useMemo(()=>L?e=>L(f({},e,{densityFactor:b})):void 0,[L,b]),getRowSpacing:s.useMemo(()=>A?e=>{const t=u.rowIdToIndexMap.get(e.id)??-1,r={isFirstVisible:0===t,isLastVisible:t===u.rows.length-1,indexRelativeToCurrentPage:t};return A(f({},e,r,{indexRelativeToCurrentPage:n.current.getRowIndexRelativeToVisibleRows(e.id)}))}:void 0,[n,A,u.rows,u.rowIdToIndexMap]),applyRowHeight:eb((e,t)=>n.current.unstable_applyPipeProcessors("rowHeight",e,t)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:eb(()=>U$(n)),resizeThrottleMs:t.resizeThrottleMs,onResize:eb(e=>n.current.publishEvent("resize",e)),onWheel:eb(e=>{n.current.publishEvent("virtualScrollerWheel",{},e)}),onTouchMove:eb(e=>{n.current.publishEvent("virtualScrollerTouchMove",{},e)}),onRenderContextChange:eb(e=>{n.current.publishEvent("renderedRowsIntervalChange",e)}),onScrollChange:s.useCallback((e,t)=>{n.current.publishEvent("scrollPositionChange",{top:e.top,left:e.left,renderContext:t})},[n]),scrollReset:g,renderRow:s.useCallback(e=>Xp.jsx($,f({row:e.model,rowId:e.id,index:e.rowIndex,selected:c(e.id),offsetLeft:e.offsetLeft,columnsTotalWidth:C,rowHeight:e.baseRowHeight,pinnedColumns:a,visibleColumns:o,firstColumnIndex:e.firstColumnIndex,lastColumnIndex:e.lastColumnIndex,focusedColumnIndex:e.focusedColumnIndex,isFirstVisible:e.isFirstVisible,isLastVisible:e.isLastVisible,isNotVisible:e.isVirtualFocusRow,showBottomBorder:e.showBottomBorder,scrollbarWidth:p,gridHasFiller:h},N),e.id),[C,h,c,a,$,N,p,o]),renderInfiniteLoadingTrigger:s.useCallback(e=>n.current.getInfiniteLoadingTriggerElement?.({lastRowId:e}),[n])});return tA(()=>{n.current.store.state.dimensions=T(j.store.state.dimensions,w,x,S,k),n.current.store.state.rowsMeta=j.store.state.rowsMeta,n.current.store.state.virtualization=j.store.state.virtualization}),UT(j.store,VA.selectors.dimensions,(e,t)=>{t.isReady&&n.current.setState(e=>f({},e,{dimensions:T(t,w,x,S,k)}))}),UT(j.store,VA.selectors.rowsMeta,(e,t)=>{t!==n.current.state.rowsMeta&&n.current.setState(e=>f({},e,{rowsMeta:t}))}),UT(j.store,ZA.selectors.store,(e,t)=>{t.renderContext!==XA&&t!==n.current.state.virtualization&&n.current.setState(e=>f({},e,{virtualization:t}))}),n.current.register("private",{virtualizer:j}),(e=>{const t=e.current.virtualizer,{getRowHeight:n,setLastMeasuredRowIndex:r,storeRowHeightMeasurement:o,resetRowHeights:i,hydrateRowsMeta:a,observeRowHeight:l,rowHasAutoHeight:s,getRowHeightEntry:c,getLastMeasuredRowIndex:u}=t.api.rowsMeta;q$(e,"rowHeight",a);const d={hydrateRowsMeta:a,observeRowHeight:l,rowHasAutoHeight:s,getRowHeightEntry:c,getLastMeasuredRowIndex:u};ZL(e,{unstable_getRowHeight:n,unstable_setLastMeasuredRowIndex:r,unstable_storeRowHeightMeasurement:o,resetRowHeights:i},"public"),ZL(e,d,"private")})(n),j}const J$=jh("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),eN=e=>e.current.state.dimensions.rightPinnedWidth>0;function tN(e){const t=pP(),n=OM(),r=uP(t,nI),o=uP(t,tI),i=uP(t,eN),a=uP(t,sI),{overlayType:l,loadingOverlayVariant:c}=aA(t,n),u=n.slots?.[l],d={classes:n.classes,hasScrollX:o,hasPinnedRight:i,overlayType:l,loadingOverlayVariant:c},p=(e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o,overlayType:i}=e;return zm({root:["main",r&&"main--hasPinnedRight",("skeleton"===o||"noColumnsOverlay"===i)&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},qM,t)})(d),h=Z$().api.getters,{getContainerProps:m,getScrollerProps:g,getContentProps:b,getPositionerProps:v,getScrollbarVerticalProps:y,getScrollbarHorizontalProps:w,getRows:x,getScrollAreaProps:S}=h,C=x(void 0,mI(t));return Xp.jsxs(dA,f({className:p.root},m(),{ownerState:d,children:[Xp.jsx(XL,f({scrollDirection:"left"},S())),Xp.jsx(XL,f({scrollDirection:"right"},S())),Xp.jsx(XL,f({scrollDirection:"up"},S())),Xp.jsx(XL,f({scrollDirection:"down"},S())),Xp.jsxs(J$,f({className:p.scroller},g(),{ownerState:d,children:[Xp.jsxs(fA,{children:[!n.listView&&Xp.jsx(sA,{}),Xp.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:h})]}),l&&Xp.jsx(B$,{overlayType:l,loadingOverlayVariant:c,children:Xp.jsx(u,f({},n.slotProps?.[l]))}),Xp.jsx(mA,f({},b(),{children:Xp.jsxs(CA,f({role:"rowgroup"},v(),{children:[C,Xp.jsx(n.slots.detailPanels,{virtualScroller:h})]}))})),a&&Xp.jsx(xA,{rowsLength:C.length}),Xp.jsx(n.slots.bottomContainer,{children:Xp.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:h})})]})),o&&Xp.jsxs(s.Fragment,{children:[n.pinnedColumnsSectionSeparator?.endsWith("shadow")&&Xp.jsx(z$,{position:"horizontal"}),Xp.jsx($$,f({position:"horizontal"},w()))]}),r&&Xp.jsxs(s.Fragment,{children:[n.pinnedRowsSectionSeparator?.endsWith("shadow")&&Xp.jsx(z$,{position:"vertical"}),Xp.jsx($$,f({position:"vertical"},y()))]}),o&&r&&Xp.jsx(A$,{"aria-hidden":"true"}),e.children]}))}function nN(){const e=OM();return e.hideFooter?null:Xp.jsx(e.slots.footer,f({},e.slotProps?.footer))}let rN;function oN(){return void 0===rN&&document.createElement("div").focus({get preventScroll(){return rN=!0,!1}}),rN}const iN=(e,t)=>{if(e)if(t){if(e===jD.LEFT)return"right";if(e===jD.RIGHT)return"left"}else{if(e===jD.LEFT)return"left";if(e===jD.RIGHT)return"right"}};function aN(e,t,n,r){const o=iN(n,t);return o&&void 0!==r?(e[o]=r,e):e}const lN=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],sN=["changeReason","unstable_updateValueOnRender"];jD.LEFT,AO.LEFT,jD.RIGHT,AO.RIGHT,jD.NONE,jD.VIRTUAL;const cN=nM(function(e,t){const{column:n,row:r,rowId:o,rowNode:i,align:a,colIndex:l,width:c,className:u,style:p,colSpan:h,disableDragEvents:m,isNotVisible:g,pinnedOffset:b,pinnedPosition:v,showRightBorder:y,showLeftBorder:w,onClick:x,onDoubleClick:S,onMouseDown:C,onMouseUp:k,onMouseOver:E,onKeyDown:R,onKeyUp:M,onDragEnter:P,onDragOver:T}=e,I=d(e,lN),O=pP(),D=OM(),F=mm(),L=n.field,A=uP(O,MA,{rowId:o,field:L}),$=SD().hooks.useCellAggregationResult(o,L),N=A?xO.Edit:xO.View,{value:z,formattedValue:j}=$||{},_=O.current.getCellParamsForRow(o,L,r,{colDef:n,cellMode:N,rowNode:i,tabIndex:uP(O,()=>{const e=$F(O);return e&&e.field===L&&e.id===o?0:-1}),hasFocus:uP(O,()=>{const e=DF(O);return e?.id===o&&e.field===L}),value:z,formattedValue:j});_.api=O.current,uP(O,()=>O.current.isCellEditable(_));const B=uP(O,()=>O.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:L})),H=O.current.virtualizer.store,V=VT(H,g$.selectors.hiddenCells),W=VT(H,g$.selectors.spannedCells),{hasFocus:U,isEditable:G=!1,value:K}=_,q="view"!==N&&G||"actions"===n.type?-1:_.tabIndex,{classes:Y,getCellClassName:X}=D,Q=[uP(O,()=>O.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:L}).filter(Boolean).join(" "))];n.cellClassName&&Q.push("function"==typeof n.cellClassName?n.cellClassName(_):n.cellClassName),"flex"===n.display&&Q.push(YM["cell--flex"]),X&&Q.push(X(_));const Z=_.formattedValue??K,J=s.useRef(null),ee=tb(t,J),te=D.cellSelection??!1,ne=(e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:l,classes:s}=e;return zm({root:["cell",`cell--text${xf(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===jD.LEFT&&"cell--pinnedLeft",o===jD.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]},qM,s)})({align:a,showLeftBorder:w,showRightBorder:y,isEditable:G,classes:D.classes,pinnedPosition:v,isSelected:B,isSelectionMode:te}),re=s.useCallback(e=>t=>{const n=O.current.getCellParams(o,L||"");O.current.publishEvent(e,n,t),k&&k(t)},[O,L,k,o]),oe=s.useCallback(e=>t=>{const n=O.current.getCellParams(o,L||"");O.current.publishEvent(e,n,t),C&&C(t)},[O,L,C,o]),ie=s.useCallback((e,t)=>n=>{if(!O.current.getRow(o))return;const r=O.current.getCellParams(o,L||"");O.current.publishEvent(e,r,n),t&&t(n)},[O,L,o]),ae=V[o]?.[l]??!1,le=W[o]?.[l]??1,se=s.useMemo(()=>{if(g)return{padding:0,opacity:0,width:0,height:0,border:0};const e=aN(f({"--width":`${c}px`},p),F,v,b),t=v===jD.LEFT,n=v===jD.RIGHT;return le>1&&(e.height=`calc(var(--height) * ${le})`,e.zIndex=10,(t||n)&&(e.zIndex=40)),e},[c,g,p,b,v,F,le]);if(Wh(()=>{if(!U||N===xO.Edit)return;const e=Xg(O.current.rootElementRef.current);if(J.current&&!J.current.contains(e.activeElement)){const e=J.current.querySelector('[tabindex="0"]')||J.current;if(oN())e.focus({preventScroll:!0});else{const t=O.current.getScrollPosition();e.focus(),O.current.scroll(t)}}},[U,N,O]),ae)return Xp.jsx("div",{"data-colindex":l,role:"presentation",style:f({width:"var(--width)"},se)});let ce,ue,de=I.onFocus;if(null===A&&n.renderCell&&(ce=n.renderCell(_)),null!==A&&n.renderEditCell){const e=O.current.getRowWithUpdatedValues(o,n.field),t=d(A,sN),r=n.valueFormatter?n.valueFormatter(A.value,e,n,O):_.formattedValue,i=f({},_,{row:e,formattedValue:r},t);ce=n.renderEditCell(i),Q.push(YM["cell--editing"]),Q.push(Y?.["cell--editing"])}if(void 0===ce){const e=Z?.toString();ce=e,ue=e}const pe=m?null:{onDragEnter:ie("cellDragEnter",P),onDragOver:ie("cellDragOver",T)};return Xp.jsx("div",f({className:eM(ne.root,Q,u),role:"gridcell","data-field":L,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":h,"aria-rowspan":le,style:se,title:ue,tabIndex:q,onClick:ie("cellClick",x),onDoubleClick:ie("cellDoubleClick",S),onMouseOver:ie("cellMouseOver",E),onMouseDown:oe("cellMouseDown"),onMouseUp:re("cellMouseUp"),onKeyDown:ie("cellKeyDown",R),onKeyUp:ie("cellKeyUp",M)},pe,I,{onFocus:de,ref:ee,children:ce}))}),uN=jI(cN),dN=["field","type","align","width","height","empty","style","className"],pN="1.3em",fN=[40,80],hN={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},mN=function(e){const t=(n=e,()=>{let e=n+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var n;return(e,n)=>e+(n-e)*t()}(12345);const gN=jI(function(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:l,className:c}=e,u=d(e,dN),p=OM(),h=(e=>{const{align:t,classes:n,empty:r}=e;return zm({root:["cell","cellSkeleton",`cell--text${t?xf(t):"Left"}`,r&&"cellEmpty"]},qM,n)})({classes:p.classes,align:r,empty:a}),m=s.useMemo(()=>{if("boolean"===n||"actions"===n)return{variant:"circular",width:pN,height:pN};const[e,t]=n?hN[n]??fN:fN;return{variant:"text",width:`${Math.round(mN(e,t))}%`,height:"1.2em"}},[n]);return Xp.jsx("div",f({"data-field":t,className:eM(h.root,c),style:f({height:i,maxWidth:o,minWidth:o},l)},u,{children:!a&&Xp.jsx(p.slots.baseSkeleton,f({},m))}))}),bN=()=>()=>{},vN=()=>!1,yN=()=>!0,wN=s.createContext(void 0);function xN(){const e=s.useContext(wN);if(void 0===e)throw new Error("MUI X: Missing context.");return e}function SN({children:e}){const t=s.useRef(null),n=s.useRef(null),r=s.useRef(null),o=s.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return Xp.jsx(wN.Provider,{value:o,children:e})}function CN(){const e=AM(),t=uP(e,VO),n=OM(),r=uP(e,PA),{columnsPanelTriggerRef:o,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=xN(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??IA.filters);let s=null;switch(r.openedPanelValue){case IA.filters:s=i.current;break;case IA.columns:s=o.current;break;case IA.aiAssistant:s=a.current}return Xp.jsx(n.slots.panel,f({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:s,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:l}))}function kN(){const e=OM();return Xp.jsxs(s.Fragment,{children:[Xp.jsx(CN,{}),e.showToolbar&&Xp.jsx(e.slots.toolbar,f({},e.slotProps?.toolbar))]})}const EN=["className","children","sidePanel"],RN=nM(function(e,t){const n=OM(),{className:r,children:o,sidePanel:i}=e,a=d(e,EN),l=pP(),c=uP(l,QI),u=l.current.rootElementRef,p=s.useCallback(e=>{null!==e&&l.current.publishEvent("rootMount",e)},[l]),h=tb(u,t,p),m=n,g=((e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e;return zm({root:["root",n&&"autoHeight",`root--density${xf(t)}`,null===e.slots.toolbar&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]},qM,r)})(m,c),b=s.useContext(CD);return rP.useSyncExternalStore(bN,vN,yN)?null:Xp.jsxs(mP,f({className:eM(g.root,r,b.className,i&&YM.withSidePanel),ownerState:m},a,{ref:h,children:[Xp.jsxs("div",{className:YM.mainContent,role:"presentation",children:[Xp.jsx(kN,{}),Xp.jsx(tN,{children:o}),Xp.jsx(nN,{})]}),i,b.tag]}))}),MN=jI(RN),PN=["className"],TN=jh("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),IN=nM(function(e,t){const{className:n}=e,r=d(e,PN),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["footerContainer","withBorderColor"]},qM,t)})(o);return Xp.jsx(TN,f({className:eM(i.root,n),ownerState:o},r,{ref:t}))}),ON=["className"],DN=jh("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:GM.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:GM.colors.background.backdrop}),FN=nM(function(e,t){const{className:n}=e,r=d(e,ON),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["overlay"]},qM,t)})(o);return Xp.jsx(DN,f({className:eM(i.root,n),ownerState:o},r,{ref:t}))});function LN(e,t,n,r={}){return"function"==typeof t?t(n,r):t?(t.props.className&&(n.className=function(e,t){if(!e||!t)return e||t;return`${e} ${t}`}(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=f({},n.style,t.props.style)),s.cloneElement(t,n)):s.createElement(e,n)}const AN=s.createContext(void 0);function $N(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const NN=["render","className"],zN=jh("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:"0 1 1px",display:"flex",alignItems:"center",justifyContent:"end",gap:GM.spacing(.25),padding:GM.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${GM.colors.border.base}`}),jN=nM(function(e,t){const{render:n,className:r}=e,o=d(e,NN),i=OM(),a=(e=>{const{classes:t}=e;return zm({root:["toolbar"]},qM,t)})(i),[l,c]=s.useState(null),[u,p]=s.useState([]),h=s.useCallback(()=>u.sort($N),[u]),m=s.useCallback((e,t,n=!0)=>{let r=e;const o=h(),i=o.length;for(let e=0;e<i;e+=1){if(r+=t,r>=i){if(!n)return-1;r=0}else if(r<0){if(!n)return-1;r=i-1}if(!o[r].ref.current?.disabled&&"true"!==o[r].ref.current?.ariaDisabled)return r}return-1},[h]),g=s.useCallback((e,t)=>{p(n=>[...n,{id:e,ref:t}])},[]),b=s.useCallback(e=>{p(t=>t.filter(t=>t.id!==e))},[]),v=s.useCallback(e=>{if(!l)return;const t=h(),n=t.findIndex(e=>e.id===l);let r=-1;if("ArrowRight"===e.key?(e.preventDefault(),r=m(n,1)):"ArrowLeft"===e.key?(e.preventDefault(),r=m(n,-1)):"Home"===e.key?(e.preventDefault(),r=m(-1,1,!1)):"End"===e.key&&(e.preventDefault(),r=m(t.length,-1,!1)),r>=0&&r<t.length){const e=t[r];c(e.id),e.ref.current?.focus()}},[h,l,m]),y=s.useCallback(e=>{l!==e&&c(e)},[l,c]),w=s.useCallback(e=>{const t=h(),n=t.findIndex(t=>t.id===e),r=m(n,1);if(r>=0&&r<t.length){const e=t[r];c(e.id),e.ref.current?.focus()}},[h,m]);s.useEffect(()=>{const e=h();if(e.length>0){if(!l)return void c(e[0].id);const t=e.findIndex(e=>e.id===l);if(e[t]){if(-1===t){const n=e[t];n&&(c(n.id),n.ref.current?.focus())}}else{const t=e[e.length-1];t&&(c(t.id),t.ref.current?.focus())}}},[h,m]);const x=s.useMemo(()=>({focusableItemId:l,registerItem:g,unregisterItem:b,onItemKeyDown:v,onItemFocus:y,onItemDisabled:w}),[l,g,b,v,y,w]),S=LN(zN,n,f({role:"toolbar","aria-orientation":"horizontal","aria-label":i.label||void 0,className:eM(a.root,r)},o,{ref:t}));return Xp.jsx(AN.Provider,{value:x,children:S})}),_N=["render","onKeyDown","onFocus","disabled","aria-disabled"],BN=nM(function(e,t){const{render:n,onKeyDown:r,onFocus:o,disabled:i,"aria-disabled":a}=e,l=d(e,_N),c=xm(),u=OM(),p=s.useRef(null),h=tb(p,t),{focusableItemId:m,registerItem:g,unregisterItem:b,onItemKeyDown:v,onItemFocus:y,onItemDisabled:w}=function(){const e=s.useContext(AN);if(void 0===e)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}();s.useEffect(()=>(g(c,p),()=>b(c)),[]);const x=s.useRef(i);s.useEffect(()=>{x.current!==i&&!0===i&&w(c,i),x.current=i},[i,c,w]);const S=s.useRef(a);s.useEffect(()=>{S.current!==a&&!0===a&&w(c,!0),S.current=a},[a,c,w]);const C=LN(u.slots.baseIconButton,n,f({},u.slotProps?.baseIconButton,{tabIndex:m===c?0:-1},l,{disabled:i,"aria-disabled":a,onKeyDown:e=>{v(e),r?.(e)},onFocus:e=>{y(c),o?.(e)},ref:h}));return Xp.jsx(s.Fragment,{children:C})}),HN=s.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=AM(),l=OM(),c=(e=>{const{classes:t,open:n}=e;return zm({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},qM,t)})(f({},e,{classes:l.classes})),u=s.useCallback(e=>{e.preventDefault(),e.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),d=t.headerName??t.field;return Xp.jsx("div",{className:c.root,children:Xp.jsx(l.slots.baseTooltip,f({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,{children:Xp.jsx(l.slots.baseIconButton,f({ref:i,tabIndex:-1,className:c.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(d),size:"small",onClick:u,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},l.slotProps?.baseIconButton,{children:Xp.jsx(l.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function VN({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:l}){const s=AM(),c=s.current.getColumn(o),u=eb(e=>{e&&(e.stopPropagation(),a?.contains(e.target))||s.current.hideColumnMenu()});return a&&c?Xp.jsx(PD,{position:"bottom-"+("right"===c.align?"start":"end"),open:i,target:a,onClose:u,onExited:l,children:Xp.jsx(n,f({colDef:c,hideMenu:u,open:i,id:e,labelledby:t},r))}):null}function WN(e,t){return e.closest(`.${t}`)}function UN(e){return e.replace(/["\\]/g,"\\$&")}function GN(e){return`.${YM.row}[data-id="${UN(String(e))}"]`}function KN(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function qN(e,t){return e.rootElementRef.current.querySelector(`.${YM[t]}`)}const YN=({api:e,colIndex:t,position:n,filterFn:r})=>{if(null===t)return[];const o=[];return QN(e).forEach(e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${YM["left"===n?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(e=>{const t=ZN(e);null!==t&&r(t)&&o.push(e)})}),o};const XN=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(null===t)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${YM["left"===n?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(e=>{const t=ZN(e);null!==t&&r(t,e)&&o.push(e)}),o};function QN(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${YM.row}`)}function ZN(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const JN=["className","aria-label"],ez=jh("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),tz=nM(function(e,t){const{className:n}=e,r=d(e,JN),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["columnHeaderTitle"]},qM,t)})(o);return Xp.jsx(ez,f({className:eM(i.root,n),ownerState:o},r,{ref:t}))});function nz(e){const{label:t,description:n}=e,r=OM(),o=s.useRef(null),[i,a]=s.useState(""),l=s.useCallback(()=>{if(!n&&o?.current){const n=(e=o.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;a(n?t:"")}var e},[n,t]);return Xp.jsx(r.slots.baseTooltip,f({title:n||i},r.slotProps?.baseTooltip,{children:Xp.jsx(tz,{onMouseOver:l,ref:o,children:t})}))}const rz=["resizable","resizing","height","side"];var oz=function(e){return e.Left="left",e.Right="right",e}(oz||{});function iz(e){const{height:t,side:n=oz.Right}=e,r=d(e,rz),o=OM(),i=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e;return zm({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${xf(o)}`],icon:["iconSeparator"]},qM,r)})(f({},e,{side:n,classes:o.classes})),a=s.useCallback(e=>{e.preventDefault(),e.stopPropagation()},[]);return Xp.jsx("div",f({className:i.root,style:{minHeight:t}},r,{onClick:a,children:Xp.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const az=s.memo(iz),lz=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],sz=nM(function(e,t){const{classes:n,colIndex:r,height:o,isResizing:i,sortDirection:a,tabIndex:l,separatorSide:c,isDraggable:u,headerComponent:p,description:h,width:m,columnMenuIconButton:g=null,columnMenu:b=null,columnTitleIconButtons:v=null,headerClassName:y,label:w,resizable:x,draggableContainerProps:S,columnHeaderSeparatorProps:C,style:k}=e,E=d(e,lz),R=OM(),M=tb(s.useRef(null),t);let P="none";return null!=a&&(P="asc"===a?"ascending":"descending"),Xp.jsxs("div",f({className:eM(n.root,y),style:f({},k,{width:m}),role:"columnheader",tabIndex:l,"aria-colindex":r+1,"aria-sort":P},E,{ref:M,children:[Xp.jsxs("div",f({className:n.draggableContainer,draggable:u,role:"presentation"},S,{children:[Xp.jsxs("div",{className:n.titleContainer,role:"presentation",children:[Xp.jsx("div",{className:n.titleContainerContent,children:void 0!==p?p:Xp.jsx(nz,{label:w,description:h,columnWidth:m})}),v]}),g]})),Xp.jsx(az,f({resizable:!R.disableColumnResize&&!!x,resizing:i,height:o,side:c},C)),b]}))});const cz=jI(function(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:l,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:p,disableReorder:h,separatorSide:m,showLeftBorder:g,showRightBorder:b,pinnedPosition:v,pinnedOffset:y}=e,w=pP(),x=OM(),S=mm(),C=s.useRef(null),k=xm(),E=xm(),R=s.useRef(null),[M,P]=s.useState(n),T=!x.disableColumnReorder&&!h&&!t.disableReorder;let I;t.renderHeader&&(I=t.renderHeader(w.current.getColumnHeaderParams(t.field)));const O=(e=>{const{disableColumnSorting:t}=OM(),{colDef:n,classes:r,isDragging:o,sortDirection:i,showRightBorder:a,showLeftBorder:l,filterItemsCounter:s,pinnedPosition:c,isSiblingFocused:u}=e,d=n.sortable&&!t,p=null!=i,f=null!=s&&s>0,h="number"===n.type;return zm({root:["columnHeader","left"===n.headerAlign&&"columnHeader--alignLeft","center"===n.headerAlign&&"columnHeader--alignCenter","right"===n.headerAlign&&"columnHeader--alignRight",d&&"columnHeader--sortable",o&&"columnHeader--moving",p&&"columnHeader--sorted",f&&"columnHeader--filtered",h&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c===jD.LEFT&&"columnHeader--pinnedLeft",c===jD.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},qM,r)})(f({},e,{classes:x.classes,showRightBorder:b,showLeftBorder:g})),D=s.useCallback(e=>n=>{KN(n)||w.current.publishEvent(e,w.current.getColumnHeaderParams(t.field),n)},[w,t.field]),F=s.useMemo(()=>({onClick:D("columnHeaderClick"),onContextMenu:D("columnHeaderContextMenu"),onDoubleClick:D("columnHeaderDoubleClick"),onMouseOver:D("columnHeaderOver"),onMouseOut:D("columnHeaderOut"),onMouseEnter:D("columnHeaderEnter"),onMouseLeave:D("columnHeaderLeave"),onKeyDown:D("columnHeaderKeyDown"),onFocus:D("columnHeaderFocus"),onBlur:D("columnHeaderBlur")}),[D]),L=s.useMemo(()=>T?{onDragStart:D("columnHeaderDragStart"),onDragEnter:D("columnHeaderDragEnter"),onDragOver:D("columnHeaderDragOver"),onDragEndCapture:D("columnHeaderDragEnd")}:{},[T,D]),A=s.useMemo(()=>({onMouseDown:D("columnSeparatorMouseDown"),onDoubleClick:D("columnSeparatorDoubleClick")}),[D]);s.useEffect(()=>{!M&&n&&P(n)},[M,n]);const $=s.useCallback(()=>{P(!1)},[]),N=!x.disableColumnMenu&&!t.disableColumnMenu&&Xp.jsx(HN,{colDef:t,columnMenuId:k,columnMenuButtonId:E,open:M,iconButtonRef:R}),z=Xp.jsx(VN,{columnMenuId:k,columnMenuButtonId:E,field:t.field,open:n,target:R.current,ContentComponent:x.slots.columnMenu,contentComponentProps:x.slotProps?.columnMenu,onExited:$}),j=t.sortingOrder??x.sortingOrder,_=(t.sortable||null!=l)&&!t.hideSortIcons&&!x.disableColumnSorting,B=Xp.jsxs(s.Fragment,{children:[!x.disableColumnFilter&&Xp.jsx(x.slots.columnHeaderFilterIconButton,f({field:t.field,counter:u},x.slotProps?.columnHeaderFilterIconButton)),_&&Xp.jsx(x.slots.columnHeaderSortIcon,f({field:t.field,direction:l,index:c,sortingOrder:j,disabled:!t.sortable},x.slotProps?.columnHeaderSortIcon))]});s.useLayoutEffect(()=>{const e=w.current.state.columnMenu;if(d&&!e.open){const e=C.current.querySelector('[tabindex="0"]')||C.current;if(!e)return;if(oN())e.focus({preventScroll:!0});else{const t=w.current.getScrollPosition();e.focus(),w.current.scroll(t)}}},[w,d]);const H="function"==typeof t.headerClassName?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,V=t.headerName??t.field,W=s.useMemo(()=>aN(f({},e.style),S,v,y),[v,y,e.style,S]);return Xp.jsx(sz,f({ref:C,classes:O,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:l,hasFocus:d,tabIndex:p,separatorSide:m,isDraggable:T,headerComponent:I,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:B,headerClassName:eM(H,a&&YM["columnHeader--last"]),label:V,resizable:!x.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:z,draggableContainerProps:L,columnHeaderSeparatorProps:A,style:W},F))}),uz=["className"],dz=jh("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),pz=nM(function(e,t){const{className:n}=e,r=d(e,uz),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["iconButtonContainer"]},qM,t)})(o);return Xp.jsx(dz,f({className:eM(i.root,n),ownerState:o},r,{ref:t}))}),fz=["direction","index","sortingOrder","disabled","className"],hz=jh(JI,{name:"MuiDataGrid",slot:"SortButton"})({transition:GM.transition(["opacity"],{duration:GM.transitions.duration.short,easing:GM.transitions.easing.easeInOut})});function mz(e){const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,a=d(e,fz),l=AM(),s=OM(),c=f({},e,{classes:s.classes}),u=(e=>{const{classes:t}=e;return zm({root:["sortButton"],icon:["sortIcon"]},qM,t)})(c),p=function(e,t,n,r){let o;const i={};return"asc"===t?o=e.columnSortedAscendingIcon:"desc"===t?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?Xp.jsx(o,f({fontSize:"small",className:n},i)):null}(s.slots,t,u.icon,r);if(!p)return null;const h=Xp.jsx(hz,f({as:s.slots.baseIconButton,ownerState:c,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:eM(u.root,i)},s.slotProps?.baseIconButton,a,{children:p}));return Xp.jsx(s.slots.baseTooltip,f({title:l.current.getLocaleText("columnHeaderSortIconLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:Xp.jsxs("span",{children:[null!=n&&Xp.jsx(s.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:h}),null==n&&h]})}))}function gz(e){return Xp.jsx(pz,{children:Xp.jsx(mz,f({},e,{tabIndex:-1}))})}const bz=s.memo(gz);function vz(e){const{counter:t,field:n,onClick:r}=e,o=AM(),i=OM(),a=(e=>{const{classes:t}=e;return zm({icon:["filterIcon"]},qM,t)})(f({},e,{classes:i.classes})),l=xm(),c=uP(o,TA,l),u=xm(),d=s.useCallback(e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:i}=PA(o);t&&i===IA.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,u,l),r&&r(o.current.getColumnHeaderParams(n),e)},[o,n,r,u,l]);if(!t)return null;const p=Xp.jsx(i.slots.baseIconButton,f({id:l,onClick:d,"aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?u:void 0},i.slotProps?.baseIconButton,{children:Xp.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return Xp.jsx(i.slots.baseTooltip,f({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},i.slotProps?.baseTooltip,{children:Xp.jsxs(pz,{children:[t>1&&Xp.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:p}),1===t&&p]})}))}const yz=["hideMenu","colDef","id","labelledby","className","children","open"],wz=Ig(JI)(()=>({minWidth:248}));function xz(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const Sz=nM(function(e,t){const{hideMenu:n,id:r,labelledby:o,className:i,children:a,open:l}=e,c=d(e,yz),u=OM(),p=s.useCallback(e=>{"Tab"===e.key&&e.preventDefault(),yD(e.key)&&n(e)},[n]);return Xp.jsx(wz,f({as:u.slots.baseMenuList,id:r,className:eM(YM.menuList,i),"aria-labelledby":o,onKeyDown:p,onWheel:xz,onTouchMove:xz,autoFocus:l},c,{ref:t,children:a}))}),Cz=["displayOrder"];function kz(e){const{colDef:t,onClick:n}=e,r=AM(),o=OM(),i=1===GO(r).filter(e=>!0!==e.disableColumnMenu).length,a=s.useCallback(e=>{i||(r.current.setColumnVisibility(t.field,!1),n(e))},[r,t.field,n,i]);return o.disableColumnSelector||!1===t.hideable?null:Xp.jsx(o.slots.baseMenuItem,{onClick:a,disabled:i,iconStart:Xp.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function Ez(e){const{onClick:t}=e,n=AM(),r=OM(),o=s.useCallback(e=>{t(e),n.current.showPreferences(IA.columns)},[n,t]);return r.disableColumnSelector?null:Xp.jsx(r.slots.baseMenuItem,{onClick:o,iconStart:Xp.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}const Rz=["defaultSlots","defaultSlotProps","slots","slotProps"],Mz={columnMenuSortItem:function(e){const{colDef:t,onClick:n}=e,r=AM(),o=uP(r,JD),i=OM(),a=s.useMemo(()=>{if(!t)return null;const e=o.find(e=>e.field===t.field);return e?.sort},[t,o]),l=t.sortingOrder??i.sortingOrder,c=s.useCallback(e=>{n(e);const o=e.currentTarget.getAttribute("data-value")||null,l="always"===i.multipleColumnsSortingMode;r.current.sortColumn(t.field,o===a?null:o,l)},[r,t,n,a,i.multipleColumnsSortingMode]);if(i.disableColumnSorting||!t||!t.sortable||!l.some(e=>!!e))return null;const u=e=>{const n=r.current.getLocaleText(e);return"function"==typeof n?n(t):n};return Xp.jsxs(s.Fragment,{children:[l.includes("asc")&&"asc"!==a?Xp.jsx(i.slots.baseMenuItem,{onClick:c,"data-value":"asc",iconStart:Xp.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:u("columnMenuSortAsc")}):null,l.includes("desc")&&"desc"!==a?Xp.jsx(i.slots.baseMenuItem,{onClick:c,"data-value":"desc",iconStart:Xp.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:u("columnMenuSortDesc")}):null,l.includes(null)&&null!=a?Xp.jsx(i.slots.baseMenuItem,{onClick:c,iconStart:i.slots.columnMenuUnsortIcon?Xp.jsx(i.slots.columnMenuUnsortIcon,{fontSize:"small"}):Xp.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})},columnMenuFilterItem:function(e){const{colDef:t,onClick:n}=e,r=AM(),o=OM(),i=s.useCallback(e=>{n(e),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:Xp.jsx(o.slots.baseMenuItem,{onClick:i,iconStart:Xp.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})},columnMenuColumnsItem:function(e){return Xp.jsxs(s.Fragment,{children:[Xp.jsx(kz,f({},e)),Xp.jsx(Ez,f({},e))]})}},Pz={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Tz=nM(function(e,t){const{defaultSlots:n,defaultSlotProps:r,slots:o,slotProps:i}=e,a=d(e,Rz),l=(e=>{const t=pP(),n=OM(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:l,colDef:c,addDividers:u=!0}=e,p=s.useMemo(()=>f({},r,i),[r,i]),h=s.useMemo(()=>{if(!a||0===Object.keys(a).length)return o;const e=f({},a);return Object.entries(o).forEach(([t,n])=>{e[t]=f({},n,a[t]||{})}),e},[o,a]),m=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=s.useMemo(()=>{const e=Object.keys(r);return Object.keys(i).filter(t=>!e.includes(t))},[i,r]);return s.useMemo(()=>{const e=Array.from(new Set([...m,...g])).filter(e=>null!=p[e]),t=e.sort((e,t)=>{const n=h[e],r=h[t];return(Number.isFinite(n?.displayOrder)?n.displayOrder:100)-(Number.isFinite(r?.displayOrder)?r.displayOrder:100)});return t.reduce((e,r,o)=>{let i={colDef:c,onClick:l};const a=h[r];return a&&(i=f({},i,d(a,Cz))),u&&o!==t.length-1?[...e,[p[r],i],[n.slots.baseDivider,{}]]:[...e,[p[r],i]]},[])},[u,c,m,l,p,h,g,n.slots.baseDivider])})(f({},a,{defaultSlots:n,defaultSlotProps:r,slots:o,slotProps:i}));return Xp.jsx(Sz,f({},a,{ref:t,children:l.map(([e,t],n)=>Xp.jsx(e,f({},t),n))}))}),Iz=nM(function(e,t){return Xp.jsx(Tz,f({},e,{ref:t,defaultSlots:Mz,defaultSlotProps:Pz}))}),Oz=["className"],Dz=Ig("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Fz=nM(function(e,t){const{className:n}=e,r=d(e,Oz),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["panelWrapper"]},qM,t)})(o);return Xp.jsx(Dz,f({tabIndex:-1,className:eM(i.root,n),ownerState:o},r,{ref:t}))});const Lz=["children","className","classes","onClose"],Az=Ph("MuiDataGrid",["panel","paper"]),$z=Ig(JI,{name:"MuiDataGrid",slot:"panel"})({zIndex:GM.zIndex.panel}),Nz=Ig("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:GM.colors.background.overlay,borderRadius:GM.radius.base,boxShadow:GM.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${GM.spacing(2)})`,overflow:"auto"}),zz=nM((e,t)=>{const{children:n,className:r,onClose:o}=e,i=d(e,Lz),a=AM(),l=OM(),c=Az,[u,p]=s.useState(!1),h=kD(),m=eb(()=>p(!0)),g=eb(()=>p(!1)),b=eb(()=>{o?.()}),v=eb(e=>{"Escape"===e.key&&o?.()}),[y,w]=s.useState(null);return s.useEffect(()=>{const e=a.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&w(e)},[a]),y?Xp.jsx($z,f({as:l.slots.basePopper,ownerState:l,placement:"bottom-end",className:eM(c.panel,r,h),flip:!0,onDidShow:m,onDidHide:g,onClickAway:b,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,l.slotProps?.basePopper,{target:e.target??y,ref:t,children:Xp.jsx(Nz,{className:c.paper,ownerState:l,onKeyDown:v,children:u&&n})})):null}),jz=["className"],_z=jh("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:GM.spacing(2.5,1.5,2,1),gap:GM.spacing(2.5)});function Bz(e){const{className:t}=e,n=d(e,jz),r=OM(),o=(e=>{const{classes:t}=e;return zm({root:["panelContent"]},qM,t)})(r);return Xp.jsx(_z,f({className:eM(o.root,t),ownerState:r},n))}const Hz=["className"],Vz=Ig("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:GM.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${GM.colors.border.base}`});function Wz(e){const{className:t}=e,n=d(e,Hz),r=OM(),o=(e=>{const{classes:t}=e;return zm({root:["panelFooter"]},qM,t)})(r);return Xp.jsx(Vz,f({className:eM(o.root,t),ownerState:r},n))}const Uz=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Gz=["InputComponentProps"],Kz=Ig("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:GM.spacing(1.5)}),qz=Ig("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),Yz=Ig("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),Xz=Ig("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),Qz=Ig("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),Zz=Ig("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),Jz=e=>e.headerName||e.field,ej=new Intl.Collator,tj=nM(function(e,t){const{item:n,hasMultipleFilters:r,deleteFilter:o,applyFilterChanges:i,showMultiFilterOperators:a,disableMultiFilterOperator:l,applyMultiFilterOperatorChanges:c,focusElementRef:u,logicOperators:p=[CO.And,CO.Or],columnsSort:h,filterColumns:m,deleteIconProps:g={},logicOperatorInputProps:b={},operatorInputProps:v={},columnInputProps:y={},valueInputProps:w={},readOnly:x}=e,S=d(e,Uz),C=AM(),k=uP(C,HO),E=uP(C,ZO),R=uP(C,nF),M=xm(),P=xm(),T=xm(),I=xm(),O=OM(),D=(e=>{const{classes:t}=e;return zm({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},qM,t)})(O),F=s.useRef(null),L=s.useRef(null),A=R.logicOperator??CO.And,$=r&&p.length>0,N=(O.slotProps?.baseSelect||{}).native??!1,z=O.slotProps?.baseSelectOption||{},{InputComponentProps:j}=w,_=d(w,Gz),B=uP(C,rA),H=uP(C,iA),{filteredColumns:V,selectedField:W}=s.useMemo(()=>{let e=n.field;const t=!1===k[n.field].filterable?k[n.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(B)return{filteredColumns:E.filter(e=>void 0!==H.get(e.field)),selectedField:e};if(void 0===m||"function"!=typeof m)return{filteredColumns:E,selectedField:e};const r=m({field:n.field,columns:E,currentFilters:R?.items||[]});return{filteredColumns:E.filter(t=>{const o=r.includes(t.field);return t.field!==n.field||o||(e=void 0),o}),selectedField:e}},[n.field,k,B,m,E,R?.items,H]),U=s.useMemo(()=>{switch(h){case"asc":return V.sort((e,t)=>ej.compare(Jz(e),Jz(t)));case"desc":return V.sort((e,t)=>-ej.compare(Jz(e),Jz(t)));default:return V}},[V,h]),G=n.field?C.current.getColumn(n.field):null,K=s.useMemo(()=>n.operator&&G?G.filterOperators?.find(e=>e.value===n.operator):null,[n,G]),q=s.useCallback(e=>{const t=e.target.value,r=C.current.getColumn(t);if(r.field===G.field)return;const o=r.filterOperators.find(e=>e.value===n.operator)||r.filterOperators[0];let a=!o.InputComponent||o.InputComponent!==K?.InputComponent||r.type!==G.type?void 0:n.value;if("singleSelect"===r.type&&void 0!==a){const e=r,t=yL(e);Array.isArray(a)?a=a.filter(n=>void 0!==wL(n,t,e?.getOptionValue)):void 0===wL(n.value,t,e?.getOptionValue)&&(a=void 0)}i(f({},n,{field:t,operator:o.value,value:a}))},[C,i,n,G,K]),Y=s.useCallback(e=>{const t=e.target.value,r=G?.filterOperators.find(e=>e.value===t);i(f({},n,{operator:t,value:!r?.InputComponent||r?.InputComponent!==K?.InputComponent?void 0:n.value}))},[i,n,G,K]),X=s.useCallback(e=>{const t=e.target.value===CO.And.toString()?CO.And:CO.Or;c(t)},[c]);return s.useImperativeHandle(u,()=>({focus:()=>{K?.InputComponent?F?.current?.focus():L.current.focus()}}),[K]),Xp.jsxs(Kz,f({className:D.root,"data-id":n.id,ownerState:O},S,{ref:t,children:[Xp.jsx(qz,f({},g,{className:eM(D.deleteIcon,g.className),ownerState:O,children:Xp.jsx(O.slots.baseIconButton,f({"aria-label":C.current.getLocaleText("filterPanelDeleteIconLabel"),title:C.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{o(n)},size:"small",disabled:x},O.slotProps?.baseIconButton,{children:Xp.jsx(O.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),Xp.jsx(Yz,f({as:O.slots.baseSelect,sx:[$?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},b.sx],className:eM(D.logicOperatorInput,b.className),ownerState:O},b,{size:"small",slotProps:{htmlInput:{"aria-label":C.current.getLocaleText("filterPanelLogicOperator")}},value:A??"",onChange:X,disabled:!!l||1===p.length,native:N},O.slotProps?.baseSelect,{children:p.map(e=>s.createElement(O.slots.baseSelectOption,f({},z,{native:N,key:e.toString(),value:e.toString()}),C.current.getLocaleText((e=>{switch(e){case CO.And:return"filterPanelOperatorAnd";case CO.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e))))})),Xp.jsx(Xz,f({as:O.slots.baseSelect},y,{className:eM(D.columnInput,y.className),ownerState:O,size:"small",labelId:P,id:M,label:C.current.getLocaleText("filterPanelColumns"),value:W??"",onChange:q,native:N,disabled:x},O.slotProps?.baseSelect,{children:U.map(e=>s.createElement(O.slots.baseSelectOption,f({},z,{native:N,key:e.field,value:e.field}),Jz(e)))})),Xp.jsx(Qz,f({as:O.slots.baseSelect,size:"small"},v,{className:eM(D.operatorInput,v.className),ownerState:O,labelId:I,label:C.current.getLocaleText("filterPanelOperator"),id:T,value:n.operator,onChange:Y,native:N,inputRef:L,disabled:x},O.slotProps?.baseSelect,{children:G?.filterOperators?.map(e=>s.createElement(O.slots.baseSelectOption,f({},z,{native:N,key:e.value,value:e.value}),e.label||C.current.getLocaleText(`filterOperator${xf(e.value)}`)))})),Xp.jsx(Zz,f({},_,{className:eM(D.valueInput,_.className),ownerState:O,children:K?.InputComponent?Xp.jsx(K.InputComponent,f({apiRef:C,item:n,applyValue:i,focusElementRef:F,disabled:x,slotProps:{root:{size:"small"}}},K.InputComponentProps,j),n.field):null}))]}))}),nj=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],rj=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),oj=nM(function(e,t){const n=AM(),r=OM(),o=uP(n,nF),i=uP(n,ZO),a=uP(n,JO),l=s.useRef(null),c=s.useRef(null),{logicOperators:u=[CO.And,CO.Or],columnsSort:p,filterFormProps:h,getColumnForNewFilter:m,disableAddFilterButton:g=!1,disableRemoveAllButton:b=!1}=e,v=d(e,nj),y=n.current.upsertFilterItem,w=s.useCallback(e=>{n.current.setFilterLogicOperator(e)},[n]),x=s.useCallback(()=>{let e;if(m&&"function"==typeof m){const t=m({currentFilters:o?.items||[],columns:i});if(null===t)return null;e=i.find(({field:e})=>e===t)}else e=i.find(e=>e.filterOperators?.length);return e?rj(e):null},[o?.items,i,m]),S=s.useCallback(()=>{if(void 0===m||"function"!=typeof m)return x();const e=o.items.length?o.items:[x()].filter(Boolean),t=m({currentFilters:e,columns:i});if(null===t)return null;const n=i.find(({field:e})=>e===t);return n?rj(n):null},[o.items,i,m,x]),C=s.useMemo(()=>o.items.length?o.items:(c.current||(c.current=x()),c.current?[c.current]:[]),[o.items,x]),k=C.length>1,{readOnlyFilters:E,validFilters:R}=s.useMemo(()=>C.reduce((e,t)=>(a[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e),{readOnlyFilters:[],validFilters:[]}),[C,a]),M=s.useCallback(()=>{const e=S();e&&n.current.upsertFilterItems([...C,e])},[n,S,C]),P=s.useCallback(e=>{const t=1===R.length;n.current.deleteFilterItem(e),t&&n.current.hideFilterPanel()},[n,R.length]),T=s.useCallback(()=>1===R.length&&void 0===R[0].value?(n.current.deleteFilterItem(R[0]),n.current.hideFilterPanel()):n.current.setFilterModel(f({},o,{items:E}),"removeAllFilterItems"),[n,E,o,R]);return s.useEffect(()=>{u.length>0&&o.logicOperator&&!u.includes(o.logicOperator)&&w(u[0])},[u,w,o.logicOperator]),s.useEffect(()=>{R.length>0&&l.current.focus()},[R.length]),Xp.jsxs(Fz,f({},v,{ref:t,children:[Xp.jsxs(Bz,{children:[E.map((e,t)=>Xp.jsx(tj,f({item:e,applyFilterChanges:y,deleteFilter:P,hasMultipleFilters:k,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:u,columnsSort:p},h),null==e.id?t:e.id)),R.map((e,t)=>Xp.jsx(tj,f({item:e,applyFilterChanges:y,deleteFilter:P,hasMultipleFilters:k,showMultiFilterOperators:E.length+t>0,disableMultiFilterOperator:E.length+t!==1,applyMultiFilterOperatorChanges:w,focusElementRef:t===R.length-1?l:null,logicOperators:u,columnsSort:p},h),null==e.id?t+E.length:e.id))]}),r.disableMultipleColumnsFiltering||g&&b?null:Xp.jsxs(Wz,{children:[g?Xp.jsx("span",{}):Xp.jsx(r.slots.baseButton,f({onClick:M,startIcon:Xp.jsx(r.slots.filterPanelAddIcon,{})},r.slotProps?.baseButton,{children:n.current.getLocaleText("filterPanelAddFilter")})),!b&&R.length>0?Xp.jsx(r.slots.baseButton,f({onClick:T,startIcon:Xp.jsx(r.slots.filterPanelRemoveAllIcon,{})},r.slotProps?.baseButton,{children:n.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}),ij=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,aj=["children"],lj=zp({from:{opacity:0},to:{opacity:1}}),sj=zp({"from, to":{"--scrollable":'" "'}}),cj=jh("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
|
|
214
|
-
flex: 1;
|
|
215
|
-
display: flex;
|
|
216
|
-
flex-direction: column;
|
|
217
|
-
animation: ${sj};
|
|
218
|
-
animation-timeline: --scroll-timeline;
|
|
219
|
-
animation-fill-mode: none;
|
|
220
|
-
box-sizing: border-box;
|
|
221
|
-
overflow: auto;
|
|
222
|
-
scrollbar-width: thin;
|
|
223
|
-
scroll-timeline: --scroll-timeline block;
|
|
224
|
-
|
|
225
|
-
&::before,
|
|
226
|
-
&::after {
|
|
227
|
-
content: '';
|
|
228
|
-
flex-shrink: 0;
|
|
229
|
-
display: block;
|
|
230
|
-
position: sticky;
|
|
231
|
-
left: 0;
|
|
232
|
-
width: 100%;
|
|
233
|
-
height: 4px;
|
|
234
|
-
animation: ${lj} linear both;
|
|
235
|
-
animation-timeline: --scroll-timeline;
|
|
236
|
-
|
|
237
|
-
// Custom property toggle trick:
|
|
238
|
-
// - Detects if the element is scrollable
|
|
239
|
-
// - https://css-tricks.com/the-css-custom-property-toggle-trick/
|
|
240
|
-
--visibility-scrollable: var(--scrollable) visible;
|
|
241
|
-
--visibility-not-scrollable: hidden;
|
|
242
|
-
visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&::before {
|
|
246
|
-
top: 0;
|
|
247
|
-
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
248
|
-
animation-range: 0 4px;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&::after {
|
|
252
|
-
bottom: 0;
|
|
253
|
-
background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
254
|
-
animation-direction: reverse;
|
|
255
|
-
animation-range: calc(100% - 4px) 100%;
|
|
256
|
-
}
|
|
257
|
-
`,uj=nM(function(e,t){const{children:n}=e,r=d(e,aj);return Xp.jsx(cj,f({},r,{ref:t,children:n}))}),dj=new Intl.Collator;const pj=Ig("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:GM.spacing(.5,1.5)}),fj=Ig(uj,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),hj=Ig("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:GM.spacing(1.5,2),borderBottom:`1px solid ${GM.colors.border.base}`}),mj=Ig(JI,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${xw.input}::-webkit-search-decoration,\n & .${xw.input}::-webkit-search-cancel-button,\n & .${xw.input}::-webkit-search-results-button,\n & .${xw.input}::-webkit-search-results-decoration`]:{display:"none"}}),gj=Ig("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:GM.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${GM.colors.border.base}`}),bj=Ig("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:GM.spacing(1,0),alignSelf:"center",font:GM.typography.font.body}),vj=Ig(JI,{name:"MuiDataGrid",slot:"ColumnsManagementRow"})({}),yj=nM(function(e,t){const{children:n,slotProps:r={}}=e,o=r.button||{},i=r.tooltip||{},a=AM(),l=OM(),c=xm(),u=xm(),[d,p]=s.useState(!1),h=s.useRef(null),m=tb(t,h),g=()=>p(!1);return null==n?null:Xp.jsxs(s.Fragment,{children:[Xp.jsx(l.slots.baseTooltip,f({title:a.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},l.slotProps?.baseTooltip,i,{children:Xp.jsx(l.slots.baseButton,f({size:"small",startIcon:Xp.jsx(l.slots.exportIcon,{}),"aria-expanded":d,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?u:void 0,id:c},l.slotProps?.baseButton,o,{onClick:e=>{p(e=>!e),o.onClick?.(e)},ref:m,children:a.current.getLocaleText("toolbarExport")}))})),Xp.jsx(PD,{open:d,target:h.current,onClose:g,position:"bottom-end",children:Xp.jsx(l.slots.baseMenuList,{id:u,className:YM.menuList,"aria-labelledby":c,autoFocusItem:d,children:s.Children.map(n,e=>s.isValidElement(e)?s.cloneElement(e,{hideMenu:g}):e)})})]})}),wj=["hideMenu","options"],xj=["hideMenu","options"],Sj=["csvOptions","printOptions","excelOptions"];function Cj(e){const t=AM(),n=OM(),{hideMenu:r,options:o}=e,i=d(e,wj);return Xp.jsx(n.slots.baseMenuItem,f({onClick:()=>{t.current.exportDataAsCsv(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function kj(e){const t=AM(),n=OM(),{hideMenu:r,options:o}=e,i=d(e,xj);return Xp.jsx(n.slots.baseMenuItem,f({onClick:()=>{t.current.exportDataAsPrint(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}nM(function(e,t){const n=e,{csvOptions:r={},printOptions:o={},excelOptions:i}=n,a=d(n,Sj),l=AM().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:o}).sort((e,t)=>e.componentName>t.componentName?1:-1);return 0===l.length?null:Xp.jsx(yj,f({},a,{ref:t,children:l.map((e,t)=>s.cloneElement(e.component,{key:t}))}))});const Ej=s.createContext(void 0);function Rj(){const e=s.useContext(Ej);if(void 0===e)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const Mj=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],Pj=e=>e.split(" ").filter(e=>""!==e),Tj=e=>e.join(" ");function Ij(e){const t=OM(),{render:n,className:r,parser:o=Pj,formatter:i=Tj,debounceMs:a=t.filterDebounceMs,defaultExpanded:l,expanded:c,onExpandedChange:u}=e,p=d(e,Mj),h=AM(),m=s.useRef(null),g=s.useRef(null),b=uP(h,rF),[v,y]=s.useState(i(b??[])),[w,x]=s.useState(l??v.length>0),S=c??w,C=s.useMemo(()=>({value:v,expanded:S}),[v,S]),k="function"==typeof r?r(C):r,E=s.useRef(null),R=xm(),M=s.useCallback(e=>{u&&u(e),void 0===c&&x(e)},[u,c]),P=s.useRef(b);s.useEffect(()=>{LA(P.current,b)||(P.current=b,y(e=>LA(o(e),b)?e:i(b??[])))},[b,i,o]);const T=s.useRef(!0),I=s.useRef(S);s.useEffect(()=>{T.current?T.current=!1:I.current!==S&&(S?requestAnimationFrame(()=>{m.current?.focus({preventScroll:!0})}):g.current?.focus({preventScroll:!0}),I.current=S)},[S]);const O=s.useMemo(()=>Yg(e=>{const t=o(e);P.current=t,h.current.setQuickFilterValues(t)},a),[h,a,o]);s.useEffect(()=>O.clear,[O]);const D=s.useCallback(e=>{const t=e.target.value;y(t),O(t)},[O]),F=s.useCallback(()=>{y(""),h.current.setQuickFilterValues([]),m.current?.focus()},[h,m]),L=s.useMemo(()=>({controlRef:m,triggerRef:g,state:C,controlId:R,clearValue:F,onValueChange:D,onExpandedChange:M}),[R,C,D,F,M]);Wh(()=>{E.current&&g.current&&E.current.style.setProperty("--trigger-width",`${g.current?.offsetWidth}px`)},[]);const A=LN("div",n,f({className:k},p,{ref:E}),C);return Xp.jsx(Ej.Provider,{value:L,children:A})}const Oj=["render","className","slotProps","onKeyDown","onChange"],Dj=nM(function(e,t){const{render:n,className:r,slotProps:o,onKeyDown:i,onChange:a}=e,l=d(e,Oj),c=OM(),{state:u,controlId:p,controlRef:h,onValueChange:m,onExpandedChange:g,clearValue:b}=Rj(),v="function"==typeof r?r(u):r,y=tb(h,t),w=LN(c.slots.baseTextField,n,f({},c.slotProps?.baseTextField,{slotProps:f({htmlInput:f({role:"searchbox",id:p,tabIndex:u.expanded?void 0:-1},o?.htmlInput,{onBlur:e=>{""===u.value&&g(!1),o?.htmlInput?.onBlur?.(e)}})},o),value:u.value,className:v},l,{onChange:e=>{u.expanded||g(!0),m(e),a?.(e)},onKeyDown:e=>{"Escape"===e.key&&(""===u.value?g(!1):b()),i?.(e)},ref:y}),u);return Xp.jsx(s.Fragment,{children:w})}),Fj=["render","className","onClick"],Lj=nM(function(e,t){const{render:n,className:r,onClick:o}=e,i=d(e,Fj),a=OM(),{state:l,clearValue:c}=Rj(),u="function"==typeof r?r(l):r,p=LN(a.slots.baseIconButton,n,f({},a.slotProps?.baseIconButton,{className:u,tabIndex:-1},i,{onClick:e=>{c(),o?.(e)},ref:t}),l);return Xp.jsx(s.Fragment,{children:p})}),Aj=["render","className","onClick"],$j=nM(function(e,t){const{render:n,className:r,onClick:o}=e,i=d(e,Aj),a=OM(),{state:l,controlId:c,onExpandedChange:u,triggerRef:p}=Rj(),h="function"==typeof r?r(l):r,m=tb(p,t),g=LN(a.slots.baseButton,n,f({},a.slotProps?.baseButton,{className:h,"aria-controls":c,"aria-expanded":l.expanded},i,{onClick:e=>{u(!l.expanded),o?.(e)},ref:m}),l);return Xp.jsx(s.Fragment,{children:g})}),Nj=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],zj=["ref","slotProps"],jj=jh("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),_j=jh(BN,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:GM.transition(["opacity"])})),Bj=jh(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:GM.transition(["width","opacity"])}));function Hj(e){const t=AM(),n=OM(),r={classes:n.classes,expanded:!1},o=(e=>{const{classes:t}=e;return zm({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},qM,t)})(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:l,className:s,slotProps:c}=e,u=d(e,Nj);return Xp.jsx(Ij,{parser:i,formatter:a,debounceMs:l,render:(e,i)=>{const a=f({},r,{expanded:i.expanded});return Xp.jsxs(jj,f({},e,{className:eM(o.root,s),children:[Xp.jsx($j,{render:e=>Xp.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:Xp.jsx(_j,f({className:o.trigger},e,{ownerState:a,color:"default","aria-disabled":i.expanded,children:Xp.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),Xp.jsx(Dj,{render:e=>{let{ref:r,slotProps:i}=e,l=d(e,zj);return Xp.jsx(Bj,f({as:n.slots.baseTextField,className:o.control,ownerState:a,inputRef:r,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:f({input:f({startAdornment:Xp.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:l.value?Xp.jsx(Lj,{render:Xp.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:Xp.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},i?.input)},i)},n.slotProps?.baseTextField,l,c?.root,u))}})]}))}})}const Vj=["render","className","onClick","onPointerUp"],Wj=nM(function(e,t){const{render:n,className:r,onClick:o,onPointerUp:i}=e,a=d(e,Vj),l=OM(),c=xm(),u=xm(),p=AM(),h=uP(p,PA),m=h.open&&h.openedPanelValue===IA.filters,g=uP(p,hF).length,b={open:m,filterCount:g},v="function"==typeof r?r(b):r,{filterPanelTriggerRef:y}=xN(),w=tb(t,y),x=LN(l.slots.baseButton,n,f({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":m?"true":void 0,"aria-controls":m?u:void 0,onClick:e=>{m?p.current.hidePreferences():p.current.showPreferences(IA.filters,u,c),o?.(e)},onPointerUp:e=>{m&&e.stopPropagation(),i?.(e)},className:v},a,{ref:w}),b);return Xp.jsx(s.Fragment,{children:x})}),Uj=["render","className","onClick","onPointerUp"],Gj=nM(function(e,t){const{render:n,className:r,onClick:o,onPointerUp:i}=e,a=d(e,Uj),l=OM(),c=xm(),u=xm(),p=AM(),h=uP(p,PA),m=h.open&&h.openedPanelValue===IA.columns,g={open:m},b="function"==typeof r?r(g):r,{columnsPanelTriggerRef:v}=xN(),y=tb(t,v),w=LN(l.slots.baseButton,n,f({},l.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":m?"true":void 0,"aria-controls":m?u:void 0,className:b},a,{onPointerUp:e=>{m&&e.stopPropagation(),i?.(e)},onClick:e=>{m?p.current.hidePreferences():p.current.showPreferences(IA.columns,u,c),o?.(e)},ref:y}),g);return Xp.jsx(s.Fragment,{children:w})}),Kj=["render","options","onClick"],qj=nM(function(e,t){const{render:n,options:r,onClick:o}=e,i=d(e,Kj),a=OM(),l=AM(),c=LN(a.slots.baseButton,n,f({},a.slotProps?.baseButton,{onClick:e=>{l.current.exportDataAsCsv(r),o?.(e)}},i,{ref:t}));return Xp.jsx(s.Fragment,{children:c})}),Yj=["render","options","onClick"],Xj=nM(function(e,t){const{render:n,options:r,onClick:o}=e,i=d(e,Yj),a=OM(),l=AM(),c=LN(a.slots.baseButton,n,f({},a.slotProps?.baseButton,{onClick:e=>{l.current.exportDataAsPrint(r),o?.(e)}},i,{ref:t}));return Xp.jsx(s.Fragment,{children:c})}),Qj=["className"],Zj=["className"],Jj=["showQuickFilter","quickFilterProps","csvOptions","printOptions","additionalItems","additionalExportMenuItems"],e_=e=>{const{classes:t}=e;return zm({divider:["toolbarDivider"],label:["toolbarLabel"]},qM,t)},t_=jh(JI,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:GM.spacing(0,.5)}),n_=jh("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:GM.typography.font.large,fontWeight:GM.typography.fontWeight.medium,margin:GM.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function r_(e){const t=d(e,Qj),n=OM(),r=e_(n);return Xp.jsx(t_,f({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function o_(e){const t=d(e,Zj),n=OM(),r=e_(n);return Xp.jsx(n_,f({className:r.label},t))}const i_=["className","selectedRowCount"],a_=jh("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:GM.spacing(0,2),visibility:"hidden",width:0,height:0,[GM.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),l_=nM(function(e,t){const{className:n,selectedRowCount:r}=e,o=d(e,i_),i=AM(),a=OM(),l=(e=>{const{classes:t}=e;return zm({root:["selectedRowCount"]},qM,t)})(a),s=i.current.getLocaleText("footerRowSelected")(r);return Xp.jsx(a_,f({className:eM(l.root,n),ownerState:a},o,{ref:t,children:s}))}),s_=nM(function(e,t){const n=AM(),r=OM(),o=uP(n,fI),i=uP(n,yF),a=uP(n,pF),l=!r.hideFooterSelectedRowCount&&i>0?Xp.jsx(l_,{selectedRowCount:i}):Xp.jsx("div",{}),s=r.hideFooterRowCount||r.pagination?null:Xp.jsx(r.slots.footerRowCount,f({},r.slotProps?.footerRowCount,{rowCount:o,visibleRowCount:a})),c=r.pagination&&!r.hideFooterPagination&&r.slots.pagination&&Xp.jsx(r.slots.pagination,f({},r.slotProps?.pagination));return Xp.jsxs(IN,f({},e,{ref:t,children:[l,s,c]}))}),c_=(e,t,n,r,o,i)=>{let a;switch(e){case jD.LEFT:a=r[n];break;case jD.RIGHT:a=o-r[n]-t+i;break;default:a=void 0}return Number.isNaN(a)&&(a=void 0),a},u_=(e,t,n,r,o,i)=>{const a=t===n-1;return!(!i?.startsWith("border")||e!==jD.LEFT||!a)||!!r&&(e===jD.LEFT||(e===jD.RIGHT?!a:!a||o))},d_=(e,t,n,r)=>r?.startsWith("border")?e===jD.RIGHT&&0===t:n&&e===jD.RIGHT&&0===t,p_=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],f_=jh("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),h_=e=>parseInt(e.getAttribute("data-colindex"),10),m_=nM(function(e,t){const n=OM(),{slots:r}=n,o=mm(),i=(e=>{const{classes:t}=e;return zm({root:["skeletonLoadingOverlay"]},qM,t)})({classes:n.classes}),a=s.useRef(null),l=tb(a,t),c=AM(),u=uP(c,ZT),p=uP(c,JT),h=uP(c,QO),m=s.useMemo(()=>h.filter(e=>e<=p).length,[p,h]),{skeletonRowsCount:g,visibleColumns:b,showFirstRowBorder:v}=e,y=d(e,p_),w=uP(c,GO),x=s.useMemo(()=>w.slice(0,m),[w,m]),S=uP(c,YO),C=s.useCallback(e=>-1!==S.left.findIndex(t=>t.field===e)?jD.LEFT:-1!==S.right.findIndex(t=>t.field===e)?jD.RIGHT:void 0,[S.left,S.right]),k=s.useMemo(()=>{const e=[];for(let t=0;t<g;t+=1){const i=[];for(let e=0;e<x.length;e+=1){const a=x[e],l=C(a.field),s=l===jD.LEFT,c=l===jD.RIGHT,d=iN(l,o),p=d?S[d].length:x.length-S.left.length-S.right.length,m=d?S[d].findIndex(e=>e.field===a.field):e-S.left.length,g=u.hasScrollY?u.scrollbarSize:0,v=aN({},o,l,c_(l,a.computedWidth,e,h,u.columnsTotalWidth,g)),y=u.columnsTotalWidth<u.viewportOuterSize.width,w=u_(l,m,p,n.showCellVerticalBorder,y,n.pinnedColumnsSectionSeparator),k=d_(l,m,n.showCellVerticalBorder,n.pinnedColumnsSectionSeparator),E=c&&0===m,R=E&&y,M=e===x.length-1&&!E&&y,P=u.viewportOuterSize.width-u.columnsTotalWidth,T=Math.max(0,P),I=Xp.jsx(r.skeletonCell,{width:T,empty:!0},`skeleton-filler-column-${t}`);R&&i.push(I),i.push(Xp.jsx(r.skeletonCell,{field:a.field,type:a.type,align:a.align,width:"var(--width)",height:u.rowHeight,"data-colindex":e,empty:b&&!b.has(a.field),className:eM(s&&YM["cell--pinnedLeft"],c&&YM["cell--pinnedRight"],w&&YM["cell--withRightBorder"],k&&YM["cell--withLeftBorder"]),style:f({"--width":`${a.computedWidth}px`},v)},`skeleton-column-${t}-${a.field}`)),M&&i.push(I)}e.push(Xp.jsx("div",{className:eM(YM.row,YM.rowSkeleton,0===t&&!v&&YM["row--firstVisible"]),children:i},`skeleton-row-${t}`))}return e},[g,x,C,o,S,u.hasScrollY,u.scrollbarSize,u.columnsTotalWidth,u.viewportOuterSize.width,u.rowHeight,h,n.showCellVerticalBorder,n.pinnedColumnsSectionSeparator,r,b,v]);return KI(c,"columnResize",e=>{const{colDef:t,width:n}=e,r=a.current?.querySelectorAll(`[data-field="${UN(t.field)}"]`);if(!r)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=x.findIndex(e=>e.field===t.field),i=C(t.field),l=i===jD.LEFT,s=i===jD.RIGHT,c=getComputedStyle(r[0]).getPropertyValue("--width"),u=parseInt(c,10)-n;if(r&&r.forEach(e=>{e.style.setProperty("--width",`${n}px`)}),l){const e=a.current?.querySelectorAll(`.${YM["cell--pinnedLeft"]}`);e?.forEach(e=>{h_(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-u+"px")})}if(s){const e=a.current?.querySelectorAll(`.${YM["cell--pinnedRight"]}`);e?.forEach(e=>{h_(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+u}px`)})}}),Xp.jsx(f_,f({className:i.root},y,{ref:l,children:k}))}),g_=nM(function(e,t){const n=uP(AM(),ZT),r=n?.viewportInnerSize.height??0,o=Math.ceil(r/n.rowHeight);return Xp.jsx(m_,f({},e,{skeletonRowsCount:o,ref:t}))}),b_=["variant","noRowsVariant","style"],v_={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>g_,style:{display:"block"}}},y_=nM(function(e,t){const{variant:n="linear-progress",noRowsVariant:r="skeleton",style:o}=e,i=d(e,b_),a=AM(),l=OM(),s=uP(a,dI),c=v_[0===s?r:n],u=c.component(l);return Xp.jsx(FN,f({style:f({},c.style,o)},i,{ref:t,children:Xp.jsx(u,{})}))}),w_=nM(function(e,t){const n=AM().current.getLocaleText("noRowsLabel");return Xp.jsx(FN,f({},e,{ref:t,children:n}))}),x_=nM(function(e,t){const n=OM(),r=AM(),o=uP(r,BO),i=!n.disableColumnSelector&&o.length>0;return Xp.jsxs(FN,f({},e,{ref:t,children:[r.current.getLocaleText("noColumnsOverlayLabel"),i&&Xp.jsx(n.slots.baseButton,f({size:"small"},n.slotProps?.baseButton,{onClick:()=>{r.current.showPreferences(IA.columns)},children:r.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),S_=Ig(JI)({maxHeight:"calc(100% + 1px)",flexGrow:1});const C_=["className","rowCount","visibleRowCount"],k_=jh("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:GM.spacing(0,2)}),E_=nM(function(e,t){const{className:n,rowCount:r,visibleRowCount:o}=e,i=d(e,C_),a=AM(),l=OM(),s=(e=>{const{classes:t}=e;return zm({root:["rowCount"]},qM,t)})(l);if(0===r)return null;const c=o<r?a.current.getLocaleText("footerTotalVisibleRows")(o,r):r.toLocaleString();return Xp.jsxs(k_,f({className:eM(s.root,n),ownerState:l},i,{ref:t,children:[a.current.getLocaleText("footerTotalRows")," ",c]}))});const R_=XT(e=>e.rowReorder),M_=qT(R_,e=>e?.isActive??!1),P_=qT(R_,e=>e?.dropTarget??{rowId:null,position:null});qT(P_,e=>e.rowId??null);const T_=qT(P_,(e,t)=>e.rowId===t?e.position:null);qT(R_,e=>e?.draggedRowId??null);const I_=Ig("div",{name:"MuiDataGrid",slot:"RowDragOverlay",shouldForwardProp:e=>Oh(e)&&"action"!==e})(({theme:e,action:t})=>f({position:"absolute",left:0,right:0,top:0,bottom:0,pointerEvents:"none",zIndex:1},"above"===t&&{"&::before":{pointerEvents:"none",content:'""',position:"absolute",top:0,left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},"below"===t&&{"&::after":{pointerEvents:"none",content:'""',position:"absolute",bottom:"-2px",left:0,right:0,height:"2px",backgroundColor:(e.vars||e).palette.primary.main}},"inside"===t&&{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.1)`:tm(e.palette.primary.main,.1)})),O_=s.memo(function(e){const{rowId:t,className:n}=e,r=uP(pP(),T_,t);return r?Xp.jsx(I_,{action:r,className:n}):null}),D_=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],F_=qT(EA,(e,{rowReordering:t,treeData:n})=>{if(!t||n)return!1;return!!YD(e)}),L_=nM(function(e,t){const{selected:n,rowId:r,row:o,index:i,style:a,rowHeight:l,className:c,visibleColumns:u,pinnedColumns:p,offsetLeft:h,columnsTotalWidth:m,firstColumnIndex:g,lastColumnIndex:b,focusedColumnIndex:v,isFirstVisible:y,isLastVisible:w,isNotVisible:x,showBottomBorder:S,scrollbarWidth:C,gridHasFiller:k,onClick:E,onDoubleClick:R,onMouseEnter:M,onMouseLeave:P,onMouseOut:T,onMouseOver:I}=e,O=d(e,D_),D=pP(),F=SD(),L=s.useRef(null),A=OM(),$=V$(D),N=uP(D,JD),z=uP(D,QO),j=A.rowReordering,_=A.treeData,B=uP(D,F_,{rowReordering:j,treeData:_}),H=uP(D,M_),V=tb(L,t),W=gI(D,r),U=uP(D,RA,{rowId:r,editMode:A.editMode}),G=A.editMode===wO.Row,K=void 0!==v,q=K&&v>=p.left.length&&v<g,Y=K&&v<u.length-p.right.length&&v>=b,X=function(e,t){return zm(t,qM,e)}(A.classes,{root:["row",n&&"selected",G&&"row--editable",U&&"row--editing",y&&"row--firstVisible",w&&"row--lastVisible",S&&"row--borderBottom","auto"===l&&"row--dynamicHeight"]}),Q=F.hooks.useGridRowAriaAttributes();s.useLayoutEffect(()=>{if($.range){const e=D.current.getRowIndexRelativeToVisibleRows(r);void 0!==e&&D.current.unstable_setLastMeasuredRowIndex(e)}if(L.current&&"auto"===l)return D.current.observeRowHeight(L.current,r)},[D,$.range,l,r]);const Z=s.useCallback((e,t)=>n=>{KN(n)||D.current.getRow(r)&&(D.current.publishEvent(e,D.current.getRowParams(r),n),t&&t(n))},[D,r]),J=s.useCallback(e=>{const t=WN(e.target,YM.cell),n=t?.getAttribute("data-field");if(n){if(n===rL.field)return;if(n===zD)return;if("__reorder__"===n)return;if(D.current.getCellMode(r,n)===xO.Edit)return;const e=D.current.getColumn(n);if(e?.type===AD)return}Z("rowClick",E)(e)},[D,E,Z,r]),{slots:ee,slotProps:te,disableColumnReorder:ne}=A,re=uP(D,()=>f({},D.current.getRowHeightEntry(r)),void 0,iP),oe=s.useMemo(()=>{if(x)return{opacity:0,width:0,height:0};const e=f({},a,{maxHeight:"auto"===l?"none":l,minHeight:l,"--height":"number"==typeof l?`${l}px`:l});if(re.spacingTop){e["border"===A.rowSpacingType?"borderTopWidth":"marginTop"]=re.spacingTop}if(re.spacingBottom){const t="border"===A.rowSpacingType?"borderBottomWidth":"marginBottom";let n=e[t];"number"!=typeof n&&(n=parseInt(n||"0",10)),n+=re.spacingBottom,e[t]=n}return e},[x,l,a,re.spacingTop,re.spacingBottom,A.rowSpacingType]);if(!W)return null;const ie=D.current.unstable_applyPipeProcessors("rowClassName",[],r),ae=Q(W,i);if("function"==typeof A.getRowClassName){const e=i-($.range?.firstRowIndex||0),t=f({},D.current.getRowParams(r),{isFirstVisible:0===e,isLastVisible:e===$.rows.length-1,indexRelativeToCurrentPage:e});ie.push(A.getRowClassName(t))}const le=(e,t,n,i,a=jD.NONE)=>{const s=D.current.unstable_getCellColSpanInfo(r,n);if(s?.spannedByColSpan)return null;const c=s?.cellProps.width??e.computedWidth,u=s?.cellProps.colSpan??1,d=c_(a,e.computedWidth,n,z,m,C);if("skeletonRow"===W.type)return Xp.jsx(ee.skeletonCell,{type:e.type,width:c,height:l,field:e.field,align:e.align},e.field);const p="__reorder__"===e.field,h=!(ne||e.disableReorder),g=B&&!N.length,b=!(h||p&&g||H),v=a===jD.VIRTUAL,y=d_(a,t,A.showCellVerticalBorder,A.pinnedColumnsSectionSeparator),w=u_(a,t,i,A.showCellVerticalBorder,k,A.pinnedColumnsSectionSeparator);return Xp.jsx(ee.cell,f({column:e,width:c,rowId:r,align:e.align||"left",colIndex:n,colSpan:u,disableDragEvents:b,isNotVisible:v,pinnedOffset:d,pinnedPosition:a,showLeftBorder:y,showRightBorder:w,row:o,rowNode:W},te?.cell),e.field)},se=p.left.map((e,t)=>le(e,t,t,p.left.length,jD.LEFT)),ce=p.right.map((e,t)=>{const n=u.length-p.right.length+t;return le(e,t,n,p.right.length,jD.RIGHT)}),ue=u.length-p.left.length-p.right.length,de=[];q&&de.push(le(u[v],v-p.left.length,v,ue,jD.VIRTUAL));for(let e=g;e<b;e+=1){const t=u[e],n=e-p.left.length;t&&de.push(le(t,n,e,ue))}Y&&de.push(le(u[v],v-p.left.length,v,ue,jD.VIRTUAL));const pe=o?{onClick:J,onDoubleClick:Z("rowDoubleClick",R),onMouseEnter:Z("rowMouseEnter",M),onMouseLeave:Z("rowMouseLeave",P),onMouseOut:Z("rowMouseOut",T),onMouseOver:Z("rowMouseOver",I)}:null;return Xp.jsxs("div",f({"data-id":r,"data-rowindex":i,role:"row",className:eM(...ie,X.root,c),style:oe},ae,pe,O,{ref:V,children:[se,Xp.jsx("div",{role:"presentation",className:YM.cellOffsetLeft,style:{width:h}}),de,Xp.jsx("div",{role:"presentation",className:eM(YM.cell,YM.cellEmpty)}),ce,Xp.jsx(O_,{rowId:r})]}))}),A_=jI(L_);function $_({privateApiRef:e,configuration:t,props:n,children:r}){const o=s.useRef(e.current.getPublicApi());return Xp.jsx(xD.Provider,{value:t,children:Xp.jsx(IM.Provider,{value:n,children:Xp.jsx(dP.Provider,{value:e,children:Xp.jsx(LM.Provider,{value:o,children:Xp.jsx(SN,{children:Xp.jsx(ED,{children:r})})})})})})}const N_=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),z_=()=>{},j_={debug:z_,info:z_,warn:z_,error:z_},__=["debug","info","warn","error"];function B_(e,t,n=console){const r=__.indexOf(t);if(-1===r)throw new Error(`MUI X: Log level ${t} not recognized.`);return __.reduce((t,o,i)=>(t[o]=i>=r?(...t)=>{const[r,...i]=t;n[o](`MUI X: ${e} - ${r}`,...i)}:z_,t),{})}let H_=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const V_=(e,t,n,r)=>{const o=s.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);tA(()=>{o()});const i=s.useRef(!0);s.useEffect(()=>{i.current?i.current=!1:o()},[o])},W_="none",U_={dataSourceRowsUpdate:H_.DataSource,rowTreeCreation:H_.RowTree,filtering:H_.RowTree,sorting:H_.RowTree,visibleRowsLookupCreation:H_.RowTree},G_=(e,t)=>f({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable}}),K_=(e,t)=>{(e=>{const t=s.useRef(null),n=s.useRef(null),r=s.useRef(null),o=s.useRef(null),i=s.useRef(null),a=s.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})})(e),((e,t)=>{const n=s.useRef(!0);s.useEffect(()=>{n.current?n.current=!1:e.current.setState(e=>f({},e,{props:{listView:t.listView,getRowId:t.getRowId,isCellEditable:t.isCellEditable,isRowSelectable:t.isRowSelectable}}))},[e,t.listView,t.getRowId,t.isCellEditable,t.isRowSelectable])})(e,t),(e=>{const t=mm();void 0===e.current.state.isRtl&&(e.current.state.isRtl=t);const n=s.useRef(!0);s.useEffect(()=>{n.current?n.current=!1:e.current.setState(e=>f({},e,{isRtl:t}))},[e,t])})(e),((e,t)=>{ZL(e,{getLogger:s.useCallback(e=>N_?B_(e,"debug",t.logger):t.logLevel?B_(e,t.logLevel.toString(),t.logger):j_,[t.logLevel,t.logger])},"private")})(e,t),(e=>{const t=s.useRef({}),n=s.useCallback(e=>{t.current[e.stateId]=e},[]),r=s.useCallback((n,r)=>{let o;if(o="function"==typeof n?n(e.current.state):n,e.current.state===o)return!1;const i={current:{state:o}};let a=!1;const l=[];if(Object.keys(t.current).forEach(n=>{const r=t.current[n],o=r.stateSelector(e),s=r.stateSelector(i);s!==o&&(l.push({stateId:r.stateId,hasPropChanged:s!==r.propModel}),void 0!==r.propModel&&s!==r.propModel&&(a=!0))}),l.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${l[0].stateId}, therefore, you're not allowed to update ${l.map(e=>e.stateId).join(", ")} in the same transaction.`);if(a||(e.current.state=o,e.current.publishEvent("stateChange",o),e.current.store.update(o)),1===l.length){const{stateId:n,hasPropChanged:o}=l[0],s=t.current[n],c=s.stateSelector(i);s.propOnChange&&o&&s.propOnChange(c,{reason:r,api:e.current}),a||e.current.publishEvent(s.changeEvent,c,{reason:r})}return!a},[e]),o=s.useCallback((t,n,r)=>e.current.setState(e=>f({},e,{[t]:n(e[t])}),r),[e]),i={updateControlState:o,registerControlState:n};ZL(e,{setState:r},"public"),ZL(e,i,"private")})(e),(e=>{const t=s.useRef({}),n=s.useRef(!1),r=s.useCallback(e=>{!n.current&&e&&(n.current=!0,Object.values(e.appliers).forEach(e=>{e()}),n.current=!1)},[]),o=s.useCallback((e,n,r)=>{t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});const o=t.current[e];return o.processors.get(n)!==r&&(o.processors.set(n,r),o.processorsAsArray=Array.from(t.current[e].processors.values()).filter(e=>null!==e),o.processorsUpdated=!0),()=>{t.current[e].processors.set(n,null),t.current[e].processorsAsArray=Array.from(t.current[e].processors.values()).filter(e=>null!==e)}},[]),i=s.useCallback((e,n,r)=>(t.current[e]||(t.current[e]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[e].appliers[n]=r,()=>{const r=d(t.current[e].appliers,[n].map(T));t.current[e].appliers=r}),[]),a=s.useCallback(e=>{r(t.current[e])},[r]),l=s.useCallback(()=>{for(const e in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,e))continue;const n=t.current[e];n.processorsUpdated&&(n.processorsUpdated=!1,r(n))}},[r]),c={unstable_applyPipeProcessors:s.useCallback((...e)=>{const[n,r,o]=e;if(!t.current[n])return r;const i=t.current[n].processorsAsArray;let a=r;for(let e=0;e<i.length;e+=1)a=i[e](a,o);return a},[])};ZL(e,{registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a,runAppliersForPendingProcessors:l},"private"),ZL(e,c,"public")})(e),(e=>{const t=s.useRef(new Map),n=s.useRef({}),r=s.useCallback((t,r,o)=>{const i=()=>{const e=d(n.current[r],[t].map(T));n.current[r]=e};n.current[r]||(n.current[r]={});const a=n.current[r],l=a[t];return a[t]=o,l&&l!==o?(t===e.current.getActiveStrategy(U_[r])&&e.current.publishEvent("activeStrategyProcessorChange",r),i):i},[e]),o=s.useCallback((t,r)=>{const o=e.current.getActiveStrategy(U_[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=n.current[t];if(!i||!i[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,i[o])(r)},[e]),i=s.useCallback(e=>{const n=Array.from(t.current.entries()).find(([,t])=>t.group===e&&t.isAvailable());return n?.[0]??W_},[]),a=s.useCallback((n,r,o)=>{t.current.set(r,{group:n,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")},[e]);ZL(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")})(e),((e,t)=>{const n=s.useCallback(e=>{if(null==t.localeText[e])throw new Error(`Missing translation for key ${e}.`);return t.localeText[e]},[t.localeText]);e.current.register("public",{getLocaleText:n})})(e,t),e.current.register("private",{rootProps:t})},q_=(e,t,n,r)=>{const o=s.useRef(r),i=s.useRef(!1);r!==o.current&&(i.current=!1,o.current=r),i.current||(t.current.state=e(t.current.state,n,t),i.current=!0)};function Y_(e,t){if(null==e)return"";const n="string"==typeof e?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const e=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","\t","\r"].includes(e[0])?`"'${e}"`:[t.delimiter,"\n","\r",'"'].some(e=>n.includes(e))?`"${e}"`:e}return n}const X_=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const t=e.colDef.type;o="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else o=e.formattedValue;return Y_(o,n)};class Q_{rowString="";isEmpty=!0;constructor(e){this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function Z_(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((e,n)=>`${e}${(({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new Q_({csvOptions:r});return t.forEach(t=>{const a=n(e,t.field);String(a.formattedValue),i.addValue(X_(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()})({id:n,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r\n`,"").trim();if(!r.includeHeaders)return a;const l=t.filter(e=>e.field!==rL.field),s=[];if(r.includeColumnGroupsHeaders){const e=i.current.getAllGroupDetails();let t=0;const n=l.reduce((e,n)=>{const r=i.current.getColumnGroupPath(n.field);return e[n.field]=r,t=Math.max(t,r.length),e},{});for(let o=0;o<t;o+=1){const t=new Q_({csvOptions:r,sanitizeCellValue:Y_});s.push(t),l.forEach(r=>{const i=(n[r.field]||[])[o],a=e[i];t.addValue(a?a.headerName||a.groupId:"")})}}const c=new Q_({csvOptions:r,sanitizeCellValue:Y_});l.forEach(e=>{c.addValue(e.headerName||e.field)}),s.push(c);return`${`${s.map(e=>e.getRowString()).join("\r\n")}\r\n`}${a}`.trim()}function J_(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const eB=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=("object"==typeof n?n?.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=s.useCallback(t=>{if(!function(e){return(e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}(t))return;if(n=t.target,window.getSelection()?.toString()||n&&(n.selectionEnd||0)-(n.selectionStart||0)>0)return;var n;let i="";if(yF(e)>0)i=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const t=DF(e);if(t){const n=e.current.getCellParams(t.id,t.field);i=X_(n,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}var a;i=e.current.unstable_applyPipeProcessors("clipboardCopy",i),i&&(a=i,navigator.clipboard?navigator.clipboard.writeText(a).catch(()=>{J_(a)}):J_(a),e.current.publishEvent("clipboardCopy",i))},[e,r,o]);eA(e,()=>e.current.rootElementRef.current,"keydown",i),YI(e,"clipboardCopy",t.onClipboardCopy)},tB=e=>f({},e,{columnMenu:{open:!1}}),nB=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};return f({},e,{columns:VL({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0}),pinnedColumns:e.pinnedColumns??$O})};function rB(e,t){const n=JL(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:WO,changeEvent:"columnVisibilityModelChange"});const r=s.useCallback(t=>{n.debug("Updating columns state."),e.current.setState(function(e){return t=>f({},t,{columns:e})}(t)),e.current.publishEvent("columnsChange",t.orderedFields)},[n,e]),o=s.useCallback(t=>HO(e)[t],[e]),i=s.useCallback(()=>VO(e),[e]),a=s.useCallback(()=>GO(e),[e]),l=s.useCallback((t,n=!0)=>(n?GO(e):VO(e)).findIndex(e=>e.field===t),[e]),c=s.useCallback(t=>{const n=l(t);return QO(e)[n]},[e,l]),u=s.useCallback(t=>{WO(e)!==t&&(e.current.setState(n=>f({},n,{columns:VL({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),d=s.useCallback(t=>{let n=t;if(rA(e)){const r=[],o=[],i=iA(e);if(t.forEach(e=>{i.has(e.field)?r.push(e):o.push(e)}),r.length>0&&e.current.updateNonPivotColumns(r),0===o.length)return;n=o}const o=VL({apiRef:e,columnsToUpsert:n,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(o)},[e,r]),p=s.useCallback((t,n)=>{const r=WO(e);if(n!==(r[t]??!0)){const o=f({},r,{[t]:n});e.current.setColumnVisibilityModel(o)}},[e]),h=s.useCallback(t=>BO(e).findIndex(e=>e===t),[e]),m=s.useCallback((t,o)=>{const i=BO(e),a=h(t);if(a===o)return;n.debug(`Moving column ${t} to index ${o}`);const l=[...i],s=l.splice(a,1)[0];l.splice(o,0,s),r(f({},_O(e),{orderedFields:l}));const c={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",c)},[e,n,r,h]),g=s.useCallback((t,o)=>{n.debug(`Updating column ${t} width to ${o}`);const i=_O(e),a=f({},i.lookup[t],{width:o,hasBeenResized:!0});r(BL(f({},i,{lookup:f({},i.lookup,{[t]:a})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:a,width:o})},[e,n,r]),b={setColumnIndex:m};ZL(e,{getColumn:o,getAllColumns:i,getColumnIndex:l,getColumnPosition:c,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:h,updateColumns:d,setColumnVisibilityModel:u,setColumnVisibility:p,setColumnWidth:g},"public"),ZL(e,b,t.signature===BI.DataGrid?"private":"public");const v=s.useCallback((n,r)=>{const o={},i=WO(e);(!r.exportOnlyDirtyModels||null!=t.columnVisibilityModel||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(i).length>0)&&(o.columnVisibilityModel=i),o.orderedFields=BO(e);const a=VO(e),l={};return a.forEach(e=>{if(e.hasBeenResized){const t={};jL.forEach(n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r}),l[e.field]=t}}),Object.keys(l).length>0&&(o.dimensions=l),f({},n,{columns:o})},[e,t.columnVisibilityModel,t.initialState?.columns]),y=s.useCallback((t,n)=>{const r=n.stateToRestore.columns,o=r?.columnVisibilityModel;if(null==r)return t;const i=VL({apiRef:e,columnsToUpsert:[],initialState:r,columnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return null!=r&&e.current.setState(e=>f({},e,{columns:f({},e.columns,{lookup:i.lookup,orderedFields:i.orderedFields,initialColumnVisibilityModel:i.initialColumnVisibilityModel})})),null!=o&&e.current.setState(e=>f({},e,{columns:f({},e.columns,{columnVisibilityModel:o})})),null!=r&&e.current.publishEvent("columnsChange",i.orderedFields),t},[e]),w=s.useCallback((e,n)=>{if(n===IA.columns){const e=t.slots.columnsPanel;return Xp.jsx(e,f({},t.slotProps?.columnsPanel))}return e},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),x=s.useCallback(n=>{const r=rA(e);return t.disableColumnSelector||r?n:[...n,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);K$(e,"columnMenu",x),K$(e,"exportState",v),K$(e,"restoreState",y),K$(e,"preferencePanel",w);const S=s.useRef(null);KI(e,"viewportInnerSizeChange",t=>{if(S.current!==t.width){S.current=t.width;if(!GO(e).some(e=>e.flex&&e.flex>0))return;r(BL(_O(e),e.current.getRootDimensions()))}});const C=s.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const t=VL({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(t)},[e,n,r]);q$(e,"hydrateColumns",C),s.useEffect(()=>{if(e.current.caches.columns.lastColumnsProp===t.columns)return;e.current.caches.columns.lastColumnsProp=t.columns,n.info(`GridColumns have changed, new length ${t.columns.length}`);const o=VL({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(o)},[n,e,r,t.columns,t.columnVisibilityModel]),s.useEffect(()=>{void 0!==t.columnVisibilityModel&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}const oB=(e,t)=>f({},e,{density:t.initialState?.density??t.density??"standard"});const iB=({apiRef:e,options:t})=>{const n=VO(e);if(t.fields)return t.fields.reduce((e,t)=>{const r=n.find(e=>e.field===t);return r&&e.push(r),e},[]);return(t.allColumns?n:GO(e)).filter(e=>!0!==e.disableExport)},aB=({apiRef:e})=>{const t=cF(e),n=mI(e),r=yF(e),o=t.filter(e=>"footer"!==n[e].type),i=CI(e),a=i?.top?.map(e=>e.id)||[],l=i?.bottom?.map(e=>e.id)||[];if(o.unshift(...a),o.push(...l),r>0){const t=wF(e);return o.filter(e=>t.has(e))}return o},lB=(e,t)=>{const n=JL(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=("object"==typeof r?r?.csvExport:r)||!1,i=s.useCallback((t={})=>{n.debug("Get data as CSV");return Z_({columns:iB({apiRef:e,options:t}),rowIds:(t.getRowsToExport??aB)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:t.shouldAppendQuotes??!0,includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,escapeFormulas:t.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=s.useCallback(e=>{n.debug("Export data as CSV");const t=i(e);!function(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout(()=>{URL.revokeObjectURL(t)})}throw new Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)},[n,i]);ZL(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const l=s.useCallback((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:Xp.jsx(Cj,{options:t.csvOptions}),componentName:"csvExport"}],[]);K$(e,"exportMenu",l)};const sB=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=n?.pageSize??r.pageSize,a=n?.page??r.page,l=jF(o,i,a);!n||n?.page===r.page&&n?.pageSize===r.pageSize||(r=n);const s=-1===i?0:((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(r.page,l);return s!==r.page&&(r=f({},r,{page:s})),BF(r.pageSize,t),r};const cB=(e,t)=>{const n=null!==e.current.rootElementRef.current,r=JL(e,"useGridPrintExport"),o=s.useRef(null),i=s.useRef(null),a=s.useRef({}),l=s.useRef([]),c=s.useRef(null);s.useEffect(()=>{o.current=Xg(e.current.rootElementRef.current)},[e,n]);const u=s.useCallback((t,n,r)=>new Promise(o=>{const i=iB({apiRef:e,options:{fields:t,allColumns:n}}).map(e=>e.field),a=VO(e),l={};a.forEach(e=>{l[e.field]=i.includes(e.field)}),r&&(l[rL.field]=!0),e.current.setColumnVisibilityModel(l),o()}),[e]),d=s.useCallback(t=>{const n=t({apiRef:e}).reduce((t,n)=>{const r=e.current.getRow(n);return r[RI]||t.push(r),t},[]);e.current.setRows(n)},[e]),p=s.useCallback((t,n)=>{const r=f({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},n),i=t.contentDocument;if(!i)return;const a=e.current.rootElementRef.current,l=a.cloneNode(!0),s=l.querySelector(`.${YM.virtualScrollerContent}`);if(l.querySelector(`.${YM.main}`).style.overflow="visible",l.querySelector(`.${YM.virtualScrollerRenderZone}`).style.position="static",s.style.flexBasis="auto",l.querySelector(`.${YM["scrollbar--vertical"]}`)?.remove(),!(s.nextSibling instanceof HTMLElement&&s.nextSibling.classList.contains(YM.filler))){const e=document.createElement("div");e.style.height=O$,s.insertAdjacentElement("afterend",e)}const c=l.querySelector(`.${YM.footerContainer}`);r.hideToolbar&&l.querySelector(`.${YM.toolbar}`)?.remove(),r.hideFooter&&c&&c.remove(),l.style.height="auto",l.style.boxSizing="content-box",!r.hideFooter&&c&&(c.style.width="100%");const u=document.createElement("div");u.appendChild(l),i.body.style.marginTop="0px",i.body.innerHTML=u.innerHTML;const d="function"==typeof r.pageStyle?r.pageStyle():r.pageStyle;if("string"==typeof d){const e=i.createElement("style");e.appendChild(i.createTextNode(d)),i.head.appendChild(e)}r.bodyClassName&&i.body.classList.add(...r.bodyClassName.split(" "));let p=[];if(r.copyStyles){const e=a.getRootNode();p=function(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t<r.length;t+=1){const o=r[t],i=e.createElement(o.tagName);if("STYLE"===o.tagName){const t=o.sheet;if(t){let n="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(n+=`${t.cssRules[e].cssText}\r\n`);i.appendChild(e.createTextNode(n))}}else if(o.getAttribute("href")){for(let e=0;e<o.attributes.length;e+=1){const t=o.attributes[e];t&&i.setAttribute(t.nodeName,t.nodeValue||"")}n.push(new Promise(e=>{i.addEventListener("load",()=>e())}))}e.head.appendChild(i)}return n}(i,"ShadowRoot"===e.constructor.name?e:o.current)}Promise.all(p).then(()=>{t.contentWindow.print()})},[e,o]),h=s.useCallback(t=>{o.current.body.removeChild(t),e.current.restoreState(i.current||{}),i.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(e=>f({},e,{virtualization:c.current})),e.current.setRows(l.current),i.current=null,a.current={},l.current=[]},[e]),m=s.useCallback(async n=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=WO(e),l.current=e.current.getSortedRows().filter(e=>!e[RI]),t.pagination){const t={page:0,pageSize:dF(e)};e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{paginationModel:sB(e.pagination,"DataGridPro",t)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(n?.fields,n?.allColumns,n?.includeCheckboxes),d(n?.getRowsToExport??aB),await new Promise(e=>{requestAnimationFrame(()=>{e()})});const s=function(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}(n?.fileName);s.onload=()=>{p(s,n);s.contentWindow.matchMedia("print").addEventListener("change",e=>{!1===e.matches&&h(s)})},o.current.body.appendChild(s)},[t,r,e,p,h,u,d]);ZL(e,{exportDataAsPrint:m},"public");const g=s.useCallback((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:Xp.jsx(kj,{options:t.printOptions}),componentName:"printExport"}],[]);K$(e,"exportMenu",g)},uB=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??FO();return f({},e,{filter:f({filterModel:rD(r,t.disableMultipleColumnsFiltering,n)},DO),visibleRowsLookup:{}})},dB=e=>e.filteredRowsLookup;function pB(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function fB(){return MT(Object.values)}const hB=e=>f({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),mB=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},gB=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};const bB=YT(JF,CI,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),vB=(e,t)=>{const n=JL(e,"useGridKeyboardNavigation"),r=mm(),o=s.useCallback(()=>bB(e),[e]),i="DataGrid"!==t.signature&&t.headerFilters,a=s.useCallback((t,r,o="left",i="up")=>{const a=aF(e),l=e.current.unstable_getCellColSpanInfo(r,t);l&&l.spannedByColSpan&&("left"===o?t=l.leftVisibleCellIndex:"right"===o&&(t=l.rightVisibleCellIndex));const s=KO(e)[t],c=function(e,t,n,r){const o=g$.selectors.hiddenCells(e.current.virtualizer.store.state);if(!o[t]?.[n])return t;const i=cF(e);let a=i.indexOf(t)+("down"===r?1:-1);for(;a>=0&&a<i.length;){const e=i[a];if(!o[e]?.[n])return e;a+="down"===r?1:-1}return t}(e,r,t,i),u=a.findIndex(e=>e.id===c);n.debug(`Navigating to cell row ${u}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:u}),e.current.setCellFocus(c,s)},[e,n]),l=s.useCallback((t,r)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,r)},[e,n]),c=s.useCallback((t,r)=>{n.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(o,r)},[e,n]),u=s.useCallback((t,r,o)=>{n.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:i}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(i,r,o)},[e,n]),d=s.useCallback(e=>o()[e]?.id,[o]),p=s.useCallback((n,s)=>{const p=s.currentTarget.querySelector(`.${YM.columnHeaderTitleContainerContent}`);if(!!p&&p.contains(s.target)&&n.field!==rL.field)return;if(!vD(s.key)&&"Tab"!==s.key)return;if("Tab"===s.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&s.shiftKey))return;const f=o(),h=e.current.getViewportPageSize(),m=n.field?e.current.getColumnIndex(n.field):0,g=f.length>0?0:null,b=f.length>0?f.length-1:null,v=Math.max(0,GO(e).length-1),y=zL(e);let w=!0;if("Tab"!==s.key||"content"!==t.tabNavigation||s.shiftKey){switch(s.key){case"ArrowDown":i?c(m,s):null!==g&&a(m,d(g));break;case"ArrowRight":{const e=gB({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:r});null!==e&&l(e,s);break}case"ArrowLeft":{const e=mB({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:r});null!==e&&l(e,s);break}case"ArrowUp":y>0&&u(m,y-1,s);break;case"PageDown":null!==g&&null!==b&&a(m,d(Math.min(g+h,b)));break;case"Home":l(0,s);break;case"End":l(v,s);break;case"Enter":(s.ctrlKey||s.metaKey)&&e.current.toggleColumnMenu(n.field);break;case"Tab":s.shiftKey?0===m?y>0?u(v,y-1,s):w=!1:l(m-1,s):m===v?i?c(0,s):"all"===t.tabNavigation&&null!==g?a(0,d(g)):w=!1:l(m+1,s);break;case" ":break;default:w=!1}w&&s.preventDefault()}else null!==g&&(a(0,d(g)),s.preventDefault())},[e,t.tabNavigation,o,i,c,a,d,r,l,u]),f=s.useCallback((n,i)=>{const s=DL(e)===n.field;if(FL(e)===n.field||s&&"Tab"!==i.key)return;if(!vD(i.key)&&"Tab"!==i.key)return;if("Tab"===i.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&i.shiftKey))return;const u=o(),p=e.current.getViewportPageSize(),f=n.field?e.current.getColumnIndex(n.field):0,h=u.length>0?0:null,m=u.length>0?u.length-1:null,g=Math.max(0,GO(e).length-1);let b=!0;if("Tab"!==i.key||"content"!==t.tabNavigation||i.shiftKey){switch(i.key){case"ArrowDown":null!==h&&a(f,d(h));break;case"ArrowRight":{const e=gB({currentColIndex:f,firstColIndex:0,lastColIndex:g,isRtl:r});null!==e&&c(e,i);break}case"ArrowLeft":{const t=mB({currentColIndex:f,firstColIndex:0,lastColIndex:g,isRtl:r});null!==t?c(t,i):e.current.setColumnHeaderFilterFocus(n.field,i);break}case"ArrowUp":l(f,i);break;case"PageDown":null!==h&&null!==m&&a(f,d(Math.min(h+p,m)));break;case"Home":c(0,i);break;case"End":c(g,i);break;case"Tab":i.shiftKey?0===f?l(g,i):c(f-1,i):f===g?"all"===t.tabNavigation&&null!==h?a(0,d(h)):b=!1:c(f+1,i);break;case" ":break;default:b=!1}b&&i.preventDefault()}else null!==h&&(a(0,d(h)),i.preventDefault())},[e,t.tabNavigation,o,c,r,l,a,d]),h=s.useCallback((n,r)=>{const i=LF(e);if(null===i)return;const{field:s,depth:c}=i,{fields:p,depth:f,maxDepth:h}=n;if(!vD(r.key)&&"Tab"!==r.key)return;if("Tab"===r.key&&("none"===t.tabNavigation||"content"===t.tabNavigation&&r.shiftKey))return;const m=o(),g=e.current.getViewportPageSize(),b=e.current.getColumnIndex(s),v=s?e.current.getColumnIndex(s):0,y=m.length>0?0:null,w=m.length>0?m.length-1:null,x=Math.max(0,GO(e).length-1);let S=!0;if("Tab"!==r.key||"content"!==t.tabNavigation||r.shiftKey){switch(r.key){case"ArrowDown":f===h-1?l(b,r):u(b,c+1,r);break;case"ArrowUp":f>0&&u(b,c-1,r);break;case"ArrowRight":{const e=p.length-p.indexOf(s)-1;b+e+1<=x&&u(b+e+1,c,r);break}case"ArrowLeft":{const e=p.indexOf(s);b-e-1>=0&&u(b-e-1,c,r);break}case"PageDown":null!==y&&null!==w&&a(v,d(Math.min(y+g,w)));break;case"Home":u(0,c,r);break;case"End":u(x,c,r);break;case"Tab":if(r.shiftKey){const e=b-p.indexOf(s)-1;e<0?0===f?S=!1:u(x,c-1,r):u(e,c,r)}else{const e=b+(p.length-p.indexOf(s)-1)+1;e>x&&f===h-1?l(0,r):e>x?u(0,c+1,r):u(e,c,r)}break;case" ":break;default:S=!1}S&&r.preventDefault()}else null!==y&&(a(0,d(y)),r.preventDefault())},[e,t.tabNavigation,o,l,u,a,d]),m=s.useCallback((n,s)=>{if(KN(s))return;const u=e.current.getCellParams(n.id,n.field);if(u.cellMode===xO.Edit||!vD(s.key)&&"Tab"!==s.key)return;if("Tab"===s.key&&("none"===t.tabNavigation||"header"===t.tabNavigation&&!s.shiftKey))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:s,cell:u}))return;const p=o();if(0===p.length)return;const f=i?c:l,h=e.current.getViewportPageSize(),m=n.field?e.current.getColumnIndex(n.field):0,g=p.findIndex(e=>e.id===n.id),b=p.length-1,v=Math.max(0,GO(e).length-1);let y=!0;if("Tab"===s.key&&"header"===t.tabNavigation&&s.shiftKey)return f(v,s),void s.preventDefault();switch(s.key){case"ArrowDown":g<b&&a(m,d(g+1),r?"right":"left","down");break;case"ArrowUp":g>0?a(m,d(g-1)):f(m,s);break;case"ArrowRight":{const e=gB({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:r});null!==e&&a(e,d(g),r?"left":"right");break}case"ArrowLeft":{const e=mB({currentColIndex:m,firstColIndex:0,lastColIndex:v,isRtl:r});null!==e&&a(e,d(g),r?"right":"left");break}case"Tab":s.shiftKey?0===m&&0===g?"all"===t.tabNavigation?f(v,s):y=!1:0===m?a(v,d(g-1)):a(m-1,d(g),"left"):m===v?g!==b?a(0,d(g+1)):y=!1:a(m+1,d(g),"right");break;case" ":{if(n.field===zD)break;const e=n.colDef;if(e&&("__tree_data_group__"===e.field||(e=>e===ND||null!==(e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null})(e))(e.field)))break;!s.shiftKey&&g<b&&a(m,d(Math.min(g+h,b)));break}case"PageDown":g<b&&a(m,d(Math.min(g+h,b)));break;case"PageUp":{const e=Math.max(g-h,0);e!==g&&e>=0?a(m,d(e)):l(m,s);break}case"Home":s.ctrlKey||s.metaKey||s.shiftKey?a(0,d(0)):a(0,d(g));break;case"End":s.ctrlKey||s.metaKey||s.shiftKey?a(v,d(b)):a(v,d(g));break;default:y=!1}y&&s.preventDefault()},[e,t.tabNavigation,o,r,a,d,i,c,l]),g=s.useCallback((e,{event:t})=>" "!==t.key&&e,[]);K$(e,"canStartEditing",g),KI(e,"columnHeaderKeyDown",p),KI(e,"headerFilterKeyDown",f),KI(e,"columnGroupHeaderKeyDown",h),KI(e,"cellKeyDown",m)},yB=(e,t)=>{const n=f({},_F(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);BF(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??("client"===t.paginationMode?e.rows?.totalRowCount:void 0),o=t.paginationMeta??t.initialState?.pagination?.meta??{};return f({},e,{pagination:f({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:!0===t.pagination,paginationMode:t.paginationMode})})},wB=(e,t)=>{((e,t)=>{const n=JL(e,"useGridPaginationMeta");e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:GF,changeEvent:"paginationMetaChange"});const r=s.useCallback(t=>{GF(e)!==t&&(n.debug("Setting 'paginationMeta' to",t),e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{meta:t})})))},[e,n]);ZL(e,{setPaginationMeta:r},"public");const o=s.useCallback((n,r)=>{const o=GF(e);return r.exportOnlyDirtyModels&&null==t.paginationMeta&&null==t.initialState?.pagination?.meta?n:f({},n,{pagination:f({},n.pagination,{meta:o})})},[e,t.paginationMeta,t.initialState?.pagination?.meta]),i=s.useCallback((t,n)=>{const r=n.stateToRestore.pagination?.meta?n.stateToRestore.pagination.meta:GF(e);return e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{meta:r})})),t},[e]);K$(e,"exportState",o),K$(e,"restoreState",i),s.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])})(e,t),((e,t)=>{const n=JL(e,"useGridPaginationModel"),r=uP(e,ZI),o=s.useRef(nF(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:WF,changeEvent:"paginationModelChange"});const a=s.useCallback(t=>{const r=WF(e);t!==r.page&&(n.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:r.pageSize}))},[e,n]),l=s.useMemo(()=>Yg(a,0),[a]),c=s.useCallback(t=>{const r=WF(e);t!==r.pageSize&&(n.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:r.page}))},[e,n]),u=s.useCallback(r=>{const o=WF(e);r!==o&&(n.debug("Setting 'paginationModel' to",r),e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{paginationModel:sB(e.pagination,t.signature,r)})}),"setPaginationModel"))},[e,n,t.signature]);ZL(e,{setPage:a,setPageSize:c,setPaginationModel:u},"public");const d=s.useCallback((n,r)=>{const o=WF(e);return!r.exportOnlyDirtyModels||null!=t.paginationModel||null!=t.initialState?.pagination?.paginationModel||0!==o.page&&o.pageSize!==(t.autoPageSize?0:100)?f({},n,{pagination:f({},n.pagination,{paginationModel:o})}):n},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),p=s.useCallback((n,r)=>{const o=r.stateToRestore.pagination?.paginationModel?f({},_F(t.autoPageSize),r.stateToRestore.pagination?.paginationModel):WF(e);return e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{paginationModel:sB(e.pagination,t.signature,o)})}),"stateRestorePreProcessing"),n},[e,t.autoPageSize,t.signature]);K$(e,"exportState",d),K$(e,"restoreState",p);const h=s.useCallback(()=>{if(!t.autoPageSize)return;const n=e.current.getRootDimensions(),r=Math.max(1,Math.floor(n.viewportInnerSize.height/i));e.current.setPageSize(r)},[e,t.autoPageSize,i]),m=s.useCallback(t=>{if(null==t)return;const n=WF(e);if(0===n.page)return;const r=YF(e);n.page>r-1&&queueMicrotask(()=>{l(Math.max(0,r-1))})},[e,l]),g=s.useCallback(()=>{0!==WF(e).page&&l(0),0!==e.current.getScrollPosition().top&&e.current.scroll({top:0})},[e,l]),b=s.useMemo(()=>Yg(g,0),[g]),v=s.useCallback(t=>{const n=f({},t,{items:hF(e)});LA(n,o.current)||(o.current=n,b())},[e,b]);KI(e,"viewportInnerSizeChange",h),KI(e,"paginationModelChange",()=>{const t=WF(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})}),KI(e,"rowCountChange",m),KI(e,"sortModelChange",b),KI(e,"filterModelChange",v);const y=s.useRef(!0);s.useEffect(()=>{y.current?y.current=!1:t.pagination&&e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{paginationModel:sB(e.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),s.useEffect(()=>{e.current.setState(e=>{const n=!0===t.pagination;return e.pagination.paginationMode===t.paginationMode&&e.pagination.enabled===n?e:f({},e,{pagination:f({},e.pagination,{paginationMode:t.paginationMode,enabled:n})})})},[e,t.paginationMode,t.pagination]),s.useEffect(h,[h])})(e,t),((e,t)=>{const n=JL(e,"useGridRowCount"),r=ob(()=>WF(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:UF,changeEvent:"rowCountChange"});const o=s.useCallback(t=>{UF(e)!==t&&(n.debug("Setting 'rowCount' to",t),e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{rowCount:t})})))},[e,n]);ZL(e,{setRowCount:o},"public");const i=s.useCallback((n,r)=>{const o=UF(e);return r.exportOnlyDirtyModels&&null==t.rowCount&&null==t.initialState?.pagination?.rowCount?n:f({},n,{pagination:f({},n.pagination,{rowCount:o})})},[e,t.rowCount,t.initialState?.pagination?.rowCount]),a=s.useCallback((t,n)=>{const r=n.stateToRestore.pagination?.rowCount?n.stateToRestore.pagination.rowCount:UF(e);return e.current.setState(e=>f({},e,{pagination:f({},e.pagination,{rowCount:r})})),t},[e]);K$(e,"exportState",i),K$(e,"restoreState",a);const l=s.useCallback(n=>{"client"!==t.paginationMode&&r.current&&n.pageSize!==r.current&&(r.current=n.pageSize,-1===UF(e)&&e.current.setPage(0))},[t.paginationMode,r,e]);KI(e,"paginationModelChange",l),s.useEffect(()=>{"server"===t.paginationMode&&null!=t.rowCount&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,t.rowCount]),UT(e.current.store,()=>!(!1!==GF(e).hasNextPage)||("client"===t.paginationMode?pF(e):void 0),(t,n)=>{if(!0===n&&-1!==UF(e)){const t=pF(e),n=WF(e);e.current.setRowCount(n.pageSize*n.page+t)}else"number"==typeof n&&e.current.setRowCount(n)}),s.useEffect(()=>{"client"===t.paginationMode&&e.current.setRowCount(pF(e))},[e,t.paginationMode])})(e,t)},xB=(e,t)=>f({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),SB=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},CB=["id","field"],kB=["id","field"],EB=["id"],RB=["id"],MB=e=>f({},e,{editRows:{}}),PB=(e,t,n)=>{((e,t)=>{const[n,r]=s.useState({}),o=s.useRef(n),i=s.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:c,onCellModesModelChange:u}=t,p=e=>(...n)=>{t.editMode===wO.Cell&&e(...n)},h=s.useCallback((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI X: The cell with id=${t} and field=${n} is not editable.`)},[e]),m=s.useCallback((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI X: The cell with id=${t} and field=${n} is not in ${r} mode.`)},[e]),g=s.useCallback((t,n)=>{if(!t.isEditable)return;if(t.cellMode===xO.Edit)return;const r=f({},t,{reason:MO.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)},[e]),b=s.useCallback((t,n)=>{if(t.cellMode===xO.View)return;if(e.current.getCellMode(t.id,t.field)===xO.View)return;const r=f({},t,{reason:PO.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)},[e]),v=s.useCallback((t,n)=>{if(t.cellMode===xO.Edit){if(229===n.which)return;let r;if("Escape"===n.key?r=PO.escapeKeyDown:"Enter"===n.key?r=PO.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?PO.shiftTabKeyDown:PO.tabKeyDown,n.preventDefault()),r){const o=f({},t,{reason:r});e.current.publishEvent("cellEditStop",o,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"cell"}))return;if(bD(n)?r=MO.printableKeyDown:wD(n)?r=MO.pasteKeyDown:"Enter"===n.key?r=MO.enterKeyDown:"Backspace"!==n.key&&"Delete"!==n.key||(r=MO.deleteKeyDown),r){const o=f({},t,{reason:r,key:n.key});e.current.publishEvent("cellEditStart",o,n)}}},[e]),y=s.useCallback(t=>{const{id:n,field:r,reason:o}=t,i={id:n,field:r};o!==MO.printableKeyDown&&o!==MO.deleteKeyDown&&o!==MO.pasteKeyDown||(i.deleteValue=!0),e.current.startCellEditMode(i)},[e]),w=s.useCallback(t=>{const{id:n,field:r,reason:o}=t;let i;e.current.runPendingEditCellValueMutation(n,r),o===PO.enterKeyDown?i="below":o===PO.tabKeyDown?i="right":o===PO.shiftTabKeyDown&&(i="left");const a="escapeKeyDown"===o;e.current.stopCellEditMode({id:n,field:r,ignoreModifications:a,cellToFocusAfter:i})},[e]);var x;KI(e,"cellDoubleClick",p(g)),KI(e,"cellFocusOut",p(b)),KI(e,"cellKeyDown",p(v)),KI(e,"cellEditStart",p(y)),KI(e,"cellEditStop",p(w)),YI(e,"cellEditStart",t.onCellEditStart),YI(e,"cellEditStop",(x=t.onCellEditStop,async(...t)=>{if(x){const{id:n,field:r}=t[0],o=e.current.state.editRows,i=o[n][r]?.error;i||x(...t)}}));const S=s.useCallback((t,n)=>{const r=EA(e);return r[t]&&r[t][n]?xO.Edit:xO.View},[e]),C=eb(n=>{const i=n!==t.cellModesModel;u&&i&&u(n,{api:e.current}),t.cellModesModel&&i||(r(n),o.current=n,e.current.publishEvent("cellModesModelChange",n))}),k=s.useCallback((e,t,n)=>{const r=f({},o.current);if(null!==n)r[e]=f({},r[e],{[t]:f({},n)});else{const n=d(r[e],[t].map(T));r[e]=n,0===Object.keys(r[e]).length&&delete r[e]}C(r)},[C]),E=s.useCallback((t,n,r)=>{e.current.setState(e=>{const o=f({},e.editRows);return null!==r?o[t]=f({},o[t],{[n]:f({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),f({},e,{editRows:o})})},[e]),R=s.useCallback(e=>{const{id:t,field:n}=e,r=d(e,CB);h(t,n),m(t,n,xO.View),k(t,n,f({mode:xO.Edit},r))},[h,m,k]),M=eb(async t=>{const{id:n,field:r,deleteValue:o,initialValue:i}=t,a=e.current.getCellValue(n,r);let l=a;o?l=SB(e.current.getColumn(r)):i&&(l=i);const s=e.current.getColumn(r),c=!!s.preProcessEditCellProps&&o;let u={value:l,error:!1,isProcessingProps:c};if(E(n,r,u),e.current.setCellFocus(n,r),c&&(u=await Promise.resolve(s.preProcessEditCellProps({id:n,row:e.current.getRow(n),props:u,hasChanged:l!==a})),e.current.getCellMode(n,r)===xO.Edit)){const t=EA(e);E(n,r,f({},u,{value:t[n][r].value,isProcessingProps:!1}))}}),P=s.useCallback(e=>{const{id:t,field:n}=e,r=d(e,kB);m(t,n,xO.Edit),k(t,n,f({mode:xO.View},r))},[m,k]),I=eb(async n=>{const{id:r,field:o,ignoreModifications:s,cellToFocusAfter:c="none"}=n;m(r,o,xO.Edit),e.current.runPendingEditCellValueMutation(r,o);const u=()=>{E(r,o,null),k(r,o,null),"none"!==c&&e.current.moveFocusToRelativeCell(r,o,c)};if(s)return void u();const d=EA(e),{error:p,isProcessingProps:f}=d[r][o],h=e.current.getRow(r);if(p||f)return i.current[r][o].mode=xO.Edit,void k(r,o,{mode:xO.Edit});const g=e.current.getRowWithUpdatedValuesFromCellEditing(r,o);if(t.dataSource?.updateRow){if(LA(h,g))return void u();const t=()=>{i.current[r][o].mode=xO.Edit,k(r,o,{mode:xO.Edit})},n={rowId:r,updatedRow:g,previousRow:h};try{await e.current.dataSource.editRow(n),u()}catch{t()}}else if(a){const t=e=>{i.current[r][o].mode=xO.Edit,k(r,o,{mode:xO.Edit}),l&&l(e)};try{Promise.resolve(a(g,h,{rowId:r})).then(t=>{e.current.updateRows([t]),u()}).catch(t)}catch(e){t(e)}}else e.current.updateRows([g]),u()}),O=s.useCallback(async t=>{const{id:n,field:r,value:o,debounceMs:i,unstable_skipValueParser:a}=t;h(n,r),m(n,r,xO.Edit);const l=e.current.getColumn(r),s=e.current.getRow(n);let c=o;l.valueParser&&!a&&(c=l.valueParser(o,s,l,e));let u=EA(e),d=f({},u[n][r],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});if(l.preProcessEditCellProps){const e=o!==u[n][r].value;d=f({},d,{isProcessingProps:!0}),E(n,r,d),d=await Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:e}))}return e.current.getCellMode(n,r)!==xO.View&&(u=EA(e),d=f({},d,{isProcessingProps:!1}),d.value=l.preProcessEditCellProps?u[n][r].value:c,E(n,r,d),u=EA(e),!u[n]?.[r]?.error)},[e,h,m,E]),D=s.useCallback((t,n)=>{const r=e.current.getColumn(n),o=EA(e),i=e.current.getRow(t);if(!o[t]||!o[t][n])return e.current.getRow(t);const{value:a}=o[t][n];return r.valueSetter?r.valueSetter(a,i,r,e):f({},i,{[n]:a})},[e]),F={setCellEditingEditCellValue:O,getRowWithUpdatedValuesFromCellEditing:D};ZL(e,{getCellMode:S,startCellEditMode:R,stopCellEditMode:P},"public"),ZL(e,F,"private"),s.useEffect(()=>{c&&C(c)},[c,C]),Wh(()=>{const t=hI(e),r=i.current;i.current=bO(n),Object.entries(n).forEach(([n,o])=>{Object.entries(o).forEach(([o,i])=>{const a=r[n]?.[o]?.mode||xO.View,l=t[n]?e.current.getRowId(t[n]):n;i.mode===xO.Edit&&a===xO.View?M(f({id:l,field:o},i)):i.mode===xO.View&&a===xO.Edit&&I(f({id:l,field:o},i))})})},[e,n,M,I])})(e,t),((e,t)=>{const[n,r]=s.useState({}),o=s.useRef(n),i=s.useRef({}),a=s.useRef({}),l=s.useRef(void 0),c=s.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:p,rowModesModel:h,onRowModesModelChange:m}=t,g=e=>(...n)=>{t.editMode===wO.Row&&e(...n)},b=s.useCallback((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI X: The cell with id=${t} and field=${n} is not editable.`)},[e]),v=s.useCallback((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI X: The row with id=${t} is not in ${n} mode.`)},[e]),y=s.useCallback(t=>{const n=EA(e);return Object.values(n[t]).some(e=>e.error)},[e]),w=s.useCallback((t,n)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===SO.Edit)return;const r=f({},e.current.getRowParams(t.id),{field:t.field,reason:TO.cellDoubleClick});e.current.publishEvent("rowEditStart",r,n)},[e]),x=s.useCallback(e=>{c.current=e},[]),S=s.useCallback((t,n)=>{t.isEditable&&e.current.getRowMode(t.id)!==SO.View&&(c.current=null,l.current=setTimeout(()=>{if(c.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===SO.View)return;if(y(t.id))return;const r=f({},e.current.getRowParams(t.id),{field:t.field,reason:IO.rowFocusOut});e.current.publishEvent("rowEditStop",r,n)}}))},[e,y]);s.useEffect(()=>()=>{clearTimeout(l.current)},[]);const C=s.useCallback((t,n)=>{if(t.cellMode===SO.Edit){if(229===n.which)return;let r;if("Escape"===n.key)r=IO.escapeKeyDown;else if("Enter"===n.key)r=IO.enterKeyDown;else if("Tab"===n.key){const o=KO(e).filter(n=>e.current.getColumn(n).type===AD||e.current.isCellEditable(e.current.getCellParams(t.id,n)));if(n.shiftKey?t.field===o[0]&&(r=IO.shiftTabKeyDown):t.field===o[o.length-1]&&(r=IO.tabKeyDown),n.preventDefault(),!r){const r=o.findIndex(e=>e===t.field),i=o[n.shiftKey?r-1:r+1];e.current.setCellFocus(t.id,i)}}if(r){if(r!==IO.escapeKeyDown&&y(t.id))return;const o=f({},e.current.getRowParams(t.id),{reason:r,field:t.field});e.current.publishEvent("rowEditStop",o,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"row"}))return;if(bD(n)||wD(n)?r=TO.printableKeyDown:"Enter"===n.key?r=TO.enterKeyDown:"Backspace"!==n.key&&"Delete"!==n.key||(r=TO.deleteKeyDown),r){const o=f({},e.current.getRowParams(t.id),{field:t.field,reason:r});e.current.publishEvent("rowEditStart",o,n)}}},[e,y]),k=s.useCallback(t=>{const{id:n,field:r,reason:o}=t,i={id:n,fieldToFocus:r};o!==TO.printableKeyDown&&o!==TO.deleteKeyDown||(i.deleteValue=!!r),e.current.startRowEditMode(i)},[e]),E=s.useCallback(t=>{const{id:n,reason:r,field:o}=t;let i;e.current.runPendingEditCellValueMutation(n),r===IO.enterKeyDown?i="below":r===IO.tabKeyDown?i="right":r===IO.shiftTabKeyDown&&(i="left");const a="escapeKeyDown"===r;e.current.stopRowEditMode({id:n,ignoreModifications:a,field:o,cellToFocusAfter:i})},[e]);KI(e,"cellDoubleClick",g(w)),KI(e,"cellFocusIn",g(x)),KI(e,"cellFocusOut",g(S)),KI(e,"cellKeyDown",g(C)),KI(e,"rowEditStart",g(k)),KI(e,"rowEditStop",g(E)),YI(e,"rowEditStart",t.onRowEditStart),YI(e,"rowEditStop",t.onRowEditStop);const R=s.useCallback(n=>RA(e,{rowId:n,editMode:t.editMode})?SO.Edit:SO.View,[e,t.editMode]),M=eb(n=>{const i=n!==t.rowModesModel;m&&i&&m(n,{api:e.current}),t.rowModesModel&&i||(r(n),o.current=n,e.current.publishEvent("rowModesModelChange",n))}),P=s.useCallback((e,t)=>{const n=f({},o.current);null!==t?n[e]=f({},t):delete n[e],M(n)},[M]),I=s.useCallback((t,n)=>{e.current.setState(e=>{const r=f({},e.editRows);return null!==n?r[t]=n:delete r[t],f({},e,{editRows:r})})},[e]),O=s.useCallback((t,n,r)=>{e.current.setState(e=>{const o=f({},e.editRows);return null!==r?o[t]=f({},o[t],{[n]:f({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),f({},e,{editRows:o})})},[e]),D=s.useCallback(e=>{const{id:t}=e,n=d(e,EB);v(t,SO.View),P(t,f({mode:SO.Edit},n))},[v,P]),F=eb(t=>{const{id:n,fieldToFocus:r,deleteValue:o,initialValue:i}=t,l=e.current.getRow(n),s=VO(e),c=s.reduce((t,a)=>{const l=a.field;if(!e.current.getCellParams(n,l).isEditable)return t;const s=e.current.getColumn(l);let c=e.current.getCellValue(n,l);return r===l&&(o||i)&&(o?c=SB(s):i&&(c=i)),t[l]={value:c,error:!1,isProcessingProps:s.editable&&!!s.preProcessEditCellProps&&o},t},{});a.current[n]=l,I(n,c),r&&e.current.setCellFocus(n,r),s.filter(t=>e.current.getCellParams(n,t.field).isEditable&&t.editable&&!!t.preProcessEditCellProps&&o).forEach(t=>{const r=t.field,a=e.current.getCellValue(n,r),s=o?SB(t):i??a;Promise.resolve(t.preProcessEditCellProps({id:n,row:l,props:c[r],hasChanged:s!==a})).then(t=>{if(e.current.getRowMode(n)===SO.Edit){const o=EA(e);O(n,r,f({},t,{value:o[n][r].value,isProcessingProps:!1}))}})})}),L=s.useCallback(e=>{const{id:t}=e,n=d(e,RB);v(t,SO.Edit),P(t,f({mode:SO.View},n))},[v,P]),A=eb(async n=>{const{id:r,ignoreModifications:o,field:l,cellToFocusAfter:s="none"}=n;e.current.runPendingEditCellValueMutation(r);const c=()=>{"none"!==s&&l&&e.current.moveFocusToRelativeCell(r,l,s),I(r,null),P(r,null),delete a.current[r]};if(o)return void c();const d=EA(e),f=a.current[r];if(Object.values(d[r]).some(e=>e.isProcessingProps))return void(i.current[r].mode=SO.Edit);if(y(r))return i.current[r].mode=SO.Edit,void P(r,{mode:SO.Edit});const h=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(t.dataSource?.updateRow){if(LA(f,h))return void c();const t=()=>{i.current[r].mode=SO.Edit,P(r,{mode:SO.Edit})},n={rowId:r,updatedRow:h,previousRow:f};try{await e.current.dataSource.editRow(n),c()}catch{t()}}else if(u){const t=e=>{i.current[r]&&(i.current[r].mode=SO.Edit,P(r,{mode:SO.Edit})),p&&p(e)};try{Promise.resolve(u(h,f,{rowId:r})).then(t=>{e.current.updateRows([t]),c()}).catch(t)}catch(e){t(e)}}else e.current.updateRows([h]),c()}),$=s.useCallback(t=>{const{id:n,field:r,value:o,debounceMs:i,unstable_skipValueParser:a}=t;b(n,r);const l=e.current.getColumn(r),s=e.current.getRow(n);let c=o;l.valueParser&&!a&&(c=l.valueParser(o,s,l,e));let u=EA(e),p=f({},u[n][r],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return l.preProcessEditCellProps||O(n,r,p),new Promise(t=>{const o=[];if(l.preProcessEditCellProps){const i=p.value!==u[n][r].value;p=f({},p,{isProcessingProps:!0}),O(n,r,p);const a=d(u[n],[r].map(T)),h=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:p,hasChanged:i,otherFieldsProps:a})).then(o=>{e.current.getRowMode(n)!==SO.View?(u=EA(e),(o=f({},o,{isProcessingProps:!1})).value=l.preProcessEditCellProps?u[n][r].value:c,O(n,r,o)):t(!1)});o.push(h)}Object.entries(u[n]).forEach(([i,a])=>{if(i===r)return;const l=e.current.getColumn(i);if(!l.preProcessEditCellProps)return;a=f({},a,{isProcessingProps:!0}),O(n,i,a),u=EA(e);const c=d(u[n],[i].map(T)),p=Promise.resolve(l.preProcessEditCellProps({id:n,row:s,props:a,hasChanged:!1,otherFieldsProps:c})).then(r=>{e.current.getRowMode(n)!==SO.View?(r=f({},r,{isProcessingProps:!1}),O(n,i,r)):t(!1)});o.push(p)}),Promise.all(o).then(()=>{e.current.getRowMode(n)===SO.Edit?(u=EA(e),t(!u[n][r].error)):t(!1)})})},[e,b,O]),N=s.useCallback(t=>{const n=EA(e),r=e.current.getRow(t);if(!n[t])return e.current.getRow(t);let o=f({},a.current[t],r);return Object.entries(n[t]).forEach(([t,n])=>{const r=e.current.getColumn(t);r?.valueSetter?o=r.valueSetter(n.value,o,r,e):o[t]=n.value}),o},[e]),z={setRowEditingEditCellValue:$,getRowWithUpdatedValuesFromRowEditing:N};ZL(e,{getRowMode:R,startRowEditMode:D,stopRowEditMode:L},"public"),ZL(e,z,"private"),s.useEffect(()=>{h&&M(h)},[h,M]),Wh(()=>{const t=hI(e),r=i.current;i.current=bO(n);const o=new Set([...Object.keys(n),...Object.keys(r)]);Array.from(o).forEach(o=>{const i=n[o]??{mode:SO.View},a=r[o]?.mode||SO.View,l=t[o]?e.current.getRowId(t[o]):o;i.mode===SO.Edit&&a===SO.View?F(f({id:l},i)):i.mode===SO.View&&a===SO.Edit&&A(f({id:l},i))})},[e,n,F,A])})(e,t);const r=s.useRef({}),{isCellEditable:o}=t,i=n.hooks.useIsCellEditable(e,t),a=s.useCallback(e=>!!i(e)&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(!o||o(e)))),[o,i]);s.useEffect(()=>{const e=r.current;return()=>{Object.entries(e).forEach(([t,n])=>{Object.keys(n).forEach(n=>{const[r]=e[t][n];clearTimeout(r),delete e[t][n]})})}},[]);const l=s.useCallback((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach(t=>{const[,n]=r.current[e][t];n()})},[]),c=s.useCallback(n=>{const{id:o,field:i,debounceMs:a}=n;return new Promise(l=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const i=setTimeout(()=>{o(),delete r.current[e][t]},n);r.current[e][t]=[i,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,i,a,async()=>{const r=t.editMode===wO.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,i)===xO.Edit){const e=await r(n);l(e)}})})},[e,t.editMode]),u=s.useCallback((n,r)=>t.editMode===wO.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(n,r):e.current.getRowWithUpdatedValuesFromRowEditing(n),[e,t.editMode]),p=s.useCallback((t,n)=>{const r=EA(e);return r[t]?.[n]??null},[e]),h={runPendingEditCellValueMutation:l};ZL(e,{isCellEditable:a,setEditCellValue:c,getRowWithUpdatedValues:u,unstable_getEditCellMeta:p},"public"),ZL(e,h,"private")},TB=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=TI({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({},e,{rows:OI({apiRef:n,rowCountProp:t.rowCount,loadingProp:!!r||t.loading,previousTree:null,previousTreeDepths:null})})},IB=e=>"full"===e.updates.type?(e=>{const t={[EI]:f({},{type:"group",id:EI,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:EI,type:"leaf",groupingKey:null}}return{groupingName:W_,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const n=f({},e),r={};for(let e=0;e<t.remove.length;e+=1){const o=t.remove[e];r[o]=!0,delete n[o]}for(let e=0;e<t.insert.length;e+=1){const r=t.insert[e];n[r]={id:r,depth:0,parent:EI,type:"leaf",groupingKey:null}}const o=n[EI];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(e=>!r[e])),n[EI]=f({},o,{children:i}),{groupingName:W_,tree:n,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions});class OB extends Error{}function DB(e,t,n){const r=s.useCallback(t=>({field:t,colDef:e.current.getColumn(t)}),[e]),o=s.useCallback(t=>{const n=e.current.getRow(t);if(!n)throw new OB(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:n}},[e]),i=s.useCallback((t,n,r,{cellMode:o,colDef:i,hasFocus:a,rowNode:l,tabIndex:s,value:c,formattedValue:u})=>{const d={id:t,field:n,row:r,rowNode:l,colDef:i,cellMode:o,hasFocus:a,tabIndex:s,value:void 0!==c?c:e.current.getRowValue(r,i),formattedValue:void 0!==u?u:e.current.getRowFormattedValue(r,i),isEditable:!1,api:e.current};return d.isEditable=i&&e.current.isCellEditable(d),d},[e]),a=s.useCallback((n,r)=>{const o=e.current.getRow(n),i=gI(e,n);if(!o||!i)throw new OB(`No row with id #${n} found`);const a=DF(e),l=$F(e),s=e.current.getCellMode(n,r);return e.current.getCellParamsForRow(n,r,o,{colDef:t.listView&&t.listViewColumn?.field===r?jO(e):e.current.getColumn(r),rowNode:i,hasFocus:null!==a&&a.field===r&&a.id===n,tabIndex:l&&l.field===r&&l.id===n?0:-1,cellMode:s})},[e,t.listView,t.listViewColumn?.field]),l=s.useCallback(t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${UN(t)}"]`)}(e.current.rootElementRef.current,t):null,[e]),c=s.useCallback(t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(GN(t))}(e.current.rootElementRef.current,t):null,[e]),u=s.useCallback((t,n)=>e.current.rootElementRef.current?function(e,{id:t,field:n}){const r=`${GN(t)} .${YM.cell}[data-field="${UN(n)}"]`;return e.querySelector(r)}(e.current.rootElementRef.current,{id:t,field:n}):null,[e]),d=n.hooks.useGridParamsOverridableMethods(e),p={getCellValue:d.getCellValue,getCellParams:a,getCellElement:u,getRowValue:d.getRowValue,getRowFormattedValue:d.getRowFormattedValue,getRowParams:o,getRowElement:c,getColumnHeaderParams:r,getColumnHeaderElement:l},f={getCellParamsForRow:i};ZL(e,p,"public"),ZL(e,f,"private")}const FB={type:"include",ids:new Set},LB=(e,t)=>f({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??FB:FB}),AB=(e,t)=>{const n=(e=>{const{classes:t}=e;return s.useMemo(()=>zm({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},qM,t),[t])})({classes:t.classes}),r=s.useCallback(r=>{const o=f({},rL,{cellClassName:n.cellCheckbox,headerClassName:n.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=null!=r.lookup[nL];return i&&!a?(r.lookup[nL]=o,r.orderedFields=[nL,...r.orderedFields]):!i&&a?(delete r.lookup[nL],r.orderedFields=r.orderedFields.filter(e=>e!==nL)):i&&a&&(r.lookup[nL]=f({},o,r.lookup[nL]),t.columns.some(e=>e.field===nL)||(r.orderedFields=[nL,...r.orderedFields.filter(e=>e!==nL)])),r},[e,n,t.columns,t.checkboxSelection]);K$(e,"hydrateColumns",r)},$B=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return f({},e,{sorting:{sortModel:rO(n,t.disableMultipleColumnsSorting),sortedRows:[]}})};function NB(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;return r>t?o:i-t>n?i-t:o<n?o:void 0}const zB={width:0,height:0},jB={isReady:!1,root:zB,viewportOuterSize:zB,viewportInnerSize:zB,contentSize:zB,minimumSize:zB,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},_B=(e,t,n)=>{const r=f({},jB,function(e,t,n,r){const o=zI(e.rowHeight,G$.rowHeight);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:BB(t),headersTotalHeight:WL(t,e),leftPinnedWidth:r.left.reduce((e,t)=>e+t.computedWidth,0),rightPinnedWidth:r.right.reduce((e,t)=>e+t.computedWidth,0)}}(t,n,ZI(n),YO(n)));return n.current.store.state.dimensions=r,f({},e,{dimensions:r})},BB=qT(GO,QO,(e,t)=>{const n=e.length;return 0===n?0:AA(t[n-1]+e[n-1].computedWidth,1)});function HB(e,t){const n=(t,n)=>e.style.setProperty(t,n);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}const VB=["groupId","children"],WB=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(OO(r))continue;const{groupId:o,children:i}=r,a=d(r,VB);if(!o)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const l=f({},a,{groupId:o}),s=WB(i);if(void 0!==s[o]||void 0!==t[o])throw new Error(`MUI X: The groupId ${o} is used multiple times in the columnGroupingModel.`);Object.assign(t,s),t[o]=l}return t},UB=(e,t,n)=>{if(OO(e)){if(void 0!==n[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:r,children:o}=e;o.forEach(e=>{UB(e,[...t,r],n)})},GB=e=>{if(!e)return{};const t={};return e.forEach(e=>{UB(e,[],t)}),t},KB=(e,t,n)=>{const r=e=>t[e]??[],o=[],i=Math.max(0,...e.map(e=>r(e).length)),a=(e,t,n)=>{const o=r(e),i=r(t);for(let e=0;e<=n;e+=1)if(o[e]!==i[e])return!1;return!0},l=(e,t)=>{const r=n?.left,o=n?.right,i=!!r?.includes(e),a=!!r?.includes(t),l=!!o?.includes(e),s=!!o?.includes(t);return i!==a||l!==s};for(let t=0;t<i;t+=1){const n=[];for(let o=0;o<e.length;o+=1){const i=e[o],s=r(i)[t]??null;if(0===n.length){n.push({columnFields:[i],groupId:s});continue}const c=n[n.length-1],u=c.columnFields[c.columnFields.length-1];c.groupId!==s||!a(u,i,t)||l(u,i)?n.push({columnFields:[i],groupId:s}):c.columnFields.push(i)}o.push(n)}return o},qB=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return f({},e,{columnGrouping:void 0});const r=BO(n),o=KO(n),i=WB(t.columnGroupingModel??[]),a=GB(t.columnGroupingModel??[]),l=KB(r,a,n.current.state.pinnedColumns??{}),s=0===o.length?0:Math.max(...o.map(e=>a[e]?.length??0));return f({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:s}})};function YB(e,t){if(void 0!==t&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function XB(e,t,n,r){let o=e;return o+="Right"===r?t-n.left:n.right-t,Math.round(o)}function QB(e,t){return t===AO.LEFT?e?"--DataGrid-rightPinnedWidth":"--DataGrid-leftPinnedWidth":e?"--DataGrid-leftPinnedWidth":"--DataGrid-rightPinnedWidth"}function ZB(e,t,n){return n===AO.LEFT?t?e.rightPinnedWidth:e.leftPinnedWidth:t?e.leftPinnedWidth:e.rightPinnedWidth}function JB(e){e.preventDefault(),e.stopImmediatePropagation()}function eH(e){const t=s.useRef(void 0),n=()=>k$(e),r=uP(e,n);s.useEffect(()=>{t.current&&!1===r&&(t.current.resolve(),t.current=void 0)});return()=>{if(!t.current){if(!1===n())return Promise.resolve();t.current=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}()}return t.current}}function tH(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(YM.autosizing),n.forEach(n=>{const o=function(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${UN(t)}"][role="gridcell"]`))}(e.current,n.field),i=o.map(e=>e.getBoundingClientRect().width??0),a=t.includeOutliers?i:function(e,t){if(e.length<4)return e;const n=e.slice();n.sort((e,t)=>e-t);const r=n[Math.floor(.25*n.length)],o=n[Math.floor(.75*n.length)-1],i=o-r,a=i<5?5:i*t;return n.filter(e=>e>r-a&&e<o+a)}(i,t.outliersFactor);if(t.includeHeaders){const t=(l=e.current,s=n.field,l.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${UN(s)}"][role="columnheader"]`));if(t){const e=t.querySelector(`.${YM.columnHeaderTitleContainer}`),n=Array.from(e.children),r=t.querySelector(`.${YM.menuIcon}`),o=window.getComputedStyle(e,null),i=parseInt(o.gap,10)||0,l=window.getComputedStyle(t,null),s=parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10);let c=0,u=0;for(let e=0;e<n.length;e+=1){const t=n[e];t.clientWidth>0&&(c+=1,u+=t.scrollWidth)}u+=1;const d=u+i*(c-1)+s+(r?.clientWidth??0);a.push(d)}}var l,s;const c=n.minWidth!==-1/0&&void 0!==n.minWidth,u=n.maxWidth!==1/0&&void 0!==n.maxWidth,d=c?n.minWidth:0,p=u?n.maxWidth:1/0,f=0===a.length?0:Math.max(...a);r[n.field]=gO(f,d,p)}),o.classList.remove(YM.autosizing),r}const nH=e=>f({},e,{columnResize:{resizingColumnField:""}});function rH(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const oH=(e,t)=>{const n=mm(),r=JL(e,"useGridColumnResize"),o=ob(rH).current,i=s.useRef(null),a=s.useRef(null),l=sb(),c=s.useRef(void 0),u=t=>{r.debug(`Updating width to ${t} for col ${o.colDef.field}`);const i=o.columnHeaderElement.offsetWidth,a=t-i,l=t-o.initialColWidth;if(l>0){const t=o.initialTotalWidth+l;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${t}px`)}o.colDef.computedWidth=t,o.colDef.width=t,o.colDef.flex=0,o.columnHeaderElement.style.width=`${t}px`;const s=o.headerFilterElement;s&&(s.style.width=`${t}px`),o.groupHeaderElements.forEach(e=>{const n=e;let r;r="1"===n.getAttribute("aria-colspan")?`${t}px`:`${n.offsetWidth+a}px`,n.style.width=r}),o.cellElements.forEach(e=>{const n=e;let r;r="1"===n.getAttribute("aria-colspan")?`${t}px`:`${n.offsetWidth+a}px`,n.style.setProperty("--width",r)});const c=ZT(e),u=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);u===AO.LEFT&&(iH(o.fillerLeft,"width",a),o.leftPinnedCellsAfter.forEach(e=>{iH(e,"left",a)}),o.leftPinnedHeadersAfter.forEach(e=>{iH(e,"left",a)}),e.current.rootElementRef?.current?.style.setProperty(QB(n,u),`${ZB(c,n,u)+l}px`)),u===AO.RIGHT&&(iH(o.fillerRight,"width",a),o.rightPinnedCellsBefore.forEach(e=>{iH(e,"right",a)}),o.rightPinnedHeadersBefore.forEach(e=>{iH(e,"right",a)}),e.current.rootElementRef?.current?.style.setProperty(QB(n,u),`${ZB(c,n,u)+l}px`))},d=t=>{if(y(),o.previousMouseClickEvent){const n=o.previousMouseClickEvent,r=n.timeStamp,i=n.clientX,a=n.clientY;if(t.timeStamp-r<300&&t.clientX===i&&t.clientY===a)return o.previousMouseClickEvent=void 0,void e.current.publishEvent("columnResizeStop",null,t)}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const t=_O(e);o.groupHeaderElements.forEach(e=>{const n=e,r=`${e.getAttribute("data-fields").slice(2,-2).split("-|-").reduce((e,n)=>!1!==t.columnVisibilityModel[n]?e+t.lookup[n].computedWidth:e,0)}px`;n.style.width=r})}l.start(0,()=>{e.current.publishEvent("columnResizeStop",null,t)})},p=(t,r,l)=>{const s=e.current.rootElementRef.current;var c,u;o.initialColWidth=t.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=t,o.columnHeaderElement=(c=e.current.columnHeadersContainerRef.current,u=t.field,c.querySelector(`[data-field="${UN(u)}"]`));const d=s.querySelector(`.${YM.headerFilterRow} [data-field="${UN(t.field)}"]`);d&&(o.headerFilterElement=d),o.groupHeaderElements=function(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${UN(t)}-|"]`)??[])}(e.current.columnHeadersContainerRef?.current,t.field),o.cellElements=function(e,t){if(!WN(e,YM.root))throw new Error("MUI X: The root element is not found.");const n=e.getAttribute("aria-colindex");if(!n)return[];const r=Number(n)-1,o=[];return t.virtualScrollerRef?.current?(QN(t).forEach(e=>{const n=e.getAttribute("data-id");if(!n)return;let i=r;const a=t.unstable_getCellColSpanInfo(n,r);a&&a.spannedByColSpan&&(i=a.leftVisibleCellIndex);const l=e.querySelector(`[data-colindex="${i}"]`);l&&o.push(l)}),o):[]}(o.columnHeaderElement,e.current),o.fillerLeft=qN(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=qN(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const p=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=p!==AO.LEFT?[]:function(e,t,n){const r=ZN(t);return YN({api:e,colIndex:r,position:n?"right":"left",filterFn:e=>n?e<r:e>r})}(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=p!==AO.RIGHT?[]:function(e,t,n){const r=ZN(t);return YN({api:e,colIndex:r,position:n?"left":"right",filterFn:e=>n?e>r:e<r})}(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=p!==AO.LEFT?[]:function(e,t,n){const r=ZN(t);return XN({api:e,position:n?"right":"left",colIndex:r,filterFn:e=>n?e<r:e>r})}(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=p!==AO.RIGHT?[]:function(e,t,n){const r=ZN(t);return XN({api:e,position:n?"left":"right",colIndex:r,filterFn:(e,t)=>!t.classList.contains(YM["columnHeader--last"])&&(n?e>r:e<r)})}(e.current,o.columnHeaderElement,n),a.current=function(e,t){const n=e.classList.contains(YM["columnSeparator--sideRight"])?"Right":"Left";return t?function(e){return"Right"===e?"Left":"Right"}(n):n}(r,n),i.current=function(e,t,n){return"Left"===n?e-t.left:t.right-e}(l,o.columnHeaderElement.getBoundingClientRect(),a.current)},h=eb(d),m=eb(t=>{if(0===t.buttons)return void h(t);let n=XB(i.current,t.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);n=gO(n,o.colDef.minWidth,o.colDef.maxWidth),u(n);const r={element:o.columnHeaderElement,colDef:o.colDef,width:n};e.current.publishEvent("columnResize",r,t)}),g=eb(e=>{YB(e,c.current)&&d(e)}),b=eb(t=>{const n=YB(t,c.current);if(!n)return;if("mousemove"===t.type&&0===t.buttons)return void g(t);let r=XB(i.current,n.x,o.columnHeaderElement.getBoundingClientRect(),a.current);r=gO(r,o.colDef.minWidth,o.colDef.maxWidth),u(r);const l={element:o.columnHeaderElement,colDef:o.colDef,width:r};e.current.publishEvent("columnResize",l,t)}),v=eb(t=>{const n=WN(t.target,YM["columnSeparator--resizable"]);if(!n)return;const o=t.changedTouches[0];null!=o&&(c.current=o.identifier);const i=WN(t.target,YM.columnHeader),a=i.getAttribute("data-field");const l=e.current.getColumn(a);r.debug(`Start Resize on col ${l.field}`),e.current.publishEvent("columnResizeStart",{field:a},t),p(l,n,o.clientX);const s=Xg(t.currentTarget);s.addEventListener("touchmove",b),s.addEventListener("touchend",g)}),y=s.useCallback(()=>{const t=Xg(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",m),t.removeEventListener("mouseup",h),t.removeEventListener("touchmove",b),t.removeEventListener("touchend",g),setTimeout(()=>{t.removeEventListener("click",JB,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,m,h,b,g]),w=s.useCallback(({field:t})=>{e.current.setState(e=>f({},e,{columnResize:f({},e.columnResize,{resizingColumnField:t})}))},[e]),x=s.useCallback(()=>{e.current.setState(e=>f({},e,{columnResize:f({},e.columnResize,{resizingColumnField:""})}))},[e]),S=eb(({colDef:t},n)=>{if(0!==n.button)return;if(!n.currentTarget.classList.contains(YM["columnSeparator--resizable"]))return;n.preventDefault(),r.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},n),p(t,n.currentTarget,n.clientX);const i=Xg(e.current.rootElementRef.current);i.body.style.cursor="col-resize",o.previousMouseClickEvent=n.nativeEvent,i.addEventListener("mousemove",m),i.addEventListener("mouseup",h),i.addEventListener("click",JB,!0)}),C=eb((n,r)=>{if(t.disableAutosize)return;if(0!==r.button)return;const o=e.current.state.columns.lookup[n.field];!1!==o.resizable&&e.current.autosizeColumns(f({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[o.field]}))}),k=eH(e),E=s.useRef(!1),R=s.useCallback(async n=>{const r=e.current.rootElementRef?.current;if(!r)return;if(E.current)return;E.current=!0;const o=_O(e),i=f({},kA,n,{columns:n?.columns??o.orderedFields});i.columns=i.columns.filter(e=>!1!==o.columnVisibilityModel[e]);const a=i.columns.map(t=>e.current.state.columns.lookup[t]);try{!t.disableVirtualization&&i.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await k());const n=tH(e,i,a),r=a.map(e=>f({},e,{width:n[e.field],computedWidth:n[e.field],flex:0}));if(i.expand){const t=o.orderedFields.map(e=>o.lookup[e]).filter(e=>!1!==o.columnVisibilityModel[e.field]).reduce((e,t)=>e+(n[t.field]??t.computedWidth??t.width),0),i=e.current.getRootDimensions(),a=i.viewportInnerSize.width-t;if(a>0){const e=a/(r.length||1);r.forEach(t=>{t.width+=e,t.computedWidth+=e})}}e.current.updateColumns(r),r.forEach((t,n)=>{if(t.width!==a[n].width){const n=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:n})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),E.current=!1}},[e,k,t.disableVirtualization]);s.useEffect(()=>y,[y]),ab(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),eA(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",v,{passive:!0}),ZL(e,{autosizeColumns:R},"public"),KI(e,"columnResizeStop",x),KI(e,"columnResizeStart",w),KI(e,"columnSeparatorMouseDown",S),KI(e,"columnSeparatorDoubleClick",C),YI(e,"columnResize",t.onColumnResize),YI(e,"columnWidthChange",t.onColumnWidthChange)};function iH(e,t,n){e&&(e.style[t]=`${Math.round(parseFloat(e.style[t]))+n}px`)}function aH(e){return 0!==e.firstRowIndex||0!==e.lastRowIndex}const lH=(e,t,n)=>{if(!e)return null;const r=e[t.field];return t.rowSpanValueGetter?t.rowSpanValueGetter(r,e,t,n):PI(e,t,n)},sH={caches:{spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},processedRange:{firstRowIndex:0,lastRowIndex:0}},cH=e=>f({},e,{rowSpanning:sH}),uH=(e,t)=>{const n=s.useCallback((t,n=!1)=>{const r=e.current.virtualizer.store,{range:o,rows:i}=H$(e);if(n&&r.set("rowSpanning",sH),null===o||!aH(t))return;const a=n?sH:g$.selectors.state(r.state),l=(s={firstRowIndex:t.firstRowIndex,lastRowIndex:Math.min(t.lastRowIndex,o.lastRowIndex-o.firstRowIndex+1)},c=a.processedRange,s.firstRowIndex>=c.firstRowIndex&&s.lastRowIndex<=c.lastRowIndex?null:s.firstRowIndex>=c.firstRowIndex&&s.lastRowIndex>c.lastRowIndex?{firstRowIndex:c.lastRowIndex,lastRowIndex:s.lastRowIndex}:s.firstRowIndex<c.firstRowIndex&&s.lastRowIndex<=c.lastRowIndex?{firstRowIndex:s.firstRowIndex,lastRowIndex:c.firstRowIndex-1}:s);var s,c;if(null===l)return;const u=GO(e),d=((e,t,n,r,o,i)=>{const a=e.current.virtualizer,l=i?sH:g$.selectors.state(a.store.state),s=f({},l.caches.spannedCells),c=f({},l.caches.hiddenCells),u=f({},l.caches.hiddenCellOriginMap),d={firstRowIndex:Math.min(l.processedRange.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.processedRange.lastRowIndex,o.lastRowIndex)};return t.forEach((t,i)=>{for(let a=o.firstRowIndex;a<o.lastRowIndex;a+=1){const l=n[a];if(c[l.id]?.[i])continue;const d=lH(l.model,t,e);if(null==d)continue;let p=l.id,f=a,h=0;const m=[];if(a===o.firstRowIndex){let o=a-1,l=n[o];for(;o>=r.firstRowIndex&&l&&lH(l.model,t,e)===d;){const e=n[o+1];c[e.id]?c[e.id][i]=!0:c[e.id]={[i]:!0},m.push(a),h+=1,p=l.id,f=o,o-=1,l=n[o]}}m.forEach(e=>{u[e]?u[e][i]=f:u[e]={[i]:f}});let g=a+1;for(;g<=r.lastRowIndex&&n[g]&&lH(n[g].model,t,e)===d;){const e=n[g];c[e.id]?c[e.id][i]=!0:c[e.id]={[i]:!0},u[g]?u[g][i]=f:u[g]={[i]:f},g+=1,h+=1}h>0&&(s[p]?s[p][i]=h+1:s[p]={[i]:h+1})}}),{caches:{spannedCells:s,hiddenCells:c,hiddenCellOriginMap:u},processedRange:d}})(e,u,i,o,l,n),p=Object.keys(d.caches.spannedCells).length,h=Object.keys(d.caches.hiddenCells).length,m=Object.keys(a.caches.spannedCells).length,g=Object.keys(a.caches.hiddenCells).length;(n||p!==m||h!==g)&&!(0===p&&0===m)&&r.set("rowSpanning",d)},[e]),{schedule:r,cancel:o}=function(e){const t=s.useRef(null),n=s.useCallback((...n)=>{t.current||queueMicrotask(()=>{t.current&&t.current()}),t.current=()=>{t.current=null,e(...n)}},[e]);return s.useLayoutEffect(()=>{t.current&&t.current()}),{schedule:n,cancel:()=>!!t.current&&(t.current=null,!0)}}(n),i=s.useCallback(()=>{const t=E$(e);aH(t)&&r(t,!0)},[e,r]);KI(e,"renderedRowsIntervalChange",vO(t.rowSpanning,e=>{const t=o();n(e,t)})),KI(e,"sortedRowsSet",vO(t.rowSpanning,i)),KI(e,"paginationModelChange",vO(t.rowSpanning,i)),KI(e,"filteredRowsSet",vO(t.rowSpanning,i)),KI(e,"columnsChange",vO(t.rowSpanning,i)),s.useEffect(()=>{const r=e.current.virtualizer?.store;r&&(t.rowSpanning?r.state.rowSpanning===sH&&n(E$(e)):r.state.rowSpanning!==sH&&r.set("rowSpanning",sH))},[e,t.rowSpanning,n])},dH=(e,t,n)=>f({},e,{listViewColumn:t.listViewColumn?f({},t.listViewColumn,{computedWidth:pH(n)}):void 0});function pH(e){return ZT(e).viewportInnerSize.width}const fH=qT(nF,JD,WF,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let hH=function(e){return e.Default="set-flat-rows",e.LazyLoading="replace-row-range",e.GroupedData="set-grouped-rows",e}({});class mH{constructor(e){this.chunkSize=e}getCacheKeys=e=>{if(this.chunkSize<1||"number"!=typeof e.start)return[e];const t=[];for(let n=e.start;n<=e.end;n+=this.chunkSize){const r=Math.min(n+this.chunkSize-1,e.end);t.push(f({},e,{start:n,end:r}))}return t};splitResponse=(e,t)=>{const n=this.getCacheKeys(e);if(1===n.length)return new Map([[e,t]]);const r=new Map;return n.forEach(n=>{const o=n.end===e.end,i=f({},t,{pageInfo:f({},t.pageInfo,{hasNextPage:void 0!==t.pageInfo?.hasNextPage&&!o||t.pageInfo?.hasNextPage,nextCursor:void 0===t.pageInfo?.nextCursor||o?t.pageInfo?.nextCursor:t.rows[n.end+1].id}),rows:"number"!=typeof n.start||"number"!=typeof e.start?t.rows:t.rows.slice(n.start-e.start,n.end-e.start+1)});r.set(n,i)}),r};static mergeResponses=e=>1===e.length?e[0]:e.reduce((e,t)=>f({},t,{rows:[...e.rows,...t.rows]}),{rows:[],rowCount:0,pageInfo:{}})}const gH=["skipCache","keepChildrenExpanded"],bH={clear:()=>{},get:()=>{},set:()=>{}};function vH(e,t={}){return null===e?bH:e??new P$(t)}const yH=(e,t)=>{const{api:n,strategyProcessor:r,events:o,setStrategyAvailability:i}=((e,t,n={})=>{const r=s.useCallback(()=>{e.current.setStrategyAvailability(H_.DataSource,hH.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[o,i]=s.useState(e.current.getActiveStrategy(H_.DataSource)),a=s.useMemo(()=>o===hH.Default||o===hH.GroupedData,[o]),l=uP(e,WF),c=s.useRef(0),u=t.onDataSourceError,p=ob(()=>{if(!t.pagination)return new mH(l.pageSize);const e=t.pageSizeOptions.map(e=>"number"==typeof e?e:e.value).sort((e,t)=>e-t),n=Math.min(l.pageSize,e[0]);return new mH(n)}).current,[h,m]=s.useState(()=>vH(t.dataSourceCache,n.cacheOptions)),g=s.useCallback(async(r,o)=>{const i=t.dataSource?.getRows;if(!i)return;if(r&&r!==EI&&"DataGrid"!==t.signature)return void n.fetchRowChildren?.([r]);n.clearDataSourceState?.();const l=o||{},{skipCache:s,keepChildrenExpanded:m}=l,g=d(l,gH),b=f({},fH(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),g),v=p.getCacheKeys(b).map(e=>h.get(e));if(!s&&v.every(e=>void 0!==e))return void e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:mH.mergeResponses(v),fetchParams:b,options:{skipCache:s,keepChildrenExpanded:m}});(a||0===e.current.getRowsCount())&&e.current.setLoading(!0);const y=c.current+1;c.current=y;try{const t=await i(b);p.splitResponse(b,t).forEach((e,t)=>h.set(t,e)),c.current===y&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:t,fetchParams:b,options:{skipCache:s,keepChildrenExpanded:m}})}catch(t){c.current===y&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:t,fetchParams:b,options:{skipCache:s,keepChildrenExpanded:m}}),"function"==typeof u&&u(new T$({message:t?.message,params:b,cause:t})))}finally{a&&c.current===y&&e.current.setLoading(!1)}},[p,h,e,a,t.dataSource?.getRows,u,n,t.signature]),b=s.useCallback(()=>{i(e.current.getActiveStrategy(H_.DataSource))},[e]),v=s.useCallback(t=>{if("error"in t)return void e.current.setRows([]);const{response:n}=t;void 0!==n.rowCount&&e.current.setRowCount(n.rowCount),e.current.setRows(n.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:t.fetchParams,response:n},!0)},[e]),y=t.dataSource?.updateRow,w=n.handleEditRow,x=s.useCallback(async t=>{if(y)try{const n=await y(t);return"function"==typeof w?(w(t,n),n):(n&&!LA(n,t.previousRow)&&e.current.dataSource.cache.clear(),e.current.updateNestedRows([n],[]),n)}catch(e){throw"function"==typeof u&&u(new I$({message:e?.message,params:t,cause:e})),e}},[e,y,u,w]),S={dataSource:{fetchRows:g,cache:h,editRow:x}},C=s.useMemo(()=>Yg(g,0),[g]),k=s.useRef(!0);return s.useEffect(()=>{if(k.current)return void(k.current=!1);if(void 0===t.dataSourceCache)return;const e=vH(t.dataSourceCache,n.cacheOptions);m(t=>t!==e?e:t)},[t.dataSourceCache,n.cacheOptions]),s.useEffect(()=>{if(o===hH.Default||o===hH.LazyLoading||o===hH.GroupedData)return t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{c.current+=1}},[e,t.dataSource,o]),{api:{public:S},debouncedFetchRows:C,strategyProcessor:{strategyName:hH.Default,group:"dataSourceRowsUpdate",processor:v},setStrategyAvailability:r,cacheChunkManager:p,cache:h,events:{strategyAvailabilityChange:b,sortModelChange:vO(a,()=>C()),filterModelChange:vO(a,()=>C()),paginationModelChange:vO(a,()=>C())}}})(e,t);ZL(e,n.public,"public"),V_(e,r.strategyName,r.group,r.processor),Object.entries(o).forEach(([t,n])=>{KI(e,t,n)}),s.useEffect(()=>{i()},[i])},wH=(e,t,n)=>{K_(e,t),AB(e,t),(e=>{V_(e,W_,"rowTreeCreation",IB)})(e),q_(G_,e,t),q_(LB,e,t),q_(nB,e,t),q_(TB,e,t),q_(yB,e,t),q_(MB,e,t),q_(hB,e,t),q_($B,e,t),q_(xB,e,t),q_(uB,e,t),q_(cH,e,t),q_(oB,e,t),q_(nH,e,t),q_(tB,e,t),q_(qB,e,t),q_(S$,e,t),q_(_B,e,t),q_(Y$,e,t),q_(dH,e,t),vB(e,t),((e,t)=>{const n=JL(e,"useGridSelection"),r=s.useCallback(e=>(...n)=>{t.rowSelection&&e(...n)},[t.rowSelection]),o=uP(e,wI)>1,i=t.signature!==BI.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&o,a=s.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),l=s.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:a,propOnChange:t.onRowSelectionModelChange,stateSelector:bF,changeEvent:"rowSelectionChange"});const{checkboxSelection:c,disableRowSelectionOnClick:u,isRowSelectable:d}=t,p=EF(t),h=s.useCallback(t=>{let n=t;const r=l.current??t,o=e.current.isRowSelected(t);if(o){const t=lF(e),o=t.findIndex(e=>e===r),i=t.findIndex(e=>e===n);if(o===i)return;n=o>i?t[i+1]:t[i-1]}l.current=t,e.current.selectRowRange({startId:r,endId:n},!o)},[e]),m=eb(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&"client"===t.paginationMode?ZF(e):lF(e)),g=s.useCallback((r,o)=>{if(t.signature===BI.DataGrid&&!p&&("include"!==r.type||r.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));if(bF(e)!==r){if(n.debug("Setting selection model"),null!==l.current){const e=r.ids.has(l.current);("include"===r.type&&!e||"exclude"===r.type&&e)&&(l.current=null)}e.current.setState(e=>f({},e,{rowSelection:t.rowSelection?r:FB}),o)}},[e,n,t.rowSelection,t.signature,p]),b=s.useCallback(t=>vF(e).has(t),[e]),v=s.useCallback(n=>{if(!1===t.rowSelection)return!1;if(d&&!d(e.current.getRowParams(n)))return!1;const r=gI(e,n);return"footer"!==r?.type&&"pinnedRow"!==r?.type},[e,t.rowSelection,d]),y=s.useCallback(()=>wF(e),[e]),w=s.useCallback((r,o=!0,a=!1)=>{if(!e.current.isRowSelectable(r))return;const s=mI(e);if(l.current=o?r:null,a){n.debug(`Setting selection for row ${r}`);const a={type:"include",ids:new Set},l=e=>{a.ids.add(e)};o&&(l(r),i&&RF(e,s,r,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,l)),e.current.setRowSelectionModel(a,"singleRowSelection")}else{n.debug(`Toggling selection for row ${r}`);const a=bF(e),l={type:a.type,ids:new Set(a.ids)},c=RO(l);c.unselect(r);const u=e=>{c.select(e)},d=e=>{c.unselect(e)};o?(u(r),i&&RF(e,s,r,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,u)):i&&MF(e,s,r,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,d),("include"===l.type&&l.ids.size<2||p)&&e.current.setRowSelectionModel(l,"singleRowSelection")}},[e,n,i,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,p]),x=s.useCallback((r,o=!0,a=!1)=>{if(n.debug("Setting selection for several rows"),!1===t.rowSelection)return;const l=mI(e),s=new Set;for(let t=0;t<r.length;t+=1){const n=r[t];e.current.isRowSelectable(n)&&s.add(n)}const c=bF(e);let u;if(a){if(u={type:"include",ids:s},o){const n=RO(u);if(i){const r=e=>{n.select(e)};for(const n of s)RF(e,l,n,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,r)}}else u.ids=new Set;if(c.type===u.type&&u.ids.size===c.ids.size&&Array.from(u.ids).every(e=>c.ids.has(e)))return}else{u={type:c.type,ids:new Set(c.ids)};const n=RO(u),r=e=>{n.select(e)},a=e=>{n.unselect(e)};for(const c of s)o?(n.select(c),i&&RF(e,l,c,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,r)):(a(c),i&&MF(e,l,c,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,a))}("include"===u.type&&u.ids.size<2||p)&&e.current.setRowSelectionModel(u,"multipleRowsSelection")},[n,i,p,e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),S=s.useCallback(n=>{if(!o||!i||"exclude"===n.type||0===n.ids.size&&"include"===n.type)return n;const r={type:n.type,ids:new Set(n.ids)},a=mI(e),l=RO(r),s=e=>{l.select(e)};for(const r of n.ids)RF(e,a,r,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,s,l);return r},[e,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,o,i]),C=s.useCallback(({startId:t,endId:r},o=!0,i=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(r))return;n.debug(`Expanding selection from row ${t} to row ${r}`);const a=lF(e),l=a.indexOf(t),s=a.indexOf(r),[c,u]=l>s?[s,l]:[l,s],d=a.slice(c,u+1);e.current.selectRows(d,o,i)},[e,n]),k={selectRows:x,selectRowRange:C,getPropagatedRowSelectionModel:S};ZL(e,{selectRow:w,setRowSelectionModel:g,getSelectedRows:y,isRowSelected:b,isRowSelectable:v},"public"),ZL(e,k,t.signature===BI.DataGrid?"private":"public");const E=s.useRef(!0),R=s.useCallback((n=!1)=>{if(E.current)return;const r=bF(e),i=hI(e),a=mI(e),l=iF(e),s=e=>"server"===t.filterMode?!i[e]:!a[e]||!1===l[e],c={type:r.type,ids:new Set(r.ids)},u=RO(c);let d=!1;for(const e of r.ids){if(s(e)){if(t.keepNonExistentRowsSelected)continue;u.unselect(e),d=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const n=a[e];if("group"===n?.type){if(n.isAutoGenerated){u.unselect(e),d=!0;continue}n.children.every(e=>!1===l[e])||(u.unselect(e),d=!0)}}const p=o&&t.rowSelectionPropagation?.parents&&(c.ids.size>0||"exclude"===c.type);if(d||p&&!n)if(p)if("exclude"===c.type){const n=m(),r=[];for(let e=0;e<n.length;e+=1){const o=n[e];!t.keepNonExistentRowsSelected&&s(o)||!u.has(o)||r.push(o)}e.current.selectRows(r,!0,!0)}else e.current.selectRows(Array.from(c.ids),!0,!0);else e.current.setRowSelectionModel(c,"multipleRowsSelection")},[e,o,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,m]),M=s.useCallback((t,n)=>{const r=n.metaKey||n.ctrlKey,o=!c&&!r&&!(e=>!!e.key)(n),i=!p||o,a=e.current.isRowSelected(t),l=yF(e)>1&&i||!a;e.current.selectRow(t,l,i)},[e,p,c]),P=s.useCallback((t,n)=>{if(u)return;const r=n.target.closest(`.${YM.cell}`)?.getAttribute("data-field");if(r!==rL.field&&r!==zD){if(r){const t=e.current.getColumn(r);if(t?.type===AD)return}"pinnedRow"!==gI(e,t.id).type&&(n.shiftKey&&p?h(t.id):M(t.id,n))}},[u,p,e,h,M]),T=s.useCallback((e,t)=>{p&&t.shiftKey&&window.getSelection()?.removeAllRanges()},[p]),I=s.useCallback((t,n)=>{p&&n.nativeEvent.shiftKey?h(t.id):e.current.selectRow(t.id,t.value,!p)},[e,h,p]),O=s.useCallback(n=>{const r=nF(e),i=rF(e),a=r.items.length>0||i?.some(e=>e.length);t.isRowSelectable||t.checkboxSelectionVisibleOnly||o&&!t.rowSelectionPropagation?.descendants||a||t.disableRowSelectionExcludeModel?e.current.selectRows(m(),n):e.current.setRowSelectionModel({type:n?"exclude":"include",ids:new Set},"multipleRowsSelection")},[e,m,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,t.disableRowSelectionExcludeModel,o]),D=s.useCallback(e=>{O(e.value)},[O]),F=s.useCallback((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==xO.Edit&&!KN(n)){if(vD(n.key)&&n.shiftKey){const r=DF(e);if(r&&r.id!==t.id){n.preventDefault();const o=e.current.isRowSelected(r.id);if(!p)return void e.current.selectRow(r.id,!o,!0);const i=e.current.getRowIndexRelativeToVisibleRows(r.id),a=e.current.getRowIndexRelativeToVisibleRows(t.id);let l,s;i>a?o?(l=a,s=i-1):(l=a,s=i):o?(l=i+1,s=a):(l=i,s=a);const c=H$(e),u=[];for(let e=l;e<=s;e+=1)u.push(c.rows[e].id);return void e.current.selectRows(u,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void M(t.id,n);"A"===String.fromCharCode(n.keyCode)&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),p&&O(!0))}},[e,p,M,O]),L=eb(()=>{if(!t.rowSelection)return void e.current.setRowSelectionModel(FB);if(void 0===a)return;if(!i||!o||"include"===a.type&&0===a.ids.size)return void e.current.setRowSelectionModel(a);const n=e.current.getPropagatedRowSelectionModel(a);n.type===a.type&&n.ids.size===a.ids.size&&Array.from(a.ids).every(e=>n.ids.has(e))?e.current.setRowSelectionModel(a):e.current.setRowSelectionModel(n)});KI(e,"filteredRowsSet",r(()=>R())),KI(e,"rowClick",r(P)),KI(e,"rowSelectionCheckboxChange",r(I)),KI(e,"headerSelectionCheckboxChange",D),KI(e,"cellMouseDown",r(T)),KI(e,"cellKeyDown",r(F)),s.useEffect(()=>{L()},[e,a,t.rowSelection,L]);const A=null!=a;s.useEffect(()=>{if(A||!t.rowSelection||"function"!=typeof v)return;const n=bF(e);if("include"!==n.type)return;const r=new Set;for(const e of n.ids)v(e)&&r.add(e);r.size<n.ids.size&&e.current.setRowSelectionModel({type:n.type,ids:r})},[e,v,A,t.rowSelection]),s.useEffect(()=>{if(!t.rowSelection||A)return;const n=bF(e);!p&&("include"===n.type&&n.ids.size>1||"exclude"===n.type)&&e.current.setRowSelectionModel(FB)},[e,p,c,A,t.rowSelection]),s.useEffect(()=>{r(R)},[R,r]),s.useEffect(()=>{E.current&&(E.current=!1)},[])})(e,t),rB(e,t),((e,t,n)=>{const r=JL(e,"useGridRows"),o=s.useRef(Date.now()),i=s.useRef(t.rowCount),a=sb(),{setRowIndex:l,setRowPosition:c}=n.hooks.useGridRowsOverridableMethods(e,t),u=s.useCallback(t=>{const n=hI(e)[t];if(n)return n;const r=gI(e,t);return r&&FI(r)?{[RI]:t}:null},[e]),d=s.useCallback(t=>xF(e,t),[e]),p=s.useCallback(({cache:n,throttle:r})=>{const i=()=>{o.current=Date.now(),e.current.setState(n=>f({},n,{rows:OI({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:mI(e),previousTreeDepths:yI(e),previousGroupsToFetch:bI(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=n,!r)return void i();const l=t.throttleRowsMs-(Date.now()-o.current);l>0?a.start(l,i):i()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),h=s.useCallback(n=>{if(r.debug(`Updating all rows, new length ${n.length}`),!t.dataSource&&rA(e))return void e.current.updateNonPivotRows(n,!1);const o=TI({rows:n,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),i=e.current.caches.rows;o.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,p({cache:o,throttle:!0})},[r,t.getRowId,t.dataSource,t.loading,t.rowCount,p,e]),m=s.useCallback(n=>{if(t.signature===BI.DataGrid&&n.length>1)throw new Error(["MUI X: You cannot 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("\n"));if(!t.dataSource&&rA(e))return void e.current.updateNonPivotRows(n);const r=NI(e,n,t.getRowId),o=AI({updates:r,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:o,throttle:!0})},[t.signature,t.dataSource,t.getRowId,p,e]),g=s.useCallback((n,r)=>{const o=NI(e,n,t.getRowId),i=AI({updates:o,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:r??[]});p({cache:i,throttle:!1})},[t.getRowId,p,e]),b=s.useCallback(t=>{r.debug(`Setting loading to ${t}`),e.current.setState(e=>f({},e,{rows:f({},e.rows,{loading:t})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t},[e,r]),v=s.useCallback(()=>{const t=xI(e),n=hI(e);return new Map(t.map(e=>[e,n[e]??{}]))},[e]),y=s.useCallback(()=>dI(e),[e]),w=s.useCallback(()=>xI(e),[e]),x=s.useCallback(t=>{const{rowIdToIndexMap:n}=H$(e);return n.get(t)},[e]),S=s.useCallback((t,n)=>{const r=gI(e,t);if(!r)throw new Error(`MUI X: No row with id #${t} found.`);if("group"!==r.type)throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const o=f({},r,{childrenExpanded:n});e.current.setState(e=>f({},e,{rows:f({},e.rows,{tree:f({},e.rows.tree,{[t]:o})})})),e.current.publishEvent("rowExpansionChange",o)},[e]),C=s.useCallback(()=>{const t=f({},mI(e)),n=e=>{const r=t[e];"group"===r?.type&&(t[e]=f({},r,{childrenExpanded:!0}),r.children.forEach(n))};n(EI),e.current.setState(e=>f({},e,{rows:f({},e.rows,{tree:t})})),e.current.publishEvent("rowExpansionChange",t[EI])},[e]),k=s.useCallback(()=>{const t=f({},mI(e)),n=e=>{const r=t[e];"group"===r?.type&&(t[e]=f({},r,{childrenExpanded:!1}),r.children.forEach(n))};n(EI),e.current.setState(e=>f({},e,{rows:f({},e.rows,{tree:t})})),e.current.publishEvent("rowExpansionChange",t[EI])},[e]),E=s.useCallback(t=>gI(e,t)??null,[e]),R=s.useCallback(({skipAutoGeneratedRows:t=!0,groupId:n,applySorting:r,applyFiltering:o,directChildrenOnly:i=!1})=>{const a=mI(e);let l;if(r){const r=a[n];if(!r)return[];const o=QD(e);l=[];for(let e=o.findIndex(e=>e===n)+1;e<o.length&&(i?a[o[e]].depth===r.depth+1:a[o[e]].depth>r.depth);e+=1){const n=o[e];t&&FI(a[n])||l.push(n)}}else l=LI(a,n,t,i);if(o){const t=iF(e);l=YD(t)?l:l.filter(e=>!1!==t[e])}return l},[e]),M={getRow:u,setLoading:b,getRowId:d,getRowModels:v,getRowsCount:y,getAllRowIds:w,setRows:h,updateRows:m,getRowNode:E,getRowIndexRelativeToVisibleRows:x,unstable_replaceRows:s.useCallback((n,r)=>{if(t.signature===BI.DataGrid&&r.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===r.length)return;if(wI(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const o=f({},mI(e)),i=f({},hI(e)),a=o[EI],l=[...a.children],s=new Set;for(let e=0;e<r.length;e+=1){const a=r[e],c=MI(a,t.getRowId,"A row was provided without id when calling replaceRows()."),[u]=l.splice(n+e,1,c);s.has(u)||(delete i[u],delete o[u]);const d={id:c,depth:0,parent:EI,type:"leaf",groupingKey:null};i[c]=a,o[c]=d,s.add(c)}o[EI]=f({},a,{children:l});const c=l.filter(e=>"leaf"===o[e]?.type);e.current.caches.rows.dataRowIdToModelLookup=i,e.current.setState(e=>f({},e,{rows:f({},e.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,l.length),dataRowIdToModelLookup:i,dataRowIds:c,tree:o})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount])},P={setRowIndex:l,setRowPosition:c,setRowChildrenExpansion:S,getRowGroupChildren:R,expandAllRows:C,collapseAllRows:k},T={updateNestedRows:g},I=s.useCallback(()=>{let n;r.info("Row grouping pre-processing have changed, regenerating the row tree"),n=e.current.caches.rows.rowsBeforePartialUpdates===t.rows?f({},e.current.caches.rows,{updates:{type:"full",rows:xI(e)}}):TI({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:n,throttle:!1})},[r,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),O=ob(()=>t.dataSource),D=s.useCallback(e=>{t.dataSource&&t.dataSource!==O.current?O.current=t.dataSource:"rowTreeCreation"===e&&I()},[I,O,t.dataSource]),F=s.useCallback(()=>{e.current.getActiveStrategy(H_.RowTree)!==vI(e)&&I()},[e,I]);KI(e,"activeStrategyProcessorChange",D),KI(e,"strategyAvailabilityChange",F);const L=s.useCallback(()=>{e.current.setState(n=>{const r=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:mI(e),treeDepths:yI(e),dataRowIds:xI(e),dataRowIdToModelLookup:hI(e)});return f({},n,{rows:f({},n.rows,r,{totalTopLevelRowCount:II({tree:r.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);q$(e,"hydrateRows",L),ZL(e,M,"public"),ZL(e,P,t.signature===BI.DataGrid?"private":"public"),ZL(e,T,"private");const A=s.useRef(!0);s.useEffect(()=>{if(A.current)return void(A.current=!1);let n=!1;t.rowCount!==i.current&&(n=!0,i.current=t.rowCount);const o=t.dataSource?SI(e):t.rows,a=e.current.caches.rows.rowsBeforePartialUpdates===o,l=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,s=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;a&&(l||(e.current.setState(e=>f({},e,{rows:f({},e.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),s||(e.current.setState(e=>f({},e,{rows:f({},e.rows,{totalRowCount:Math.max(t.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,e.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!n)||(r.debug(`Updating all rows, new length ${o?.length}`),p({cache:TI({rows:o,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,r,p,e])})(e,t,n),uH(e,t),DB(e,t,n),(e=>{const t=()=>e.current.virtualizer.api.resetColSpan(),n={unstable_getCellColSpanInfo:(...t)=>e.current.virtualizer.api.getCellColSpanInfo(...t)},r={resetColSpan:t,calculateColSpan:(...t)=>{e.current.virtualizer.api.calculateColSpan(...t)}};ZL(e,n,"public"),ZL(e,r,"private"),KI(e,"columnOrderChange",t)})(e),((e,t)=>{const n=s.useCallback(t=>AL(e)[t]??[],[e]),r=s.useCallback(()=>$L(e),[e]);ZL(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const o=s.useCallback(()=>{const n=GB(t.columnGroupingModel??[]);e.current.setState(e=>{const t=e.columns?.orderedFields??[],r=e.pinnedColumns??{},o=KB(t,n,r);return f({},e,{columnGrouping:f({},e.columnGrouping,{headerStructure:o})})})},[e,t.columnGroupingModel]),i=s.useCallback(t=>{if(!t&&!e.current.caches.columnGrouping.lastColumnGroupingModel)return;e.current.caches.columnGrouping.lastColumnGroupingModel=t;const n=e.current.getPinnedColumns?.()??{},r=BO(e),o=KO(e),i=WB(t??[]),a=GB(t??[]),l=KB(r,a,n),s=0===o.length?0:Math.max(...o.map(e=>a[e]?.length??0));e.current.setState(e=>f({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:s}}))},[e]);KI(e,"columnIndexChange",o),KI(e,"columnsChange",()=>{i(t.columnGroupingModel)}),KI(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),s.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&i(t.columnGroupingModel)},[e,i,t.columnGroupingModel])})(e,t),PB(e,t,n),((e,t)=>{const n=JL(e,"useGridFocus"),r=s.useRef(null),o=null!==e.current.rootElementRef.current,i=s.useCallback((t,n)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),n)},[e]),a=s.useCallback((t,r)=>{const o=DF(e);o?.id===t&&o?.field===r||(e.current.setState(e=>(n.debug(`Focusing on cell with id=${t} and field=${r}`),f({},e,{tabIndex:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:r},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(t)&&(o&&i(o,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,r))))},[e,n,i]),l=s.useCallback((t,r={})=>{const o=DF(e);i(o,r),e.current.setState(e=>(n.debug(`Focusing on column header with colIndex=${t}`),f({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),c=s.useCallback((t,r={})=>{const o=DF(e);i(o,r),e.current.setState(e=>(n.debug(`Focusing on column header filter with colIndex=${t}`),f({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}})))},[e,n,i]),u=s.useCallback((t,n,r={})=>{const o=DF(e);o&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(o.id,o.field),r),e.current.setState(e=>f({},e,{tabIndex:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),d=s.useCallback(()=>LF(e),[e]),p=s.useCallback((n,r,o)=>{let i=e.current.getColumnIndex(r);const a=GO(e),l=H$(e,(t.pagination,t.paginationMode)),s=CI(e),c=[].concat(s.top||[],l.rows,s.bottom||[]);let u=c.findIndex(e=>e.id===n);"right"===o?i+=1:"left"===o?i-=1:u+=1,i>=a.length?(u+=1,u<c.length&&(i=0)):i<0&&(u-=1,u>=0&&(i=a.length-1)),u=gO(u,0,c.length-1);const d=c[u];if(!d)return;const p=e.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===o||"below"===o?i=p.leftVisibleCellIndex:"right"===o&&(i=p.rightVisibleCellIndex)),i=gO(i,0,a.length-1);const f=a[i];e.current.setCellFocus(d.id,f.field)},[e,t.pagination,t.paginationMode]),h=s.useCallback(({id:t,field:n})=>{e.current.setCellFocus(t,n)},[e]),m=s.useCallback((t,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||vD(n.key)||e.current.setCellFocus(t.id,t.field)},[e]),g=s.useCallback(({field:t},n)=>{n.target===n.currentTarget&&e.current.setColumnHeaderFocus(t,n)},[e]),b=s.useCallback(({fields:t,depth:n},r)=>{if(r.target!==r.currentTarget)return;const o=LF(e);null!==o&&o.depth===n&&t.includes(o.field)||e.current.setColumnGroupHeaderFocus(t[0],n,r)},[e]),v=s.useCallback((t,r)=>{r.relatedTarget?.getAttribute("class")?.includes(YM.columnHeader)||(n.debug("Clearing focus"),e.current.setState(e=>f({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),y=s.useCallback(e=>{r.current=e},[]),w=s.useCallback(t=>{const n=r.current;r.current=null;const o=DF(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:n}))return;if(!o)return void(n&&e.current.setCellFocus(n.id,n.field));if(n?.id===o.id&&n?.field===o.field)return;const a=e.current.getCellElement(o.id,o.field);a?.contains(t.target)||(n?e.current.setCellFocus(n.id,n.field):(e.current.setState(e=>f({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(o,t)))},[e,i]),x=s.useCallback(t=>{if("view"===t.cellMode)return;const n=DF(e);n?.id===t.id&&n?.field===t.field||e.current.setCellFocus(t.id,t.field)},[e]),S=s.useCallback(()=>{const n=DF(e);if(n&&!e.current.getRow(n.id)){const r=n.id;let o=null;if(void 0!==r){const n=e.current.getRowElement(r),i=n?.dataset.rowindex?Number(n?.dataset.rowindex):0,a=H$(e,(t.pagination,t.paginationMode)),l=a.rows[gO(i,0,a.rows.length-1)];o=l?.id??null}e.current.setState(e=>f({},e,{focus:{cell:null===o?null:{id:o,field:n.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),C=s.useMemo(()=>Yg(S,0),[S]),k=eb(()=>{const n=DF(e);if(!n)return;const r=H$(e,(t.pagination,t.paginationMode));if(r.rows.find(e=>e.id===n.id)||0===r.rows.length)return;const o=GO(e);e.current.setState(e=>f({},e,{tabIndex:{cell:{id:r.rows[0].id,field:o[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),E={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};ZL(e,{setCellFocus:a,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:c},"public"),ZL(e,E,"private"),s.useEffect(()=>{const t=Xg(e.current.rootElementRef.current);return t.addEventListener("mouseup",w),()=>{t.removeEventListener("mouseup",w)}},[e,o,w]),KI(e,"columnHeaderBlur",v),KI(e,"cellDoubleClick",h),KI(e,"cellMouseDown",y),KI(e,"cellKeyDown",m),KI(e,"cellModeChange",x),KI(e,"columnHeaderFocus",g),KI(e,"columnGroupHeaderFocus",b),KI(e,"rowsSet",C),KI(e,"paginationModelChange",k)})(e,t),((e,t)=>{const n=JL(e,"useGridPreferencesPanel"),r=s.useCallback(()=>{e.current.setState(t=>{if(!t.preferencePanel.open)return t;n.debug("Hiding Preferences Panel");const r=PA(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:r.openedPanelValue}),f({},t,{preferencePanel:{open:!1}})})},[e,n]),o=s.useCallback((t,r,o)=>{n.debug("Opening Preferences Panel"),e.current.setState(e=>f({},e,{preferencePanel:f({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:r,labelId:o})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t})},[n,e]);ZL(e,{showPreferences:o,hidePreferences:r},"public");const i=s.useCallback((n,r)=>{const o=PA(e);return!r.exportOnlyDirtyModels||null!=t.initialState?.preferencePanel||o.open?f({},n,{preferencePanel:o}):n},[e,t.initialState?.preferencePanel]),a=s.useCallback((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState(e=>f({},e,{preferencePanel:r})),t},[e]);K$(e,"exportState",i),K$(e,"restoreState",a)})(e,t),((e,t,n)=>{const r=JL(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:nF,changeEvent:"filterModelChange"});const o=s.useCallback(()=>{e.current.setState(t=>{const n=nF(e),r=e.current.getFilterState(n),o=f({},t,{filter:f({},t.filter,r)});return f({},o,{visibleRowsLookup:pB(e,o)})}),e.current.publishEvent("filteredRowsSet")},[e]),i=s.useCallback((e,n)=>null==n||!1===n.filterable||t.disableColumnFilter?e:[...e,"columnMenuFilterItem"],[t.disableColumnFilter]),a=s.useCallback(t=>{const n=nF(e),r=[...n.items],o=r.findIndex(e=>e.id===t.id);-1===o?r.push(t):r[o]=t,e.current.setFilterModel(f({},n,{items:r}),"upsertFilterItem")},[e]),l=s.useCallback(t=>{const n=nF(e),r=[...n.items];t.forEach(e=>{const t=r.findIndex(t=>t.id===e.id);-1===t?r.push(e):r[t]=e}),e.current.setFilterModel(f({},n,{items:r}),"upsertFilterItems")},[e]),c=s.useCallback(t=>{const n=nF(e),r=n.items.filter(e=>e.id!==t.id);r.length!==n.items.length&&e.current.setFilterModel(f({},n,{items:r}),"deleteFilterItem")},[e]),u=s.useCallback((n,o,i)=>{if(r.debug("Displaying filter panel"),n){const r=nF(e),o=r.items.filter(t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const n=e.current.getColumn(t.field),r=n.filterOperators?.find(e=>e.value===t.operator);return!(void 0===r?.requiresFilterValue||r?.requiresFilterValue)});let i;const a=o.find(e=>e.field===n),l=e.current.getColumn(n);i=a?o:t.disableMultipleColumnsFiltering?[nD({field:n,operator:l.filterOperators[0].value},e)]:[...o,nD({field:n,operator:l.filterOperators[0].value},e)],e.current.setFilterModel(f({},r,{items:i}))}e.current.showPreferences(IA.filters,o,i)},[e,r,t.disableMultipleColumnsFiltering]),d=s.useCallback(()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()},[e,r]),p=s.useCallback(t=>{const n=nF(e);n.logicOperator!==t&&e.current.setFilterModel(f({},n,{logicOperator:t}),"changeLogicOperator")},[e]),h=s.useCallback(t=>{const n=nF(e);LA(n.quickFilterValues,t)||e.current.setFilterModel(f({},n,{quickFilterValues:[...t]}))},[e]),m=s.useCallback((n,o)=>{nF(e)!==n&&(r.debug("Setting filter model"),e.current.updateControlState("filter",oD(n,t.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())},[e,r,t.disableMultipleColumnsFiltering]),g=s.useCallback(r=>{const o=rD(r,t.disableMultipleColumnsFiltering,e),i=n.hooks.useFilterValueGetter(e,t),a="client"===t.filterMode?uD(o,i,e,t.disableEval):null;return f({},e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:a,filterModel:o??FO(),filterValueGetter:i}),{filterModel:o})},[e,n.hooks,t]),b={setFilterLogicOperator:p,unstable_applyFilters:o,deleteFilterItem:c,upsertFilterItem:a,upsertFilterItems:l,setFilterModel:m,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics,getFilterState:g};ZL(e,b,"public");const v=s.useCallback((n,r)=>{const o=nF(e);return o.items.forEach(e=>{delete e.fromInput}),r.exportOnlyDirtyModels&&null==t.filterModel&&null==t.initialState?.filter?.filterModel&&LA(o,FO())?n:f({},n,{filter:{filterModel:o}})},[e,t.filterModel,t.initialState?.filter?.filterModel]),y=s.useCallback((n,r)=>{const o=r.stateToRestore.filter?.filterModel;return null==o?n:(e.current.updateControlState("filter",oD(o,t.disableMultipleColumnsFiltering,e),"restoreState"),f({},n,{callbacks:[...n.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),w=s.useCallback((e,n)=>{if(n===IA.filters){const e=t.slots.filterPanel;return Xp.jsx(e,f({},t.slotProps?.filterPanel))}return e},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:x}=t,S=ob(fB),C=s.useCallback(n=>{if("client"!==t.filterMode||!n.isRowMatchingFilters||!n.filterModel.items.length&&!n.filterModel.quickFilterValues?.length)return DO;const r=hI(e),o={},{isRowMatchingFilters:i}=n,a={},l={passingFilterItems:null,passingQuickFilterValues:null},s=S.current(e.current.state.rows.dataRowIdToModelLookup);for(let t=0;t<s.length;t+=1){const r=s[t],c=x?x(r):r.id;i(r,void 0,l);const u=pD([l.passingFilterItems],[l.passingQuickFilterValues],n.filterModel,n.filterValueGetter,e,a);u||(o[c]=u)}const c="auto-generated-group-footer-root";return r[c]&&(o[c]=!0),{filteredRowsLookup:o,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,x,S]);K$(e,"columnMenu",i),K$(e,"exportState",v),K$(e,"restoreState",y),K$(e,"preferencePanel",w),V_(e,W_,"filtering",C),V_(e,W_,"visibleRowsLookupCreation",dB);const k=s.useCallback(()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const t=nF(e),n=HO(e),o=t.items.filter(e=>e.field&&n[e.field]);o.length<t.items.length&&e.current.setFilterModel(f({},t,{items:o}))},[e,r]),E=s.useCallback(t=>{"filtering"===t&&e.current.unstable_applyFilters()},[e]),R=s.useCallback(()=>{e.current.setState(t=>f({},t,{visibleRowsLookup:pB(e,t)}))},[e]);KI(e,"rowsSet",o),KI(e,"columnsChange",k),KI(e,"activeStrategyProcessorChange",E),KI(e,"rowExpansionChange",R),KI(e,"columnVisibilityModelChange",()=>{const t=nF(e);t.quickFilterValues?.length&&cD(t)&&o()}),tA(()=>{"DataGrid"===t.signature&&o()}),Wh(()=>{void 0!==t.filterModel&&e.current.setFilterModel(t.filterModel)},[e,r,t.filterModel])})(e,t,n),((e,t)=>{const n=JL(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:JD,changeEvent:"sortModelChange"});const r=s.useCallback((t,n)=>{const r=JD(e),o=r.findIndex(e=>e.field===t);let i=[...r];return o>-1?null==n?.sort?i.splice(o,1):i.splice(o,1,n):i=[...r,n],i},[e]),o=s.useCallback((n,r)=>{const o=JD(e).find(e=>e.field===n.field);if(o){const e=void 0===r?aO(n.sortingOrder??t.sortingOrder,o.sort):r;return void 0===e?void 0:f({},o,{sort:e})}return{field:n.field,sort:void 0===r?aO(n.sortingOrder??t.sortingOrder):r}},[e,t.sortingOrder]),i=s.useCallback((e,n)=>null==n||!1===n.sortable||t.disableColumnSorting?e:(n.sortingOrder||t.sortingOrder).some(e=>!!e)?[...e,"columnMenuSortItem"]:e,[t.sortingOrder,t.disableColumnSorting]),a=s.useCallback(()=>{e.current.setState(r=>{if("server"===t.sortingMode)return n.debug("Skipping sorting rows as sortingMode = server"),f({},r,{sorting:f({},r.sorting,{sortedRows:LI(mI(e),EI,!1)})});const o=JD(e),i=iO(o,e),a=e.current.applyStrategyProcessor("sorting",{sortRowList:i});return f({},r,{sorting:f({},r.sorting,{sortedRows:a})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),l=s.useCallback(r=>{JD(e)!==r&&(n.debug("Setting sort model"),e.current.setState(oO(r,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=s.useCallback((n,i,a)=>{const l=e.current.getColumn(n),s=o(l,i);let c;c=!a||t.disableMultipleColumnsSorting?null==s?.sort?[]:[s]:r(l.field,s),e.current.setSortModel(c)},[e,r,o,t.disableMultipleColumnsSorting]),u=s.useCallback(()=>JD(e),[e]),d=s.useCallback(()=>ZD(e).map(e=>e.model),[e]),p=s.useCallback(()=>QD(e),[e]),h=s.useCallback(t=>e.current.getSortedRowIds()[t],[e]);ZL(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:p,getRowIdFromRowIndex:h,setSortModel:l,sortColumn:c,applySorting:a},"public");const m=s.useCallback((n,r)=>{const o=JD(e);return!r.exportOnlyDirtyModels||null!=t.sortModel||null!=t.initialState?.sorting?.sortModel||o.length>0?f({},n,{sorting:{sortModel:o}}):n},[e,t.sortModel,t.initialState?.sorting?.sortModel]),g=s.useCallback((n,r)=>{const o=r.stateToRestore.sorting?.sortModel;return null==o?n:(e.current.setState(oO(o,t.disableMultipleColumnsSorting)),f({},n,{callbacks:[...n.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=s.useCallback(t=>{const n=mI(e),r=n[EI],o=t.sortRowList?t.sortRowList(r.children.map(e=>n[e])):[...r.children];return null!=r.footerId&&o.push(r.footerId),o},[e]);K$(e,"exportState",m),K$(e,"restoreState",g),V_(e,W_,"sorting",b);const v=s.useCallback(({field:e,colDef:n},r)=>{if(!n.sortable||t.disableColumnSorting)return;const o="always"===t.multipleColumnsSortingMode||r.shiftKey||r.metaKey||r.ctrlKey;c(e,void 0,o)},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),y=s.useCallback(({field:e,colDef:n},r)=>{n.sortable&&!t.disableColumnSorting&&("Enter"!==r.key||r.ctrlKey||r.metaKey||c(e,void 0,"always"===t.multipleColumnsSortingMode||r.shiftKey))},[c,t.disableColumnSorting,t.multipleColumnsSortingMode]),w=s.useCallback(()=>{const t=JD(e),n=HO(e);if(t.length>0){const r=t.filter(e=>n[e.field]);r.length<t.length&&e.current.setSortModel(r)}},[e]),x=s.useCallback(t=>{"sorting"===t&&e.current.applySorting()},[e]);K$(e,"columnMenu",i),KI(e,"columnHeaderClick",v),KI(e,"columnHeaderKeyDown",y),KI(e,"rowsSet",e.current.applySorting),KI(e,"columnsChange",w),KI(e,"activeStrategyProcessorChange",x),tA(()=>{"DataGrid"===t.signature&&e.current.applySorting()}),Wh(()=>{void 0!==t.sortModel&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])})(e,t),((e,t)=>{const n=JL(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:QI,changeEvent:"densityChange"});const r=eb(t=>{QI(e)!==t&&(n.debug(`Set grid density to ${t}`),e.current.setState(e=>f({},e,{density:t})))});ZL(e,{setDensity:r},"public");const o=s.useCallback((n,r)=>{const o=QI(e);return r.exportOnlyDirtyModels&&null==t.density&&null==t.initialState?.density?n:f({},n,{density:o})},[e,t.density,t.initialState?.density]),i=s.useCallback((t,n)=>{const r=n.stateToRestore?.density?n.stateToRestore.density:QI(e);return e.current.setState(e=>f({},e,{density:r})),t},[e]);K$(e,"exportState",o),K$(e,"restoreState",i),s.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])})(e,t),oH(e,t),wB(e,t),((e,t)=>{const n=mm(),r=JL(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=s.useCallback(n=>{const o=ZT(e),a=dI(e),l=GO(e);if(null!=n.rowIndex&&0===a||0===l.length)return!1;r.debug(`Scrolling to cell at row ${n.rowIndex}, col: ${n.colIndex} `);let s={};if(void 0!==n.colIndex){const t=QO(e);let r;if(void 0!==n.rowIndex){const t=aF(e),o=t[n.rowIndex]?.id,i=e.current.unstable_getCellColSpanInfo(o,n.colIndex);i&&!i.spannedByColSpan&&(r=i.cellProps.width)}void 0===r&&(r=l[n.colIndex].computedWidth),s.left=NB({containerSize:o.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:r,elementOffset:t[n.colIndex]})}if(void 0!==n.rowIndex){const r=cI(e),a=KF(e),l=qF(e),c=t.pagination?n.rowIndex-a*l:n.rowIndex,u=r.positions[c+1]?r.positions[c+1]-r.positions[c]:r.currentPageTotalHeight-r.positions[c];s.top=NB({containerSize:o.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:u,elementOffset:r.positions[c]})}return s=e.current.unstable_applyPipeProcessors("scrollToIndexes",s,n),(void 0!==s.left||void 0!==s.top)&&(e.current.scroll(s),!0)},[r,e,i,t.pagination]),l=s.useCallback(e=>{if(i.current&&void 0!==e.left&&o.current){const t=n?-1:1;o.current.scrollLeft=e.left,i.current.scrollLeft=t*e.left,r.debug(`Scrolling left: ${e.left}`)}i.current&&void 0!==e.top&&(i.current.scrollTop=e.top,r.debug(`Scrolling top: ${e.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),c=s.useCallback(()=>i?.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);ZL(e,{scroll:l,scrollToIndexes:a,getScrollPosition:c},"public")})(e,t),(e=>{const t=JL(e,"useGridColumnMenu"),n=s.useRef({}),r=s.useCallback(()=>{n.current.wheel?.(),n.current.touchMove?.()},[]),o=s.useCallback(()=>{r(),n.current.wheel=e.current.subscribeEvent("virtualScrollerWheel",e.current.hideColumnMenu),n.current.touchMove=e.current.subscribeEvent("virtualScrollerTouchMove",e.current.hideColumnMenu)},[e,r]),i=s.useCallback(n=>{const r=lA(e),i=n;(!0!==r.open||i!==r.field)&&(e.current.setState(e=>e.columnMenu.open&&e.columnMenu.field===n?e:(t.debug("Opening Column Menu"),o(),f({},e,{columnMenu:{open:!0,field:n}}))),e.current.hidePreferences())},[e,t,o]),a=s.useCallback(()=>{const n=lA(e);if(n.field){const t=HO(e),r=WO(e),o=BO(e);let i=n.field;if(t[i]||(i=o[0]),!1===r[i]){const e=o.filter(e=>e===i||!1!==r[e]),t=e.indexOf(i);i=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(i)}const o={open:!1,field:void 0};(o.open!==n.open||o.field!==n.field)&&e.current.setState(e=>(t.debug("Hiding Column Menu"),r(),f({},e,{columnMenu:o})))},[e,t,r]),l=s.useCallback(n=>{t.debug("Toggle Column Menu");const r=lA(e);r.open&&r.field===n?a():i(n)},[e,t,i,a]);ZL(e,{showColumnMenu:i,hideColumnMenu:a,toggleColumnMenu:l},"public"),KI(e,"columnResizeStart",a)})(e),lB(e,t),cB(e,t),eB(e,t),function(e,t){const n=s.useCallback(()=>ZT(e),[e]),r={updateDimensions:()=>e.current.virtualizer.api.updateDimensions(),getViewportPageSize:()=>e.current.virtualizer.api.getViewportPageSize()};ZL(e,{getRootDimensions:n},"public"),ZL(e,r,"private"),YI(e,"rootMount",t=>{HB(t,ZT(e))}),YI(e,"debouncedResize",t.onResize),UT(e.current.store,e=>e.dimensions,(t,n)=>{var r,o;n.isReady&&(e.current.rootElementRef.current&&HB(e.current.rootElementRef.current,n),r=n.viewportInnerSize,o=t.viewportInnerSize,(r.width!==o.width||r.height!==o.height)&&e.current.publishEvent("viewportInnerSizeChange",n.viewportInnerSize),e.current.publishEvent("debouncedResize",n.root))})}(e,t),function(e,t){YI(e,"columnHeaderClick",t.onColumnHeaderClick),YI(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),YI(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),YI(e,"columnHeaderOver",t.onColumnHeaderOver),YI(e,"columnHeaderOut",t.onColumnHeaderOut),YI(e,"columnHeaderEnter",t.onColumnHeaderEnter),YI(e,"columnHeaderLeave",t.onColumnHeaderLeave),YI(e,"cellClick",t.onCellClick),YI(e,"cellDoubleClick",t.onCellDoubleClick),YI(e,"cellKeyDown",t.onCellKeyDown),YI(e,"preferencePanelClose",t.onPreferencePanelClose),YI(e,"preferencePanelOpen",t.onPreferencePanelOpen),YI(e,"menuOpen",t.onMenuOpen),YI(e,"menuClose",t.onMenuClose),YI(e,"rowDoubleClick",t.onRowDoubleClick),YI(e,"rowClick",t.onRowClick),YI(e,"stateChange",t.onStateChange)}(e,t),(e=>{const t=s.useCallback((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t),[e]),n=s.useCallback(t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach(e=>{e()})},[e]);ZL(e,{exportState:t,restoreState:n},"public")})(e),function(e,t){const{autoHeight:n,disableVirtualization:r}=t,o=t=>{const{virtualizer:r}=e.current;t&&=x$;const o=r.store.getSnapshot();o.virtualization.enabled===t&&o.virtualization.enabledForRows===t&&o.virtualization.enabledForColumns===t||r.store.set("virtualization",f({},r.store.state.virtualization,{enabled:t,enabledForColumns:t,enabledForRows:t&&!n}))};ZL(e,{unstable_setVirtualization:o,unstable_setColumnVirtualization:t=>{const{virtualizer:n}=e.current;t&&=x$,n.store.getSnapshot().virtualization.enabledForColumns!==t&&n.store.set("virtualization",f({},n.store.state.virtualization,{enabledForColumns:t}))}},"public");const i=()=>{const{virtualizer:t}=e.current;t?.api.scheduleUpdateRenderContext()};e.current.register("private",{updateRenderContext:i}),YI(e,"sortedRowsSet",i),YI(e,"paginationModelChange",i),YI(e,"columnsChange",i),s.useEffect(()=>{e.current.virtualizer&&o(!t.disableVirtualization)},[e,r,n])}(e,t),function(e,t){const n=()=>{e.current.setState(t=>t.listViewColumn?f({},t,{listViewColumn:f({},t.listViewColumn,{computedWidth:pH(e)})}):t)},r=s.useRef(null);KI(e,"viewportInnerSizeChange",e=>{r.current!==e.width&&(r.current=e.width,n())}),KI(e,"columnVisibilityModelChange",n),Wh(()=>{const n=t.listViewColumn;n&&e.current.setState(t=>f({},t,{listViewColumn:f({},n,{computedWidth:pH(e)})}))},[e,t.listViewColumn]),s.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}(e,t),yH(e,t),tA(()=>{e.current.runAppliersForPendingProcessors()}),s.useEffect(()=>{e.current.runAppliersForPendingProcessors()})};function xH(e){const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:l,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:p,pinnedOffset:h}=e,m=OM(),g=mm(),b=s.useRef(null),v=AM(),y=uP(v,$L),w=t?y[t]:{},{headerName:x=t??"",description:S="",headerAlign:C}=w;let k;const E=t&&y[t]?.renderHeaderGroup,R=s.useMemo(()=>({groupId:t,headerName:x,description:S,depth:r,maxDepth:o,fields:i,colIndex:l,isLastColumn:d}),[t,x,S,r,o,i,l,d]);t&&E&&(k=E(R));const M=f({},e,{classes:m.classes,headerAlign:C,depth:r,isDragging:!1}),P=x??t,T=xm(),I=null===t?`empty-group-cell-${T}`:t,O=(e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:s}=e;return zm({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",null===l?"columnHeader--emptyGroup":"columnHeader--filledGroup",s===jD.LEFT&&"columnHeader--pinnedLeft",s===jD.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},qM,t)})(M);s.useLayoutEffect(()=>{if(c){const e=b.current.querySelector('[tabindex="0"]')||b.current;if(!e)return;if(oN())e.focus({preventScroll:!0});else{const t=v.current.getScrollPosition();e.focus(),v.current.scroll(t)}}},[v,c]);const D=s.useCallback(e=>t=>{KN(t)||v.current.publishEvent(e,R,t)},[v,R]),F=s.useMemo(()=>({onKeyDown:D("columnGroupHeaderKeyDown"),onFocus:D("columnGroupHeaderFocus"),onBlur:D("columnGroupHeaderBlur")}),[D]),L="function"==typeof w.headerClassName?w.headerClassName(R):w.headerClassName,A=s.useMemo(()=>aN(f({},e.style),g,p,h),[p,h,e.style,g]);return Xp.jsx(sz,f({ref:b,classes:O,columnMenuOpen:!1,colIndex:l,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:k,headerClassName:L,description:S,elementId:I,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:P,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:A},F))}const SH={root:YM.scrollbarFiller,pinnedRight:YM["scrollbarFiller--pinnedRight"]};function CH({pinnedRight:e}){return Xp.jsx("div",{role:"presentation",className:eM(SH.root,e&&SH.pinnedRight)})}const kH=Ig("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),EH=["className"],RH=jh("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),MH=nM(function(e,t){const{className:n}=e,r=d(e,EH),o=OM(),i=(e=>{const{classes:t}=e;return zm({root:["columnHeaders"]},qM,t)})(o);return Xp.jsx(RH,f({className:eM(i.root,n),ownerState:o},r,{role:"presentation",ref:t}))}),PH=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],TH=nM(function(e,t){const{visibleColumns:n,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,b=d(e,PH),{getInnerProps:v,getColumnHeadersRow:y,getColumnGroupHeadersRows:w}=(e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:l,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:h}=e,[m,g]=s.useState(""),[b,v]=s.useState(""),y=pP(),w=OM(),x=uP(y,AL),S=uP(y,QO),C=uP(y,R$),k=uP(y,YO),E=uP(y,HO),R=a$(S,C,k.left.length),M=uP(y,JT),P=uP(y,rI),T=uP(y,oI),I=uP(y,iI),O=uP(y,lI),D=s.useCallback(e=>v(e.field),[]),F=s.useCallback(()=>v(""),[]),L=s.useCallback(e=>g(e.field),[]),A=s.useCallback(()=>g(""),[]),$=s.useMemo(()=>k.left.length?{firstColumnIndex:0,lastColumnIndex:k.left.length}:null,[k.left.length]),N=s.useMemo(()=>k.right.length?{firstColumnIndex:t.length-k.right.length,lastColumnIndex:t.length}:null,[k.right.length,t.length]);KI(y,"columnResizeStart",D),KI(y,"columnResizeStop",F),KI(y,"columnHeaderDragStart",L),KI(y,"columnHeaderDragEndNative",A);const z=e=>{const{renderContext:n=C}=e||{},r=n.firstColumnIndex,o=Math.min(n.lastColumnIndex,t.length);return{renderedColumns:t.slice(r,o),firstColumnToRender:r,lastColumnToRender:o}},j=(e,t,n,r=!1)=>{const o=e?.position===jD.RIGHT,i=void 0===e?.position,a=k.right.length>0&&o||0===k.right.length&&i,l=R-n;return Xp.jsxs(s.Fragment,{children:[i&&Xp.jsx("div",{role:"presentation",style:{width:l}}),t,i&&Xp.jsx("div",{role:"presentation",className:eM(YM.filler,r&&YM["filler--borderBottom"])}),a&&Xp.jsx(CH,{pinnedRight:o})]})},_=(e,t={})=>{const{renderedColumns:i,firstColumnToRender:l}=z(e),s=[];for(let c=0;c<i.length;c+=1){const d=i[c],p=l+c,g=0===p,v=null!==o&&o.field===d.field||g&&!h?0:-1,y=null!==a&&a.field===d.field,x=u.open&&u.field===d.field,C=e?.position,k=c_(C,d.computedWidth,p,S,M,O),E=C===jD.RIGHT?i[c-1]:i[c+1],R=!!E&&null!==a&&a.field===E.field,I=c,D=i.length,F=d_(C,I,w.showColumnVerticalBorder,w.pinnedColumnsSectionSeparator),L=u_(C,I,D,w.showColumnVerticalBorder,P,w.pinnedColumnsSectionSeparator);s.push(Xp.jsx(cz,f({},n[d.field],{columnMenuOpen:x,filterItemsCounter:r[d.field]&&r[d.field].length,headerHeight:T,isDragging:d.field===m,colDef:d,colIndex:p,isResizing:b===d.field,isLast:p===S.length-1,hasFocus:y,tabIndex:v,pinnedPosition:C,pinnedOffset:k,isSiblingFocused:R,showLeftBorder:F,showRightBorder:L},t),d.field))}return j(e,s,0)},B=({depth:e,params:n})=>{const r=z(n);if(0===r.renderedColumns.length)return null;const{firstColumnToRender:o,lastColumnToRender:a}=r,s=p[e],u=t[o].field,h=x[u]?.[e]??null,m=s.findIndex(({groupId:e,columnFields:t})=>e===h&&t.includes(u)),g=t[a-1].field,b=x[g]?.[e]??null,v=s.findIndex(({groupId:e,columnFields:t})=>e===b&&t.includes(g)),y=s.slice(m,v+1).map(e=>f({},e,{columnFields:e.columnFields.filter(e=>!1!==d[e])})).filter(e=>e.columnFields.length>0),C=y[0].columnFields.indexOf(u),k=y[0].columnFields.slice(0,C).reduce((e,t)=>e+(E[t].computedWidth??0),0);let R=o;const T=y.map(({groupId:t,columnFields:r},o)=>{const a=null!==l&&l.depth===e&&r.includes(l.field),s=null!==i&&i.depth===e&&r.includes(i.field)?0:-1,u={width:r.reduce((e,t)=>e+E[t].computedWidth,0),fields:r,colIndex:R},d=n.position,p=c_(d,u.width,R,S,M,O);R+=r.length;let f=o;return d===jD.LEFT&&(f=R-1),Xp.jsx(xH,{groupId:t,width:u.width,fields:u.fields,colIndex:u.colIndex,depth:e,isLastColumn:o===y.length-1,maxDepth:c,height:I,hasFocus:a,tabIndex:s,pinnedPosition:d,pinnedOffset:p,showLeftBorder:d_(d,f,w.showColumnVerticalBorder,w.pinnedColumnsSectionSeparator),showRightBorder:u_(d,f,y.length,w.showColumnVerticalBorder,P,w.pinnedColumnsSectionSeparator)},o)});return j(n,T,k)};return{renderContext:C,leftRenderContext:$,rightRenderContext:N,pinnedColumns:k,visibleColumns:t,columnPositions:S,getFillers:j,getColumnHeadersRow:()=>Xp.jsxs(kH,{role:"row","aria-rowindex":c+1,ownerState:w,className:YM["row--borderBottom"],style:{height:T},children:[$&&_({position:jD.LEFT,renderContext:$},{disableReorder:!0}),_({renderContext:C}),N&&_({position:jD.RIGHT,renderContext:N},{disableReorder:!0,separatorSide:oz.Left})]}),getColumnsToRender:z,getColumnGroupHeadersRows:()=>{if(0===c)return null;const e=[];for(let t=0;t<c;t+=1)e.push(Xp.jsxs(kH,{role:"row","aria-rowindex":t+1,ownerState:w,style:{height:I},children:[$&&B({depth:t,params:{position:jD.LEFT,renderContext:$,maxLastColumn:$.lastColumnIndex}}),B({depth:t,params:{renderContext:C}}),N&&B({depth:t,params:{position:jD.RIGHT,renderContext:N,maxLastColumn:N.lastColumnIndex}})]},t));return e},getPinnedCellOffset:c_,isDragging:!!m,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:n,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:l,columnGroupHeaderFocus:c,headerGroupingMaxDepth:u,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g});return Xp.jsxs(MH,f({},b,v(),{ref:t,children:[w(),y()]}))}),IH=jI(TH);const OH=nM(function(e,t){const n=AM().current.getLocaleText("noResultsOverlayLabel");return Xp.jsx(FN,f({},e,{ref:t,children:n}))}),DH=jh("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});const FH=f({},ST,{cell:uN,skeletonCell:gN,columnHeaderFilterIconButton:function(e){return e.counter?Xp.jsx(vz,f({},e)):null},columnHeaderSortIcon:bz,columnMenu:Iz,columnHeaders:IH,detailPanels:function(e){return null},bottomContainer:function(e){const t=zm({root:["bottomContainer"]},qM,{});return Xp.jsx(DH,f({},e,{className:eM(t.root,YM["container--bottom"]),role:"presentation"}))},footer:s_,footerRowCount:E_,toolbar:function(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:o,additionalItems:i,additionalExportMenuItems:a}=e,l=d(e,Jj),c=AM(),u=OM(),[p,h]=s.useState(!1),m=s.useRef(null),g=xm(),b=xm(),v=!r?.disableToolbarButton||!o?.disableToolbarButton||a,y=()=>h(!1);return Xp.jsxs(jN,f({},l,{children:[u.label&&Xp.jsx(o_,{children:u.label}),!u.disableColumnSelector&&Xp.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarColumns"),children:Xp.jsx(Gj,{render:Xp.jsx(BN,{}),children:Xp.jsx(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&Xp.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarFilters"),children:Xp.jsx(Wj,{render:(e,t)=>Xp.jsx(BN,f({},e,{color:t.filterCount>0?"primary":"default",children:Xp.jsx(u.slots.baseBadge,{badgeContent:t.filterCount,color:"primary",variant:"dot",children:Xp.jsx(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),i,v&&(!u.disableColumnFilter||!u.disableColumnSelector)&&Xp.jsx(r_,{}),v&&Xp.jsxs(s.Fragment,{children:[Xp.jsx(u.slots.baseTooltip,{title:c.current.getLocaleText("toolbarExport"),disableInteractive:p,children:Xp.jsx(BN,{ref:m,id:b,"aria-controls":g,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:()=>h(!p),children:Xp.jsx(u.slots.exportIcon,{fontSize:"small"})})}),Xp.jsx(PD,{target:m.current,open:p,onClose:y,position:"bottom-end",children:Xp.jsxs(u.slots.baseMenuList,f({id:g,"aria-labelledby":b,autoFocusItem:!0},u.slotProps?.baseMenuList,{children:[!o?.disableToolbarButton&&Xp.jsx(Xj,{render:Xp.jsx(u.slots.baseMenuItem,f({},u.slotProps?.baseMenuItem)),options:o,onClick:y,children:c.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&Xp.jsx(qj,{render:Xp.jsx(u.slots.baseMenuItem,f({},u.slotProps?.baseMenuItem)),options:r,onClick:y,children:c.current.getLocaleText("toolbarExportCSV")}),a?.(y)]}))})]}),t&&Xp.jsxs(s.Fragment,{children:[Xp.jsx(r_,{}),Xp.jsx(Hj,f({},n))]})]}))},pinnedRows:function(e){return null},loadingOverlay:y_,noResultsOverlay:OH,noRowsOverlay:w_,noColumnsOverlay:x_,pagination:function(){const e=AM(),t=OM(),n=uP(e,WF),r=uP(e,UF),o=uP(e,YF),{paginationMode:i,loading:a}=t,l=-1===r&&"server"===i&&a,c=s.useMemo(()=>Math.max(0,o-1),[o]),u=s.useMemo(()=>-1===r||n.page<=c?n.page:c,[c,n.page,r]),d=s.useCallback(t=>{e.current.setPageSize(t)},[e]),p=s.useCallback((t,n)=>{e.current.setPage(n)},[e]),h=(e=>{for(let n=0;n<t.pageSizeOptions.length;n+=1){const r=t.pageSizeOptions[n];if("number"==typeof r){if(r===e)return!0}else if(r.value===e)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return Xp.jsx(S_,f({as:t.slots.basePagination,count:r,page:u,rowsPerPageOptions:h,rowsPerPage:n.pageSize,onPageChange:p,onRowsPerPageChange:d,disabled:l},t.slotProps?.basePagination))},filterPanel:oj,columnsPanel:function(e){const t=OM();return Xp.jsx(Fz,f({},e,{children:Xp.jsx(t.slots.columnsManagement,f({},t.slotProps?.columnsManagement))}))},columnsManagement:function(e){const t=AM(),n=s.useRef(null),r=uP(t,UO),o=uP(t,WO),i=OM(),[a,l]=s.useState(""),c=(e=>{const{classes:t}=e;return zm({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},qM,t)})(i),u=uP(t,VO),d=uP(t,rA),p=uP(t,iA),h=s.useMemo(()=>d?Array.from(p.values()):u,[d,p,u]),{sort:m,searchPredicate:g=ij,autoFocusSearchField:b=!0,disableShowHideToggle:v=!1,disableResetButton:y=!1,toggleAllMode:w="all",getTogglableColumns:x,searchInputProps:S,searchDebounceMs:C=i.columnFilterDebounceMs}=e,k=s.useMemo(()=>Yg(e=>{l(e)},C??150),[C]),E=s.useMemo(()=>((e,t)=>{const n=new Set(Object.keys(e).filter(t=>!1===e[t])),r=new Set(Object.keys(t).filter(e=>!1===t[e]));if(n.size!==r.size)return!1;let o=!0;return n.forEach(e=>{r.has(e)||(o=!1)}),o})(o,r),[o,r]),R=s.useMemo(()=>{switch(m){case"asc":return[...h].sort((e,t)=>dj.compare(e.headerName||e.field,t.headerName||t.field));case"desc":return[...h].sort((e,t)=>-dj.compare(e.headerName||e.field,t.headerName||t.field));default:return h}},[h,m]),M=e=>{const{name:n}=e.target;t.current.setColumnVisibility(n,!1===o[n])},P=s.useMemo(()=>{const e=x?x(R):null,t=e?R.filter(({field:t})=>e.includes(t)):R;return a?t.filter(e=>g(e,a.toLowerCase())):t},[R,a,g,x]),T=s.useCallback(e=>{const n=f({},WO(t)),r=x?x(h):null;return("filteredOnly"===w?P:h).forEach(t=>{t.hideable&&(null==r||r.includes(t.field))&&(e?delete n[t.field]:n[t.field]=!1)}),t.current.setColumnVisibilityModel(n)},[t,h,x,w,P]),I=s.useCallback(e=>{k(e.target.value)},[k]),O=s.useMemo(()=>P.filter(e=>e.hideable),[P]),D=s.useMemo(()=>O.every(e=>null==o[e.field]||!1!==o[e.field]),[o,O]),F=s.useMemo(()=>O.every(e=>!1===o[e.field]),[o,O]),L=s.useRef(null);s.useEffect(()=>{b?n.current?.focus():L.current&&"function"==typeof L.current.focus&&L.current.focus()},[b]);let A=!1;const $=e=>!1===A&&!1!==e.hideable&&(A=!0,!0),N=s.useCallback(()=>{l(""),n.current&&(n.current.value="",n.current.focus())},[]);return Xp.jsxs(s.Fragment,{children:[Xp.jsx(hj,{className:c.header,ownerState:i,children:Xp.jsx(mj,f({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:c.searchInput,onChange:I,size:"small",type:"search",slotProps:{input:{startAdornment:Xp.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:Xp.jsx(i.slots.baseIconButton,f({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:N,edge:"end"},i.slotProps?.baseIconButton,{children:Xp.jsx(i.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},i.slotProps?.baseTextField,S))}),Xp.jsx(fj,{ownerState:i,children:Xp.jsxs(pj,{className:c.root,ownerState:i,children:[P.map(e=>Xp.jsx(vj,f({as:i.slots.baseCheckbox,className:c.row,disabled:!1===e.hideable||d,checked:!1!==o[e.field],onChange:M,name:e.field,inputRef:$(e)?L:void 0,label:e.headerName||e.field,density:"compact",fullWidth:!0},i.slotProps?.baseCheckbox),e.field)),0===P.length&&Xp.jsx(bj,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),v&&y?null:Xp.jsxs(gj,{ownerState:i,className:c.footer,children:[v?Xp.jsx("span",{}):Xp.jsx(i.slots.baseCheckbox,f({disabled:0===O.length||d,checked:D,indeterminate:!D&&!F,onChange:()=>T(!D),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},i.slotProps?.baseCheckbox)),y?null:Xp.jsx(i.slots.baseButton,f({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:E||d},i.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]})]})},panel:zz,row:A_}),LH={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},AH=FH,$H=e=>{const t=Rg(),n=s.useMemo(()=>Vh({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=s.useMemo(()=>f({},_I,n.localeText),[n.localeText]),o=s.useMemo(()=>function({defaultSlots:e,slots:t}){const n=t;if(!n||0===Object.keys(n).length)return e;const r=f({},e);return Object.keys(n).forEach(e=>{const t=e;void 0!==n[t]&&(r[t]=n[t])}),r}({defaultSlots:AH,slots:n.slots}),[n.slots]),i=s.useMemo(()=>Object.keys(G$).reduce((e,t)=>(e[t]=n[t]??G$[t],e),{}),[n]);return s.useMemo(()=>f({},n,i,{localeText:r,slots:o},(e=>f({},LH,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}))(n)),[n,r,o,i])};class NH{maxListeners=20;warnOnce=!1;events={};on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,function r(...o){n.removeListener(e,r),t.apply(n,o)})}}const zH=Symbol("mui.api_private");let jH=0;function _H(e,t){const n=s.useRef(null),r=s.useRef(null);r.current||(r.current=function(e){const t=e.current?.[zH];if(t)return t;const n={},r={state:n,store:KT.create(n),instanceId:{id:jH}};return jH+=1,r.getPublicApi=()=>e.current,r.register=(t,n)=>{Object.keys(n).forEach(o=>{const i=n[o],a=r[o];if(!0===a?.spying?a.target=i:r[o]=i,"public"===t){const t=e.current,n=t[o];!0===n?.spying?n.target=i:t[o]=i}})},r.register("private",{caches:{},eventManager:new NH}),r}(n)),n.current||(n.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[zH]:e.current}}(r));const o=s.useCallback((...e)=>{const[n,o,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const a=t.signature===BI.DataGridPro||t.signature===BI.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(n,o,i,a)},[r,t.signature]),i=s.useCallback((e,t,n)=>{r.current.eventManager.on(e,t,n);const o=r.current;return()=>{o.eventManager.removeListener(e,t)}},[r]);return ZL(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!e.current?.state&&(e.current=n.current),s.useImperativeHandle(e,()=>n.current,[n]),s.useEffect(()=>{const e=r.current;return()=>{e.publishEvent("unmount")}},[r]),r}const BH={hooks:{useCSSVariables:function(){const e=Rg();return s.useMemo(()=>{const t=BM(function(e){const t=new WeakSet;return JSON.stringify(e,(e,n)=>{if("undefined"!=typeof window&&n===window||"undefined"!=typeof document&&n===document)return n.toString();if(null!==n&&"object"==typeof n){if(s.isValidElement(n))return null;if(t.has(n))return null;t.add(n)}return n})}(e)),n=function(e){const t=function(e){if(e.vars)return e.vars.palette.TableCell.border;if("light"===e.palette.mode)return im(tm(e.palette.divider,1),.88);return rm(tm(e.palette.divider,1),.68)}(e),n=(e.vars||e).palette.DataGrid,r=(e.vars||e).palette.background.paper,o=n?.bg??("dark"===e.palette.mode?vP(`color-mix(in srgb, ${r} 95%, #fff)`,r):r),i=n?.headerBg??o,a=n?.pinnedBg??o,l=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:tm(e.palette.background.default,e.palette.action.disabledOpacity),s="dark"===e.palette.mode?vP(`color-mix(in srgb, ${r} 90%, #fff)`,r):r,c=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,u=function(e){if(e.vars)return e.vars.shape.borderRadius;return"number"==typeof e.shape.borderRadius?`${e.shape.borderRadius}px`:e.shape.borderRadius}(e),d=e.vars?.font?.body2??xP(e.typography.body2),p=e.vars?.font?.caption??xP(e.typography.caption),f=e.vars?.font?.body1??xP(e.typography.body1),h=GM.keys;return{[h.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[h.colors.border.base]:t,[h.colors.background.base]:o,[h.colors.background.overlay]:s,[h.colors.background.backdrop]:l,[h.colors.foreground.base]:(e.vars||e).palette.text.primary,[h.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[h.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[h.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[h.colors.foreground.error]:(e.vars||e).palette.error.dark,[h.colors.interactive.hover]:bP?(e.vars||e).palette.action.hover:(e.vars||e).palette.grey["dark"===e.palette.mode?800:100],[h.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[h.colors.interactive.focus]:wP((e.vars||e).palette.primary.main),[h.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[h.colors.interactive.disabled]:wP((e.vars||e).palette.action.disabled),[h.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[h.colors.interactive.selected]:bP?c:(e.vars||e).palette.grey["dark"===e.palette.mode?700:200],[h.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[h.header.background.base]:i,[h.cell.background.pinned]:a,[h.radius.base]:u,[h.typography.fontFamily.base]:e.typography.fontFamily,[h.typography.fontWeight.light]:e.typography.fontWeightLight,[h.typography.fontWeight.regular]:e.typography.fontWeightRegular,[h.typography.fontWeight.medium]:e.typography.fontWeightMedium,[h.typography.fontWeight.bold]:e.typography.fontWeightBold,[h.typography.font.body]:d,[h.typography.font.small]:p,[h.typography.font.large]:f,[h.transitions.easing.easeIn]:e.transitions.easing.easeIn,[h.transitions.easing.easeOut]:e.transitions.easing.easeOut,[h.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[h.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[h.transitions.duration.base]:`${e.transitions.duration.short}ms`,[h.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[h.shadows.base]:(e.vars||e).shadows[2],[h.shadows.overlay]:(e.vars||e).shadows[8],[h.zIndex.panel]:(e.vars||e).zIndex.modal,[h.zIndex.menu]:(e.vars||e).zIndex.modal}}(e);return{id:t,variables:n}},[e])},useGridAriaAttributes:()=>{const e=pP(),t=OM(),n=uP(e,GO),r=uP(e,dF),o=uP(e,zL),i=uP(e,kI),a=t["aria-label"],l=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!l&&t.label?t.label:a,"aria-labelledby":l,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":EF(t)}},useGridRowAriaAttributes:()=>{const e=pP(),t=uP(e,zL);return s.useCallback((n,r)=>{const o={},i=r+t+2;return o["aria-rowindex"]=i,n&&e.current.isRowSelectable(n.id)&&(o["aria-selected"]=e.current.isRowSelected(n.id)),o},[e,t])},useGridRowsOverridableMethods:e=>{const t=s.useCallback((t,n,r)=>{const o=gI(e,t),i=gI(e,n);if(!o)throw new Error(`MUI X: No row with id #${t} found.`);if(!i)throw new Error(`MUI X: No row with id #${n} found.`);if("leaf"!==o.type)throw new Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");if("inside"===r)throw new Error("MUI X: The 'inside' position is only supported for tree data. Use 'above' or 'below' for flat data.");const a=gF(e),l=a[n];if(void 0===l)throw new Error(`MUI X: Target row with id #${n} not found in current view.`);const s=a[t];if(void 0===s)throw new Error(`MUI X: Source row with id #${t} not found in current view.`);let c;c="up"===(l<s?"up":"down")?"above"===r?l:l+1:"above"===r?l-1:l,c!==s&&(e.current.setState(t=>{const n=mI(e)[EI],r=[...n.children];return r.splice(c,0,r.splice(s,1)[0]),f({},t,{rows:f({},t.rows,{tree:f({},t.rows.tree,{[EI]:f({},n,{children:r})})})})}),e.current.publishEvent("rowsSet"))},[e]),n=s.useCallback((t,n)=>{const r=gI(e,t);if(!r)throw new Error(`MUI X: No row with id #${t} found.`);if("leaf"!==r.type)throw new Error("MUI X: The row reordering does not support reordering of footer or grouping rows.");e.current.setState(r=>{const o=mI(e)[EI],i=o.children,a=i.findIndex(e=>e===t);if(-1===a||a===n)return r;const l=[...i];return l.splice(n,0,l.splice(a,1)[0]),f({},r,{rows:f({},r.rows,{tree:f({},r.rows.tree,{[EI]:f({},o,{children:l})})})})}),e.current.publishEvent("rowsSet")},[e]);return{setRowIndex:n,setRowPosition:t}},useGridParamsOverridableMethods:e=>{const t=s.useCallback((t,n)=>{const r=e.current.getColumn(n),o=e.current.getRow(t);if(!o)throw new Error(`No row with id #${t} found`);return r&&r.valueGetter?r.valueGetter(o[r.field],o,r,e):o[n]},[e]),n=s.useCallback((t,n)=>PI(t,n,e),[e]),r=s.useCallback((t,r)=>{const o=n(t,r);return r&&r.valueFormatter?r.valueFormatter(o,t,r,e):o},[e,n]);return{getCellValue:t,getRowValue:n,getRowFormattedValue:r}},useIsCellEditable:()=>s.useCallback(e=>!FI(e.rowNode),[]),useCellAggregationResult:()=>null,useFilterValueGetter:e=>e.current.getRowValue}},HH=function(e,t){const n=$H(e),r=_H(n.apiRef,n);return wH(r,n,BH),Xp.jsx($_,{privateApiRef:r,configuration:BH,props:n,children:Xp.jsx(MN,f({className:n.className,style:n.style,sx:n.sx},n.slotProps?.root,{ref:t}))})},VH=s.memo(nM(HH));HH.propTypes={apiRef:C.shape({current:C.object}),"aria-label":C.string,"aria-labelledby":C.string,autoHeight:C.bool,autoPageSize:C.bool,autosizeOnMount:C.bool,autosizeOptions:C.shape({columns:C.arrayOf(C.string),disableColumnVirtualization:C.bool,expand:C.bool,includeHeaders:C.bool,includeOutliers:C.bool,outliersFactor:C.number}),cellModesModel:C.object,checkboxSelection:C.bool,classes:C.object,className:C.string,clipboardCopyCellDelimiter:C.string,columnBufferPx:C.number,columnFilterDebounceMs:C.number,columnGroupHeaderHeight:C.number,columnGroupingModel:C.arrayOf(C.object),columnHeaderHeight:C.number,columns:C.arrayOf(C.object).isRequired,columnVisibilityModel:C.object,dataSource:C.shape({getRows:C.func.isRequired,updateRow:C.func}),dataSourceCache:C.shape({clear:C.func.isRequired,get:C.func.isRequired,set:C.func.isRequired}),density:C.oneOf(["comfortable","compact","standard"]),disableAutosize:C.bool,disableColumnFilter:C.bool,disableColumnMenu:C.bool,disableColumnResize:C.bool,disableColumnSelector:C.bool,disableColumnSorting:C.bool,disableDensitySelector:C.bool,disableEval:C.bool,disableMultipleRowSelection:C.bool,disableRowSelectionExcludeModel:C.bool,disableRowSelectionOnClick:C.bool,disableVirtualization:C.bool,editMode:C.oneOf(["cell","row"]),estimatedRowCount:C.number,experimentalFeatures:C.shape({warnIfFocusStateIsNotSynced:C.bool}),filterDebounceMs:C.number,filterMode:C.oneOf(["client","server"]),filterModel:C.shape({items:C.arrayOf(C.shape({field:C.string.isRequired,id:C.oneOfType([C.number,C.string]),operator:C.string.isRequired,value:C.any})).isRequired,logicOperator:C.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:C.bool,quickFilterLogicOperator:C.oneOf(["and","or"]),quickFilterValues:C.array}),getCellClassName:C.func,getDetailPanelContent:C.func,getEstimatedRowHeight:C.func,getRowClassName:C.func,getRowHeight:C.func,getRowId:C.func,getRowSpacing:C.func,hideFooter:C.bool,hideFooterPagination:C.bool,hideFooterSelectedRowCount:C.bool,ignoreDiacritics:C.bool,ignoreValueFormatterDuringExport:C.oneOfType([C.shape({clipboardExport:C.bool,csvExport:C.bool}),C.bool]),initialState:C.object,isCellEditable:C.func,isRowSelectable:C.func,keepNonExistentRowsSelected:C.bool,label:C.string,loading:C.bool,localeText:C.object,logger:C.shape({debug:C.func.isRequired,error:C.func.isRequired,info:C.func.isRequired,warn:C.func.isRequired}),logLevel:C.oneOf(["debug","error","info","warn",!1]),nonce:C.string,onCellClick:C.func,onCellDoubleClick:C.func,onCellEditStart:C.func,onCellEditStop:C.func,onCellKeyDown:C.func,onCellModesModelChange:C.func,onClipboardCopy:C.func,onColumnHeaderClick:C.func,onColumnHeaderContextMenu:C.func,onColumnHeaderDoubleClick:C.func,onColumnHeaderEnter:C.func,onColumnHeaderLeave:C.func,onColumnHeaderOut:C.func,onColumnHeaderOver:C.func,onColumnOrderChange:C.func,onColumnResize:C.func,onColumnVisibilityModelChange:C.func,onColumnWidthChange:C.func,onDataSourceError:C.func,onDensityChange:C.func,onFilterModelChange:C.func,onMenuClose:C.func,onMenuOpen:C.func,onPaginationMetaChange:C.func,onPaginationModelChange:C.func,onPreferencePanelClose:C.func,onPreferencePanelOpen:C.func,onProcessRowUpdateError:C.func,onResize:C.func,onRowClick:C.func,onRowCountChange:C.func,onRowDoubleClick:C.func,onRowEditStart:C.func,onRowEditStop:C.func,onRowModesModelChange:C.func,onRowSelectionModelChange:C.func,onSortModelChange:C.func,onStateChange:C.func,pageSizeOptions:C.arrayOf(C.oneOfType([C.number,C.shape({label:C.string.isRequired,value:C.number.isRequired})]).isRequired),pagination:C.oneOf([!0]),paginationMeta:C.shape({hasNextPage:C.bool}),paginationMode:C.oneOf(["client","server"]),paginationModel:C.shape({page:C.number.isRequired,pageSize:C.number.isRequired}),processRowUpdate:C.func,resizeThrottleMs:C.number,rowBufferPx:C.number,rowCount:C.number,rowHeight:C.number,rowModesModel:C.object,rows:C.arrayOf(C.object),rowSelection:C.bool,rowSelectionModel:C.shape({ids:C.instanceOf(Set).isRequired,type:C.oneOf(["exclude","include"]).isRequired}),rowSpacingType:C.oneOf(["border","margin"]),rowSpanning:C.bool,scrollbarSize:C.number,showCellVerticalBorder:C.bool,showColumnVerticalBorder:C.bool,showToolbar:C.bool,slotProps:C.object,slots:C.object,sortingMode:C.oneOf(["client","server"]),sortingOrder:C.arrayOf(C.oneOf(["asc","desc"])),sortModel:C.arrayOf(C.shape({field:C.string.isRequired,sort:C.oneOf(["asc","desc"])})),style:C.object,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),virtualizeColumnsWithAutoRowHeight:C.bool};var WH=qg(Xp.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),UH=qg(Xp.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),GH=qg(Xp.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),KH=qg(Xp.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),qH=qg(Xp.jsx("path",{d:"M8 5v14l11-7z"}));const YH=({open:e,title:t="Confirm Action",message:n,onConfirm:r,onCancel:o,confirmText:i="Confirm",cancelText:a="Cancel",confirmColor:l="error"})=>c.createElement(uS,{open:e,onClose:o,"aria-labelledby":"confirm-dialog-title","aria-describedby":"confirm-dialog-description"},c.createElement(CS,{id:"confirm-dialog-title"},t),c.createElement(vS,null,c.createElement(xS,{id:"confirm-dialog-description"},n)),c.createElement(fS,null,c.createElement(Sx,{onClick:o,variant:"outlined"},a),c.createElement(Sx,{onClick:r,variant:"contained",color:l,autoFocus:!0},i))),XH=({onSelectReport:e,onAddNew:t,onCloneReport:n,onRunReport:r,refreshTrigger:o})=>{const i=ZR(),[a,l]=s.useState([]),[u,d]=s.useState(!0),[p,f]=s.useState(null),[h,m]=s.useState(!1),[g,b]=s.useState(null);s.useEffect(()=>{v()},[o]);const v=async()=>{try{d(!0),f(null);const e=await jc.getReportDefinitions();l(e)}catch(e){console.error("Error loading report definitions:",e);const t="Failed to load report definitions: "+(e.message||"Unknown error");f(t),i.error(t)}finally{d(!1)}},y=[{field:"title",headerName:"Title",flex:1,minWidth:200},{field:"provider",headerName:"Provider",flex:1,minWidth:200},{field:"actions",headerName:"Actions",width:200,sortable:!1,filterable:!1,disableColumnMenu:!0,renderCell:t=>c.createElement(dx,{sx:{display:"flex",gap:1}},c.createElement(hE,{title:"Run"},c.createElement(ev,{size:"small",color:"success",onClick:e=>{return n=t.row.id,e.stopPropagation(),void r(n);var n}},c.createElement(qH,{fontSize:"small"}))),c.createElement(hE,{title:"Edit"},c.createElement(ev,{size:"small",color:"primary",onClick:n=>{return r=t.row.id,n.stopPropagation(),void e(r);var r}},c.createElement(UH,{fontSize:"small"}))),c.createElement(hE,{title:"Clone"},c.createElement(ev,{size:"small",onClick:e=>(async(e,t)=>{t.stopPropagation();try{const t=await jc.getReportDefinition({id:e}),r={...t,title:`${t.title} (Copy)`};n(r)}catch(e){console.error("Error cloning report:",e),i.error("Failed to clone report: "+(e.message||"Unknown error"))}})(t.row.id,e)},c.createElement(GH,{fontSize:"small"}))),c.createElement(hE,{title:"Delete"},c.createElement(ev,{size:"small",color:"error",onClick:e=>((e,t)=>{t.stopPropagation();const n=a.find(t=>t.id===e);b(n),m(!0)})(t.row.id,e)},c.createElement(KH,{fontSize:"small"}))))}],w=a.map(e=>({id:e.id,title:e.title,provider:e.provider}));return u?c.createElement(dx,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},c.createElement(Yb,null)):p?c.createElement(dx,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:400,gap:2},c.createElement(vv,{variant:"body1",color:"error"},p),c.createElement(Sx,{variant:"contained",onClick:v},"Retry")):c.createElement(dx,{sx:{p:3,display:"flex",flexDirection:"column",fontFamily:"system-ui"}},c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"center",mb:2,fontFamily:"system-ui"}},c.createElement(Sx,{variant:"contained",sx:{backgroundColor:" rgb(70, 134, 128)",borderRadius:"0.5rem",boxShadow:"none",textTransform:"none"},startIcon:c.createElement(WH,null),onClick:t},"Add New Report")),c.createElement(dx,{sx:{flex:1,width:"100%",borderRadius:"0.5rem",overflow:"hidden",fontFamily:"system-ui"}},c.createElement(VH,{rows:w,columns:y,pageSize:10,rowsPerPageOptions:[10,25,50],disableSelectionOnClick:!0,onRowClick:t=>{e(t.row.id)},sx:{height:"100%",borderRadius:"0.5rem",overflow:"hidden",fontFamily:"system-ui","& .MuiDataGrid-columnHeaders":{backgroundColor:"#ffff"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"600 !important",fontSize:"0.875rem !important"},"& .MuiDataGrid-columnHeader:first-of-type":{borderTopLeftRadius:"0.5rem"},"& .MuiDataGrid-columnHeader:last-of-type":{borderTopRightRadius:"0.5rem"},"& .MuiDataGrid-row":{cursor:"pointer",fontSize:"0.875rem !important"},"& .MuiDataGrid-row:hover":{backgroundColor:"#f6f5f5ff"}}})),c.createElement(YH,{open:h,title:"Delete Report Definition",message:g?`Are you sure you want to delete "${g.title}"? This action cannot be undone.`:"",onConfirm:async()=>{if(g)try{await jc.deleteReportDefinition({id:g.id}),i.success(`Report "${g.title}" deleted successfully!`),m(!1),b(null),v()}catch(e){console.error("Error deleting report:",e),i.error("Failed to delete report: "+(e.response?.data?.message||e.message||"Unknown error")),m(!1),b(null)}},onCancel:()=>{m(!1),b(null)},confirmText:"Delete",cancelText:"Cancel",confirmColor:"error"}))};var QH=qg(Xp.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),ZH=qg(Xp.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),JH=qg(Xp.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));const eV=({providersData:e,rootProvider:t,onSelectionChange:n,existingDimensions:r=[],existingMetrics:o=[],existingFilters:i={}})=>{const[a,l]=s.useState([]);s.useEffect(()=>{l([]),n&&n([])},[t]);const u=t=>{if(!e||!t)return[];const n=e[t];if(!n||!n.relations||0===n.relations.length)return[];const a=(()=>{const e=new Map,t=t=>{if(t.relations&&t.providerPath)for(let n=0;n<t.relations.length;n++){const r=t.relations[n],o=t.providerPath[n];r.type&&(e.has(o)||e.set(o,new Set),e.get(o).add(r.name))}};return r.forEach(t),o.forEach(t),Object.values(i).forEach(t),e})().get(t);return n.relations.filter(t=>e[t.target]).map(e=>{let t=!1,n=null;if(!!e.type&&a&&a.size>0){if(!a.has(e.name)&&a.size>0){t=!0;n=`Cannot select: '${Array.from(a)[0]}' is already in use`}}return{key:e.name,value:e.name,targetKey:e.target,disabled:t,disabledReason:n}})},d=(e,r)=>{const o=r.target.value,i=0===e?t:a[e-1].targetKey,s=u(i).find(e=>e.key===o);if(!s)return;const c=a.slice(0,e);c.push({providerKey:o,relationName:o,targetKey:s.targetKey}),l(c),console.log("Selection chain:",c),n&&n(c)};return c.createElement(dx,null,a.length>0&&c.createElement(dx,{sx:{marginBottom:2}},c.createElement(dx,{sx:{display:"flex",alignItems:"center",gap:1.5,flexWrap:"wrap"}},c.createElement(uw,{label:$R(t),size:"medium",variant:"outlined",sx:{fontWeight:600,borderColor:"rgb(70, 134, 128)",color:"rgb(70, 134, 128)",backgroundColor:"white",height:"32px",fontFamily:"system-ui"}}),a.map((e,t)=>c.createElement(c.Fragment,{key:t},c.createElement(vv,{variant:"body2",sx:{color:"#9e9e9e",fontWeight:"bold"}},"→"),c.createElement(uw,{label:$R(e.targetKey),size:"medium",onDelete:()=>(e=>{const t=a.slice(0,e);l(t),n&&n(t)})(t),sx:{fontWeight:500,backgroundColor:"rgb(70, 134, 128)",color:"white",height:"32px",fontFamily:"system-ui","& .MuiChip-deleteIcon":{color:"rgba(255, 255, 255, 0.7)","&:hover":{color:"white"}}}}))))),c.createElement("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:"16px"}},(()=>{if(!e||!t)return null;const n=[],r=u(t);r.length>0&&n.push(c.createElement("div",{key:"level-0",style:{marginRight:"16px"}},c.createElement(NR,{items:r,value:a[0]?.providerKey||"",label:`Related to ${t}`,onChange:e=>d(0,e),sx:{width:"300px"}})));for(let e=0;e<a.length;e++){const t=a[e],r=u(t.targetKey);if(r.length>0){const o=a[e+1];n.push(c.createElement("div",{key:`level-${e+1}`,style:{marginRight:"16px"}},c.createElement(NR,{items:r,value:o?.providerKey||"",label:`Related to ${t.targetKey}`,onChange:t=>d(e+1,t),sx:{width:"300px"}})))}}return n})()))};const tV="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function nV(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function rV(e){return"nodeType"in e}function oV(e){var t,n;return e?nV(e)?e:rV(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function iV(e){const{Document:t}=oV(e);return e instanceof t}function aV(e){return!nV(e)&&e instanceof oV(e).HTMLElement}function lV(e){return e instanceof oV(e).SVGElement}function sV(e){return e?nV(e)?e.document:rV(e)?iV(e)?e:aV(e)||lV(e)?e.ownerDocument:document:document:document}const cV=tV?s.useLayoutEffect:s.useEffect;function uV(e){const t=s.useRef(e);return cV(()=>{t.current=e}),s.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function dV(e,t){void 0===t&&(t=[e]);const n=s.useRef(e);return cV(()=>{n.current!==e&&(n.current=e)},t),n}function pV(e,t){const n=s.useRef();return s.useMemo(()=>{const t=e(n.current);return n.current=t,t},[...t])}function fV(e){const t=uV(e),n=s.useRef(null),r=s.useCallback(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function hV(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let mV={};function gV(e,t){return s.useMemo(()=>{if(t)return t;const n=null==mV[e]?0:mV[e]+1;return mV[e]=n,e+"-"+n},[e,t])}function bV(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const vV=bV(1),yV=bV(-1);function wV(e){if(!e)return!1;const{KeyboardEvent:t}=oV(e.target);return t&&e instanceof t}function xV(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=oV(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const SV=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[SV.Translate.toString(e),SV.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),CV="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kV(e){return e.matches(CV)?e:e.querySelector(CV)}const EV={display:"none"};function RV(e){let{id:t,value:n}=e;return c.createElement("div",{id:t,style:EV},n)}function MV(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return c.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const PV=s.createContext(null);const TV={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},IV={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function OV(e){let{announcements:t=IV,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=TV}=e;const{announce:i,announcement:a}=function(){const[e,t]=s.useState("");return{announce:s.useCallback(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=gV("DndLiveRegion"),[u,d]=s.useState(!1);if(s.useEffect(()=>{d(!0)},[]),function(e){const t=s.useContext(PV);s.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}(s.useMemo(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!u)return null;const p=c.createElement(c.Fragment,null,c.createElement(RV,{id:r,value:o.draggable}),c.createElement(MV,{id:l,announcement:a}));return n?So.createPortal(p,n):p}var DV;function FV(){}function LV(e,t){return s.useMemo(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function AV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useMemo(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(DV||(DV={}));const $V=Object.freeze({x:0,y:0});function NV(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function zV(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function jV(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _V(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function BV(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}function HV(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const VV=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=HV(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=NV(HV(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(zV)};function WV(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const UV=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=WV(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(jV)};function GV(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$V}function KV(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const qV=KV(1);const YV={ignoreTransform:!1};function XV(e,t){void 0===t&&(t=YV);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=oV(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:s}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:s}}function QV(e){return XV(e,{ignoreTransform:!0})}function ZV(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(iV(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!aV(o)||lV(o))return n;if(n.includes(o))return n;const i=oV(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=oV(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=oV(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function JV(e){const[t]=ZV(e,1);return null!=t?t:null}function eW(e){return tV&&e?nV(e)?e:rV(e)?iV(e)||e===sV(e).scrollingElement?window:aV(e)?e:null:null:null}function tW(e){return nV(e)?e.scrollX:e.scrollLeft}function nW(e){return nV(e)?e.scrollY:e.scrollTop}function rW(e){return{x:tW(e),y:nW(e)}}var oW;function iW(e){return!(!tV||!e)&&e===document.scrollingElement}function aW(e){const t={x:0,y:0},n=iW(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(oW||(oW={}));const lW={x:.2,y:.2};function sW(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=lW);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=aW(e),f={x:0,y:0},h={x:0,y:0},m=t.height*o.y,g=t.width*o.x;return!c&&i<=t.top+m?(f.y=oW.Backward,h.y=r*Math.abs((t.top+m-i)/m)):!u&&s>=t.bottom-m&&(f.y=oW.Forward,h.y=r*Math.abs((t.bottom-m-s)/m)),!p&&l>=t.right-g?(f.x=oW.Forward,h.x=r*Math.abs((t.right-g-l)/g)):!d&&a<=t.left+g&&(f.x=oW.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:f,speed:h}}function cW(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function uW(e){return e.reduce((e,t)=>vV(e,rW(t)),$V)}const dW=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+tW(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+nW(t),0)}]];class pW{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=ZV(t),r=uW(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of dW)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fW{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function hW(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var mW,gW;function bW(e){e.preventDefault()}function vW(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(mW||(mW={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(gW||(gW={}));const yW={start:[gW.Space,gW.Enter],cancel:[gW.Esc],end:[gW.Space,gW.Enter,gW.Tab]},wW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case gW.Right:return{...n,x:n.x+25};case gW.Left:return{...n,x:n.x-25};case gW.Down:return{...n,y:n.y+25};case gW.Up:return{...n,y:n.y-25}}};class xW{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new fW(sV(t)),this.windowListeners=new fW(oV(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(mW.Resize,this.handleCancel),this.windowListeners.add(mW.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(mW.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=XV),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);JV(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t($V)}handleKeyDown(e){if(wV(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=yW,coordinateGetter:i=wW,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:$V;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=yV(u,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:s,isBottom:c,maxScroll:d,minScroll:p}=aW(n),f=cW(n),h={x:Math.min(o===gW.Right?f.right-f.width/2:f.right,Math.max(o===gW.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(o===gW.Down?f.bottom-f.height/2:f.bottom,Math.max(o===gW.Down?f.top:f.top+f.height/2,u.y))},m=o===gW.Right&&!l||o===gW.Left&&!s,g=o===gW.Down&&!c||o===gW.Up&&!i;if(m&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===gW.Right&&e<=d.x||o===gW.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===gW.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===gW.Down&&e<=d.y||o===gW.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===gW.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,vV(yV(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function SW(e){return Boolean(e&&"distance"in e)}function CW(e){return Boolean(e&&"delay"in e)}xW.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=yW,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class kW{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=oV(e);return e instanceof t?e:sV(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=sV(i),this.documentListeners=new fW(this.document),this.listeners=new fW(n),this.windowListeners=new fW(oV(i)),this.initialCoordinates=null!=(r=xV(o))?r:$V,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(mW.Resize,this.handleCancel),this.windowListeners.add(mW.DragStart,bW),this.windowListeners.add(mW.VisibilityChange,this.handleCancel),this.windowListeners.add(mW.ContextMenu,bW),this.documentListeners.add(mW.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(CW(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(SW(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(mW.Click,vW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(mW.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=xV(e))?t:$V,s=yV(r,l);if(!n&&a){if(SW(a)){if(null!=a.tolerance&&hW(s,a.tolerance))return this.handleCancel();if(hW(s,a.distance))return this.handleStart()}return CW(a)&&hW(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===gW.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const EW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class RW extends kW{constructor(e){const{event:t}=e,n=sV(t.target);super(e,EW,n)}}RW.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const MW={move:{name:"mousemove"},end:{name:"mouseup"}};var PW;!function(e){e[e.RightClick=2]="RightClick"}(PW||(PW={}));(class extends kW{constructor(e){super(e,MW,sV(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==PW.RightClick&&(null==r||r({event:n}),!0)}}];const TW={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var IW,OW;function DW(e){let{acceleration:t,activator:n=IW.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:l=OW.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:p,threshold:f}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=hV(t);return pV(e=>{if(n||!r||!e)return FW;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[oW.Backward]:e.x[oW.Backward]||-1===o.x,[oW.Forward]:e.x[oW.Forward]||1===o.x},y:{[oW.Backward]:e.y[oW.Backward]||-1===o.y,[oW.Forward]:e.y[oW.Forward]||1===o.y}}},[n,t,r])}({delta:p,disabled:!i}),[m,g]=function(){const e=s.useRef(null),t=s.useCallback((t,n)=>{e.current=setInterval(t,n)},[]);return[t,s.useCallback(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),b=s.useRef({x:0,y:0}),v=s.useRef({x:0,y:0}),y=s.useMemo(()=>{switch(n){case IW.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case IW.DraggableRect:return o}},[n,o,c]),w=s.useRef(null),x=s.useCallback(()=>{const e=w.current;if(!e)return;const t=b.current.x*v.current.x,n=b.current.y*v.current.y;e.scrollBy(t,n)},[]),S=s.useMemo(()=>l===OW.TreeOrder?[...u].reverse():u,[l,u]);s.useEffect(()=>{if(i&&u.length&&y){for(const e of S){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),o=d[n];if(!o)continue;const{direction:i,speed:l}=sW(e,o,y,t,f);for(const e of["x","y"])h[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0)return g(),w.current=e,m(x,a),b.current=l,void(v.current=i)}b.current={x:0,y:0},v.current={x:0,y:0},g()}else g()},[t,x,r,g,i,a,JSON.stringify(y),JSON.stringify(h),m,u,S,d,JSON.stringify(f)])}(class extends kW{constructor(e){super(e,TW)}static setup(){return window.addEventListener(TW.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(TW.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(IW||(IW={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(OW||(OW={}));const FW={x:{[oW.Backward]:!1,[oW.Forward]:!1},y:{[oW.Backward]:!1,[oW.Forward]:!1}};var LW,AW;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(LW||(LW={})),function(e){e.Optimized="optimized"}(AW||(AW={}));const $W=new Map;function NW(e,t){return pV(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function zW(e){let{callback:t,disabled:n}=e;const r=uV(t),o=s.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return s.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function jW(e){return new pW(XV(e),e)}function _W(e,t,n){void 0===t&&(t=jW);const[r,o]=s.useState(null);function i(){o(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const a=function(e){let{callback:t,disabled:n}=e;const r=uV(t),o=s.useMemo(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return s.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=zW({callback:i});return cV(()=>{i(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())},[e]),r}const BW=[];function HW(e,t){void 0===t&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const t=e!==$V;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?yV(e,n.current):$V}function VW(e){return s.useMemo(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const WW=[];function UW(e){let{measure:t}=e;const[n,r]=s.useState(null),o=s.useCallback(e=>{for(const{target:n}of e)if(aV(n)){r(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),i=zW({callback:o}),a=s.useCallback(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return aV(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[l,c]=fV(a);return s.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const GW=[{sensor:RW,options:{}},{sensor:xW,options:{}}],KW={current:{}},qW={draggable:{measure:QV},droppable:{measure:QV,strategy:LW.WhileDragging,frequency:AW.Optimized},dragOverlay:{measure:XV}};class YW extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const XW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new YW,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:FV},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:qW,measureDroppableContainers:FV,windowRect:null,measuringScheduled:!1},QW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:FV,draggableNodes:new Map,over:null,measureDroppableContainers:FV},ZW=s.createContext(QW),JW=s.createContext(XW);function eU(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new YW}}}function tU(e,t){switch(t.type){case DV.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case DV.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case DV.DragEnd:case DV.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case DV.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new YW(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case DV.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new YW(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case DV.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new YW(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function nU(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=s.useContext(ZW),i=hV(r),a=hV(null==n?void 0:n.id);return s.useEffect(()=>{if(!t&&!r&&i&&null!=a){if(!wV(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=kV(e);if(t){t.focus();break}}})}},[r,t,o,a,i]),null}const rU=s.createContext({...$V,scaleX:1,scaleY:1});var oU;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(oU||(oU={}));const iU=s.memo(function(e){var t,n,r,o;let{id:i,accessibility:a,autoScroll:l=!0,children:u,sensors:d=GW,collisionDetection:p=UV,measuring:f,modifiers:h,...m}=e;const g=s.useReducer(tU,void 0,eU),[b,v]=g,[y,w]=function(){const[e]=s.useState(()=>new Set),t=s.useCallback(t=>(e.add(t),()=>e.delete(t)),[e]),n=s.useCallback(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[n,t]}(),[x,S]=s.useState(oU.Uninitialized),C=x===oU.Initialized,{draggable:{active:k,nodes:E,translate:R},droppable:{containers:M}}=b,P=null!=k?E.get(k):null,T=s.useRef({initial:null,translated:null}),I=s.useMemo(()=>{var e;return null!=k?{id:k,data:null!=(e=null==P?void 0:P.data)?e:KW,rect:T}:null},[k,P]),O=s.useRef(null),[D,F]=s.useState(null),[L,A]=s.useState(null),$=dV(m,Object.values(m)),N=gV("DndDescribedBy",i),z=s.useMemo(()=>M.getEnabled(),[M]),j=function(e){return s.useMemo(()=>({draggable:{...qW.draggable,...null==e?void 0:e.draggable},droppable:{...qW.droppable,...null==e?void 0:e.droppable},dragOverlay:{...qW.dragOverlay,...null==e?void 0:e.dragOverlay}}),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(f),{droppableRects:_,measureDroppableContainers:B,measuringScheduled:H}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=s.useState(null),{frequency:l,measure:c,strategy:u}=o,d=s.useRef(e),p=function(){switch(u){case LW.Always:return!1;case LW.BeforeDragging:return n;default:return!n}}(),f=dV(p),h=s.useCallback(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=s.useRef(null),g=pV(t=>{if(p&&!n)return $W;if(!t||t===$W||d.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new pW(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,p,c]);return s.useEffect(()=>{d.current=e},[e]),s.useEffect(()=>{p||h()},[n,p]),s.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),s.useEffect(()=>{p||"number"!=typeof l||null!==m.current||(m.current=setTimeout(()=>{h(),m.current=null},l))},[l,p,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:null!=i}}(z,{dragging:C,dependencies:[R.x,R.y],config:j.droppable}),V=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return pV(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),W=s.useMemo(()=>L?xV(L):null,[L]),U=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof l?!1===l.enabled:!1===l,n=C&&!e&&!t;if("object"==typeof l)return{...l,enabled:n};return{enabled:n}}(),G=function(e,t){return NW(e,t)}(V,j.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=s.useRef(!1),{x:a,y:l}="boolean"==typeof o?{x:o,y:o}:o;cV(()=>{if(!a&&!l||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=GV(n(e),r);if(a||(o.x=0),l||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=JV(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,l,r,n])}({activeNode:null!=k?E.get(k):null,config:U.layoutShiftCompensation,initialRect:G,measure:j.draggable.measure});const K=_W(V,j.draggable.measure,G),q=_W(V?V.parentElement:null),Y=s.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:_,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=M.getNodeFor(null==(t=Y.current.over)?void 0:t.id),Q=UW({measure:j.dragOverlay.measure}),Z=null!=(n=Q.nodeRef.current)?n:V,J=C?null!=(r=Q.rect)?r:K:null,ee=Boolean(Q.nodeRef.current&&Q.rect),te=GV(ne=ee?null:K,NW(ne));var ne;const re=VW(Z?oV(Z):null),oe=function(e){const t=s.useRef(e),n=pV(n=>e?n&&n!==BW&&e&&t.current&&e.parentNode===t.current.parentNode?n:ZV(e):BW,[e]);return s.useEffect(()=>{t.current=e},[e]),n}(C?null!=X?X:V:null),ie=function(e,t){void 0===t&&(t=XV);const[n]=e,r=VW(n?oV(n):null),[o,i]=s.useState(WW);function a(){i(()=>e.length?e.map(e=>iW(e)?r:new pW(t(e),e)):WW)}const l=zW({callback:a});return cV(()=>{null==l||l.disconnect(),a(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),o}(oe),ae=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(h,{transform:{x:R.x-te.x,y:R.y-te.y,scaleX:1,scaleY:1},activatorEvent:L,active:I,activeNodeRect:K,containerNodeRect:q,draggingNodeRect:J,over:Y.current.over,overlayNodeRect:Q.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),le=W?vV(W,R):null,se=function(e){const[t,n]=s.useState(null),r=s.useRef(e),o=s.useCallback(e=>{const t=eW(e.target);t&&n(e=>e?(e.set(t,rW(t)),new Map(e)):null)},[]);return s.useEffect(()=>{const t=r.current;if(e!==t){i(t);const a=e.map(e=>{const t=eW(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,rW(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=eW(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),s.useMemo(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>vV(e,t),$V):uW(e):$V,[e,t])}(oe),ce=HW(se),ue=HW(se,[K]),de=vV(ae,ce),pe=J?qV(J,ae):null,fe=I&&pe?p({active:I,collisionRect:pe,droppableRects:_,droppableContainers:z,pointerCoordinates:le}):null,he=BV(fe,"id"),[me,ge]=s.useState(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:vV(ae,ue),null!=(o=null==me?void 0:me.rect)?o:null,K),ve=s.useRef(null),ye=s.useCallback((e,t)=>{let{sensor:n,options:r}=t;if(null==O.current)return;const o=E.get(O.current);if(!o)return;const i=e.nativeEvent,a=new n({active:O.current,activeNode:o,event:i,options:r,context:Y,onAbort(e){if(!E.get(e))return;const{onDragAbort:t}=$.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!E.get(e))return;const{onDragPending:o}=$.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),y({type:"onDragPending",event:i})},onStart(e){const t=O.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=$.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:T}};So.unstable_batchedUpdates(()=>{null==r||r(o),S(oU.Initializing),v({type:DV.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:o}),F(ve.current),A(i)})},onMove(e){v({type:DV.DragMove,coordinates:e})},onEnd:l(DV.DragEnd),onCancel:l(DV.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=Y.current;let a=null;if(t&&o){const{cancelDrop:l}=$.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===DV.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=DV.DragCancel)}}O.current=null,So.unstable_batchedUpdates(()=>{v({type:e}),S(oU.Uninitialized),ge(null),F(null),A(null),ve.current=null;const t=e===DV.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=$.current[t];null==e||e(a),y({type:t,event:a})}})}}ve.current=a},[E]),we=s.useCallback((e,t)=>(n,r)=>{const o=n.nativeEvent,i=E.get(r);if(null!==O.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},O.current=r,ye(n,t))},[E,ye]),xe=function(e,t){return s.useMemo(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(d,we);!function(e){s.useEffect(()=>{if(!tV)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(d),cV(()=>{K&&x===oU.Initializing&&S(oU.Initialized)},[K,x]),s.useEffect(()=>{const{onDragMove:e}=$.current,{active:t,activatorEvent:n,collisions:r,over:o}=Y.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};So.unstable_batchedUpdates(()=>{null==e||e(i),y({type:"onDragMove",event:i})})},[de.x,de.y]),s.useEffect(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=Y.current;if(!e||null==O.current||!t||!o)return;const{onDragOver:i}=$.current,a=r.get(he),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};So.unstable_batchedUpdates(()=>{ge(l),null==i||i(s),y({type:"onDragOver",event:s})})},[he]),cV(()=>{Y.current={activatorEvent:L,active:I,activeNode:V,collisionRect:pe,collisions:fe,droppableRects:_,draggableNodes:E,draggingNode:Z,draggingNodeRect:J,droppableContainers:M,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:de},T.current={initial:J,translated:pe}},[I,V,fe,pe,E,Z,J,_,M,me,oe,de]),DW({...U,delta:R,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ie});const Se=s.useMemo(()=>({active:I,activeNode:V,activeNodeRect:K,activatorEvent:L,collisions:fe,containerNodeRect:q,dragOverlay:Q,draggableNodes:E,droppableContainers:M,droppableRects:_,over:me,measureDroppableContainers:B,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:j,measuringScheduled:H,windowRect:re}),[I,V,K,L,fe,q,Q,E,M,_,me,B,oe,ie,j,H,re]),Ce=s.useMemo(()=>({activatorEvent:L,activators:xe,active:I,activeNodeRect:K,ariaDescribedById:{draggable:N},dispatch:v,draggableNodes:E,over:me,measureDroppableContainers:B}),[L,xe,I,K,v,N,E,me,B]);return c.createElement(PV.Provider,{value:w},c.createElement(ZW.Provider,{value:Ce},c.createElement(JW.Provider,{value:Se},c.createElement(rU.Provider,{value:be},u)),c.createElement(nU,{disabled:!1===(null==a?void 0:a.restoreFocus)})),c.createElement(OV,{...a,hiddenTextDescribedById:N}))}),aU=s.createContext(null),lU="button";function sU(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=gV("Draggable"),{activators:a,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:p,over:f}=s.useContext(ZW),{role:h=lU,roleDescription:m="draggable",tabIndex:g=0}=null!=o?o:{},b=(null==c?void 0:c.id)===t,v=s.useContext(b?rU:aU),[y,w]=fV(),[x,S]=fV(),C=function(e,t){return s.useMemo(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(a,t),k=dV(n);cV(()=>(p.set(t,{id:t,key:i,node:y,activatorNode:x,data:k}),()=>{const e=p.get(t);e&&e.key===i&&p.delete(t)}),[p,t]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:s.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!b||h!==lU)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[r,h,g,b,m,d.draggable]),isDragging:b,listeners:r?void 0:C,node:y,over:f,setNodeRef:w,setActivatorNodeRef:S,transform:v}}const cU={timeout:25};function uU(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function dU(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function pU(e){return null!==e&&e>=0}const fU=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=uU(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},hU={scaleX:1,scaleY:1},mU=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...hU}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...hU}:o<n&&o>=a?{x:0,y:l.height+s,...hU}:{x:0,y:0,...hU}};const gU="Sortable",bU=c.createContext({activeIndex:-1,containerId:gU,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:fU,disabled:{draggable:!1,droppable:!1}});function vU(e){let{children:t,id:n,items:r,strategy:o=fU,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:u,over:d,measureDroppableContainers:p}=s.useContext(JW),f=gV(gU,n),h=Boolean(null!==l.rect),m=s.useMemo(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),g=null!=a,b=a?m.indexOf(a.id):-1,v=d?m.indexOf(d.id):-1,y=s.useRef(m),w=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,y.current),x=-1!==v&&-1===b||w,S=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);cV(()=>{w&&g&&p(m)},[w,m,g,p]),s.useEffect(()=>{y.current=m},[m]);const C=s.useMemo(()=>({activeIndex:b,containerId:f,disabled:S,disableTransforms:x,items:m,overIndex:v,useDragOverlay:h,sortedRects:dU(m,u),strategy:o}),[b,f,S.draggable,S.droppable,x,m,v,u,h,o]);return c.createElement(bU.Provider,{value:C},t)}const yU=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return uU(n,r,o).indexOf(t)},wU=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===s))},xU={duration:200,easing:"ease"},SU="transform",CU=SV.Transition.toString({property:SU,duration:0,easing:"linear"}),kU={roleDescription:"sortable"};function EU(e){let{animateLayoutChanges:t=wU,attributes:n,disabled:r,data:o,getNewIndex:i=yU,id:a,strategy:l,resizeObserverConfig:c,transition:u=xU}=e;const{items:d,containerId:p,activeIndex:f,disabled:h,disableTransforms:m,sortedRects:g,overIndex:b,useDragOverlay:v,strategy:y}=s.useContext(bU),w=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,h),x=d.indexOf(a),S=s.useMemo(()=>({sortable:{containerId:p,index:x,items:d},...o}),[p,o,x,d]),C=s.useMemo(()=>d.slice(d.indexOf(a)),[d,a]),{rect:k,node:E,isOver:R,setNodeRef:M}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=gV("Droppable"),{active:a,dispatch:l,over:c,measureDroppableContainers:u}=s.useContext(ZW),d=s.useRef({disabled:n}),p=s.useRef(!1),f=s.useRef(null),h=s.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:b}={...cU,...o},v=dV(null!=g?g:r),y=zW({callback:s.useCallback(()=>{p.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),h.current=null},b)):p.current=!0},[b]),disabled:m||!a}),w=s.useCallback((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))},[y]),[x,S]=fV(w),C=dV(t);return s.useEffect(()=>{y&&x.current&&(y.disconnect(),p.current=!1,y.observe(x.current))},[x,y]),s.useEffect(()=>(l({type:DV.RegisterDroppable,element:{id:r,key:i,disabled:n,node:x,rect:f,data:C}}),()=>l({type:DV.UnregisterDroppable,key:i,id:r})),[r]),s.useEffect(()=>{n!==d.current.disabled&&(l({type:DV.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,l]),{active:a,rect:f,isOver:(null==c?void 0:c.id)===r,node:x,over:c,setNodeRef:S}}({id:a,data:S,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:P,activatorEvent:T,activeNodeRect:I,attributes:O,setNodeRef:D,listeners:F,isDragging:L,over:A,setActivatorNodeRef:$,transform:N}=sU({id:a,data:S,attributes:{...kU,...n},disabled:w.draggable}),z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.useMemo(()=>e=>{t.forEach(t=>t(e))},t)}(M,D),j=Boolean(P),_=j&&!m&&pU(f)&&pU(b),B=!v&&L,H=B&&_?N:null,V=_?null!=H?H:(null!=l?l:y)({rects:g,activeNodeRect:I,activeIndex:f,overIndex:b,index:x}):null,W=pU(f)&&pU(b)?i({id:a,items:d,activeIndex:f,overIndex:b}):x,U=null==P?void 0:P.id,G=s.useRef({activeId:U,items:d,newIndex:W,containerId:p}),K=d!==G.current.items,q=t({active:P,containerId:p,isDragging:L,isSorting:j,id:a,index:x,items:d,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:u,wasDragging:null!=G.current.activeId}),Y=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=s.useState(null),l=s.useRef(n);return cV(()=>{if(!t&&n!==l.current&&r.current){const e=o.current;if(e){const t=XV(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==l.current&&(l.current=n)},[t,n,r,o]),s.useEffect(()=>{i&&a(null)},[i]),i}({disabled:!q,index:x,node:E,rect:k});return s.useEffect(()=>{j&&G.current.newIndex!==W&&(G.current.newIndex=W),p!==G.current.containerId&&(G.current.containerId=p),d!==G.current.items&&(G.current.items=d)},[j,W,p,d]),s.useEffect(()=>{if(U===G.current.activeId)return;if(null!=U&&null==G.current.activeId)return void(G.current.activeId=U);const e=setTimeout(()=>{G.current.activeId=U},50);return()=>clearTimeout(e)},[U]),{active:P,activeIndex:f,attributes:O,data:S,rect:k,index:x,newIndex:W,items:d,isOver:R,isSorting:j,isDragging:L,listeners:F,node:E,overIndex:b,over:A,setNodeRef:z,setActivatorNodeRef:$,setDroppableNodeRef:M,setDraggableNodeRef:D,transform:null!=Y?Y:V,transition:function(){if(Y||K&&G.current.newIndex===x)return CU;if(B&&!wV(T)||!u)return;if(j||q)return SV.Transition.toString({...u,property:SU});return}()}}function RU(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const MU=[gW.Down,gW.Right,gW.Up,gW.Left],PU=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(MU.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case gW.Down:r.top<i.top&&t.push(n);break;case gW.Up:r.top>i.top&&t.push(n);break;case gW.Left:r.left>i.left&&t.push(n);break;case gW.Right:r.left<i.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=_V(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=_V(r),a=o.reduce((e,t,r)=>e+NV(n[r],t),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(zV)})({collisionRect:r,droppableRects:o,droppableContainers:t});let c=BV(s,"id");if(c===(null==a?void 0:a.id)&&s.length>1&&(c=s[1].id),null!=c){const e=i.get(n.id),t=i.get(c),a=t?o.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&a&&e&&t){const n=ZV(s).some((e,t)=>l[t]!==e),o=TU(e,t),i=function(e,t){if(!RU(e)||!RU(t))return!1;if(!TU(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return c.x&&c.y?u:yV(u,c)}}}};function TU(e,t){return!(!RU(e)||!RU(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var IU=qg(Xp.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),OU=qg(Xp.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),DU=qg(Xp.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),FU=qg(Xp.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"})),LU=qg(Xp.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),AU=qg(Xp.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),$U=qg(Xp.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"})),NU=qg(Xp.jsx("path",{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"}));const zU=({id:e,label:t,fullLabel:n,onDelete:r,onMoveUp:o,onMoveDown:i,isFirst:a,isLast:l,sortOrder:u,onSortOrderChange:d,fullPath:p,defaultTitle:f,customTitle:h,onUpdateTitle:m,onResetTitle:g})=>{const[b,v]=s.useState(!1),[y,w]=s.useState(""),x=s.useRef(null),S=s.useRef(null),{attributes:C,listeners:k,setNodeRef:E,transform:R,transition:M,isDragging:P}=EU({id:e}),T={transform:SV.Transform.toString(R),transition:M,opacity:P?.5:1,display:"flex",alignItems:"center",width:"100%"};s.useEffect(()=>{b&&x.current&&(x.current.focus(),x.current.select())},[b]),s.useEffect(()=>{const e=e=>{b&&S.current&&!S.current.contains(e.target)&&O()};if(b)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[b]);const I=()=>{const e=y.trim();""!==e?(m(p,e),v(!1)):O()},O=()=>{v(!1),w("")},D=h||t,F=!!h;return c.createElement("div",Xr({ref:E,style:T},C),c.createElement(dx,{ref:S,sx:{display:"flex",alignItems:"center",width:"100%",gap:1,backgroundColor:"white",border:"1px solid #e0e0e0",borderRadius:2,padding:1,transition:"transform 0.2s ease, box-shadow 0.2s ease","&:hover .hover-icons":{opacity:1}}},c.createElement(dx,Xr({},k,{sx:{display:"flex",alignItems:"center",cursor:"grab","&:active":{cursor:"grabbing"}}}),c.createElement(IU,{sx:{cursor:"grab",color:"rgba(110, 110, 110, 0.62)"}})),b?c.createElement(c.Fragment,null,c.createElement(wR,{inputRef:x,value:y,onChange:e=>w(e.target.value),onKeyDown:e=>{"Enter"===e.key?I():"Escape"===e.key&&O()},size:"small",sx:{minWidth:"200px",maxWidth:"400px"}}),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:1}},c.createElement(hE,{title:"Save",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:I,color:"primary","aria-label":"save title"},c.createElement(LU,{fontSize:"small"}))),c.createElement(hE,{title:"Cancel",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:O,"aria-label":"cancel edit"},c.createElement(AU,{fontSize:"small"}))),F&&c.createElement(hE,{title:"Reset to default",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:()=>{g(p),v(!1),w("")},color:"warning","aria-label":"reset title"},c.createElement($U,{fontSize:"small"})))),c.createElement(dx,{sx:{flex:1}})):c.createElement(c.Fragment,null,c.createElement(dx,{sx:{minWidth:0}},c.createElement(hE,{title:n||D,arrow:!0,placement:"top"},c.createElement(vv,{variant:"h6",sx:{fontWeight:F?600:500,fontStyle:F?"italic":"normal",color:"#1a1a1a",fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},D))),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:0,transition:"opacity 0.2s"}},c.createElement(hE,{title:"Edit title",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:()=>{w(h||f),v(!0)},"aria-label":"edit title"},c.createElement(UH,{fontSize:"small"}))),c.createElement(hE,{title:null===u?"No sort":"asc"===u?"Ascending":"Descending",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:()=>{d(null===u?"asc":"asc"===u?"desc":null)},"aria-label":"toggle sort order",color:u?"primary":"default"},"asc"===u?c.createElement(OU,{fontSize:"small"}):"desc"===u?c.createElement(DU,{fontSize:"small"}):c.createElement(FU,{fontSize:"small",sx:{opacity:.3}}))),c.createElement(hE,{title:"Delete",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:r,"aria-label":"delete",sx:{color:"#ef5350"}},c.createElement(MM,{fontSize:"small"})))),c.createElement(dx,{sx:{flex:1}}),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:0,transition:"opacity 0.2s"}},c.createElement(ev,{size:"small",onClick:o,disabled:a,"aria-label":"move up"},c.createElement(OU,{fontSize:"small"})),c.createElement(ev,{size:"small",onClick:i,disabled:l,"aria-label":"move down"},c.createElement(DU,{fontSize:"small"}))))))},jU=({providersData:e,rootProvider:t,savedDimensions:n=[],onSaveDimension:r,onRemoveDimension:o,onReorderDimensions:i,titleOverrides:a={},onUpdateTitle:l,onResetTitle:u,existingMetrics:d=[],existingFilters:p={}})=>{const[f,h]=s.useState(!1),[m,g]=s.useState([]),[b,v]=s.useState(""),y=AV(LV(RW),LV(xW,{coordinateGetter:PU})),w=()=>{const r=t?0===m.length?t:m[m.length-1].targetKey:null;if(!r||!e||!e[r])return[];const o=e[r];if(!o.dimensions)return[];const i=[e[t].default_alias];let a=t;m.forEach(t=>{const n=e[a];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&i.push(e.alias)}a=t.targetKey});const l=new Set(n.map(e=>e.fullPath)),s=[];return Object.keys(o.dimensions).forEach(e=>{const t=o.dimensions[e];Object.keys(t).forEach(n=>{const o=t[n],a=`${i.join("_")}.${n}`,c=l.has(a);s.push({key:`${r}_${e}.${n}`,value:o.title||n,dimensionKey:n,alias:e,dimension:o,disabled:c})})}),s},x=()=>{h(!1),g([]),v("")},S=e=>{const n=[t];return e.relationNames&&e.relationNames.length>0&&n.push(...e.relationNames),n.join(" → ")};return c.createElement("div",null,c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-start",mb:2}},!f&&c.createElement(Sx,{variant:"contained",startIcon:c.createElement(vM,null),onClick:()=>{h(!0),g([]),v("")},sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",textTransform:"none",backgroundColor:"rgb(70, 134, 128)",boxShadow:"none","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Add Dimension")),f&&c.createElement(wb,{elevation:0,sx:{p:3,mb:3,border:"1px solid #e0e0e0",borderRadius:"12px",backgroundColor:"white",boxShadow:"0px 2px 4px rgba(0,0,0,0.02)",fontFamily:"system-ui"}},c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Provider Path"),c.createElement(dx,{sx:{mb:3}},c.createElement(eV,{providersData:e,rootProvider:t,onSelectionChange:g,existingDimensions:n,existingMetrics:d,existingFilters:p})),c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Dimension"),c.createElement(dx,{sx:{display:"flex",alignItems:"center",gap:2,mb:3}},c.createElement(NR,{items:w(),value:b,label:"Choose Dimension",onChange:e=>{v(e.target.value)},sx:{width:"400px",fontFamily:"system-ui"}}),c.createElement(hE,{title:"Add all available dimensions",arrow:!0,placement:"top"},c.createElement("span",null,c.createElement(ev,{onClick:()=>{const n=w().filter(e=>!e.disabled);if(0===n.length)return;const o=[],i=[t],a=[];let l=t;m.forEach(t=>{const n=e[l];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&(o.push(e),a.push(e.name))}i.push(t.targetKey),l=t.targetKey});const s=[e[t].default_alias];o.forEach(e=>{s.push(e.alias)}),n.forEach(e=>{const t=`${s.join("_")}.${e.dimensionKey}`,n={dimension:e.dimension,relations:o,providerPath:i,relationNames:a,dimensionKey:e.dimensionKey,dimensionTitle:e.value,fullPath:t};r(n)}),x()},disabled:0===w().filter(e=>!e.disabled).length,"aria-label":"add all dimensions",sx:{color:"rgb(70, 134, 128)",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"8px","&:hover":{backgroundColor:"#f5f5f5"},"&.Mui-disabled":{opacity:.5}}},c.createElement(NU,null))))),c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3}},c.createElement(Sx,{variant:"outlined",onClick:x,sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",borderColor:"#e0e0e0",color:"rgb(37, 37, 37)",textTransform:"none","&:hover":{backgroundColor:"#f5f5f5",borderColor:"#d0d0d0"}}},"Cancel"),c.createElement(Sx,{variant:"contained",onClick:()=>{if(!b)return;const n=w().find(e=>e.key===b);if(!n)return;const o=[],i=[t],a=[];let l=t;m.forEach(t=>{const n=e[l];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&(o.push(e),a.push(e.name))}i.push(t.targetKey),l=t.targetKey});const s=[e[t].default_alias];o.forEach(e=>{s.push(e.alias)});const c=`${s.join("_")}.${n.dimensionKey}`,u={dimension:n.dimension,relations:o,providerPath:i,relationNames:a,dimensionKey:n.dimensionKey,dimensionTitle:n.value,fullPath:c};r(u),x()},disabled:!b,sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",textTransform:"none",backgroundColor:"rgb(70, 134, 128)","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Save Dimension"))),n.length>0&&c.createElement(dx,{sx:{marginTop:0}},c.createElement(vv,{variant:"h6",sx:{fontSize:"16px",fontWeight:600,marginTop:2,color:"rgb(37, 37, 37)"}},"Saved Dimensions"),c.createElement(vv,{sx:{fontSize:"13px",color:"#666",marginBottom:2}},"Drag to reorder or use arrows"),c.createElement(iU,{sensors:y,collisionDetection:VV,onDragEnd:e=>{const{active:t,over:r}=e;if(r&&t.id!==r.id){const e=n.findIndex((e,n)=>n===t.id),o=n.findIndex((e,t)=>t===r.id),a=uU(n,e,o);i(a)}}},c.createElement(vU,{items:n.map((e,t)=>t),strategy:mU},c.createElement(dx,{sx:{display:"flex",flexDirection:"column",gap:1}},n.map((e,t)=>c.createElement(zU,{key:t,id:t,label:e.dimensionTitle,fullLabel:`${S(e)} → ${e.dimensionTitle} (${e.fullPath})`,onDelete:()=>o(t),onMoveUp:()=>(e=>{if(e>0){const t=uU(n,e,e-1);i(t)}})(t),onMoveDown:()=>(e=>{if(e<n.length-1){const t=uU(n,e,e+1);i(t)}})(t),isFirst:0===t,isLast:t===n.length-1,sortOrder:e.sortOrder||null,onSortOrderChange:e=>((e,t)=>{const r=[...n];r[e]={...r[e],sortOrder:t},i(r)})(t,e),fullPath:e.fullPath,defaultTitle:e.dimensionTitle,customTitle:a[e.fullPath],onUpdateTitle:l,onResetTitle:u})))))))},_U=({id:e,label:t,fullLabel:n,onDelete:r,onMoveUp:o,onMoveDown:i,isFirst:a,isLast:l,fullPath:u,defaultTitle:d,customTitle:p,onUpdateTitle:f,onResetTitle:h})=>{const[m,g]=s.useState(!1),[b,v]=s.useState(""),y=s.useRef(null),w=s.useRef(null),{attributes:x,listeners:S,setNodeRef:C,transform:k,transition:E,isDragging:R}=EU({id:e}),M={transform:SV.Transform.toString(k),transition:E,opacity:R?.5:1,display:"flex",alignItems:"center",width:"100%"};s.useEffect(()=>{m&&y.current&&(y.current.focus(),y.current.select())},[m]),s.useEffect(()=>{const e=e=>{m&&w.current&&!w.current.contains(e.target)&&T()};if(m)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[m]);const P=()=>{const e=b.trim();""!==e?(f(u,e),g(!1)):T()},T=()=>{g(!1),v("")},I=p||t,O=!!p;return c.createElement("div",Xr({ref:C,style:M},x),c.createElement(dx,{ref:w,sx:{display:"flex",alignItems:"center",width:"100%",gap:1,backgroundColor:"white",border:"1px solid #e0e0e0",borderRadius:2,padding:1,transition:"transform 0.2s ease, box-shadow 0.2s ease","&:hover .hover-icons":{opacity:1}}},c.createElement(dx,Xr({},S,{sx:{display:"flex",alignItems:"center",cursor:"grab","&:active":{cursor:"grabbing"}}}),c.createElement(IU,{sx:{cursor:"grab",color:"rgba(110, 110, 110, 0.62)"}})),m?c.createElement(c.Fragment,null,c.createElement(wR,{inputRef:y,value:b,onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"===e.key?P():"Escape"===e.key&&T()},size:"small",sx:{minWidth:"200px",maxWidth:"400px"}}),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:1}},c.createElement(hE,{title:"Save",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:P,color:"primary","aria-label":"save title"},c.createElement(LU,{fontSize:"small"}))),c.createElement(hE,{title:"Cancel",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:T,"aria-label":"cancel edit"},c.createElement(AU,{fontSize:"small"}))),O&&c.createElement(hE,{title:"Reset to default",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:()=>{h(u),g(!1),v("")},color:"warning","aria-label":"reset title"},c.createElement($U,{fontSize:"small"})))),c.createElement(dx,{sx:{flex:1}})):c.createElement(c.Fragment,null,c.createElement(dx,{sx:{minWidth:0}},c.createElement(hE,{title:n||I,arrow:!0,placement:"top"},c.createElement(vv,{variant:"h6",sx:{fontWeight:O?600:500,fontStyle:O?"italic":"normal",color:"#1a1a1a",fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},I))),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:0,transition:"opacity 0.2s"}},c.createElement(hE,{title:"Edit title",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:()=>{v(p||d),g(!0)},"aria-label":"edit title"},c.createElement(UH,{fontSize:"small"}))),c.createElement(hE,{title:"Delete",arrow:!0,placement:"top"},c.createElement(ev,{size:"small",onClick:r,"aria-label":"delete",sx:{color:"#ef5350"}},c.createElement(MM,{fontSize:"small"})))),c.createElement(dx,{sx:{flex:1}}),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:0,transition:"opacity 0.2s"}},c.createElement(ev,{size:"small",onClick:o,disabled:a,"aria-label":"move up"},c.createElement(OU,{fontSize:"small"})),c.createElement(ev,{size:"small",onClick:i,disabled:l,"aria-label":"move down"},c.createElement(DU,{fontSize:"small"}))))))},BU=({providersData:e,rootProvider:t,savedMetrics:n=[],onSaveMetric:r,onRemoveMetric:o,onReorderMetrics:i,titleOverrides:a={},onUpdateTitle:l,onResetTitle:u,existingDimensions:d=[],existingFilters:p={}})=>{const[f,h]=s.useState(!1),[m,g]=s.useState([]),[b,v]=s.useState(""),y=AV(LV(RW),LV(xW,{coordinateGetter:PU})),w=()=>{const r=t?0===m.length?t:m[m.length-1].targetKey:null;if(!r||!e||!e[r])return[];const o=e[r];if(!o.metrics)return[];const i=[e[t].default_alias];let a=t;m.forEach(t=>{const n=e[a];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&i.push(e.alias)}a=t.targetKey});const l=new Set(n.map(e=>e.fullPath)),s=o.metrics.map((e,t)=>{const n=`${i.join("_")}.${e.name}`,o=l.has(n);return{key:`${r}_${e.name}_${t}`,value:e.title||e.name,metricName:e.name,metric:e,disabled:o}});return s},x=()=>{h(!1),g([]),v("")},S=e=>{const n=[t];return e.relationNames&&e.relationNames.length>0&&n.push(...e.relationNames),n.join(" → ")};return c.createElement("div",null,c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-start",mb:2}},!f&&c.createElement(Sx,{variant:"contained",startIcon:c.createElement(vM,null),onClick:()=>{h(!0),g([]),v("")},sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",textTransform:"none",backgroundColor:"rgb(70, 134, 128)",boxShadow:"none","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Add Metric")),f&&c.createElement(wb,{elevation:0,sx:{p:3,mb:3,border:"1px solid #e0e0e0",borderRadius:"12px",backgroundColor:"white",boxShadow:"0px 2px 4px rgba(0,0,0,0.02)",fontFamily:"system-ui"}},c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Provider Path"),c.createElement(dx,{sx:{mb:3}},c.createElement(eV,{providersData:e,rootProvider:t,onSelectionChange:g,existingDimensions:d,existingMetrics:n,existingFilters:p})),c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Metric"),c.createElement(dx,{sx:{display:"flex",alignItems:"center",gap:2,mb:3}},c.createElement(NR,{items:w(),value:b,label:"Choose Metric",onChange:e=>{v(e.target.value)},sx:{width:"400px",fontFamily:"system-ui"}}),c.createElement(hE,{title:"Add all available metrics",arrow:!0,placement:"top"},c.createElement("span",null,c.createElement(ev,{onClick:()=>{const n=w().filter(e=>!e.disabled);if(0===n.length)return;const o=[],i=[t],a=[];let l=t;m.forEach(t=>{const n=e[l];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&(o.push(e),a.push(e.name))}i.push(t.targetKey),l=t.targetKey});const s=[e[t].default_alias];o.forEach(e=>{s.push(e.alias)}),n.forEach(e=>{const t=`${s.join("_")}.${e.metricName}`,n={metric:e.metric,relations:o,providerPath:i,relationNames:a,metricName:e.metricName,metricTitle:e.value,fullPath:t};r(n)}),x()},disabled:0===w().filter(e=>!e.disabled).length,"aria-label":"add all metrics",sx:{color:"rgb(70, 134, 128)",border:"1px solid #e0e0e0",borderRadius:"8px",padding:"8px","&:hover":{backgroundColor:"#f5f5f5"},"&.Mui-disabled":{opacity:.5}}},c.createElement(NU,null))))),c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3}},c.createElement(Sx,{variant:"outlined",onClick:x,sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",borderColor:"#e0e0e0",color:"rgb(37, 37, 37)",textTransform:"none","&:hover":{backgroundColor:"#f5f5f5",borderColor:"#d0d0d0"}}},"Cancel"),c.createElement(Sx,{variant:"contained",onClick:()=>{if(!b)return;const n=w().find(e=>e.key===b);if(!n)return;const o=[],i=[t],a=[];let l=t;m.forEach(t=>{const n=e[l];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&(o.push(e),a.push(e.name))}i.push(t.targetKey),l=t.targetKey});const s=[e[t].default_alias];o.forEach(e=>{s.push(e.alias)});const c=`${s.join("_")}.${n.metricName}`,u={metric:n.metric,relations:o,providerPath:i,relationNames:a,metricName:n.metricName,metricTitle:n.value,fullPath:c};r(u),x()},disabled:!b,sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",textTransform:"none",backgroundColor:"rgb(70, 134, 128)","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Save Metric"))),n.length>0&&c.createElement(dx,{sx:{marginTop:0}},c.createElement(vv,{variant:"h6",sx:{fontSize:"16px",fontWeight:600,marginBottom:1,color:"rgb(37, 37, 37)"}},"Saved Metrics"),c.createElement(iU,{sensors:y,collisionDetection:VV,onDragEnd:e=>{const{active:t,over:r}=e;if(r&&t.id!==r.id){const e=n.findIndex((e,n)=>n===t.id),o=n.findIndex((e,t)=>t===r.id),a=uU(n,e,o);i(a)}}},c.createElement(vU,{items:n.map((e,t)=>t),strategy:mU},c.createElement(dx,{sx:{display:"flex",flexDirection:"column",gap:1}},n.map((e,t)=>c.createElement(_U,{key:t,id:t,label:e.metricTitle,fullLabel:`${S(e)} → ${e.metricTitle} (${e.fullPath})`,onDelete:()=>o(t),onMoveUp:()=>(e=>{if(e>0){const t=uU(n,e,e-1);i(t)}})(t),onMoveDown:()=>(e=>{if(e<n.length-1){const t=uU(n,e,e+1);i(t)}})(t),isFirst:0===t,isLast:t===n.length-1,fullPath:e.fullPath,defaultTitle:e.metricTitle,customTitle:a[e.fullPath],onUpdateTitle:l,onResetTitle:u})))))))};var HU=qg(Xp.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.61"}));const VU=["localeText"],WU=s.createContext(null),UU=function(e){const{localeText:t}=e,n=d(e,VU),{adapter:r,localeText:o}=s.useContext(WU)??{adapter:void 0,localeText:void 0},i=Mg({props:n,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:p,localeText:h}=i,m=s.useMemo(()=>f({},h,o,t),[h,o,t]),g=s.useMemo(()=>{if(!l)return r||null;const e=new l({locale:p,formats:c,instance:u});if(!e.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join("\n"));return e},[l,p,c,u,r]),b=s.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=s.useMemo(()=>({utils:g,adapter:g,defaultDates:b,localeText:m}),[b,g,m]);return Xp.jsx(WU.Provider,{value:v,children:a})},GU=(e,t)=>e.length===t.length&&t.every(t=>e.includes(t)),KU=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},qU=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,adapter:a,timezone:l})=>{const s=KU(a,a.date(void 0,l),e);n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},YU=(e,t,n)=>null!=t&&e.isValid(t)?t:n,XU=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},QU=(e,t,n)=>"date"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ZU=["year","month","day"],JU=e=>ZU.includes(e),eG=(e,{format:t,views:n},r)=>{if(null!=t)return t;const o=e.formats;return GU(n,["year"])?o.year:GU(n,["month"])?o.month:GU(n,["day"])?o.dayOfMonth:GU(n,["month","year"])?`${o.month} ${o.year}`:GU(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},tG=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(t=>e.addDays(n,t))},nG=["hours","minutes","seconds"],rG=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),oG={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},iG=(e,t,n)=>{if(t===oG.year)return e.startOfYear(n);if(t===oG.month)return e.startOfMonth(n);if(t===oG.day)return e.startOfDay(n);let r=n;return t<oG.minutes&&(r=e.setMinutes(r,0)),t<oG.seconds&&(r=e.setSeconds(r,0)),t<oG.milliseconds&&(r=e.setMilliseconds(r,0)),r},aG=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():iG(t,n,QU(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,i)&&(i=iG(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,i)&&(i=iG(t,n,e.maxDate));const a=((e,t)=>(n,r)=>e?t.isAfter(n,r):rG(n,t)>rG(r,t))(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&a(e.minTime,i)&&(i=iG(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:KU(t,i,e.minTime))),null!=e.maxTime&&a(i,e.maxTime)&&(i=iG(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:KU(t,i,e.maxTime))),i},lG=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},sG=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(n=>e.formatByString(n,t))},cG=(e,t,n,r)=>{switch(n){case"month":return XU(e,e.date(void 0,t)).map(t=>e.formatByString(t,r));case"weekDay":return sG(e,r);case"meridiem":{const n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map(t=>e.formatByString(t,r))}default:return[]}},uG=["0","1","2","3","4","5","6","7","8","9"],dG=(e,t)=>{if("0"===t[0])return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},pG=(e,t)=>"0"===t[0]?e:e.split("").map(e=>t[Number(e)]).join(""),fG=(e,t)=>{const n=dG(e,t);return" "!==n&&!Number.isNaN(Number(n))},hG=(e,t)=>Number(e).toString().padStart(t,"0"),mG=(e,t,n,r,o)=>{if("day"===o.type&&"digit-with-letter"===o.contentType){const r=e.setDate(n.longestMonth,t);return e.formatByString(r,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=hG(i,o.maxLength)),pG(i,r)},gG=(e,t,n)=>{let r=e.value||e.placeholder;const o="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(dG(r,n)).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!o&&1===r.length&&(r=`${r}`),"input-rtl"===t&&(r=`${r}`),r},bG=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),vG=(e,t)=>4===e.formatByString(e.date(void 0,"system"),t).length,yG=(e,t,n,r)=>{if("digit"!==t)return!1;const o=e.date(void 0,"default");switch(n){case"year":return"dayjs"===e.lib&&"YY"===r||e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},wG={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},xG=(e,t,n,r,o)=>[...n].sort((e,t)=>wG[e.type]-wG[t.type]).reduce((n,r)=>!o||r.modified?((e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=hG(r,t.maxLength));const o=sG(e,t.format),i=o.indexOf(r),a=o.indexOf(t.value)-i;return e.addDays(n,a)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const t=e.getHours(n)<12,o=e.getHours(r);return t&&o>=12?e.addHours(r,-12):!t&&o<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}})(e,r,t,n):n,r),SG=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){const n=t.findIndex(t=>t.type===e);return-1===n?null:n}return e},CG=["value","referenceDate"],kG={emptyValue:null,getTodayValue:QU,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=d(e,CG);return r.adapter.isValid(t)?t:null!=n?n:aG(r)},cleanValue:(e,t)=>e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},EG={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:e=>e.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),getV6InputValueFromSections:(e,t,n)=>{const r=e.map(e=>{const r=gG(e,n?"input-rtl":"input-ltr",t);return`${e.startSeparator}${r}${e.endSeparator}`}).join("");return n?`${r}`:r},parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(e=>f({},e,{value:""}))};function RG(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=RG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function MG(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=RG(e))&&(r&&(r+=" "),r+=t);return r}function PG(e){return Mh("MuiPickersToolbar",e)}Ph("MuiPickersToolbar",["root","title","content"]);const TG=s.createContext(()=>!0);const IG=s.createContext(null);function OG(){return s.useContext(IG)}const DG=s.createContext(null),FG=()=>{const e=s.useContext(DG);if(null==e)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},LG=s.createContext(null),AG=s.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function $G(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:o,isValidContextValue:i,localeText:a,children:l}=e;return Xp.jsx(DG.Provider,{value:t,children:Xp.jsx(LG.Provider,{value:n,children:Xp.jsx(AG.Provider,{value:r,children:Xp.jsx(IG.Provider,{value:o,children:Xp.jsx(TG.Provider,{value:i,children:Xp.jsx(UU,{localeText:a,children:l})})})})})})}const NG=()=>s.useContext(AG);function zG(){const{ownerState:e}=NG(),t=mm();return s.useMemo(()=>f({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const jG=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],_G=Ig("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),BG=Ig("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Oh(e)&&"landscapeDirection"!==e})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),HG=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,classes:i,toolbarTitle:a,hidden:l,titleId:s,landscapeDirection:c}=n,u=d(n,jG),p=zG(),h=(e=>zm({root:["root"],title:["title"],content:["content"]},PG,e))(i);return l?null:Xp.jsxs(_G,f({ref:t,className:MG(h.root,o),ownerState:p},u,{children:[Xp.jsx(vv,{color:"text.secondary",variant:"overline",id:s,className:h.title,children:a}),Xp.jsx(BG,{className:h.content,ownerState:p,landscapeDirection:c,children:r})]}))}),VG={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},WG=VG;f({},VG);const UG=()=>{const e=s.useContext(WU);if(null===e)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.adapter)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=s.useMemo(()=>f({},WG,e.localeText),[e.localeText]);return s.useMemo(()=>f({},e,{localeText:t}),[e,t])},GG=()=>UG().adapter,KG=()=>UG().localeText,qG=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],YG=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],XG=["minDateTime","maxDateTime"],QG=[...qG,...YG,...XG],ZG=e=>QG.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),JG=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],eK=(e,t)=>s.useMemo(()=>{const n=f({},e),r={},o=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return JG.forEach(o),"date"===t?qG.forEach(o):"time"===t?YG.forEach(o):"date-time"===t&&(qG.forEach(o),YG.forEach(o),XG.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),tK=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},nK=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:l})=>{if(""===a)throw new Error("MUI X: Should not call `commitToken` with an empty token");const s=lG(e,a),c=yG(e,s.contentType,s.type,a),u=n?c:"digit"===s.contentType,d=e.isValid(t);let p=d?e.formatByString(t,a):"",h=null;if(u)if(c)h=""===p?e.formatByString(i,a).length:p.length;else{if(null==s.maxLength)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=s.maxLength,d&&(p=pG(hG(dG(p,o),h),o))}return f({},s,{format:a,maxLength:h,value:p,placeholder:tK(e,r,s,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:l,endSeparator:"",modified:!1})},rK=e=>{let t=(({adapter:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return o})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=(({adapter:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n})(f({},e,{expandedFormat:t})),r=(e=>{const{adapter:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((e,t)=>t.length-e.length),s=/^([a-zA-Z]+)/,c=new RegExp(`^(${l.join("|")})*$`),u=new RegExp(`^(${l.join("|")})`),d=e=>r.find(t=>t.start<=e&&t.end>=e);let p=0;for(;p<n.length;){const t=d(p),r=null!=t,l=s.exec(n.slice(p))?.[1];if(!r&&null!=l&&c.test(l)){let t=l;for(;t.length>0;){const n=u.exec(t)[1];t=t.slice(n.length),i.push(nK(f({},e,{now:o,token:n,startSeparator:a}))),a=""}p+=l.length}else{const e=n[p];r&&t?.start===p||t?.end===p||(0===i.length?a+=e:(i[i.length-1].endSeparator+=e,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return 0===i.length&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i})(f({},e,{expandedFormat:t,escapedParts:n}));return(({isRtl:e,formatDensity:t,sections:n})=>n.map(n=>{const r=n=>{let r=n;return e&&null!==r&&r.includes(" ")&&(r=`${r}`),"spacious"===t&&["/",".","-"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n}))(f({},e,{sections:r}))},oK=()=>s.useContext(DG);function iK(e){return Mh("MuiDatePickerToolbar",e)}Ph("MuiDatePickerToolbar",["root","title"]);const aK=["toolbarFormat","toolbarPlaceholder","className","classes"],lK=Ig(HG,{name:"MuiDatePickerToolbar",slot:"Root"})({}),sK=Ig(vv,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),cK=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:o="––",className:i,classes:a}=n,l=d(n,aK),c=GG(),{value:u,views:p,orientation:h}=FG(),m=KG(),g=zG(),b=(e=>zm({root:["root"],title:["title"]},iK,e))(a),v=s.useMemo(()=>{if(!c.isValid(u))return o;const e=eG(c,{format:r,views:p},!0);return c.formatByString(u,e)},[u,r,o,c,p]);return Xp.jsx(lK,f({ref:t,toolbarTitle:m.datePickerToolbarTitle,className:MG(b.root,i)},l,{children:Xp.jsx(sK,{variant:"h4",align:"landscape"===h?"left":"center",ownerState:g,className:b.title,children:v})}))}),uK=({props:e,value:t,timezone:n,adapter:r})=>{if(null===t)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:s,minDate:c,maxDate:u}=e,d=r.date(void 0,n);switch(!0){case!r.isValid(t):return"invalidDate";case Boolean(o&&o(t)):return"shouldDisableDate";case Boolean(i&&i(t)):return"shouldDisableMonth";case Boolean(a&&a(t)):return"shouldDisableYear";case Boolean(s&&r.isAfterDay(t,d)):return"disableFuture";case Boolean(l&&r.isBeforeDay(t,d)):return"disablePast";case Boolean(c&&r.isBeforeDay(t,c)):return"minDate";case Boolean(u&&r.isAfterDay(t,u)):return"maxDate";default:return null}};function dK(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=GG(),l=s.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:r,timezone:o,props:t}),u=n.valueManager.hasError(c);s.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,r),l.current=c},[n,i,c,r]);const d=eb(e=>n({adapter:a,value:e,timezone:o,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}uK.valueManager=kG;const pK=e=>{const t=GG(),n=s.useRef(void 0);return void 0===n.current&&(n.current=t.date(void 0,e)),n.current};function fK(e){const t=GG(),n=KG();return s.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function hK(e){const t=GG(),n=mK(e);return s.useMemo(()=>f({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function mK(e){const t=GG(),n=UG().defaultDates;return s.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:YU(t,e.minDate,n.minDate),maxDate:YU(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function gK(e,t){const n=Mg({props:e,name:t}),r=mK(n),o=s.useMemo(()=>null==n.localeText?.toolbarTitle?n.localeText:f({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle}),[n.localeText]);return f({},n,r,{localeText:o},(({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(null!=e)i=e;else if(o.includes(t))i=t;else{if(!(o.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");i=o[0]}return{views:o,openTo:i}})({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:f({toolbar:cK},n.slots)})}function bK(e){return Mh("MuiPickerPopper",e)}Ph("MuiPickerPopper",["root","paper"]);const vK=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?vK(t.shadowRoot):t:null},yK=e=>vK(Xg(e)),wK="@media (pointer: fine)",xK=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],SK=Ig(ew,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),CK=Ig(wb,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});const kK=s.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:o,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:s}=e,c=d(e,xK),u=Uy({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return Xp.jsx(n,f({},c,u,{onClick:e=>{l(e),u.onClick?.(e)},onTouchStart:e=>{s(e),u.onTouchStart?.(e)},ownerState:r,children:o}))});function EK(e){const t=Mg({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:o,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=FG(),{ownerState:d,rootRefObject:p}=NG(),{dismissViews:h,getCurrentViewMode:m,onPopperExited:g,triggerElement:b,viewContainerRole:v}=NG();s.useEffect(()=>{function e(e){l&&"Escape"===e.key&&h()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h,l]);const y=s.useRef(null);s.useEffect(()=>{"tooltip"!==v&&"field"!==m()&&(l?y.current=yK(p.current):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[l,v,m,p]);const w=(e=>zm({root:["root"],paper:["paper"]},bK,e))(a),x=eb(()=>{"tooltip"===v?setTimeout(()=>{p.current?.contains(yK(p.current))||c.current?.contains(yK(c.current))||h()},0):h()}),[S,C,k]=function(e,t){const n=s.useRef(!1),r=s.useRef(!1),o=s.useRef(null),i=s.useRef(!1);s.useEffect(()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}},[e]);const a=eb(e=>{if(!i.current)return;const a=r.current;r.current=!1;const l=Xg(o.current);if(!o.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,l))return;if(n.current)return void(n.current=!1);let s;s=e.composedPath?e.composedPath().indexOf(o.current)>-1:!l.documentElement.contains(e.target)||o.current.contains(e.target),s||a||t(e)}),l=e=>{e.defaultMuiPrevented||(r.current=!0)};return s.useEffect(()=>{if(e){const e=Xg(o.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",a),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",a),e.removeEventListener("touchmove",t)}}},[e,a]),s.useEffect(()=>{if(e){const e=Xg(o.current);return e.addEventListener("click",a),()=>{e.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,l,l]}(l,x),E=tb(s.useRef(null),c),R=tb(E,S),M=o?.desktopTransition??u?Jw:JS,P=o?.desktopTrapFocus??Yx,T=o?.desktopPaper??CK,I=o?.popper??SK,O=Uy({elementType:I,externalSlotProps:i?.popper,additionalProps:{transition:!0,role:null==v?void 0:v,open:l,placement:r,anchorEl:b,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),h())}},className:w.root,ownerState:d}),D=s.useMemo(()=>f({},d,{popperPlacement:O.placement}),[d,O.placement]);return Xp.jsx(I,f({},O,{children:({TransitionProps:e})=>Xp.jsx(P,f({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===v,isEnabled:()=>!0},i?.desktopTrapFocus,{children:Xp.jsx(M,f({},e,i?.desktopTransition,{onExited:t=>{g?.(),i?.desktopTransition?.onExited?.(t),e?.onExited?.()},children:Xp.jsx(kK,{PaperComponent:T,ownerState:D,ref:R,onPaperClick:C,onPaperTouchStart:k,paperClasses:w.paper,paperSlotProps:i?.desktopPaper,children:n})}))}))}))}const RK="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),MK=RK&&RK[1]?parseInt(RK[1],10):null,PK=RK&&RK[2]?parseInt(RK[2],10):null,TK=MK&&MK<10||PK&&PK<13||!1;function IK(e){const t=PR("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1});return null!=e?e:t||TK}const OK={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function DK({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){const u=s.useRef(n),d=s.useRef(o),p=s.useRef(o.includes(n)?n:o[0]),[h,m]=Jg({name:"useViews",state:"view",controlled:r,default:p.current}),g=s.useRef(i?h:null),[b,v]=Jg({name:"useViews",state:"focusedView",controlled:a,default:g.current}),y=c?c({setView:m,view:h,defaultView:p.current,views:o}):OK;s.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(e=>!o.includes(e)))&&(m(o.includes(n)?n:o[0]),d.current=o,u.current=n)},[n,m,h,o]);const w=o.indexOf(h),x=o[w-1]??null,S=o[w+1]??null,C=eb((e,t)=>{v(t?e:t=>e===t?null:t),l?.(e,t)}),k=eb(e=>{C(e,!0),e!==h&&(m(e),t&&t(e))}),E=eb(()=>{S&&k(S)}),R=eb((t,n,r)=>{const i="finish"===n,a=r?o.indexOf(r)<o.length-1:Boolean(S);e(t,i&&a?"partial":n,r);let l=null;if(null!=r&&r!==h?l=r:i&&(l=h),null==l)return;const s=o[o.indexOf(l)+1];null!=s&&y.areViewsInSameStep(l,s)&&k(s)});return f({},y,{view:h,setView:k,focusedView:b,setFocusedView:C,nextView:S,previousView:x,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:R})}function FK(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function LK(e,t){const[n,r]=s.useState(FK);return Wh(()=>{const e=()=>{r(FK())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),o=e,i=["hours","minutes","seconds"],(Array.isArray(i)?i.every(e=>-1!==o.indexOf(e)):-1!==o.indexOf(i))?"portrait":t??n;var o,i}const AK=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const l=GG(),[c,u]=Jg({name:e,state:"value",controlled:n,default:r??a.emptyValue}),d=s.useMemo(()=>a.getTimezone(l,c),[l,a,c]),p=eb(e=>null==d?e:a.setTimezone(l,d,e)),f=s.useMemo(()=>t||(d||(o?l.getTimezone(Array.isArray(o)?o[0]:o):"default")),[t,d,o,l]);return{value:s.useMemo(()=>a.setTimezone(l,f,c),[a,l,f,c]),handleValueChange:eb((e,...t)=>{const n=p(e);u(n),i?.(n,...t)}),timezone:f}};const $K=["className","sx"],NK=({ref:e,props:t,valueManager:n,valueType:r,variant:o,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:p,getStepNavigation:h})=>{const{views:m,view:g,openTo:b,onViewChange:v,viewRenderers:y,reduceAnimations:w,orientation:x,disableOpenPicker:S,closeOnSelect:C,disabled:k,readOnly:E,formatDensity:R,enableAccessibleFieldDOMStructure:M,selectedSections:P,onSelectedSectionsChange:T,format:I,label:O,autoFocus:D,name:F}=t,{className:L,sx:A}=t,$=d(t,$K),N=xm(),z=GG(),j=IK(w),_=LK(m,x),{current:B}=s.useRef(b??null),[H,V]=s.useState(null),W=s.useRef(null),U=s.useRef(null),G=s.useRef(null),K=tb(e,G),{timezone:q,state:Y,setOpen:X,setValue:Q,setValueFromView:Z,value:J,viewValue:ee}=function(e){const{props:t,valueManager:n,validator:r}=e,{value:o,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:p,onOpen:h,onClose:m}=t,{current:g}=s.useRef(i),{current:b}=s.useRef(void 0!==o),{current:v}=s.useRef(void 0!==p),y=GG(),{timezone:w,value:x,handleValueChange:S}=AK({name:"a picker component",timezone:c,value:o,defaultValue:g,referenceDate:l,onChange:a,valueManager:n}),[C,k]=s.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:E}=dK({props:t,validator:r,timezone:w,value:x,onError:t.onError}),R=eb(e=>{const t="function"==typeof e?e(C.open):e;v||k(e=>f({},e,{open:t})),t&&h&&h(),t||m?.()}),M=eb((e,t)=>{const{changeImportance:r="accept",skipPublicationIfPristine:o=!1,validationError:i,shortcut:a,source:l,shouldClose:s="accept"===r}=t??{};let c,d;o||b||C.hasBeenModifiedSinceMount?(c=!n.areValuesEqual(y,e,x),d="accept"===r&&!n.areValuesEqual(y,e,C.lastCommittedValue)):(c=!0,d="accept"===r),k(t=>f({},t,{clockShallowValue:c?void 0:t.clockShallowValue,lastCommittedValue:d?e:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let p=null;const h=()=>{if(!p){let t;t=l||(a?"view":"unknown"),p={validationError:null==i?E(e):i,source:t},a&&(p.shortcut=a)}return p};c&&S(e,h()),d&&u&&u(e,h()),s&&R(!1)});x!==C.lastExternalValue&&k(e=>f({},e,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const P=eb((e,t="partial")=>{"shallow"!==t?M(e,{changeImportance:"finish"===t&&d?"accept":"set",source:"view"}):k(t=>f({},t,{clockShallowValue:e,hasBeenModifiedSinceMount:!0}))});s.useEffect(()=>{if(v){if(void 0===p)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");k(e=>f({},e,{open:p}))}},[v,p]);const T=s.useMemo(()=>n.cleanValue(y,void 0===C.clockShallowValue?x:C.clockShallowValue),[y,n,C.clockShallowValue,x]);return{timezone:w,state:C,setValue:M,setValueFromView:P,setOpen:R,value:x,viewValue:T}}({props:t,valueManager:n,validator:i}),{view:te,setView:ne,defaultView:re,focusedView:oe,setFocusedView:ie,setValueAndGoToNextView:ae,goToNextStep:le,hasNextStep:se,hasSeveralSteps:ce}=DK({view:g,views:m,openTo:b,onChange:Z,onViewChange:v,autoFocus:l,getStepNavigation:h}),ue=eb(()=>Q(n.emptyValue,{source:"view"})),de=eb(()=>Q(n.getTodayValue(z,q,r),{source:"view"})),pe=eb(()=>Q(J,{source:"view"})),fe=eb(()=>Q(Y.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),he=eb(()=>{Q(J,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:me,viewModeLookup:ge,timeViewsCount:be}=s.useMemo(()=>m.reduce((e,t)=>{const n=null==y[t]?"field":"UI";return e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0,(e=>nG.includes(e))(t)&&(e.timeViewsCount+=1)),e},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,m]),ve=ge[te],ye=eb(()=>ve),[we,xe]=s.useState("UI"===ve?te:null);we!==te&&"UI"===ge[te]&&xe(te),Wh(()=>{"field"===ve&&Y.open&&(X(!1),setTimeout(()=>{U?.current?.setSelectedSections(te),U?.current?.focusField(te)}))},[te]),Wh(()=>{if(!Y.open)return;let e=te;"field"===ve&&null!=we&&(e=we),e!==re&&"UI"===ge[e]&&"UI"===ge[re]&&(e=re),e!==te&&ne(e),ie(e,!0)},[Y.open]);const Se=s.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(z,J,n.emptyValue),isPickerOpen:Y.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:_,pickerVariant:o}),[z,n,J,Y.open,_,o,t.disabled,t.readOnly]),Ce=s.useMemo(()=>S||!me?"hidden":k||E?"disabled":"enabled",[S,me,k,E]),ke=eb(le),Ee=s.useMemo(()=>C&&!ce?[]:["cancel","nextOrAccept"],[C,ce]),Re=s.useMemo(()=>({setValue:Q,setOpen:X,clearValue:ue,setValueToToday:de,acceptValueChanges:pe,cancelValueChanges:fe,setView:ne,goToNextStep:ke}),[Q,X,ue,de,pe,fe,ne,ke]),Me=s.useMemo(()=>f({},Re,{value:J,timezone:q,open:Y.open,views:m,view:we,initialView:B,disabled:k??!1,readOnly:E??!1,autoFocus:D??!1,variant:o,orientation:_,popupRef:W,reduceAnimations:j,triggerRef:V,triggerStatus:Ce,hasNextStep:se,fieldFormat:I??"",name:F,label:O,rootSx:A,rootRef:K,rootClassName:L}),[Re,J,K,o,_,j,k,E,I,L,F,O,A,Ce,se,q,Y.open,we,m,B,D]),Pe=s.useMemo(()=>({dismissViews:he,ownerState:Se,hasUIView:me,getCurrentViewMode:ye,rootRefObject:G,labelId:N,triggerElement:H,viewContainerRole:p,defaultActionBarActions:Ee,onPopperExited:a}),[he,Se,me,ye,N,H,p,Ee,a]),Te=s.useMemo(()=>({formatDensity:R,enableAccessibleFieldDOMStructure:M,selectedSections:P,onSelectedSectionsChange:T,fieldRef:U}),[R,M,P,T,U]);return{providerProps:{localeText:u,contextValue:Me,privateContextValue:Pe,actionsContextValue:Re,fieldPrivateContextValue:Te,isValidContextValue:e=>{const r=i({adapter:z,value:e,timezone:q,props:t});return!n.hasError(r)}},renderCurrentView:()=>{if(null==we)return null;const e=y[we];if(null==e)return null;const t=f({},$,{views:m,timezone:q,value:ee,onChange:ae,view:we,onViewChange:ne,showViewSwitcher:be>1,timeViewsCount:be},"tooltip"===p?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:oe,onFocusedViewChange:ie});return c?Xp.jsx(c,{viewRenderers:y,popperView:we,rendererProps:t}):e(t)},ownerState:Se}};function zK(e){return Mh("MuiPickersLayout",e)}const jK=Ph("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),_K=["actions"],BK=Ig(fS,{name:"MuiPickersLayout",slot:"ActionBar"})({});function HK(e){const{actions:t}=e,n=d(e,_K),r=KG(),{clearValue:o,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:s,hasNextStep:c}=FG();if(null==t||0===t.length)return null;const u=t?.map(e=>{switch(e){case"clear":return Xp.jsx(Sx,{onClick:o,children:r.clearButtonLabel},e);case"cancel":return Xp.jsx(Sx,{onClick:l,children:r.cancelButtonLabel},e);case"accept":return Xp.jsx(Sx,{onClick:a,children:r.okButtonLabel},e);case"today":return Xp.jsx(Sx,{onClick:i,children:r.todayButtonLabel},e);case"next":return Xp.jsx(Sx,{onClick:s,children:r.nextStepButtonLabel},e);case"nextOrAccept":return c?Xp.jsx(Sx,{onClick:s,children:r.nextStepButtonLabel},e):Xp.jsx(Sx,{onClick:a,children:r.okButtonLabel},e);default:return null}});return Xp.jsx(BK,f({},n,{children:u}))}const VK=s.memo(HK),WK=320,UK=["items","changeImportance"],GK=["getValue"],KK=Ig(MC,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function qK(e){const{items:t,changeImportance:n="accept"}=e,r=d(e,UK),{setValue:o}=(()=>{const e=s.useContext(LG);if(null==e)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join("\n"));return e})(),i=s.useContext(TG);if(null==t||0===t.length)return null;const a=t.map(e=>{let{getValue:t}=e,r=d(e,GK);const a=t({isValid:i});return f({},r,{label:r.label,onClick:()=>{o(a,{changeImportance:n,shortcut:r,source:"view"})},disabled:!i(a)})});return Xp.jsx(KK,f({dense:!0,sx:[{maxHeight:336,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(e=>Xp.jsx(AC,{children:Xp.jsx(uw,f({},e))},e.id??e.label))}))}const YK=["ownerState"];const XK=e=>{const{ownerState:t,defaultActionBarActions:n}=NG(),{view:r}=FG(),o=mm(),{children:i,slots:a,slotProps:l,classes:c}=e,u=s.useMemo(()=>f({},t,{layoutDirection:o?"rtl":"ltr",hasShortcuts:!1}),[t,o]),p=((e,t)=>{const{pickerOrientation:n}=t;return zm({root:["root","landscape"===n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},zK,e)})(c,u),h=a?.actionBar??VK,m=d(Uy({elementType:h,externalSlotProps:l?.actionBar,additionalProps:{actions:n},className:p.actionBar,ownerState:u}),YK),g=Xp.jsx(h,f({},m)),b=a?.toolbar,v=Uy({elementType:b,externalSlotProps:l?.toolbar,className:p.toolbar,ownerState:u}),y=function(e){return null!==e.view}(v)&&b?Xp.jsx(b,f({},v)):null,w=i,x=a?.tabs,S=r&&x?Xp.jsx(x,f({className:p.tabs},l?.tabs)):null,C=a?.shortcuts??qK,k=Uy({elementType:C,externalSlotProps:l?.shortcuts,className:p.shortcuts,ownerState:u}),E=Array.isArray(k?.items)&&k.items.length>0;return{toolbar:y,content:w,tabs:S,actionBar:g,shortcuts:r&&C?Xp.jsx(C,f({},k)):null,ownerState:f({},u,{hasShortcuts:E})}},QK=Ig("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${jK.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${jK.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${jK.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${jK.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${jK.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${jK.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${jK.shortcuts}`]:{gridColumn:4}}}]}),ZK=Ig("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),JK=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:l,ownerState:c}=XK(n),{orientation:u,variant:d}=FG(),{sx:p,className:f,classes:h}=n,m=((e,t)=>{const{pickerOrientation:n}=t;return zm({root:["root","landscape"===n&&"landscape"],contentWrapper:["contentWrapper"]},zK,e)})(h,c);return Xp.jsxs(QK,{ref:t,sx:p,className:MG(m.root,f),ownerState:c,children:["landscape"===u?l:r,"landscape"===u?r:l,Xp.jsx(ZK,{className:m.contentWrapper,ownerState:c,children:"desktop"===d?Xp.jsxs(s.Fragment,{children:[o,i]}):Xp.jsxs(s.Fragment,{children:[i,o]})}),a]})});function eq(e){const{steps:t}=e;return function(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return e=>{if(null==t)return OK;const o=t.findIndex(t=>n(e.view,t)),i=-1===o||o===t.length-1?null:t[o+1];return{hasNextStep:null!=i,hasSeveralSteps:t.length>1,goToNextStep:()=>{null!=i&&r(f({},e,{step:i}))},areViewsInSameStep:(e,r)=>t.find(t=>n(e,t))===t.find(e=>n(r,e))}}}({steps:t,isViewMatchingStep:(e,t)=>null==t.views||t.views.includes(e),onStepChange:({step:e,defaultView:t,setView:n,view:r,views:o})=>{const i=null==e.views?t:e.views.find(e=>o.includes(e));i!==r&&n(i)}})}const tq=["props","steps"],nq=["ownerState"],rq=e=>null!=e.saveQuery,oq=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:o,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=GG(),s=({keyPressed:e,sectionIndex:t},r,i)=>{const a=e.toLowerCase(),l=n.sections[t];if(null!=n.characterQuery&&(!i||i(n.characterQuery.value))&&n.characterQuery.sectionIndex===t){const e=`${n.characterQuery.value}${a}`,i=r(e,l);if(!rq(i))return o({sectionIndex:t,value:e,sectionType:l.type}),i}const s=r(a,l);return rq(s)&&!s.saveQuery?(o(null),null):(o({sectionIndex:t,value:a,sectionType:l.type}),rq(s)?null:s)};return eb(o=>{const c=n.sections[o.sectionIndex],u=fG(o.keyPressed,e)?(n=>{const r=({queryValue:n,skipIfBelowMinimum:r,section:o})=>{const i=dG(n,e),a=Number(i),s=t[o.type]({currentDate:null,format:o.format,contentType:o.contentType});if(a>s.maximum)return{saveQuery:!1};if(r&&a<s.minimum)return{saveQuery:!0};const c=10*a>s.maximum||i.length===s.maximum.toString().length;return{sectionValue:mG(l,a,s,e,o),shouldGoToNextSection:c}};return s(n,(e,t)=>{if("digit"===t.contentType||"digit-with-letter"===t.contentType)return r({queryValue:e,skipIfBelowMinimum:!1,section:t});if("month"===t.type){yG(l,"digit","month","MM");const n=r({queryValue:e,skipIfBelowMinimum:!0,section:{type:t.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});return rq(n)?n:f({},n,{sectionValue:bG(l,n.sectionValue,"MM",t.format)})}if("weekDay"===t.type){const n=r({queryValue:e,skipIfBelowMinimum:!0,section:t});return rq(n)?n:f({},n,{sectionValue:sG(l,t.format)[Number(n.sectionValue)-1]})}return{saveQuery:!1}},t=>fG(t,e))})(f({},o,{keyPressed:pG(o.keyPressed,e)})):(e=>{const t=(e,t,n)=>{const r=t.filter(e=>e.toLowerCase().startsWith(n));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,o,i)=>{const a=e=>cG(l,r,n.type,e);if("letter"===n.contentType)return t(n.format,a(n.format),e);if(o&&null!=i&&"letter"===lG(l,o).contentType){const n=a(o),r=t(0,n,e);return rq(r)?{saveQuery:!1}:f({},r,{sectionValue:i(r.sectionValue,n)})}return{saveQuery:!1}};return s(e,(e,t)=>{switch(t.type){case"month":{const r=e=>bG(l,e,l.formats.month,t.format);return n(e,t,l.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,l.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}})})(o);null!=u?a({section:c,newSectionValue:u.sectionValue,shouldGoToNextSection:u.shouldGoToNextSection}):i(null)})},iq=e=>{const t=GG(),n=KG(),r=mm(),{manager:{validator:o,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:p,onChange:h,format:m,formatDensity:g="dense",selectedSections:b,onSelectedSectionsChange:v,shouldRespectLeadingZeros:y=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:S}}=e,{value:C,handleValueChange:k,timezone:E}=AK({name:"a field component",timezone:w,value:u,defaultValue:d,referenceDate:p,onChange:h,valueManager:a}),R=s.useRef(C);s.useEffect(()=>{R.current=C},[C]);const{hasValidationError:M}=dK({props:c,validator:o,timezone:E,value:C,onError:c.onError}),P=s.useMemo(()=>(e=>{const t=e.date(void 0);return"0"===e.formatByString(e.setSeconds(t,0),"s")?uG:Array.from({length:10}).map((n,r)=>e.formatByString(e.setSeconds(t,r),"s"))})(t),[t]),T=s.useMemo(()=>((e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=XU(e,r).reduce((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:vG(e,t)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:t})=>({minimum:1,maximum:e.isValid(t)?e.getDaysInMonth(t):a,longestMonth:l}),weekDay:({format:t,contentType:n})=>{if("digit"===n){const n=sG(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{const o=e.getHours(i);return dG(e.formatByString(e.endOfDay(r),n),t)!==o.toString()?{minimum:1,maximum:Number(dG(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:o}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,P,E),[t,P,E]),I=s.useCallback(e=>l.getSectionsFromValue(e,e=>rK({adapter:t,localeText:n,localizedDigits:P,format:m,date:e,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:x,isRtl:r})),[l,m,n,P,r,y,t,g,x]),[O,D]=s.useState(()=>{const e=I(C),n={sections:e,lastExternalValue:C,lastSectionsDependencies:{format:m,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},o=(e=>Math.max(...e.map(e=>oG[e.type]??1)))(e);return f({},n,{referenceValue:a.getInitialReferenceValue({referenceDate:p,value:C,adapter:t,props:c,granularity:o,timezone:E})})}),[F,L]=Jg({controlled:b,default:null,name:"useField",state:"selectedSections"}),A=e=>{L(e),v?.(e)},$=s.useMemo(()=>SG(F,O.sections),[F,O.sections]),N="all"===$?0:$,z=s.useMemo(()=>((e,t)=>{const n={};if(!t)return e.forEach((t,r)=>{const o=0===r?null:r-1,i=r===e.length-1?null:r+1;n[r]={leftIndex:o,rightIndex:i}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((e,t)=>t>=i&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator),-1===a&&(a=e.length-1);for(let e=a;e>=i;e-=1)o[e]=l,r[l]=e,l-=1;i=a+1}return e.forEach((t,i)=>{const a=o[i],l=0===a?null:r[a-1],s=a===e.length-1?null:r[a+1];n[i]={leftIndex:l,rightIndex:s}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(O.sections,r&&!x),[O.sections,r,x]),j=s.useMemo(()=>O.sections.every(e=>""===e.value),[O.sections]),_=s.useMemo(()=>{if(null!=N)return!1;const e=O.sections.filter(e=>""!==e.value);return e.length>0&&O.sections.length-e.length>0},[O.sections,N]),B=s.useMemo(()=>void 0!==S?S:M||_,[M,_,S]),H=e=>{const n={validationError:o({adapter:t,value:e,timezone:E,props:c})};k(e,n)},V=(e,t)=>{const n=[...O.sections];return n[e]=f({},n[e],{value:t,modified:!0}),n},W=s.useRef(null),U=sb(),G=e=>{null!=N&&(W.current={sectionIndex:N,value:e},U.start(0,()=>{W.current=null}))},K=()=>{if(null==N)return;const e=O.sections[N];""!==e.value&&(G(""),null===l.getDateFromSection(C,e)?D(e=>f({},e,{sections:V(N,""),tempValueStrAndroid:null,characterQuery:null})):(D(e=>f({},e,{characterQuery:null})),H(l.updateDateInValue(C,e,null))))},q=sb(),Y=eb(e=>{D(t=>f({},t,{characterQuery:e}))});if(C!==O.lastExternalValue){const e=null!=W.current&&!t.isValid(l.getDateFromSection(C,O.sections[W.current.sectionIndex]));let n;n=e?V(W.current.sectionIndex,W.current.value):I(C),D(o=>f({},o,{lastExternalValue:C,sections:n,sectionsDependencies:{format:m,isRtl:r,locale:t.locale},referenceValue:e?o.referenceValue:l.updateReferenceValue(t,C,o.referenceValue),tempValueStrAndroid:null}))}if(r!==O.lastSectionsDependencies.isRtl||m!==O.lastSectionsDependencies.format||t.locale!==O.lastSectionsDependencies.locale){const e=I(C);D(n=>f({},n,{lastSectionsDependencies:{format:m,isRtl:r,locale:t.locale},sections:e,tempValueStrAndroid:null,characterQuery:null}))}null==O.characterQuery||B||null!=N||Y(null),null!=O.characterQuery&&O.sections[O.characterQuery.sectionIndex]?.type!==O.characterQuery.sectionType&&Y(null),s.useEffect(()=>{null!=W.current&&(W.current=null)});const X=sb();return s.useEffect(()=>(null!=O.characterQuery&&X.start(5e3,()=>Y(null)),()=>{}),[O.characterQuery,Y,X]),s.useEffect(()=>{null!=O.tempValueStrAndroid&&null!=N&&K()},[O.sections]),{activeSectionIndex:N,areAllSectionsEmpty:j,error:B,localizedDigits:P,parsedSelectedSections:$,sectionOrder:z,sectionsValueBoundaries:T,state:O,timezone:E,value:C,clearValue:()=>{a.areValuesEqual(t,C,a.emptyValue)?D(e=>f({},e,{sections:e.sections.map(e=>f({},e,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(D(e=>f({},e,{characterQuery:null})),H(a.emptyValue))},clearActiveSection:K,setCharacterQuery:Y,setSelectedSections:A,setTempAndroidValueStr:e=>D(t=>f({},t,{tempValueStrAndroid:e})),updateSectionValue:({section:e,newSectionValue:n,shouldGoToNextSection:r})=>{U.clear(),q.clear();const o=l.getDateFromSection(C,e);r&&N<O.sections.length-1&&A(N+1);const i=V(N,n),a=l.getDateSectionsFromValue(i,e),s=((e,t,n)=>{const r=t.some(e=>"day"===e.type),o=[],i=[];for(let e=0;e<t.length;e+=1){const a=t[e];r&&"weekDay"===a.type||(o.push(a.format),i.push(gG(a,"non-input",n)))}const a=o.join(" "),l=i.join(" ");return e.parse(l,a)})(t,a,P);if(t.isValid(s)){const n=xG(t,s,a,l.getDateFromSection(O.referenceValue,e),!0);return null==o&&q.start(0,()=>{R.current===C&&D(t=>f({},t,{sections:l.clearDateSections(O.sections,e),tempValueStrAndroid:null}))}),H(l.updateDateInValue(C,e,n))}return a.every(e=>""!==e.value)&&(null==o||t.isValid(o))?(G(n),H(l.updateDateInValue(C,e,s))):(null!=o&&(G(n),H(l.updateDateInValue(C,e,s))),D(e=>f({},e,{sections:i,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const o=l.parseValueStr(e,O.referenceValue,(e,o)=>{const i=t.parse(e,m);if(!t.isValid(i))return null;const a=rK({adapter:t,localeText:n,localizedDigits:P,format:m,date:i,formatDensity:g,shouldRespectLeadingZeros:y,enableAccessibleFieldDOMStructure:x,isRtl:r});return xG(t,i,a,o,!1)});H(o)},getSectionsFromValue:I}};function aq(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,o=oK(),i=OG(),a=tb(n.unstableFieldRef,r?null:i?.fieldRef),l=o?.setValue,c=s.useCallback((e,t)=>l?.(e,{validationError:t.validationError,shouldClose:!1}),[l]);return t(s.useMemo(()=>null!=i&&null!=o?f({value:o.value,onChange:c,timezone:o.timezone,disabled:o.disabled,readOnly:o.readOnly,autoFocus:o.autoFocus&&!o.open,focused:!!o.open||void 0,format:o.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[o,i,n,c,a]))}function lq(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:o}}=e;if(!n.isReady())return;const i=Xg(n.getRoot()).getSelection();if(!i)return;if(null==r)return i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),void(t&&n.getRoot().blur());if(!n.getRoot().contains(yK(n.getRoot())))return;const a=new window.Range;let l;if("all"===r)l=n.getRoot();else{l="empty"===o.sections[r].type?n.getSectionContainer(r):n.getSectionContent(r)}a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function sq(e){const t=GG(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:o,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:s,parsedSelectedSections:c,sectionsValueBoundaries:u,localizedDigits:d,timezone:p,sectionOrder:f,clearValue:h,clearActiveSection:m,setSelectedSections:g,updateSectionValue:b}}=e;return eb(e=>{if(!o)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),g("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==c)g(f.startIndex);else if("all"===c)g(f.endIndex);else{const e=f.neighbors[c].rightIndex;null!==e&&g(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==c)g(f.endIndex);else if("all"===c)g(f.startIndex);else{const e=f.neighbors[c].leftIndex;null!==e&&g(e)}break;case"Delete"===e.key:if(e.preventDefault(),i)break;null==c||"all"===c?h():m();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),i||null==s)break;"all"===c&&g(s);const o=a.sections[s],f=function(e,t,n,r,o,i,a,l){const s=function(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}(r),c="Home"===r,u="End"===r,d=""===n.value||c||u,p=()=>{const r=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),p=t=>mG(e,t,r,i,n),f="minutes"===n.type&&l?.minutesStep?l.minutesStep:1;let h;if(d){if("year"===n.type&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);h=s>0||c?r.minimum:r.maximum}else{h=parseInt(dG(n.value,i),10)+s*f}return h%f!==0&&((s<0||c)&&(h+=f-(f+h)%f),(s>0||u)&&(h-=h%f)),h>r.maximum?p(r.minimum+(h-r.maximum-1)%(r.maximum-r.minimum+1)):h<r.minimum?p(r.maximum-(r.minimum-h-1)%(r.maximum-r.minimum+1)):p(h)},f=()=>{const r=cG(e,t,n.type,n.format);if(0===r.length)return n.value;if(d)return s>0||c?r[0]:r[r.length-1];const o=r.indexOf(n.value);return r[((o+s)%r.length+r.length)%r.length]};if("digit"===n.contentType||"digit-with-letter"===n.contentType)return p();return f()}(t,p,o,e.key,u,d,n.getDateFromSection(l,o),{minutesStep:r});b({section:o,newSectionValue:f,shouldGoToNextSection:!1});break}}})}function cq(e,t){if(e.value)switch(e.type){case"month":{if("digit"===e.contentType){const n=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(n)?t.format(n,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if("digit"===e.contentType){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;default:return}}function uq(e,t){if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}}const dq=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:o,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=eK(t,o),c=aq({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:p,onFocus:h,onInput:m,onPaste:g,onKeyDown:b,onClear:v,clearable:y}=l,{disabled:w=!1,readOnly:x=!1,autoFocus:S=!1,focused:C,unstableFieldRef:k}=c,E=s.useRef(null),R=tb(u,E),M=s.useMemo(()=>({isReady:()=>null!=E.current,getRoot:()=>E.current.getRoot(),getSectionContainer:e=>E.current.getSectionContainer(e),getSectionContent:e=>E.current.getSectionContent(e),getSectionIndexFromDOMElement:e=>E.current.getSectionIndexFromDOMElement(e)}),[E]),P=iq({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:T,error:I,parsedSelectedSections:O,sectionOrder:D,state:F,value:L,clearValue:A,setSelectedSections:$}=P,N=oq({stateResponse:P}),z=i(L),[j,_]=s.useState(!1);function B(e=0){if(w||!E.current||null!=pq(E))return;const t=SG(e,F.sections);_(!0),E.current.getSectionContent(t).focus()}const H=function(e){const{manager:t,focused:n,setFocused:r,domGetters:o,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:s,sectionOrder:c,state:u,clearValue:d,setCharacterQuery:p,setSelectedSections:f,updateValueFromValueStr:h},internalPropsWithDefaults:{disabled:m=!1,readOnly:g=!1}}=e,b=sq({manager:t,internalPropsWithDefaults:l,stateResponse:i}),v=sb(),y=eb(e=>{!m&&o.isReady()&&(r(!0),"all"===s?v.start(0,()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void f(c.startIndex);let t=0,n=0;for(;n<e&&t<u.sections.length;){const e=u.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}f(t-1)}):n?o.getRoot().contains(e.target)||f(c.startIndex):(r(!0),f(c.startIndex)))}),w=eb(e=>{if(!o.isReady()||"all"!==s)return;const t=e.target.textContent??"";o.getRoot().innerHTML=u.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),lq({focused:n,domGetters:o,stateResponse:i}),0===t.length||10===t.charCodeAt(0)?(d(),f("all")):t.length>1?h(t):("all"===s&&f(0),a({keyPressed:t,sectionIndex:0}))}),x=eb(e=>{if(g||"all"!==s)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),p(null),h(t)}),S=eb(()=>{if(n||m||!o.isReady())return;const e=yK(o.getRoot());r(!0),null!=o.getSectionIndexFromDOMElement(e)||f(c.startIndex)}),C=eb(()=>{setTimeout(()=>{if(!o.isReady())return;const e=yK(o.getRoot());!o.getRoot().contains(e)&&(r(!1),f(null))})});return{onKeyDown:b,onBlur:C,onFocus:S,onClick:y,onPaste:x,onInput:w,contentEditable:"all"===s,tabIndex:l.disabled||0===s?-1:0}}({manager:n,internalPropsWithDefaults:c,stateResponse:P,applyCharacterEditing:N,focused:j,setFocused:_,domGetters:M}),V=function(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:o}}=e,i=eb(e=>{o(e.target.value)});return{value:s.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}({manager:n,stateResponse:P}),W=function(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=s.useCallback(e=>r=>{n||r.isDefaultPrevented()||t(e)},[n,t]);return s.useCallback(e=>({"data-sectionindex":e,onClick:r(e)}),[r])}({stateResponse:P,internalPropsWithDefaults:c}),U=function(e){const t=GG(),n=KG(),{focused:r,domGetters:o,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:p,clearActiveSection:f,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:v=!1,readOnly:y=!1}}=e,w="all"===c,x=!w&&!v&&!y,S=eb(e=>{if(!o.isReady())return;const t=d.sections[e];o.getSectionContent(e).innerHTML=t.value||t.placeholder,lq({focused:r,domGetters:o,stateResponse:i})}),C=eb(e=>{if(!o.isReady())return;const t=e.target,n=t.textContent??"",r=o.getSectionIndexFromDOMElement(t),i=d.sections[r];if(y)S(r);else{if(0===n.length){if(""===i.value)return void S(r);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void S(r):(S(r),void f())}a({keyPressed:n,sectionIndex:r}),S(r)}}),k=eb(e=>{e.preventDefault()}),E=eb(e=>{if(e.preventDefault(),y||v||"number"!=typeof c)return;const t=d.sections[c],n=e.clipboardData.getData("text"),r=/^[a-zA-Z]+$/.test(n),o=/^[0-9]+$/.test(n),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(n);"letter"===t.contentType&&r||"digit"===t.contentType&&o||"digit-with-letter"===t.contentType&&i?(h(null),g({section:t,newSectionValue:n,shouldGoToNextSection:!0})):r||o||(h(null),b(n))}),R=eb(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),M=s.useCallback(e=>()=>{v||m(e)},[v,m]);return s.useCallback((e,r)=>{const o=u[e.type]({currentDate:l.getDateFromSection(p,e),contentType:e.contentType,format:e.format});return{onInput:C,onPaste:E,onMouseUp:k,onDragOver:R,onFocus:M(r),"aria-readonly":y,"aria-valuenow":uq(e,t),"aria-valuemin":o.minimum,"aria-valuemax":o.maximum,"aria-valuetext":e.value?cq(e,t):n.empty,"aria-label":n[e.type],"aria-disabled":v,tabIndex:!x||w||r>0?-1:0,contentEditable:!w&&!v&&!y,role:"spinbutton","data-range-position":e.dateName||void 0,spellCheck:!x&&void 0,autoCapitalize:x?"none":void 0,autoCorrect:x?"off":void 0,children:e.value||e.placeholder,inputMode:"letter"===e.contentType?"text":"numeric"}},[u,w,v,y,x,n,t,C,E,k,R,M,l,p])}({manager:n,stateResponse:P,applyCharacterEditing:N,internalPropsWithDefaults:c,domGetters:M,focused:j}),G=eb(e=>{b?.(e),H.onKeyDown(e)}),K=eb(e=>{d?.(e),H.onBlur(e)}),q=eb(e=>{h?.(e),H.onFocus(e)}),Y=eb(e=>{e.isDefaultPrevented()||(p?.(e),H.onClick(e))}),X=eb(e=>{g?.(e),H.onPaste(e)}),Q=eb(e=>{m?.(e),H.onInput(e)}),Z=eb((e,...t)=>{e.preventDefault(),v?.(e,...t),A(),fq(E)?$(D.startIndex):B(0)}),J=s.useMemo(()=>F.sections.map((e,t)=>{const n=U(e,t);return{container:W(t),content:U(e,t),before:{children:e.startSeparator},after:{children:e.endSeparator,"data-range-position":e.isEndFormatSeparator?n["data-range-position"]:void 0}}}),[F.sections,W,U]);return s.useEffect(()=>{if(null==E.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));S&&!w&&E.current&&E.current.getSectionContent(D.startIndex).focus()},[]),Wh(()=>{if(j&&E.current)if("all"===O)E.current.getRoot().focus();else if("number"==typeof O){const e=E.current.getSectionContent(O);e&&e.focus()}},[O,j]),Wh(()=>{lq({focused:j,domGetters:M,stateResponse:P})}),s.useImperativeHandle(k,()=>({getSections:()=>F.sections,getActiveSectionIndex:()=>pq(E),setSelectedSections:e=>{if(w||!E.current)return;const t=SG(e,F.sections);_(null!==("all"===t?0:t)),$(e)},focusField:B,isFieldFocused:()=>fq(E)})),f({},l,H,{onBlur:K,onClick:Y,onFocus:q,onInput:Q,onPaste:X,onKeyDown:G,onClear:Z},V,{error:I,clearable:Boolean(y&&!T&&!x&&!w),focused:C??j,sectionListRef:R,enableAccessibleFieldDOMStructure:!0,elements:J,areAllSectionsEmpty:T,disabled:w,readOnly:x,autoFocus:S,openPickerAriaLabel:z})};function pq(e){const t=yK(e.current?.getRoot());return t&&e.current&&e.current.getRoot().contains(t)?e.current.getSectionIndexFromDOMElement(t):null}function fq(e){const t=yK(e.current?.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const hq=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),mq=e=>{const t=mm(),n=sb(),r=sb(),{props:o,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:p,forwardedProps:h}=eK(o,l),m=aq({manager:i,internalProps:p,skipContextFieldRefAssignment:a}),{onFocus:g,onClick:b,onPaste:v,onBlur:y,onKeyDown:w,onClear:x,clearable:S,inputRef:C,placeholder:k}=h,{readOnly:E=!1,disabled:R=!1,autoFocus:M=!1,focused:P,unstableFieldRef:T}=m,I=s.useRef(null),O=tb(C,I),D=iq({manager:i,internalPropsWithDefaults:m,forwardedProps:h}),{activeSectionIndex:F,areAllSectionsEmpty:L,error:A,localizedDigits:$,parsedSelectedSections:N,sectionOrder:z,state:j,value:_,clearValue:B,clearActiveSection:H,setCharacterQuery:V,setSelectedSections:W,setTempAndroidValueStr:U,updateSectionValue:G,updateValueFromValueStr:K,getSectionsFromValue:q}=D,Y=oq({stateResponse:D}),X=d(_),Q=s.useMemo(()=>((e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],s=gG(l,n?"input-rtl":"input-ltr",t),c=`${l.startSeparator}${s}${l.endSeparator}`,u=hq(c).length,d=c.length,p=hq(s),h=o+(""===p?0:s.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(f({},l,{start:r,end:r+u,startInInput:h,endInInput:m})),r+=u,o+=d}return i})(j.sections,$,t),[j.sections,$,t]);function Z(){const e=I.current.selectionStart??0;let t;t=e<=Q[0].startInInput||e>=Q[Q.length-1].endInInput?1:Q.findIndex(t=>t.startInInput-t.startSeparator.length>e);const n=-1===t?Q.length-1:t-1;W(n)}function J(e=0){yK(I.current)!==I.current&&(I.current?.focus(),W(e))}const ee=eb(e=>{g?.(e);const t=I.current;n.start(0,()=>{t&&t===I.current&&null==F&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?W("all"):Z())})}),te=eb((e,...t)=>{e.isDefaultPrevented()||(b?.(e,...t),Z())}),ne=eb(e=>{if(v?.(e),e.preventDefault(),E||R)return;const t=e.clipboardData.getData("text");if("number"==typeof N){const e=j.sections[N],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),o=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&n||"digit"===e.contentType&&r||"digit-with-letter"===e.contentType&&o)return V(null),void G({section:e,newSectionValue:t,shouldGoToNextSection:!0});if(n||r)return}V(null),K(t)}),re=eb(e=>{y?.(e),W(null)}),oe=eb(e=>{if(E)return;const n=e.target.value;if(""===n)return void B();const r=e.nativeEvent.data,o=r&&r.length>1,i=o?r:n,a=hq(i);if("all"===N&&W(F),null==F||o)return void K(o?r:a);let l;if("all"===N&&1===a.length)l=a;else{const e=hq(u.getV6InputValueFromSections(Q,$,t));let n=-1,r=-1;for(let t=0;t<e.length;t+=1)-1===n&&e[t]!==a[t]&&(n=t),-1===r&&e[e.length-t-1]!==a[a.length-t-1]&&(r=t);const o=Q[F];if(n<o.start||e.length-r-1>o.end)return;const i=a.length-e.length+o.end-hq(o.endSeparator||"").length;l=a.slice(o.start+hq(o.startSeparator||"").length,i)}if(0===l.length)return navigator.userAgent.toLowerCase().includes("android")&&U(i),void H();Y({keyPressed:l,sectionIndex:F})}),ie=eb((e,...t)=>{e.preventDefault(),x?.(e,...t),B(),gq(I)?W(z.startIndex):J(0)}),ae=sq({manager:i,internalPropsWithDefaults:m,stateResponse:D}),le=eb(e=>{w?.(e),ae(e)}),se=s.useMemo(()=>void 0!==k?k:u.getV6InputValueFromSections(q(c.emptyValue),$,t),[k,u,q,c.emptyValue,$,t]),ce=s.useMemo(()=>j.tempValueStrAndroid??u.getV6InputValueFromSections(j.sections,$,t),[j.sections,u,j.tempValueStrAndroid,$,t]);s.useEffect(()=>{I.current&&I.current===yK(I.current)&&W("all")},[]),Wh(()=>{!function e(){if(!I.current)return;if(null==N)return void(I.current.scrollLeft&&(I.current.scrollLeft=0));if(I.current!==yK(I.current))return;const t=I.current.scrollTop;if("all"===N)I.current.select();else{const t=Q[N],n="empty"===t.type?t.startInInput-t.startSeparator.length:t.startInInput,o="empty"===t.type?t.endInInput+t.endSeparator.length:t.endInInput;n===I.current.selectionStart&&o===I.current.selectionEnd||I.current===yK(I.current)&&I.current.setSelectionRange(n,o),r.start(0,()=>{!I.current||I.current!==yK(I.current)||I.current.selectionStart!==I.current.selectionEnd||I.current.selectionStart===n&&I.current.selectionEnd===o||e()})}I.current.scrollTop=t}()});const ue=s.useMemo(()=>null==F||"letter"===j.sections[F].contentType?"text":"numeric",[F,j.sections]),de=!(I.current&&I.current===yK(I.current))&&L;return s.useImperativeHandle(T,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>{const e=I.current.selectionStart??0,t=I.current.selectionEnd??0;if(0===e&&0===t)return null;const n=e<=Q[0].startInInput?1:Q.findIndex(t=>t.startInInput-t.startSeparator.length>e);return-1===n?Q.length-1:n-1},setSelectedSections:e=>W(e),focusField:J,isFieldFocused:()=>gq(I)})),f({},h,{error:A,"aria-invalid":A,clearable:Boolean(S&&!L&&!E&&!R),onBlur:re,onClick:te,onFocus:ee,onPaste:ne,onKeyDown:le,onClear:ie,inputRef:O,enableAccessibleFieldDOMStructure:!1,placeholder:se,inputMode:ue,autoComplete:"off",value:de?"":ce,onChange:oe,focused:P,disabled:R,readOnly:E,autoFocus:M,openPickerAriaLabel:X})};function gq(e){return e.current===yK(e.current)}const bq=e=>(e=>{const t=OG();return(e.props.enableAccessibleFieldDOMStructure??t?.enableAccessibleFieldDOMStructure??1?dq:mq)(e)})({manager:function(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return s.useMemo(()=>({valueType:"date",validator:uK,internal_valueManager:kG,internal_fieldValueManager:EG,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:hK,internal_useOpenPickerButtonAriaLabel:fK}),[t])}(e),props:e});function vq(e){const{ownerState:t}=NG(),n=mm();return s.useMemo(()=>f({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const yq=qg(Xp.jsx("path",{d:"M7 10l5 5 5-5z"})),wq=qg(Xp.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),xq=qg(Xp.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Sq=qg(Xp.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}));qg(Xp.jsxs(s.Fragment,{children:[Xp.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Xp.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),qg(Xp.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),qg(Xp.jsxs(s.Fragment,{children:[Xp.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Xp.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const Cq=qg(Xp.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function kq(e){return Mh("MuiPickersTextField",e)}function Eq(e){return Mh("MuiPickersInputBase",e)}Ph("MuiPickersTextField",["root","focused","disabled","error","required"]);const Rq=Ph("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function Mq(e){return Mh("MuiPickersSectionList",e)}const Pq=Ph("MuiPickersSectionList",["root","section","sectionContent"]),Tq=["slots","slotProps","elements","sectionListRef","classes"],Iq=Ig("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Oq=Ig("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Dq=Ig("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Fq=Ig("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"});function Lq(e){const{slots:t,slotProps:n,element:r,classes:o}=e,{ownerState:i}=NG(),a=t?.section??Oq,l=Uy({elementType:a,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:i}),c=t?.sectionContent??Fq,u=Uy({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:i}),d=t?.sectionSeparator??Dq,p=Uy({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:f({},i,{separatorPosition:"before"})}),h=Uy({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:f({},i,{separatorPosition:"after"})}),m=s.useRef(null),g=tb(u.ref,m);return Xp.jsxs(a,f({},l,{children:[Xp.jsx(d,f({},p)),Xp.jsx(c,f({},u,{ref:g,onBlur:e=>{const t=e.relatedTarget,n=e.currentTarget.closest(`.${Pq.root}`);n&&t instanceof Node&&n.contains(t)&&e.stopPropagation()}})),Xp.jsx(d,f({},h))]}))}const Aq=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:i,sectionListRef:a,classes:l}=n,c=d(n,Tq),u=(e=>zm({root:["root"],section:["section"],sectionContent:["sectionContent"]},Mq,e))(l),{ownerState:p}=NG(),h=s.useRef(null),m=tb(t,h),g=e=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return h.current};s.useImperativeHandle(a,()=>({getRoot:()=>g("getRoot"),getSectionContainer:e=>g("getSectionContainer").querySelector(`.${Pq.section}[data-sectionindex="${e}"]`),getSectionContent:e=>g("getSectionContent").querySelector(`.${Pq.section}[data-sectionindex="${e}"] .${Pq.sectionContent}`),getSectionIndexFromDOMElement(e){const t=g("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let n=null;return e.classList.contains(Pq.section)?n=e:e.classList.contains(Pq.sectionContent)&&(n=e.parentElement),null==n?null:Number(n.dataset.sectionindex)}}));const b=r?.root??Iq,v=Uy({elementType:b,externalSlotProps:o?.root,externalForwardedProps:c,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:u.root,ownerState:p});return Xp.jsx(b,f({},v,{children:v.contentEditable?i.map(({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`).join(""):Xp.jsx(s.Fragment,{children:i.map((e,t)=>Xp.jsx(Lq,{slots:r,slotProps:o,element:e,classes:u},t))})}))}),$q=s.createContext(null),Nq=()=>{const e=s.useContext($q);if(null==e)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join("\n"));return e},zq=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],jq=Ig("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>{return f({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:(t=.15/16,Math.round(1e5*t)/1e5)+"em",variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]});var t}),_q=Ig(Iq,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]})),Bq=Ig(Oq,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),Hq=Ig(Fq,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Vq=Ig(Dq,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Wq=Ig("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(f({},{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"})),Uq=Ig("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}}));function Gq(e,t,n,r){if(e.content.id){const e=t.current?.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(e)return Array.from(e).reduce((e,t)=>e+t.offsetWidth,0)}return 0}const Kq=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:p,slots:h,slotProps:m,contentEditable:g,tabIndex:b,onInput:v,onPaste:y,onKeyDown:w,name:x,readOnly:S,inputProps:C,inputRef:k,sectionListRef:E,onFocus:R,onBlur:M,classes:P,ownerState:T}=n,I=d(n,zq),O=Nq(),D=s.useRef(null),F=s.useRef(null),L=s.useRef([]),A=tb(t,D),$=tb(C?.ref,k),N=bw();if(!N)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const z=T??O,j=e=>{N.onFocus?.(e),R?.(e)};s.useEffect(()=>{N&&N.setAdornedStart(Boolean(u))},[N,u]),s.useEffect(()=>{N&&(o?N.onEmpty():N.onFilled())},[N,o]);const _=((e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:o,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:s,hasStartAdornment:c,hasEndAdornment:u}=t;return zm({root:["root",n&&!r&&"focused",r&&"disabled",o&&"readOnly",i&&"error",l&&"fullWidth",`color${xf(s)}`,"small"===a&&"inputSizeSmall",c&&"adornedStart",u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]},Eq,e)})(P,z),B=h?.root||jq,H=Uy({elementType:B,externalSlotProps:m?.root,externalForwardedProps:I,additionalProps:{"aria-invalid":N.error,ref:A},className:_.root,ownerState:z}),V=h?.input||_q,W=r.some(e=>void 0!==e.content["data-range-position"]);return s.useEffect(()=>{if(!W||!z.isPickerOpen)return;const{activeBarWidth:e,sectionOffsets:t}=function(e,t){let n=0;const r=t.current?.getAttribute("data-active-range-position");if("end"===r)for(let r=e.length-1;r>=e.length/2;r-=1)n+=Gq(e[r],t,r,"end");else for(let r=0;r<e.length/2;r+=1)n+=Gq(e[r],t,r,"start");return{activeBarWidth:n,sectionOffsets:[t.current?.querySelector('[data-sectionindex="0"]')?.offsetLeft||0,t.current?.querySelector(`[data-sectionindex="${e.length/2}"]`)?.offsetLeft||0]}}(r,D);L.current=[t[0],t[1]],F.current&&(F.current.style.width=`${e}px`)},[r,W,z.isPickerOpen]),Xp.jsxs(B,f({},H,{children:[u,Xp.jsx(Aq,{sectionListRef:E,elements:r,contentEditable:g,tabIndex:b,className:_.sectionsContainer,onFocus:j,onBlur:e=>{N.onBlur?.(e),M?.(e)},onInput:v,onPaste:y,onKeyDown:e=>{if(w?.(e),"Enter"===e.key&&!e.defaultMuiPrevented){if(D.current?.dataset.multiInput)return;const t=D.current?.closest("form"),n=t?.querySelector('[type="submit"]');if(!t||!n)return;e.preventDefault(),t.requestSubmit(n)}},slots:{root:V,section:Bq,sectionContent:Hq,sectionSeparator:Vq},slotProps:{root:f({},m?.input,{ownerState:z}),sectionContent:{className:Rq.sectionContent},sectionSeparator:({separatorPosition:e})=>({className:"before"===e?Rq.sectionBefore:Rq.sectionAfter})}}),c,p?p(f({},N)):null,Xp.jsx(Wq,f({name:x,className:_.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:N.required,disabled:N.disabled,onFocus:e=>{j(e)}},C,{ref:$})),W&&Xp.jsx(Uq,{className:_.activeBar,ref:F,ownerState:{sectionOffsets:L.current}})]}))});function qq(e){return Mh("MuiPickersOutlinedInput",e)}const Yq=f({},Rq,Ph("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Xq=["children","className","label","notched","shrink"],Qq=Ig("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Zq=Ig("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Jq=Ig("legend",{shouldForwardProp:e=>Oh(e)&&"notched"!==e})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function eY(e){const{className:t,label:n,notched:r}=e,o=d(e,Xq),i=Nq();return Xp.jsx(Qq,f({"aria-hidden":!0,className:t},o,{ownerState:i,children:Xp.jsx(Jq,{ownerState:i,notched:r,children:n?Xp.jsx(Zq,{children:n}):Xp.jsx(Zq,{className:"notranslate",children:""})})}))}const tY=["label","autoFocus","ownerState","classes","notched"],nY=Ig(jq,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yq.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yq.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Yq.focused} .${Yq.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Yq.disabled}`]:{[`& .${Yq.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Yq.error} .${Yq.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t]?.main??!1).map(t=>({props:{inputColor:t},style:{[`&.${Yq.focused}:not(.${Yq.error}) .${Yq.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))}}),rY=Ig(_q,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),oY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersOutlinedInput"}),{label:r,classes:o,notched:i}=n,a=d(n,tY),l=bw(),c=(e=>f({},e,zm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qq,e)))(o);return Xp.jsx(Kq,f({slots:{root:nY,input:rY},renderSuffix:e=>Xp.jsx(eY,{shrink:Boolean(i||e.adornedStart||e.focused||e.filled),notched:Boolean(i||e.adornedStart||e.focused||e.filled),className:c.notchedOutline,label:null!=r&&""!==r&&l?.required?Xp.jsxs(s.Fragment,{children:[r," ","*"]}):r})},a,{label:r,classes:c,ref:t}))});function iY(e){return Mh("MuiPickersFilledInput",e)}oY.muiName="Input";const aY=f({},Rq,Ph("MuiPickersFilledInput",["root","underline","input"])),lY=["label","autoFocus","disableUnderline","hiddenLabel","classes"],sY=Ig(jq,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Oh(e)&&"disableUnderline"!==e})(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${aY.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${aY.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${aY.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${aY.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})`:n}`,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(.${aY.disabled}, .${aY.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${aY.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),cY=Ig(_q,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Oh(e)&&"hiddenLabel"!==e})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),uY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,hiddenLabel:i=!1,classes:a}=n,l=d(n,lY),s=f({},Nq(),{inputHasUnderline:!o}),c=((e,t)=>{const{inputHasUnderline:n}=t;return f({},e,zm({root:["root",n&&"underline"],input:["input"]},iY,e))})(a,s);return Xp.jsx(Kq,f({slots:{root:sY,input:cY},slotProps:{root:{disableUnderline:o},input:{hiddenLabel:i}}},l,{label:r,classes:c,ref:t,ownerState:s}))});function dY(e){return Mh("MuiPickersFilledInput",e)}uY.muiName="Input";const pY=f({},Rq,Ph("MuiPickersInput",["root","underline","input"])),fY=["label","autoFocus","disableUnderline","ownerState","classes"],hY=Ig(jq,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Oh(e)&&"disableUnderline"!==e})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{inputColor:t,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",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"},[`&.${pY.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pY.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,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(.${pY.disabled}, .${pY.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${pY.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),mY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,classes:i}=n,a=d(n,fY),l=f({},Nq(),{inputHasUnderline:!o}),s=((e,t)=>{const{inputHasUnderline:n}=t;return f({},e,zm({root:["root",!n&&"underline"],input:["input"]},dY,e))})(i,l);return Xp.jsx(Kq,f({slots:{root:hY},slotProps:{root:{disableUnderline:o}}},a,{ownerState:l,label:r,classes:s,ref:t}))});mY.muiName="Input";const gY=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],bY={standard:mY,filled:uY,outlined:oY},vY=Ig(LS,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),yY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:i,classes:a,color:l="primary",disabled:c=!1,error:u=!1,variant:p="outlined",required:h=!1,hiddenLabel:m=!1,InputProps:g,inputProps:b,inputRef:v,sectionListRef:y,elements:w,areAllSectionsEmpty:x,onClick:S,onKeyDown:C,onKeyUp:k,onPaste:E,onInput:R,endAdornment:M,startAdornment:P,tabIndex:T,contentEditable:I,focused:O,value:D,onChange:F,fullWidth:L,id:A,name:$,helperText:N,FormHelperTextProps:z,label:j,InputLabelProps:_,"data-active-range-position":B}=n,H=d(n,gY),V=tb(t,s.useRef(null)),W=xm(A),U=N&&W?`${W}-helper-text`:void 0,G=j&&W?`${W}-label`:void 0,K=vq({disabled:n.disabled,required:n.required,readOnly:g?.readOnly}),q=s.useMemo(()=>f({},K,{isFieldValueEmpty:x,isFieldFocused:O??!1,hasFieldError:u??!1,inputSize:n.size??"medium",inputColor:l??"primary",isInputInFullWidth:L??!1,hasStartAdornment:Boolean(P??g?.startAdornment),hasEndAdornment:Boolean(M??g?.endAdornment),inputHasLabel:!!j,isLabelShrunk:Boolean(_?.shrink)}),[K,x,O,u,n.size,l,L,P,M,g?.startAdornment,g?.endAdornment,j,_?.shrink]),Y=((e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:o}=t;return zm({root:["root",n&&!r&&"focused",r&&"disabled",o&&"required"]},kq,e)})(a,q),X=bY[p],Q={};return"outlined"===p?(_&&void 0!==_.shrink&&(Q.notched=_.shrink),Q.label=j):"filled"===p&&(Q.hiddenLabel=m),Xp.jsx($q.Provider,{value:q,children:Xp.jsxs(vY,f({className:MG(Y.root,i),ref:V,focused:O,disabled:c,variant:p,error:u,color:l,fullWidth:L,required:h,ownerState:q},H,{children:[null!=j&&""!==j&&Xp.jsx(uC,f({htmlFor:W,id:G},_,{children:j})),Xp.jsx(X,f({elements:w,areAllSectionsEmpty:x,onClick:S,onKeyDown:C,onKeyUp:k,onInput:R,onPaste:E,onFocus:r,onBlur:o,endAdornment:M,startAdornment:P,tabIndex:T,contentEditable:I,value:D,onChange:F,id:W,fullWidth:L,inputProps:b,inputRef:v,sectionListRef:y,label:j,name:$,role:"group","aria-labelledby":G,"aria-describedby":U,"aria-live":U?"polite":void 0,"data-active-range-position":B},Q,g)),N&&Xp.jsx(WS,f({id:U},z,{children:N}))]}))})}),wY=["enableAccessibleFieldDOMStructure"],xY=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],SY=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],CY=["ownerState"],kY=["ownerState"],EY=["ownerState"],RY=["ownerState"],MY=["InputProps","inputProps"],PY=()=>{},TY=s.createContext({slots:{},slotProps:{},inputRef:void 0});function IY(e){const{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=KG(),o=oK(),i=s.useContext(TY),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:p="end",openPickerButtonPosition:h="end"}=(e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=d(e,wY);if(t){const{InputProps:e,readOnly:t,onClear:r,clearable:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l}=n,s=d(n,xY),c=TR>=6&&s?.slotProps?.input?OY(s?.slotProps?.input,e):PY;return{clearable:o,onClear:r,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:f({},s,TR>=6&&s?.slotProps?.input?{slotProps:f({},s?.slotProps,{input:e=>f({},fb(c,e),{readOnly:t})})}:{InputProps:f({},e??{},{readOnly:t})})}}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:l,inputProps:s,inputRef:c,onClear:u,clearable:p,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g}=n,b=d(n,SY),v=TR>=6&&b?.slotProps?.input?OY(b?.slotProps?.input,l):PY,y=TR>=6&&b?.slotProps?.htmlInput?OY(b?.slotProps?.htmlInput,s):PY;return{clearable:p,onClear:u,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g,textFieldProps:f({},b,TR>=6&&(b?.slotProps?.input||b?.slotProps?.htmlInput)?{slotProps:f({},b?.slotProps,{input:e=>f({},fb(v,e),{readOnly:a}),htmlInput:e=>f({},fb(y,e),{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})}:{InputProps:f({},l??{},{readOnly:a}),inputProps:f({},s??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})}})(t),m=vq(a),g=eb(e=>{e.preventDefault(),o?.setOpen(e=>!e)}),b=o?o.triggerStatus:"hidden",v=c?p:null,y="hidden"!==b?h:null,w=i.slots.textField??(!1===t.enableAccessibleFieldDOMStructure?wR:yY),x=i.slots.inputAdornment??lC,S=d(Uy({elementType:x,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:f({},m,{position:"start"})}),CY),C=d(Uy({elementType:x,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:f({},m,{position:"end"})}),kY),k=i.slots.openPickerButton??ev,E=d(Uy({elementType:k,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:"disabled"===b,onClick:g,"aria-label":u,edge:"standard"!==a.variant&&y},ownerState:m}),EY),R=i.slots.openPickerIcon??n,M=Uy({elementType:R,externalSlotProps:i.slotProps.openPickerIcon,ownerState:m}),P=i.slots.clearButton??ev,T=d(Uy({elementType:P,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:"standard"!==a.variant&&v!==y&&v},ownerState:m}),RY),I=i.slots.clearIcon??Cq,O=Uy({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:m});a.ref=tb(a.ref,o?.rootRef);const D={},F=fb((TR>=6&&a?.slotProps?.input)??a.InputProps,m);o&&(D.ref=o.triggerRef),F?.startAdornment||"start"!==v&&"start"!==y||(D.startAdornment=Xp.jsxs(x,f({},S,{children:["start"===y&&Xp.jsx(k,f({},E,{children:Xp.jsx(R,f({},M))})),"start"===v&&Xp.jsx(P,f({},T,{children:Xp.jsx(I,f({},O))}))]}))),F?.endAdornment||"end"!==v&&"end"!==y||(D.endAdornment=Xp.jsxs(x,f({},C,{children:["end"===v&&Xp.jsx(P,f({},T,{children:Xp.jsx(I,f({},O))})),"end"===y&&Xp.jsx(k,f({},E,{children:Xp.jsx(R,f({},M))}))]}))),D?.endAdornment||D?.startAdornment||!i.slots.inputAdornment||(D.endAdornment=Xp.jsx(x,f({},C))),null!=v&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const L=TR>=6&&a?.slotProps?.input?fb(OY(F,D),m):f({},F,D);return a.inputProps=TR>=6&&a?.slotProps?.htmlInput?fb(a.slotProps.htmlInput,m):a.inputProps,delete a?.slotProps?.input,t.enableAccessibleFieldDOMStructure&&delete a?.slotProps,Xp.jsx(w,f({},a,{InputProps:L}))}function OY(e,t){return e?t?n=>f({},fb(t,n),fb(e,n)):e:t}function DY(e){const{slots:t={},slotProps:n={},inputRef:r,children:o}=e,i=s.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return Xp.jsx(TY.Provider,{value:i,children:o})}const FY=["slots","slotProps"],LY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiDateField"}),{slots:r,slotProps:o}=n,i=d(n,FY),a=function(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,o=s.useContext(TY),i=oK(),a=vq(n),{InputProps:l,inputProps:c}=n,u=d(n,MY),p=Uy({elementType:yY,externalSlotProps:OY(o.slotProps.textField,r?.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i?.rootSx,label:i?.label,name:i?.name,className:i?.rootClassName,inputRef:o.inputRef},ownerState:a});return p.inputProps=f({},c,p.inputProps),p.InputProps=f({},l,p.InputProps),p}({slotProps:o,ref:t,externalForwardedProps:i}),l=bq(a);return Xp.jsx(DY,{slots:r,slotProps:o,inputRef:i.inputRef,children:Xp.jsx(IY,{fieldResponse:l,defaultOpenPickerIcon:Sq})})}),AY=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:l})=>{const c=GG();return s.useCallback(s=>null!==uK({adapter:c,value:s,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}}),[c,e,t,n,r,o,i,a,l])},$Y=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p,getCurrentMonthFromVisibleDate:h}=e,m=GG(),g=s.useRef(((e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return f({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const e=r.newTimezone;if(t.getTimezone(n.currentMonth)===e)return n;let o=t.setTimezone(n.currentMonth,e);return t.getMonth(o)!==t.getMonth(n.currentMonth)&&(o=t.setMonth(o,t.getMonth(n.currentMonth))),f({},n,{currentMonth:o})}case"finishMonthSwitchingAnimation":return f({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}})(Boolean(u),m)).current,b=s.useMemo(()=>kG.getInitialReferenceValue({value:t,adapter:m,timezone:p,props:e,referenceDate:n,granularity:oG.day}),[n,p]),[v,y]=s.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:m.startOfMonth(b),slideDirection:"left"}),w=AY({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p});s.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:m.getTimezone(b)})},[b,m]);const x=eb(({target:e,reason:t})=>{if("cell-interaction"===t&&null!=v.focusedDay&&m.isSameDay(e,v.focusedDay))return;const n="cell-interaction"===t;let s,u;if("cell-interaction"===t)s=h(e,v.currentMonth),u=e;else if(s=m.isSameMonth(e,v.currentMonth)?v.currentMonth:m.startOfMonth(e),u=e,w(u)){const t=m.startOfMonth(e),n=m.endOfMonth(e);u=qU({adapter:m,date:u,minDate:m.isBefore(a,t)?t:a,maxDate:m.isAfter(i,n)?n:i,disablePast:o,disableFuture:r,isDateDisabled:w,timezone:p})}const d=!m.isSameMonth(v.currentMonth,s),f=!m.isSameYear(v.currentMonth,s);d&&l?.(s),f&&c?.(m.startOfYear(s)),y({type:"setVisibleDate",month:s,direction:m.isAfterDay(s,v.currentMonth)?"left":"right",focusedDay:null!=v.focusedDay&&null!=u&&m.isSameDay(u,v.focusedDay)?v.focusedDay:u,skipAnimation:n})}),S=s.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:b,calendarState:v,setVisibleDate:x,isDateDisabled:w,onMonthSwitchingAnimationEnd:S}},NY=e=>Mh("MuiPickersFadeTransitionGroup",e);Ph("MuiPickersFadeTransitionGroup",["root"]);const zY=["children"],jY=Ig(Zo,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function _Y(e){const t=Mg({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:o,classes:i}=t,{children:a}=t,l=d(t,zY),s=(e=>zm({root:["root"]},NY,e))(i),c=Rg();return r?a:Xp.jsx(jY,{className:MG(s.root,n),ownerState:l,children:Xp.jsx(Jw,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:a},o)})}function BY(e){return Mh("MuiPickersDay",e)}const HY=Ph("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function VY(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:o,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=GG(),{ownerState:d}=NG();return s.useMemo(()=>f({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:o??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,r,o,a,l,c])}const WY=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],UY=({theme:e})=>f({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tm(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tm(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${HY.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${HY.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${HY.disabled}:not(.${HY.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${HY.disabled}&.${HY.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${HY.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),GY=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},KY=Ig(Lb,{name:"MuiPickersDay",slot:"Root",overridesResolver:GY})(UY),qY=Ig("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:GY})(({theme:e})=>f({},UY({theme:e}),{opacity:0,pointerEvents:"none"})),YY=()=>{},XY=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,classes:i,isAnimating:a,onClick:l,onDaySelect:c,onFocus:u=YY,onBlur:p=YY,onKeyDown:h=YY,onMouseDown:m=YY,onMouseEnter:g=YY,children:b,day:v,selected:y,disabled:w,today:x,outsideCurrentMonth:S,disableMargin:C,disableHighlightToday:k,showDaysOutsideCurrentMonth:E}=n,R=d(n,WY),M=VY({day:v,selected:y,disabled:w,today:x,outsideCurrentMonth:S,disableMargin:C,disableHighlightToday:k,showDaysOutsideCurrentMonth:E}),P=((e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:o,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:s}=t,c=i&&!s;return zm({root:["root",n&&!c&&"selected",r&&"disabled",!a&&"dayWithMargin",!l&&o&&"today",i&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},BY,e)})(i,M),T=GG(),I=s.useRef(null),O=tb(I,t);Wh(()=>{!r||w||a||S||I.current.focus()},[r,w,a,S]);return S&&!E?Xp.jsx(qY,{className:MG(P.root,P.hiddenDaySpacingFiller,o),ownerState:M,role:R.role}):Xp.jsx(KY,f({className:MG(P.root,o),ref:O,centerRipple:!0,disabled:w,tabIndex:y?0:-1,onKeyDown:e=>h(e,v),onFocus:e=>u(e,v),onBlur:e=>p(e,v),onMouseEnter:e=>g(e,v),onClick:e=>{e.defaultMuiPrevented=!0,w||c(v),S&&e.currentTarget.focus(),l&&l(e)},onMouseDown:e=>{m(e),S&&e.preventDefault()}},R,{ownerState:M,children:b??T.format(v,"dayOfMonth")}))}),QY=s.memo(XY),ZY=e=>Mh("MuiPickersSlideTransition",e),JY=Ph("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),eX=["children","className","reduceAnimations","slideDirection","transKey","classes"],tX=Ig(Zo,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${JY["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${JY["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${JY.slideEnterActive}`]:t.slideEnterActive},{[`.${JY.slideExit}`]:t.slideExit},{[`.${JY["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${JY["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${JY["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${JY["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${JY.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${JY.slideExit}`]:{transform:"translate(0%)"},[`& .${JY["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${JY["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});const nX=e=>Mh("MuiDayCalendar",e);Ph("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const rX=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],oX=["ownerState"],iX=Ig("div",{name:"MuiDayCalendar",slot:"Root"})({}),aX=Ig("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),lX=Ig(vv,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),sX=Ig(vv,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),cX=Ig(vv,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>f({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),uX=Ig("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),dX=Ig(function(e){const t=Mg({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a,classes:l}=t,c=d(t,eX),{ownerState:u}=NG(),p=f({},u,{slideDirection:i}),h=((e,t)=>{const{slideDirection:n}=t;return zm({root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},ZY,e)})(l,p),m=Rg();if(o)return Xp.jsx("div",{className:MG(h.root,r),children:n});const g={exit:h.exit,enterActive:h.enterActive,enter:h.enter,exitActive:h.exitActive};return Xp.jsx(tX,{className:MG(h.root,r),childFactory:e=>s.cloneElement(e,{classNames:g}),role:"presentation",ownerState:p,children:Xp.jsx(Ko,f({mountOnEnter:!0,unmountOnExit:!0,timeout:m.transitions.duration.complex,classNames:g},c,{children:n}),a)})},{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:240}),pX=Ig("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),fX=Ig("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:"2px 0",display:"flex",justifyContent:"center"});function hX(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=d(e,rX);const{disabled:u,disableHighlightToday:p,isMonthSwitchingAnimating:h,showDaysOutsideCurrentMonth:m,slots:g,slotProps:b,timezone:v}=t,y=GG(),w=pK(v),x=null!=r&&y.isSameDay(n,r),S=l&&x,C=o.some(e=>y.isSameDay(e,n)),k=y.isSameDay(n,w),E=s.useMemo(()=>u||i(n),[u,i,n]),R=s.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),M=VY({day:n,selected:C,disabled:E,today:k,outsideCurrentMonth:R,disableMargin:void 0,disableHighlightToday:p,showDaysOutsideCurrentMonth:m}),P=g?.day??QY,T=d(Uy({elementType:P,externalSlotProps:b?.day,additionalProps:f({disableHighlightToday:p,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:h,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:f({},M,{day:n,isDayDisabled:E,isDaySelected:C})}),oX),I=s.useMemo(()=>{const e=y.startOfMonth(y.setMonth(n,a));return m?y.isSameDay(n,y.startOfWeek(e)):y.isSameDay(n,e)},[a,n,m,y]),O=s.useMemo(()=>{const e=y.endOfMonth(y.setMonth(n,a));return m?y.isSameDay(n,y.endOfWeek(e)):y.isSameDay(n,e)},[a,n,m,y]);return Xp.jsx(P,f({},T,{day:n,disabled:E,autoFocus:!R&&S,today:k,outsideCurrentMonth:R,isFirstVisibleCell:I,isLastVisibleCell:O,selected:C,tabIndex:x?0:-1,"aria-selected":C,"aria-current":k?"date":void 0}))}function mX(e){const t=Mg({props:e,name:"MuiDayCalendar"}),n=GG(),{onFocusedDayChange:r,className:o,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:h,reduceAnimations:m,renderLoading:g=()=>Xp.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:v,disablePast:y,disableFuture:w,minDate:x,maxDate:S,shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:E,dayOfWeekFormatter:R=e=>n.format(e,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:P,gridLabelId:T,displayWeekNumber:I,fixedWeekNumber:O,timezone:D}=t,F=pK(D),L=(e=>zm({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},nX,e))(i),A=mm(),$=AY({shouldDisableDate:C,shouldDisableMonth:k,shouldDisableYear:E,minDate:x,maxDate:S,disablePast:y,disableFuture:w,timezone:D}),N=KG(),z=eb(e=>{h||d(e)}),j=e=>{$(e)||(r(e),P?.(!0))},_=eb((e,t)=>{switch(e.key){case"ArrowUp":j(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":j(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,A?1:-1),o=n.addMonths(t,A?1:-1),i=qU({adapter:n,date:r,minDate:A?r:n.startOfMonth(o),maxDate:A?n.endOfMonth(o):r,isDateDisabled:$,timezone:D});j(i||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,A?-1:1),o=n.addMonths(t,A?-1:1),i=qU({adapter:n,date:r,minDate:A?n.startOfMonth(o):r,maxDate:A?r:n.endOfMonth(o),isDateDisabled:$,timezone:D});j(i||r),e.preventDefault();break}case"Home":j(n.startOfWeek(t)),e.preventDefault();break;case"End":j(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":j(n.addMonths(t,1)),e.preventDefault();break;case"PageDown":j(n.addMonths(t,-1)),e.preventDefault()}}),B=eb((e,t)=>j(t)),H=eb((e,t)=>{null!=c&&n.isSameDay(c,t)&&P?.(!1)}),V=n.getMonth(a),W=n.getYear(a),U=s.useMemo(()=>l.filter(e=>!!e).map(e=>n.startOfDay(e)),[n,l]),G=`${W}-${V}`,K=s.useMemo(()=>s.createRef(),[G]),q=s.useMemo(()=>{const e=n.getWeekArray(a);let t=n.addMonths(a,1);for(;O&&e.length<O;){const r=n.getWeekArray(t),o=n.isSameDay(e[e.length-1][0],r[0][0]);r.slice(o?1:0).forEach(t=>{e.length<O&&e.push(t)}),t=n.addMonths(t,1)}return e},[a,O,n]);return Xp.jsxs(iX,{role:"grid","aria-labelledby":T,className:L.root,children:[Xp.jsxs(aX,{role:"row",className:L.header,children:[I&&Xp.jsx(sX,{variant:"caption",role:"columnheader","aria-label":N.calendarWeekNumberHeaderLabel,className:L.weekNumberLabel,children:N.calendarWeekNumberHeaderText}),tG(n,F).map((e,t)=>Xp.jsx(lX,{variant:"caption",role:"columnheader","aria-label":n.format(e,"weekday"),className:L.weekDayLabel,children:R(e)},t.toString()))]}),u?Xp.jsx(uX,{className:L.loadingContainer,children:g()}):Xp.jsx(dX,f({transKey:G,onExited:p,reduceAnimations:m,slideDirection:b,className:MG(o,L.slideTransition)},v,{nodeRef:K,children:Xp.jsx(pX,{ref:K,role:"rowgroup",className:L.monthContainer,children:q.map((e,r)=>Xp.jsxs(fX,{role:"row",className:L.weekContainer,"aria-rowindex":r+1,children:[I&&Xp.jsx(cX,{className:L.weekNumber,role:"rowheader","aria-label":N.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:N.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map((e,n)=>Xp.jsx(hX,{parentProps:t,day:e,selectedDays:U,isViewFocused:M,focusedDay:c,onKeyDown:_,onFocus:B,onBlur:H,onDaySelect:z,isDateDisabled:$,currentMonthNumber:V,"aria-colindex":n+1},e.toString()))]},`week-${e[0]}`))})}))]})}function gX(e){return Mh("MuiMonthCalendar",e)}const bX=Ph("MuiMonthCalendar",["root","button","disabled","selected"]),vX=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],yX=Ig("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${bX.disabled}`]:t.disabled},{[`&.${bX.selected}`]:t.selected}]})(({theme:e})=>f({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tm(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tm(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bX.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bX.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wX=s.memo(function(e){const{autoFocus:t,classes:n,disabled:r,selected:o,value:i,onClick:a,onKeyDown:l,onFocus:c,onBlur:u,slots:p,slotProps:h}=e,m=d(e,vX),g=s.useRef(null),{ownerState:b}=NG(),v=f({},b,{isMonthDisabled:r,isMonthSelected:o}),y=((e,t)=>zm({button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]},gX,e))(n,v);Wh(()=>{t&&g.current?.focus()},[t]);const w=p?.monthButton??yX,x=Uy({elementType:w,externalSlotProps:h?.monthButton,externalForwardedProps:m,additionalProps:{disabled:r,ref:g,type:"button",role:"radio","aria-checked":o,onClick:e=>a(e,i),onKeyDown:e=>l(e,i),onFocus:e=>c(e,i),onBlur:e=>u(e,i)},ownerState:v,className:y.button});return Xp.jsx(w,f({},x))}),xX=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"];const SX=(e,t,n,r,o)=>Boolean(e===t&&r&&o.isSameYear(n,r)),CX=Ig("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Oh(e)&&"monthsPerRow"!==e})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:WK,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),kX=s.forwardRef(function(e,t){const n=function(e,t){const n=Mg({props:e,name:t});return f({},n,mK(n),{monthsPerRow:n.monthsPerRow??3})}(e,"MuiMonthCalendar"),{autoFocus:r,className:o,currentMonth:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:p,disableFuture:h,disablePast:m,maxDate:g,minDate:b,onChange:v,shouldDisableMonth:y,readOnly:w,onMonthFocus:x,hasFocus:S,onFocusedViewChange:C,monthsPerRow:k,timezone:E,gridLabelId:R,slots:M,slotProps:P}=n,T=d(n,xX),{value:I,handleValueChange:O,timezone:D}=AK({name:"MonthCalendar",timezone:E,value:l,defaultValue:c,referenceDate:u,onChange:v,valueManager:kG}),F=pK(D),L=mm(),A=GG(),{ownerState:$}=NG(),N=s.useMemo(()=>kG.getInitialReferenceValue({value:I,adapter:A,props:n,timezone:D,referenceDate:u,granularity:oG.month}),[]),z=(e=>zm({root:["root"]},gX,e))(a),j=s.useMemo(()=>A.getMonth(F),[A,F]),_=s.useMemo(()=>null!=I?A.getMonth(I):null,[I,A]),[B,H]=s.useState(()=>_||A.getMonth(N)),[V,W]=Jg({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),U=eb(e=>{W(e),C&&C(e)}),G=s.useCallback(e=>{const t=A.startOfMonth(m&&A.isAfter(F,b)?F:b),n=A.startOfMonth(h&&A.isBefore(F,g)?F:g),r=A.startOfMonth(e);return!!A.isBefore(r,t)||(!!A.isAfter(r,n)||!!y&&y(r))},[h,m,g,b,F,y,A]),K=eb((e,t)=>{if(w)return;const n=I&&i&&!A.isSameYear(I,i)?A.setYear(I,A.getYear(i)):I,r=A.setMonth(n??N,t);O(r)}),q=eb(e=>{G(A.setMonth(I??i??N,e))||(H(e),U(!0),x&&x(e))});s.useEffect(()=>{H(e=>null!==_&&e!==_?_:e)},[_]);const Y=eb((e,t)=>{const n=12;switch(e.key){case"ArrowUp":q((n+t-3)%n),e.preventDefault();break;case"ArrowDown":q((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":q((n+t+(L?1:-1))%n),e.preventDefault();break;case"ArrowRight":q((n+t+(L?-1:1))%n),e.preventDefault()}}),X=eb((e,t)=>{q(t)}),Q=eb((e,t)=>{B===t&&U(!1)});return Xp.jsx(CX,f({ref:t,className:MG(z.root,o),ownerState:$,role:"radiogroup","aria-labelledby":R,monthsPerRow:k},T,{children:XU(A,i??I??N).map(e=>{const t=A.getMonth(e),n=A.format(e,"monthShort"),r=A.format(e,"month"),o=SX(t,_,e,I,A),i=p||G(e);return Xp.jsx(wX,{selected:o,value:t,onClick:K,onKeyDown:Y,autoFocus:V&&t===B,disabled:i,tabIndex:t!==B||i?-1:0,onFocus:X,onBlur:Q,"aria-current":SX(t,j,e,F,A)?"date":void 0,"aria-label":r,slots:M,slotProps:P,classes:a,children:n},n)})}))});function EX(e){return Mh("MuiYearCalendar",e)}const RX=Ph("MuiYearCalendar",["root","button","disabled","selected"]),MX=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],PX=Ig("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${RX.disabled}`]:t.disabled},{[`&.${RX.selected}`]:t.selected}]})(({theme:e})=>f({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tm(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tm(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${RX.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${RX.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),TX=s.memo(function(e){const{autoFocus:t,classes:n,disabled:r,selected:o,value:i,onClick:a,onKeyDown:l,onFocus:c,onBlur:u,slots:p,slotProps:h}=e,m=d(e,MX),g=s.useRef(null),{ownerState:b}=NG(),v=f({},b,{isYearDisabled:r,isYearSelected:o}),y=((e,t)=>zm({button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]},EX,e))(n,v);Wh(()=>{t&&g.current?.focus()},[t]);const w=p?.yearButton??PX,x=Uy({elementType:w,externalSlotProps:h?.yearButton,externalForwardedProps:m,additionalProps:{disabled:r,ref:g,type:"button",role:"radio","aria-checked":o,onClick:e=>a(e,i),onKeyDown:e=>l(e,i),onFocus:e=>c(e,i),onBlur:e=>u(e,i)},ownerState:v,className:y.button});return Xp.jsx(w,f({},x))}),IX=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"];const OX=Ig("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Oh(e)&&"yearsPerRow"!==e})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:WK,maxHeight:280,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),DX=Ig("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),FX=s.forwardRef(function(e,t){const n=function(e,t){const n=Mg({props:e,name:t});return f({},n,mK(n),{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}(e,"MuiYearCalendar"),{autoFocus:r,className:o,classes:i,value:a,defaultValue:l,referenceDate:c,disabled:u,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:b,readOnly:v,shouldDisableYear:y,onYearFocus:w,hasFocus:x,onFocusedViewChange:S,yearsOrder:C,yearsPerRow:k,timezone:E,gridLabelId:R,slots:M,slotProps:P}=n,T=d(n,IX),{value:I,handleValueChange:O,timezone:D}=AK({name:"YearCalendar",timezone:E,value:a,defaultValue:l,referenceDate:c,onChange:b,valueManager:kG}),F=pK(D),L=mm(),A=GG(),{ownerState:$}=NG(),N=s.useMemo(()=>kG.getInitialReferenceValue({value:I,adapter:A,props:n,timezone:D,referenceDate:c,granularity:oG.year}),[]),z=(e=>zm({root:["root"]},EX,e))(i),j=s.useMemo(()=>A.getYear(F),[A,F]),_=s.useMemo(()=>null!=I?A.getYear(I):null,[I,A]),[B,H]=s.useState(()=>_||A.getYear(N)),[V,W]=Jg({name:"YearCalendar",state:"hasFocus",controlled:x,default:r??!1}),U=eb(e=>{W(e),S&&S(e)}),G=s.useCallback(e=>{if(h&&A.isBeforeYear(e,F))return!0;if(p&&A.isAfterYear(e,F))return!0;if(g&&A.isBeforeYear(e,g))return!0;if(m&&A.isAfterYear(e,m))return!0;if(!y)return!1;const t=A.startOfYear(e);return y(t)},[p,h,m,g,F,y,A]),K=eb((e,t)=>{if(v)return;const n=A.setYear(I??N,t);O(n)}),q=eb(e=>{G(A.setYear(I??N,e))||(H(e),U(!0),w?.(e))});s.useEffect(()=>{H(e=>null!==_&&e!==_?_:e)},[_]);const Y="desc"!==C?1*k:-1*k,X=L&&"asc"===C||!L&&"desc"===C?-1:1,Q=eb((e,t)=>{switch(e.key){case"ArrowUp":q(t-Y),e.preventDefault();break;case"ArrowDown":q(t+Y),e.preventDefault();break;case"ArrowLeft":q(t-X),e.preventDefault();break;case"ArrowRight":q(t+X),e.preventDefault()}}),Z=eb((e,t)=>{q(t)}),J=eb((e,t)=>{B===t&&U(!1)}),ee=s.useRef(null),te=tb(t,ee);s.useEffect(()=>{if(r||null===ee.current)return;const e=ee.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,o=ee.current.clientHeight,i=ee.current.scrollTop,a=n+t;t>o||n<i||(ee.current.scrollTop=a-o/2-t/2)},[r]);const ne=A.getYearRange([g,m]);"desc"===C&&ne.reverse();let re=k-ne.length%k;return re===k&&(re=0),Xp.jsxs(OX,f({ref:te,className:MG(z.root,o),ownerState:$,role:"radiogroup","aria-labelledby":R,yearsPerRow:k},T,{children:[ne.map(e=>{const t=A.getYear(e),n=t===_,r=u||G(e);return Xp.jsx(TX,{selected:n,value:t,onClick:K,onKeyDown:Q,autoFocus:V&&t===B,disabled:r,tabIndex:t!==B||r?-1:0,onFocus:Z,onBlur:J,"aria-current":j===t?"date":void 0,slots:M,slotProps:P,classes:i,children:A.format(e,"year")},A.format(e,"year"))}),Array.from({length:re},(e,t)=>Xp.jsx(DX,{},t))]}))}),LX=e=>Mh("MuiPickersCalendarHeader",e),AX=Ph("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function $X(e){return Mh("MuiPickersArrowSwitcher",e)}Ph("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const NX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],zX=["ownerState"],jX=["ownerState"],_X=Ig("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),BX=Ig("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),HX=Ig(ev,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),VX=s.forwardRef(function(e,t){const n=mm(),r=Mg({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:i,slots:a,slotProps:l,isNextDisabled:s,isNextHidden:c,onGoToNext:u,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:b,labelId:v,classes:y}=r,w=d(r,NX),{ownerState:x}=NG(),S=(e=>zm({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},$X,e))(y),C={isDisabled:s,isHidden:c,goTo:u,label:p},k={isDisabled:h,isHidden:m,goTo:g,label:b},E=a?.previousIconButton??HX,R=Uy({elementType:E,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:f({},x,{isButtonHidden:k.isHidden??!1}),className:MG(S.button,S.previousIconButton)}),M=a?.nextIconButton??HX,P=Uy({elementType:M,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:f({},x,{isButtonHidden:C.isHidden??!1}),className:MG(S.button,S.nextIconButton)}),T=a?.leftArrowIcon??wq,I=d(Uy({elementType:T,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),zX),O=a?.rightArrowIcon??xq,D=d(Uy({elementType:O,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),jX);return Xp.jsxs(_X,f({ref:t,className:MG(S.root,i),ownerState:x},w,{children:[Xp.jsx(E,f({},R,{children:n?Xp.jsx(O,f({},D)):Xp.jsx(T,f({},I))})),o?Xp.jsx(vv,{variant:"subtitle1",component:"span",id:v,children:o}):Xp.jsx(BX,{className:S.spacer,ownerState:x}),Xp.jsx(M,f({},P,{children:n?Xp.jsx(T,f({},I)):Xp.jsx(O,f({},D))}))]}))});const WX=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],UX=["ownerState"],GX=Ig("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),KX=Ig("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>f({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qX=Ig("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),YX=Ig(ev,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${AX.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),XX=Ig(yq,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),QX=s.forwardRef(function(e,t){const n=KG(),r=GG(),o=Mg({props:e,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:p,maxDate:h,minDate:m,onMonthChange:g,onViewChange:b,view:v,reduceAnimations:y,views:w,labelId:x,className:S,classes:C,timezone:k,format:E=`${r.formats.month} ${r.formats.year}`}=o,R=d(o,WX),{ownerState:M}=NG(),P=(e=>zm({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},LX,e))(C),T=i?.switchViewButton??YX,I=Uy({elementType:T,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(v)},ownerState:f({},M,{view:v}),className:P.switchViewButton}),O=i?.switchViewIcon??XX,D=d(Uy({elementType:O,externalSlotProps:a?.switchViewIcon,ownerState:M,className:P.switchViewIcon}),UX),F=function(e,{disableFuture:t,maxDate:n,timezone:r}){const o=GG();return s.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}(l,{disableFuture:u,maxDate:h,timezone:k}),L=function(e,{disablePast:t,minDate:n,timezone:r}){const o=GG();return s.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}(l,{disablePast:p,minDate:m,timezone:k});if(1===w.length&&"year"===w[0])return null;const A=r.formatByString(l,E);return Xp.jsxs(GX,f({},R,{ownerState:M,className:MG(P.root,S),ref:t,children:[Xp.jsxs(KX,{role:"presentation",onClick:()=>{if(1!==w.length&&b&&!c)if(2===w.length)b(w.find(e=>e!==v)||w[0]);else{const e=0!==w.indexOf(v)?0:1;b(w[e])}},ownerState:M,"aria-live":"polite",className:P.labelContainer,children:[Xp.jsx(_Y,{reduceAnimations:y,transKey:A,children:Xp.jsx(qX,{id:x,ownerState:M,className:P.label,children:A})}),w.length>1&&!c&&Xp.jsx(T,f({},I,{children:Xp.jsx(O,f({},D))}))]}),Xp.jsx(Jw,{in:"day"===v,appear:!y,enter:!y,children:Xp.jsx(VX,{slots:i,slotProps:a,onGoToPrevious:()=>g(r.addMonths(l,-1)),isPreviousDisabled:L,previousLabel:n.previousMonth,onGoToNext:()=>g(r.addMonths(l,1)),isNextDisabled:F,nextLabel:n.nextMonth})})]}))}),ZX=Ig("div")({overflow:"hidden",width:WK,maxHeight:336,display:"flex",flexDirection:"column",margin:"0 auto"}),JX=e=>Mh("MuiDateCalendar",e);Ph("MuiDateCalendar",["root","viewTransitionContainer"]);const eQ=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"];const tQ=Ig(ZX,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:336}),nQ=Ig(_Y,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),rQ=s.forwardRef(function(e,t){const n=GG(),{ownerState:r}=NG(),o=xm(),i=function(e,t){const n=Mg({props:e,name:t}),r=IK(n.reduceAnimations);return f({},n,mK(n),{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>Xp.jsx("span",{children:"..."}))})}(e,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:c,defaultValue:u,referenceDate:p,disableFuture:h,disablePast:m,onChange:g,onMonthChange:b,reduceAnimations:v,shouldDisableDate:y,shouldDisableMonth:w,shouldDisableYear:x,view:S,views:C,openTo:k,className:E,classes:R,disabled:M,readOnly:P,minDate:T,maxDate:I,disableHighlightToday:O,focusedView:D,onFocusedViewChange:F,showDaysOutsideCurrentMonth:L,fixedWeekNumber:A,dayOfWeekFormatter:$,slots:N,slotProps:z,loading:j,renderLoading:_,displayWeekNumber:B,yearsOrder:H,yearsPerRow:V,monthsPerRow:W,timezone:U}=i,G=d(i,eQ),{value:K,handleValueChange:q,timezone:Y}=AK({name:"DateCalendar",timezone:U,value:c,defaultValue:u,referenceDate:p,onChange:g,valueManager:kG}),{view:X,setView:Q,focusedView:Z,setFocusedView:J,goToNextView:ee,setValueAndGoToNextView:te}=DK({view:S,views:C,openTo:k,onChange:q,onViewChange:l,autoFocus:a,focusedView:D,onFocusedViewChange:F}),{referenceDate:ne,calendarState:re,setVisibleDate:oe,isDateDisabled:ie,onMonthSwitchingAnimationEnd:ae}=$Y({value:K,referenceDate:p,reduceAnimations:v,onMonthChange:b,minDate:T,maxDate:I,shouldDisableDate:y,disablePast:m,disableFuture:h,timezone:Y,getCurrentMonthFromVisibleDate:(e,t)=>n.isSameMonth(e,t)?t:n.startOfMonth(e)}),le=M&&K||T,se=M&&K||I,ce=`${o}-grid-label`,ue=null!==Z,de=N?.calendarHeader??QX,pe=Uy({elementType:de,externalSlotProps:z?.calendarHeader,additionalProps:{views:C,view:X,currentMonth:re.currentMonth,onViewChange:Q,onMonthChange:e=>oe({target:e,reason:"header-navigation"}),minDate:le,maxDate:se,disabled:M,disablePast:m,disableFuture:h,reduceAnimations:v,timezone:Y,labelId:ce},ownerState:r}),fe=eb(e=>{const t=n.startOfMonth(e),r=n.endOfMonth(e),o=ie(e)?qU({adapter:n,date:e,minDate:n.isBefore(T,t)?t:T,maxDate:n.isAfter(I,r)?r:I,disablePast:m,disableFuture:h,isDateDisabled:ie,timezone:Y}):e;o?(te(o,"finish"),oe({target:o,reason:"cell-interaction"})):(ee(),oe({target:t,reason:"cell-interaction"}))}),he=eb(e=>{const t=n.startOfYear(e),r=n.endOfYear(e),o=ie(e)?qU({adapter:n,date:e,minDate:n.isBefore(T,t)?t:T,maxDate:n.isAfter(I,r)?r:I,disablePast:m,disableFuture:h,isDateDisabled:ie,timezone:Y}):e;o?(te(o,"finish"),oe({target:o,reason:"cell-interaction"})):(ee(),oe({target:t,reason:"cell-interaction"}))}),me=eb(e=>q(e?KU(n,e,K??ne):e,"finish",X));s.useEffect(()=>{n.isValid(K)&&oe({target:K,reason:"controlled-value-change"})},[K]);const ge=(e=>zm({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},JX,e))(R),be={disablePast:m,disableFuture:h,maxDate:I,minDate:T},ve={disableHighlightToday:O,readOnly:P,disabled:M,timezone:Y,gridLabelId:ce,slots:N,slotProps:z},ye=s.useRef(X);s.useEffect(()=>{ye.current!==X&&(Z===ye.current&&J(X,!0),ye.current=X)},[Z,J,X]);const we=s.useMemo(()=>[K],[K]);return Xp.jsxs(tQ,f({ref:t,className:MG(ge.root,E),ownerState:r},G,{children:[Xp.jsx(de,f({},pe,{slots:N,slotProps:z})),Xp.jsx(nQ,{reduceAnimations:v,className:ge.viewTransitionContainer,transKey:X,ownerState:r,children:Xp.jsxs("div",{children:["year"===X&&Xp.jsx(FX,f({},be,ve,{value:K,onChange:he,shouldDisableYear:x,hasFocus:ue,onFocusedViewChange:e=>J("year",e),yearsOrder:H,yearsPerRow:V,referenceDate:ne})),"month"===X&&Xp.jsx(kX,f({},be,ve,{currentMonth:re.currentMonth,hasFocus:ue,className:E,value:K,onChange:fe,shouldDisableMonth:w,onFocusedViewChange:e=>J("month",e),monthsPerRow:W,referenceDate:ne})),"day"===X&&Xp.jsx(mX,f({},re,be,ve,{onMonthSwitchingAnimationEnd:ae,hasFocus:ue,onFocusedDayChange:e=>oe({target:e,reason:"cell-interaction"}),reduceAnimations:v,selectedDays:we,onSelectedDaysChange:me,shouldDisableDate:y,shouldDisableMonth:w,shouldDisableYear:x,onFocusedViewChange:e=>J("day",e),showDaysOutsideCurrentMonth:L,fixedWeekNumber:A,dayOfWeekFormatter:$,displayWeekNumber:B,loading:j,renderLoading:_}))]})})]}))}),oQ=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:s,className:c,classes:u,disableFuture:d,disablePast:p,minDate:f,maxDate:h,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:b,reduceAnimations:v,onMonthChange:y,monthsPerRow:w,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:k,slotProps:E,loading:R,renderLoading:M,disableHighlightToday:P,readOnly:T,disabled:I,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:D,sx:F,autoFocus:L,fixedWeekNumber:A,displayWeekNumber:$,timezone:N})=>Xp.jsx(rQ,{view:e,onViewChange:t,views:n.filter(JU),focusedView:r&&JU(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:l,onChange:s,className:c,classes:u,disableFuture:d,disablePast:p,minDate:f,maxDate:h,shouldDisableDate:m,shouldDisableMonth:g,shouldDisableYear:b,reduceAnimations:v,onMonthChange:y,monthsPerRow:w,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:k,slotProps:E,loading:R,renderLoading:M,disableHighlightToday:P,readOnly:T,disabled:I,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:D,sx:F,autoFocus:L,fixedWeekNumber:A,displayWeekNumber:$,timezone:N}),iQ=s.forwardRef(function(e,t){const n=GG(),r=gK(e,"MuiDesktopDatePicker"),o=f({day:oQ,month:oQ,year:oQ},r.viewRenderers),i=f({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:o,format:eG(n,r,!1),yearsPerRow:r.yearsPerRow??4,slots:f({field:LY},r.slots),slotProps:f({},r.slotProps,{field:e=>f({},fb(r.slotProps?.field,e),ZG(r)),toolbar:f({hidden:!0},r.slotProps?.toolbar)})}),{renderPicker:a}=(e=>{let{props:t,steps:n}=e,r=d(e,tq);const{slots:o,slotProps:i,label:a,inputRef:l,localeText:s}=t,c=eq({steps:n}),{providerProps:u,renderCurrentView:p,ownerState:h}=NK(f({},r,{props:t,localeText:s,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),m=u.privateContextValue.labelId,g=i?.toolbar?.hidden??!1,b=o.field,v=d(Uy({elementType:b,externalSlotProps:i?.field,additionalProps:f({},g&&{id:m}),ownerState:h}),nq),y=o.layout??JK;let w=m;g&&(w=a?`${m}-label`:void 0);const x=f({},i,{toolbar:f({},i?.toolbar,{titleId:m}),popper:f({"aria-labelledby":w},i?.popper)});return{renderPicker:()=>Xp.jsxs($G,f({},u,{children:[Xp.jsx(b,f({},v,{slots:f({},o,v.slots),slotProps:f({},x,v.slotProps),inputRef:l})),Xp.jsx(EK,{slots:o,slotProps:x,children:Xp.jsx(y,f({},x?.layout,{slots:o,slotProps:x,children:p()}))})]}))}})({ref:t,props:i,valueManager:kG,valueType:"date",validator:uK,steps:null});return a()});iQ.propTypes={autoFocus:C.bool,className:C.string,closeOnSelect:C.bool,dayOfWeekFormatter:C.func,defaultValue:C.object,disabled:C.bool,disableFuture:C.bool,disableHighlightToday:C.bool,disableOpenPicker:C.bool,disablePast:C.bool,displayWeekNumber:C.bool,enableAccessibleFieldDOMStructure:C.any,fixedWeekNumber:C.number,format:C.string,formatDensity:C.oneOf(["dense","spacious"]),inputRef:xb,label:C.node,loading:C.bool,localeText:C.object,maxDate:C.object,minDate:C.object,monthsPerRow:C.oneOf([3,4]),name:C.string,onAccept:C.func,onChange:C.func,onClose:C.func,onError:C.func,onMonthChange:C.func,onOpen:C.func,onSelectedSectionsChange:C.func,onViewChange:C.func,onYearChange:C.func,open:C.bool,openTo:C.oneOf(["day","month","year"]),orientation:C.oneOf(["landscape","portrait"]),readOnly:C.bool,reduceAnimations:C.bool,referenceDate:C.object,renderLoading:C.func,selectedSections:C.oneOfType([C.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),C.number]),shouldDisableDate:C.func,shouldDisableMonth:C.func,shouldDisableYear:C.func,showDaysOutsideCurrentMonth:C.bool,slotProps:C.object,slots:C.object,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),timezone:C.string,value:C.object,view:C.oneOf(["day","month","year"]),viewRenderers:C.shape({day:C.func,month:C.func,year:C.func}),views:C.arrayOf(C.oneOf(["day","month","year"]).isRequired),yearsOrder:C.oneOf(["asc","desc"]),yearsPerRow:C.oneOf([3,4])};const aQ=Ig(uS)({[`& .${oS.container}`]:{outline:0},[`& .${oS.paper}`]:{outline:0,minWidth:WK}}),lQ=Ig(vS)({"&:first-of-type":{padding:0}});function sQ(e){const{children:t,slots:n,slotProps:r}=e,{open:o}=FG(),{dismissViews:i,onPopperExited:a}=NG(),l=n?.dialog??aQ,s=n?.mobileTransition??Jw;return Xp.jsx(l,f({open:o,onClose:()=>{i(),a?.()}},r?.dialog,{TransitionComponent:s,TransitionProps:r?.mobileTransition,PaperComponent:n?.mobilePaper,PaperProps:r?.mobilePaper,children:Xp.jsx(lQ,{children:t})}))}const cQ=["props","steps"],uQ=["ownerState"],dQ=s.forwardRef(function(e,t){const n=GG(),r=gK(e,"MuiMobileDatePicker"),o=f({day:oQ,month:oQ,year:oQ},r.viewRenderers),i=f({},r,{viewRenderers:o,format:eG(n,r,!1),slots:f({field:LY},r.slots),slotProps:f({},r.slotProps,{field:e=>f({},fb(r.slotProps?.field,e),ZG(r)),toolbar:f({hidden:!1},r.slotProps?.toolbar)})}),{renderPicker:a}=(e=>{let{props:t,steps:n}=e,r=d(e,cQ);const{slots:o,slotProps:i,label:a,inputRef:l,localeText:s}=t,c=eq({steps:n}),{providerProps:u,renderCurrentView:p,ownerState:h}=NK(f({},r,{props:t,localeText:s,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),m=u.privateContextValue.labelId,g=i?.toolbar?.hidden??!1,b=o.field,v=d(Uy({elementType:b,externalSlotProps:i?.field,additionalProps:f({},g&&{id:m}),ownerState:h}),uQ),y=o.layout??JK;let w=m;g&&(w=a?`${m}-label`:void 0);const x=f({},i,{toolbar:f({},i?.toolbar,{titleId:m}),mobilePaper:f({"aria-labelledby":w},i?.mobilePaper)});return{renderPicker:()=>Xp.jsxs($G,f({},u,{children:[Xp.jsx(b,f({},v,{slots:f({},o,v.slots),slotProps:f({},x,v.slotProps),inputRef:l})),Xp.jsx(sQ,{slots:o,slotProps:x,children:Xp.jsx(y,f({},x?.layout,{slots:o,slotProps:x,children:p()}))})]}))}})({ref:t,props:i,valueManager:kG,valueType:"date",validator:uK,steps:null});return a()});dQ.propTypes={autoFocus:C.bool,className:C.string,closeOnSelect:C.bool,dayOfWeekFormatter:C.func,defaultValue:C.object,disabled:C.bool,disableFuture:C.bool,disableHighlightToday:C.bool,disableOpenPicker:C.bool,disablePast:C.bool,displayWeekNumber:C.bool,enableAccessibleFieldDOMStructure:C.any,fixedWeekNumber:C.number,format:C.string,formatDensity:C.oneOf(["dense","spacious"]),inputRef:xb,label:C.node,loading:C.bool,localeText:C.object,maxDate:C.object,minDate:C.object,monthsPerRow:C.oneOf([3,4]),name:C.string,onAccept:C.func,onChange:C.func,onClose:C.func,onError:C.func,onMonthChange:C.func,onOpen:C.func,onSelectedSectionsChange:C.func,onViewChange:C.func,onYearChange:C.func,open:C.bool,openTo:C.oneOf(["day","month","year"]),orientation:C.oneOf(["landscape","portrait"]),readOnly:C.bool,reduceAnimations:C.bool,referenceDate:C.object,renderLoading:C.func,selectedSections:C.oneOfType([C.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),C.number]),shouldDisableDate:C.func,shouldDisableMonth:C.func,shouldDisableYear:C.func,showDaysOutsideCurrentMonth:C.bool,slotProps:C.object,slots:C.object,sx:C.oneOfType([C.arrayOf(C.oneOfType([C.func,C.object,C.bool])),C.func,C.object]),timezone:C.string,value:C.object,view:C.oneOf(["day","month","year"]),viewRenderers:C.shape({day:C.func,month:C.func,year:C.func}),views:C.arrayOf(C.oneOf(["day","month","year"]).isRequired),yearsOrder:C.oneOf(["asc","desc"]),yearsPerRow:C.oneOf([3,4])};const pQ=["desktopModeMediaQuery"],fQ=s.forwardRef(function(e,t){const n=Mg({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=wK}=n,o=d(n,pQ);return PR(r,{defaultMatches:!0})?Xp.jsx(iQ,f({ref:t},o)):Xp.jsx(dQ,f({ref:t},o))});var hQ,mQ={exports:{}};var gQ,bQ=(hQ||(hQ=1,function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},b=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var x="$isDayjsObject",S=function(e){return e instanceof R||!(!e||!e[x])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new R(n)},E=v;E.l=C,E.i=S,E.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var b=g.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return!(this.$d.toString()===f)},b.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return k(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<k(e)},b.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),f=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case s:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return f(r?b-w:b+(6-w),g);case l:case p:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var n,s=E.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[l]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[E.p(e)]()},b.add=function(r,u){var p,f=this;r=Number(r);var h=E.p(u),m=function(e){var t=k(f);return E.w(t.date(t.date()+Math.round(e*r)),f)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return m(1);if(h===s)return m(7);var g=(p={},p[i]=t,p[a]=n,p[o]=e,p)[h]||1,b=this.$d.getTime()+r*g;return E.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,p,f){var h,m=this,g=E.p(p),b=k(r),v=(b.utcOffset()-this.utcOffset())*t,y=this-b,w=function(){return E.m(m,b)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case s:h=(y-v)/6048e5;break;case l:h=(y-v)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return f?h:E.a(h)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},b.clone=function(){return E.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),M=R.prototype;return k.prototype=M,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",p]].forEach(function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,R,k),e.$i=!0),k},k.locale=C,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[y],k.Ls=w,k.p={},k}()}(mQ)),mQ.exports),vQ=t(bQ),yQ={exports:{}};var wQ,xQ=(gQ||(gQ=1,function(e){var t,n;e.exports=(t="week",n="year",function(e,r,o){var i=r.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(n).add(1,n).date(r),a=o(this).endOf(t);if(i.isBefore(a))return 1}var l=o(this).startOf(n).date(r).startOf(t).subtract(1,"millisecond"),s=this.diff(l,t,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(yQ)),yQ.exports),SQ=t(xQ),CQ={exports:{}};var kQ,EQ=(wQ||(wQ=1,function(e){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[r,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,s("week")],ww:[r,s("week")],M:[o,s("month")],MM:[r,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,s=0;s<l;s+=1){var c=i[s],u=p[c],d=u&&u[0],f=u&&u[1];i[s]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,s=o.parser,c=e.slice(r),u=a.exec(c)[0];s.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var l=i[1];if("string"==typeof l){var s=!0===i[2],c=!0===i[3],u=s||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!s&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),i=o.year,a=o.month,l=o.day,s=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,h=o.week,m=new Date,g=l||(i||a?1:m.getDate()),b=i||m.getFullYear(),v=0;i&&!a||(v=a>0?a-1:m.getMonth());var y,w=s||0,x=c||0,S=u||0,C=d||0;return p?new Date(Date.UTC(b,v,g,w,x,S,C+60*p.offset*1e3)):n?new Date(Date.UTC(b,v,g,w,x,S,C)):(y=new Date(b,v,g,w,x,S,C),h&&(y=r(y).week(h).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){i[1]=l[h-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()}(CQ)),CQ.exports),RQ=t(EQ),MQ={exports:{}};var PQ,TQ=(kQ||(kQ=1,function(e){var t;e.exports=(t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,n,r){var o=n.prototype,i=o.format;r.en.formats=t,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,r,o){var i=o&&o.toUpperCase();return r||n[o]||t[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(e,void 0===n?{}:n);return i.call(this,r)}})}(MQ)),MQ.exports),IQ=t(TQ),OQ={exports:{}};var DQ,FQ=(PQ||(PQ=1,function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),l="("===(o=o||"()")[0],s=")"===o[1];return(l?this.isAfter(i,r):!this.isBefore(i,r))&&(s?this.isBefore(a,r):!this.isAfter(a,r))||(l?this.isBefore(i,r):!this.isAfter(i,r))&&(s?this.isAfter(a,r):!this.isBefore(a,r))}}}(OQ)),OQ.exports),LQ=t(FQ),AQ={exports:{}};var $Q=(DQ||(DQ=1,function(e){e.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}}(AQ)),AQ.exports),NQ=t($Q);vQ.extend(IQ),vQ.extend(SQ),vQ.extend(LQ),vQ.extend(NQ);const zQ={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},jQ={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},_Q=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n"),BQ=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");class HQ{isMUIAdapter=!0;isTimezoneCompatible=!0;lib="dayjs";escapedCharacters={start:"[",end:"]"};formatTokenMap=(()=>zQ)();constructor({locale:e,formats:t}={}){this.locale=e,this.formats=f({},jQ,t),vQ.extend(RQ)}setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>void 0!==vQ.utc;hasTimezonePlugin=()=>void 0!==vQ.tz;isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)};cleanTimezone=e=>{switch(e){case"default":return;case"system":return vQ.tz.guess();default:return e}};createSystemDate=e=>{let t;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const n=vQ.tz.guess();t="UTC"===n?vQ(e):vQ.tz(e,n)}else t=vQ(e);return this.setLocaleToValue(t)};createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(_Q);return this.setLocaleToValue(vQ.utc(e))};createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(_Q);if(!this.hasTimezonePlugin())throw new Error(BQ);const n=void 0!==e&&!e.endsWith("Z");return this.setLocaleToValue(vQ(e).tz(this.cleanTimezone(t),n))};getLocaleFormats=()=>{const e=vQ.Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats};adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e};date=(e,t="default")=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t);getInvalidDate=()=>vQ(new Date("Invalid date"));getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"};setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(_Q);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(BQ)}return this.setLocaleToValue(vQ.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>""===e?null:vQ(e,t,this.locale,!0);getCurrentLocaleCode=()=>this.locale||"en";is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||"");expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1))})};isValid=e=>null!=e&&e.isValid();format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>this.setLocaleToValue(e).format(t);formatNumber=e=>e;isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime();isSameYear=(e,t)=>this.isSame(e,t,"YYYY");isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM");isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD");isSameHour=(e,t)=>e.isSame(t,"hour");isAfter=(e,t)=>e>t;isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year");isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day");isBefore=(e,t)=>e<t;isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year");isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day");isWithinRange=(e,[t,n])=>e>=t&&e<=n;startOfYear=e=>this.adjustOffset(e.startOf("year"));startOfMonth=e=>this.adjustOffset(e.startOf("month"));startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week"));startOfDay=e=>this.adjustOffset(e.startOf("day"));endOfYear=e=>this.adjustOffset(e.endOf("year"));endOfMonth=e=>this.adjustOffset(e.endOf("month"));endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week"));endOfDay=e=>this.adjustOffset(e.endOf("day"));addYears=(e,t)=>this.adjustOffset(e.add(t,"year"));addMonths=(e,t)=>this.adjustOffset(e.add(t,"month"));addWeeks=(e,t)=>this.adjustOffset(e.add(t,"week"));addDays=(e,t)=>this.adjustOffset(e.add(t,"day"));addHours=(e,t)=>this.adjustOffset(e.add(t,"hour"));addMinutes=(e,t)=>this.adjustOffset(e.add(t,"minute"));addSeconds=(e,t)=>this.adjustOffset(e.add(t,"second"));getYear=e=>e.year();getMonth=e=>e.month();getDate=e=>e.date();getHours=e=>e.hour();getMinutes=e=>e.minute();getSeconds=e=>e.second();getMilliseconds=e=>e.millisecond();setYear=(e,t)=>this.adjustOffset(e.set("year",t));setMonth=(e,t)=>this.adjustOffset(e.set("month",t));setDate=(e,t)=>this.adjustOffset(e.set("date",t));setHours=(e,t)=>this.adjustOffset(e.set("hour",t));setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t));setSeconds=(e,t)=>this.adjustOffset(e.set("second",t));setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t));getDaysInMonth=e=>e.daysInMonth();getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,o=t;const i=[];for(;o<n;){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=this.addDays(o,1),r+=1}return i};getWeekNumber=e=>e.week();getDayOfWeek(e){return e.day()+1}getYearRange=([e,t])=>{const n=this.startOfYear(e),r=this.endOfYear(t),o=[];let i=n;for(;this.isBefore(i,r);)o.push(i),i=this.addYears(i,1);return o}}const VQ=({providersData:e,rootProvider:t,savedFilters:n={},onSaveFilter:r,onRemoveFilter:o,existingDimensions:i=[],existingMetrics:a=[],titleOverrides:l={},onUpdateTitle:u,onResetTitle:d})=>{const p=YR(),[f,h]=s.useState(!1),[m,g]=s.useState([]),[b,v]=s.useState(""),[y,w]=s.useState([]),[x,S]=s.useState([]),[C,k]=s.useState(!1),[E,R]=s.useState(null),[M,P]=s.useState(null),[T,I]=s.useState(null),[O,D]=s.useState(null),[F,L]=s.useState("");s.useEffect(()=>{v(""),w([]),S([]),P(null),I(null)},[m]);const A=e=>e&&("date"===e.type||"timestamp"===e.type),$=()=>{const n=t?0===m.length?t:m[m.length-1].targetKey:null;if(!n||!e||!e[n])return[];const r=e[n];if(!r.dimensions)return[];const o=[];return Object.keys(r.dimensions).forEach(e=>{const t=r.dimensions[e];Object.keys(t).forEach(r=>{const i=t[r];(e=>!!e.column&&/^[a-zA-Z0-9_.]+$/.test(e.column))(i)&&o.push({key:`${n}_${e}.${r}`,value:i.title||r,dimensionKey:r,alias:e,dimension:i})})}),o},N=()=>{h(!1),g([]),v(""),w([]),S([]),P(null),I(null),R(null)},z=()=>{R(null),w([]),S([]),P(null),I(null)},j=e=>{const t=F.trim();""!==t?(u(e,t),D(null),L("")):_()},_=()=>{D(null),L("")},B=async e=>{k(!0);try{const n={provider:t,doc:{query:{dimensions:[e],metrics:[],order_by:[{name:e}]}},parameters:p?.parameters||{base_currency:"EUR"}};console.log("Fetching filter values with payload:",n);const r=await jc.runAdHocReport({report:n});console.log("Filter values results:",r);const o=(Array.isArray(r)?r:r.data||[]).map(t=>{let n=t[e];if(void 0===n){n=t[e.replace(/\./g,"_")]}if(void 0===n){const e=Object.keys(t);e.length>0&&(n=t[e[0]])}return{key:String(n),value:String(n)}});console.log("Transformed distinct values:",o),w(o)}catch(e){console.error("Error fetching filter values:",e),w([])}finally{k(!1)}},H=e=>{const n=[t];return e.relationNames&&e.relationNames.length>0&&n.push(...e.relationNames),n.join(" → ")},V=Object.entries(n);return c.createElement("div",null,c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-start",mb:2}},!f&&c.createElement(Sx,{variant:"contained",startIcon:c.createElement(vM,null),onClick:()=>{h(!0),g([]),v(""),w([]),S([]),P(null),I(null),R(null)},sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",textTransform:"none",backgroundColor:"rgb(70, 134, 128)",boxShadow:"none","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Add Filter")),f&&c.createElement(wb,{elevation:0,sx:{p:3,mb:3,border:"1px solid #e0e0e0",borderRadius:"12px",backgroundColor:"white",boxShadow:"0px 2px 4px rgba(0,0,0,0.02)",fontFamily:"system-ui"}},c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Provider Path"),c.createElement(dx,{sx:{mb:3}},c.createElement(eV,{providersData:e,rootProvider:t,onSelectionChange:g,existingDimensions:i,existingMetrics:a,existingFilters:n})),c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,color:"rgb(37, 37, 37)"}},"Select Dimension for Filter"),c.createElement(dx,{sx:{mb:3}},c.createElement(NR,{items:$(),value:b,label:"Choose Dimension",onChange:n=>{const r=n.target.value;if(v(r),S([]),P(null),I(null),r){const n=$().find(e=>e.key===r);if(n){if(!A(n.dimension)){const r=[];let o=t;m.forEach(t=>{const n=e[o];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&r.push(e)}o=t.targetKey});const i=[e[t].default_alias];r.forEach(e=>{i.push(e.alias)});const a=`${i.join("_")}.${n.dimensionKey}`;B(a)}}}else w([])},sx:{width:"400px",fontFamily:"system-ui"}})),b&&(()=>{const e=$().find(e=>e.key===b),t=e&&A(e.dimension);return c.createElement(c.Fragment,null,c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1.5,mt:3,color:"rgb(37, 37, 37)"}},t?"Select Date Range":"Select Filter Values"),t?c.createElement(UU,{dateAdapter:HQ},c.createElement(dx,{sx:{display:"flex",gap:2,width:"400px"}},c.createElement(fQ,{label:"From Date",value:M,onChange:e=>P(e),slotProps:{textField:{size:"small",fullWidth:!0},field:{clearable:!0}}}),c.createElement(fQ,{label:"To Date",value:T,onChange:e=>I(e),slotProps:{textField:{size:"small",fullWidth:!0},field:{clearable:!0}}}))):c.createElement(dx,{sx:{width:"400px"}},c.createElement(LR,{items:y,selectedKeys:x,onChange:e=>S(e),label:"Choose Values",placeholder:"Select one or more values...",loading:C,helperText:x.length>0?`${x.length} value(s) selected`:"Select at least one value"})))})(),c.createElement(dx,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3}},c.createElement(Sx,{variant:"outlined",onClick:N,sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",borderColor:"#e0e0e0",color:"rgb(37, 37, 37)",textTransform:"none","&:hover":{backgroundColor:"#f5f5f5",borderColor:"#d0d0d0"}}},"Cancel"),c.createElement(Sx,{variant:"contained",onClick:()=>{const n=$().find(e=>e.key===b);if(!n)return;const o=A(n.dimension);if(o){if(!M&&!T)return}else if(0===x.length)return;if(!b)return;const i=[],a=[t],l=[];let s=t;m.forEach(t=>{const n=e[s];if(n&&n.relations){const e=n.relations.find(e=>e.name===t.relationName);e&&(i.push(e),l.push(e.name))}a.push(t.targetKey),s=t.targetKey});const c=[e[t].default_alias];i.forEach(e=>{c.push(e.alias)});const u=`${c.join("_")}.${n.dimensionKey}`;let d;o?(d={},M&&(d.gte=M.format("YYYY-MM-DD")),T&&(d.lte=T.format("YYYY-MM-DD"))):d=x;const p={dimension:n.dimension,relations:i,providerPath:a,relationNames:l,dimensionKey:n.dimensionKey,dimensionTitle:n.value,fullPath:u,values:d};r(u,p),N()},disabled:(()=>{if(!b)return!0;const e=$().find(e=>e.key===b);if(!e)return!0;return A(e.dimension)?!M&&!T:0===x.length})(),sx:{height:"40px",fontFamily:"system-ui",fontSize:"14px",fontWeight:500,borderRadius:"8px",boxShadow:"none",textTransform:"none",backgroundColor:"rgb(70, 134, 128)","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Save Filter"))),V.length>0&&c.createElement(dx,{sx:{marginTop:0}},c.createElement(vv,{variant:"h6",sx:{fontSize:"16px",fontWeight:600,marginBottom:1,color:"rgb(37, 37, 37)"}},"Saved Filters"),c.createElement(dx,{sx:{display:"flex",flexDirection:"column",gap:1}},V.map(([e,t])=>{const i=A(t.dimension),a=E===e,s=O===e;let u,p;i&&t.values&&"object"==typeof t.values&&!Array.isArray(t.values)?p=t.values.gte&&t.values.lte?`${t.values.gte} to ${t.values.lte}`:t.values.gte?`From ${t.values.gte}`:t.values.lte?`Until ${t.values.lte}`:"No dates":(u=t.values?.length||0,p=t.values?.join(", ")||"No values");const f=l[e]||t.dimensionTitle,m=!!l[e];return c.createElement(dx,{key:e},c.createElement(dx,{sx:{display:"flex",alignItems:"center",width:"100%",gap:1,backgroundColor:"white",border:"1px solid #e0e0e0",borderRadius:2,padding:2,transition:"box-shadow 0.2s ease","&:hover .hover-icons":{opacity:1}}},s?c.createElement(c.Fragment,null,c.createElement(wR,{value:F,onChange:e=>L(e.target.value),onKeyDown:t=>((e,t)=>{"Enter"===e.key?j(t):"Escape"===e.key&&_()})(t,e),size:"small",autoFocus:!0,placeholder:"Enter custom title",sx:{flex:1}}),c.createElement(dx,{sx:{display:"flex",gap:.5}},c.createElement(hE,{title:"Save",arrow:!0},c.createElement(ev,{size:"small",onClick:()=>j(e),color:"primary"},c.createElement(LU,{fontSize:"small"}))),c.createElement(hE,{title:"Cancel",arrow:!0},c.createElement(ev,{size:"small",onClick:_},c.createElement(AU,{fontSize:"small"}))),m&&c.createElement(hE,{title:"Reset to default",arrow:!0},c.createElement(ev,{size:"small",onClick:()=>(e=>{d(e),D(null),L("")})(e),color:"warning"},c.createElement($U,{fontSize:"small"}))))):c.createElement(c.Fragment,null,c.createElement(dx,{sx:{flex:1,minWidth:0}},c.createElement(dx,{sx:{display:"flex",alignItems:"center",gap:1}},c.createElement(vv,{variant:"h6",sx:{fontWeight:m?600:500,fontStyle:m?"italic":"normal",color:"#1a1a1a",fontSize:"14px"}},f),c.createElement(hE,{title:c.createElement("div",null,c.createElement("div",null,c.createElement("strong",null,"Path:")," ",H(t)," → ",t.dimensionTitle),c.createElement("div",null,c.createElement("strong",null,"Full Path:")," ",e),c.createElement("div",null,c.createElement("strong",null,i?"Date Range":`Values (${u})`,":")," ",p)),arrow:!0,placement:"top"},c.createElement(uw,{size:"small",label:i?p:`${u} values`,color:"default",variant:"outlined",sx:{marginLeft:1,height:"20px",fontSize:"14px"}})))),c.createElement(dx,{className:"hover-icons",sx:{display:"flex",gap:.5,opacity:0,transition:"opacity 0.2s"}},c.createElement(hE,{title:"Rename filter",arrow:!0},c.createElement(ev,{size:"small",onClick:()=>((e,t)=>{D(e),L(l[e]||t||"")})(e,t.dimensionTitle),disabled:a},c.createElement(UH,{fontSize:"small"}))),c.createElement(hE,{title:"Edit filter values",arrow:!0},c.createElement(ev,{size:"small",onClick:()=>(async(e,t)=>{h(!1),R(e),A(t.dimension)?t.values&&"object"==typeof t.values&&!Array.isArray(t.values)&&(P(t.values.gte?vQ(t.values.gte):null),I(t.values.lte?vQ(t.values.lte):null)):(S(t.values||[]),await B(e))})(e,t),disabled:a},c.createElement(HU,{fontSize:"small"}))),c.createElement(hE,{title:"Remove filter",arrow:!0},c.createElement(ev,{size:"small",onClick:()=>o(e),sx:{color:"#ef5350"}},c.createElement(MM,{fontSize:"small"})))))),a&&c.createElement(wb,{elevation:0,sx:{p:2,mt:1,ml:2,border:"1px solid #e0e0e0",borderRadius:"8px",backgroundColor:"#fafafa"}},c.createElement(vv,{variant:"subtitle2",sx:{marginBottom:1.5,fontWeight:600}},"Edit ",i?"Date Range":"Values"," for: ",t.dimensionTitle),i?c.createElement(UU,{dateAdapter:HQ},c.createElement(dx,{sx:{display:"flex",gap:2,width:"400px",marginBottom:2}},c.createElement(fQ,{label:"From Date",value:M,onChange:e=>P(e),slotProps:{textField:{size:"small",fullWidth:!0},field:{clearable:!0}}}),c.createElement(fQ,{label:"To Date",value:T,onChange:e=>I(e),slotProps:{textField:{size:"small",fullWidth:!0},field:{clearable:!0}}}))):c.createElement(dx,{sx:{width:"400px",marginBottom:2}},c.createElement(LR,{items:y,selectedKeys:x,onChange:e=>S(e),label:"Choose Values",placeholder:"Select one or more values...",loading:C,helperText:x.length>0?`${x.length} value(s) selected`:"Select at least one value"})),c.createElement(dx,{sx:{display:"flex",gap:1,justifyContent:"flex-end"}},c.createElement(Sx,{variant:"outlined",size:"small",onClick:z,sx:{textTransform:"none",borderRadius:"6px"}},"Cancel"),c.createElement(Sx,{variant:"contained",size:"small",onClick:()=>(e=>{const t=n[e];if(A(t.dimension)){if(!M&&!T)return;const n={};M&&(n.gte=M.format("YYYY-MM-DD")),T&&(n.lte=T.format("YYYY-MM-DD"));const o={...t,values:n};r(e,o)}else{if(0===x.length)return;const n={...t,values:x};r(e,n)}R(null),w([]),S([]),P(null),I(null)})(e),disabled:i?!M&&!T:0===x.length,sx:{textTransform:"none",borderRadius:"6px",backgroundColor:"rgb(70, 134, 128)",boxShadow:"none","&:hover":{backgroundColor:"rgb(50, 114, 108)",boxShadow:"none"}}},"Save Changes"))))}))))},WQ=({reportData:e,dimensions:t,metrics:n,loading:r,onPageChange:o,totalRows:i=0,titleOverrides:a={dimensions:{},metrics:{}}})=>{const[l,u]=s.useState({page:0,pageSize:50}),d=c.useMemo(()=>{const e=[];return t.forEach(t=>{let n,r;if(t.relations&&t.relations.length>0){const e=t.fullPath.split("."),r=e[0],o=e[1],i=r.split("_");i.shift();const a=i.join("_");n=a?`${a}_${o}`:o}else n=t.fullPath.replace(".","_");r=a.dimensions[t.fullPath]||t.dimensionTitle||n,e.push({field:n,headerName:r,flex:1,minWidth:150})}),n.forEach(t=>{const n=t.metric;let r,o;if(t.relations&&t.relations.length>0){const e=t.fullPath.split("."),n=e[0],o=e[1],i=n.split("_");i.shift();const a=i.join("_");r=a?`${a}_${o}`:o}else r=t.metricName;o=a.metrics[t.fullPath]||t.metricTitle||r,e.push({field:r,headerName:o,flex:1,minWidth:150,type:"integer"===n?.type||"currency"===n?.type?"number":"string",valueFormatter:e=>{if(null==e)return"";if(n?.format){const t=pl(e).format(n.format);return n?.prefix?`${n.prefix} ${t}`:t}return e}})}),e},[t,n,a]),p=c.useMemo(()=>e&&Array.isArray(e)?e.map((e,t)=>({id:t,...e})):[],[e]);return r?c.createElement(dx,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},c.createElement(Yb,null)):e&&0!==e.length?c.createElement(dx,{sx:{height:600,width:"100%"}},c.createElement(VH,{rows:p,columns:d,paginationModel:l,onPaginationModelChange:e=>{u(e),o&&e.page!==l.page&&o(e.page,e.pageSize)},pageSizeOptions:[10,25,50,100],paginationMode:"server",rowCount:i||p.length,loading:r,disableRowSelectionOnClick:!0,sx:{"& .MuiDataGrid-cell":{padding:"8px"},"& .MuiDataGrid-columnHeader":{backgroundColor:"#f5f5f5",fontWeight:"bold"}}})):c.createElement(dx,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},c.createElement(vv,{variant:"body1",color:"textSecondary"},"No data available. Run a report to see results."))};function UQ({children:e,value:t,index:n}){return c.createElement("div",{role:"tabpanel",hidden:t!==n,id:`report-tabpanel-${n}`,"aria-labelledby":`report-tab-${n}`},t===n&&c.createElement(dx,{sx:{py:3}},e))}const GQ=({reportDefinitionId:e,cloneData:t,autoRun:n,onBackToList:r})=>{const o=ZR(),i=YR(),[a,l]=s.useState(null),[u,d]=s.useState(""),[p,f]=s.useState(""),[h,m]=s.useState({dimensions:[],metrics:[],filters:{}}),[g,b]=s.useState({dimensions:{},metrics:{},filters:{}}),[v,y]=s.useState(null),[w,x]=s.useState(!1),[S,C]=s.useState(0),[k,E]=s.useState(0),[R,M]=s.useState(50),[P,T]=s.useState(0),[I,O]=s.useState(!1),[D,F]=s.useState(!1);s.useEffect(()=>{(async()=>{const e=await jc.getProviders();console.log({providers:e}),l(e)})()},[]),s.useEffect(()=>{e&&a&&$(e)},[e,a]),s.useEffect(()=>{t&&a&&N(t)},[t,a]),s.useEffect(()=>{n&&D&&u&&h.dimensions.length>0&&_()},[n,D]);const L=(e,t,n)=>{try{const[r,o]=e.split("."),i=r.split("_");let a=n;const l=[],s=[n],c=[];for(let e=1;e<i.length;e++){const n=i[e],r=t[a];if(!r||!r.relations)return console.warn(`Provider ${a} not found or has no relations`),null;const o=r.relations.find(e=>e.alias===n);if(!o)return console.warn(`Relation with alias ${n} not found in provider ${a}`),null;l.push(o),c.push(o.name),a=o.target,s.push(a)}const u=t[a];if(!u)return console.warn(`Final provider ${a} not found`),null;const d=u.default_alias;if(!u.dimensions||!u.dimensions[d])return console.warn(`Dimensions not found for alias ${d} in provider ${a}`),null;const p=u.dimensions[d][o];return p?{dimension:p,relations:l,providerPath:s,relationNames:c,dimensionKey:o,dimensionTitle:p.title||o,fullPath:e}:(console.warn(`Dimension ${o} not found in provider ${a}, alias ${d}`),null)}catch(t){return console.warn(`Error reconstructing dimension from path ${e}:`,t),null}},A=(e,t,n)=>{try{const[r,o]=e.split("."),i=r.split("_");let a=n;const l=[],s=[n],c=[];for(let e=1;e<i.length;e++){const n=i[e],r=t[a];if(!r||!r.relations)return console.warn(`Provider ${a} not found or has no relations`),null;const o=r.relations.find(e=>e.alias===n);if(!o)return console.warn(`Relation with alias ${n} not found in provider ${a}`),null;l.push(o),c.push(o.name),a=o.target,s.push(a)}const u=t[a];if(!u)return console.warn(`Final provider ${a} not found`),null;if(!u.metrics)return console.warn(`Metrics not found in provider ${a}`),null;const d=u.metrics.find(e=>e.name===o);return d?{metric:d,relations:l,providerPath:s,relationNames:c,metricName:o,metricTitle:d.title||o,fullPath:e}:(console.warn(`Metric ${o} not found in provider ${a}`),null)}catch(t){return console.warn(`Error reconstructing metric from path ${e}:`,t),null}},$=async e=>{try{console.log("Loading report definition:",e);const t=await jc.getReportDefinition({id:e});console.log("Loaded report definition:",t),d(t.provider),f(t.title||"");const n=[],r={};if(t.definition?.doc?.query?.order_by)for(const e of t.definition.doc.query.order_by)!0===e.desc?r[e.name]="desc":r[e.name]="asc";if(t.definition?.doc?.query?.dimensions)for(const e of t.definition.doc.query.dimensions){const o=L(e,a,t.provider);o&&(o.sortOrder=r[e]||null,n.push(o))}const o=[];if(t.definition?.doc?.query?.metrics)for(const e of t.definition.doc.query.metrics){const n=A(e,a,t.provider);n&&o.push(n)}const i={dimensions:{},metrics:{},filters:{}};t.definition?.doc?.query?.titles&&(t.definition.doc.query.titles.dimensions&&(i.dimensions=t.definition.doc.query.titles.dimensions),t.definition.doc.query.titles.metrics&&(i.metrics=t.definition.doc.query.titles.metrics),t.definition.doc.query.titles.filters&&(i.filters=t.definition.doc.query.titles.filters));const l={};if(t.definition?.doc?.query?.filter){const e=t.definition.doc.query.filter;(e.and||e.or||[]).forEach(e=>{const[n,r]=Object.entries(e)[0],o=L(n,a,t.provider);o&&(l[n]={...o,values:r})})}m({dimensions:n,metrics:o,filters:l}),b(i),F(!0),console.log("Reconstructed report:",{dimensions:n,metrics:o,filters:l,titleOverrides:i})}catch(e){console.error("Error loading report definition:",e),o.error("Error loading report definition: "+(e.message||"Unknown error"))}},N=e=>{try{console.log("Loading cloned report:",e),d(e.provider),f(e.title||"");const t=[],n={};if(e.definition?.doc?.query?.order_by)for(const t of e.definition.doc.query.order_by)!0===t.desc?n[t.name]="desc":n[t.name]="asc";if(e.definition?.doc?.query?.dimensions)for(const r of e.definition.doc.query.dimensions){const o=L(r,a,e.provider);o&&(o.sortOrder=n[r]||null,t.push(o))}const r=[];if(e.definition?.doc?.query?.metrics)for(const t of e.definition.doc.query.metrics){const n=A(t,a,e.provider);n&&r.push(n)}const o={dimensions:{},metrics:{},filters:{}};e.definition?.doc?.query?.titles&&(e.definition.doc.query.titles.dimensions&&(o.dimensions=e.definition.doc.query.titles.dimensions),e.definition.doc.query.titles.metrics&&(o.metrics=e.definition.doc.query.titles.metrics),e.definition.doc.query.titles.filters&&(o.filters=e.definition.doc.query.titles.filters));const i={};if(e.definition?.doc?.query?.filter){const t=e.definition.doc.query.filter;(t.and||t.or||[]).forEach(t=>{const[n,r]=Object.entries(t)[0],o=L(n,a,e.provider);o&&(i[n]={...o,values:r})})}m({dimensions:t,metrics:r,filters:i}),b(o),console.log("Loaded cloned report:",{dimensions:t,metrics:r,filters:i,titleOverrides:o})}catch(e){console.error("Error loading cloned report:",e),o.error("Error loading cloned report: "+(e.message||"Unknown error"))}},z=(e=0,t=50)=>{const n=h.dimensions.map(e=>{const t={name:e.fullPath};return"desc"===e.sortOrder&&(t.desc=!0),t}),r=[];h.filters&&Object.keys(h.filters).length>0&&Object.entries(h.filters).forEach(([e,t])=>{t.values&&(Array.isArray(t.values)?t.values.length>0&&r.push({[e]:t.values}):"object"==typeof t.values&&r.push({[e]:t.values}))});const o=r.length>0?{and:r}:null,a={};Object.keys(g.dimensions).length>0&&(a.dimensions=g.dimensions),Object.keys(g.metrics).length>0&&(a.metrics=g.metrics),Object.keys(g.filters).length>0&&(a.filters=g.filters);const l={dimensions:h.dimensions.map(e=>e.fullPath),metrics:h.metrics.map(e=>e.fullPath),order_by:n,limit:t,offset:e*t};Object.keys(a).length>0&&(l.titles=a),o&&(l.filter=o);return{provider:u,doc:{query:l},parameters:i?.parameters||{base_currency:"EUR"}}},j=async(e,t)=>{try{x(!0);const n=z(e,t);console.log("Running report with:",n);const r=await jc.runAdHocReport({report:n});console.log("Report result:",r),y(r),r&&r.length<t?C(e*t+r.length):C((e+2)*t)}catch(e){console.error("Error running report:",e),o.error("Error running report: "+(e.message||"Unknown error")),y(null)}finally{x(!1)}},_=async()=>{E(0),await j(0,R),T(3)},B=u,H=u&&p.trim()&&(h.dimensions.length>0||h.metrics.length>0);return c.createElement(dx,{sx:{p:3,fontFamily:"system-ui"}},c.createElement(dx,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,backgroundColor:"transparent",fontFamily:"system-ui"}},c.createElement("h1",null,e?"Edit Report":"Create New Report"),r&&c.createElement(Sx,{variant:"outlined",startIcon:c.createElement(QH,null),onClick:r},"Back to List")),c.createElement(dx,{sx:{mt:2,p:3,backgroundColor:"white",borderRadius:"12px",border:"1px solid #e0e0e0",fontFamily:"system-ui",display:"flex",flexDirection:"column",gap:3,boxShadow:"0px 2px 4px rgba(0,0,0,0.02)"}},c.createElement(dx,{sx:{display:"flex",gap:4,alignItems:"flex-start",flexWrap:"wrap"}},c.createElement("div",null,c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1,color:"rgb(37, 37, 37)"}},"Report Title"),c.createElement(wR,{value:p,onChange:e=>f(e.target.value),placeholder:"Enter report title",sx:{width:"400px",fontFamily:"system-ui","& .MuiOutlinedInput-root":{backgroundColor:"white",borderRadius:"8px"}},size:"small"})),c.createElement("div",null,c.createElement(vv,{sx:{fontSize:"14px",fontWeight:600,mb:1,color:"rgb(37, 37, 37)"}},"Select Root Provider"),c.createElement(NR,{items:a?Object.keys(a).filter(e=>!0===a[e].base).map(e=>({key:e,value:a[e].name||e})):[],value:u,onChange:e=>{d(e.target.value),m({dimensions:[],metrics:[],filters:{}}),b({dimensions:{},metrics:{},filters:{}}),console.log("Selected root provider:",e.target.value)},sx:{width:"300px",fontFamily:"system-ui"},disabled:!!e}))),c.createElement(dx,{sx:{display:"flex",gap:2,alignItems:"center"}},c.createElement(Sx,{variant:"contained",onClick:_,disabled:!B,startIcon:c.createElement(qH,null),sx:{height:"40px",fontFamily:"system-ui",borderRadius:"8px",boxShadow:"none",textTransform:"none",backgroundColor:"rgb(70, 134, 128)",fontWeight:500,padding:"0 20px","&:hover":{backgroundColor:"rgb(46, 102, 98)",boxShadow:"none"}}},"Run Report"),c.createElement(Sx,{variant:"outlined",startIcon:c.createElement(JH,null),onClick:async()=>{try{x(!0);const e=z();console.log("Downloading report with:",e);const t=(new Date).toISOString().split("T")[0],n=`${(p||"report").replace(/[^a-z0-9]/gi,"_").toLowerCase()}_${t}.csv`;await jc.downloadAdHocReport({report:e,filename:n}),o.success("Report downloaded successfully!")}catch(e){console.error("Error downloading report:",e),o.error("Error downloading report: "+(e.message||"Unknown error"))}finally{x(!1)}},disabled:!B||w,sx:{height:"40px",fontFamily:"system-ui",borderRadius:"8px",boxShadow:"none",textTransform:"none",color:"#9c27b0",borderColor:"#e1bee7",fontWeight:500,padding:"0 20px","&:hover":{borderColor:"#9c27b0",backgroundColor:"rgba(156, 39, 176, 0.04)"}}},"Download CSV"),c.createElement(Sx,{variant:"outlined",startIcon:c.createElement(ZH,null),onClick:async()=>{if(u)if(p.trim())if(0!==h.dimensions.length||0!==h.metrics.length)try{O(!0);const t=h.dimensions.map(e=>{const t={name:e.fullPath};return"desc"===e.sortOrder&&(t.desc=!0),t}),n={};Object.keys(g.dimensions).length>0&&(n.dimensions=g.dimensions),Object.keys(g.metrics).length>0&&(n.metrics=g.metrics),Object.keys(g.filters).length>0&&(n.filters=g.filters);const i={dimensions:h.dimensions.map(e=>e.fullPath),metrics:h.metrics.map(e=>e.fullPath),order_by:t};if(Object.keys(n).length>0&&(i.titles=n),Object.keys(h.filters).length>0){const e=[];Object.entries(h.filters).forEach(([t,n])=>{n.values&&(Array.isArray(n.values)?n.values.length>0&&e.push({[t]:n.values}):"object"==typeof n.values&&e.push({[t]:n.values}))}),e.length>0&&(i.filter={and:e})}const a={query:i},l={provider:u,title:p.trim(),definition:{provider:u,doc:a,parameters:{base_currency:"EUR"}}};console.log("Saving report definition:",l),e?(await jc.updateReportDefinition({id:e,reportDefinition:l}),o.success("Report definition updated successfully!")):(await jc.createReportDefinition({reportDefinition:l}),o.success("Report definition created successfully!")),r&&r()}catch(e){console.error("Error saving report definition:",e),o.error("Error saving report definition: "+(e.message||"Unknown error"))}finally{O(!1)}else o.warning("Please add at least one dimension or metric");else o.warning("Please enter a report title");else o.warning("Please select a provider first")},disabled:!H||I,sx:{height:"40px",fontFamily:"system-ui",borderRadius:"8px",boxShadow:"none",textTransform:"none",color:"#2e7d32",borderColor:"#a5d6a7",fontWeight:500,padding:"0 20px","&:hover":{borderColor:"#2e7d32",backgroundColor:"rgba(46, 125, 50, 0.04)"}}},I?"Saving...":e?"Update Report":"Save Report"))),u&&c.createElement(dx,{sx:{mt:2,fontFamily:"system-ui",backgroundColor:"white",px:3,py:2,borderRadius:"8px"}},c.createElement(dx,{sx:{borderBottom:1,borderColor:"rgba(70, 134, 127, 0.27)"}},c.createElement(gR,{value:P,onChange:(e,t)=>{T(t)},"aria-label":"report builder tabs",sx:{"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"rgb(70, 134, 128)"},"& .MuiTabs-indicatorSpan":{backgroundColor:"rgb(70, 134, 128)"}}},c.createElement(EE,{label:c.createElement(sx,{badgeContent:h.dimensions.length,sx:{"& .MuiBadge-badge":{backgroundColor:"rgb(70, 134, 128)",color:"#fff"}}},c.createElement("span",{style:{marginRight:h.dimensions.length>0?"12px":"0"}},"Dimensions")),id:"report-tab-0","aria-controls":"report-tabpanel-0",sx:{height:"41px",fontFamily:"system-ui",borderRadius:"0.5rem",boxShadow:"none",textTransform:"none",color:"rgb(37, 37, 37)","&.Mui-selected":{color:"rgb(70, 134, 128)"}}}),c.createElement(EE,{label:c.createElement(sx,{badgeContent:h.metrics.length,sx:{"& .MuiBadge-badge":{backgroundColor:"rgb(70, 134, 128)",color:"#fff"}}},c.createElement("span",{style:{marginRight:h.metrics.length>0?"12px":"0"}},"Metrics")),id:"report-tab-1","aria-controls":"report-tabpanel-1",sx:{height:"41px",fontFamily:"system-ui",borderRadius:"0.5rem",boxShadow:"none",textTransform:"none",color:"rgb(37, 37, 37)","&.Mui-selected":{color:"rgb(70, 134, 128)"}}}),c.createElement(EE,{label:c.createElement(sx,{badgeContent:Object.keys(h.filters).length,sx:{"& .MuiBadge-badge":{backgroundColor:"rgb(70, 134, 128)",color:"#fff"}}},c.createElement("span",{style:{marginRight:Object.keys(h.filters).length>0?"12px":"0"}},"Filters")),id:"report-tab-2","aria-controls":"report-tabpanel-2",sx:{height:"41px",fontFamily:"system-ui",borderRadius:"0.5rem",boxShadow:"none",textTransform:"none",color:"rgb(37, 37, 37)","&.Mui-selected":{color:"rgb(70, 134, 128)"}}}),c.createElement(EE,{label:v?"Results":"Results (Run report first)",id:"report-tab-3","aria-controls":"report-tabpanel-3",disabled:!v,sx:{height:"41px",fontFamily:"system-ui",borderRadius:"0.5rem",boxShadow:"none",textTransform:"none",color:"rgb(37, 37, 37)","&.Mui-selected":{color:"rgb(70, 134, 128)"}}}))),c.createElement(UQ,{value:P,index:0},c.createElement(jU,{providersData:a,rootProvider:u,savedDimensions:h.dimensions,onSaveDimension:e=>{m(t=>{const n={...t,dimensions:[...t.dimensions,e]};return console.log("Dimension saved:",e),console.log("Complete report:",n),n})},onRemoveDimension:e=>{m(t=>({...t,dimensions:t.dimensions.filter((t,n)=>n!==e)}))},onReorderDimensions:e=>{m(t=>({...t,dimensions:e}))},titleOverrides:g.dimensions,onUpdateTitle:(e,t)=>{b(n=>({...n,dimensions:{...n.dimensions,[e]:t}}))},onResetTitle:e=>{b(t=>{const n={...t.dimensions};return delete n[e],{...t,dimensions:n}})},existingMetrics:h.metrics,existingFilters:h.filters})),c.createElement(UQ,{value:P,index:1},c.createElement(BU,{providersData:a,rootProvider:u,savedMetrics:h.metrics,onSaveMetric:e=>{m(t=>{const n={...t,metrics:[...t.metrics,e]};return console.log("Metric saved:",e),console.log("Complete report:",n),n})},onRemoveMetric:e=>{m(t=>({...t,metrics:t.metrics.filter((t,n)=>n!==e)}))},onReorderMetrics:e=>{m(t=>({...t,metrics:e}))},titleOverrides:g.metrics,onUpdateTitle:(e,t)=>{b(n=>({...n,metrics:{...n.metrics,[e]:t}}))},onResetTitle:e=>{b(t=>{const n={...t.metrics};return delete n[e],{...t,metrics:n}})},existingDimensions:h.dimensions,existingFilters:h.filters})),c.createElement(UQ,{value:P,index:2},c.createElement(VQ,{providersData:a,rootProvider:u,savedFilters:h.filters,existingDimensions:h.dimensions,existingMetrics:h.metrics,onSaveFilter:(e,t)=>{m(n=>{const r={...n,filters:{...n.filters,[e]:t}};return console.log("Filter saved:",{fullPath:e,filterData:t}),console.log("Complete report:",r),r})},onRemoveFilter:e=>{m(t=>{const n={...t.filters};return delete n[e],{...t,filters:n}})},titleOverrides:g.filters,onUpdateTitle:(e,t)=>{b(n=>({...n,filters:{...n.filters,[e]:t}}))},onResetTitle:e=>{b(t=>{const n={...t.filters};return delete n[e],{...t,filters:n}})}})),c.createElement(UQ,{value:P,index:3},v&&c.createElement(WQ,{reportData:v,dimensions:h.dimensions,metrics:h.metrics,loading:w,onPageChange:async(e,t)=>{E(e),t!==R&&M(t),await j(e,t)},totalRows:S,titleOverrides:g}))))},KQ=()=>{const[e,t]=s.useState("list"),[n,r]=s.useState(null),[o,i]=s.useState(null),[a,l]=s.useState(!1),[u,d]=s.useState(0),p=e=>{r(e),i(null),l(!1),t("builder")},f=()=>{r(null),i(null),l(!1),t("builder")},h=e=>{r(e),i(null),l(!0),t("builder")},m=e=>{r(null),i(e),l(!1),t("builder")};return"list"===e?c.createElement(XH,{onSelectReport:p,onAddNew:f,onCloneReport:m,onRunReport:h,refreshTrigger:u}):c.createElement(GQ,{reportDefinitionId:n,cloneData:o,autoRun:a,onBackToList:()=>{r(null),i(null),l(!1),t("list"),d(e=>e+1)}})};var qQ={Chart:GR,Dashboard:function({id:e="sample_dashboard",api:t,params:n}){const r=YR(),o=t||r?.api||{},i=n||r?.parameters||{},[a,l]=c.useState(),[u]=c.useState(),[d,p]=c.useState([]),f=c.useRef({}),h=WR();UR(h),console.log({rows:d},{dashboard:a},{schema:u},{params:i}),s.useEffect(()=>{jc.setBaseUrl(o.base_url),jc.setToken(o.token)},[o]);const m=async e=>{const t=e?.doc?.rows||[],n=[];for(let e=0;e<t.length;e++){const r=t[e];r.columns?.forEach(e=>{if(e.override?.filter?.length){const t={};e.override.filter.forEach(e=>{e.hasOwnProperty("value")&&(t[e.field]=[e.value])}),e.filter=t}}),n.push(r)}p(n)};return c.useEffect(()=>{e&&(async()=>{jc.setBaseUrl(o.base_url),jc.setToken(o.token),await jc.loadDashboardMeta({dashboardId:e});const t=await jc.getDashboard({id:e});f.current[t?.id]=t,l(t),await m(t)})().catch(e=>console.error(e.message))},[e]),c.createElement(mi,{maxWidth:!1,disableGutters:!0},c.createElement(qi,{container:!0,spacing:3},d?.map((e,t)=>{const n=(e=>0===e?12:12/e)(e.columns.length);return c.createElement(c.Fragment,{key:t},1===t?c.createElement(qi,{item:!0,xs:12},c.createElement(qi,{container:!0,spacing:3},e.columns.map((e,t)=>c.createElement(qi,{key:t,item:!0,xs:12,md:n},c.createElement(GR,{api:o,cache:f.current,id:e.id,dashboard:a,schema:u,title:e.title,filter:e.filter,params:i}))))):e.columns.map((e,t)=>c.createElement(qi,{key:t,item:!0,xs:12,md:n},c.createElement(GR,{api:o,cache:f.current,id:e.id,dashboard:a,schema:u,title:e.title,filter:e.filter,params:i}))))})))},ReportApp:({params:e,api:t})=>(jc._initialized||(jc.setBaseUrl(t.base_url),jc.setToken(t.token),jc._initialized=!0),s.useEffect(()=>{jc.setBaseUrl(t.base_url),jc.setToken(t.token)},[t]),c.createElement(QR,null,c.createElement(qR,{defaultParameters:e,defaultApi:t},c.createElement(zg,{theme:kg({palette:{primary:{main:"rgb(70, 134, 128)"}},components:{MuiButton:{styleOverrides:{root:{borderRadius:8,textTransform:"none",boxShadow:"none","&:hover":{boxShadow:"none"}}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"0.875rem",backgroundColor:"rgba(97, 97, 97, 0.95)",maxWidth:500},arrow:{color:"rgba(97, 97, 97, 0.95)"}},defaultProps:{arrow:!0,enterDelay:300,leaveDelay:200}},MuiPopper:{defaultProps:{style:{zIndex:1500}}}}})},c.createElement(KQ,null)))))};return qQ}();
|