@codeplex-sac/charts 0.0.11 → 0.0.12

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.
Files changed (4) hide show
  1. package/index.cjs +59 -0
  2. package/index.js +19560 -42
  3. package/package.json +6 -5
  4. package/index.mjs +0 -19577
package/index.cjs ADDED
@@ -0,0 +1,59 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),nt=require("@mui/material"),ae=require("react"),Xu=require("react-dom");function Ku(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=Ku(ae),fh=Ku(Xu);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S.apply(null,arguments)}function dh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ii={exports:{}},oi={exports:{}},fe={};var Rc;function ph(){if(Rc)return fe;Rc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var k=w.$$typeof;switch(k){case t:switch(w=w.type,w){case u:case l:case i:case s:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case c:case f:case g:case m:case a:return w;default:return k}}case n:return k}}}function O(w){return T(w)===l}return fe.AsyncMode=u,fe.ConcurrentMode=l,fe.ContextConsumer=c,fe.ContextProvider=a,fe.Element=t,fe.ForwardRef=f,fe.Fragment=i,fe.Lazy=g,fe.Memo=m,fe.Portal=n,fe.Profiler=s,fe.StrictMode=o,fe.Suspense=d,fe.isAsyncMode=function(w){return O(w)||T(w)===u},fe.isConcurrentMode=O,fe.isContextConsumer=function(w){return T(w)===c},fe.isContextProvider=function(w){return T(w)===a},fe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},fe.isForwardRef=function(w){return T(w)===f},fe.isFragment=function(w){return T(w)===i},fe.isLazy=function(w){return T(w)===g},fe.isMemo=function(w){return T(w)===m},fe.isPortal=function(w){return T(w)===n},fe.isProfiler=function(w){return T(w)===s},fe.isStrictMode=function(w){return T(w)===o},fe.isSuspense=function(w){return T(w)===d},fe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===i||w===l||w===s||w===o||w===d||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===m||w.$$typeof===a||w.$$typeof===c||w.$$typeof===f||w.$$typeof===y||w.$$typeof===b||w.$$typeof===v||w.$$typeof===h)},fe.typeOf=T,fe}var de={};var _c;function hh(){return _c||(_c=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function T(_){return typeof _=="string"||typeof _=="function"||_===i||_===l||_===s||_===o||_===d||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===c||_.$$typeof===f||_.$$typeof===y||_.$$typeof===b||_.$$typeof===v||_.$$typeof===h)}function O(_){if(typeof _=="object"&&_!==null){var oe=_.$$typeof;switch(oe){case t:var se=_.type;switch(se){case u:case l:case i:case s:case o:case d:return se;default:var xe=se&&se.$$typeof;switch(xe){case c:case f:case g:case m:case a:return xe;default:return oe}}case n:return oe}}}var w=u,k=l,R=c,N=a,$=t,D=f,E=i,x=g,P=m,C=n,I=s,F=o,z=d,B=!1;function ee(_){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(_)||O(_)===u}function j(_){return O(_)===l}function U(_){return O(_)===c}function W(_){return O(_)===a}function X(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function G(_){return O(_)===f}function Y(_){return O(_)===i}function Z(_){return O(_)===g}function Q(_){return O(_)===m}function J(_){return O(_)===n}function q(_){return O(_)===s}function H(_){return O(_)===o}function K(_){return O(_)===d}de.AsyncMode=w,de.ConcurrentMode=k,de.ContextConsumer=R,de.ContextProvider=N,de.Element=$,de.ForwardRef=D,de.Fragment=E,de.Lazy=x,de.Memo=P,de.Portal=C,de.Profiler=I,de.StrictMode=F,de.Suspense=z,de.isAsyncMode=ee,de.isConcurrentMode=j,de.isContextConsumer=U,de.isContextProvider=W,de.isElement=X,de.isForwardRef=G,de.isFragment=Y,de.isLazy=Z,de.isMemo=Q,de.isPortal=J,de.isProfiler=q,de.isStrictMode=H,de.isSuspense=K,de.isValidElementType=T,de.typeOf=O})()),de}var Ec;function Qu(){return Ec||(Ec=1,process.env.NODE_ENV==="production"?oi.exports=ph():oi.exports=hh()),oi.exports}var Xo,Mc;function mh(){if(Mc)return Xo;Mc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xo=o()?Object.assign:function(s,a){for(var c,u=i(s),l,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var d in c)t.call(c,d)&&(u[d]=c[d]);if(e){l=e(c);for(var p=0;p<l.length;p++)n.call(c,l[p])&&(u[l[p]]=c[l[p]])}}return u},Xo}var Ko,Ic;function ca(){if(Ic)return Ko;Ic=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ko=e,Ko}var Qo,$c;function Zu(){return $c||($c=1,Qo=Function.call.bind(Object.prototype.hasOwnProperty)),Qo}var Zo,jc;function gh(){if(jc)return Zo;jc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ca(),n={},i=Zu();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,c,u,l){if(process.env.NODE_ENV!=="production"){for(var f in s)if(i(s,f)){var d;try{if(typeof s[f]!="function"){var p=Error((u||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=s[f](a,f,u,c,null,t)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=l?l():"";e("Failed "+c+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zo=o,Zo}var Jo,Nc;function yh(){if(Nc)return Jo;Nc=1;var e=Qu(),t=mh(),n=ca(),i=Zu(),o=gh(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Jo=function(c,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(j){var U=j&&(l&&j[l]||j[f]);if(typeof U=="function")return U}var p="<<anonymous>>",m={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:T,element:O(),elementType:w(),instanceOf:k,node:D(),objectOf:N,oneOf:R,oneOfType:$,shape:x,exact:P};function g(j,U){return j===U?j!==0||1/j===1/U:j!==j&&U!==U}function h(j,U){this.message=j,this.data=U&&typeof U=="object"?U:{},this.stack=""}h.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var U={},W=0;function X(Y,Z,Q,J,q,H,K){if(J=J||p,H=H||Q,K!==n){if(u){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=J+":"+Q;!U[oe]&&W<3&&(s("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[oe]=!0,W++)}}return Z[Q]==null?Y?Z[Q]===null?new h("The "+q+" `"+H+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new h("The "+q+" `"+H+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:j(Z,Q,J,q,H)}var G=X.bind(null,!1);return G.isRequired=X.bind(null,!0),G}function b(j){function U(W,X,G,Y,Z,Q){var J=W[X],q=F(J);if(q!==j){var H=z(J);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+H+"` supplied to `"+G+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(U)}function v(){return y(a)}function T(j){function U(W,X,G,Y,Z){if(typeof j!="function")return new h("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Q=W[X];if(!Array.isArray(Q)){var J=F(Q);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an array."))}for(var q=0;q<Q.length;q++){var H=j(Q,q,G,Y,Z+"["+q+"]",n);if(H instanceof Error)return H}return null}return y(U)}function O(){function j(U,W,X,G,Y){var Z=U[W];if(!c(Z)){var Q=F(Z);return new h("Invalid "+G+" `"+Y+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return y(j)}function w(){function j(U,W,X,G,Y){var Z=U[W];if(!e.isValidElementType(Z)){var Q=F(Z);return new h("Invalid "+G+" `"+Y+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return y(j)}function k(j){function U(W,X,G,Y,Z){if(!(W[X]instanceof j)){var Q=j.name||p,J=ee(W[X]);return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(U)}function R(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function U(W,X,G,Y,Z){for(var Q=W[X],J=0;J<j.length;J++)if(g(Q,j[J]))return null;var q=JSON.stringify(j,function(K,_){var oe=z(_);return oe==="symbol"?String(_):_});return new h("Invalid "+Y+" `"+Z+"` of value `"+String(Q)+"` "+("supplied to `"+G+"`, expected one of "+q+"."))}return y(U)}function N(j){function U(W,X,G,Y,Z){if(typeof j!="function")return new h("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an object."));for(var q in Q)if(i(Q,q)){var H=j(Q,q,G,Y,Z+"."+q,n);if(H instanceof Error)return H}return null}return y(U)}function $(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var U=0;U<j.length;U++){var W=j[U];if(typeof W!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+U+"."),a}function X(G,Y,Z,Q,J){for(var q=[],H=0;H<j.length;H++){var K=j[H],_=K(G,Y,Z,Q,J,n);if(_==null)return null;_.data&&i(_.data,"expectedType")&&q.push(_.data.expectedType)}var oe=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new h("Invalid "+Q+" `"+J+"` supplied to "+("`"+Z+"`"+oe+"."))}return y(X)}function D(){function j(U,W,X,G,Y){return C(U[W])?null:new h("Invalid "+G+" `"+Y+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return y(j)}function E(j,U,W,X,G){return new h((j||"React class")+": "+U+" type `"+W+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function x(j){function U(W,X,G,Y,Z){var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));for(var q in j){var H=j[q];if(typeof H!="function")return E(G,Y,Z,q,z(H));var K=H(Q,q,G,Y,Z+"."+q,n);if(K)return K}return null}return y(U)}function P(j){function U(W,X,G,Y,Z){var Q=W[X],J=F(Q);if(J!=="object")return new h("Invalid "+Y+" `"+Z+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));var q=t({},W[X],j);for(var H in q){var K=j[H];if(i(j,H)&&typeof K!="function")return E(G,Y,Z,H,z(K));if(!K)return new h("Invalid "+Y+" `"+Z+"` key `"+H+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(W[X],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var _=K(Q,H,G,Y,Z+"."+H,n);if(_)return _}return null}return y(U)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||c(j))return!0;var U=d(j);if(U){var W=U.call(j),X;if(U!==j.entries){for(;!(X=W.next()).done;)if(!C(X.value))return!1}else for(;!(X=W.next()).done;){var G=X.value;if(G&&!C(G[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,U){return j==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function F(j){var U=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(U,j)?"symbol":U}function z(j){if(typeof j>"u"||j===null)return""+j;var U=F(j);if(U==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return U}function B(j){var U=z(j);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function ee(j){return!j.constructor||!j.constructor.name?p:j.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Jo}var es,Dc;function bh(){if(Dc)return es;Dc=1;var e=ca();function t(){}function n(){}return n.resetWarningCache=t,es=function(){function i(a,c,u,l,f,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}i.isRequired=i;function o(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},es}var Lc;function xh(){if(Lc)return ii.exports;if(Lc=1,process.env.NODE_ENV!=="production"){var e=Qu(),t=!0;ii.exports=yh()(e.isElement,t)}else ii.exports=bh()();return ii.exports}var vh=xh();const r=dh(vh);function Kt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}const la="$$material";function Oh(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function wh(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Th=(function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(wh(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Oh(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e})(),Ee="-ms-",Ii="-moz-",le="-webkit-",Ju="comm",ua="rule",fa="decl",kh="@import",ef="@keyframes",Ch="@layer",Ah=Math.abs,no=String.fromCharCode,Sh=Object.assign;function Ph(e,t){return Se(e,0)^45?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}function tf(e){return e.trim()}function Rh(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,n){return e.replace(t,n)}function Ss(e,t){return e.indexOf(t)}function Se(e,t){return e.charCodeAt(t)|0}function wr(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function da(e){return e.length}function si(e,t){return t.push(e),e}function _h(e,t){return e.map(t).join("")}var ro=1,$n=1,nf=0,Be=0,ke=0,Kn="";function io(e,t,n,i,o,s,a){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:ro,column:$n,length:a,return:""}}function rr(e,t){return Sh(io("",null,null,"",null,null,0),e,{length:-e.length},t)}function Eh(){return ke}function Mh(){return ke=Be>0?Se(Kn,--Be):0,$n--,ke===10&&($n=1,ro--),ke}function Ge(){return ke=Be<nf?Se(Kn,Be++):0,$n++,ke===10&&($n=1,ro++),ke}function Ot(){return Se(Kn,Be)}function wi(){return Be}function Hr(e,t){return wr(Kn,e,t)}function Tr(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 rf(e){return ro=$n=1,nf=bt(Kn=e),Be=0,[]}function of(e){return Kn="",e}function Ti(e){return tf(Hr(Be-1,Ps(e===91?e+2:e===40?e+1:e)))}function Ih(e){for(;(ke=Ot())&&ke<33;)Ge();return Tr(e)>2||Tr(ke)>3?"":" "}function $h(e,t){for(;--t&&Ge()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return Hr(e,wi()+(t<6&&Ot()==32&&Ge()==32))}function Ps(e){for(;Ge();)switch(ke){case e:return Be;case 34:case 39:e!==34&&e!==39&&Ps(ke);break;case 40:e===41&&Ps(e);break;case 92:Ge();break}return Be}function jh(e,t){for(;Ge()&&e+ke!==57;)if(e+ke===84&&Ot()===47)break;return"/*"+Hr(t,Be-1)+"*"+no(e===47?e:Ge())}function Nh(e){for(;!Tr(Ot());)Ge();return Hr(e,Be)}function Dh(e){return of(ki("",null,null,null,[""],e=rf(e),0,[0],e))}function ki(e,t,n,i,o,s,a,c,u){for(var l=0,f=0,d=a,p=0,m=0,g=0,h=1,y=1,b=1,v=0,T="",O=o,w=s,k=i,R=T;y;)switch(g=v,v=Ge()){case 40:if(g!=108&&Se(R,d-1)==58){Ss(R+=ue(Ti(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:R+=Ti(v);break;case 9:case 10:case 13:case 32:R+=Ih(g);break;case 92:R+=$h(wi()-1,7);continue;case 47:switch(Ot()){case 42:case 47:si(Lh(jh(Ge(),wi()),t,n),u);break;default:R+="/"}break;case 123*h:c[l++]=bt(R)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+f:b==-1&&(R=ue(R,/\f/g,"")),m>0&&bt(R)-d&&si(m>32?qc(R+";",i,n,d-1):qc(ue(R," ","")+";",i,n,d-2),u);break;case 59:R+=";";default:if(si(k=Fc(R,t,n,l,f,o,c,T,O=[],w=[],d),s),v===123)if(f===0)ki(R,t,k,k,O,s,d,c,w);else switch(p===99&&Se(R,3)===110?100:p){case 100:case 108:case 109:case 115:ki(e,k,k,i&&si(Fc(e,k,k,0,0,o,c,T,o,O=[],d),w),o,w,d,c,i?O:w);break;default:ki(R,k,k,k,[""],w,0,c,w)}}l=f=m=0,h=b=1,T=R="",d=a;break;case 58:d=1+bt(R),m=g;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Mh()==125)continue}switch(R+=no(v),v*h){case 38:b=f>0?1:(R+="\f",-1);break;case 44:c[l++]=(bt(R)-1)*b,b=1;break;case 64:Ot()===45&&(R+=Ti(Ge())),p=Ot(),f=d=bt(T=R+=Nh(wi())),v++;break;case 45:g===45&&bt(R)==2&&(h=0)}}return s}function Fc(e,t,n,i,o,s,a,c,u,l,f){for(var d=o-1,p=o===0?s:[""],m=da(p),g=0,h=0,y=0;g<i;++g)for(var b=0,v=wr(e,d+1,d=Ah(h=a[g])),T=e;b<m;++b)(T=tf(h>0?p[b]+" "+v:ue(v,/&\f/g,p[b])))&&(u[y++]=T);return io(e,t,n,o===0?ua:c,u,l,f)}function Lh(e,t,n){return io(e,t,n,Ju,no(Eh()),wr(e,2,-2),0)}function qc(e,t,n,i){return io(e,t,n,fa,wr(e,0,i),wr(e,i+1,-1),i)}function Rn(e,t){for(var n="",i=da(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function Fh(e,t,n,i){switch(e.type){case Ch:if(e.children.length)break;case kh:case fa:return e.return=e.return||e.value;case Ju:return"";case ef:return e.return=e.value+"{"+Rn(e.children,i)+"}";case ua:e.value=e.props.join(",")}return bt(n=Rn(e.children,i))?e.return=e.value+"{"+n+"}":""}function qh(e){var t=da(e);return function(n,i,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,i,o,s)||"";return a}}function Uh(e){return function(t){t.root||(t=t.return)&&e(t)}}function sf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zh=function(t,n,i){for(var o=0,s=0;o=s,s=Ot(),o===38&&s===12&&(n[i]=1),!Tr(s);)Ge();return Hr(t,Be)},Vh=function(t,n){var i=-1,o=44;do switch(Tr(o)){case 0:o===38&&Ot()===12&&(n[i]=1),t[i]+=zh(Be-1,n,i);break;case 2:t[i]+=Ti(o);break;case 4:if(o===44){t[++i]=Ot()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=no(o)}while(o=Ge());return t},Hh=function(t,n){return of(Vh(rf(t),n))},Uc=new WeakMap,Bh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Uc.get(i))&&!o){Uc.set(t,!0);for(var s=[],a=Hh(n,s),c=i.props,u=0,l=0;u<a.length;u++)for(var f=0;f<c.length;f++,l++)t.props[l]=s[u]?a[u].replace(/&\f/g,c[f]):c[f]+" "+a[u]}}},Wh=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function af(e,t){switch(Ph(e,t)){case 5103:return le+"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 le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+Ii+e+Ee+e+e;case 6828:case 4268:return le+e+Ee+e+e;case 6165:return le+e+Ee+"flex-"+e+e;case 5187:return le+e+ue(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+Ee+"flex-$1$2")+e;case 5443:return le+e+Ee+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return le+e+Ee+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+Ee+ue(e,"shrink","negative")+e;case 5292:return le+e+Ee+ue(e,"basis","preferred-size")+e;case 6060:return le+"box-"+ue(e,"-grow","")+le+e+Ee+ue(e,"grow","positive")+e;case 4554:return le+ue(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+Ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,le+"$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(bt(e)-1-t>6)switch(Se(e,t+1)){case 109:if(Se(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Ii+(Se(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ss(e,"stretch")?af(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Se(e,t+1)!==115)break;case 6444:switch(Se(e,bt(e)-3-(~Ss(e,"!important")&&10))){case 107:return ue(e,":",":"+le)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(Se(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+Ee+"$2box$3")+e}break;case 5936:switch(Se(e,t+11)){case 114:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+Ee+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+Ee+e+e}return e}var Yh=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case fa:t.return=af(t.value,t.length);break;case ef:return Rn([rr(t,{value:ue(t.value,"@","@"+le)})],o);case ua:if(t.length)return _h(t.props,function(s){switch(Rh(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rn([rr(t,{props:[ue(s,/:(read-\w+)/,":"+Ii+"$1")]})],o);case"::placeholder":return Rn([rr(t,{props:[ue(s,/:(plac\w+)/,":"+le+"input-$1")]}),rr(t,{props:[ue(s,/:(plac\w+)/,":"+Ii+"$1")]}),rr(t,{props:[ue(s,/:(plac\w+)/,Ee+"input-$1")]})],o)}return""})}},Gh=[Yh],Xh=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||Gh,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(h)});var u,l=[Bh,Wh];{var f,d=[Fh,Uh(function(h){f.insert(h)})],p=qh(l.concat(o,d)),m=function(y){return Rn(Dh(y),p)};u=function(y,b,v,T){f=v,m(y?y+"{"+b.styles+"}":b.styles),T&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Th({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return g.sheet.hydrate(c),g},Kh=!0;function Qh(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var cf=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||Kh===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Zh=function(t,n,i){cf(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Jh(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var em={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},tm=/[A-Z]|^ms/g,nm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lf=function(t){return t.charCodeAt(1)===45},zc=function(t){return t!=null&&typeof t!="boolean"},ts=sf(function(e){return lf(e)?e:e.replace(tm,"-$&").toLowerCase()}),Vc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nm,function(i,o,s){return xt={name:o,styles:s,next:xt},o})}return em[t]!==1&&!lf(t)&&typeof n=="number"&&n!==0?n+"px":n};function kr(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return xt={name:o.name,styles:o.styles,next:xt},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)xt={name:a.name,styles:a.styles,next:xt},a=a.next;var c=s.styles+";";return c}return rm(e,t,n)}case"function":{if(e!==void 0){var u=xt,l=n(e);return xt=u,kr(e,t,l)}break}}var f=n;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function rm(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=kr(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":zc(c)&&(i+=ts(s)+":"+Vc(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)zc(a[u])&&(i+=ts(s)+":"+Vc(s,a[u])+";");else{var l=kr(e,t,a);switch(s){case"animation":case"animationName":{i+=ts(s)+":"+l+";";break}default:i+=s+"{"+l+"}"}}}return i}var Hc=/label:\s*([^\s;{]+)\s*(;|$)/g,xt;function uf(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";xt=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=kr(n,t,s);else{var a=s;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=kr(n,t,e[c]),i){var u=s;o+=u[c]}Hc.lastIndex=0;for(var l="",f;(f=Hc.exec(o))!==null;)l+="-"+f[1];var d=Jh(o)+l;return{name:d,styles:o,next:xt}}var im=function(t){return t()},om=M.useInsertionEffect?M.useInsertionEffect:!1,sm=om||im,ff=M.createContext(typeof HTMLElement<"u"?Xh({key:"css"}):null);ff.Provider;var am=function(t){return ae.forwardRef(function(n,i){var o=ae.useContext(ff);return t(n,o,i)})},df=M.createContext({}),cm=/^((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)-.*))$/,lm=sf(function(e){return cm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),um=lm,fm=function(t){return t!=="theme"},Bc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?um:fm},Wc=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},dm=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return cf(n,i,o),sm(function(){return Zh(n,i,o)}),null},pm=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var c=Wc(t,n,i),u=c||Bc(o),l=!u("as");return function(){var f=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{var p=f[0];d.push(p[0]);for(var m=f.length,g=1;g<m;g++)d.push(f[g],p[g])}var h=am(function(y,b,v){var T=l&&y.as||o,O="",w=[],k=y;if(y.theme==null){k={};for(var R in y)k[R]=y[R];k.theme=M.useContext(df)}typeof y.className=="string"?O=Qh(b.registered,w,y.className):y.className!=null&&(O=y.className+" ");var N=uf(d.concat(w),b.registered,k);O+=b.key+"-"+N.name,a!==void 0&&(O+=" "+a);var $=l&&c===void 0?Bc(T):u,D={};for(var E in y)l&&E==="as"||$(E)&&(D[E]=y[E]);return D.className=O,v&&(D.ref=v),M.createElement(M.Fragment,null,M.createElement(dm,{cache:b,serialized:N,isStringTag:typeof T=="string"}),M.createElement(T,D))});return h.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=d,h.__emotion_forwardProp=c,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(y,b){var v=e(y,S({},n,b,{shouldForwardProp:Wc(h,b,!0)}));return v.apply(void 0,d)},h}},hm=["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"],Rs=pm.bind(null);hm.forEach(function(e){Rs[e]=Rs(e)});function mm(e,t){const n=Rs(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const o=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
3
+ `)):i.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...i)}:n}function gm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Yc=[];function pn(e){return Yc[0]=e,uf(Yc)}var ai={exports:{}},me={};var Gc;function ym(){if(Gc)return me;Gc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case n:case o:case i:case u:case l:case p:return h;default:switch(h=h&&h.$$typeof,h){case a:case c:case d:case f:return h;case s:return h;default:return y}}case t:return y}}}return me.ContextConsumer=s,me.ContextProvider=a,me.Element=e,me.ForwardRef=c,me.Fragment=n,me.Lazy=d,me.Memo=f,me.Portal=t,me.Profiler=o,me.StrictMode=i,me.Suspense=u,me.SuspenseList=l,me.isContextConsumer=function(h){return g(h)===s},me.isContextProvider=function(h){return g(h)===a},me.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},me.isForwardRef=function(h){return g(h)===c},me.isFragment=function(h){return g(h)===n},me.isLazy=function(h){return g(h)===d},me.isMemo=function(h){return g(h)===f},me.isPortal=function(h){return g(h)===t},me.isProfiler=function(h){return g(h)===o},me.isStrictMode=function(h){return g(h)===i},me.isSuspense=function(h){return g(h)===u},me.isSuspenseList=function(h){return g(h)===l},me.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===i||h===u||h===l||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===a||h.$$typeof===s||h.$$typeof===c||h.$$typeof===m||h.getModuleId!==void 0)},me.typeOf=g,me}var ge={};var Xc;function bm(){return Xc||(Xc=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case i:case s:case o:case l:case f:case m:return h;default:switch(h=h&&h.$$typeof,h){case c:case u:case p:case d:return h;case a:return h;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ge.ContextConsumer=a,ge.ContextProvider=c,ge.Element=t,ge.ForwardRef=u,ge.Fragment=i,ge.Lazy=p,ge.Memo=d,ge.Portal=n,ge.Profiler=s,ge.StrictMode=o,ge.Suspense=l,ge.SuspenseList=f,ge.isContextConsumer=function(h){return e(h)===a},ge.isContextProvider=function(h){return e(h)===c},ge.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ge.isForwardRef=function(h){return e(h)===u},ge.isFragment=function(h){return e(h)===i},ge.isLazy=function(h){return e(h)===p},ge.isMemo=function(h){return e(h)===d},ge.isPortal=function(h){return e(h)===n},ge.isProfiler=function(h){return e(h)===s},ge.isStrictMode=function(h){return e(h)===o},ge.isSuspense=function(h){return e(h)===l},ge.isSuspenseList=function(h){return e(h)===f},ge.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===s||h===o||h===l||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===c||h.$$typeof===a||h.$$typeof===u||h.$$typeof===g||h.getModuleId!==void 0)},ge.typeOf=e})()),ge}var Kc;function xm(){return Kc||(Kc=1,process.env.NODE_ENV==="production"?ai.exports=ym():ai.exports=bm()),ai.exports}var $i=xm();function vt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pf(e){if(M.isValidElement(e)||$i.isValidElementType(e)||!vt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pf(e[n])}),t}function Xe(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return vt(e)&&vt(t)&&Object.keys(t).forEach(o=>{M.isValidElement(t[o])||$i.isValidElementType(t[o])?i[o]=t[o]:vt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&vt(e[o])?i[o]=Xe(e[o],t[o],n):n.clone?i[o]=vt(t[o])?pf(t[o]):t[o]:i[o]=t[o]}),i}const vm=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function Om(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,s=vm(t),a=Object.keys(s);function c(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-i/100}${n})`}function l(p,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-i/100}${n})`}function f(p){return a.indexOf(p)+1<a.length?l(p,a[a.indexOf(p)+1]):c(p)}function d(p){const m=a.indexOf(p);return m===0?c(a[1]):m===a.length-1?u(a[m]):l(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:c,down:u,between:l,only:f,not:d,unit:n,...o}}function Qc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function wm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Tm(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
4
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Kt(18,`(${t})`));return null}const[,i,o]=n,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function km(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...c)=>t(e.breakpoints.up(...c),a),s.down=(...c)=>t(e.breakpoints.down(...c),a),s.between=(...c)=>t(e.breakpoints.between(...c),a),s.only=(...c)=>t(e.breakpoints.only(...c),a),s.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},o=s=>(n(i,s),i);return n(o),{...e,containerQueries:o}}const Cm={borderRadius:4},tn=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function mr(e,t){return t?Xe(e,t,{clone:!1}):e}const oo={xs:0,sm:600,md:900,lg:1200,xl:1536},Zc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oo[e]}px)`},Am={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:oo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jt(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Zc;return t.reduce((a,c,u)=>(a[s.up(s.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const s=i.breakpoints||Zc;return Object.keys(t).reduce((a,c)=>{if(wm(s.keys,c)){const u=Tm(i.containerQueries?i:Am,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(s.values||oo).includes(c)){const u=s.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function Sm(e={}){return e.keys?.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{})||{}}function Jc(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}function jn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function so(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function ji(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=so(e,n)||i,t&&(o=t(o,i,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:o}=e,s=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,l=so(u,i)||{};return jt(a,c,d=>{let p=ji(l,o,d);return d===p&&typeof d=="string"&&(p=ji(l,o,`${t}${d==="default"?"":jn(d)}`,d)),n===!1?p:{[n]:p}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:tn}:{},s.filterProps=[t],s}function Pm(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Rm={m:"margin",p:"padding"},_m={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},el={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Em=Pm(e=>{if(e.length>2)if(el[e])e=el[e];else return[e];const[t,n]=e.split(""),i=Rm[t],o=_m[n]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),ao=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Mm=[...ao,...co];function Br(e,t,n,i){const o=so(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
5
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
6
+ `)));const c=o[a];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
7
+ `)),()=>{})}function pa(e){return Br(e,"spacing",8,"spacing")}function Wr(e,t){return typeof t=="string"||t==null?t:e(t)}function Im(e,t){return n=>e.reduce((i,o)=>(i[o]=Wr(t,n),i),{})}function $m(e,t,n,i){if(!t.includes(n))return null;const o=Em(n),s=Im(o,i),a=e[n];return jt(e,a,s)}function hf(e,t){const n=pa(e.theme);return Object.keys(e).map(i=>$m(e,t,i,n)).reduce(mr,{})}function ve(e){return hf(e,ao)}ve.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=tn,e),{}):{};ve.filterProps=ao;function Oe(e){return hf(e,co)}Oe.propTypes=process.env.NODE_ENV!=="production"?co.reduce((e,t)=>(e[t]=tn,e),{}):{};Oe.filterProps=co;process.env.NODE_ENV!=="production"&&Mm.reduce((e,t)=>(e[t]=tn,e),{});function mf(e=8,t=pa({spacing:e})){if(e.mui)return e;const n=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function lo(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),n=i=>Object.keys(i).reduce((o,s)=>t[s]?mr(o,t[s](i)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}function Je(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const jm=lt("border",Je),Nm=lt("borderTop",Je),Dm=lt("borderRight",Je),Lm=lt("borderBottom",Je),Fm=lt("borderLeft",Je),qm=lt("borderColor"),Um=lt("borderTopColor"),zm=lt("borderRightColor"),Vm=lt("borderBottomColor"),Hm=lt("borderLeftColor"),Bm=lt("outline",Je),Wm=lt("outlineColor"),uo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Br(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:Wr(t,i)});return jt(e,e.borderRadius,n)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tn}:{};uo.filterProps=["borderRadius"];lo(jm,Nm,Dm,Lm,Fm,qm,Um,zm,Vm,Hm,uo,Bm,Wm);const fo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Br(e.theme,"spacing",8,"gap"),n=i=>({gap:Wr(t,i)});return jt(e,e.gap,n)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{gap:tn}:{};fo.filterProps=["gap"];const po=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Br(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:Wr(t,i)});return jt(e,e.columnGap,n)}return null};po.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tn}:{};po.filterProps=["columnGap"];const ho=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Br(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:Wr(t,i)});return jt(e,e.rowGap,n)}return null};ho.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tn}:{};ho.filterProps=["rowGap"];const Ym=Te({prop:"gridColumn"}),Gm=Te({prop:"gridRow"}),Xm=Te({prop:"gridAutoFlow"}),Km=Te({prop:"gridAutoColumns"}),Qm=Te({prop:"gridAutoRows"}),Zm=Te({prop:"gridTemplateColumns"}),Jm=Te({prop:"gridTemplateRows"}),eg=Te({prop:"gridTemplateAreas"}),tg=Te({prop:"gridArea"});lo(fo,po,ho,Ym,Gm,Xm,Km,Qm,Zm,Jm,eg,tg);function _n(e,t){return t==="grey"?t:e}const ng=Te({prop:"color",themeKey:"palette",transform:_n}),rg=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_n}),ig=Te({prop:"backgroundColor",themeKey:"palette",transform:_n});lo(ng,rg,ig);function Ye(e){return e<=1&&e!==0?`${e*100}%`:e}const og=Te({prop:"width",transform:Ye}),ha=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const i=e.theme?.breakpoints?.values?.[n]||oo[n];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ye(n)}};return jt(e,e.maxWidth,t)}return null};ha.filterProps=["maxWidth"];const sg=Te({prop:"minWidth",transform:Ye}),ag=Te({prop:"height",transform:Ye}),cg=Te({prop:"maxHeight",transform:Ye}),lg=Te({prop:"minHeight",transform:Ye});Te({prop:"size",cssProperty:"width",transform:Ye});Te({prop:"size",cssProperty:"height",transform:Ye});const ug=Te({prop:"boxSizing"});lo(og,ha,sg,ag,cg,lg,ug);const Yr={border:{themeKey:"borders",transform:Je},borderTop:{themeKey:"borders",transform:Je},borderRight:{themeKey:"borders",transform:Je},borderBottom:{themeKey:"borders",transform:Je},borderLeft:{themeKey:"borders",transform:Je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uo},color:{themeKey:"palette",transform:_n},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_n},backgroundColor:{themeKey:"palette",transform:_n},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:ve},mt:{style:ve},mr:{style:ve},mb:{style:ve},ml:{style:ve},mx:{style:ve},my:{style:ve},margin:{style:ve},marginTop:{style:ve},marginRight:{style:ve},marginBottom:{style:ve},marginLeft:{style:ve},marginX:{style:ve},marginY:{style:ve},marginInline:{style:ve},marginInlineStart:{style:ve},marginInlineEnd:{style:ve},marginBlock:{style:ve},marginBlockStart:{style:ve},marginBlockEnd:{style:ve},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:fo},rowGap:{style:ho},columnGap:{style:po},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ye},maxWidth:{style:ha},minWidth:{transform:Ye},height:{transform:Ye},maxHeight:{transform:Ye},minHeight:{transform:Ye},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"}};function fg(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function dg(e,t){return typeof e=="function"?e(t):e}function pg(){function e(n,i,o,s){const a={[n]:i,theme:o},c=s[n];if(!c)return{[n]:i};const{cssProperty:u=n,themeKey:l,transform:f,style:d}=c;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[n]:i};const p=so(o,l)||{};return d?d(a):jt(a,i,g=>{let h=ji(p,f,g);return g===h&&typeof g=="string"&&(h=ji(p,f,`${n}${g==="default"?"":jn(g)}`,g)),u===!1?h:{[u]:h}})}function t(n){const{sx:i,theme:o={},nested:s}=n||{};if(!i)return null;const a=o.unstable_sxConfig??Yr;function c(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const f=Sm(o.breakpoints),d=Object.keys(f);let p=f;return Object.keys(l).forEach(m=>{const g=dg(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])p=mr(p,e(m,g,o,a));else{const h=jt({theme:o},g,y=>({[m]:y}));fg(h,g)?p[m]=t({sx:g,theme:o,nested:!0}):p=mr(p,h)}else p=mr(p,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":Qc(o,Jc(d,p))}:Qc(o,Jc(d,p))}return Array.isArray(i)?i.map(c):c(i)}return t}const Nn=pg();Nn.filterProps=["sx"];function hg(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function ma(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:s={},...a}=e,c=Om(n),u=mf(o);let l=Xe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...Cm,...s}},a);return l=km(l),l.applyStyles=hg,l=t.reduce((f,d)=>Xe(f,d),l),l.unstable_sxConfig={...Yr,...a?.unstable_sxConfig},l.unstable_sx=function(d){return Nn({sx:d,theme:this})},l}function mg(e){return Object.keys(e).length===0}function gg(e=null){const t=M.useContext(df);return!t||mg(t)?e:t}const yg=ma();function gf(e=yg){return gg(e)}const bg=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Yr;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function xg(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=bg(n);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...a)=>{const c=t(...a);return vt(c)?{...i,...c}:i}:s={...i,...t},{...o,sx:s}}const tl=e=>e,vg=()=>{let e=tl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tl}}},Og=vg();function yf(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yf(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function pt(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yf(e))&&(i&&(i+=" "),i+=t);return i}const wg={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 Re(e,t,n="Mui"){const i=wg[t];return i?`${n}-${i}`:`${Og.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Re(e,o,n)}),i}function bf(e,t=""){return e.displayName||e.name||t}function nl(e,t,n){const i=bf(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function Tg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $i.ForwardRef:return nl(e,e.render,"ForwardRef");case $i.Memo:return nl(e,e.type,"memo");default:return}}}function xf(e){const{variants:t,...n}=e,i={variants:t,style:pn(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=pn(o.style))}),i}const kg=ma();function Ci(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ln(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Cg(e){return e?(t,n)=>n[e]:null}function Ag(e,t,n){e.theme=_g(e.theme)?n:e.theme[t]||e.theme}function Ai(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>Ai(e,o,n));if(Array.isArray(i?.variants)){let o;if(i.isProcessed)o=n?ln(i.style,n):i.style;else{const{variants:s,...a}=i;o=n?ln(pn(a),n):a}return vf(e,i.variants,[o],n)}return i?.isProcessed?n?ln(pn(i.style),n):i.style:n?ln(pn(i),n):i}function vf(e,t,n=[],i=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&e.ownerState?.[c]!==a.props[c])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i?ln(pn(a.style(o)),i):a.style(o))):n.push(i?ln(pn(a.style),i):a.style)}return n}function Sg(e={}){const{themeId:t,defaultTheme:n=kg,rootShouldForwardProp:i=Ci,slotShouldForwardProp:o=Ci}=e;function s(c){Ag(c,t,n)}return(c,u={})=>{gm(c,k=>k.filter(R=>R!==Nn));const{name:l,slot:f,skipVariantsResolver:d,skipSx:p,overridesResolver:m=Cg(Of(f)),...g}=u,h=l&&l.startsWith("Mui")||f?"components":"custom",y=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,b=p||!1;let v=Ci;f==="Root"||f==="root"?v=i:f?v=o:Eg(c)&&(v=void 0);const T=mm(c,{shouldForwardProp:v,label:Rg(l,f),...g}),O=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(N){return Ai(N,k,N.theme.modularCssLayers?h:void 0)};if(vt(k)){const R=xf(k);return function($){return R.variants?Ai($,R,$.theme.modularCssLayers?h:void 0):$.theme.modularCssLayers?ln(R.style,h):R.style}}return k},w=(...k)=>{const R=[],N=k.map(O),$=[];if(R.push(s),l&&m&&$.push(function(P){const I=P.theme.components?.[l]?.styleOverrides;if(!I)return null;const F={};for(const z in I)F[z]=Ai(P,I[z],P.theme.modularCssLayers?"theme":void 0);return m(P,F)}),l&&!y&&$.push(function(P){const I=P.theme?.components?.[l]?.variants;return I?vf(P,I,[],P.theme.modularCssLayers?"theme":void 0):null}),b||$.push(Nn),Array.isArray(N[0])){const x=N.shift(),P=new Array(R.length).fill(""),C=new Array($.length).fill("");let I;I=[...P,...x,...C],I.raw=[...P,...x.raw,...C],R.unshift(I)}const D=[...R,...N,...$],E=T(...D);return c.muiName&&(E.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(E.displayName=Pg(l,f,c)),E};return T.withConfig&&(w.withConfig=T.withConfig),w}}function Pg(e,t,n){return e?`${e}${jn(t||"")}`:`Styled(${Tg(n)})`}function Rg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Of(t||"Root")}`),n}function _g(e){for(const t in e)return!1;return!0}function Eg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Of(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ni(e,t,n=!1){const i={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],c=t[s];if(!c)i[s]=a||{};else if(!a)i[s]=c;else{i[s]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const l=u;i[s][l]=Ni(a[l],c[l],n)}}}else s==="className"&&n&&t.className?i.className=pt(e?.className,t?.className):s==="style"&&n&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}function Mg(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Ni(t.components[n].defaultProps,i)}function Ig({props:e,name:t,defaultTheme:n,themeId:i}){let o=gf(n);return o=o[i]||o,Mg({theme:o,name:t,props:e})}const Qt=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $g(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ga(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),$g(e,t,n)}function jg(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Zt(e){if(e.type)return e;if(e.charAt(0)==="#")return Zt(jg(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
8
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Kt(9,e));let i=e.substring(t+1,e.length-1),o;if(n==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
9
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Kt(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:n,values:i,colorSpace:o}}const Ng=e=>{const t=Zt(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},dr=(e,t)=>{try{return Ng(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function mo(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function wf(e){e=Zt(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),a=(l,f=(l+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),mo({type:c,values:u})}function _s(e){e=Zt(e);let t=e.type==="hsl"||e.type==="hsla"?Zt(wf(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rl(e,t){const n=_s(e),i=_s(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Tf(e,t){return e=Zt(e),t=ga(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mo(e)}function on(e,t,n){try{return Tf(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function go(e,t){if(e=Zt(e),t=ga(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 mo(e)}function pe(e,t,n){try{return go(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function yo(e,t){if(e=Zt(e),t=ga(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 mo(e)}function he(e,t,n){try{return yo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Dg(e,t=.15){return _s(e)>.5?go(e,t):yo(e,t)}function ci(e,t,n){try{return Dg(e,t)}catch{return e}}const Lg="exact-prop: ​";function kf(e){return process.env.NODE_ENV==="production"?e:{...e,[Lg]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}const Fg=M.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const bo=()=>M.useContext(Fg)??!1,qg=M.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function Ug(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const o=t.components[n];return o.defaultProps?Ni(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ni(o,i,t.components.mergeClassNameAndStyle):i}function zg({props:e,name:t}){const n=M.useContext(qg);return Ug({props:e,name:t,theme:{components:n}})}let il=0;function Vg(e){const[t,n]=M.useState(e),i=t;return M.useEffect(()=>{t==null&&(il+=1,n(`mui-${il}`))},[t]),i}const Hg={...M},ol=Hg.useId;function ya(e){return ol!==void 0?ol():Vg(e)}const sl={theme:void 0};function Bg(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(sl.theme=o.theme,s=xf(e(sl)),t=s,n=o.theme),s}}function Wg(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const al=(e,t,n,i=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},Yg=(e,t,n)=>{function i(o,s=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...s,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?i(u,[...s,c],Array.isArray(u)?[...a,c]:a):t([...s,c],u,a))})}i(e)},Gg=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ns(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},s={},a={};return Yg(e,(c,u,l)=>{if((typeof u=="string"||typeof u=="number")&&(!i||!i(c,u))){const f=`--${n?`${n}-`:""}${c.join("-")}`,d=Gg(c,u);Object.assign(o,{[f]:d}),al(s,c,`var(${f})`,l),al(a,c,`var(${f}, ${d})`,l)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function Xg(e,t={}){const{getSelector:n=b,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...l}=e,{vars:f,css:d,varsWithDefaults:p}=ns(l,t);let m=p;const g={},{[u]:h,...y}=a;if(Object.entries(y||{}).forEach(([O,w])=>{const{vars:k,css:R,varsWithDefaults:N}=ns(w,t);m=Xe(m,N),g[O]={css:R,vars:k}}),h){const{css:O,vars:w,varsWithDefaults:k}=ns(h,t);m=Xe(m,k),g[u]={css:O,vars:w}}function b(O,w){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),O){if(k==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":w}};if(k)return e.defaultColorScheme===O?`:root, ${k.replace("%s",String(O))}`:k.replace("%s",String(O))}return":root"}return{vars:m,generateThemeVars:()=>{let O={...f};return Object.entries(g).forEach(([,{vars:w}])=>{O=Xe(O,w)}),O},generateStyleSheets:()=>{const O=[],w=e.defaultColorScheme||"light";function k($,D){Object.keys(D).length&&O.push(typeof $=="string"?{[$]:{...D}}:$)}k(n(void 0,{...d}),d);const{[w]:R,...N}=g;if(R){const{css:$}=R,D=a[w]?.palette?.mode,E=!i&&D?{colorScheme:D,...$}:{...$};k(n(w,{...E}),E)}return Object.entries(N).forEach(([$,{css:D}])=>{const E=a[$]?.palette?.mode,x=!i&&E?{colorScheme:E,...D}:{...D};k(n($,{...x}),x)}),s&&O.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)"}}),O}}}function Kg(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ie(e,t,n=void 0){const i={};for(const o in e){const s=e[o];let a="",c=!0;for(let u=0;u<s.length;u+=1){const l=s[u];l&&(a+=(c===!0?"":" ")+t(l),c=!1,n&&n[l]&&(a+=" "+n[l]))}i[o]=a}return i}const Cr={black:"#000",white:"#fff"},Qg={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"},On={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},wn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ir={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Tn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},kn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Cf(){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:Cr.white,default:Cr.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 Af=Cf();function Sf(){return{text:{primary:Cr.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:Cr.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 Es=Sf();function cl(e,t,n,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=yo(e.main,o):t==="dark"&&(e.dark=go(e.main,s)))}function ll(e,t,n,i,o){const s=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Zg(e="light"){return e==="dark"?{main:Tn[200],light:Tn[50],dark:Tn[400]}:{main:Tn[700],light:Tn[400],dark:Tn[800]}}function Jg(e="light"){return e==="dark"?{main:On[200],light:On[50],dark:On[400]}:{main:On[500],light:On[300],dark:On[700]}}function ey(e="light"){return e==="dark"?{main:wn[500],light:wn[300],dark:wn[700]}:{main:wn[700],light:wn[400],dark:wn[800]}}function ty(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[500],dark:kn[900]}}function ny(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function ry(e="light"){return e==="dark"?{main:ir[400],light:ir[300],dark:ir[700]}:{main:"#ed6c02",light:ir[500],dark:ir[900]}}function iy(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:o,...s}=e,a=e.primary||Zg(t),c=e.secondary||Jg(t),u=e.error||ey(t),l=e.info||ty(t),f=e.success||ny(t),d=e.warning||ry(t);function p(y){if(o)return iy(y);const b=rl(y,Es.text.primary)>=n?Es.text.primary:Af.text.primary;if(process.env.NODE_ENV!=="production"){const v=rl(y,b);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${b} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
10
+ `))}return b}const m=({color:y,name:b,mainShade:v=500,lightShade:T=300,darkShade:O=700})=>{if(y={...y},!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
11
+ The color object needs to have a \`main\` property or a \`${v}\` property.`:Kt(11,b?` (${b})`:"",v));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
12
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
13
+
14
+ Did you intend to use one of the following approaches?
15
+
16
+ import { green } from "@mui/material/colors";
17
+
18
+ const theme1 = createTheme({ palette: {
19
+ primary: green,
20
+ } });
21
+
22
+ const theme2 = createTheme({ palette: {
23
+ primary: { main: green[500] },
24
+ } });`:Kt(12,b?` (${b})`:"",JSON.stringify(y.main)));return o?(ll(o,y,"light",T,i),ll(o,y,"dark",O,i)):(cl(y,"light",T,i),cl(y,"dark",O,i)),y.contrastText||(y.contrastText=p(y.main)),y};let g;return t==="light"?g=Cf():t==="dark"&&(g=Sf()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Xe({common:{...Cr},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:f,name:"success"}),grey:Qg,contrastThreshold:n,getContrastText:p,augmentColor:m,tonalOffset:i,...g},s)}function oy(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function sy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ay(e){return Math.round(e*1e5)/1e5}const ul={textTransform:"uppercase"},fl='"Roboto", "Helvetica", "Arial", sans-serif';function cy(e,t){const{fontFamily:n=fl,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:l,pxToRem:f,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=i/14,m=f||(y=>`${y/u*p}rem`),g=(y,b,v,T,O)=>({fontFamily:n,fontWeight:y,fontSize:m(b),lineHeight:v,...n===fl?{letterSpacing:`${ay(T/b)}em`}:{},...O,...l}),h={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,ul),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,ul),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xe({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c,...h},d,{clone:!1})}const ly=.2,uy=.14,fy=.12;function be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ly})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uy})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fy})`].join(",")}const dy=["none",be(0,2,1,-1,0,1,1,0,0,1,3,0),be(0,3,1,-2,0,2,2,0,0,1,5,0),be(0,3,3,-2,0,3,4,0,0,1,8,0),be(0,2,4,-1,0,4,5,0,0,1,10,0),be(0,3,5,-1,0,5,8,0,0,1,14,0),be(0,3,5,-1,0,6,10,0,0,1,18,0),be(0,4,5,-2,0,7,10,1,0,2,16,1),be(0,5,5,-3,0,8,10,1,0,3,14,2),be(0,5,6,-3,0,9,12,1,0,3,16,2),be(0,6,6,-3,0,10,14,1,0,4,18,3),be(0,6,7,-4,0,11,15,1,0,4,20,3),be(0,7,8,-4,0,12,17,2,0,5,22,4),be(0,7,8,-4,0,13,19,2,0,5,24,4),be(0,7,9,-4,0,14,21,2,0,5,26,4),be(0,8,9,-5,0,15,22,2,0,6,28,5),be(0,8,10,-5,0,16,24,2,0,6,30,5),be(0,8,11,-5,0,17,26,2,0,6,32,5),be(0,9,11,-5,0,18,28,2,0,7,34,6),be(0,9,12,-6,0,19,29,2,0,7,36,6),be(0,10,13,-6,0,20,31,3,0,8,38,7),be(0,10,13,-6,0,21,33,3,0,8,40,7),be(0,10,14,-6,0,22,35,3,0,8,42,7),be(0,11,14,-7,0,23,36,3,0,9,44,8),be(0,11,15,-7,0,24,38,3,0,9,46,8)],py={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)"},hy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dl(e){return`${Math.round(e)}ms`}function my(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function gy(e){const t={...py,...e.easing},n={...hy,...e.duration};return{getAutoHeightDuration:my,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...l}=s;if(process.env.NODE_ENV!=="production"){const f=p=>typeof p=="string",d=p=>!Number.isNaN(parseFloat(p));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(c)||console.error('MUI: Argument "easing" must be a string.'),!d(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
25
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:dl(a)} ${c} ${typeof u=="string"?u:dl(u)}`).join(",")},...e,easing:t,duration:n}}const yy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function by(e){return vt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Pf(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[a,c]=o[s];!by(c)||a.startsWith("unstable_")?delete i[a]:vt(c)&&(i[a]={...c},n(i[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
26
+
27
+ const theme = ${JSON.stringify(t,null,2)};
28
+
29
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
30
+ theme.transitions = createTransitions(theme.transitions || {});
31
+
32
+ export default theme;`}function pl(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const xy=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function vy(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Tf(t,xy(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${pl(n)})`:yo(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${pl(n)})`:go(t,n)}})}function Ms(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:s={},transitions:a={},typography:c={},shape:u,colorSpace:l,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Kt(20));const d=ba({...s,colorSpace:l}),p=ma(e);let m=Xe(p,{mixins:sy(p.breakpoints,i),palette:d,shadows:dy.slice(),typography:cy(d,c),transitions:gy(a),zIndex:{...yy}});if(m=Xe(m,f),m=t.reduce((g,h)=>Xe(g,h),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(y,b)=>{let v;for(v in y){const T=y[v];if(g.includes(v)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const O=Re("",v);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
+ `))}y[v]={}}}};Object.keys(m.components).forEach(y=>{const b=m.components[y].styleOverrides;b&&y.startsWith("Mui")&&h(b,y)})}return m.unstable_sxConfig={...Yr,...f?.unstable_sxConfig},m.unstable_sx=function(h){return Nn({sx:h,theme:this})},m.toRuntimeSource=Pf,vy(m),m}function Oy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wy=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Oy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Rf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _f(e){return e==="dark"?wy:[]}function Ty(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:o,...s}=e,a=ba({...t,colorSpace:o});return{palette:a,opacity:{...Rf(a.mode),...n},overlays:i||_f(a.mode),...s}}function ky(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Cy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ay=e=>(t,n)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Cy(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),s==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:a}}:s?{[s.replace("%s",t)]:a,[`${i}, ${s.replace("%s",t)}`]:n}:{[i]:{...n,...a}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(s)return s.replace("%s",String(t))}return i};function Sy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function L(e,t,n){!e[t]&&n&&(e[t]=n)}function pr(e){return typeof e!="string"||!e.startsWith("hsl")?e:wf(e)}function _t(e,t){`${t}Channel`in e||(e[`${t}Channel`]=dr(pr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
34
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Py(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gt=e=>{try{return e()}catch{}},Ry=(e="mui")=>Wg(e);function rs(e,t,n,i,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!i){t[o]=Ty({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...c}=Ms({...i,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Rf(s),...n?.opacity},overlays:n?.overlays||_f(s)},c}function _y(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=ky,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...f}=e,d=Object.keys(n)[0],p=i||(n.light&&d!=="light"?"light":d),m=Ry(s),{[p]:g,light:h,dark:y,...b}=n,v={...b};let T=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Kt(21,p));let O;a&&(O="oklch");const w=rs(O,v,T,f,p);h&&!v.light&&rs(O,v,h,void 0,"light"),y&&!v.dark&&rs(O,v,y,void 0,"dark");let k={defaultColorScheme:p,...w,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:l,getCssVar:m,colorSchemes:v,font:{...oy(w.typography),...w.font},spacing:Py(f.spacing)};Object.keys(k.colorSchemes).forEach(E=>{const x=k.colorSchemes[E].palette,P=I=>{const F=I.split("-"),z=F[1],B=F[2];return m(I,x[z][B])};x.mode==="light"&&(L(x.common,"background","#fff"),L(x.common,"onBackground","#000")),x.mode==="dark"&&(L(x.common,"background","#000"),L(x.common,"onBackground","#fff"));function C(I,F,z){if(O){let B;return I===on&&(B=`transparent ${((1-z)*100).toFixed(0)}%`),I===pe&&(B=`#000 ${(z*100).toFixed(0)}%`),I===he&&(B=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${O}, ${F}, ${B})`}return I(F,z)}if(Sy(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){L(x.Alert,"errorColor",C(pe,x.error.light,.6)),L(x.Alert,"infoColor",C(pe,x.info.light,.6)),L(x.Alert,"successColor",C(pe,x.success.light,.6)),L(x.Alert,"warningColor",C(pe,x.warning.light,.6)),L(x.Alert,"errorFilledBg",P("palette-error-main")),L(x.Alert,"infoFilledBg",P("palette-info-main")),L(x.Alert,"successFilledBg",P("palette-success-main")),L(x.Alert,"warningFilledBg",P("palette-warning-main")),L(x.Alert,"errorFilledColor",gt(()=>x.getContrastText(x.error.main))),L(x.Alert,"infoFilledColor",gt(()=>x.getContrastText(x.info.main))),L(x.Alert,"successFilledColor",gt(()=>x.getContrastText(x.success.main))),L(x.Alert,"warningFilledColor",gt(()=>x.getContrastText(x.warning.main))),L(x.Alert,"errorStandardBg",C(he,x.error.light,.9)),L(x.Alert,"infoStandardBg",C(he,x.info.light,.9)),L(x.Alert,"successStandardBg",C(he,x.success.light,.9)),L(x.Alert,"warningStandardBg",C(he,x.warning.light,.9)),L(x.Alert,"errorIconColor",P("palette-error-main")),L(x.Alert,"infoIconColor",P("palette-info-main")),L(x.Alert,"successIconColor",P("palette-success-main")),L(x.Alert,"warningIconColor",P("palette-warning-main")),L(x.AppBar,"defaultBg",P("palette-grey-100")),L(x.Avatar,"defaultBg",P("palette-grey-400")),L(x.Button,"inheritContainedBg",P("palette-grey-300")),L(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),L(x.Chip,"defaultBorder",P("palette-grey-400")),L(x.Chip,"defaultAvatarColor",P("palette-grey-700")),L(x.Chip,"defaultIconColor",P("palette-grey-700")),L(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(x.LinearProgress,"primaryBg",C(he,x.primary.main,.62)),L(x.LinearProgress,"secondaryBg",C(he,x.secondary.main,.62)),L(x.LinearProgress,"errorBg",C(he,x.error.main,.62)),L(x.LinearProgress,"infoBg",C(he,x.info.main,.62)),L(x.LinearProgress,"successBg",C(he,x.success.main,.62)),L(x.LinearProgress,"warningBg",C(he,x.warning.main,.62)),L(x.Skeleton,"bg",O?C(on,x.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),L(x.Slider,"primaryTrack",C(he,x.primary.main,.62)),L(x.Slider,"secondaryTrack",C(he,x.secondary.main,.62)),L(x.Slider,"errorTrack",C(he,x.error.main,.62)),L(x.Slider,"infoTrack",C(he,x.info.main,.62)),L(x.Slider,"successTrack",C(he,x.success.main,.62)),L(x.Slider,"warningTrack",C(he,x.warning.main,.62));const I=O?C(pe,x.background.default,.6825):ci(x.background.default,.8);L(x.SnackbarContent,"bg",I),L(x.SnackbarContent,"color",gt(()=>O?Es.text.primary:x.getContrastText(I))),L(x.SpeedDialAction,"fabHoverBg",ci(x.background.paper,.15)),L(x.StepConnector,"border",P("palette-grey-400")),L(x.StepContent,"border",P("palette-grey-400")),L(x.Switch,"defaultColor",P("palette-common-white")),L(x.Switch,"defaultDisabledColor",P("palette-grey-100")),L(x.Switch,"primaryDisabledColor",C(he,x.primary.main,.62)),L(x.Switch,"secondaryDisabledColor",C(he,x.secondary.main,.62)),L(x.Switch,"errorDisabledColor",C(he,x.error.main,.62)),L(x.Switch,"infoDisabledColor",C(he,x.info.main,.62)),L(x.Switch,"successDisabledColor",C(he,x.success.main,.62)),L(x.Switch,"warningDisabledColor",C(he,x.warning.main,.62)),L(x.TableCell,"border",C(he,C(on,x.divider,1),.88)),L(x.Tooltip,"bg",C(on,x.grey[700],.92))}if(x.mode==="dark"){L(x.Alert,"errorColor",C(he,x.error.light,.6)),L(x.Alert,"infoColor",C(he,x.info.light,.6)),L(x.Alert,"successColor",C(he,x.success.light,.6)),L(x.Alert,"warningColor",C(he,x.warning.light,.6)),L(x.Alert,"errorFilledBg",P("palette-error-dark")),L(x.Alert,"infoFilledBg",P("palette-info-dark")),L(x.Alert,"successFilledBg",P("palette-success-dark")),L(x.Alert,"warningFilledBg",P("palette-warning-dark")),L(x.Alert,"errorFilledColor",gt(()=>x.getContrastText(x.error.dark))),L(x.Alert,"infoFilledColor",gt(()=>x.getContrastText(x.info.dark))),L(x.Alert,"successFilledColor",gt(()=>x.getContrastText(x.success.dark))),L(x.Alert,"warningFilledColor",gt(()=>x.getContrastText(x.warning.dark))),L(x.Alert,"errorStandardBg",C(pe,x.error.light,.9)),L(x.Alert,"infoStandardBg",C(pe,x.info.light,.9)),L(x.Alert,"successStandardBg",C(pe,x.success.light,.9)),L(x.Alert,"warningStandardBg",C(pe,x.warning.light,.9)),L(x.Alert,"errorIconColor",P("palette-error-main")),L(x.Alert,"infoIconColor",P("palette-info-main")),L(x.Alert,"successIconColor",P("palette-success-main")),L(x.Alert,"warningIconColor",P("palette-warning-main")),L(x.AppBar,"defaultBg",P("palette-grey-900")),L(x.AppBar,"darkBg",P("palette-background-paper")),L(x.AppBar,"darkColor",P("palette-text-primary")),L(x.Avatar,"defaultBg",P("palette-grey-600")),L(x.Button,"inheritContainedBg",P("palette-grey-800")),L(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),L(x.Chip,"defaultBorder",P("palette-grey-700")),L(x.Chip,"defaultAvatarColor",P("palette-grey-300")),L(x.Chip,"defaultIconColor",P("palette-grey-300")),L(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(x.LinearProgress,"primaryBg",C(pe,x.primary.main,.5)),L(x.LinearProgress,"secondaryBg",C(pe,x.secondary.main,.5)),L(x.LinearProgress,"errorBg",C(pe,x.error.main,.5)),L(x.LinearProgress,"infoBg",C(pe,x.info.main,.5)),L(x.LinearProgress,"successBg",C(pe,x.success.main,.5)),L(x.LinearProgress,"warningBg",C(pe,x.warning.main,.5)),L(x.Skeleton,"bg",O?C(on,x.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),L(x.Slider,"primaryTrack",C(pe,x.primary.main,.5)),L(x.Slider,"secondaryTrack",C(pe,x.secondary.main,.5)),L(x.Slider,"errorTrack",C(pe,x.error.main,.5)),L(x.Slider,"infoTrack",C(pe,x.info.main,.5)),L(x.Slider,"successTrack",C(pe,x.success.main,.5)),L(x.Slider,"warningTrack",C(pe,x.warning.main,.5));const I=O?C(he,x.background.default,.985):ci(x.background.default,.98);L(x.SnackbarContent,"bg",I),L(x.SnackbarContent,"color",gt(()=>O?Af.text.primary:x.getContrastText(I))),L(x.SpeedDialAction,"fabHoverBg",ci(x.background.paper,.15)),L(x.StepConnector,"border",P("palette-grey-600")),L(x.StepContent,"border",P("palette-grey-600")),L(x.Switch,"defaultColor",P("palette-grey-300")),L(x.Switch,"defaultDisabledColor",P("palette-grey-600")),L(x.Switch,"primaryDisabledColor",C(pe,x.primary.main,.55)),L(x.Switch,"secondaryDisabledColor",C(pe,x.secondary.main,.55)),L(x.Switch,"errorDisabledColor",C(pe,x.error.main,.55)),L(x.Switch,"infoDisabledColor",C(pe,x.info.main,.55)),L(x.Switch,"successDisabledColor",C(pe,x.success.main,.55)),L(x.Switch,"warningDisabledColor",C(pe,x.warning.main,.55)),L(x.TableCell,"border",C(pe,C(on,x.divider,1),.68)),L(x.Tooltip,"bg",C(on,x.grey[700],.92))}_t(x.background,"default"),_t(x.background,"paper"),_t(x.common,"background"),_t(x.common,"onBackground"),_t(x,"divider"),Object.keys(x).forEach(I=>{const F=x[I];I!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&L(x[I],"mainChannel",dr(pr(F.main))),F.light&&L(x[I],"lightChannel",dr(pr(F.light))),F.dark&&L(x[I],"darkChannel",dr(pr(F.dark))),F.contrastText&&L(x[I],"contrastTextChannel",dr(pr(F.contrastText))),I==="text"&&(_t(x[I],"primary"),_t(x[I],"secondary")),I==="action"&&(F.active&&_t(x[I],"active"),F.selected&&_t(x[I],"selected")))})}),k=t.reduce((E,x)=>Xe(E,x),k);const R={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Ay(k),enableContrastVars:a},{vars:N,generateThemeVars:$,generateStyleSheets:D}=Xg(k,R);return k.vars=N,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([E,x])=>{k[E]=x}),k.generateThemeVars=$,k.generateStyleSheets=D,k.generateSpacing=function(){return mf(f.spacing,pa(this))},k.getColorSchemeSelector=Kg(u),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Yr,...f?.unstable_sxConfig},k.unstable_sx=function(x){return Nn({sx:x,theme:this})},k.toRuntimeSource=Pf,k}function hl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Ey(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,c=s||"light",u=o?.[c],l={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Ms(e,...t);let f=n;"palette"in e||l[c]&&(l[c]!==!0?f=l[c].palette:c==="dark"&&(f={mode:"dark"}));const d=Ms({...e,palette:f},...t);return d.defaultColorScheme=c,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},hl(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},hl(d,"light",l.light)),d}return!n&&!("light"in l)&&c==="light"&&(l.light=!0),_y({...a,colorSchemes:l,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const xa=Ey();function Ut(){const e=gf(xa);return process.env.NODE_ENV!=="production"&&M.useDebugValue(e),e[la]||e}function At({props:e,name:t}){return Ig({props:e,name:t,defaultTheme:xa,themeId:la})}function My(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iy=e=>My(e)&&e!=="classes",ye=Sg({themeId:la,defaultTheme:xa,rootShouldForwardProp:Iy});function ie(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function re(e){return function(){return e}}const ml=Math.abs,_e=Math.atan2,Et=Math.cos,$y=Math.max,is=Math.min,Le=Math.sin,Pe=Math.sqrt,Me=1e-12,Jt=Math.PI,Di=Jt/2,Gt=2*Jt;function jy(e){return e>1?0:e<-1?Jt:Math.acos(e)}function gl(e){return e>=1?Di:e<=-1?-Di:Math.asin(e)}const Is=Math.PI,$s=2*Is,an=1e-6,Ny=$s-an;function Ef(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Dy(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ef;const n=10**t;return function(i){this._+=i[0];for(let o=1,s=i.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Ly{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ef:Dy(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,s,a){this._append`C${+t},${+n},${+i},${+o},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,i,o,s){if(t=+t,n=+n,i=+i,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,c=this._y1,u=i-t,l=o-n,f=a-t,d=c-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>an)if(!(Math.abs(d*u-l*f)>an)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let m=i-a,g=o-c,h=u*u+l*l,y=m*m+g*g,b=Math.sqrt(h),v=Math.sqrt(p),T=s*Math.tan((Is-Math.acos((h+p-y)/(2*b*v)))/2),O=T/v,w=T/b;Math.abs(O-1)>an&&this._append`L${t+O*f},${n+O*d}`,this._append`A${s},${s},0,0,${+(d*m>f*g)},${this._x1=t+w*u},${this._y1=n+w*l}`}}arc(t,n,i,o,s,a){if(t=+t,n=+n,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(o),u=i*Math.sin(o),l=t+c,f=n+u,d=1^a,p=a?o-s:s-o;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>an||Math.abs(this._y1-f)>an)&&this._append`L${l},${f}`,i&&(p<0&&(p=p%$s+$s),p>Ny?this._append`A${i},${i},0,1,${d},${t-c},${n-u}A${i},${i},0,1,${d},${this._x1=l},${this._y1=f}`:p>an&&this._append`A${i},${i},0,${+(p>=Is)},${d},${this._x1=t+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function xo(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Ly(t)}function Fy(e){return e.innerRadius}function qy(e){return e.outerRadius}function Uy(e){return e.startAngle}function zy(e){return e.endAngle}function Vy(e){return e&&e.padAngle}function Hy(e,t,n,i,o,s,a,c){var u=n-e,l=i-t,f=a-o,d=c-s,p=d*u-f*l;if(!(p*p<Me))return p=(f*(t-s)-d*(e-o))/p,[e+p*u,t+p*l]}function li(e,t,n,i,o,s,a){var c=e-n,u=t-i,l=(a?s:-s)/Pe(c*c+u*u),f=l*u,d=-l*c,p=e+f,m=t+d,g=n+f,h=i+d,y=(p+g)/2,b=(m+h)/2,v=g-p,T=h-m,O=v*v+T*T,w=o-s,k=p*h-g*m,R=(T<0?-1:1)*Pe($y(0,w*w*O-k*k)),N=(k*T-v*R)/O,$=(-k*v-T*R)/O,D=(k*T+v*R)/O,E=(-k*v+T*R)/O,x=N-y,P=$-b,C=D-y,I=E-b;return x*x+P*P>C*C+I*I&&(N=D,$=E),{cx:N,cy:$,x01:-f,y01:-d,x11:N*(o/w-1),y11:$*(o/w-1)}}function Mf(){var e=Fy,t=qy,n=re(0),i=null,o=Uy,s=zy,a=Vy,c=null,u=xo(l);function l(){var f,d,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=o.apply(this,arguments)-Di,h=s.apply(this,arguments)-Di,y=ml(h-g),b=h>g;if(c||(c=f=u()),m<p&&(d=m,m=p,p=d),!(m>Me))c.moveTo(0,0);else if(y>Gt-Me)c.moveTo(m*Et(g),m*Le(g)),c.arc(0,0,m,g,h,!b),p>Me&&(c.moveTo(p*Et(h),p*Le(h)),c.arc(0,0,p,h,g,b));else{var v=g,T=h,O=g,w=h,k=y,R=y,N=a.apply(this,arguments)/2,$=N>Me&&(i?+i.apply(this,arguments):Pe(p*p+m*m)),D=is(ml(m-p)/2,+n.apply(this,arguments)),E=D,x=D,P,C;if($>Me){var I=gl($/p*Le(N)),F=gl($/m*Le(N));(k-=I*2)>Me?(I*=b?1:-1,O+=I,w-=I):(k=0,O=w=(g+h)/2),(R-=F*2)>Me?(F*=b?1:-1,v+=F,T-=F):(R=0,v=T=(g+h)/2)}var z=m*Et(v),B=m*Le(v),ee=p*Et(w),j=p*Le(w);if(D>Me){var U=m*Et(T),W=m*Le(T),X=p*Et(O),G=p*Le(O),Y;if(y<Jt)if(Y=Hy(z,B,X,G,U,W,ee,j)){var Z=z-Y[0],Q=B-Y[1],J=U-Y[0],q=W-Y[1],H=1/Le(jy((Z*J+Q*q)/(Pe(Z*Z+Q*Q)*Pe(J*J+q*q)))/2),K=Pe(Y[0]*Y[0]+Y[1]*Y[1]);E=is(D,(p-K)/(H-1)),x=is(D,(m-K)/(H+1))}else E=x=0}R>Me?x>Me?(P=li(X,G,z,B,m,x,b),C=li(U,W,ee,j,m,x,b),c.moveTo(P.cx+P.x01,P.cy+P.y01),x<D?c.arc(P.cx,P.cy,x,_e(P.y01,P.x01),_e(C.y01,C.x01),!b):(c.arc(P.cx,P.cy,x,_e(P.y01,P.x01),_e(P.y11,P.x11),!b),c.arc(0,0,m,_e(P.cy+P.y11,P.cx+P.x11),_e(C.cy+C.y11,C.cx+C.x11),!b),c.arc(C.cx,C.cy,x,_e(C.y11,C.x11),_e(C.y01,C.x01),!b))):(c.moveTo(z,B),c.arc(0,0,m,v,T,!b)):c.moveTo(z,B),!(p>Me)||!(k>Me)?c.lineTo(ee,j):E>Me?(P=li(ee,j,U,W,p,-E,b),C=li(z,B,X,G,p,-E,b),c.lineTo(P.cx+P.x01,P.cy+P.y01),E<D?c.arc(P.cx,P.cy,E,_e(P.y01,P.x01),_e(C.y01,C.x01),!b):(c.arc(P.cx,P.cy,E,_e(P.y01,P.x01),_e(P.y11,P.x11),!b),c.arc(0,0,p,_e(P.cy+P.y11,P.cx+P.x11),_e(C.cy+C.y11,C.cx+C.x11),b),c.arc(C.cx,C.cy,E,_e(C.y11,C.x11),_e(C.y01,C.x01),!b))):c.arc(0,0,p,w,O,b)}if(c.closePath(),f)return c=null,f+""||null}return l.centroid=function(){var f=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Jt/2;return[Et(d)*f,Le(d)*f]},l.innerRadius=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),l):e},l.outerRadius=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),l):t},l.cornerRadius=function(f){return arguments.length?(n=typeof f=="function"?f:re(+f),l):n},l.padRadius=function(f){return arguments.length?(i=f==null?null:typeof f=="function"?f:re(+f),l):i},l.startAngle=function(f){return arguments.length?(o=typeof f=="function"?f:re(+f),l):o},l.endAngle=function(f){return arguments.length?(s=typeof f=="function"?f:re(+f),l):s},l.padAngle=function(f){return arguments.length?(a=typeof f=="function"?f:re(+f),l):a},l.context=function(f){return arguments.length?(c=f??null,l):c},l}function vo(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function If(e){this._context=e}If.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function va(e){return new If(e)}function $f(e){return e[0]}function jf(e){return e[1]}function Nf(e,t){var n=re(!0),i=null,o=va,s=null,a=xo(c);e=typeof e=="function"?e:e===void 0?$f:re(e),t=typeof t=="function"?t:t===void 0?jf:re(t);function c(u){var l,f=(u=vo(u)).length,d,p=!1,m;for(i==null&&(s=o(m=a())),l=0;l<=f;++l)!(l<f&&n(d=u[l],l,u))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+e(d,l,u),+t(d,l,u));if(m)return s=null,m+""||null}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:re(+u),c):e},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:re(+u),c):t},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:re(!!u),c):n},c.curve=function(u){return arguments.length?(o=u,i!=null&&(s=o(i)),c):o},c.context=function(u){return arguments.length?(u==null?i=s=null:s=o(i=u),c):i},c}function By(e,t,n){var i=null,o=re(!0),s=null,a=va,c=null,u=xo(l);e=typeof e=="function"?e:e===void 0?$f:re(+e),t=typeof t=="function"?t:re(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jf:re(+n);function l(d){var p,m,g,h=(d=vo(d)).length,y,b=!1,v,T=new Array(h),O=new Array(h);for(s==null&&(c=a(v=u())),p=0;p<=h;++p){if(!(p<h&&o(y=d[p],p,d))===b)if(b=!b)m=p,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),g=p-1;g>=m;--g)c.point(T[g],O[g]);c.lineEnd(),c.areaEnd()}b&&(T[p]=+e(y,p,d),O[p]=+t(y,p,d),c.point(i?+i(y,p,d):T[p],n?+n(y,p,d):O[p]))}if(v)return c=null,v+""||null}function f(){return Nf().defined(o).curve(a).context(s)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:re(+d),i=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:re(+d),l):e},l.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:re(+d),l):i},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:re(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:re(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:re(+d),l):n},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(n)},l.lineX1=function(){return f().x(i).y(t)},l.defined=function(d){return arguments.length?(o=typeof d=="function"?d:re(!!d),l):o},l.curve=function(d){return arguments.length?(a=d,s!=null&&(c=a(s)),l):a},l.context=function(d){return arguments.length?(d==null?s=c=null:c=a(s=d),l):s},l}function Wy(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Yy(e){return e}function Gy(){var e=Yy,t=Wy,n=null,i=re(0),o=re(Gt),s=re(0);function a(c){var u,l=(c=vo(c)).length,f,d,p=0,m=new Array(l),g=new Array(l),h=+i.apply(this,arguments),y=Math.min(Gt,Math.max(-Gt,o.apply(this,arguments)-h)),b,v=Math.min(Math.abs(y)/l,s.apply(this,arguments)),T=v*(y<0?-1:1),O;for(u=0;u<l;++u)(O=g[m[u]=u]=+e(c[u],u,c))>0&&(p+=O);for(t!=null?m.sort(function(w,k){return t(g[w],g[k])}):n!=null&&m.sort(function(w,k){return n(c[w],c[k])}),u=0,d=p?(y-l*T)/p:0;u<l;++u,h=b)f=m[u],O=g[f],b=h+(O>0?O*d:0)+T,g[f]={data:c[f],index:u,value:O,startAngle:h,endAngle:b,padAngle:v};return g}return a.value=function(c){return arguments.length?(e=typeof c=="function"?c:re(+c),a):e},a.sortValues=function(c){return arguments.length?(t=c,n=null,a):t},a.sort=function(c){return arguments.length?(n=c,t=null,a):n},a.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:re(+c),a):i},a.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:re(+c),a):o},a.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:re(+c),a):s},a}const Df={draw(e,t){const n=Pe(t/Jt);e.moveTo(n,0),e.arc(0,0,n,0,Gt)}},Xy={draw(e,t){const n=Pe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Lf=Pe(1/3),Ky=Lf*2,Qy={draw(e,t){const n=Pe(t/Ky),i=n*Lf;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},Zy={draw(e,t){const n=Pe(t),i=-n/2;e.rect(i,i,n,n)}},Jy=.8908130915292852,Ff=Le(Jt/10)/Le(7*Jt/10),eb=Le(Gt/10)*Ff,tb=-Et(Gt/10)*Ff,nb={draw(e,t){const n=Pe(t*Jy),i=eb*n,o=tb*n;e.moveTo(0,-n),e.lineTo(i,o);for(let s=1;s<5;++s){const a=Gt*s/5,c=Et(a),u=Le(a);e.lineTo(u*n,-c*n),e.lineTo(c*i-u*o,u*i+c*o)}e.closePath()}},os=Pe(3),rb={draw(e,t){const n=-Pe(t/(os*3));e.moveTo(0,n*2),e.lineTo(-os*n,-n),e.lineTo(os*n,-n),e.closePath()}},Qe=-.5,Ze=Pe(3)/2,js=1/Pe(12),ib=(js/2+1)*3,ob={draw(e,t){const n=Pe(t/ib),i=n/2,o=n*js,s=i,a=n*js+n,c=-s,u=a;e.moveTo(i,o),e.lineTo(s,a),e.lineTo(c,u),e.lineTo(Qe*i-Ze*o,Ze*i+Qe*o),e.lineTo(Qe*s-Ze*a,Ze*s+Qe*a),e.lineTo(Qe*c-Ze*u,Ze*c+Qe*u),e.lineTo(Qe*i+Ze*o,Qe*o-Ze*i),e.lineTo(Qe*s+Ze*a,Qe*a-Ze*s),e.lineTo(Qe*c+Ze*u,Qe*u-Ze*c),e.closePath()}},sb=[Df,Xy,Qy,Zy,nb,rb,ob];function ab(e,t){let n=null,i=xo(o);e=typeof e=="function"?e:re(e||Df),t=typeof t=="function"?t:re(t===void 0?64:+t);function o(){let s;if(n||(n=s=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:re(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:re(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function yl(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Oa(e,t){this._context=e,this._k=(1-t)/6}Oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:yl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(i){return new Oa(i,t)}return n.tension=function(i){return e(+i)},n})(0);function cb(e,t,n){var i=e._x1,o=e._y1,s=e._x2,a=e._y2;if(e._l01_a>Me){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Me){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*l+e._x1*e._l23_2a-t*e._l12_2a)/f,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(i,o,s,a,e._x2,e._y2)}function qf(e,t){this._context=e,this._alpha=t}qf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:cb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lb=(function e(t){function n(i){return t?new qf(i,t):new Oa(i,0)}return n.alpha=function(i){return e(+i)},n})(.5);function bl(e){return e<0?-1:1}function xl(e,t,n){var i=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(i||o<0&&-0),a=(n-e._y1)/(o||i<0&&-0),c=(s*o+a*i)/(i+o);return(bl(s)+bl(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(c))||0}function vl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ss(e,t,n){var i=e._x0,o=e._y0,s=e._x1,a=e._y1,c=(s-i)/3;e._context.bezierCurveTo(i+c,o+c*t,s-c,a-c*n,s,a)}function Li(e){this._context=e}Li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ss(this,this._t0,vl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ss(this,vl(this,n=xl(this,e,t)),n);break;default:ss(this,this._t0,n=xl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Uf(e){this._context=new zf(e)}(Uf.prototype=Object.create(Li.prototype)).point=function(e,t){Li.prototype.point.call(this,t,e)};function zf(e){this._context=e}zf.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,s){this._context.bezierCurveTo(t,e,i,n,s,o)}};function Ol(e){return new Li(e)}function ub(e){return new Uf(e)}function Vf(e){this._context=e}Vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=wl(e),o=wl(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(i[0][s],o[0][s],i[1][s],o[1][s],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function wl(e){var t,n=e.length-1,i,o=new Array(n),s=new Array(n),a=new Array(n);for(o[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(o[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function fb(e){return new Vf(e)}function Oo(e,t){this._context=e,this._t=t}Oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function db(e){return new Oo(e,.5)}function pb(e){return new Oo(e,0)}function hb(e){return new Oo(e,1)}function Dn(e,t){if((a=e.length)>1)for(var n=1,i,o,s=e[t[0]],a,c=s.length;n<a;++n)for(o=s,s=e[t[n]],i=0;i<c;++i)s[i][1]+=s[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Ln(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function mb(e,t){return e[t]}function gb(e){const t=[];return t.key=e,t}function Hf(){var e=re([]),t=Ln,n=Dn,i=mb;function o(s){var a=Array.from(e.apply(this,arguments),gb),c,u=a.length,l=-1,f;for(const d of s)for(c=0,++l;c<u;++c)(a[c][l]=[0,+i(d,a[c].key,l,s)]).data=d;for(c=0,f=vo(t(a));c<u;++c)a[f[c]].index=c;return n(a,f),a}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:re(Array.from(s)),o):e},o.value=function(s){return arguments.length?(i=typeof s=="function"?s:re(+s),o):i},o.order=function(s){return arguments.length?(t=s==null?Ln:typeof s=="function"?s:re(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Dn,o):n},o}function yb(e,t){if((i=e.length)>0){for(var n,i,o=0,s=e[0].length,a;o<s;++o){for(a=n=0;n<i;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<i;++n)e[n][o][1]/=a}Dn(e,t)}}function bb(e,t){if((u=e.length)>0)for(var n,i=0,o,s,a,c,u,l=e[t[0]].length;i<l;++i)for(a=c=0,n=0;n<u;++n)(s=(o=e[t[n]][i])[1]-o[0])>0?(o[0]=a,o[1]=a+=s):s<0?(o[1]=c,o[0]=c+=s):(o[0]=0,o[1]=s)}function xb(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,s=i.length;n<s;++n){for(var a=0,c=0;a<o;++a)c+=e[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}Dn(e,t)}}function vb(e,t){if(!(!((a=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,s,a;i<s;++i){for(var c=0,u=0,l=0;c<a;++c){for(var f=e[t[c]],d=f[i][1]||0,p=f[i-1][1]||0,m=(d-p)/2,g=0;g<c;++g){var h=e[t[g]],y=h[i][1]||0,b=h[i-1][1]||0;m+=y-b}u+=d,l+=m*d}o[i-1][1]+=o[i-1][0]=n,u&&(n-=l/u)}o[i-1][1]+=o[i-1][0]=n,Dn(e,t)}}function Bf(e){var t=e.map(Ob);return Ln(e).sort(function(n,i){return t[n]-t[i]})}function Ob(e){for(var t=-1,n=0,i=e.length,o,s=-1/0;++t<i;)(o=+e[t][1])>s&&(s=o,n=t);return n}function Wf(e){var t=e.map(Yf);return Ln(e).sort(function(n,i){return t[n]-t[i]})}function Yf(e){for(var t=0,n=-1,i=e.length,o;++n<i;)(o=+e[n][1])&&(t+=o);return t}function wb(e){return Wf(e).reverse()}function Tb(e){var t=e.length,n,i,o=e.map(Yf),s=Bf(e),a=0,c=0,u=[],l=[];for(n=0;n<t;++n)i=s[n],a<c?(a+=o[i],u.push(i)):(c+=o[i],l.push(i));return l.reverse().concat(u)}function kb(e){return Ln(e).reverse()}function Si(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cb(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wa(e){let t,n,i;e.length!==2?(t=Si,n=(c,u)=>Si(e(c),u),i=(c,u)=>e(c)-u):(t=e===Si||e===Cb?e:Ab,n=e,i=e);function o(c,u,l=0,f=c.length){if(l<f){if(t(u,u)!==0)return f;do{const d=l+f>>>1;n(c[d],u)<0?l=d+1:f=d}while(l<f)}return l}function s(c,u,l=0,f=c.length){if(l<f){if(t(u,u)!==0)return f;do{const d=l+f>>>1;n(c[d],u)<=0?l=d+1:f=d}while(l<f)}return l}function a(c,u,l=0,f=c.length){const d=o(c,u,l,f-1);return d>l&&i(c[d-1],u)>-i(c[d],u)?d-1:d}return{left:o,center:a,right:s}}function Ab(){return 0}function Sb(e){return e===null?NaN:+e}const Pb=wa(Si),Gf=Pb.right;wa(Sb).center;class Tl extends Map{constructor(t,n=Eb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(kl(this,t))}has(t){return super.has(kl(this,t))}set(t,n){return super.set(Rb(this,t),n)}delete(t){return super.delete(_b(this,t))}}function kl({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function Rb({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function _b({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function Eb(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Mb=Math.sqrt(50),Ib=Math.sqrt(10),$b=Math.sqrt(2);function Fi(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),a=s>=Mb?10:s>=Ib?5:s>=$b?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(e*l),u=Math.round(t*l),c/l<e&&++c,u/l>t&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(e/l),u=Math.round(t/l),c*l<e&&++c,u*l>t&&--u),u<c&&.5<=n&&n<2?Fi(e,t,n*2):[c,u,l]}function Ns(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[o,s,a]=i?Fi(t,e,n):Fi(e,t,n);if(!(s>=o))return[];const c=s-o+1,u=new Array(c);if(i)if(a<0)for(let l=0;l<c;++l)u[l]=(s-l)/-a;else for(let l=0;l<c;++l)u[l]=(s-l)*a;else if(a<0)for(let l=0;l<c;++l)u[l]=(o+l)/-a;else for(let l=0;l<c;++l)u[l]=(o+l)*a;return u}function Ds(e,t,n){return t=+t,e=+e,n=+n,Fi(e,t,n)[2]}function Ls(e,t,n){t=+t,e=+e,n=+n;const i=t<e,o=i?Ds(t,e,n):Ds(e,t,n);return(i?-1:1)*(o<0?1/-o:o)}function jb(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(o);++i<o;)s[i]=e+i*n;return s}function nn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Nb(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Cl=Symbol("implicit");function qi(){var e=new Tl,t=[],n=[],i=Cl;function o(s){let a=e.get(s);if(a===void 0){if(i!==Cl)return i;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new Tl;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(s){return arguments.length?(n=Array.from(s),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return qi(t,n).unknown(i)},nn.apply(o,arguments),o}function Ta(){var e=qi().unknown(void 0),t=e.domain,n=e.range,i=0,o=1,s,a,c=!1,u=0,l=0,f=.5;delete e.unknown;function d(){var p=t().length,m=o<i,g=m?o:i,h=m?i:o;s=(h-g)/Math.max(1,p-u+l*2),c&&(s=Math.floor(s)),g+=(h-g-s*(p-u))*f,a=s*(1-u),c&&(g=Math.round(g),a=Math.round(a));var y=jb(p).map(function(b){return g+s*b});return n(m?y.reverse():y)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([i,o]=p,i=+i,o=+o,d()):[i,o]},e.rangeRound=function(p){return[i,o]=p,i=+i,o=+o,c=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(p){return arguments.length?(c=!!p,d()):c},e.padding=function(p){return arguments.length?(u=Math.min(1,l=+p),d()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),d()):u},e.paddingOuter=function(p){return arguments.length?(l=+p,d()):l},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return Ta(t(),[i,o]).round(c).paddingInner(u).paddingOuter(l).align(f)},nn.apply(d(),arguments)}function Xf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Xf(t())},e}function Db(){return Xf(Ta.apply(null,arguments).paddingInner(1))}function ka(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kf(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Gr(){}var Ar=.7,Ui=1/Ar,En="\\s*([+-]?\\d+)\\s*",Sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lb=/^#([0-9a-f]{3,8})$/,Fb=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),qb=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),Ub=new RegExp(`^rgba\\(${En},${En},${En},${Sr}\\)$`),zb=new RegExp(`^rgba\\(${wt},${wt},${wt},${Sr}\\)$`),Vb=new RegExp(`^hsl\\(${Sr},${wt},${wt}\\)$`),Hb=new RegExp(`^hsla\\(${Sr},${wt},${wt},${Sr}\\)$`),Al={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ka(Gr,Nt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sl,formatHex:Sl,formatHex8:Bb,formatHsl:Wb,formatRgb:Pl,toString:Pl});function Sl(){return this.rgb().formatHex()}function Bb(){return this.rgb().formatHex8()}function Wb(){return Qf(this).formatHsl()}function Pl(){return this.rgb().formatRgb()}function Nt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Lb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Rl(t):n===3?new Ue(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ui(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ui(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Fb.exec(e))?new Ue(t[1],t[2],t[3],1):(t=qb.exec(e))?new Ue(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ub.exec(e))?ui(t[1],t[2],t[3],t[4]):(t=zb.exec(e))?ui(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Vb.exec(e))?Ml(t[1],t[2]/100,t[3]/100,1):(t=Hb.exec(e))?Ml(t[1],t[2]/100,t[3]/100,t[4]):Al.hasOwnProperty(e)?Rl(Al[e]):e==="transparent"?new Ue(NaN,NaN,NaN,0):null}function Rl(e){return new Ue(e>>16&255,e>>8&255,e&255,1)}function ui(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ue(e,t,n,i)}function Yb(e){return e instanceof Gr||(e=Nt(e)),e?(e=e.rgb(),new Ue(e.r,e.g,e.b,e.opacity)):new Ue}function Fs(e,t,n,i){return arguments.length===1?Yb(e):new Ue(e,t,n,i??1)}function Ue(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}ka(Ue,Fs,Kf(Gr,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ar:Math.pow(Ar,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ue(hn(this.r),hn(this.g),hn(this.b),zi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_l,formatHex:_l,formatHex8:Gb,formatRgb:El,toString:El}));function _l(){return`#${un(this.r)}${un(this.g)}${un(this.b)}`}function Gb(){return`#${un(this.r)}${un(this.g)}${un(this.b)}${un((isNaN(this.opacity)?1:this.opacity)*255)}`}function El(){const e=zi(this.opacity);return`${e===1?"rgb(":"rgba("}${hn(this.r)}, ${hn(this.g)}, ${hn(this.b)}${e===1?")":`, ${e})`}`}function zi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function un(e){return e=hn(e),(e<16?"0":"")+e.toString(16)}function Ml(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ft(e,t,n,i)}function Qf(e){if(e instanceof ft)return new ft(e.h,e.s,e.l,e.opacity);if(e instanceof Gr||(e=Nt(e)),!e)return new ft;if(e instanceof ft)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),a=NaN,c=s-o,u=(s+o)/2;return c?(t===s?a=(n-i)/c+(n<i)*6:n===s?a=(i-t)/c+2:a=(t-n)/c+4,c/=u<.5?s+o:2-s-o,a*=60):c=u>0&&u<1?0:a,new ft(a,c,u,e.opacity)}function Xb(e,t,n,i){return arguments.length===1?Qf(e):new ft(e,t,n,i??1)}function ft(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}ka(ft,Xb,Kf(Gr,{brighter(e){return e=e==null?Ui:Math.pow(Ui,e),new ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ar:Math.pow(Ar,e),new ft(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Ue(as(e>=240?e-240:e+120,o,i),as(e,o,i),as(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ft(Il(this.h),fi(this.s),fi(this.l),zi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zi(this.opacity);return`${e===1?"hsl(":"hsla("}${Il(this.h)}, ${fi(this.s)*100}%, ${fi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Il(e){return e=(e||0)%360,e<0?e+360:e}function fi(e){return Math.max(0,Math.min(1,e||0))}function as(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ca=e=>()=>e;function Kb(e,t){return function(n){return e+n*t}}function Qb(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function Zb(e){return(e=+e)==1?Zf:function(t,n){return n-t?Qb(t,n,e):Ca(isNaN(t)?n:t)}}function Zf(e,t){var n=t-e;return n?Kb(e,n):Ca(isNaN(e)?t:e)}const $l=(function e(t){var n=Zb(t);function i(o,s){var a=n((o=Fs(o)).r,(s=Fs(s)).r),c=n(o.g,s.g),u=n(o.b,s.b),l=Zf(o.opacity,s.opacity);return function(f){return o.r=a(f),o.g=c(f),o.b=u(f),o.opacity=l(f),o+""}}return i.gamma=e,i})(1);function Jb(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),o;return function(s){for(o=0;o<n;++o)i[o]=e[o]*(1-s)+t[o]*s;return i}}function e0(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function t0(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),s=new Array(n),a;for(a=0;a<i;++a)o[a]=wo(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(c){for(a=0;a<i;++a)s[a]=o[a](c);return s}}function Jf(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Pr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function n0(e,t){var n={},i={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=wo(e[o],t[o]):i[o]=t[o];return function(s){for(o in n)i[o]=n[o](s);return i}}var qs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cs=new RegExp(qs.source,"g");function r0(e){return function(){return e}}function i0(e){return function(t){return e(t)+""}}function ed(e,t){var n=qs.lastIndex=cs.lastIndex=0,i,o,s,a=-1,c=[],u=[];for(e=e+"",t=t+"";(i=qs.exec(e))&&(o=cs.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),c[a]?c[a]+=s:c[++a]=s),(i=i[0])===(o=o[0])?c[a]?c[a]+=o:c[++a]=o:(c[++a]=null,u.push({i:a,x:Pr(i,o)})),n=cs.lastIndex;return n<t.length&&(s=t.slice(n),c[a]?c[a]+=s:c[++a]=s),c.length<2?u[0]?i0(u[0].x):r0(t):(t=u.length,function(l){for(var f=0,d;f<t;++f)c[(d=u[f]).i]=d.x(l);return c.join("")})}function wo(e,t){var n=typeof t,i;return t==null||n==="boolean"?Ca(t):(n==="number"?Pr:n==="string"?(i=Nt(t))?(t=i,$l):ed:t instanceof Nt?$l:t instanceof Date?Jf:e0(t)?Jb:Array.isArray(t)?t0:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n0:Pr)(e,t)}function td(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function o0(e){return function(){return e}}function s0(e){return+e}var jl=[0,1];function rt(e){return e}function Us(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:o0(isNaN(t)?NaN:.5)}function a0(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function c0(e,t,n){var i=e[0],o=e[1],s=t[0],a=t[1];return o<i?(i=Us(o,i),s=n(a,s)):(i=Us(i,o),s=n(s,a)),function(c){return s(i(c))}}function l0(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),a=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<i;)o[a]=Us(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(c){var u=Gf(e,c,1,i)-1;return s[u](o[u](c))}}function To(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Aa(){var e=jl,t=jl,n=wo,i,o,s,a=rt,c,u,l;function f(){var p=Math.min(e.length,t.length);return a!==rt&&(a=a0(e[0],e[p-1])),c=p>2?l0:c0,u=l=null,d}function d(p){return p==null||isNaN(p=+p)?s:(u||(u=c(e.map(i),t,n)))(i(a(p)))}return d.invert=function(p){return a(o((l||(l=c(t,e.map(i),Pr)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,s0),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=td,f()},d.clamp=function(p){return arguments.length?(a=p?!0:rt,f()):a!==rt},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(s=p,d):s},function(p,m){return i=p,o=m,f()}}function nd(){return Aa()(rt,rt)}function u0(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Fn(e){return e=Vi(Math.abs(e)),e?e[1]:NaN}function f0(e,t){return function(n,i){for(var o=n.length,s=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>i&&(c=Math.max(1,i-u)),s.push(n.substring(o-=c,o+c)),!((u+=c+1)>i));)c=e[a=(a+1)%e.length];return s.reverse().join(t)}}function d0(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var p0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rr(e){if(!(t=p0.exec(e)))throw new Error("invalid format: "+e);var t;return new Sa({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Rr.prototype=Sa.prototype;function Sa(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Sa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function h0(e){e:for(var t=e.length,n=1,i=-1,o;n<t;++n)switch(e[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var rd;function m0(e,t){var n=Vi(e,t);if(!n)return e+"";var i=n[0],o=n[1],s=o-(rd=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Vi(e,Math.max(0,t+s-1))[0]}function Nl(e,t){var n=Vi(e,t);if(!n)return e+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const Dl={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u0,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Nl(e*100,t),r:Nl,s:m0,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ll(e){return e}var Fl=Array.prototype.map,ql=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function g0(e){var t=e.grouping===void 0||e.thousands===void 0?Ll:f0(Fl.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Ll:d0(Fl.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(d){d=Rr(d);var p=d.fill,m=d.align,g=d.sign,h=d.symbol,y=d.zero,b=d.width,v=d.comma,T=d.precision,O=d.trim,w=d.type;w==="n"?(v=!0,w="g"):Dl[w]||(T===void 0&&(T=12),O=!0,w="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var k=h==="$"?n:h==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",R=h==="$"?i:/[%p]/.test(w)?a:"",N=Dl[w],$=/[defgprs%]/.test(w);T=T===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function D(E){var x=k,P=R,C,I,F;if(w==="c")P=N(E)+P,E="";else{E=+E;var z=E<0||1/E<0;if(E=isNaN(E)?u:N(Math.abs(E),T),O&&(E=h0(E)),z&&+E==0&&g!=="+"&&(z=!1),x=(z?g==="("?g:c:g==="-"||g==="("?"":g)+x,P=(w==="s"?ql[8+rd/3]:"")+P+(z&&g==="("?")":""),$){for(C=-1,I=E.length;++C<I;)if(F=E.charCodeAt(C),48>F||F>57){P=(F===46?o+E.slice(C+1):E.slice(C))+P,E=E.slice(0,C);break}}}v&&!y&&(E=t(E,1/0));var B=x.length+E.length+P.length,ee=B<b?new Array(b-B+1).join(p):"";switch(v&&y&&(E=t(ee+E,ee.length?b-P.length:1/0),ee=""),m){case"<":E=x+E+P+ee;break;case"=":E=x+ee+E+P;break;case"^":E=ee.slice(0,B=ee.length>>1)+x+E+P+ee.slice(B);break;default:E=ee+x+E+P;break}return s(E)}return D.toString=function(){return d+""},D}function f(d,p){var m=l((d=Rr(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Fn(p)/3)))*3,h=Math.pow(10,-g),y=ql[8+g/3];return function(b){return m(h*b)+y}}return{format:l,formatPrefix:f}}var di,Pa,id;y0({thousands:",",grouping:[3],currency:["$",""]});function y0(e){return di=g0(e),Pa=di.format,id=di.formatPrefix,di}function b0(e){return Math.max(0,-Fn(Math.abs(e)))}function x0(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fn(t)/3)))*3-Fn(Math.abs(e)))}function v0(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fn(t)-Fn(e))+1}function O0(e,t,n,i){var o=Ls(e,t,n),s;switch(i=Rr(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(s=x0(o,a))&&(i.precision=s),id(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=v0(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=b0(o))&&(i.precision=s-(i.type==="%")*2);break}}return Pa(i)}function Ra(e){var t=e.domain;return e.ticks=function(n){var i=t();return Ns(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var o=t();return O0(o[0],o[o.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),o=0,s=i.length-1,a=i[o],c=i[s],u,l,f=10;for(c<a&&(l=a,a=c,c=l,l=o,o=s,s=l);f-- >0;){if(l=Ds(a,c,n),l===u)return i[o]=a,i[s]=c,t(i);if(l>0)a=Math.floor(a/l)*l,c=Math.ceil(c/l)*l;else if(l<0)a=Math.ceil(a*l)/l,c=Math.floor(c*l)/l;else break;u=l}return e},e}function od(){var e=nd();return e.copy=function(){return To(e,od())},nn.apply(e,arguments),Ra(e)}function sd(e,t){e=e.slice();var n=0,i=e.length-1,o=e[n],s=e[i],a;return s<o&&(a=n,n=i,i=a,a=o,o=s,s=a),e[n]=t.floor(o),e[i]=t.ceil(s),e}function Ul(e){return Math.log(e)}function zl(e){return Math.exp(e)}function w0(e){return-Math.log(-e)}function T0(e){return-Math.exp(-e)}function k0(e){return isFinite(e)?+("1e"+e):e<0?0:e}function C0(e){return e===10?k0:e===Math.E?Math.exp:t=>Math.pow(e,t)}function A0(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Vl(e){return(t,n)=>-e(-t,n)}function S0(e){const t=e(Ul,zl),n=t.domain;let i=10,o,s;function a(){return o=A0(i),s=C0(i),n()[0]<0?(o=Vl(o),s=Vl(s),e(w0,T0)):e(Ul,zl),t}return t.base=function(c){return arguments.length?(i=+c,a()):i},t.domain=function(c){return arguments.length?(n(c),a()):n()},t.ticks=c=>{const u=n();let l=u[0],f=u[u.length-1];const d=f<l;d&&([l,f]=[f,l]);let p=o(l),m=o(f),g,h;const y=c==null?10:+c;let b=[];if(!(i%1)&&m-p<y){if(p=Math.floor(p),m=Math.ceil(m),l>0){for(;p<=m;++p)for(g=1;g<i;++g)if(h=p<0?g/s(-p):g*s(p),!(h<l)){if(h>f)break;b.push(h)}}else for(;p<=m;++p)for(g=i-1;g>=1;--g)if(h=p>0?g/s(-p):g*s(p),!(h<l)){if(h>f)break;b.push(h)}b.length*2<y&&(b=Ns(l,f,y))}else b=Ns(p,m,Math.min(m-p,y)).map(s);return d?b.reverse():b},t.tickFormat=(c,u)=>{if(c==null&&(c=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=Rr(u)).precision==null&&(u.trim=!0),u=Pa(u)),c===1/0)return u;const l=Math.max(1,i*c/t.ticks().length);return f=>{let d=f/s(Math.round(o(f)));return d*i<i-.5&&(d*=i),d<=l?u(f):""}},t.nice=()=>n(sd(n(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function ad(){const e=S0(Aa()).domain([1,10]);return e.copy=()=>To(e,ad()).base(e.base()),nn.apply(e,arguments),e}function Hl(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function P0(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function R0(e){return e<0?-e*e:e*e}function _0(e){var t=e(rt,rt),n=1;function i(){return n===1?e(rt,rt):n===.5?e(P0,R0):e(Hl(n),Hl(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,i()):n},Ra(t)}function _a(){var e=_0(Aa());return e.copy=function(){return To(e,_a()).exponent(e.exponent())},nn.apply(e,arguments),e}function E0(){return _a.apply(null,arguments).exponent(.5)}function cd(){var e=[.5],t=[0,1],n,i=1;function o(s){return s!=null&&s<=s?t[Gf(e,s,0,i)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var a=t.indexOf(s);return[e[a-1],e[a]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return cd().domain(e).range(t).unknown(n)},nn.apply(o,arguments)}const ls=new Date,us=new Date;function Ce(e,t,n,i){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const a=o(s),c=o.ceil(s);return s-a<c-s?a:c},o.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),o.range=(s,a,c)=>{const u=[];if(s=o.ceil(s),c=c==null?1:Math.floor(c),!(s<a)||!(c>0))return u;let l;do u.push(l=new Date(+s)),t(s,c),e(s);while(l<s&&s<a);return u},o.filter=s=>Ce(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,c)=>{if(a>=a)if(c<0)for(;++c<=0;)for(;t(a,-1),!s(a););else for(;--c>=0;)for(;t(a,1),!s(a););}),n&&(o.count=(s,a)=>(ls.setTime(+s),us.setTime(+a),e(ls),e(us),Math.floor(n(ls,us))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(i?a=>i(a)%s===0:a=>o.count(0,a)%s===0):o)),o}const Hi=Ce(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Hi.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ce(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Hi);Hi.range;const It=1e3,it=It*60,$t=it*60,Dt=$t*24,Ea=Dt*7,Bl=Dt*30,fs=Dt*365,fn=Ce(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCSeconds());fn.range;const Ma=Ce(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getMinutes());Ma.range;const Ia=Ce(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*it)},(e,t)=>(t-e)/it,e=>e.getUTCMinutes());Ia.range;const $a=Ce(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*It-e.getMinutes()*it)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getHours());$a.range;const ja=Ce(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getUTCHours());ja.range;const Xr=Ce(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*it)/Dt,e=>e.getDate()-1);Xr.range;const ko=Ce(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dt,e=>e.getUTCDate()-1);ko.range;const ld=Ce(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dt,e=>Math.floor(e/Dt));ld.range;function xn(e){return Ce(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*it)/Ea)}const Co=xn(0),Bi=xn(1),M0=xn(2),I0=xn(3),qn=xn(4),$0=xn(5),j0=xn(6);Co.range;Bi.range;M0.range;I0.range;qn.range;$0.range;j0.range;function vn(e){return Ce(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ea)}const Ao=vn(0),Wi=vn(1),N0=vn(2),D0=vn(3),Un=vn(4),L0=vn(5),F0=vn(6);Ao.range;Wi.range;N0.range;D0.range;Un.range;L0.range;F0.range;const Na=Ce(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Na.range;const Da=Ce(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Da.range;const Lt=Ce(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Lt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ce(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lt.range;const Ft=Ce(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ft.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ce(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ft.range;function ud(e,t,n,i,o,s){const a=[[fn,1,It],[fn,5,5*It],[fn,15,15*It],[fn,30,30*It],[s,1,it],[s,5,5*it],[s,15,15*it],[s,30,30*it],[o,1,$t],[o,3,3*$t],[o,6,6*$t],[o,12,12*$t],[i,1,Dt],[i,2,2*Dt],[n,1,Ea],[t,1,Bl],[t,3,3*Bl],[e,1,fs]];function c(l,f,d){const p=f<l;p&&([l,f]=[f,l]);const m=d&&typeof d.range=="function"?d:u(l,f,d),g=m?m.range(l,+f+1):[];return p?g.reverse():g}function u(l,f,d){const p=Math.abs(f-l)/d,m=wa(([,,y])=>y).right(a,p);if(m===a.length)return e.every(Ls(l/fs,f/fs,d));if(m===0)return Hi.every(Math.max(Ls(l,f,d),1));const[g,h]=a[p/a[m-1][2]<a[m][2]/p?m-1:m];return g.every(h)}return[c,u]}const[q0,U0]=ud(Ft,Da,Ao,ld,ja,Ia),[z0,V0]=ud(Lt,Na,Co,Xr,$a,Ma);function ds(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ps(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function or(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function H0(e){var t=e.dateTime,n=e.date,i=e.time,o=e.periods,s=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,l=sr(o),f=ar(o),d=sr(s),p=ar(s),m=sr(a),g=ar(a),h=sr(c),y=ar(c),b=sr(u),v=ar(u),T={a:z,A:B,b:ee,B:j,c:null,d:Ql,e:Ql,f:px,g:Tx,G:Cx,H:ux,I:fx,j:dx,L:fd,m:hx,M:mx,p:U,q:W,Q:eu,s:tu,S:gx,u:yx,U:bx,V:xx,w:vx,W:Ox,x:null,X:null,y:wx,Y:kx,Z:Ax,"%":Jl},O={a:X,A:G,b:Y,B:Z,c:null,d:Zl,e:Zl,f:_x,g:qx,G:zx,H:Sx,I:Px,j:Rx,L:pd,m:Ex,M:Mx,p:Q,q:J,Q:eu,s:tu,S:Ix,u:$x,U:jx,V:Nx,w:Dx,W:Lx,x:null,X:null,y:Fx,Y:Ux,Z:Vx,"%":Jl},w={a:D,A:E,b:x,B:P,c:C,d:Xl,e:Xl,f:sx,g:Gl,G:Yl,H:Kl,I:Kl,j:nx,L:ox,m:tx,M:rx,p:$,q:ex,Q:cx,s:lx,S:ix,u:X0,U:K0,V:Q0,w:G0,W:Z0,x:I,X:F,y:Gl,Y:Yl,Z:J0,"%":ax};T.x=k(n,T),T.X=k(i,T),T.c=k(t,T),O.x=k(n,O),O.X=k(i,O),O.c=k(t,O);function k(q,H){return function(K){var _=[],oe=-1,se=0,xe=q.length,we,$e,Vt;for(K instanceof Date||(K=new Date(+K));++oe<xe;)q.charCodeAt(oe)===37&&(_.push(q.slice(se,oe)),($e=Wl[we=q.charAt(++oe)])!=null?we=q.charAt(++oe):$e=we==="e"?" ":"0",(Vt=H[we])&&(we=Vt(K,$e)),_.push(we),se=oe+1);return _.push(q.slice(se,oe)),_.join("")}}function R(q,H){return function(K){var _=or(1900,void 0,1),oe=N(_,q,K+="",0),se,xe;if(oe!=K.length)return null;if("Q"in _)return new Date(_.Q);if("s"in _)return new Date(_.s*1e3+("L"in _?_.L:0));if(H&&!("Z"in _)&&(_.Z=0),"p"in _&&(_.H=_.H%12+_.p*12),_.m===void 0&&(_.m="q"in _?_.q:0),"V"in _){if(_.V<1||_.V>53)return null;"w"in _||(_.w=1),"Z"in _?(se=ps(or(_.y,0,1)),xe=se.getUTCDay(),se=xe>4||xe===0?Wi.ceil(se):Wi(se),se=ko.offset(se,(_.V-1)*7),_.y=se.getUTCFullYear(),_.m=se.getUTCMonth(),_.d=se.getUTCDate()+(_.w+6)%7):(se=ds(or(_.y,0,1)),xe=se.getDay(),se=xe>4||xe===0?Bi.ceil(se):Bi(se),se=Xr.offset(se,(_.V-1)*7),_.y=se.getFullYear(),_.m=se.getMonth(),_.d=se.getDate()+(_.w+6)%7)}else("W"in _||"U"in _)&&("w"in _||(_.w="u"in _?_.u%7:"W"in _?1:0),xe="Z"in _?ps(or(_.y,0,1)).getUTCDay():ds(or(_.y,0,1)).getDay(),_.m=0,_.d="W"in _?(_.w+6)%7+_.W*7-(xe+5)%7:_.w+_.U*7-(xe+6)%7);return"Z"in _?(_.H+=_.Z/100|0,_.M+=_.Z%100,ps(_)):ds(_)}}function N(q,H,K,_){for(var oe=0,se=H.length,xe=K.length,we,$e;oe<se;){if(_>=xe)return-1;if(we=H.charCodeAt(oe++),we===37){if(we=H.charAt(oe++),$e=w[we in Wl?H.charAt(oe++):we],!$e||(_=$e(q,K,_))<0)return-1}else if(we!=K.charCodeAt(_++))return-1}return _}function $(q,H,K){var _=l.exec(H.slice(K));return _?(q.p=f.get(_[0].toLowerCase()),K+_[0].length):-1}function D(q,H,K){var _=m.exec(H.slice(K));return _?(q.w=g.get(_[0].toLowerCase()),K+_[0].length):-1}function E(q,H,K){var _=d.exec(H.slice(K));return _?(q.w=p.get(_[0].toLowerCase()),K+_[0].length):-1}function x(q,H,K){var _=b.exec(H.slice(K));return _?(q.m=v.get(_[0].toLowerCase()),K+_[0].length):-1}function P(q,H,K){var _=h.exec(H.slice(K));return _?(q.m=y.get(_[0].toLowerCase()),K+_[0].length):-1}function C(q,H,K){return N(q,t,H,K)}function I(q,H,K){return N(q,n,H,K)}function F(q,H,K){return N(q,i,H,K)}function z(q){return a[q.getDay()]}function B(q){return s[q.getDay()]}function ee(q){return u[q.getMonth()]}function j(q){return c[q.getMonth()]}function U(q){return o[+(q.getHours()>=12)]}function W(q){return 1+~~(q.getMonth()/3)}function X(q){return a[q.getUTCDay()]}function G(q){return s[q.getUTCDay()]}function Y(q){return u[q.getUTCMonth()]}function Z(q){return c[q.getUTCMonth()]}function Q(q){return o[+(q.getUTCHours()>=12)]}function J(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var H=k(q+="",T);return H.toString=function(){return q},H},parse:function(q){var H=R(q+="",!1);return H.toString=function(){return q},H},utcFormat:function(q){var H=k(q+="",O);return H.toString=function(){return q},H},utcParse:function(q){var H=R(q+="",!0);return H.toString=function(){return q},H}}}var Wl={"-":"",_:" ",0:"0"},Ae=/^\s*\d+/,B0=/^%/,W0=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",s=o.length;return i+(s<n?new Array(n-s+1).join(t)+o:o)}function Y0(e){return e.replace(W0,"\\$&")}function sr(e){return new RegExp("^(?:"+e.map(Y0).join("|")+")","i")}function ar(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function G0(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function X0(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function K0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Q0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Z0(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function Yl(e,t,n){var i=Ae.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Gl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function J0(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ex(e,t,n){var i=Ae.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function tx(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function Xl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function nx(e,t,n){var i=Ae.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Kl(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function rx(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function ix(e,t,n){var i=Ae.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function ox(e,t,n){var i=Ae.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function sx(e,t,n){var i=Ae.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ax(e,t,n){var i=B0.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function cx(e,t,n){var i=Ae.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function lx(e,t,n){var i=Ae.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Ql(e,t){return ce(e.getDate(),t,2)}function ux(e,t){return ce(e.getHours(),t,2)}function fx(e,t){return ce(e.getHours()%12||12,t,2)}function dx(e,t){return ce(1+Xr.count(Lt(e),e),t,3)}function fd(e,t){return ce(e.getMilliseconds(),t,3)}function px(e,t){return fd(e,t)+"000"}function hx(e,t){return ce(e.getMonth()+1,t,2)}function mx(e,t){return ce(e.getMinutes(),t,2)}function gx(e,t){return ce(e.getSeconds(),t,2)}function yx(e){var t=e.getDay();return t===0?7:t}function bx(e,t){return ce(Co.count(Lt(e)-1,e),t,2)}function dd(e){var t=e.getDay();return t>=4||t===0?qn(e):qn.ceil(e)}function xx(e,t){return e=dd(e),ce(qn.count(Lt(e),e)+(Lt(e).getDay()===4),t,2)}function vx(e){return e.getDay()}function Ox(e,t){return ce(Bi.count(Lt(e)-1,e),t,2)}function wx(e,t){return ce(e.getFullYear()%100,t,2)}function Tx(e,t){return e=dd(e),ce(e.getFullYear()%100,t,2)}function kx(e,t){return ce(e.getFullYear()%1e4,t,4)}function Cx(e,t){var n=e.getDay();return e=n>=4||n===0?qn(e):qn.ceil(e),ce(e.getFullYear()%1e4,t,4)}function Ax(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Zl(e,t){return ce(e.getUTCDate(),t,2)}function Sx(e,t){return ce(e.getUTCHours(),t,2)}function Px(e,t){return ce(e.getUTCHours()%12||12,t,2)}function Rx(e,t){return ce(1+ko.count(Ft(e),e),t,3)}function pd(e,t){return ce(e.getUTCMilliseconds(),t,3)}function _x(e,t){return pd(e,t)+"000"}function Ex(e,t){return ce(e.getUTCMonth()+1,t,2)}function Mx(e,t){return ce(e.getUTCMinutes(),t,2)}function Ix(e,t){return ce(e.getUTCSeconds(),t,2)}function $x(e){var t=e.getUTCDay();return t===0?7:t}function jx(e,t){return ce(Ao.count(Ft(e)-1,e),t,2)}function hd(e){var t=e.getUTCDay();return t>=4||t===0?Un(e):Un.ceil(e)}function Nx(e,t){return e=hd(e),ce(Un.count(Ft(e),e)+(Ft(e).getUTCDay()===4),t,2)}function Dx(e){return e.getUTCDay()}function Lx(e,t){return ce(Wi.count(Ft(e)-1,e),t,2)}function Fx(e,t){return ce(e.getUTCFullYear()%100,t,2)}function qx(e,t){return e=hd(e),ce(e.getUTCFullYear()%100,t,2)}function Ux(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function zx(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Un(e):Un.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function Vx(){return"+0000"}function Jl(){return"%"}function eu(e){return+e}function tu(e){return Math.floor(+e/1e3)}var An,md,gd;Hx({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Hx(e){return An=H0(e),md=An.format,An.parse,gd=An.utcFormat,An.utcParse,An}function Bx(e){return new Date(e)}function Wx(e){return e instanceof Date?+e:+new Date(+e)}function La(e,t,n,i,o,s,a,c,u,l){var f=nd(),d=f.invert,p=f.domain,m=l(".%L"),g=l(":%S"),h=l("%I:%M"),y=l("%I %p"),b=l("%a %d"),v=l("%b %d"),T=l("%B"),O=l("%Y");function w(k){return(u(k)<k?m:c(k)<k?g:a(k)<k?h:s(k)<k?y:i(k)<k?o(k)<k?b:v:n(k)<k?T:O)(k)}return f.invert=function(k){return new Date(d(k))},f.domain=function(k){return arguments.length?p(Array.from(k,Wx)):p().map(Bx)},f.ticks=function(k){var R=p();return e(R[0],R[R.length-1],k??10)},f.tickFormat=function(k,R){return R==null?w:l(R)},f.nice=function(k){var R=p();return(!k||typeof k.range!="function")&&(k=t(R[0],R[R.length-1],k??10)),k?p(sd(R,k)):f},f.copy=function(){return To(f,La(e,t,n,i,o,s,a,c,u,l))},f}function yd(){return nn.apply(La(z0,V0,Lt,Na,Co,Xr,$a,Ma,fn,md).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yx(){return nn.apply(La(q0,U0,Ft,Da,Ao,ko,ja,Ia,fn,gd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gx(){var e=0,t=1,n,i,o,s,a=rt,c=!1,u;function l(d){return d==null||isNaN(d=+d)?u:a(o===0?.5:(d=(s(d)-n)*o,c?Math.max(0,Math.min(1,d)):d))}l.domain=function(d){return arguments.length?([e,t]=d,n=s(e=+e),i=s(t=+t),o=n===i?0:1/(i-n),l):[e,t]},l.clamp=function(d){return arguments.length?(c=!!d,l):c},l.interpolator=function(d){return arguments.length?(a=d,l):a};function f(d){return function(p){var m,g;return arguments.length?([m,g]=p,a=d(m,g),l):[a(0),a(1)]}}return l.range=f(wo),l.rangeRound=f(td),l.unknown=function(d){return arguments.length?(u=d,l):u},function(d){return s=d,n=d(e),i=d(t),o=n===i?0:1/(i-n),l}}function Xx(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bd(){var e=Ra(Gx()(rt));return e.copy=function(){return Xx(e,bd())},Nb.apply(e,arguments)}function zs(e){return e.scaleType==="band"}function xd(e){return e.scaleType==="point"}function Kx(e){return e.type==="piecewise"?cd(e.thresholds,e.colors):bd([e.min??0,e.max??100],e.color)}function Yi(e){return e.values?qi(e.values,e.colors).unknown(e.unknownColor??null):qi(e.colors.map((t,n)=>n),e.colors).unknown(e.unknownColor??null)}function Pi(e){return e.type==="ordinal"?Yi(e):Kx(e)}function gn(e){return e.bandwidth!==void 0}function Fa(e){return typeof e=="number"&&!Number.isFinite(e)}function Qx(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:i,range:o,domain:s}=e,a=n===void 0?999:Math.floor(Math.abs(s[1]-s[0])/n),c=t===void 0?2:Math.ceil(Math.abs(s[1]-s[0])/t),u=i??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(c,u))}const hs={start:0,extremities:0,end:1,middle:.5};function So(e){const{scale:t,tickNumber:n,valueFormatter:i,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:a="middle"}=e;return M.useMemo(()=>{if(gn(t)){const l=t.domain();return t.bandwidth()>0?[...(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(p=>({value:p,formattedValue:i?.(p,{location:"tick"})??`${p}`,offset:t(p)-(t.step()-t.bandwidth())/2+hs[s]*t.step(),labelOffset:a==="tick"?0:t.step()*(hs[a]-hs[s])})),...s==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&l.filter(o)||typeof o=="object"&&o||l).map(d=>({value:d,formattedValue:i?.(d,{location:"tick"})??`${d}`,offset:t(d),labelOffset:0}))}return t.domain().some(Fa)?[]:(typeof o=="object"?o:t.ticks(n)).map(l=>({value:l,formattedValue:i?.(l,{location:"tick"})??t.tickFormat(n)(l),offset:t(l),labelOffset:0}))},[t,o,n,i,s,a])}function Zx(e,t,n){switch(e){case"log":return ad(t,n);case"pow":return _a(t,n);case"sqrt":return E0(t,n);case"time":return yd(t,n);case"utc":return Yx(t,n);default:return od(t,n)}}const ms=(e,t)=>{const n=e[1]-e[0],i=t[1]-t[0],o=e[0]-t[0]*n/i,s=e[1]+(100-t[1])*n/i;return[o,s]},Jx=(e,t,n,i,o,s,a)=>{const c=i[t],u=s[t]?.series??{},[l,f]=c?.({series:u,axis:n,axisIndex:o,isDefaultAxis:o===0,getFilters:a})??[1/0,-1/0],[d,p]=e;return[Math.min(l,d),Math.max(f,p)]},ev=(e,t,n,i,o)=>{const a=Object.keys(t).reduce((c,u)=>Jx(c,u,e,t,n,i,o),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a};function tv(e,t,n){if(t==="rotation"){const{startAngle:o=0,endAngle:s=o+360}=n;return n.reverse?[Math.PI*o/180,Math.PI*s/180]:[Math.PI*s/180,Math.PI*o/180]}if(t==="radius"){const{minRadius:o=0,maxRadius:s=Math.min(e.width,e.height)/2}=n;return[o,s]}const i=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[i[1],i[0]]:i}const nu=e=>e?.[0]instanceof Date;function ru(e,t){const n=yd(e.data,t);return(i,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(i):`${i.toLocaleString()}`}const nv=.2,rv=.1;function iu({drawingArea:e,formattedSeries:t,axis:n,extremumGetters:i,axisDirection:o,zoomData:s,zoomOptions:a,getFilters:c}){const u={};return n.forEach((l,f)=>{const d=l,p=a?.[d.id],m=s?.find(({axisId:C})=>C===d.id),g=m?[m.start,m.end]:[0,100],h=tv(e,o,d),[y,b]=ev(d,i,f,t,m===void 0&&!p?c:void 0),v=d.data??[];if(zs(d)){const C=d.categoryGapRatio??nv,I=d.barGapRatio??rv,F=o==="y"?[h[1],h[0]]:h,z=ms(F,g);if(u[d.id]=S({categoryGapRatio:C,barGapRatio:I},d,{data:v,scale:Ta(d.data,z).paddingInner(C).paddingOuter(C/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Yi(S({values:d.data},d.colorMap)):Pi(d.colorMap))}),nu(d.data)){const B=ru(d,F);u[d.id].valueFormatter=d.valueFormatter??B}}if(xd(d)){const C=o==="y"?[...h].reverse():h,I=ms(C,g);if(u[d.id]=S({},d,{data:v,scale:Db(d.data,I),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Yi(S({values:d.data},d.colorMap)):Pi(d.colorMap))}),nu(d.data)){const F=ru(d,C);u[d.id].valueFormatter=d.valueFormatter??F}}if(d.scaleType==="band"||d.scaleType==="point")return;const T=d.scaleType??"linear",O=d.domainLimit??"nice",w=[d.min??y,d.max??b];if(typeof O=="function"){const{min:C,max:I}=O(y,b);w[0]=C,w[1]=I}const k=Qx(S({},d,{range:h,domain:w})),R=k/((g[1]-g[0])/100),N=ms(h,g),$=Zx(T,w,N),D=O==="nice"?$.nice(k):$,[E,x]=D.domain(),P=[d.min??E,d.max??x];u[d.id]=S({},d,{data:v,scaleType:T,scale:D.domain(P),tickNumber:R,colorScale:d.colorMap&&Pi(d.colorMap)})}),{axis:u,axisIds:n.map(({id:l})=>l)}}const zt="DEFAULT_X_AXIS_KEY",qa="DEFAULT_Y_AXIS_KEY",iv={top:50,bottom:50,left:50,right:50},ov=(e,t,n)=>{const i=S({},iv,n);return M.useMemo(()=>({left:i.left,top:i.top,right:i.right,bottom:i.bottom,width:Math.max(0,e-i.left-i.right),height:Math.max(0,t-i.top-i.bottom)}),[e,t,i.top,i.bottom,i.left,i.right])},Qn=M.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1});process.env.NODE_ENV!=="production"&&(Qn.displayName="DrawingContext");const Ua=M.createContext({isInitialized:!1,data:{current:null}});process.env.NODE_ENV!=="production"&&(Ua.displayName="SvgContext");function sv(e){const{width:t,height:n,margin:i,svgRef:o,children:s}=e,a=ov(t,n,i),c=ya(),u=M.useCallback(({x:d,y:p},m)=>{if(m?.targetElement&&m?.targetElement.closest("[data-drawing-container]"))return!0;const g=d>=a.left-1&&d<=a.left+a.width,h=p>=a.top-1&&p<=a.top+a.height;return m?.direction==="x"?g:(m?.direction==="y"||g)&&h},[a]),l=M.useMemo(()=>S({chartId:c??""},a,{isPointInside:u}),[c,a,u]),f=M.useMemo(()=>({isInitialized:!0,data:o}),[o]);return A.jsx(Ua.Provider,{value:f,children:A.jsx(Qn.Provider,{value:l,children:s})})}function We(){const{left:e,top:t,width:n,height:i,bottom:o,right:s,isPointInside:a}=M.useContext(Qn);return M.useMemo(()=>({left:e,top:t,width:n,height:i,bottom:o,right:s,isPointInside:a}),[i,e,t,n,o,s,a])}const av=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function cv(e,t,n=av){return e.type==="pie"?S({},e,{data:e.data.map((i,o)=>S({color:n[o%n.length]},i))}):S({color:n[t%n.length]},e)}const lv=({series:e,colors:t,seriesFormatters:n,dataset:i})=>{const o={};e.forEach((a,c)=>{const{id:u=`auto-generated-id-${c}`,type:l}=a;if(o[l]===void 0&&(o[l]={series:{},seriesOrder:[]}),o[l]?.series[u]!==void 0)throw new Error(`MUI X: series' id "${u}" is not unique.`);o[l].series[u]=S({id:u},cv(a,c,t)),o[l].seriesOrder.push(u)});const s={};return Object.keys(n).forEach(a=>{const c=o[a];c!==void 0&&(s[a]=n[a]?.(c,i)??o[a])}),s},uv=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],fv=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],dv=e=>e==="dark"?fv:uv,za=M.createContext({isInitialized:!1,data:{}});process.env.NODE_ENV!=="production"&&(za.displayName="SeriesContext");const Zn=M.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});process.env.NODE_ENV!=="production"&&(Zn.displayName="PluginContext");const ou=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},vd=e=>{const{axis:t,getFilters:n,isDefaultAxis:i}=e,o=n?.({currentAxisId:t.id,isDefaultAxis:i}),s=o?t.data?.filter((u,l)=>o({x:null,y:null},l)):t.data,a=Math.min(...s??[]),c=Math.max(...s??[]);return[a,c]},Od=e=>t=>{const{series:n,axis:i,getFilters:o,isDefaultAxis:s}=t;return Object.keys(n).filter(a=>{const c=n[a].yAxisId??n[a].yAxisKey;return c===i.id||s&&c===void 0}).reduce((a,c)=>{const{stackedData:u}=n[c],l=o?.({currentAxisId:i.id,isDefaultAxis:s,seriesXAxisId:n[c].xAxisId??n[c].xAxisKey,seriesYAxisId:n[c].yAxisId??n[c].yAxisKey}),[f,d]=u?.reduce((p,m,g)=>l&&(!l(ou(m[0],e),g)||!l(ou(m[1],e),g))?p:[Math.min(...m,p[0]),Math.max(...m,p[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(f,a[0]),Math.max(d,a[1])]},[1/0,-1/0])},pv=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Od("x")(e):vd(e),hv=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?vd(e):Od("y")(e),su=new Set;function Po(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
35
+ `):e;su.has(n)||(su.add(n),t==="error"?console.error(n):console.warn(n))}const gs={appearance:Bf,ascending:Wf,descending:wb,insideOut:Tb,none:Ln,reverse:kb},ys={expand:yb,diverging:bb,none:Dn,silhouette:xb,wiggle:vb},wd=e=>{const{series:t,seriesOrder:n,defaultStrategy:i}=e,o=[],s={};return n.forEach(a=>{const{stack:c,stackOrder:u,stackOffset:l}=t[a];c===void 0?o.push({ids:[a],stackingOrder:gs.none,stackingOffset:ys.none}):s[c]===void 0?(s[c]=o.length,o.push({ids:[a],stackingOrder:gs[u??i?.stackOrder??"none"],stackingOffset:ys[l??i?.stackOffset??"diverging"]})):(o[s[c]].ids.push(a),u!==void 0&&(o[s[c]].stackingOrder=gs[u]),l!==void 0&&(o[s[c]].stackingOffset=ys[l]))}),o};function Td(e,t){const n={};return Object.keys(e).forEach(i=>{n[i]=S({},e[i],{valueFormatter:e[i].valueFormatter??t})}),n}const mv=(e,t)=>{const{seriesOrder:n,series:i}=e,o=wd(e),s=t??[];n.forEach(c=>{const u=i[c].data;if(u!==void 0)u.forEach((l,f)=>{s.length<=f?s.push({[c]:l}):s[f][c]=l});else if(t===void 0)throw new Error([`MUI X: bar series with id='${c}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
36
+ `))});const a={};return o.forEach(c=>{const{ids:u,stackingOffset:l,stackingOrder:f}=c,d=Hf().keys(u.map(p=>{const m=i[p].dataKey;return i[p].data===void 0&&m!==void 0?m:p})).value((p,m)=>p[m]??0).order(f).offset(l)(s);u.forEach((p,m)=>{const g=i[p].dataKey;a[p]=S({layout:"vertical"},i[p],{data:g?t.map(h=>{const y=h[g];return typeof y!="number"?(process.env.NODE_ENV!=="production"&&y!==null&&Po([`MUI X: your dataset key "${g}" is used for plotting bars, but contains nonnumerical elements.`,"Bar plots only support numbers and null values."]),0):y}):i[p].data,stackedData:d[m].map(([h,y])=>[h,y])})})}),{seriesOrder:n,stackingGroups:o,series:Td(a,c=>c==null?"":c.toLocaleString())}},kd=(e,t,n)=>{const i=e.layout==="vertical",o=i?t?.colorScale:n?.colorScale,s=i?n?.colorScale:t?.colorScale,a=i?t?.data:n?.data;return s?c=>{const u=e.data[c],l=u===null?e.color:s(u);return l===null?e.color:l}:o&&a?c=>{const u=a[c],l=u===null?e.color:o(u);return l===null?e.color:l}:()=>e.color},gv={seriesType:"bar",seriesFormatter:mv,colorProcessor:kd,xExtremumGetter:pv,yExtremumGetter:hv},Gi=(e,t)=>[t[0]===null?e[0]:Math.min(e[0],t[0]),t[1]===null?e[1]:Math.max(e[1],t[1])],yv=e=>{const{series:t,axis:n,isDefaultAxis:i,getFilters:o}=e;return Object.keys(t).filter(s=>{const a=t[s].xAxisId??t[s].xAxisKey;return a===n.id||a===void 0&&i}).reduce((s,a)=>{const c=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),u=t[a].data?.reduce((l,f,d)=>c&&!c(f,d)?l:Gi(l,[f.x,f.x]),[1/0,-1/0]);return Gi(s,u??[1/0,-1/0])},[1/0,-1/0])},bv=e=>{const{series:t,axis:n,isDefaultAxis:i,getFilters:o}=e;return Object.keys(t).filter(s=>{const a=t[s].yAxisId??t[s].yAxisKey;return a===n.id||a===void 0&&i}).reduce((s,a)=>{const c=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),u=t[a].data?.reduce((l,f,d)=>c&&!c(f,d)?l:Gi(l,[f.y,f.y]),[1/0,-1/0]);return Gi(s,u??[1/0,-1/0])},[1/0,-1/0])},xv=({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([o,s])=>{const a=s?.datasetKeys,c=["x","y","id"].filter(l=>typeof a?.[l]!="string");if(s?.datasetKeys&&c.length>0)throw new Error([`MUI X: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${c.map(l=>`"${l}"`).join(", ")} are missing.`].join(`
37
+ `));const u=a?n?.map(l=>({x:l[a.x]??null,y:l[a.y]??null,z:a.z&&l[a.z],id:l[a.id]}))??[]:s.data??[];return[o,S({},s,{data:u,valueFormatter:s.valueFormatter??(l=>`(${l.x}, ${l.y})`)})]})),seriesOrder:t}),vv=(e,t,n,i)=>{const o=i?.colorScale,s=n?.colorScale,a=t?.colorScale;return o?c=>{if(i?.data?.[c]!==void 0){const f=o(i?.data?.[c]);if(f!==null)return f}const u=e.data[c],l=u===null?e.color:o(u.z);return l===null?e.color:l}:s?c=>{const u=e.data[c],l=u===null?e.color:s(u.y);return l===null?e.color:l}:a?c=>{const u=e.data[c],l=u===null?e.color:a(u.x);return l===null?e.color:l}:()=>e.color},Ov={seriesType:"scatter",seriesFormatter:xv,colorProcessor:vv,xExtremumGetter:yv,yExtremumGetter:bv},wv=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),i=Math.max(...t.data??[]);return[n,i]};function Tv(e,t,n){return t.reduce((i,o,s)=>{const[a,c]=e(o);return n&&(!n({y:a,x:null},s)||!n({y:c,x:null},s))?i:[Math.min(a,c,i[0]),Math.max(a,c,i[1])]},[1/0,-1/0])}const kv=e=>{const{series:t,axis:n,isDefaultAxis:i,getFilters:o}=e;return Object.keys(t).filter(s=>{const a=t[s].yAxisId??t[s].yAxisKey;return a===n.id||i&&a===void 0}).reduce((s,a)=>{const{area:c,stackedData:u}=t[a],l=c!==void 0,f=o?.({currentAxisId:n.id,isDefaultAxis:i,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),d=l&&n.scaleType!=="log"&&typeof t[a].baseline!="string"?h=>h:h=>[h[1],h[1]],p=Tv(d,u,f),[m,g]=p;return[Math.min(m,s[0]),Math.max(g,s[1])]},[1/0,-1/0])},Cv=(e,t)=>{const{seriesOrder:n,series:i}=e,o=wd(S({},e,{defaultStrategy:{stackOffset:"none"}})),s=t??[];n.forEach(c=>{const u=i[c].data;if(u!==void 0)u.forEach((l,f)=>{s.length<=f?s.push({[c]:l}):s[f][c]=l});else if(t===void 0&&process.env.NODE_ENV!=="production")throw new Error([`MUI X: line series with id='${c}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
38
+ `))});const a={};return o.forEach(c=>{const{ids:u,stackingOrder:l,stackingOffset:f}=c,d=Hf().keys(u.map(p=>{const m=i[p].dataKey;return i[p].data===void 0&&m!==void 0?m:p})).value((p,m)=>p[m]??0).order(l).offset(f)(s);u.forEach((p,m)=>{const g=i[p].dataKey;a[p]=S({},i[p],{data:g?t.map(h=>{const y=h[g];return typeof y!="number"?(process.env.NODE_ENV!=="production"&&y!==null&&Po([`MUI X: Your dataset key "${g}" is used for plotting line, but contains nonnumerical elements.`,"Line plots only support numbers and null values."]),null):y}):i[p].data,stackedData:d[m].map(([h,y])=>[h,y])})})}),{seriesOrder:n,stackingGroups:o,series:Td(a,c=>c==null?"":c.toLocaleString())}},Va=(e,t,n)=>{const i=n?.colorScale,o=t?.colorScale;return i?s=>{const a=e.data[s],c=a===null?e.color:i(a);return c===null?e.color:c}:o?s=>{const a=t.data?.[s],c=a===null?e.color:o(a);return c===null?e.color:c}:()=>e.color},Av={seriesType:"line",colorProcessor:Va,seriesFormatter:Cv,xExtremumGetter:wv,yExtremumGetter:kv};function ht(e,t){return typeof e=="function"?e(t):e}const Sv=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Pv=e=>{const{seriesOrder:t,series:n}=e,i={};return t.forEach(o=>{const s=Gy().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(Sv(n[o].sortingValues??"none"))(n[o].data.map(a=>a.value));i[o]=S({valueFormatter:a=>a.value.toLocaleString()},n[o],{data:n[o].data.map((a,c)=>S({},a,{id:a.id??`auto-generated-pie-id-${o}-${c}`},s[c])).map((a,c)=>S({},a,{formattedValue:n[o].valueFormatter?.(S({},a,{label:ht(a.label,"arc")}),{dataIndex:c})??a.value.toLocaleString()}))})}),{seriesOrder:t,series:i}},Rv=e=>t=>e.data[t].color,_v={seriesType:"pie",colorProcessor:Rv,seriesFormatter:Pv},Ev=[gv,Ov,Av,_v];function Mv(e){const t=e??Ev,n={},i={},o={},s={},a={},c={};for(let u=0;u<t.length;u+=1){const l=t[u],f=l.seriesType;n[f]=l.seriesFormatter,i[f]=l.colorProcessor,l.xExtremumGetter&&(o[f]=l.xExtremumGetter),l.yExtremumGetter&&(s[f]=l.yExtremumGetter),l.rotationExtremumGetter&&(a[f]=l.rotationExtremumGetter),l.radiusExtremumGetter&&(c[f]=l.radiusExtremumGetter)}return{seriesFormatters:n,colorProcessors:i,xExtremumGetters:o,yExtremumGetters:s,rotationExtremumGetters:a,radiusExtremumGetters:c}}function Iv(e){const{children:t,plugins:n}=e,i=M.useMemo(()=>({isInitialized:!0,data:Mv(n)}),[n]);return A.jsx(Zn.Provider,{value:i,children:t})}function Cd(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
39
+ `));return n.colorProcessors}function $v(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
40
+ `));return n.seriesFormatters}function jv(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
41
+ `));return n.xExtremumGetters}function Nv(e){const{isInitialized:t,data:n}=M.useContext(Zn);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
42
+ `));return n.yExtremumGetters}function Dv(e){const{series:t,dataset:n,colors:i=dv,children:o}=e,s=$v(),a=Ut(),c=M.useMemo(()=>({isInitialized:!0,data:lv({series:t,colors:typeof i=="function"?i(a.palette.mode):i,seriesFormatters:s,dataset:n})}),[t,i,a.palette.mode,s,n]);return A.jsx(za.Provider,{value:c,children:o})}function St(){const{isInitialized:e,data:t}=M.useContext(za);if(!e)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
43
+ `));return t}function Lv(){const e=St();return M.useMemo(()=>e.pie,[e.pie])}function Ro(){const e=St();return M.useMemo(()=>e.line,[e.line])}function Fv(){const e=St();return M.useMemo(()=>e.bar,[e.bar])}const Ha=M.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});process.env.NODE_ENV!=="production"&&(Ha.displayName="CartesianContext");function qv(e){const{xAxis:t,yAxis:n,children:i}=e,o=St(),s=We(),a=jv(),c=Nv(),u=M.useMemo(()=>iu({drawingArea:s,formattedSeries:o,axis:t,extremumGetters:a,axisDirection:"x"}),[s,o,t,a]),l=M.useMemo(()=>iu({drawingArea:s,formattedSeries:o,axis:n,extremumGetters:c,axisDirection:"y"}),[s,o,n,c]),f=M.useMemo(()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:l.axis,xAxisIds:u.axisIds,yAxisIds:l.axisIds}}),[u,l]);return A.jsx(Ha.Provider,{value:f,children:i})}const De=()=>{const{data:e}=M.useContext(Ha);return e};function _r(...e){const t=M.useRef(void 0),n=M.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,c=a(i);return typeof c=="function"?c:()=>{a(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return M.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function Uv(e){return typeof e=="string"}function zv(e,t,n){return e===void 0||Uv(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vv(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function au(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Hv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const m=pt(n?.className,s,o?.className,i?.className),g={...n?.style,...o?.style,...i?.style},h={...n,...o,...i};return m.length>0&&(h.className=m),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const a=Vv({...o,...i}),c=au(i),u=au(o),l=t(a),f=pt(l?.className,n?.className,s,o?.className,i?.className),d={...l?.style,...n?.style,...o?.style,...i?.style},p={...l,...n,...u,...c};return f.length>0&&(p.className=f),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}function Bv(e,t,n){return typeof e=="function"?e(t,n):e}function ze(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:Bv(n,i),{props:c,internalRef:u}=Hv({...s,externalSlotProps:a}),l=_r(u,a?.ref,e.additionalProps?.ref);return zv(t,{...c,ref:l},i)}const Pt=M.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null});process.env.NODE_ENV!=="production"&&(Pt.displayName="InteractionContext");const Wv=(e,t)=>{switch(t.type){case"enterItem":return S({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:S({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return S({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:S({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:S({},e,{axis:t.data});default:return e}};function Yv(e){const{children:t}=e,[n,i]=M.useReducer(Wv,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=M.useMemo(()=>S({},n,{dispatch:i}),[n]);return A.jsx(Pt.Provider,{value:o,children:t})}function Gv(e){const{controlled:t,default:n,name:i,state:o="value"}=e,{current:s}=M.useRef(t!==void 0),[a,c]=M.useState(n),u=s?t:a;if(process.env.NODE_ENV!=="production"){M.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${i} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
44
+ `))},[o,i,t]);const{current:f}=M.useRef(n);M.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(f)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
45
+ `))},[JSON.stringify(n)])}const l=M.useCallback(f=>{s||c(f)},[]);return[u,l]}const Ba=M.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}});process.env.NODE_ENV!=="production"&&(Ba.displayName="HighlightedContext");const Xv=(e,t)=>n=>e?e.fade==="series"?n.seriesId===t?.seriesId&&n.dataIndex!==t?.dataIndex:e.fade==="global"?n.seriesId!==t?.seriesId||n.dataIndex!==t?.dataIndex:!1:!1,Kv=(e,t)=>n=>e?e.highlight==="series"?n.seriesId===t?.seriesId:e.highlight==="item"?n.dataIndex===t?.dataIndex&&n.seriesId===t?.seriesId:!1:!1,Qv=["highlighted","faded"],Zv=e=>{const t=e??{},{highlighted:n,faded:i}=t,o=ie(t,Qv);return S({highlight:n,fade:i},o)};function Ad({children:e,highlightedItem:t,onHighlightChange:n}){const[i,o]=Gv({controlled:t,default:null,name:"HighlightedProvider",state:"highlightedItem"}),s=St(),a=M.useMemo(()=>{const l=new Map;return Object.keys(s).forEach(f=>{const d=s[f];Object.keys(d?.series??{}).forEach(p=>{const m=d?.series[p];l.set(p,Zv(m?.highlightScope))})}),l},[s]),c=i&&i.seriesId?a.get(i.seriesId)??void 0:void 0,u=M.useMemo(()=>({isInitialized:!0,data:{highlightScope:c,highlightedItem:i,setHighlighted:l=>{o(l),n?.(l)},clearHighlighted:()=>{o(null),n?.(null)},isHighlighted:Kv(c,i),isFaded:Xv(c,i)}}),[i,c,o,n]);return A.jsx(Ba.Provider,{value:u,children:e})}process.env.NODE_ENV!=="production"&&(Ad.propTypes={children:r.node,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),onHighlightChange:r.func});function _o(){const{isInitialized:e,data:t}=M.useContext(Ba);if(!e)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
46
+ `));return t}function Jn(e){const t=_o();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e),i=!n&&t.isFaded(e);return{isHighlighted:n,isFaded:i}}const Eo=M.createContext({zAxis:{},zAxisIds:[]});process.env.NODE_ENV!=="production"&&(Eo.displayName="ZAxisContext");function Sd(e){const{zAxis:t,dataset:n,children:i}=e,o=M.useMemo(()=>t?.map(a=>{const c=a.dataKey;if(c===void 0||a.data!==void 0)return a;if(n===void 0)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return S({},a,{data:n.map(u=>u[c])})}),[t,n]),s=M.useMemo(()=>{const a=o?.map((u,l)=>S({id:`defaultized-z-axis-${l}`},u))??[],c={};return a.forEach(u=>{c[u.id]=S({},u,{colorScale:u.colorMap&&(u.colorMap.type==="ordinal"&&u.data?Yi(S({values:u.data},u.colorMap)):Pi(u.colorMap.type==="continuous"?S({min:u.min,max:u.max},u.colorMap):u.colorMap))})}),{zAxis:c,zAxisIds:a.map(({id:u})=>u)}},[o]);return A.jsx(Eo.Provider,{value:s,children:i})}process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:r.node,dataset:r.arrayOf(r.object),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});const er=e=>{const{dispatch:t}=M.useContext(Pt),{setHighlighted:n,clearHighlighted:i}=_o();return s=>({onPointerEnter:()=>{t({type:"enterItem",data:s}),n({seriesId:s.seriesId,dataIndex:s.dataIndex})},onPointerLeave:l=>{l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId),t({type:"leaveItem",data:s}),i()},onPointerDown:l=>{l.currentTarget.hasPointerCapture(l.pointerId)&&l.currentTarget.releasePointerCapture(l.pointerId)}})};var Wa=Qr(),ne=e=>Kr(e,Wa),Ya=Qr();ne.write=e=>Kr(e,Ya);var Mo=Qr();ne.onStart=e=>Kr(e,Mo);var Ga=Qr();ne.onFrame=e=>Kr(e,Ga);var Xa=Qr();ne.onFinish=e=>Kr(e,Xa);var Mn=[];ne.setTimeout=(e,t)=>{const n=ne.now()+t,i=()=>{const s=Mn.findIndex(a=>a.cancel==i);~s&&Mn.splice(s,1),Wt-=~s?1:0},o={time:n,handler:e,cancel:i};return Mn.splice(Pd(n),0,o),Wt+=1,Rd(),o};var Pd=e=>~(~Mn.findIndex(t=>t.time>e)||~Mn.length);ne.cancel=e=>{Mo.delete(e),Ga.delete(e),Xa.delete(e),Wa.delete(e),Ya.delete(e)};ne.sync=e=>{Vs=!0,ne.batchedUpdates(e),Vs=!1};ne.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function i(...o){t=o,ne.onStart(n)}return i.handler=e,i.cancel=()=>{Mo.delete(n),t=null},i};var Ka=typeof window<"u"?window.requestAnimationFrame:(()=>{});ne.use=e=>Ka=e;ne.now=typeof performance<"u"?()=>performance.now():Date.now;ne.batchedUpdates=e=>e();ne.catch=console.error;ne.frameLoop="always";ne.advance=()=>{ne.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ed()};var Bt=-1,Wt=0,Vs=!1;function Kr(e,t){Vs?(t.delete(e),e(0)):(t.add(e),Rd())}function Rd(){Bt<0&&(Bt=0,ne.frameLoop!=="demand"&&Ka(_d))}function Jv(){Bt=-1}function _d(){~Bt&&(Ka(_d),ne.batchedUpdates(Ed))}function Ed(){const e=Bt;Bt=ne.now();const t=Pd(Bt);if(t&&(Md(Mn.splice(0,t),n=>n.handler()),Wt-=t),!Wt){Jv();return}Mo.flush(),Wa.flush(e?Math.min(64,Bt-e):16.667),Ga.flush(),Ya.flush(),Xa.flush()}function Qr(){let e=new Set,t=e;return{add(n){Wt+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Wt-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Wt-=t.size,Md(t,i=>i(n)&&e.add(i)),Wt+=e.size,t=e)}}}function Md(e,t){e.forEach(n=>{try{t(n)}catch(i){ne.catch(i)}})}var e1=Object.defineProperty,t1=(e,t)=>{for(var n in t)e1(e,n,{get:t[n],enumerable:!0})},st={};t1(st,{assign:()=>r1,colors:()=>Xt,createStringInterpolator:()=>Za,skipAnimation:()=>$d,to:()=>Id,willAdvance:()=>Ja});function Hs(){}var n1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Mt(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var te=(e,t)=>e.forEach(t);function kt(e,t,n){if(V.arr(e)){for(let i=0;i<e.length;i++)t.call(n,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i)}var je=e=>V.und(e)?[]:V.arr(e)?e:[e];function gr(e,t){if(e.size){const n=Array.from(e);e.clear(),te(n,t)}}var hr=(e,...t)=>gr(e,n=>n(...t)),Qa=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Za,Id,Xt=null,$d=!1,Ja=Hs,r1=e=>{e.to&&(Id=e.to),e.now&&(ne.now=e.now),e.colors!==void 0&&(Xt=e.colors),e.skipAnimation!=null&&($d=e.skipAnimation),e.createStringInterpolator&&(Za=e.createStringInterpolator),e.requestAnimationFrame&&ne.use(e.requestAnimationFrame),e.batchedUpdates&&(ne.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ja=e.willAdvance),e.frameLoop&&(ne.frameLoop=e.frameLoop)},yr=new Set,tt=[],bs=[],Xi=0,Io={get idle(){return!yr.size&&!tt.length},start(e){Xi>e.priority?(yr.add(e),ne.onStart(i1)):(jd(e),ne(Bs))},advance:Bs,sort(e){if(Xi)ne.onFrame(()=>Io.sort(e));else{const t=tt.indexOf(e);~t&&(tt.splice(t,1),Nd(e))}},clear(){tt=[],yr.clear()}};function i1(){yr.forEach(jd),yr.clear(),ne(Bs)}function jd(e){tt.includes(e)||Nd(e)}function Nd(e){tt.splice(o1(tt,t=>t.priority>e.priority),0,e)}function Bs(e){const t=bs;for(let n=0;n<tt.length;n++){const i=tt[n];Xi=i.priority,i.idle||(Ja(i),i.advance(e),i.idle||t.push(i))}return Xi=0,bs=tt,bs.length=0,tt=t,tt.length>0}function o1(e,t){const n=e.findIndex(t);return n<0?e.length:n}var s1={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},dt="[-+]?\\d*\\.?\\d+",Ki=dt+"%";function $o(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var a1=new RegExp("rgb"+$o(dt,dt,dt)),c1=new RegExp("rgba"+$o(dt,dt,dt,dt)),l1=new RegExp("hsl"+$o(dt,Ki,Ki)),u1=new RegExp("hsla"+$o(dt,Ki,Ki,dt)),f1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d1=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,p1=/^#([0-9a-fA-F]{6})$/,h1=/^#([0-9a-fA-F]{8})$/;function m1(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=p1.exec(e))?parseInt(t[1]+"ff",16)>>>0:Xt&&Xt[e]!==void 0?Xt[e]:(t=a1.exec(e))?(Sn(t[1])<<24|Sn(t[2])<<16|Sn(t[3])<<8|255)>>>0:(t=c1.exec(e))?(Sn(t[1])<<24|Sn(t[2])<<16|Sn(t[3])<<8|uu(t[4]))>>>0:(t=f1.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=h1.exec(e))?parseInt(t[1],16)>>>0:(t=d1.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=l1.exec(e))?(cu(lu(t[1]),pi(t[2]),pi(t[3]))|255)>>>0:(t=u1.exec(e))?(cu(lu(t[1]),pi(t[2]),pi(t[3]))|uu(t[4]))>>>0:null}function xs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cu(e,t,n){const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i,s=xs(o,i,e+1/3),a=xs(o,i,e),c=xs(o,i,e-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(c*255)<<8}function Sn(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function lu(e){return(parseFloat(e)%360+360)%360/360}function uu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function pi(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fu(e){let t=m1(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,i=(t&16711680)>>>16,o=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${i}, ${o}, ${s})`}var Er=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Er({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return Za(e);const i=e,o=i.output,s=i.range||[0,1],a=i.extrapolateLeft||i.extrapolate||"extend",c=i.extrapolateRight||i.extrapolate||"extend",u=i.easing||(l=>l);return l=>{const f=y1(l,s);return g1(l,s[f],s[f+1],o[f],o[f+1],u,a,c,i.map)}};function g1(e,t,n,i,o,s,a,c,u){let l=u?u(e):e;if(l<t){if(a==="identity")return l;a==="clamp"&&(l=t)}if(l>n){if(c==="identity")return l;c==="clamp"&&(l=n)}return i===o?i:t===n?e<=t?i:o:(t===-1/0?l=-l:n===1/0?l=l-t:l=(l-t)/(n-t),l=s(l),i===-1/0?l=-l:o===1/0?l=l+i:l=l*(o-i)+i,l)}function y1(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var b1={linear:e=>e},Mr=Symbol.for("FluidValue.get"),zn=Symbol.for("FluidValue.observers"),et=e=>!!(e&&e[Mr]),Fe=e=>e&&e[Mr]?e[Mr]():e,du=e=>e[zn]||null;function x1(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ir(e,t){const n=e[zn];n&&n.forEach(i=>{x1(i,t)})}var Dd=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");v1(this,e)}},v1=(e,t)=>Ld(e,Mr,t);function tr(e,t){if(e[Mr]){let n=e[zn];n||Ld(e,zn,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $r(e,t){const n=e[zn];if(n&&n.has(t)){const i=n.size-1;i?n.delete(t):e[zn]=null,e.observerRemoved&&e.observerRemoved(i,t)}}var Ld=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ri=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,O1=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,pu=new RegExp(`(${Ri.source})(%|[a-z]+)`,"i"),w1=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,jo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fd=e=>{const[t,n]=T1(e);if(!t||Qa())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&jo.test(n))return Fd(n);if(n)return n}return e},T1=e=>{const t=jo.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]},vs,k1=(e,t,n,i,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${o})`,qd=e=>{vs||(vs=Xt?new RegExp(`(${Object.keys(Xt).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>Fe(s).replace(jo,Fd).replace(O1,fu).replace(vs,fu)),n=t.map(s=>s.match(Ri).map(Number)),o=n[0].map((s,a)=>n.map(c=>{if(!(a in c))throw Error('The arity of each "output" value must be equal');return c[a]})).map(s=>Er({...e,output:s}));return s=>{const a=!pu.test(t[0])&&t.find(u=>pu.test(u))?.replace(Ri,"");let c=0;return t[0].replace(Ri,()=>`${o[c++](s)}${a||""}`).replace(w1,k1)}},ec="react-spring: ",Ud=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${ec}once requires a function parameter`);return(...i)=>{n||(t(...i),n=!0)}},C1=Ud(console.warn);function A1(){C1(`${ec}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S1=Ud(console.warn);function P1(){S1(`${ec}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function No(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!Qa()&&jo.test(e)||e in(Xt||{}))}var Yt=Qa()?ae.useEffect:ae.useLayoutEffect,R1=()=>{const e=ae.useRef(!1);return Yt(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tc(){const e=ae.useState()[1],t=R1();return()=>{t.current&&e(Math.random())}}function _1(e,t){const[n]=ae.useState(()=>({inputs:t,result:e()})),i=ae.useRef(),o=i.current;let s=o;return s?t&&s.inputs&&E1(t,s.inputs)||(s={inputs:t,result:e()}):s=n,ae.useEffect(()=>{i.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function E1(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var nc=e=>ae.useEffect(e,M1),M1=[];function Ws(e){const t=ae.useRef();return ae.useEffect(()=>{t.current=e}),t.current}var jr=Symbol.for("Animated:node"),I1=e=>!!e&&e[jr]===e,yt=e=>e&&e[jr],rc=(e,t)=>n1(e,jr,t),Do=e=>e&&e[jr]&&e[jr].getPayload(),zd=class{constructor(){rc(this,this)}getPayload(){return this.payload||[]}},Zr=class extends zd{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Zr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Nr=class extends Zr{constructor(e){super(0),this._string=null,this._toString=Er({output:[e,e]})}static create(e){return new Nr(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Er({output:[this.getValue(),e]})),this._value=0,super.reset()}},Qi={dependencies:null},Lo=class extends zd{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kt(this.source,(n,i)=>{I1(n)?t[i]=n.getValue(e):et(n)?t[i]=Fe(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&te(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return kt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Qi.dependencies&&et(e)&&Qi.dependencies.add(e);const t=Do(e);t&&te(t,n=>this.add(n))}},Vd=class extends Lo{constructor(e){super(e)}static create(e){return new Vd(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,i)=>n.setValue(e[i])).some(Boolean):(super.setValue(e.map($1)),!0)}};function $1(e){return(No(e)?Nr:Zr).create(e)}function Ys(e){const t=yt(e);return t?t.constructor:V.arr(e)?Vd:No(e)?Nr:Zr}var hu=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return ae.forwardRef((i,o)=>{const s=ae.useRef(null),a=n&&ae.useCallback(g=>{s.current=D1(o,g)},[o]),[c,u]=N1(i,t),l=tc(),f=()=>{const g=s.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,c.getValue(!0)):!1)===!1&&l()},d=new j1(f,u),p=ae.useRef();Yt(()=>(p.current=d,te(u,g=>tr(g,d)),()=>{p.current&&(te(p.current.deps,g=>$r(g,p.current)),ne.cancel(p.current.update))})),ae.useEffect(f,[]),nc(()=>()=>{const g=p.current;te(g.deps,h=>$r(h,g))});const m=t.getComponentProps(c.getValue());return M.createElement(e,{...m,ref:a})})},j1=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ne.write(this.update)}};function N1(e,t){const n=new Set;return Qi.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Lo(e),Qi.dependencies=null,[e,n]}function D1(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var mu=Symbol.for("AnimatedComponent"),L1=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Lo(o),getComponentProps:i=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},s=a=>{const c=gu(a)||"Anonymous";return V.str(a)?a=s[a]||(s[a]=hu(a,o)):a=a[mu]||(a[mu]=hu(a,o)),a.displayName=`Animated(${c})`,a};return kt(e,(a,c)=>{V.arr(e)&&(c=gu(a)),s[c]=s(a)}),{animated:s}},gu=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function qe(e,...t){return V.fun(e)?e(...t):e}var br=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):je(e).includes(t))),Hd=(e,t)=>V.obj(e)?t&&e[t]:e,Bd=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F1=e=>e,Fo=(e,t=F1)=>{let n=q1;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const i={};for(const o of n){const s=t(e[o],o);V.und(s)||(i[o]=s)}return i},q1=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U1={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function z1(e){const t={};let n=0;if(kt(e,(i,o)=>{U1[o]||(t[o]=i,n++)}),n)return t}function ic(e){const t=z1(e);if(t){const n={to:t};return kt(e,(i,o)=>o in t||(n[o]=i)),n}return{...e}}function Dr(e){return e=Fe(e),V.arr(e)?e.map(Dr):No(e)?st.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Wd(e){for(const t in e)return!0;return!1}function Gs(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function Xs(e,t){e.ref?.delete(e),t?.delete(e)}function Yd(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var V1={default:{tension:170,friction:26}},Ks={...V1.default,mass:1,damping:1,easing:b1.linear,clamp:!1},H1=class{constructor(){this.velocity=0,Object.assign(this,Ks)}};function B1(e,t,n){n&&(n={...n},yu(n,t),t={...n,...t}),yu(e,t),Object.assign(e,t);for(const a in Ks)e[a]==null&&(e[a]=Ks[a]);let{frequency:i,damping:o}=e;const{mass:s}=e;return V.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*s,e.friction=4*Math.PI*o*s/i),e}function yu(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var bu=[],W1=class{constructor(){this.changed=!1,this.values=bu,this.toValues=null,this.fromValues=bu,this.config=new H1,this.immediate=!1}};function Gd(e,{key:t,props:n,defaultProps:i,state:o,actions:s}){return new Promise((a,c)=>{let u,l,f=br(n.cancel??i?.cancel,t);if(f)m();else{V.und(n.pause)||(o.paused=br(n.pause,t));let g=i?.pause;g!==!0&&(g=o.paused||br(g,t)),u=qe(n.delay||0,t),g?(o.resumeQueue.add(p),s.pause()):(s.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(l),l.cancel(),u=l.time-ne.now()}function p(){u>0&&!st.skipAnimation?(o.delayed=!0,l=ne.setTimeout(m,u),o.pauseQueue.add(d),o.timeouts.add(l)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(l),e<=(o.cancelId||0)&&(f=!0);try{s.start({...n,callId:e,cancel:f},a)}catch(g){c(g)}}})}var oc=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?In(e.get()):t.every(n=>n.noop)?Xd(e.get()):ut(e.get(),t.every(n=>n.finished)),Xd=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ut=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),In=e=>({value:e,cancelled:!0,finished:!1});function Kd(e,t,n,i){const{callId:o,parentId:s,onRest:a}=t,{asyncTo:c,promise:u}=n;return!s&&e===c&&!t.reset?u:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const l=Fo(t,(y,b)=>b==="onRest"?void 0:y);let f,d;const p=new Promise((y,b)=>(f=y,d=b)),m=y=>{const b=o<=(n.cancelId||0)&&In(i)||o!==n.asyncId&&ut(i,!1);if(b)throw y.result=b,d(y),y},g=(y,b)=>{const v=new xu,T=new vu;return(async()=>{if(st.skipAnimation)throw Lr(n),T.result=ut(i,!1),d(T),T;m(v);const O=V.obj(y)?{...y}:{...b,to:y};O.parentId=o,kt(l,(k,R)=>{V.und(O[R])&&(O[R]=k)});const w=await i.start(O);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),w})()};let h;if(st.skipAnimation)return Lr(n),ut(i,!1);try{let y;V.arr(e)?y=(async b=>{for(const v of b)await g(v)})(e):y=Promise.resolve(e(g,i.stop.bind(i))),await Promise.all([y.then(f),p]),h=ut(i.get(),!0,!1)}catch(y){if(y instanceof xu)h=y.result;else if(y instanceof vu)h=y.result;else throw y}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?c:void 0,n.promise=s?u:void 0)}return V.fun(a)&&ne.batchedUpdates(()=>{a(h,i,i.item)}),h})()}function Lr(e,t){gr(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xu=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},vu=class extends Error{constructor(){super("SkipAnimationSignal")}},Qs=e=>e instanceof sc,Y1=1,sc=class extends Dd{constructor(){super(...arguments),this.id=Y1++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=yt(this);return e&&e.getValue()}to(...e){return st.to(this,e)}interpolate(...e){return A1(),st.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ir(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Io.sort(this),Ir(this,{type:"priority",parent:this,priority:e})}},yn=Symbol.for("SpringPhase"),Qd=1,Zs=2,Js=4,Os=e=>(e[yn]&Qd)>0,Ht=e=>(e[yn]&Zs)>0,cr=e=>(e[yn]&Js)>0,Ou=(e,t)=>t?e[yn]|=Zs|Qd:e[yn]&=~Zs,wu=(e,t)=>t?e[yn]|=Js:e[yn]&=~Js,G1=class extends sc{constructor(e,t){if(super(),this.animation=new W1,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ht(this)||this._state.asyncTo)||cr(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=yt(this);return e instanceof Zr?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Os(this)}get isAnimating(){return Ht(this)}get isPaused(){return cr(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:o}=i;const{config:s}=i,a=Do(i.to);!a&&et(i.to)&&(o=je(Fe(i.to))),i.values.forEach((l,f)=>{if(l.done)return;const d=l.constructor==Nr?1:a?a[f].lastPosition:o[f];let p=i.immediate,m=d;if(!p){if(m=l.lastPosition,s.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const h=i.fromValues[f],y=l.v0!=null?l.v0:l.v0=V.arr(s.velocity)?s.velocity[f]:s.velocity;let b;const v=s.precision||(h==d?.005:Math.min(1,Math.abs(d-h)*.001));if(V.und(s.duration))if(s.decay){const T=s.decay===!0?.998:s.decay,O=Math.exp(-(1-T)*g);m=h+y/(1-T)*(1-O),p=Math.abs(l.lastPosition-m)<=v,b=y*O}else{b=l.lastVelocity==null?y:l.lastVelocity;const T=s.restVelocity||v/10,O=s.clamp?0:s.bounce,w=!V.und(O),k=h==d?l.v0>0:h<d;let R,N=!1;const $=1,D=Math.ceil(e/$);for(let E=0;E<D&&(R=Math.abs(b)>T,!(!R&&(p=Math.abs(d-m)<=v,p)));++E){w&&(N=m==d||m>d==k,N&&(b=-b*O,m=d));const x=-s.tension*1e-6*(m-d),P=-s.friction*.001*b,C=(x+P)/s.mass;b=b+C*$,m=m+b*$}}else{let T=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,l.durationProgress>0&&(l.elapsedTime=s.duration*l.durationProgress,g=l.elapsedTime+=e)),T=(s.progress||0)+g/this._memoizedDuration,T=T>1?1:T<0?0:T,l.durationProgress=T),m=h+s.easing(T)*(d-h),b=(m-l.lastPosition)/e,p=T==1}l.lastVelocity=b,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),p=!0)}a&&!a[f].done&&(p=!1),p?l.done=!0:t=!1,l.setValue(m,s.round)&&(n=!0)});const c=yt(this),u=c.getValue();if(t){const l=Fe(i.to);(u!==l||n)&&!s.decay?(c.setValue(l),this._onChange(l)):n&&s.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return ne.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ht(this)){const{to:e,config:t}=this.animation;ne.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(i=>this._update(i))).then(i=>oc(this,i))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Lr(this._state,e&&this._lastCallId),ne.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=V.obj(n)?n[t]:n,(n==null||Gs(n))&&(n=void 0),i=V.obj(i)?i[t]:i,i==null&&(i=void 0);const o={to:n,from:i};return Os(this)||(e.reverse&&([n,i]=[i,n]),i=Fe(i),V.und(i)?yt(this)||this._set(n):this._set(i)),o}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,Fo(e,(a,c)=>/^on/.test(c)?Hd(a,n):a)),ku(this,e,"onProps"),ur(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return Gd(++this._lastCallId,{key:n,props:e,defaultProps:i,state:s,actions:{pause:()=>{cr(this)||(wu(this,!0),hr(s.pauseQueue),ur(this,"onPause",ut(this,lr(this,this.animation.to)),this))},resume:()=>{cr(this)&&(wu(this,!1),Ht(this)&&this._resume(),hr(s.resumeQueue),ur(this,"onResume",ut(this,lr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const c=Zd(e);if(c)return this._update(c,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(In(this));const i=!V.und(e.to),o=!V.und(e.from);if(i||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(In(this));const{key:s,defaultProps:a,animation:c}=this,{to:u,from:l}=c;let{to:f=u,from:d=l}=e;o&&!i&&(!t.default||V.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const p=!Mt(d,l);p&&(c.from=d),d=Fe(d);const m=!Mt(f,u);m&&this._focus(f);const g=Gs(t.to),{config:h}=c,{decay:y,velocity:b}=h;(i||o)&&(h.velocity=0),t.config&&!g&&B1(h,qe(t.config,s),t.config!==a.config?qe(a.config,s):void 0);let v=yt(this);if(!v||V.und(f))return n(ut(this,!0));const T=V.und(t.reset)?o&&!t.default:!V.und(d)&&br(t.reset,s),O=T?d:this.get(),w=Dr(f),k=V.num(w)||V.arr(w)||No(w),R=!g&&(!k||br(a.immediate||t.immediate,s));if(m){const E=Ys(f);if(E!==v.constructor)if(R)v=this._set(w);else throw Error(`Cannot animate between ${v.constructor.name} and ${E.name}, as the "to" prop suggests`)}const N=v.constructor;let $=et(f),D=!1;if(!$){const E=T||!Os(this)&&p;(m||E)&&(D=Mt(Dr(O),w),$=!D),(!Mt(c.immediate,R)&&!R||!Mt(h.decay,y)||!Mt(h.velocity,b))&&($=!0)}if(D&&Ht(this)&&(c.changed&&!T?$=!0:$||this._stop(u)),!g&&(($||et(u))&&(c.values=v.getPayload(),c.toValues=et(f)?null:N==Nr?[1]:je(w)),c.immediate!=R&&(c.immediate=R,!R&&!T&&this._set(u)),$)){const{onRest:E}=c;te(K1,P=>ku(this,t,P));const x=ut(this,lr(this,u));hr(this._pendingCalls,x),this._pendingCalls.add(n),c.changed&&ne.batchedUpdates(()=>{c.changed=!T,E?.(x,this),T?qe(a.onRest,x):c.onStart?.(x,this)})}T&&this._set(O),g?n(Kd(t.to,t,this._state,this)):$?this._start():Ht(this)&&!m?this._pendingCalls.add(n):n(Xd(O))}_focus(e){const t=this.animation;e!==t.to&&(du(this)&&this._detach(),t.to=e,du(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;et(t)&&(tr(t,this),Qs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;et(e)&&$r(e,this)}_set(e,t=!0){const n=Fe(e);if(!V.und(n)){const i=yt(this);if(!i||!Mt(n,i.getValue())){const o=Ys(n);!i||i.constructor!=o?rc(this,o.create(n)):i.setValue(n),i&&ne.batchedUpdates(()=>{this._onChange(n,t)})}}return yt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ur(this,"onStart",ut(this,lr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),qe(this.animation.onChange,e,this)),qe(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;yt(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ht(this)||(Ou(this,!0),cr(this)||this._resume())}_resume(){st.skipAnimation?this.finish():Io.start(this)}_stop(e,t){if(Ht(this)){Ou(this,!1);const n=this.animation;te(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ir(this,{type:"idle",parent:this});const i=t?In(this.get()):ut(this.get(),lr(this,e??n.to));hr(this._pendingCalls,i),n.changed&&(n.changed=!1,ur(this,"onRest",i,this))}}};function lr(e,t){const n=Dr(t),i=Dr(e.get());return Mt(i,n)}function Zd(e,t=e.loop,n=e.to){const i=qe(t);if(i){const o=i!==!0&&ic(i),s=(o||e).reverse,a=!o||o.reset;return Fr({...e,loop:t,default:!1,pause:void 0,to:!s||Gs(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Fr(e){const{to:t,from:n}=e=ic(e),i=new Set;return V.obj(t)&&Tu(t,i),V.obj(n)&&Tu(n,i),e.keys=i.size?Array.from(i):null,e}function X1(e){const t=Fr(e);return V.und(t.default)&&(t.default=Fo(t)),t}function Tu(e,t){kt(e,(n,i)=>n!=null&&t.add(i))}var K1=["onStart","onRest","onChange","onPause","onResume"];function ku(e,t,n){e.animation[n]=t[n]!==Bd(t,n)?Hd(t[n],e.key):void 0}function ur(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Q1=["onStart","onChange","onRest"],Z1=1,Jd=class{constructor(e,t){this.id=Z1++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Fr(e)),this}start(e){let{queue:t}=this;return e?t=je(e).map(Fr):this.queue=[],this._flush?this._flush(this,t):(ip(this,t),ea(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;te(je(t),i=>n[i].stop(!!e))}else Lr(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;te(je(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;te(je(e),n=>t[n].resume())}return this}each(e){kt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,gr(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const s=!i&&this._started,a=o||s&&n.size?this.get():null;o&&t.size&&gr(t,([c,u])=>{u.value=a,c(u,this,this._item)}),s&&(this._started=!1,gr(n,([c,u])=>{u.value=a,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;ne.onFrame(this._onFrame)}};function ea(e,t){return Promise.all(t.map(n=>ep(e,n))).then(n=>oc(e,n))}async function ep(e,t,n){const{keys:i,to:o,from:s,loop:a,onRest:c,onResolve:u}=t,l=V.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),s===!1&&(t.from=null);const f=V.arr(o)||V.fun(o)?o:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):te(Q1,h=>{const y=t[h];if(V.fun(y)){const b=e._events[h];t[h]=({finished:v,cancelled:T})=>{const O=b.get(y);O?(v||(O.finished=!1),T&&(O.cancelled=!0)):b.set(y,{value:null,finished:v||!1,cancelled:T||!1})},l&&(l[h]=t[h])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,hr(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(i||Object.keys(e.springs)).map(h=>e.springs[h].start(t)),m=t.cancel===!0||Bd(t,"cancel")===!0;(f||m&&d.asyncId)&&p.push(Gd(++e._lastAsyncId,{props:t,state:d,actions:{pause:Hs,resume:Hs,start(h,y){m?(Lr(d,e._lastAsyncId),y(In(e))):(h.onRest=c,y(Kd(f,h,d,e)))}}})),d.paused&&await new Promise(h=>{d.resumeQueue.add(h)});const g=oc(e,await Promise.all(p));if(a&&g.finished&&!(n&&g.noop)){const h=Zd(t,a,o);if(h)return ip(e,[h]),ep(e,h,!0)}return u&&ne.batchedUpdates(()=>u(g,e,e.item)),g}function ta(e,t){const n={...e.springs};return t&&te(je(t),i=>{V.und(i.keys)&&(i=Fr(i)),V.obj(i.to)||(i={...i,to:void 0}),rp(n,i,o=>np(o))}),tp(e,n),n}function tp(e,t){kt(t,(n,i)=>{e.springs[i]||(e.springs[i]=n,tr(n,e))})}function np(e,t){const n=new G1;return n.key=e,t&&tr(n,t),n}function rp(e,t,n){t.keys&&te(t.keys,i=>{(e[i]||(e[i]=n(i)))._prepareNode(t)})}function ip(e,t){te(t,n=>{rp(e.springs,n,i=>np(i,e))})}var Jr=({children:e,...t})=>{const n=ae.useContext(Zi),i=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=_1(()=>({pause:i,immediate:o}),[i,o]);const{Provider:s}=Zi;return M.createElement(s,{value:t},e)},Zi=J1(Jr,{});Jr.Provider=Zi.Provider;Jr.Consumer=Zi.Consumer;function J1(e,t){return Object.assign(e,M.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var op=()=>{const e=[],t=function(i){P1();const o=[];return te(e,(s,a)=>{if(V.und(i))o.push(s.start());else{const c=n(i,s,a);c&&o.push(s.start(c))}}),o};t.current=e,t.add=function(i){e.includes(i)||e.push(i)},t.delete=function(i){const o=e.indexOf(i);~o&&e.splice(o,1)},t.pause=function(){return te(e,i=>i.pause(...arguments)),this},t.resume=function(){return te(e,i=>i.resume(...arguments)),this},t.set=function(i){te(e,(o,s)=>{const a=V.fun(i)?i(s,o):i;a&&o.set(a)})},t.start=function(i){const o=[];return te(e,(s,a)=>{if(V.und(i))o.push(s.start());else{const c=this._getProps(i,s,a);c&&o.push(s.start(c))}}),o},t.stop=function(){return te(e,i=>i.stop(...arguments)),this},t.update=function(i){return te(e,(o,s)=>o.update(this._getProps(i,o,s))),this};const n=function(i,o,s){return V.fun(i)?i(s,o):i};return t._getProps=n,t};function eO(e,t,n){const i=V.fun(t)&&t;i&&!n&&(n=[]);const o=ae.useMemo(()=>i||arguments.length==3?op():void 0,[]),s=ae.useRef(0),a=tc(),c=ae.useMemo(()=>({ctrls:[],queue:[],flush(b,v){const T=ta(b,v);return s.current>0&&!c.queue.length&&!Object.keys(T).some(w=>!b.springs[w])?ea(b,v):new Promise(w=>{tp(b,T),c.queue.push(()=>{w(ea(b,v))}),a()})}}),[]),u=ae.useRef([...c.ctrls]),l=[],f=Ws(e)||0;ae.useMemo(()=>{te(u.current.slice(e,f),b=>{Xs(b,o),b.stop(!0)}),u.current.length=e,d(f,e)},[e]),ae.useMemo(()=>{d(0,Math.min(f,e))},n);function d(b,v){for(let T=b;T<v;T++){const O=u.current[T]||(u.current[T]=new Jd(null,c.flush)),w=i?i(T,O):t[T];w&&(l[T]=X1(w))}}const p=u.current.map((b,v)=>ta(b,l[v])),m=ae.useContext(Jr),g=Ws(m),h=m!==g&&Wd(m);Yt(()=>{s.current++,c.ctrls=u.current;const{queue:b}=c;b.length&&(c.queue=[],te(b,v=>v())),te(u.current,(v,T)=>{o?.add(v),h&&v.start({default:m});const O=l[T];O&&(Yd(v,O.ref),v.ref?v.queue.push(O):v.start(O))})}),nc(()=>()=>{te(c.ctrls,b=>b.stop(!0))});const y=p.map(b=>({...b}));return o?[y,o]:y}function sp(e,t){const n=V.fun(e),[[i],o]=eO(1,n?e:[e],n?[]:t);return n||arguments.length==2?[i,o]:i}function en(e,t,n){const i=V.fun(t)&&t,{reset:o,sort:s,trail:a=0,expires:c=!0,exitBeforeEnter:u=!1,onDestroyed:l,ref:f,config:d}=i?i():t,p=ae.useMemo(()=>i||arguments.length==3?op():void 0,[]),m=je(e),g=[],h=ae.useRef(null),y=o?null:h.current;Yt(()=>{h.current=g}),nc(()=>(te(g,C=>{p?.add(C.ctrl),C.ctrl.ref=p}),()=>{te(h.current,C=>{C.expired&&clearTimeout(C.expirationId),Xs(C.ctrl,p),C.ctrl.stop(!0)})}));const b=nO(m,i?i():t,y),v=o&&h.current||[];Yt(()=>te(v,({ctrl:C,item:I,key:F})=>{Xs(C,p),qe(l,I,F)}));const T=[];if(y&&te(y,(C,I)=>{C.expired?(clearTimeout(C.expirationId),v.push(C)):(I=T[I]=b.indexOf(C.key),~I&&(g[I]=C))}),te(m,(C,I)=>{g[I]||(g[I]={key:b[I],item:C,phase:"mount",ctrl:new Jd},g[I].ctrl.item=C)}),T.length){let C=-1;const{leave:I}=i?i():t;te(T,(F,z)=>{const B=y[z];~F?(C=g.indexOf(B),g[C]={...B,item:m[F]}):I&&g.splice(++C,0,B)})}V.fun(s)&&g.sort((C,I)=>s(C.item,I.item));let O=-a;const w=tc(),k=Fo(t),R=new Map,N=ae.useRef(new Map),$=ae.useRef(!1);te(g,(C,I)=>{const F=C.key,z=C.phase,B=i?i():t;let ee,j;const U=qe(B.delay||0,F);if(z=="mount")ee=B.enter,j="enter";else{const Y=b.indexOf(F)<0;if(z!="leave")if(Y)ee=B.leave,j="leave";else if(ee=B.update)j="update";else return;else if(!Y)ee=B.enter,j="enter";else return}if(ee=qe(ee,C.item,I),ee=V.obj(ee)?ic(ee):{to:ee},!ee.config){const Y=d||k.config;ee.config=qe(Y,C.item,I,j)}O+=a;const W={...k,delay:U+O,ref:f,immediate:B.immediate,reset:!1,...ee};if(j=="enter"&&V.und(W.from)){const Y=i?i():t,Z=V.und(Y.initial)||y?Y.from:Y.initial;W.from=qe(Z,C.item,I)}const{onResolve:X}=W;W.onResolve=Y=>{qe(X,Y);const Z=h.current,Q=Z.find(J=>J.key===F);if(Q&&!(Y.cancelled&&Q.phase!="update")&&Q.ctrl.idle){const J=Z.every(q=>q.ctrl.idle);if(Q.phase=="leave"){const q=qe(c,Q.item);if(q!==!1){const H=q===!0?0:q;if(Q.expired=!0,!J&&H>0){H<=2147483647&&(Q.expirationId=setTimeout(w,H));return}}}J&&Z.some(q=>q.expired)&&(N.current.delete(Q),u&&($.current=!0),w())}};const G=ta(C.ctrl,W);j==="leave"&&u?N.current.set(C,{phase:j,springs:G,payload:W}):R.set(C,{phase:j,springs:G,payload:W})});const D=ae.useContext(Jr),E=Ws(D),x=D!==E&&Wd(D);Yt(()=>{x&&te(g,C=>{C.ctrl.start({default:D})})},[D]),te(R,(C,I)=>{if(N.current.size){const F=g.findIndex(z=>z.key===I.key);g.splice(F,1)}}),Yt(()=>{te(N.current.size?N.current:R,({phase:C,payload:I},F)=>{const{ctrl:z}=F;F.phase=C,p?.add(z),x&&C=="enter"&&z.start({default:D}),I&&(Yd(z,I.ref),(z.ref||p)&&!$.current?z.update(I):(z.start(I),$.current&&($.current=!1)))})},o?void 0:n);const P=C=>M.createElement(M.Fragment,null,g.map((I,F)=>{const{springs:z}=R.get(I)||I.ctrl,B=C({...z},I.item,I,F);return B&&B.type?M.createElement(B.type,{...B.props,key:V.str(I.key)||V.num(I.key)?I.key:I.ctrl.id,ref:B.ref}):B}));return p?[P,p]:P}var tO=1;function nO(e,{key:t,keys:n=t},i){if(n===null){const o=new Set;return e.map(s=>{const a=i&&i.find(c=>c.item===s&&c.phase!=="leave"&&!o.has(c));return a?(o.add(a),a.key):tO++})}return V.und(n)?e:V.fun(n)?e.map(n):je(n)}var ap=class extends sc{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Er(...t);const n=this._get(),i=Ys(n);rc(this,i.create(n))}advance(e){const t=this._get(),n=this.get();Mt(t,n)||(yt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Cu(this._active)&&ws(this)}_get(){const e=V.arr(this.source)?this.source.map(Fe):je(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!Cu(this._active)&&(this.idle=!1,te(Do(this),e=>{e.done=!1}),st.skipAnimation?(ne.batchedUpdates(()=>this.advance()),ws(this)):Io.start(this))}_attach(){let e=1;te(je(this.source),t=>{et(t)&&tr(t,this),Qs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){te(je(this.source),e=>{et(e)&&$r(e,this)}),this._active.clear(),ws(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=je(this.source).reduce((t,n)=>Math.max(t,(Qs(n)?n.priority:0)+1),0))}};function rO(e){return e.idle!==!1}function Cu(e){return!e.size||Array.from(e).every(rO)}function ws(e){e.idle||(e.idle=!0,te(Do(e),t=>{t.done=!0}),Ir(e,{type:"idle",parent:e}))}var Vn=(e,...t)=>new ap(e,t);st.assign({createStringInterpolator:qd,to:(e,t)=>new ap(e,t)});var cp=/^--/;function iO(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!cp.test(e)&&!(xr.hasOwnProperty(e)&&xr[e])?t+"px":(""+t).trim()}var Au={};function oO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:o,children:s,scrollTop:a,scrollLeft:c,viewBox:u,...l}=t,f=Object.values(l),d=Object.keys(l).map(p=>n||e.hasAttribute(p)?p:Au[p]||(Au[p]=p.replace(/([A-Z])/g,m=>"-"+m.toLowerCase())));s!==void 0&&(e.textContent=s);for(const p in o)if(o.hasOwnProperty(p)){const m=iO(p,o[p]);cp.test(p)?e.style.setProperty(p,m):e.style[p]=m}d.forEach((p,m)=>{e.setAttribute(p,f[m])}),i!==void 0&&(e.className=i),a!==void 0&&(e.scrollTop=a),c!==void 0&&(e.scrollLeft=c),u!==void 0&&e.setAttribute("viewBox",u)}var xr={animationIterationCount:!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,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},sO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),aO=["Webkit","Ms","Moz","O"];xr=Object.keys(xr).reduce((e,t)=>(aO.forEach(n=>e[sO(n,t)]=e[t]),e),xr);var cO=/^(matrix|translate|scale|rotate|skew)/,lO=/^(translate)/,uO=/^(rotate|skew)/,Ts=(e,t)=>V.num(e)&&e!==0?e+t:e,_i=(e,t)=>V.arr(e)?e.every(n=>_i(n,t)):V.num(e)?e===t:parseFloat(e)===t,fO=class extends Lo{constructor({x:e,y:t,z:n,...i}){const o=[],s=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),s.push(a=>[`translate3d(${a.map(c=>Ts(c,"px")).join(",")})`,_i(a,0)])),kt(i,(a,c)=>{if(c==="transform")o.push([a||""]),s.push(u=>[u,u===""]);else if(cO.test(c)){if(delete i[c],V.und(a))return;const u=lO.test(c)?"px":uO.test(c)?"deg":"";o.push(je(a)),s.push(c==="rotate3d"?([l,f,d,p])=>[`rotate3d(${l},${f},${d},${Ts(p,u)})`,_i(p,0)]:l=>[`${c}(${l.map(f=>Ts(f,u)).join(",")})`,_i(l,c.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new dO(o,s)),super(i)}},dO=class extends Dd{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return te(this.inputs,(n,i)=>{const o=Fe(n[0]),[s,a]=this.transforms[i](V.arr(o)?o:n.map(Fe));e+=" "+s,t=t&&a}),t?"none":e}observerAdded(e){e==1&&te(this.inputs,t=>te(t,n=>et(n)&&tr(n,this)))}observerRemoved(e){e==0&&te(this.inputs,t=>te(t,n=>et(n)&&$r(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ir(this,e)}},pO=["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","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"];st.assign({batchedUpdates:Xu.unstable_batchedUpdates,createStringInterpolator:qd,colors:s1});var hO=L1(pO,{applyAnimatedValues:oO,createAnimatedStyle:e=>new fO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rt=hO.animated;function mO(e){const t=M.useRef({currentPath:e,previousPath:void 0});return t.current.currentPath!==e&&(t.current={currentPath:e,previousPath:t.current.currentPath}),t.current}const lp=e=>{const t=mO(e);return M.useMemo(()=>t.previousPath?ed(t.previousPath,t.currentPath):()=>t.currentPath,[t.currentPath,t.previousPath])};function up(e){return e.replace(" ","_")}function ac(){const{chartId:e}=M.useContext(Qn);return M.useMemo(()=>e,[e])}function Hn(e){return gn(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function cc(){const{isInitialized:e,data:t}=M.useContext(Ua);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
47
+ `));return t}function fp(e){const t=We(),n=ac(),i=en([t],{from:s=>({animatedWidth:s.left}),enter:s=>({animatedWidth:s.width+s.left+s.right}),leave:s=>({animatedWidth:s.width+s.left+s.right}),reset:!1,immediate:e.skipAnimation}),o=up(`${n}-${e.id}`);return A.jsxs(M.Fragment,{children:[A.jsx("clipPath",{id:o,children:i(s=>A.jsx(Rt.rect,{x:0,y:0,width:s.animatedWidth,height:t.top+t.height+t.bottom}))}),A.jsx("g",{clipPath:`url(#${o})`,children:e.children})]})}const gO=["d","skipAnimation","ownerState"],yO=ye(Rt.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&Nt(e.color).brighter(1).formatHex()||Nt(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));function dp(e){const{d:t,skipAnimation:n,ownerState:i}=e,o=ie(e,gO),s=lp(t),a=en([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return A.jsx(fp,{skipAnimation:n,id:`${i.id}-area-clip`,children:a((c,u)=>A.jsx(yO,S({},o,{ownerState:i,d:c.value.to(u)})))})}process.env.NODE_ENV!=="production"&&(dp.propTypes={d:r.string.isRequired,ownerState:r.shape({classes:r.object,color:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired}).isRequired,skipAnimation:r.bool});const bO=["id","classes","color","gradientId","slots","slotProps","onClick"];function xO(e){return Re("MuiAreaElement",e)}Ne("MuiAreaElement",["root","highlighted","faded"]);const vO=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,xO,t)};function pp(e){const{id:t,classes:n,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=ie(e,bO),l=er(),{isFaded:f,isHighlighted:d}=Jn({seriesId:t}),p={id:t,classes:n,color:i,gradientId:o,isFaded:f,isHighlighted:d},m=vO(p),g=s?.area??dp,h=ze({elementType:g,externalSlotProps:a?.area,additionalProps:S({},l({type:"line",seriesId:t}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:p});return A.jsx(g,S({},u,h))}process.env.NODE_ENV!=="production"&&(pp.propTypes={classes:r.object,color:r.string.isRequired,d:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function hp(e){switch(e){case"catmullRom":return lb.alpha(.5);case"linear":return va;case"monotoneX":return Ol;case"monotoneY":return ub;case"natural":return fb;case"step":return db;case"stepBefore":return pb;case"stepAfter":return hb;default:return Ol}}function Su(e){const{isReversed:t,gradientId:n,size:i,direction:o,scale:s,colorMap:a}=e;return i<=0?null:A.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${i}px`,gradientUnits:"userSpaceOnUse",children:a.thresholds.map((c,u)=>{const l=s(c);if(l===void 0)return null;const f=t?1-l/i:l/i;return A.jsxs(M.Fragment,{children:[A.jsx("stop",{offset:f,stopColor:a.colors[u],stopOpacity:1}),A.jsx("stop",{offset:f,stopColor:a.colors[u+1],stopOpacity:1})]},c.toString()+u)})})}const OO=10;function Pu(e){const{gradientUnits:t,isReversed:n,gradientId:i,size:o,direction:s,scale:a,colorScale:c,colorMap:u}=e,l=[u.min??0,u.max??100],f=l.map(a).filter(g=>g!==void 0);if(f.length!==2)return null;const d=typeof l[0]=="number"?Pr(l[0],l[1]):Jf(l[0],l[1]),p=Math.round((Math.max(...f)-Math.min(...f))/OO),m=`${l[0]}-${l[1]}-`;return A.jsx("linearGradient",{id:i,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:p+1},(g,h)=>{const y=d(h/p);if(y===void 0)return null;const b=a(y);if(b===void 0)return null;const v=n?1-b/o:b/o,T=c(y);return T===null?null:A.jsx("stop",{offset:v,stopColor:T,stopOpacity:1},m+h)})})}function lc(){const{chartId:e}=M.useContext(Qn);return M.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function wO(){const{top:e,height:t,bottom:n,left:i,width:o,right:s}=We(),a=e+t+n,c=i+o+s,u=lc(),{xAxisIds:l,xAxis:f,yAxisIds:d,yAxis:p}=De();return A.jsxs("defs",{children:[d.filter(m=>p[m].colorMap!==void 0).map(m=>{const g=u(m,"y"),{colorMap:h,scale:y,colorScale:b,reverse:v}=p[m];return h?.type==="piecewise"?A.jsx(Su,{isReversed:!v,scale:y,colorMap:h,size:a,gradientId:g,direction:"y"},g):h?.type==="continuous"?A.jsx(Pu,{isReversed:!v,scale:y,colorScale:b,colorMap:h,size:a,gradientId:g,direction:"y"},g):null}),l.filter(m=>f[m].colorMap!==void 0).map(m=>{const g=u(m,"x"),{colorMap:h,scale:y,reverse:b,colorScale:v}=f[m];return h?.type==="piecewise"?A.jsx(Su,{isReversed:b,scale:y,colorMap:h,size:c,gradientId:g,direction:"x"},g):h?.type==="continuous"?A.jsx(Pu,{isReversed:b,scale:y,colorScale:v,colorMap:h,size:c,gradientId:g,direction:"x"},g):null})]})}const uc=M.createContext({isInitialized:!1,data:{skipAnimation:void 0}});process.env.NODE_ENV!=="production"&&(uc.displayName="AnimationContext");function TO(e){const{children:t,skipAnimation:n}=e,i=typeof window>"u"||!window?.matchMedia,[o,s]=M.useState(i||void 0);Yt(()=>{if(i)return;const c=l=>{const f=l.matches||void 0;s(f),st.assign({skipAnimation:f})},u=window.matchMedia("(prefers-reduced-motion)");return c(u),u?.addEventListener?.("change",c),()=>{u?.removeEventListener?.("change",c)}},[]);const a=M.useMemo(()=>({isInitialized:!0,data:{skipAnimation:n||o}}),[o,n]);return A.jsx(uc.Provider,{value:a,children:t})}function ei(e){const{isInitialized:t,data:n}=M.useContext(uc);if(!t)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(`
48
+ `));return e||n.skipAnimation}const kO=["slots","slotProps","onItemClick","skipAnimation"],CO=()=>{const e=Ro(),t=De();return M.useMemo(()=>{if(e===void 0)return[];const{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0];return o.flatMap(({ids:d})=>[...d].reverse().map(p=>{const{xAxisId:m,yAxisId:g,xAxisKey:h=l,yAxisKey:y=f,stackedData:b,data:v,connectNulls:T,baseline:O}=i[p],w=m??h,k=g??y,R=Hn(s[w].scale),N=a[k].scale,$=s[w].data,D=a[k].colorScale&&[k,"y"]||s[w].colorScale&&[w,"x"]||void 0;if(process.env.NODE_ENV!=="production"){if($===void 0)throw new Error(`MUI X: ${w===zt?"The first `xAxis`":`The x-axis with id "${w}"`} should have data property to be able to display a line plot.`);if($.length<b.length)throw new Error(`MUI X: The data length of the x axis (${$.length} items) is lower than the length of series (${b.length} items).`)}const E=By().x(F=>R(F.x)).defined((F,z)=>T||v[z]!=null).y0(F=>{if(typeof O=="number")return N(O);if(O==="max")return N.range()[1];if(O==="min")return N.range()[0];const z=F.y&&N(F.y[0]);return Number.isNaN(z)?N.range()[0]:z}).y1(F=>F.y&&N(F.y[1])),x=hp(i[p].curve),P=$?.map((F,z)=>({x:F,y:b[z]}))??[],C=T?P.filter((F,z)=>v[z]!=null):P,I=E.curve(x)(C)||"";return S({},i[p],{gradientUsed:D,d:I,seriesId:p})}))},[e,t])};function mp(e){const{slots:t,slotProps:n,onItemClick:i,skipAnimation:o}=e,s=ie(e,kO),a=ei(o),c=lc(),u=CO();return A.jsx("g",S({},s,{children:u.map(({d:l,seriesId:f,color:d,area:p,gradientUsed:m})=>!!p&&A.jsx(pp,{id:f,d:l,color:d,gradientId:m&&c(...m),slots:t,slotProps:n,onClick:i&&(g=>i(g,{type:"line",seriesId:f})),skipAnimation:a},f))}))}process.env.NODE_ENV!=="production"&&(mp.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const AO=["d","skipAnimation","ownerState"],SO=ye(Rt.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.gradientId&&`url(#${e.gradientId})`||e.isHighlighted&&Nt(e.color).brighter(.5).formatHex()||e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));function gp(e){const{d:t,skipAnimation:n,ownerState:i}=e,o=ie(e,AO),s=lp(t),a=en([s],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return A.jsx(fp,{skipAnimation:n,id:`${i.id}-line-clip`,children:a((c,u)=>A.jsx(SO,S({},o,{ownerState:i,d:c.value.to(u)})))})}process.env.NODE_ENV!=="production"&&(gp.propTypes={d:r.string.isRequired,ownerState:r.shape({classes:r.object,color:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired}).isRequired,skipAnimation:r.bool});const PO=["id","classes","color","gradientId","slots","slotProps","onClick"];function RO(e){return Re("MuiLineElement",e)}Ne("MuiLineElement",["root","highlighted","faded"]);const _O=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,RO,t)};function yp(e){const{id:t,classes:n,color:i,gradientId:o,slots:s,slotProps:a,onClick:c}=e,u=ie(e,PO),l=er(),{isFaded:f,isHighlighted:d}=Jn({seriesId:t}),p={id:t,classes:n,color:i,gradientId:o,isFaded:f,isHighlighted:d},m=_O(p),g=s?.line??gp,h=ze({elementType:g,externalSlotProps:a?.line,additionalProps:S({},l({type:"line",seriesId:t}),{onClick:c,cursor:c?"pointer":"unset"}),className:m.root,ownerState:p});return A.jsx(g,S({},u,h))}process.env.NODE_ENV!=="production"&&(yp.propTypes={classes:r.object,color:r.string.isRequired,d:r.string.isRequired,gradientId:r.string,id:r.oneOfType([r.number,r.string]).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const EO=["slots","slotProps","skipAnimation","onItemClick"],MO=()=>{const e=Ro(),t=De();return M.useMemo(()=>{if(e===void 0)return[];const{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0];return o.flatMap(({ids:d})=>d.flatMap(p=>{const{xAxisId:m,yAxisId:g,xAxisKey:h=l,yAxisKey:y=f,stackedData:b,data:v,connectNulls:T}=i[p],O=m??h,w=g??y,k=Hn(s[O].scale),R=a[w].scale,N=s[O].data,$=a[w].colorScale&&[w,"y"]||s[O].colorScale&&[O,"x"]||void 0;if(process.env.NODE_ENV!=="production"){if(N===void 0)throw new Error(`MUI X: ${O===zt?"The first `xAxis`":`The x-axis with id "${O}"`} should have data property to be able to display a line plot.`);if(N.length<b.length)throw new Error(`MUI X: The data length of the x axis (${N.length} items) is lower than the length of series (${b.length} items).`)}const D=Nf().x(C=>k(C.x)).defined((C,I)=>T||v[I]!=null).y(C=>R(C.y[1])),E=N?.map((C,I)=>({x:C,y:b[I]}))??[],x=T?E.filter((C,I)=>v[I]!=null):E,P=D.curve(hp(i[p].curve))(x)||"";return S({},i[p],{gradientUsed:$,d:P,seriesId:p})}))},[e,t])};function bp(e){const{slots:t,slotProps:n,skipAnimation:i,onItemClick:o}=e,s=ie(e,EO),a=ei(i),c=lc(),u=MO();return A.jsx("g",S({},s,{children:u.map(({d:l,seriesId:f,color:d,gradientUsed:p})=>A.jsx(yp,{id:f,d:l,color:d,gradientId:p&&c(...p),skipAnimation:a,slots:t,slotProps:n,onClick:o&&(m=>o(m,{type:"line",seriesId:f}))},f))}))}process.env.NODE_ENV!=="production"&&(bp.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function IO(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function Pn(e){return e instanceof Date?e.getTime():e}const $O=e=>{const t=cc(),n=We(),{xAxis:i,yAxis:o,xAxisIds:s,yAxisIds:a}=De(),{dispatch:c}=M.useContext(Pt),u=s[0],l=a[0],f=M.useRef({isInChart:!1,x:-1,y:-1});M.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function p(y,b){const{scale:v,data:T,reverse:O}=y;if(!gn(v)){const k=v.invert(b);if(T===void 0)return{value:k,index:-1};const R=Pn(k),N=T?.findIndex(($,D)=>{const E=Pn($);return E>R&&(D===0||Math.abs(R-E)<=Math.abs(R-Pn(T[D-1])))||E<=R&&(D===T.length-1||Math.abs(Pn(k)-E)<Math.abs(Pn(k)-Pn(T[D+1])))});return{value:N!==void 0&&N>=0?T[N]:k,index:N}}const w=v.bandwidth()===0?Math.floor((b-Math.min(...v.range())+v.step()/2)/v.step()):Math.floor((b-Math.min(...v.range()))/v.step());if(w<0||w>=T.length)return null;if(O){const k=T.length-1-w;return{index:k,value:T[k]}}return{index:w,value:T[w]}}const m=()=>{f.current={isInChart:!1,x:-1,y:-1},c({type:"exitChart"})},g=y=>{const b="targetTouches"in y?y.targetTouches[0]:y,v=IO(d,b);if(f.current.x=v.x,f.current.y=v.y,!n.isPointInside(v,{targetElement:y.target})){f.current.isInChart&&(c({type:"exitChart"}),f.current.isInChart=!1);return}f.current.isInChart=!0;const T=p(i[u],v.x),O=p(o[l],v.y);c({type:"updateAxis",data:{x:T,y:O}})},h=y=>{const b=y.currentTarget;b&&b.hasPointerCapture(y.pointerId)&&b.releasePointerCapture(y.pointerId)};return d.addEventListener("pointerdown",h),d.addEventListener("pointermove",g),d.addEventListener("pointerout",m),d.addEventListener("pointercancel",m),d.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerdown",h),d.removeEventListener("pointermove",g),d.removeEventListener("pointerout",m),d.removeEventListener("pointercancel",m),d.removeEventListener("pointerleave",m)}},[t,c,l,o,u,i,e,n])},jO=["children","width","height","viewBox","disableAxisListener","className","title","desc"],NO=ye("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),xp=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiChartsSurface"}),{children:o,width:s,height:a,viewBox:c,disableAxisListener:u=!1,className:l,title:f,desc:d}=i,p=ie(i,jO),m=S({width:s,height:a,x:0,y:0},c);return $O(u),A.jsxs(NO,S({width:s,height:a,viewBox:`${m.x} ${m.y} ${m.width} ${m.height}`,ref:n,className:l},p,{children:[A.jsx("title",{children:f}),A.jsx("desc",{children:d}),o]}))});process.env.NODE_ENV!=="production"&&(xp.propTypes={children:r.node,className:r.string,desc:r.string,disableAxisListener:r.bool,height:r.number.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number.isRequired});const Ru=(e,t,n)=>{const i=n==="x"?zt:qa;return[...e?.map((o,s)=>S({id:`defaultized-${n}-axis-${s}`},o))??[],...e===void 0||e.findIndex(({id:o})=>o===i)===-1?[{id:i,scaleType:"linear"}]:[]].map(o=>{const s=o.dataKey;if(s===void 0||o.data!==void 0)return o;if(t===void 0)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return S({},o,{data:t.map(a=>a[s])})})},DO=(e,t,n)=>{const i=M.useMemo(()=>Ru(e,n,"x"),[e,n]),o=M.useMemo(()=>Ru(t,n,"y"),[t,n]);return[i,o]},LO=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],FO=(e,t)=>{const{width:n,height:i,series:o,margin:s,xAxis:a,yAxis:c,zAxis:u,colors:l,dataset:f,sx:d,title:p,desc:m,disableAxisListener:g,highlightedItem:h,onHighlightChange:y,plugins:b,children:v,skipAnimation:T}=e,O=ie(e,LO),w=M.useRef(null),k=_r(t,w),[R,N]=DO(a,c,f),$={width:n,height:i,margin:s,svgRef:w},D={skipAnimation:T},E={plugins:b},x={series:o,colors:l,dataset:f},P={xAxis:R,yAxis:N,dataset:f},C={zAxis:u,dataset:f},I={highlightedItem:h,onHighlightChange:y},F=S({},O,{width:n,height:i,ref:k,sx:d,title:p,desc:m,disableAxisListener:g});return{children:v,drawingProviderProps:$,seriesProviderProps:x,cartesianProviderProps:P,zAxisContextProps:C,highlightedProviderProps:I,chartsSurfaceProps:F,pluginProviderProps:E,animationProviderProps:D,xAxis:R,yAxis:N}},vp=M.forwardRef(function(t,n){const{children:i,drawingProviderProps:o,seriesProviderProps:s,cartesianProviderProps:a,zAxisContextProps:c,highlightedProviderProps:u,chartsSurfaceProps:l,pluginProviderProps:f,animationProviderProps:d}=FO(t,n);return A.jsx(sv,S({},o,{children:A.jsx(Iv,S({},f,{children:A.jsx(Dv,S({},s,{children:A.jsx(qv,S({},a,{children:A.jsx(Sd,S({},c,{children:A.jsx(Yv,{children:A.jsx(Ad,S({},u,{children:A.jsxs(xp,S({},l,{children:[A.jsx(wO,{}),A.jsx(TO,S({},d,{children:i}))]}))}))})}))}))}))}))}))});process.env.NODE_ENV!=="production"&&(vp.propTypes={children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number.isRequired,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,plugins:r.arrayOf(r.object),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number.isRequired,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});const qO=ye("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}));function na(e){return e&&e.ownerDocument||document}function UO(e){return na(e).defaultView||window}const zO=(e,t,n)=>{const i=M.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=M.useRef(null),[s,a]=M.useState(0),[c,u]=M.useState(0),l=M.useCallback(()=>{const f=o?.current;if(!f)return{};const p=UO(f).getComputedStyle(f),m=Math.floor(parseFloat(p.height))||0,g=Math.floor(parseFloat(p.width))||0;return a(g),u(m),{width:g,height:m}},[]);return M.useEffect(()=>{i.current.displayError=!0},[]),Qt(()=>{if(!n||!i.current.initialCompute||i.current.computeRun>20)return;const f=l();f.width!==s||f.height!==c?i.current.computeRun+=1:i.current.initialCompute&&(i.current.initialCompute=!1)},[s,c,l,n]),Qt(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const f=o.current;if(typeof ResizeObserver>"u")return()=>{};let d;const p=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{l()})});return f&&p.observe(f),()=>{d&&cancelAnimationFrame(d),f&&p.unobserve(f)}},[l,t,e]),process.env.NODE_ENV!=="production"&&(i.current.displayError&&e===void 0&&s===0&&(console.error("MUI X: ChartContainer does not have `width` prop, and its container has no `width` defined."),i.current.displayError=!1),i.current.displayError&&t===void 0&&c===0&&(console.error("MUI X: ChartContainer does not have `height` prop, and its container has no `height` defined."),i.current.displayError=!1)),{containerRef:o,width:e??s,height:t??c}},VO=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],HO=(e,t)=>{const{width:n,height:i,resolveSizeBeforeRender:o,margin:s,children:a,series:c,colors:u,dataset:l,desc:f,disableAxisListener:d,highlightedItem:p,onHighlightChange:m,plugins:g,sx:h,title:y,viewBox:b,xAxis:v,yAxis:T,zAxis:O,skipAnimation:w}=e,k=ie(e,VO),{containerRef:R,width:N,height:$}=zO(n,i,o),D=S({},k,{ownerState:{width:n,height:i},ref:R});return{hasIntrinsicSize:N&&$,chartContainerProps:{margin:s,children:a,series:c,colors:u,dataset:l,desc:f,disableAxisListener:d,highlightedItem:p,onHighlightChange:m,plugins:g,sx:h,title:y,viewBox:b,xAxis:v,yAxis:T,zAxis:O,skipAnimation:w,width:N,height:$,ref:t},resizableChartContainerProps:D}},qo=M.forwardRef(function(t,n){const{hasIntrinsicSize:i,chartContainerProps:o,resizableChartContainerProps:s}=HO(t,n);return A.jsx(qO,S({},s,{children:i?A.jsx(vp,S({},o)):null}))});process.env.NODE_ENV!=="production"&&(qo.propTypes={children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,plugins:r.arrayOf(r.object),resolveSizeBeforeRender:r.bool,series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),zAxis:r.arrayOf(r.shape({colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,id:r.string,max:r.number,min:r.number}))});function BO(e){return Re("MuiMarkElement",e)}Ne("MuiMarkElement",["root","highlighted","faded"]);const Op=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,BO,t)},WO=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function wp(e){const{x:t,y:n,id:i,classes:o,color:s,dataIndex:a,onClick:c,skipAnimation:u,shape:l}=e,f=ie(e,WO);l!=="circle"&&Po([`MUI X: The mark element of your line chart have shape "${l}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join(`
49
+ `),"error");const d=Ut(),p=er(),{isFaded:m,isHighlighted:g}=Jn({seriesId:i}),{axis:h}=M.useContext(Pt),y=sp({to:{x:t,y:n},immediate:u}),b={id:i,classes:o,isHighlighted:h.x?.index===a||g,isFaded:m},v=Op(b);return A.jsx(Rt.circle,S({},f,{cx:y.x,cy:y.y,r:5,fill:(d.vars||d).palette.background.paper,stroke:s,strokeWidth:2,className:v.root,onClick:c,cursor:c?"pointer":"unset"},p({type:"line",seriesId:i,dataIndex:a})))}process.env.NODE_ENV!=="production"&&(wp.propTypes={classes:r.object,dataIndex:r.number.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,shape:r.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired,skipAnimation:r.bool});function YO(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const GO=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],XO=ye(Rt.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));function Tp(e){const{x:t,y:n,id:i,classes:o,color:s,shape:a,dataIndex:c,onClick:u,skipAnimation:l}=e,f=ie(e,GO),d=er(),{isFaded:p,isHighlighted:m}=Jn({seriesId:i}),{axis:g}=M.useContext(Pt),h=sp({to:{x:t,y:n},immediate:l}),y={id:i,classes:o,isHighlighted:g.x?.index===c||m,isFaded:p,color:s},b=Op(y);return A.jsx(XO,S({},f,{style:{transform:Vn([h.x,h.y],(v,T)=>`translate(${v}px, ${T}px)`),transformOrigin:Vn([h.x,h.y],(v,T)=>`${v}px ${T}px`)},ownerState:y,className:b.root,d:ab(sb[YO(a)])(),onClick:u,cursor:u?"pointer":"unset"},d({type:"line",seriesId:i,dataIndex:c})))}process.env.NODE_ENV!=="production"&&(Tp.propTypes={classes:r.object,dataIndex:r.number.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,shape:r.oneOf(["circle","cross","diamond","square","star","triangle","wye"]).isRequired,skipAnimation:r.bool});const KO=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function kp(e){const{slots:t,slotProps:n,skipAnimation:i,onItemClick:o,experimentalRendering:s}=e,a=ie(e,KO),c=ei(i),u=Ro(),l=De(),f=ac(),d=We(),p=t?.mark??(s?wp:Tp);if(u===void 0)return null;const{series:m,stackingGroups:g}=u,{xAxis:h,yAxis:y,xAxisIds:b,yAxisIds:v}=l,T=b[0],O=v[0];return A.jsx("g",S({},a,{children:g.flatMap(({ids:w})=>w.map(k=>{const{xAxisId:R,yAxisId:N,xAxisKey:$=T,yAxisKey:D=O,stackedData:E,data:x,showMark:P=!0}=m[k];if(P===!1)return null;const C=R??$,I=N??D,F=Hn(h[C].scale),z=y[I].scale,B=h[C].data;if(B===void 0)throw new Error(`MUI X: ${C===zt?"The first `xAxis`":`The x-axis with id "${C}"`} should have data property to be able to display a line plot.`);const ee=up(`${f}-${k}-line-clip`),j=Va(m[k],h[C],y[I]);return A.jsx("g",{clipPath:`url(#${ee})`,children:B?.map((U,W)=>{const X=x[W]==null?null:E[W][1];return{x:F(U),y:X===null?null:z(X),position:U,value:X,index:W}}).filter(({x:U,y:W,index:X,position:G,value:Y})=>Y===null||W===null||!d.isPointInside({x:U,y:W})?!1:P===!0?!0:P({x:U,y:W,index:X,position:G,value:Y})).map(({x:U,y:W,index:X})=>A.jsx(p,S({id:k,dataIndex:X,shape:"circle",color:j(X),x:U,y:W,skipAnimation:c,onClick:o&&(G=>o(G,{type:"line",seriesId:k,dataIndex:X}))},n?.mark),`${k}-${X}`))},k)}))}))}process.env.NODE_ENV!=="production"&&(kp.propTypes={experimentalRendering:r.bool,onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function QO(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function qr(e,t,n,i,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${i} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Cp=r.oneOfType([r.func,r.object]);function _u(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ZO(e){return parseInt(M.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Ap(e){return Re("MuiChartsAxis",e)}const hi=Ne("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),Sp=ye("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${hi.tickLabel}`]:S({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${hi.label}`]:S({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${hi.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${hi.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function JO(){return typeof window>"u"}const sn={widthCache:{},cacheCount:0},ew=2e3,tw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nw=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Eu="mui_measurement_span";function Pp(e,t){return nw.indexOf(e)>=0&&t===+t?`${t}px`:t}function Rp(e){return e.split("").reduce((i,o)=>o===o.toUpperCase()?[...i,"-",o.toLowerCase()]:[...i,o],[]).join("")}const rw=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${Rp(n)}:${Pp(n,e[n])};`,"");let ks;const iw=(e,t={})=>{if(e==null||JO())return{width:0,height:0};const n=`${e}`,i=rw(t),o=`${n}-${i}`;if(sn.widthCache[o])return sn.widthCache[o];try{let s=document.getElementById(Eu);s===null&&(s=document.createElement("span"),s.setAttribute("id",Eu),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const a=S({},tw,t);Object.keys(a).map(l=>(s.style[Rp(l)]=Pp(l,a[l]),l)),s.textContent=n;const c=s.getBoundingClientRect(),u={width:c.width,height:c.height};return sn.widthCache[o]=u,sn.cacheCount+1>ew?(sn.cacheCount=0,sn.widthCache={}):sn.cacheCount+=1,ks&&clearTimeout(ks),ks=setTimeout(()=>{s.textContent=""},0),u}catch{return{width:0,height:0}}};function fc({style:e,needsComputation:t,text:n}){return n.split(`
50
+ `).map(i=>S({text:i},t?iw(i,e):{width:0,height:0}))}const ow=["x","y","style","text","ownerState"],sw=["angle","textAnchor","dominantBaseline"];function Bn(e){const{x:t,y:n,style:i,text:o}=e,s=ie(e,ow),a=i??{},{angle:c,textAnchor:u,dominantBaseline:l}=a,f=ie(a,sw),d=M.useMemo(()=>fc({style:f,needsComputation:o.includes(`
51
+ `),text:o}),[f,o]);let p;switch(l){case"hanging":p=0;break;case"central":p=(d.length-1)/2*-d[0].height;break;default:p=(d.length-1)*-d[0].height;break}const m=[];return c&&m.push(`rotate(${c}, ${t}, ${n})`),A.jsx("text",S({},s,{transform:m.length>0?m.join(" "):void 0,x:t,y:n,textAnchor:u,dominantBaseline:l,style:f,children:d.map((g,h)=>A.jsx("tspan",{x:t,dy:`${h===0?p:d[0].height}px`,dominantBaseline:l,children:g.text},h))}))}process.env.NODE_ENV!=="production"&&(Bn.propTypes={lineHeight:r.number,needsComputation:r.bool,ownerState:r.any,style:r.object,text:r.string.isRequired});const Mu=5;function aw(e,t,n=0){process.env.NODE_ENV!=="production"&&n>90&&n<-90&&Po(["MUI X: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.","This could cause some text overlapping.","If you encounter a use case where it's needed, please open an issue."]);const i=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(i<Mu)return e;if(i>90-Mu)return t;const o=i*Math.PI/180,s=Math.atan2(t,e);return o<s?e/Math.cos(o):t/Math.sin(o)}function cw(e=!1){const[t,n]=M.useState(!1);return Qt(()=>{e||n(!0)},[e]),M.useEffect(()=>{e&&n(!0)},[e]),t}const lw=["scale","tickNumber","reverse"],uw=e=>{const{classes:t,position:n}=e;return Ie({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},Ap,t)};function fw(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:i,isMounted:o}){const s=e.map(l=>{if(!o||l.formattedValue===void 0)return S({},l,{width:0,height:0});const f=fc({style:t,needsComputation:!0,text:l.formattedValue});return S({},l,{width:Math.max(...f.map(d=>d.width)),height:Math.max(f.length*f[0].height)})});if(typeof n=="function")return s.map((l,f)=>S({},l,{skipLabel:!n(l.value,f)}));let a=0,c=0;const u=i?-1:1;return s.map((l,f)=>{const{width:d,offset:p,labelOffset:m,height:g}=l,h=aw(d,g,t?.angle),y=p+m,b=1.2;return a=y-u*(b*h)/2,f>0&&u*a<u*c?S({},l,{skipLabel:!0}):(c=y+u*(b*h)/2,l)})}const dw=ye(Sp,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pw={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function ra(e){const{xAxisIds:t,xAxis:n}=De(),i=n[e.axisId??t[0]],{scale:o,tickNumber:s,reverse:a}=i,c=ie(i,lw),u=cw(),l=At({props:S({},c,e),name:"MuiChartsXAxis"}),f=S({},pw,l),{position:d,disableLine:p,disableTicks:m,tickLabelStyle:g,label:h,labelStyle:y,tickFontSize:b,labelFontSize:v,tickSize:T,valueFormatter:O,slots:w,slotProps:k,tickInterval:R,tickLabelInterval:N,tickPlacement:$,tickLabelPlacement:D,sx:E}=f,x=Ut(),P=uw(S({},f,{theme:x})),{left:C,top:I,width:F,height:z,isPointInside:B}=We(),ee=m?4:T,j=d==="bottom"?1:-1,U=w?.axisLine??"line",W=w?.axisTick??"line",X=w?.axisTickLabel??Bn,G=w?.axisLabel??Bn,Y=ze({elementType:X,externalSlotProps:k?.axisTickLabel,additionalProps:{style:S({textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto",fontSize:b??12},g)},className:P.tickLabel,ownerState:{}}),Z=So({scale:o,tickNumber:s,valueFormatter:O,tickInterval:R,tickPlacement:$,tickLabelPlacement:D}),Q=fw(Z,{tickLabelStyle:Y.style,tickLabelInterval:N,reverse:a,isMounted:u}),J={x:C+F/2,y:j*(ee+22)},q=ze({elementType:G,externalSlotProps:k?.axisLabel,additionalProps:{style:S({fontSize:v??14,textAnchor:"middle",dominantBaseline:d==="bottom"?"hanging":"auto"},y)},ownerState:{}}),H=o.domain(),K=gn(o);return K&&H.length===0||!K&&H.some(Fa)?null:A.jsxs(dw,{transform:`translate(0, ${d==="bottom"?I+z:I})`,className:P.root,sx:E,children:[!p&&A.jsx(U,S({x1:C,x2:C+F,className:P.line},k?.axisLine)),Q.map(({formattedValue:_,offset:oe,labelOffset:se,skipLabel:xe},we)=>{const $e=se??0,Vt=j*(ee+3),nr=B({x:oe,y:-1},{direction:"x"}),mt=B({x:oe+$e,y:-1},{direction:"x"});return A.jsxs("g",{transform:`translate(${oe}, 0)`,className:P.tickContainer,children:[!m&&nr&&A.jsx(W,S({y2:j*ee,className:P.tick},k?.axisTick)),_!==void 0&&!xe&&mt&&A.jsx(X,S({x:$e,y:Vt},Y,{text:_.toString()}))]},we)}),h&&A.jsx("g",{className:P.label,children:A.jsx(G,S({},J,q,{text:h}))})]})}process.env.NODE_ENV!=="production"&&(ra.propTypes={axisId:r.oneOfType([r.number,r.string]),classes:r.object,disableLine:r.bool,disableTicks:r.bool,fill:r.string,label:r.string,labelFontSize:r.number,labelStyle:r.object,position:r.oneOf(["bottom","top"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number});const hw=["scale","tickNumber"],mw=e=>{const{classes:t,position:n}=e;return Ie({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},Ap,t)},gw=ye(Sp,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yw={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function ia(e){const{yAxisIds:t,yAxis:n}=De(),i=n[e.axisId??t[0]],{scale:o,tickNumber:s}=i,a=ie(i,hw),c=At({props:S({},a,e),name:"MuiChartsYAxis"}),u=S({},yw,c),{position:l,disableLine:f,disableTicks:d,tickFontSize:p,label:m,labelFontSize:g,labelStyle:h,tickLabelStyle:y,tickSize:b,valueFormatter:v,slots:T,slotProps:O,tickPlacement:w,tickLabelPlacement:k,tickInterval:R,tickLabelInterval:N,sx:$}=u,D=Ut(),E=bo(),x=mw(S({},u,{theme:D})),{left:P,top:C,width:I,height:F,isPointInside:z}=We(),B=d?4:b,ee=So({scale:o,tickNumber:s,valueFormatter:v,tickPlacement:w,tickLabelPlacement:k,tickInterval:R}),j=l==="right"?1:-1,U={x:j*(p+B+10),y:C+F/2},W=T?.axisLine??"line",X=T?.axisTick??"line",G=T?.axisTickLabel??Bn,Y=T?.axisLabel??Bn,Z=!E&&l==="right"||E&&l!=="right",Q=ze({elementType:G,externalSlotProps:O?.axisTickLabel,additionalProps:{style:S({fontSize:p,textAnchor:Z?"start":"end",dominantBaseline:"central"},y)},className:x.tickLabel,ownerState:{}}),J=ze({elementType:Y,externalSlotProps:O?.axisLabel,additionalProps:{style:S({fontSize:g,angle:j*90,textAnchor:"middle",dominantBaseline:"auto"},h)},ownerState:{}}),q=ze({elementType:W,externalSlotProps:O?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),H=o.domain(),K=gn(o);return K&&H.length===0||!K&&H.some(Fa)?null:A.jsxs(gw,{transform:`translate(${l==="right"?P+I:P}, 0)`,className:x.root,sx:$,children:[!f&&A.jsx(W,S({y1:C,y2:C+F,className:x.line},q)),ee.map(({formattedValue:_,offset:oe,labelOffset:se,value:xe},we)=>{const $e=j*(B+2),Vt=se,nr=typeof N=="function"&&!N?.(xe,we);return z({x:-1,y:oe},{direction:"y"})?A.jsxs("g",{transform:`translate(0, ${oe})`,className:x.tickContainer,children:[!d&&A.jsx(X,S({x2:j*B,className:x.tick},O?.axisTick)),_!==void 0&&!nr&&A.jsx(G,S({x:$e,y:Vt,text:_.toString()},Q))]},we):null}),m&&A.jsx("g",{className:x.label,children:A.jsx(Y,S({},U,J,{text:m}))})]})}process.env.NODE_ENV!=="production"&&(ia.propTypes={axisId:r.oneOfType([r.number,r.string]),classes:r.object,disableLine:r.bool,disableTicks:r.bool,fill:r.string,label:r.string,labelFontSize:r.number,labelStyle:r.object,position:r.oneOf(["left","right"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number});const mi=(e,t)=>e==null?null:typeof e=="object"?e.axisId??t??null:e,gi=(e,t,n)=>typeof e=="object"?S({},e,{slots:S({},t,e?.slots),slotProps:S({},n,e?.slotProps)}):{slots:t,slotProps:n};function Uo(e){const{topAxis:t,leftAxis:n,rightAxis:i,bottomAxis:o,slots:s,slotProps:a}=e,{xAxis:c,xAxisIds:u,yAxis:l,yAxisIds:f}=De(),d=mi(n===void 0?f[0]:n,f[0]),p=mi(o===void 0?u[0]:o,u[0]),m=mi(t,u[0]),g=mi(i,f[0]);if(m!==null&&!c[m])throw new Error([`MUI X: id used for top axis "${m}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(`
52
+ `));if(d!==null&&!l[d])throw new Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${f.join(", ")}.`].join(`
53
+ `));if(g!==null&&!l[g])throw new Error([`MUI X: id used for right axis "${g}" is not defined.`,`Available ids are: ${f.join(", ")}.`].join(`
54
+ `));if(p!==null&&!c[p])throw new Error([`MUI X: id used for bottom axis "${p}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(`
55
+ `));const h=gi(t,s,a),y=gi(o,s,a),b=gi(n,s,a),v=gi(i,s,a);return A.jsxs(M.Fragment,{children:[m&&A.jsx(ra,S({},h,{position:"top",axisId:m})),p&&A.jsx(ra,S({},y,{position:"bottom",axisId:p})),d&&A.jsx(ia,S({},b,{position:"left",axisId:d})),g&&A.jsx(ia,S({},v,{position:"right",axisId:g}))]})}process.env.NODE_ENV!=="production"&&(Uo.propTypes={bottomAxis:r.oneOfType([r.object,r.string]),leftAxis:r.oneOfType([r.object,r.string]),rightAxis:r.oneOfType([r.object,r.string]),slotProps:r.object,slots:r.object,topAxis:r.oneOfType([r.object,r.string])});var Ve="top",at="bottom",ct="right",He="left",dc="auto",ti=[Ve,at,ct,He],Wn="start",Ur="end",bw="clippingParents",_p="viewport",fr="popper",xw="reference",Iu=ti.reduce(function(e,t){return e.concat([t+"-"+Wn,t+"-"+Ur])},[]),Ep=[].concat(ti,[dc]).reduce(function(e,t){return e.concat([t,t+"-"+Wn,t+"-"+Ur])},[]),vw="beforeRead",Ow="read",ww="afterRead",Tw="beforeMain",kw="main",Cw="afterMain",Aw="beforeWrite",Sw="write",Pw="afterWrite",Rw=[vw,Ow,ww,Tw,kw,Cw,Aw,Sw,Pw];function Ct(e){return e?(e.nodeName||"").toLowerCase():null}function Ke(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bn(e){var t=Ke(e).Element;return e instanceof t||e instanceof Element}function ot(e){var t=Ke(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pc(e){if(typeof ShadowRoot>"u")return!1;var t=Ke(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _w(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!ot(s)||!Ct(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(a){var c=o[a];c===!1?s.removeAttribute(a):s.setAttribute(a,c===!0?"":c)}))})}function Ew(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(i){var o=t.elements[i],s=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),c=a.reduce(function(u,l){return u[l]="",u},{});!ot(o)||!Ct(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const Mw={name:"applyStyles",enabled:!0,phase:"write",fn:_w,effect:Ew,requires:["computeStyles"]};function Tt(e){return e.split("-")[0]}var mn=Math.max,Ji=Math.min,Yn=Math.round;function oa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mp(){return!/^((?!chrome|android).)*safari/i.test(oa())}function Gn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&ot(e)&&(o=e.offsetWidth>0&&Yn(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Yn(i.height)/e.offsetHeight||1);var a=bn(e)?Ke(e):window,c=a.visualViewport,u=!Mp()&&n,l=(i.left+(u&&c?c.offsetLeft:0))/o,f=(i.top+(u&&c?c.offsetTop:0))/s,d=i.width/o,p=i.height/s;return{width:d,height:p,top:f,right:l+d,bottom:f+p,left:l,x:l,y:f}}function hc(e){var t=Gn(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ip(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pc(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function qt(e){return Ke(e).getComputedStyle(e)}function Iw(e){return["table","td","th"].indexOf(Ct(e))>=0}function rn(e){return((bn(e)?e.ownerDocument:e.document)||window.document).documentElement}function zo(e){return Ct(e)==="html"?e:e.assignedSlot||e.parentNode||(pc(e)?e.host:null)||rn(e)}function $u(e){return!ot(e)||qt(e).position==="fixed"?null:e.offsetParent}function $w(e){var t=/firefox/i.test(oa()),n=/Trident/i.test(oa());if(n&&ot(e)){var i=qt(e);if(i.position==="fixed")return null}var o=zo(e);for(pc(o)&&(o=o.host);ot(o)&&["html","body"].indexOf(Ct(o))<0;){var s=qt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ni(e){for(var t=Ke(e),n=$u(e);n&&Iw(n)&&qt(n).position==="static";)n=$u(n);return n&&(Ct(n)==="html"||Ct(n)==="body"&&qt(n).position==="static")?t:n||$w(e)||t}function mc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vr(e,t,n){return mn(e,Ji(t,n))}function jw(e,t,n){var i=vr(e,t,n);return i>n?n:i}function $p(){return{top:0,right:0,bottom:0,left:0}}function jp(e){return Object.assign({},$p(),e)}function Np(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Nw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jp(typeof t!="number"?t:Np(t,ti))};function Dw(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Tt(n.placement),u=mc(c),l=[He,ct].indexOf(c)>=0,f=l?"height":"width";if(!(!s||!a)){var d=Nw(o.padding,n),p=hc(s),m=u==="y"?Ve:He,g=u==="y"?at:ct,h=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],y=a[u]-n.rects.reference[u],b=ni(s),v=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,T=h/2-y/2,O=d[m],w=v-p[f]-d[g],k=v/2-p[f]/2+T,R=vr(O,k,w),N=u;n.modifiersData[i]=(t={},t[N]=R,t.centerOffset=R-k,t)}}function Lw(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ip(t.elements.popper,o)&&(t.elements.arrow=o))}const Fw={name:"arrow",enabled:!0,phase:"main",fn:Dw,effect:Lw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xn(e){return e.split("-")[1]}var qw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uw(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Yn(n*o)/o||0,y:Yn(i*o)/o||0}}function ju(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,g=a.y,h=g===void 0?0:g,y=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=y.x,h=y.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),T=He,O=Ve,w=window;if(l){var k=ni(n),R="clientHeight",N="clientWidth";if(k===Ke(n)&&(k=rn(n),qt(k).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),k=k,o===Ve||(o===He||o===ct)&&s===Ur){O=at;var $=d&&k===w&&w.visualViewport?w.visualViewport.height:k[R];h-=$-i.height,h*=u?1:-1}if(o===He||(o===Ve||o===at)&&s===Ur){T=ct;var D=d&&k===w&&w.visualViewport?w.visualViewport.width:k[N];m-=D-i.width,m*=u?1:-1}}var E=Object.assign({position:c},l&&qw),x=f===!0?Uw({x:m,y:h},Ke(n)):{x:m,y:h};if(m=x.x,h=x.y,u){var P;return Object.assign({},E,(P={},P[O]=v?"0":"",P[T]=b?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",P))}return Object.assign({},E,(t={},t[O]=v?h+"px":"",t[T]=b?m+"px":"",t.transform="",t))}function zw(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,a=s===void 0?!0:s,c=n.roundOffsets,u=c===void 0?!0:c,l={placement:Tt(t.placement),variation:Xn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ju(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ju(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zw,data:{}};var yi={passive:!0};function Hw(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,a=i.resize,c=a===void 0?!0:a,u=Ke(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(f){f.addEventListener("scroll",n.update,yi)}),c&&u.addEventListener("resize",n.update,yi),function(){s&&l.forEach(function(f){f.removeEventListener("scroll",n.update,yi)}),c&&u.removeEventListener("resize",n.update,yi)}}const Bw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hw,data:{}};var Ww={left:"right",right:"left",bottom:"top",top:"bottom"};function Ei(e){return e.replace(/left|right|bottom|top/g,function(t){return Ww[t]})}var Yw={start:"end",end:"start"};function Nu(e){return e.replace(/start|end/g,function(t){return Yw[t]})}function gc(e){var t=Ke(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function yc(e){return Gn(rn(e)).left+gc(e).scrollLeft}function Gw(e,t){var n=Ke(e),i=rn(e),o=n.visualViewport,s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;var l=Mp();(l||!l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:c+yc(e),y:u}}function Xw(e){var t,n=rn(e),i=gc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-i.scrollLeft+yc(e),u=-i.scrollTop;return qt(o||n).direction==="rtl"&&(c+=mn(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:c,y:u}}function bc(e){var t=qt(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Dp(e){return["html","body","#document"].indexOf(Ct(e))>=0?e.ownerDocument.body:ot(e)&&bc(e)?e:Dp(zo(e))}function Or(e,t){var n;t===void 0&&(t=[]);var i=Dp(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ke(i),a=o?[s].concat(s.visualViewport||[],bc(i)?i:[]):i,c=t.concat(a);return o?c:c.concat(Or(zo(a)))}function sa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kw(e,t){var n=Gn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Du(e,t,n){return t===_p?sa(Gw(e,n)):bn(t)?Kw(t,n):sa(Xw(rn(e)))}function Qw(e){var t=Or(zo(e)),n=["absolute","fixed"].indexOf(qt(e).position)>=0,i=n&&ot(e)?ni(e):e;return bn(i)?t.filter(function(o){return bn(o)&&Ip(o,i)&&Ct(o)!=="body"}):[]}function Zw(e,t,n,i){var o=t==="clippingParents"?Qw(e):[].concat(t),s=[].concat(o,[n]),a=s[0],c=s.reduce(function(u,l){var f=Du(e,l,i);return u.top=mn(f.top,u.top),u.right=Ji(f.right,u.right),u.bottom=Ji(f.bottom,u.bottom),u.left=mn(f.left,u.left),u},Du(e,a,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Lp(e){var t=e.reference,n=e.element,i=e.placement,o=i?Tt(i):null,s=i?Xn(i):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case Ve:u={x:a,y:t.y-n.height};break;case at:u={x:a,y:t.y+t.height};break;case ct:u={x:t.x+t.width,y:c};break;case He:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var l=o?mc(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(s){case Wn:u[l]=u[l]-(t[f]/2-n[f]/2);break;case Ur:u[l]=u[l]+(t[f]/2-n[f]/2);break}}return u}function zr(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,a=s===void 0?e.strategy:s,c=n.boundary,u=c===void 0?bw:c,l=n.rootBoundary,f=l===void 0?_p:l,d=n.elementContext,p=d===void 0?fr:d,m=n.altBoundary,g=m===void 0?!1:m,h=n.padding,y=h===void 0?0:h,b=jp(typeof y!="number"?y:Np(y,ti)),v=p===fr?xw:fr,T=e.rects.popper,O=e.elements[g?v:p],w=Zw(bn(O)?O:O.contextElement||rn(e.elements.popper),u,f,a),k=Gn(e.elements.reference),R=Lp({reference:k,element:T,placement:o}),N=sa(Object.assign({},T,R)),$=p===fr?N:k,D={top:w.top-$.top+b.top,bottom:$.bottom-w.bottom+b.bottom,left:w.left-$.left+b.left,right:$.right-w.right+b.right},E=e.modifiersData.offset;if(p===fr&&E){var x=E[o];Object.keys(D).forEach(function(P){var C=[ct,at].indexOf(P)>=0?1:-1,I=[Ve,at].indexOf(P)>=0?"y":"x";D[P]+=x[I]*C})}return D}function Jw(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?Ep:u,f=Xn(i),d=f?c?Iu:Iu.filter(function(g){return Xn(g)===f}):ti,p=d.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=d);var m=p.reduce(function(g,h){return g[h]=zr(e,{placement:h,boundary:o,rootBoundary:s,padding:a})[Tt(h)],g},{});return Object.keys(m).sort(function(g,h){return m[g]-m[h]})}function eT(e){if(Tt(e)===dc)return[];var t=Ei(e);return[Nu(e),t,Nu(t)]}function tT(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,l=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,h=n.allowedAutoPlacements,y=t.options.placement,b=Tt(y),v=b===y,T=u||(v||!g?[Ei(y)]:eT(y)),O=[y].concat(T).reduce(function(G,Y){return G.concat(Tt(Y)===dc?Jw(t,{placement:Y,boundary:f,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:h}):Y)},[]),w=t.rects.reference,k=t.rects.popper,R=new Map,N=!0,$=O[0],D=0;D<O.length;D++){var E=O[D],x=Tt(E),P=Xn(E)===Wn,C=[Ve,at].indexOf(x)>=0,I=C?"width":"height",F=zr(t,{placement:E,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),z=C?P?ct:He:P?at:Ve;w[I]>k[I]&&(z=Ei(z));var B=Ei(z),ee=[];if(s&&ee.push(F[x]<=0),c&&ee.push(F[z]<=0,F[B]<=0),ee.every(function(G){return G})){$=E,N=!1;break}R.set(E,ee)}if(N)for(var j=g?3:1,U=function(Y){var Z=O.find(function(Q){var J=R.get(Q);if(J)return J.slice(0,Y).every(function(q){return q})});if(Z)return $=Z,"break"},W=j;W>0;W--){var X=U(W);if(X==="break")break}t.placement!==$&&(t.modifiersData[i]._skip=!0,t.placement=$,t.reset=!0)}}const nT={name:"flip",enabled:!0,phase:"main",fn:tT,requiresIfExists:["offset"],data:{_skip:!1}};function Lu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fu(e){return[Ve,ct,at,He].some(function(t){return e[t]>=0})}function rT(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=zr(t,{elementContext:"reference"}),c=zr(t,{altBoundary:!0}),u=Lu(a,i),l=Lu(c,o,s),f=Fu(u),d=Fu(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const iT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rT};function oT(e,t,n){var i=Tt(e),o=[He,Ve].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],c=s[1];return a=a||0,c=(c||0)*o,[He,ct].indexOf(i)>=0?{x:c,y:a}:{x:a,y:c}}function sT(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=Ep.reduce(function(f,d){return f[d]=oT(d,t.rects,s),f},{}),c=a[t.placement],u=c.x,l=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}const aT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sT};function cT(e){var t=e.state,n=e.name;t.modifiersData[n]=Lp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lT={name:"popperOffsets",enabled:!0,phase:"read",fn:cT,data:{}};function uT(e){return e==="x"?"y":"x"}function fT(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,l=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,h=g===void 0?0:g,y=zr(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:f}),b=Tt(t.placement),v=Xn(t.placement),T=!v,O=mc(b),w=uT(O),k=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,$=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(k){if(s){var P,C=O==="y"?Ve:He,I=O==="y"?at:ct,F=O==="y"?"height":"width",z=k[O],B=z+y[C],ee=z-y[I],j=m?-N[F]/2:0,U=v===Wn?R[F]:N[F],W=v===Wn?-N[F]:-R[F],X=t.elements.arrow,G=m&&X?hc(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$p(),Z=Y[C],Q=Y[I],J=vr(0,R[F],G[F]),q=T?R[F]/2-j-J-Z-D.mainAxis:U-J-Z-D.mainAxis,H=T?-R[F]/2+j+J+Q+D.mainAxis:W+J+Q+D.mainAxis,K=t.elements.arrow&&ni(t.elements.arrow),_=K?O==="y"?K.clientTop||0:K.clientLeft||0:0,oe=(P=E?.[O])!=null?P:0,se=z+q-oe-_,xe=z+H-oe,we=vr(m?Ji(B,se):B,z,m?mn(ee,xe):ee);k[O]=we,x[O]=we-z}if(c){var $e,Vt=O==="x"?Ve:He,nr=O==="x"?at:ct,mt=k[w],ri=w==="y"?"height":"width",Tc=mt+y[Vt],kc=mt-y[nr],Go=[Ve,He].indexOf(b)!==-1,Cc=($e=E?.[w])!=null?$e:0,Ac=Go?Tc:mt-R[ri]-N[ri]-Cc+D.altAxis,Sc=Go?mt+R[ri]+N[ri]-Cc-D.altAxis:kc,Pc=m&&Go?jw(Ac,mt,Sc):vr(m?Ac:Tc,mt,m?Sc:kc);k[w]=Pc,x[w]=Pc-mt}t.modifiersData[i]=x}}const dT={name:"preventOverflow",enabled:!0,phase:"main",fn:fT,requiresIfExists:["offset"]};function pT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hT(e){return e===Ke(e)||!ot(e)?gc(e):pT(e)}function mT(e){var t=e.getBoundingClientRect(),n=Yn(t.width)/e.offsetWidth||1,i=Yn(t.height)/e.offsetHeight||1;return n!==1||i!==1}function gT(e,t,n){n===void 0&&(n=!1);var i=ot(t),o=ot(t)&&mT(t),s=rn(t),a=Gn(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((Ct(t)!=="body"||bc(s))&&(c=hT(t)),ot(t)?(u=Gn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=yc(s))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function yT(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function bT(e){var t=yT(e);return Rw.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function xT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vT(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var qu={placement:"bottom",modifiers:[],strategy:"absolute"};function Uu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function OT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?qu:o;return function(c,u,l){l===void 0&&(l=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},qu,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(b){var v=typeof b=="function"?b(f.options):b;h(),f.options=Object.assign({},s,f.options,v),f.scrollParents={reference:bn(c)?Or(c):c.contextElement?Or(c.contextElement):[],popper:Or(u)};var T=bT(vT([].concat(i,f.options.modifiers)));return f.orderedModifiers=T.filter(function(O){return O.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var b=f.elements,v=b.reference,T=b.popper;if(Uu(v,T)){f.rects={reference:gT(v,ni(T),f.options.strategy==="fixed"),popper:hc(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var w=f.orderedModifiers[O],k=w.fn,R=w.options,N=R===void 0?{}:R,$=w.name;typeof k=="function"&&(f=k({state:f,options:N,name:$,instance:m})||f)}}}},update:xT(function(){return new Promise(function(y){m.forceUpdate(),y(f)})}),destroy:function(){h(),p=!0}};if(!Uu(c,u))return m;m.setOptions(l).then(function(y){!p&&l.onFirstUpdate&&l.onFirstUpdate(y)});function g(){f.orderedModifiers.forEach(function(y){var b=y.name,v=y.options,T=v===void 0?{}:v,O=y.effect;if(typeof O=="function"){var w=O({state:f,name:b,instance:m,options:T}),k=function(){};d.push(w||k)}})}function h(){d.forEach(function(y){return y()}),d=[]}return m}}var wT=[Bw,lT,Vw,Mw,aT,nT,dT,Fw,iT],TT=OT({defaultModifiers:wT});function kT(e){return typeof e=="function"?e():e}const eo=M.forwardRef(function(t,n){const{children:i,container:o,disablePortal:s=!1}=t,[a,c]=M.useState(null),u=_r(M.isValidElement(i)?ZO(i):null,n);if(Qt(()=>{s||c(kT(o)||document.body)},[o,s]),Qt(()=>{if(a&&!s)return _u(n,a),()=>{_u(n,null)}},[n,a,s]),s){if(M.isValidElement(i)){const l={ref:u};return M.cloneElement(i,l)}return i}return a&&fh.createPortal(i,a)});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:r.node,container:r.oneOfType([qr,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(eo.propTypes=kf(eo.propTypes));function CT(e){return Re("MuiPopper",e)}Ne("MuiPopper",["root"]);function AT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function to(e){return typeof e=="function"?e():e}function Vo(e){return e.nodeType!==void 0}function ST(e){return!Vo(e)}const PT=e=>{const{classes:t}=e;return Ie({root:["root"]},CT,t)},RT={},_T=M.forwardRef(function(t,n){const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:l,popperOptions:f,popperRef:d,slotProps:p={},slots:m={},TransitionProps:g,ownerState:h,...y}=t,b=M.useRef(null),v=_r(b,n),T=M.useRef(null),O=_r(T,d),w=M.useRef(O);Qt(()=>{w.current=O},[O]),M.useImperativeHandle(d,()=>T.current,[]);const k=AT(l,s),[R,N]=M.useState(k),[$,D]=M.useState(to(i));M.useEffect(()=>{T.current&&T.current.forceUpdate()}),M.useEffect(()=>{i&&D(to(i))},[i]),Qt(()=>{if(!$||!u)return;const I=B=>{N(B.placement)};if(process.env.NODE_ENV!=="production"&&$&&Vo($)&&$.nodeType===1){const B=$.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
56
+ `))}let F=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{I(B)}}];c!=null&&(F=F.concat(c)),f&&f.modifiers!=null&&(F=F.concat(f.modifiers));const z=TT($,b.current,{placement:k,...f,modifiers:F});return w.current(z),()=>{z.destroy(),w.current(null)}},[$,a,c,u,f,k]);const E={placement:R};g!==null&&(E.TransitionProps=g);const x=PT(t),P=m.root??"div",C=ze({elementType:P,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:x.root});return A.jsx(P,{...C,children:typeof o=="function"?o(E):o})}),Fp=M.forwardRef(function(t,n){const{anchorEl:i,children:o,container:s,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:l,open:f,placement:d="bottom",popperOptions:p=RT,popperRef:m,style:g,transition:h=!1,slotProps:y={},slots:b={},...v}=t,[T,O]=M.useState(!0),w=()=>{O(!1)},k=()=>{O(!0)};if(!u&&!f&&(!h||T))return null;let R;if(s)R=s;else if(i){const D=to(i);R=D&&Vo(D)?na(D).body:na(null).body}const N=!f&&u&&(!h||T)?"none":void 0,$=h?{in:f,onEnter:w,onExited:k}:void 0;return A.jsx(eo,{disablePortal:c,container:R,children:A.jsx(_T,{anchorEl:i,direction:a,disablePortal:c,modifiers:l,ref:n,open:h?!T:f,placement:d,popperOptions:p,popperRef:m,slotProps:y,slots:b,...v,style:{position:"fixed",top:0,left:0,display:N,...g},TransitionProps:$,children:o})})});process.env.NODE_ENV!=="production"&&(Fp.propTypes={anchorEl:QO(r.oneOfType([qr,r.object,r.func]),e=>{if(e.open){const t=to(e.anchorEl);if(t&&Vo(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
57
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||ST(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
58
+ `))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([qr,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Cp,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});function ET(){return xg}process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function qp(e){return zg(e)}const MT=ye(Fp,{name:"MuiPopper",slot:"Root"})({}),Up=M.forwardRef(function(t,n){const i=bo(),o=qp({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:l,disablePortal:f,keepMounted:d,modifiers:p,open:m,placement:g,popperOptions:h,popperRef:y,transition:b,slots:v,slotProps:T,...O}=o,w=v?.root??c?.Root,k={anchorEl:s,container:l,disablePortal:f,keepMounted:d,modifiers:p,open:m,placement:g,popperOptions:h,popperRef:y,transition:b,...O};return A.jsx(MT,{as:a,direction:i?"rtl":"ltr",slots:{root:w},slotProps:T??u,...k,ref:n})});process.env.NODE_ENV!=="production"&&(Up.propTypes={anchorEl:r.oneOfType([qr,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([qr,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:r.oneOf(["absolute","fixed"])}),popperRef:Cp,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});function Vr(e){const{children:t,defer:n=!1,fallback:i=null}=e,[o,s]=M.useState(!1);return Qt(()=>{n||s(!0)},[n]),M.useEffect(()=>{n&&s(!0)},[n]),o?t:i}process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:r.node,defer:r.bool,fallback:r.node});process.env.NODE_ENV!=="production"&&(Vr.propTypes=kf(Vr.propTypes));function IT(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,i={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>S({},i,{toJSON:()=>JSON.stringify(i)})}}function $T(){const e=cc(),[t,n]=M.useState(null);return M.useEffect(()=>{const i=e.current;if(i===null)return()=>{};const o=a=>{a.pointerType!=="mouse"&&n(null)},s=a=>{n({x:a.clientX,y:a.clientY,height:a.height,pointerType:a.pointerType})};return i.addEventListener("pointerdown",s),i.addEventListener("pointermove",s),i.addEventListener("pointerup",o),()=>{i.removeEventListener("pointerdown",s),i.removeEventListener("pointermove",s),i.removeEventListener("pointerup",o)}},[e]),t}function jT(e,t){if(e==="item")return t!==null;const n=t.x!==null,i=t.y!==null;return n||i}function NT(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function DT(e){return Re("MuiChartsTooltip",e)}const zu=Ne("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),zp=ye("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),Vp=ye("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),aa=ye("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),dn=ye("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${zu.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${zu.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),Hp=ye("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>Ci(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],background:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function Bp(e){const{series:t,itemData:n,sx:i,classes:o,getColor:s}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:a,color:c}=t.type==="pie"?{color:s(n.dataIndex),displayedLabel:ht(t.data[n.dataIndex].label,"tooltip")}:{color:s(n.dataIndex),displayedLabel:ht(t.label,"tooltip")},u=t.type==="pie"?S({},t.data[n.dataIndex],{label:ht(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],l=t.valueFormatter?.(u,{dataIndex:n.dataIndex});return A.jsx(zp,{sx:i,className:o.paper,children:A.jsx(Vp,{className:o.table,children:A.jsx("tbody",{children:A.jsxs(aa,{className:o.row,children:[A.jsx(dn,{className:pt(o.markCell,o.cell),children:A.jsx(Hp,{color:c,className:o.mark})}),A.jsx(dn,{className:pt(o.labelCell,o.cell),children:a}),A.jsx(dn,{className:pt(o.valueCell,o.cell),children:l})]})})})})}process.env.NODE_ENV!=="production"&&(Bp.propTypes={classes:r.object.isRequired,getColor:r.func.isRequired,itemData:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string]).isRequired,type:r.oneOf(["bar","line","pie","scatter"]).isRequired}).isRequired,series:r.object.isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function LT(e){const{content:t,itemData:n,sx:i,classes:o,contentProps:s}=e,a=St()[n.type].series[n.seriesId],{xAxis:c,yAxis:u,xAxisIds:l,yAxisIds:f}=De(),{zAxis:d,zAxisIds:p}=M.useContext(Eo),m=Cd(),g=a.xAxisId??a.xAxisKey??l[0],h=a.yAxisId??a.yAxisKey??f[0],y=a.zAxisId??a.zAxisKey??p[0],b=m[a.type]?.(a,g&&c[g],h&&u[h],y&&d[y])??(()=>""),v=t??Bp,T=ze({elementType:v,externalSlotProps:s,additionalProps:{itemData:n,series:a,sx:i,classes:o,getColor:b},ownerState:{}});return A.jsx(v,S({},T))}const FT=Bg;function qT(e){return typeof e.main=="string"}function UT(e,t=[]){if(!qT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zT(e=[]){return([,t])=>t&&UT(t,e)}function VT(e){return Re("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const HT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BT=ET(),WT=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:a}=e,c={root:["root",s,e.align!=="inherit"&&`align${jn(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Ie(c,VT,a)},YT=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${jn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(FT(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(zT()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${jn(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Vu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mi=M.forwardRef(function(t,n){const{color:i,...o}=qp({props:t,name:"MuiTypography"}),s=!HT[i],a=BT({...o,...s&&{color:i}}),{align:c="inherit",className:u,component:l,gutterBottom:f=!1,noWrap:d=!1,paragraph:p=!1,variant:m="body1",variantMapping:g=Vu,...h}=a,y={...a,align:c,color:i,className:u,component:l,gutterBottom:f,noWrap:d,paragraph:p,variant:m,variantMapping:g},b=l||(p?"p":g[m]||Vu[m])||"span",v=WT(y);return A.jsx(YT,{as:b,ref:n,className:pt(v.root,u),...h,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...h.style}})});process.env.NODE_ENV!=="production"&&(Mi.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});let Hu;class GT{constructor(){if(this.types=new Set,Hu)throw new Error("You can only create one instance!");Hu=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const Ho=new GT;Ho.addType("bar");Ho.addType("line");Ho.addType("scatter");function Wp(e){return Ho.getTypes().has(e)}function XT(e){return Wp(e.type)}function Yp(e){const{series:t,axis:n,dataIndex:i,axisValue:o,sx:s,classes:a}=e;if(i==null)return null;const c=n.valueFormatter??(u=>n.scaleType==="utc"?NT(u):u.toLocaleString());return A.jsx(zp,{sx:s,className:a.paper,children:A.jsxs(Vp,{className:a.table,children:[o!=null&&!n.hideTooltip&&A.jsx("thead",{children:A.jsx(aa,{children:A.jsx(dn,{colSpan:3,children:A.jsx(Mi,{children:c(o,{location:"tooltip"})})})})}),A.jsx("tbody",{children:t.filter(XT).map(({id:u,label:l,valueFormatter:f,data:d,getColor:p})=>{const m=f(d[i]??null,{dataIndex:i});if(m==null)return null;const g=ht(l,"tooltip"),h=p(i);return A.jsxs(aa,{className:a.row,children:[A.jsx(dn,{className:pt(a.markCell,a.cell),children:h&&A.jsx(Hp,{color:h,className:a.mark})}),A.jsx(dn,{className:pt(a.labelCell,a.cell),children:g?A.jsx(Mi,{children:g}):null}),A.jsx(dn,{className:pt(a.valueCell,a.cell),children:A.jsx(Mi,{children:m})})]},u)})})]})})}process.env.NODE_ENV!=="production"&&(Yp.propTypes={axis:r.object.isRequired,axisData:r.shape({x:r.shape({index:r.number,value:r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired}),y:r.shape({index:r.number,value:r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired})}).isRequired,axisValue:r.oneOfType([r.instanceOf(Date),r.number,r.string]),classes:r.object.isRequired,dataIndex:r.number,series:r.arrayOf(r.object).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function KT(e){const{content:t,contentProps:n,axisData:i,sx:o,classes:s}=e,a=i.x&&i.x.index!==-1,c=a?i.x&&i.x.index:i.y&&i.y.index,u=a?i.x&&i.x.value:i.y&&i.y.value,{xAxisIds:l,xAxis:f,yAxisIds:d,yAxis:p}=De(),{zAxisIds:m,zAxis:g}=M.useContext(Eo),h=St(),y=Cd(),b=a?l[0]:d[0],v=M.useMemo(()=>{const k=[];return Object.keys(h).filter(Wp).forEach(R=>{h[R].seriesOrder.forEach(N=>{const $=h[R].series[N],D=$.xAxisId??$.xAxisKey,E=$.yAxisId??$.yAxisKey,x=a?D:E;if(x===void 0||x===b){const P=h[R].series[N],C=D??l[0],I=E??d[0],F=P.zAxisId??P.zAxisKey??m[0],z=y[R]?.(P,f[C],p[I],F&&g[F])??(()=>"");k.push(S({},P,{getColor:z}))}})}),k},[b,y,a,h,f,l,p,d,g,m]),T=M.useMemo(()=>a?f[b]:p[b],[b,a,f,p]),O=t??Yp,w=ze({elementType:O,externalSlotProps:n,additionalProps:{axisData:i,series:v,axis:T,dataIndex:c,axisValue:u,sx:o,classes:s},ownerState:{}});return A.jsx(O,S({},w))}const QT=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},DT,t)},ZT=ye(Up,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Bo(e){const t=At({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:i,axisContent:o,slots:s,slotProps:a}=t,c=$T(),{item:u,axis:l}=M.useContext(Pt),f=n==="item"?u:l,d=jT(n,f),p=c!==null&&d,m=QT({classes:t.classes}),g=s?.popper??ZT,h=ze({elementType:g,externalSlotProps:a?.popper,additionalProps:{open:p,placement:c?.pointerType==="mouse"?"right-start":"top",anchorEl:IT(c),modifiers:[{name:"offset",options:{offset:[0,c?.pointerType==="touch"?40-c.height:0]}}]},ownerState:{}});return n==="none"?null:A.jsx(Vr,{children:p&&A.jsx(g,S({},h,{className:m.root,children:n==="item"?A.jsx(LT,{itemData:f,content:s?.itemContent??i,contentProps:a?.itemContent,sx:{mx:2},classes:m}):A.jsx(KT,{axisData:f,content:s?.axisContent??o,contentProps:a?.axisContent,sx:{mx:2},classes:m})}))})}process.env.NODE_ENV!=="production"&&(Bo.propTypes={axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])});const JT=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},ek=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},tk=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>{const s=ht(n[o].label,"legend");return s===void 0||i.push({id:o,seriesId:o,color:n[o].color,label:s}),i},[])},nk=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((i,o)=>(n[o].data.forEach(s=>{const a=ht(s.label,"legend");a!==void 0&&i.push({id:s.id,seriesId:o,color:s.color,label:a,itemId:s.id})}),i),[])},rk={bar:JT,scatter:ek,line:tk,pie:nk};function ik(e){return Object.keys(e).flatMap(t=>{const n=rk[t];return n===void 0?[]:n(e[t])})}function ok(e){return Re("MuiChartsLegend",e)}Ne("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const sk=["label"];function ak(e,t,n,i,o,s,a){let c=0,u=0,l=0,f=0,d=0;const p=[0];return[e.map(g=>{let{label:h}=g,y=ie(g,sk);const b=t(h,n),v=S({},y,{label:h,positionX:c,positionY:u,innerHeight:b.innerHeight,innerWidth:b.innerWidth,outerHeight:b.outerHeight,outerWidth:b.outerWidth,rowIndex:d});return i==="row"&&(c+b.innerWidth>o&&(c=0,u+=p[d],d+=1,p.length<=d&&p.push(0),v.positionX=c,v.positionY=u,v.rowIndex=d),l=Math.max(l,c+b.outerWidth),f=Math.max(f,u+b.outerHeight),p[d]=Math.max(p[d],b.outerHeight),c+=b.outerWidth),i==="column"&&(u+b.innerHeight>s&&(c=l+a,u=0,d=0,v.positionX=c,v.positionY=u,v.rowIndex=d),p.length<=d&&p.push(0),l=Math.max(l,c+b.outerWidth),f=Math.max(f,u+b.outerHeight),d+=1,u+=b.outerHeight),v}).map(g=>S({},g,{positionY:g.positionY+(i==="row"?p[g.rowIndex]/2:g.outerHeight/2)})),l,f]}function ck(e){const t=bo(),{id:n,positionY:i,label:o,positionX:s,innerHeight:a,innerWidth:c,legendWidth:u,color:l,gapX:f,gapY:d,itemMarkHeight:p,itemMarkWidth:m,markGap:g,labelStyle:h,classes:y,onClick:b}=e;return A.jsxs("g",{className:pt(y?.series,`${y?.series}-${n}`),transform:`translate(${f+(t?u-s:s)} ${d+i})`,children:[A.jsx("rect",{x:t?-(c+2):-2,y:-p/2-2,width:c+4,height:a+4,fill:"transparent",className:y?.itemBackground,onClick:b,style:{pointerEvents:b?"all":"none",cursor:b?"pointer":"unset"}}),A.jsx("rect",{className:y?.mark,x:t?-m:0,y:-p/2,width:m,height:p,fill:l,style:{pointerEvents:"none"}}),A.jsx(Bn,{style:S({pointerEvents:"none"},h),text:o,x:(t?-1:1)*(m+g),y:0})]})}const lk=["rotate","dominantBaseline"],uk=ye("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fk=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:S({left:0,right:0,top:0,bottom:0},e);function dk(e){const{position:t,direction:n,itemsToDisplay:i,classes:o,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:c=5,itemGap:u=10,padding:l=10,labelStyle:f,onItemClick:d}=e,p=Ut(),m=We(),g=M.useMemo(()=>S({},p.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(p.vars||p).palette.text.primary,lineHeight:1},f),[f,p]),h=M.useMemo(()=>fk(l),[l]),y=M.useCallback((D,E={})=>{const x=ie(E,lk),P=fc({style:x,needsComputation:!0,text:D}),C={innerWidth:s+c+Math.max(...P.map(I=>I.width)),innerHeight:Math.max(a,P.length*P[0].height)};return S({},C,{outerWidth:C.innerWidth+u,outerHeight:C.innerHeight+u})},[u,a,s,c]),b=m.left+m.width+m.right,v=m.top+m.height+m.bottom,T=b-h.left-h.right,O=v-h.top-h.bottom,[w,k,R]=M.useMemo(()=>ak(i,y,g,n,T,O,u),[i,y,g,n,T,O,u]),N=M.useMemo(()=>{switch(t.horizontal){case"left":return h.left;case"right":return b-h.right-k;default:return(b-k)/2}},[t.horizontal,h.left,h.right,b,k]),$=M.useMemo(()=>{switch(t.vertical){case"top":return h.top;case"bottom":return v-h.bottom-R;default:return(v-R)/2}},[t.vertical,h.top,h.bottom,v,R]);return A.jsx(Vr,{children:A.jsx(uk,{className:o?.root,children:w.map((D,E)=>ae.createElement(ck,S({},D,{key:D.id,gapX:N,gapY:$,legendWidth:k,itemMarkHeight:a,itemMarkWidth:s,markGap:c,labelStyle:g,classes:o,onClick:d?x=>d(x,E):void 0})))})})}const pk=["drawingArea","seriesToDisplay","hidden","onItemClick"],hk=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function Gp(e){const{seriesToDisplay:t,hidden:n,onItemClick:i}=e,o=ie(e,pk);return n?null:A.jsx(dk,S({},o,{itemsToDisplay:t,onItemClick:i?(s,a)=>i(s,hk(t[a]),a):void 0}))}process.env.NODE_ENV!=="production"&&(Gp.propTypes={classes:r.object,direction:r.oneOf(["column","row"]).isRequired,drawingArea:r.shape({bottom:r.number.isRequired,height:r.number.isRequired,left:r.number.isRequired,right:r.number.isRequired,top:r.number.isRequired,width:r.number.isRequired}).isRequired,hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}).isRequired,series:r.object.isRequired,seriesToDisplay:r.arrayOf(r.shape({color:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,itemId:r.oneOfType([r.number,r.string]),label:r.string.isRequired,maxValue:r.oneOfType([r.instanceOf(Date),r.number]),minValue:r.oneOfType([r.instanceOf(Date),r.number]),seriesId:r.oneOfType([r.number,r.string])})).isRequired});const mk=["slots","slotProps"],gk=e=>{const{classes:t,direction:n}=e;return Ie({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},ok,t)};function Wo(e){const t=At({props:e,name:"MuiChartsLegend"}),n=S({direction:"row"},t,{position:S({horizontal:"middle",vertical:"top"},t.position)}),{slots:i,slotProps:o}=n,s=ie(n,mk),a=Ut(),c=gk(S({},n,{theme:a})),u=We(),l=St(),f=ik(l),d=i?.legend??Gp,p=ze({elementType:d,externalSlotProps:o?.legend,additionalProps:S({},s,{classes:c,drawingArea:u,series:l,seriesToDisplay:f}),ownerState:{}});return A.jsx(d,S({},p))}process.env.NODE_ENV!=="production"&&(Wo.propTypes={classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object});function cn(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function yk(e){return Re("MuiChartsAxisHighlight",e)}Ne("MuiChartsAxisHighlight",["root"]);const bk=()=>Ie({root:["root"]},yk),bi=ye("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:S({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:S({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function Yo(e){const{x:t,y:n}=e,{xAxisIds:i,xAxis:o,yAxisIds:s,yAxis:a}=De(),c=bk(),u=i[0],l=s[0],f=o[u].scale,d=a[l].scale,{axis:p}=M.useContext(Pt),m=Hn(f),g=Hn(d),h=p.x,y=p.y,b=t==="band"&&h!==null&&gn(f),v=n==="band"&&y!==null&&gn(d);if(process.env.NODE_ENV!=="production"){const T=b&&f(h.value)===void 0,O=v&&d(y.value)===void 0;(T||O)&&console.error(["MUI X: The position value provided for the axis is not valid for the current scale.","This probably means something is wrong with the data passed to the chart.","The ChartsAxisHighlight component will not be displayed."].join(`
59
+ `))}return A.jsxs(M.Fragment,{children:[b&&f(h.value)!==void 0&&A.jsx(bi,{d:`M ${f(h.value)-(f.step()-f.bandwidth())/2} ${d.range()[0]} l ${f.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-f.step()} 0 Z`,className:c.root,ownerState:{axisHighlight:"band"}}),v&&d(y.value)!==void 0&&A.jsx(bi,{d:`M ${f.range()[0]} ${d(y.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${f.range()[1]-f.range()[0]} 0 l 0 ${-d.step()} Z`,className:c.root,ownerState:{axisHighlight:"band"}}),t==="line"&&p.x!==null&&A.jsx(bi,{d:`M ${m(p.x.value)} ${d.range()[0]} L ${m(p.x.value)} ${d.range()[1]}`,className:c.root,ownerState:{axisHighlight:"line"}}),n==="line"&&p.y!==null&&A.jsx(bi,{d:`M ${f.range()[0]} ${g(p.y.value)} L ${f.range()[1]} ${g(p.y.value)}`,className:c.root,ownerState:{axisHighlight:"line"}})]})}process.env.NODE_ENV!=="production"&&(Yo.propTypes={x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])});function xc(e){const{id:t,offset:n}=e,{left:i,top:o,width:s,height:a}=We(),c=S({top:0,right:0,bottom:0,left:0},n);return A.jsx("clipPath",{id:t,children:A.jsx("rect",{x:i-c.left,y:o-c.top,width:s+c.left+c.right,height:a+c.top+c.bottom})})}process.env.NODE_ENV!=="production"&&(xc.propTypes={id:r.string.isRequired,offset:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})});const xk=["x","y","id","classes","color"];function vk(e){return Re("MuiHighlightElement",e)}Ne("MuiHighlightElement",["root"]);const Ok=e=>{const{classes:t,id:n}=e,i={root:["root",`series-${n}`]};return Ie(i,vk,t)},wk=ye("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function Xp(e){const{x:t,y:n,id:i,classes:o,color:s}=e,a=ie(e,xk),c={id:i,classes:o,color:s,x:t,y:n},u=Ok(c);return A.jsx(wk,S({pointerEvents:"none",ownerState:c,className:u.root,cx:0,cy:0,r:a.r===void 0?5:a.r},a))}process.env.NODE_ENV!=="production"&&(Xp.propTypes={classes:r.object,id:r.oneOfType([r.number,r.string]).isRequired});const Tk=["slots","slotProps"];function Kp(e){const{slots:t,slotProps:n}=e,i=ie(e,Tk),o=Ro(),s=De(),a=We(),{axis:c}=M.useContext(Pt),u=c.x?.index;if(u===void 0||o===void 0)return null;const{series:l,stackingGroups:f}=o,{xAxis:d,yAxis:p,xAxisIds:m,yAxisIds:g}=s,h=m[0],y=g[0],b=t?.lineHighlight??Xp;return A.jsx("g",S({},i,{children:f.flatMap(({ids:v})=>v.flatMap(T=>{const{xAxisId:O,yAxisId:w,xAxisKey:k=h,yAxisKey:R=y,stackedData:N,data:$,disableHighlight:D}=l[T],E=O??k,x=w??R;if(D||$[u]==null)return null;const P=Hn(d[E].scale),C=p[x].scale,I=d[E].data;if(I===void 0)throw new Error(`MUI X: ${E===zt?"The first `xAxis`":`The x-axis with id "${E}"`} should have data property to be able to display a line plot.`);const F=P(I[u]),z=C(N[u][1]);if(!a.isPointInside({x:F,y:z}))return null;const B=Va(l[T],d[E],p[x]);return A.jsx(b,S({id:T,color:B(u),x:F,y:z},n?.lineHighlight),`${T}`)}))}))}process.env.NODE_ENV!=="production"&&(Kp.propTypes={slotProps:r.object,slots:r.object});function kk(e){return Re("MuiChartsGrid",e)}const Bu=Ne("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),Ck=ye("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Bu.verticalLine}`]:t.verticalLine},{[`&.${Bu.horizontalLine}`]:t.horizontalLine},t.root]})({}),Qp=ye("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function Ak(e){const{axis:t,drawingArea:n,classes:i}=e,{scale:o,tickNumber:s,tickInterval:a}=t,c=So({scale:o,tickNumber:s,tickInterval:a});return A.jsx(M.Fragment,{children:c.map(({value:u,offset:l})=>A.jsx(Qp,{y1:n.top,y2:n.top+n.height,x1:l,x2:l,className:i.verticalLine},`vertical-${u}`))})}function Sk(e){const{axis:t,drawingArea:n,classes:i}=e,{scale:o,tickNumber:s,tickInterval:a}=t,c=So({scale:o,tickNumber:s,tickInterval:a});return A.jsx(M.Fragment,{children:c.map(({value:u,offset:l})=>A.jsx(Qp,{y1:l,y2:l,x1:n.left,x2:n.left+n.width,className:i.horizontalLine},`horizontal-${u}`))})}const Pk=["vertical","horizontal"],Rk=({classes:e})=>Ie({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},kk,e);function vc(e){const t=At({props:e,name:"MuiChartsGrid"}),n=We(),{vertical:i,horizontal:o}=t,s=ie(t,Pk),{xAxis:a,xAxisIds:c,yAxis:u,yAxisIds:l}=De(),f=Rk(t),d=u[l[0]],p=a[c[0]];return A.jsxs(Ck,S({},s,{className:f.root,children:[i&&A.jsx(Ak,{axis:p,drawingArea:n,classes:f}),o&&A.jsx(Sk,{axis:d,drawingArea:n,classes:f})]}))}process.env.NODE_ENV!=="production"&&(vc.propTypes={classes:r.object,horizontal:r.bool,vertical:r.bool});function Oc(e){const{onAxisClick:t}=e,n=cc(),i=St(),{axis:o}=M.useContext(Pt),{xAxisIds:s,xAxis:a,yAxisIds:c,yAxis:u}=De();return M.useEffect(()=>{const l=n.current;if(l===null||!t)return()=>{};const f=d=>{d.preventDefault();const p=o.x&&o.x.index!==-1,m=p?s[0]:c[0],g=p?o.x&&o.x.index:o.y&&o.y.index;if(g==null)return;const h={};Object.keys(i).filter(b=>["bar","line"].includes(b)).forEach(b=>{i[b]?.seriesOrder.forEach(v=>{const T=i[b].series[v],O=T.xAxisId??T.xAxisKey,w=T.yAxisId??T.yAxisKey,k=p?O:w;(k===void 0||k===m)&&(h[v]=T.data[g])})});const y=(p?a:u)[m].data?.[g];t(d,{dataIndex:g,axisValue:y,seriesValues:h})};return l.addEventListener("click",f),()=>{l.removeEventListener("click",f)}},[o.x,o.y,t,i,n,a,s,u,c]),A.jsx(M.Fragment,{})}process.env.NODE_ENV!=="production"&&(Oc.propTypes={onAxisClick:r.func});const _k=["message"],Ek=ye("text")(({theme:e})=>S({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Mk(e){const{message:t}=e,n=ie(e,_k),{top:i,left:o,height:s,width:a}=We();return A.jsx(Ek,S({x:o+a/2,y:i+s/2},n,{children:t??"Loading data…"}))}const Ik=["message"],$k=ye("text")(({theme:e})=>S({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function jk(e){const{message:t}=e,n=ie(e,Ik),{top:i,left:o,height:s,width:a}=We();return A.jsx($k,S({x:o+a/2,y:i+s/2},n,{children:t??"No data to display"}))}function Nk(){const e=St();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:i}=t;return i.every(o=>n[o].data.length===0)})}function wc(e){const t=Nk();if(e.loading){const n=e.slots?.loadingOverlay??Mk;return A.jsx(n,S({},e.slotProps?.loadingOverlay))}if(t){const n=e.slots?.noDataOverlay??jk;return A.jsx(n,S({},e.slotProps?.noDataOverlay))}return null}const Dk=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Lk=e=>{const{xAxis:t,yAxis:n,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,tooltip:f,onAxisClick:d,onAreaClick:p,onLineClick:m,onMarkClick:g,axisHighlight:h,disableLineItemHighlight:y,legend:b,grid:v,topAxis:T,leftAxis:O,rightAxis:w,bottomAxis:k,children:R,slots:N,slotProps:$,skipAnimation:D,loading:E,highlightedItem:x,onHighlightChange:P,className:C,experimentalMarkRendering:I}=e,F=ie(e,Dk),B=`${ya()}-clip-path`,ee=S({},F,{series:i.map(oe=>S({disableHighlight:!!y,type:"line"},oe)),width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??[{id:zt,scaleType:"point",data:Array.from({length:Math.max(...i.map(oe=>(oe.data??u??[]).length))},(oe,se)=>se)}],yAxis:n,sx:l,highlightedItem:x,onHighlightChange:P,disableAxisListener:f?.trigger!=="axis"&&h?.x==="none"&&h?.y==="none"&&!d,className:C,skipAnimation:D}),j={onAxisClick:d},U={vertical:v?.vertical,horizontal:v?.horizontal},W={clipPath:`url(#${B})`},X={id:B},G={slots:N,slotProps:$,onItemClick:p},Y={slots:N,slotProps:$,onItemClick:m},Z={slots:N,slotProps:$,onItemClick:g,skipAnimation:D,experimentalRendering:I},Q={slots:N,slotProps:$,loading:E},J={topAxis:T,leftAxis:O,rightAxis:w,bottomAxis:k,slots:N,slotProps:$},q=S({x:"line"},h),H={slots:N,slotProps:$},K=S({},b,{slots:N,slotProps:$}),_=S({},f,{slots:N,slotProps:$});return{chartContainerProps:ee,axisClickHandlerProps:j,gridProps:U,clipPathProps:X,clipPathGroupProps:W,areaPlotProps:G,linePlotProps:Y,markPlotProps:Z,overlayProps:Q,chartsAxisProps:J,axisHighlightProps:q,lineHighlightPlotProps:H,legendProps:K,tooltipProps:_,children:R}},Zp=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiLineChart"}),{chartContainerProps:o,axisClickHandlerProps:s,gridProps:a,clipPathProps:c,clipPathGroupProps:u,areaPlotProps:l,linePlotProps:f,markPlotProps:d,overlayProps:p,chartsAxisProps:m,axisHighlightProps:g,lineHighlightPlotProps:h,legendProps:y,tooltipProps:b,children:v}=Lk(i);return A.jsxs(qo,S({ref:n},o,{children:[i.onAxisClick&&A.jsx(Oc,S({},s)),A.jsx(vc,S({},a)),A.jsxs("g",S({},u,{children:[A.jsx(mp,S({},l)),A.jsx(bp,S({},f)),A.jsx(wc,S({},p)),A.jsx(Yo,S({},g))]})),A.jsx(Uo,S({},m)),A.jsx("g",{"data-drawing-container":!0,children:A.jsx(kp,S({},d))}),A.jsx(Kp,S({},h)),A.jsx(Wo,S({},y)),!i.loading&&A.jsx(Bo,S({},b)),A.jsx(xc,S({},c)),v]}))});process.env.NODE_ENV!=="production"&&(Zp.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,disableLineItemHighlight:r.bool,experimentalMarkRendering:r.bool,grid:r.shape({horizontal:r.bool,vertical:r.bool}),height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onAreaClick:r.func,onAxisClick:r.func,onHighlightChange:r.func,onLineClick:r.func,onMarkClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const Fk=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(Zp,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},qk=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function Uk(e){return Re("MuiBarElement",e)}Ne("MuiBarElement",["root"]);const zk=e=>{const{classes:t,id:n}=e,i={root:["root",`series-${n}`]};return Ie(i,Uk,t)},Vk=ye(Rt.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Nt(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded&&.3||1}));function Jp(e){const{id:t,dataIndex:n,classes:i,color:o,slots:s,slotProps:a,style:c,onClick:u}=e,l=ie(e,qk),f=er(),{isFaded:d,isHighlighted:p}=Jn({seriesId:t,dataIndex:n}),m={id:t,dataIndex:n,classes:i,color:o,isFaded:d,isHighlighted:p},g=zk(m),h=s?.bar??Vk,y=ze({elementType:h,externalSlotProps:a?.bar,externalForwardedProps:l,additionalProps:S({},f({type:"bar",seriesId:t,dataIndex:n}),{style:c,onClick:u,cursor:u?"pointer":"unset"}),className:g.root,ownerState:m});return A.jsx(h,S({},y))}process.env.NODE_ENV!=="production"&&(Jp.propTypes={classes:r.object,dataIndex:r.number.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,slotProps:r.object,slots:r.object});const xi=(e,{hasNegative:t,hasPositive:n,borderRadius:i,layout:o})=>{if(!i)return 0;const s=o==="vertical";return e==="top-left"&&(s&&n||!s&&t)||e==="top-right"&&(s&&n||!s&&n)||e==="bottom-right"&&(s&&t||!s&&n)||e==="bottom-left"&&(s&&t||!s&&t)?i:0},Hk=["style","maskId"],Bk=e=>`inset(0px round ${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px)`;function Wk(e){const t=e.ownerState;return A.jsx(Rt.rect,{style:S({},e.style,{clipPath:(e.ownerState.layout==="vertical"?e.style?.height:e.style?.width).to(n=>Bk({topLeft:Math.min(n,xi("top-left",t)),topRight:Math.min(n,xi("top-right",t)),bottomRight:Math.min(n,xi("bottom-right",t)),bottomLeft:Math.min(n,xi("bottom-left",t))}))})})}function Yk(e){const{style:t,maskId:n}=e,i=ie(e,Hk);return!e.borderRadius||e.borderRadius<=0?null:A.jsx("clipPath",{id:n,children:A.jsx(Wk,{ownerState:i,style:t})})}function Gk(e){return Re("MuiBarLabel",e)}const Cs=Ne("MuiBarLabel",["root","highlighted","faded"]),Xk=e=>{const{classes:t,seriesId:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,Gk,t)},Kk=e=>{const{barLabel:t,value:n,dataIndex:i,seriesId:o,height:s,width:a}=e;return t==="value"?n?n?.toString():null:t({seriesId:o,dataIndex:i,value:n},{bar:{height:s,width:a}})},Qk=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],Zk=ye(Rt.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Cs.faded}`]:t.faded},{[`&.${Cs.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>S({},e?.typography?.body2,{stroke:"none",fill:(e.vars||e)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Cs.faded}`]:{opacity:.3}}));function eh(e){const t=At({props:e,name:"MuiBarLabel"}),n=ie(t,Qk);return A.jsx(Zk,S({},n))}process.env.NODE_ENV!=="production"&&(eh.propTypes={classes:r.object,dataIndex:r.number.isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired,seriesId:r.oneOfType([r.number,r.string]).isRequired});const Jk=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],eC=["ownerState"];function th(e){const{seriesId:t,classes:n,color:i,style:o,dataIndex:s,barLabel:a,slots:c,slotProps:u,height:l,width:f,value:d}=e,p=ie(e,Jk),{isFaded:m,isHighlighted:g}=Jn({seriesId:t,dataIndex:s}),h={seriesId:t,classes:n,color:i,isFaded:m,isHighlighted:g,dataIndex:s},y=Xk(h),b=c?.barLabel??eh,v=ze({elementType:b,externalSlotProps:u?.barLabel,additionalProps:S({},p,{style:o,className:y.root}),ownerState:h}),{ownerState:T}=v,O=ie(v,eC);if(!a)return null;const w=Kk({barLabel:a,value:d,dataIndex:s,seriesId:t,height:l,width:f});return w?A.jsx(b,S({},O,T,{children:w})):null}process.env.NODE_ENV!=="production"&&(th.propTypes={barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),classes:r.object,color:r.string.isRequired,dataIndex:r.number.isRequired,height:r.number.isRequired,seriesId:r.oneOfType([r.number,r.string]).isRequired,slotProps:r.object,slots:r.object,value:r.number,width:r.number.isRequired});const tC=["bars","skipAnimation"],nC=({layout:e,yOrigin:t,x:n,width:i,y:o,xOrigin:s,height:a})=>S({},e==="vertical"?{y:t,x:n+i/2,height:0,width:i}:{y:o+a/2,x:s,height:a,width:0}),Wu=({x:e,width:t,y:n,height:i})=>({x:e+t/2,y:n+i/2,height:i,width:t});function rC(e){const{bars:t,skipAnimation:n}=e,i=ie(e,tC),o=en(t,{keys:s=>`${s.seriesId}-${s.dataIndex}`,from:nC,leave:null,enter:Wu,update:Wu,immediate:n});return A.jsx(M.Fragment,{children:o((s,{seriesId:a,dataIndex:c,color:u,value:l,width:f,height:d})=>A.jsx(th,S({seriesId:a,dataIndex:c,value:l,color:u,width:f,height:d},i,{style:s})))})}const As=(e,t)=>{const n=`${e}-axis`,i=`${e}Axis`;return t===(e==="x"?zt:qa)?`The first \`${i}\``:`The ${n} with id "${t}"`};function iC(e,t,n,i,o,s){const a=i[n],c=s[o],u=e?a:c,l=e?c:a,f=e?n:o,d=e?o:n,p=e?"x":"y",m=e?"y":"x";if(!zs(u))throw new Error(`MUI X: ${As(p,f)} should be of type "band" to display the bar series of id "${t}".`);if(u.data===void 0)throw new Error(`MUI X: ${As(p,f)} should have data property.`);if(zs(l)||xd(l))throw new Error(`MUI X: ${As(m,d)} should be a continuous type to display the bar series of id "${t}".`)}const oC=["skipAnimation","onItemClick","borderRadius","barLabel"];function sC({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const i=e/(t+(t-1)*n),o=n*i;return{barWidth:i,offset:o}}const aC=()=>{const e=Fv()??{series:{},stackingGroups:[]},t=De(),n=ac(),{series:i,stackingGroups:o}=e,{xAxis:s,yAxis:a,xAxisIds:c,yAxisIds:u}=t,l=c[0],f=u[0],d={};return{completedData:o.flatMap(({ids:m},g)=>m.flatMap(h=>{const y=i[h].xAxisId??i[h].xAxisKey??l,b=i[h].yAxisId??i[h].yAxisKey??f,v=s[y],T=a[b],O=i[h].layout==="vertical";iC(O,h,y,s,b,a);const w=O?v:T,k=v.scale,R=T.scale,N=kd(i[h],s[y],a[b]),$=w.scale.bandwidth(),{barWidth:D,offset:E}=sC({bandWidth:$,numberOfGroups:o.length,gapRatio:w.barGapRatio}),x=g*(D+E),{stackedData:P}=i[h];return P.map((C,I)=>{const F=C.map(W=>O?R(W):k(W)),z=Math.round(Math.min(...F)),B=Math.round(Math.max(...F)),ee=i[h].stack,j={seriesId:h,dataIndex:I,layout:i[h].layout,x:O?k(s[y].data?.[I])+x:z,y:O?z:R(a[b].data?.[I])+x,xOrigin:k(0),yOrigin:R(0),height:O?B-z:D,width:O?D:B-z,color:N(I),value:i[h].data[I],maskId:`${n}_${ee||h}_${g}_${I}`};d[j.maskId]||(d[j.maskId]={id:j.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:j.layout,xOrigin:k(0),yOrigin:R(0),x:0,y:0});const U=d[j.maskId];return U.width=j.layout==="vertical"?j.width:U.width+j.width,U.height=j.layout==="vertical"?U.height+j.height:j.height,U.x=Math.min(U.x===0?1/0:U.x,j.x),U.y=Math.min(U.y===0?1/0:U.y,j.y),U.hasNegative=U.hasNegative||(j.value??0)<0,U.hasPositive=U.hasPositive||(j.value??0)>0,j})})),masksData:Object.values(d)}},vi=({layout:e,yOrigin:t,x:n,width:i,y:o,xOrigin:s,height:a})=>S({},e==="vertical"?{y:t,x:n,height:0,width:i}:{y:o,x:s,height:a,width:0}),Oi=({x:e,width:t,y:n,height:i})=>({y:n,x:e,height:i,width:t});function nh(e){const{completedData:t,masksData:n}=aC(),{skipAnimation:i,onItemClick:o,borderRadius:s,barLabel:a}=e,c=ie(e,oC),u=ei(i),l=!s||s<=0,f=en(t,{keys:p=>`${p.seriesId}-${p.dataIndex}`,from:vi,leave:vi,enter:Oi,update:Oi,immediate:u}),d=en(l?[]:n,{keys:p=>p.id,from:vi,leave:vi,enter:Oi,update:Oi,immediate:u});return A.jsxs(M.Fragment,{children:[!l&&d((p,{id:m,hasPositive:g,hasNegative:h,layout:y})=>A.jsx(Yk,{maskId:m,borderRadius:s,hasNegative:h,hasPositive:g,layout:y,style:p})),f((p,{seriesId:m,dataIndex:g,color:h,maskId:y})=>{const b=A.jsx(Jp,S({id:m,dataIndex:g,color:h},c,{onClick:o&&(v=>{o(v,{type:"bar",seriesId:m,dataIndex:g})}),style:p}));return l?b:A.jsx("g",{clipPath:`url(#${y})`,children:b})}),a&&A.jsx(rC,S({bars:t,skipAnimation:u,barLabel:a},c))]})}process.env.NODE_ENV!=="production"&&(nh.propTypes={barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),borderRadius:r.number,onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const cC=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],lC=e=>{const{xAxis:t,yAxis:n,series:i,width:o,height:s,margin:a,colors:c,dataset:u,sx:l,tooltip:f,onAxisClick:d,axisHighlight:p,legend:m,grid:g,topAxis:h,leftAxis:y,rightAxis:b,bottomAxis:v,children:T,slots:O,slotProps:w,skipAnimation:k,loading:R,layout:N,onItemClick:$,highlightedItem:D,onHighlightChange:E,borderRadius:x,barLabel:P,className:C}=e,I=ie(e,cC),z=`${ya()}-clip-path`,B=N==="horizontal"||N===void 0&&i.some(K=>K.layout==="horizontal"),ee={scaleType:"band",data:Array.from({length:Math.max(...i.map(K=>(K.data??u??[]).length))},(K,_)=>_)},j=S({},I,{series:i.map(K=>S({type:"bar"},K,{layout:B?"horizontal":"vertical"})),width:o,height:s,margin:a,colors:c,dataset:u,xAxis:t??(B?void 0:[S({id:zt},ee)]),yAxis:n??(B?[S({id:qa},ee)]:void 0),sx:l,highlightedItem:D,onHighlightChange:E,disableAxisListener:f?.trigger!=="axis"&&p?.x==="none"&&p?.y==="none"&&!d,className:C,skipAnimation:k}),U={onItemClick:$,slots:O,slotProps:w,borderRadius:x,barLabel:P},W={onAxisClick:d},X={vertical:g?.vertical,horizontal:g?.horizontal},G={clipPath:`url(#${z})`},Y={id:z},Z={slots:O,slotProps:w,loading:R},Q={topAxis:h,leftAxis:y,rightAxis:b,bottomAxis:v,slots:O,slotProps:w},J=S({},B?{y:"band"}:{x:"band"},p),q=S({},m,{slots:O,slotProps:w}),H=S({},f,{slots:O,slotProps:w});return{chartContainerProps:j,barPlotProps:U,axisClickHandlerProps:W,gridProps:X,clipPathProps:Y,clipPathGroupProps:G,overlayProps:Z,chartsAxisProps:Q,axisHighlightProps:J,legendProps:q,tooltipProps:H,children:T}},rh=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiBarChart"}),{chartContainerProps:o,barPlotProps:s,axisClickHandlerProps:a,gridProps:c,clipPathProps:u,clipPathGroupProps:l,overlayProps:f,chartsAxisProps:d,axisHighlightProps:p,legendProps:m,tooltipProps:g,children:h}=lC(i);return A.jsxs(qo,S({ref:n},o,{children:[i.onAxisClick&&A.jsx(Oc,S({},a)),A.jsx(vc,S({},c)),A.jsxs("g",S({},l,{children:[A.jsx(nh,S({},s)),A.jsx(wc,S({},f)),A.jsx(Yo,S({},p))]})),A.jsx(Uo,S({},d)),A.jsx(Wo,S({},m)),!i.loading&&A.jsx(Bo,S({},g)),A.jsx(xc,S({},u)),h]}))});process.env.NODE_ENV!=="production"&&(rh.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),barLabel:r.oneOfType([r.oneOf(["value"]),r.func]),borderRadius:r.number,bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,grid:r.shape({horizontal:r.bool,vertical:r.bool}),height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),layout:r.oneOf(["horizontal","vertical"]),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onAxisClick:r.func,onHighlightChange:r.func,onItemClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const uC=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(rh,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c},fC=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function dC(e){return Re("MuiPieArc",e)}Ne("MuiPieArc",["root","highlighted","faded"]);const pC=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o,dataIndex:s}=e,a={root:["root",`series-${n}`,`data-index-${s}`,o&&"highlighted",i&&"faded"]};return Ie(a,dC,t)},hC=ye(Rt.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,transition:"opacity 0.2s ease-in, fill 0.2s ease-in, filter 0.2s ease-in"}));function ih(e){const{classes:t,color:n,cornerRadius:i,dataIndex:o,endAngle:s,id:a,innerRadius:c,isFaded:u,isHighlighted:l,onClick:f,outerRadius:d,paddingAngle:p,startAngle:m}=e,g=ie(e,fC),h={id:a,dataIndex:o,classes:t,color:n,isFaded:u,isHighlighted:l},y=pC(h),b=er();return A.jsx(hC,S({d:Vn([m,s,p,c,d,i],(v,T,O,w,k,R)=>Mf().cornerRadius(R)({padAngle:O,startAngle:v,endAngle:T,innerRadius:w,outerRadius:k})),visibility:Vn([m,s],(v,T)=>v===T?"hidden":"visible"),onClick:f,cursor:f?"pointer":"unset",ownerState:h,className:y.root,fill:h.color,opacity:h.isFaded?.3:1,filter:h.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},g,b({type:"pie",seriesId:a,dataIndex:o})))}process.env.NODE_ENV!=="production"&&(ih.propTypes={classes:r.object,dataIndex:r.number.isRequired,highlightScope:r.shape({fade:r.oneOf(["global","none","series"]),faded:r.oneOf(["global","none","series"]),highlight:r.oneOf(["item","none","series"]),highlighted:r.oneOf(["item","none","series"])}),id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired});const mC={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,color:a,isFaded:c})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(i+o)/2,endAngle:(i+o)/2,paddingAngle:s,fill:a,opacity:c?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,color:a,isFaded:c})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,fill:a,opacity:c?.3:1}),config:{tension:120,friction:14,clamp:!0}},gC={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:i,startAngle:o,endAngle:s,paddingAngle:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:i,arcLabelRadius:n,startAngle:(o+s)/2,endAngle:(o+s)/2,paddingAngle:a,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:i,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,arcLabelRadius:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:i,endAngle:o,paddingAngle:s,arcLabelRadius:a,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function oh(e){const{id:t,data:n,faded:i,highlighted:o,paddingAngle:s=0,innerRadius:a=0,arcLabelRadius:c,outerRadius:u,cornerRadius:l=0}=e,{isFaded:f,isHighlighted:d}=_o();return M.useMemo(()=>n.map((m,g)=>{const h={seriesId:t,dataIndex:g},y=d(h),b=!y&&f(h),v=S({additionalRadius:0},b&&i||y&&o||{}),T=Math.max(0,Math.PI*(v.paddingAngle??s)/180),O=Math.max(0,v.innerRadius??a),w=Math.max(0,v.outerRadius??u+v.additionalRadius),k=v.cornerRadius??l,R=v.arcLabelRadius??c??(O+w)/2;return S({},m,v,{isFaded:b,isHighlighted:y,paddingAngle:T,innerRadius:O,outerRadius:w,cornerRadius:k,arcLabelRadius:R})}),[l,a,u,s,c,n,i,o,f,d,t])}const yC=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function sh(e){const{slots:t,slotProps:n,innerRadius:i=0,outerRadius:o,cornerRadius:s=0,paddingAngle:a=0,id:c,highlighted:u,faded:l={additionalRadius:-5},data:f,onItemClick:d,skipAnimation:p}=e,m=ie(e,yC),g=oh({innerRadius:i,outerRadius:o,cornerRadius:s,paddingAngle:a,id:c,highlighted:u,faded:l,data:f}),h=en(g,S({},mC,{immediate:p})),{highlightScope:y}=_o();if(f.length===0)return null;const b=t?.pieArc??ih;return A.jsx("g",S({},m,{children:h(({startAngle:v,endAngle:T,paddingAngle:O,innerRadius:w,outerRadius:k,cornerRadius:R},N,$,D)=>A.jsx(b,S({startAngle:v,endAngle:T,paddingAngle:O,innerRadius:w,outerRadius:k,cornerRadius:R,id:c,color:N.color,dataIndex:D,highlightScope:y,isFaded:N.isFaded,isHighlighted:N.isHighlighted,onClick:d&&(E=>{d(E,{type:"pie",seriesId:c,dataIndex:D},N)})},n?.pieArc)))}))}process.env.NODE_ENV!=="production"&&(sh.propTypes={arcLabelRadius:r.number,cornerRadius:r.number,data:r.arrayOf(r.shape({color:r.string.isRequired,endAngle:r.number.isRequired,formattedValue:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,index:r.number.isRequired,label:r.oneOfType([r.func,r.string]),padAngle:r.number.isRequired,startAngle:r.number.isRequired,value:r.number.isRequired})).isRequired,faded:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),highlighted:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),id:r.oneOfType([r.number,r.string]).isRequired,innerRadius:r.number,onItemClick:r.func,outerRadius:r.number.isRequired,paddingAngle:r.number,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const bC=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function xC(e){return Re("MuiPieArcLabel",e)}Ne("MuiPieArcLabel",["root","highlighted","faded"]);const vC=e=>{const{classes:t,id:n,isFaded:i,isHighlighted:o}=e,s={root:["root",`series-${n}`,o&&"highlighted",i&&"faded"]};return Ie(s,xC,t)},OC=ye(Rt.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),Yu=(e,t)=>(n,i,o,s,a)=>{if(!e)return 0;const[c,u]=Mf().cornerRadius(a).centroid({padAngle:o,startAngle:n,endAngle:i,innerRadius:s,outerRadius:s});return t==="x"?c:u};function ah(e){const{id:t,classes:n,color:i,startAngle:o,endAngle:s,paddingAngle:a,arcLabelRadius:c,cornerRadius:u,formattedArcLabel:l,isHighlighted:f,isFaded:d,style:p}=e,m=ie(e,bC),h=vC({id:t,classes:n,isFaded:d,isHighlighted:f});return A.jsx(OC,S({className:h.root},m,{style:S({x:Vn([o,s,a,c,u],Yu(l,"x")),y:Vn([o,s,a,c,u],Yu(l,"y"))},p),children:l}))}process.env.NODE_ENV!=="production"&&(ah.propTypes={classes:r.object,color:r.string.isRequired,formattedArcLabel:r.string,id:r.oneOfType([r.number,r.string]).isRequired,isFaded:r.bool.isRequired,isHighlighted:r.bool.isRequired});const wC=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],TC=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],kC=180/Math.PI;function CC(e,t,n){if(!e||(n.endAngle-n.startAngle)*kC<t)return null;switch(e){case"label":return ht(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return e(S({},n,{label:ht(n.label,"arc")}))}}function ch(e){const{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:i,cornerRadius:o=0,data:s,faded:a={additionalRadius:-5},highlighted:c,id:u,innerRadius:l,outerRadius:f,paddingAngle:d=0,skipAnimation:p,slotProps:m,slots:g}=e,h=ie(e,wC),y=oh({innerRadius:l,outerRadius:f,arcLabelRadius:i,cornerRadius:o,paddingAngle:d,id:u,highlighted:c,faded:a,data:s}),b=en(y,S({},gC,{immediate:p}));if(s.length===0)return null;const v=g?.pieArcLabel??ah;return A.jsx("g",S({},h,{children:b((T,O)=>{let{startAngle:w,endAngle:k,paddingAngle:R,innerRadius:N,outerRadius:$,arcLabelRadius:D,cornerRadius:E}=T,x=ie(T,TC);return A.jsx(v,S({startAngle:w,endAngle:k,paddingAngle:R,innerRadius:N,outerRadius:$,arcLabelRadius:D,cornerRadius:E,style:x,id:u,color:O.color,isFaded:O.isFaded,isHighlighted:O.isHighlighted,formattedArcLabel:CC(t,n,O)},m?.pieArcLabel))})}))}process.env.NODE_ENV!=="production"&&(ch.propTypes={arcLabel:r.oneOfType([r.oneOf(["formattedValue","label","value"]),r.func]),arcLabelMinAngle:r.number,arcLabelRadius:r.number,cornerRadius:r.number,data:r.arrayOf(r.shape({color:r.string.isRequired,endAngle:r.number.isRequired,formattedValue:r.string.isRequired,id:r.oneOfType([r.number,r.string]).isRequired,index:r.number.isRequired,label:r.oneOfType([r.func,r.string]),padAngle:r.number.isRequired,startAngle:r.number.isRequired,value:r.number.isRequired})).isRequired,faded:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),highlighted:r.shape({additionalRadius:r.number,arcLabelRadius:r.number,color:r.string,cornerRadius:r.number,innerRadius:r.number,outerRadius:r.number,paddingAngle:r.number}),id:r.oneOfType([r.number,r.string]).isRequired,innerRadius:r.number,outerRadius:r.number.isRequired,paddingAngle:r.number,skipAnimation:r.bool,slotProps:r.object,slots:r.object});function Gu(e,t){const{height:n,width:i}=t,{cx:o,cy:s}=e,a=Math.min(i,n)/2,c=cn(o??"50%",i),u=cn(s??"50%",n);return{cx:c,cy:u,availableRadius:a}}function lh(e){const{skipAnimation:t,slots:n,slotProps:i,onItemClick:o}=e,s=Lv(),{left:a,top:c,width:u,height:l}=M.useContext(Qn),f=ei(t);if(s===void 0)return null;const{series:d,seriesOrder:p}=s;return A.jsxs("g",{children:[p.map(m=>{const{innerRadius:g,outerRadius:h,cornerRadius:y,paddingAngle:b,data:v,cx:T,cy:O,highlighted:w,faded:k}=d[m],{cx:R,cy:N,availableRadius:$}=Gu({cx:T,cy:O},{width:u,height:l}),D=cn(h??$,$),E=cn(g??0,$);return A.jsx("g",{transform:`translate(${a+R}, ${c+N})`,children:A.jsx(sh,{innerRadius:E,outerRadius:D,cornerRadius:y,paddingAngle:b,id:m,data:v,skipAnimation:f,highlighted:w,faded:k,onItemClick:o,slots:n,slotProps:i})},m)}),p.map(m=>{const{innerRadius:g,outerRadius:h,arcLabelRadius:y,cornerRadius:b,paddingAngle:v,arcLabel:T,arcLabelMinAngle:O,data:w,cx:k,cy:R}=d[m],{cx:N,cy:$,availableRadius:D}=Gu({cx:k,cy:R},{width:u,height:l}),E=cn(h??D,D),x=cn(g??0,D),P=y===void 0?(E+x)/2:cn(y,D);return A.jsx("g",{transform:`translate(${a+N}, ${c+$})`,children:A.jsx(ch,{innerRadius:x,outerRadius:E??D,arcLabelRadius:P,cornerRadius:b,paddingAngle:v,id:m,data:w,skipAnimation:f,arcLabel:T,arcLabelMinAngle:O,slots:n,slotProps:i})},m)})]})}process.env.NODE_ENV!=="production"&&(lh.propTypes={onItemClick:r.func,skipAnimation:r.bool,slotProps:r.object,slots:r.object});const AC=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],SC={top:5,bottom:5,left:5,right:100},PC={top:5,bottom:5,left:100,right:5},uh=M.forwardRef(function(t,n){const i=At({props:t,name:"MuiPieChart"}),{xAxis:o,yAxis:s,series:a,width:c,height:u,margin:l,colors:f,sx:d,tooltip:p={trigger:"item"},axisHighlight:m={x:"none",y:"none"},skipAnimation:g,legend:h,topAxis:y=null,leftAxis:b=null,rightAxis:v=null,bottomAxis:T=null,children:O,slots:w,slotProps:k,onItemClick:R,loading:N,highlightedItem:$,onHighlightChange:D,className:E}=i,x=ie(i,AC),P=bo(),C=S({},P?PC:SC,l),I=S({direction:"column",position:{vertical:"middle",horizontal:P?"left":"right"}},h);return A.jsxs(qo,S({},x,{ref:n,series:a.map(F=>S({type:"pie"},F)),width:c,height:u,margin:C,xAxis:o??[{id:zt,scaleType:"point",data:[...new Array(Math.max(0,...a.map(F=>F.data.length)))].map((F,z)=>z)}],yAxis:s,colors:f,sx:d,disableAxisListener:p?.trigger!=="axis"&&m?.x==="none"&&m?.y==="none",highlightedItem:$,onHighlightChange:D,className:E,skipAnimation:g,children:[A.jsx(Uo,{topAxis:y,leftAxis:b,rightAxis:v,bottomAxis:T,slots:w,slotProps:k}),A.jsx(lh,{slots:w,slotProps:k,onItemClick:R}),A.jsx(wc,{loading:N,slots:w,slotProps:k}),A.jsx(Wo,S({},I,{slots:w,slotProps:k})),A.jsx(Yo,S({},m)),!N&&A.jsx(Bo,S({},p,{slots:w,slotProps:k})),O]}))});process.env.NODE_ENV!=="production"&&(uh.propTypes={axisHighlight:r.shape({x:r.oneOf(["band","line","none"]),y:r.oneOf(["band","line","none"])}),bottomAxis:r.oneOfType([r.object,r.string]),children:r.node,className:r.string,colors:r.oneOfType([r.arrayOf(r.string),r.func]),dataset:r.arrayOf(r.object),desc:r.string,disableAxisListener:r.bool,height:r.number,highlightedItem:r.shape({dataIndex:r.number,seriesId:r.oneOfType([r.number,r.string])}),leftAxis:r.oneOfType([r.object,r.string]),legend:r.shape({classes:r.object,direction:r.oneOf(["column","row"]),hidden:r.bool,itemGap:r.number,itemMarkHeight:r.number,itemMarkWidth:r.number,labelStyle:r.object,markGap:r.number,onItemClick:r.func,padding:r.oneOfType([r.number,r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number})]),position:r.shape({horizontal:r.oneOf(["left","middle","right"]).isRequired,vertical:r.oneOf(["bottom","middle","top"]).isRequired}),slotProps:r.object,slots:r.object}),loading:r.bool,margin:r.shape({bottom:r.number,left:r.number,right:r.number,top:r.number}),onHighlightChange:r.func,onItemClick:r.func,resolveSizeBeforeRender:r.bool,rightAxis:r.oneOfType([r.object,r.string]),series:r.arrayOf(r.object).isRequired,skipAnimation:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),title:r.string,tooltip:r.shape({axisContent:r.elementType,classes:r.object,itemContent:r.elementType,slotProps:r.object,slots:r.object,trigger:r.oneOf(["axis","item","none"])}),topAxis:r.oneOfType([r.object,r.string]),viewBox:r.shape({height:r.number,width:r.number,x:r.number,y:r.number}),width:r.number,xAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["bottom","top"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func})),yAxis:r.arrayOf(r.shape({classes:r.object,colorMap:r.oneOfType([r.shape({colors:r.arrayOf(r.string).isRequired,type:r.oneOf(["ordinal"]).isRequired,unknownColor:r.string,values:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number,r.string]).isRequired)}),r.shape({color:r.oneOfType([r.arrayOf(r.string.isRequired),r.func]).isRequired,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),type:r.oneOf(["continuous"]).isRequired}),r.shape({colors:r.arrayOf(r.string).isRequired,thresholds:r.arrayOf(r.oneOfType([r.instanceOf(Date),r.number]).isRequired).isRequired,type:r.oneOf(["piecewise"]).isRequired})]),data:r.array,dataKey:r.string,disableLine:r.bool,disableTicks:r.bool,domainLimit:r.oneOfType([r.oneOf(["nice","strict"]),r.func]),fill:r.string,hideTooltip:r.bool,id:r.oneOfType([r.number,r.string]),label:r.string,labelFontSize:r.number,labelStyle:r.object,max:r.oneOfType([r.instanceOf(Date),r.number]),min:r.oneOfType([r.instanceOf(Date),r.number]),position:r.oneOf(["left","right"]),reverse:r.bool,scaleType:r.oneOf(["band","linear","log","point","pow","sqrt","time","utc"]),slotProps:r.object,slots:r.object,stroke:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tickFontSize:r.number,tickInterval:r.oneOfType([r.oneOf(["auto"]),r.array,r.func]),tickLabelInterval:r.oneOfType([r.oneOf(["auto"]),r.func]),tickLabelPlacement:r.oneOf(["middle","tick"]),tickLabelStyle:r.object,tickMaxStep:r.number,tickMinStep:r.number,tickNumber:r.number,tickPlacement:r.oneOf(["end","extremities","middle","start"]),tickSize:r.number,valueFormatter:r.func}))});const RC=({title:e,subTitle:t,withPaper:n=!0,height:i=300,sx:o,...s})=>{const a=Ut(),c=A.jsx(uh,{height:i,sx:{width:"100%",...o},slotProps:{legend:{labelStyle:{fontSize:12,fill:a.palette.text.secondary}}},...s});return n?A.jsxs(nt.Paper,{elevation:0,sx:{p:3,borderRadius:"16px",border:"1px solid",borderColor:a.palette.divider,background:a.palette.background.paper,boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.05)",...o},children:[(e||t)&&A.jsxs(nt.Box,{sx:{mb:2},children:[e&&A.jsx(nt.Typography,{variant:"h6",fontWeight:"bold",color:"text.primary",children:e}),t&&A.jsx(nt.Typography,{variant:"subtitle2",color:"text.secondary",children:t})]}),c]}):c};exports.CodeplexBarChart=uC;exports.CodeplexLineChart=Fk;exports.CodeplexPieChart=RC;